ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 read barcodes
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

skn

Germany
10 Posts

Posted - Sep 22 2021 :  03:33:54  Show Profile  Reply
I used the component TImageEnMView, where I've scanned some documents into it. Next action is to analyze the barcodes of each document. This action is only succesful at the first document. At the second document there happens an error. Must there something resetet?

some code:
m_symbols := IEVisionLib.createBarCodeScanner().scan(Bild.IEBitmap.GetIEVisionImage(), selRect);
for i := 0 to m_symbols.size() - 1 do
begin
bc := TIEVisionBarCodeSymbol( m_symbols.getObj(i) );
data := bc.getData().c_str();
mmoBC.Lines.Add(bc.getSymbolType().c_str() + ':' + bc.getData().c_str());

The error happens at .... bc.getData().... (at the second document!)



sk

xequte

38180 Posts

Posted - Sep 22 2021 :  20:10:13  Show Profile  Reply
So is Bild a TImageEnView? What method do you use to assign the image to the TImageEnView?

Can you give us the steps (or a simple demo) to reproduce at our end?


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

skn

Germany
10 Posts

Posted - Oct 10 2021 :  13:27:51  Show Profile  Reply
Hello Nigel,

sorry for answering your questions regarding my problem late (despite this i am very interested in the solution of the problem).
Yes - "Bild" is a TImageEnView.
On every Image in TImageEnMView I create a "Bild" and copy this Image to a TImageEnView
The code therefor is:

for j := 0 to imgENvwMLSScan.ImageCount - 1 do begin
Bild := TImageEnView.Create(self);
frmLSScan.imgENvwMLSScan.CopyToIEBitmap(frmLSScan.imgENvwMLSScan.SelectedImage, Bild.IO.IEBitmap);
....
The following lines are familiar to you.
....
Bild.Free;
m_symbols.clear;
end;


Thank you for your support.

Regards
S.Knoll

sk
Go to Top of Page

skn

Germany
10 Posts

Posted - Oct 10 2021 :  13:35:22  Show Profile  Reply
sorry ... I forgot to mention that I choose the image naturally in ..TImageEnMView with :

frmLSScan.imgENvwMLSScan.SelectImage(j);


sk
Go to Top of Page

xequte

38180 Posts

Posted - Oct 10 2021 :  18:23:50  Show Profile  Reply
Hi

Rather than creating a TImageEnView, can you try just using a TIEBitmap?

bmp := TIEBitmap.create();
for j := 0 to imgENvwMLSScan.ImageCount - 1 do 
begin
  frmLSScan.imgENvwMLSScan.CopyToIEBitmap( frmLSScan.imgENvwMLSScan.SelectedImage, bmp );
  ....
end;
bmp.Free();




Nigel
Xequte Software
www.imageen.com
Go to Top of Page

skn

Germany
10 Posts

Posted - Oct 20 2021 :  06:04:04  Show Profile  Reply
It works, Thank you very much.

sk
Go to Top of Page

skn

Germany
10 Posts

Posted - Oct 27 2021 :  08:55:43  Show Profile  Reply
Hi,
Concerning the barcode recognition I get now more and more often the error: "an error was encounted processing this image ...Ensure you are using the latest version of IEVision plugin". I'm now using the TIEbitmap instead of TImageENView. The Message I get is not interceptable. The process over several instances aborts.


sk
Go to Top of Page

skn

Germany
10 Posts

Posted - Oct 27 2021 :  09:01:31  Show Profile  Reply
What can I do? (the conditions are as described above)

sk
Go to Top of Page

xequte

38180 Posts

Posted - Oct 27 2021 :  23:37:30  Show Profile  Reply
Hi

Are you able to provide the images and steps to reproduce the issue here?



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

skn

Germany
10 Posts

Posted - Oct 28 2021 :  09:59:17  Show Profile  Reply
... yes, I can. But I didn't found the button to add pictures or files.

sk
Go to Top of Page

xequte

38180 Posts

Posted - Oct 28 2021 :  19:20:55  Show Profile  Reply
When you click "Reply to Topic", do you have these buttons above the editor?



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

skn

Germany
10 Posts

Posted - Oct 29 2021 :  03:04:43  Show Profile  Reply
... OK, I should have operate not "quick reply" at the end ... just I have seen....



it seems to be so, that the memory is filling up. This message comes earlier and earlier .. after some scanning operations. I have to tell you, that I create the window at start of the programm (it remains created over the runtime). My first reaction was to rebuild the window bevor showing and destroying it at afterwards. This seems to work for now. I have not yet tried to scan a larger number of documents ... . An upload of some examples (like to be seen in the picture) is unfortunately not possible here ... I could make the file available by mail.

Some Details of the process at the end:
After scanning documents in TImageEnMView I evaluate the barcodes of each document.
When I find some defined more detailed barcodes on it I summarize all documents under it and save them in one or more pdf-files, depending on how many detailed barcodes I found.

sk
Go to Top of Page

xequte

38180 Posts

Posted - Oct 29 2021 :  21:11:50  Show Profile  Reply
Hmmm, I've not had any other reports of that. Possibly you are leaking memory somewhere.

Can you create a small demo that reproduces the issue (e.g. with a set of images that you iterate over) and send it to me.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

skn

Germany
10 Posts

Posted - Nov 02 2021 :  11:47:57  Show Profile  Reply
Hi Nigel, if the last activity does not bring the desired effect in the long run I will become active again.
For now I thank you for your efforts and remain with kind regards ...
sk

sk
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: