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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Scanning using TImageEnMView and uploading images to the server over the interne

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Flashcqxg Posted - Dec 26 2025 : 07:41:19
I use TImageEnMView for bulk scanning and upload the scanned images to the server over the internet. The following issue occurs:
At the beginning of the scanning process, the speed is relatively normal. However, as the number of scanned images increases, the scanning speed gradually slows down. After the scanning is completed, it also takes a long time for the scanner to stop completely. I wonder if there are any good solutions to this problem?
My code is as follows:

procedure TScan.ImageEnMViewAcquireBitmap(Sender: TObject; ABitmap: TIEBitmap; DpiX, DpiY: Integer; var Handled: Boolean);
begin
  // Upload to the server. Each image takes about 2 seconds.
  UpLoadImage(ABitmap);
end;
8   L A T E S T    R E P L I E S    (Newest First)
Flashcqxg Posted - Jan 03 2026 : 19:26:28
Thanks.
xequte Posted - Jan 02 2026 : 19:45:38
Hi

It will be much faster if you call ABitmap.Rotate( 180, ierNone );

Nigel
Xequte Software
www.imageen.com
Flashcqxg Posted - Dec 29 2025 : 17:59:51
Thank you! Additionally, I've noticed an issue: when calling ABitmap.Rotate(180) in the OnAcquireBitmap event, the larger the image or the poorer the computer's performance, the longer it takes. Is there any way to resolve this?
xequte Posted - Dec 29 2025 : 14:38:10
Hmm, if the scanner does not like the delay, then you should perform your upload asynchronously (non-blocking), e.g. by doing it in a secondary thread.

Nigel
Xequte Software
www.imageen.com
Flashcqxg Posted - Dec 27 2025 : 19:32:31
I have already placed Handled := True after UpLoadImage(ABitmap), but it is still slow.
Later, I conducted another test. In the OnAcquireBitmap event, I wrote only the following code. When you scan more than 10 pages, you can observe the scenario I described. I believe the UpLoadImage method is blocking the scanning process.

procedure TScan.ImageEnMViewAcquireBitmap(Sender: TObject; ABitmap: TIEBitmap; DpiX, DpiY: Integer; var Handled: Boolean);
begin
sleep(2000);
end;
xequte Posted - Dec 27 2025 : 14:58:52
Hi

If the images are large and you are filling up the TImageEnMView then there could be slowness due to memory or disk access. If you set Handled to true in your AcquireBitmap method does the slowness go away?



Nigel
Xequte Software
www.imageen.com
Flashcqxg Posted - Dec 26 2025 : 21:56:36
Yes, that's correct. This is because the time it takes to call the UploadImage method is always between 1 and 2 seconds.
xequte Posted - Dec 26 2025 : 18:46:17
Hi

So the slowness occurs in ImageEn's scanning, i.e. the time of ImageEnMViewAcquireBitmap being called is longer and longer (And our UploadImage method remains constant)?


Nigel
Xequte Software
www.imageen.com