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
 slow scanning
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

AndNit

Brazil
82 Posts

Posted - Mar 25 2025 :  09:26:04  Show Profile  Reply
Hello!

Our system has been very slow when scanning documents on high-production scanners, such as the Canon iFormula DR-G2110 A3 120ppm 600DPI Scanner.

After scanning a few pages, approximately 20 pages, the scanner slows down and starts to pull one sheet at a time.

It is worth mentioning that this does not happen when I use the manufacturer's software.

Here is the code we are using to scan.

ImageEnMView1.DeSelect;
FillIn;
ImageEnMView1.EnableLoadEXIFThumbnails := True;
ImageEnMView1.MIO.Acquire;


procedure TfrmDigitaliza.FillIn;
begin
  image.IO.TwainParams.VisibleDialog            := True;
  image.IO.TwainParams.ProgressIndicators       := False;
  image.IO.TwainParams.AcquireFrameLeft         := (image.IO.TwainParams.AcquireFrameLeft);
  image.IO.TwainParams.AcquireFrameTop          := (image.IO.TwainParams.AcquireFrameTop);
  image.IO.TwainParams.AcquireFrameRight        := (image.IO.TwainParams.AcquireFrameRight);
  image.IO.TwainParams.AcquireFrameBottom       := (image.IO.TwainParams.AcquireFrameBottom);
  image.IO.TwainParams.PixelType.CurrentValue   := ComboBox2.ItemIndex;
  image.IO.TwainParams.YResolution.CurrentValue := StrToInt(DPIy);
  image.IO.TwainParams.XResolution.CurrentValue := StrToInt(DPIx);
  image.IO.TwainParams.UndefinedImageSize       := True;
  image.IO.TwainParams.BufferedTransfer         := True;
end;

xequte

38899 Posts

Posted - Mar 25 2025 :  20:47:59  Show Profile  Reply
Hi

Are the images huge? If so, the system may be slowing because the application is using memory storing the images in memory. Check the memory usage of the application using Task Viewer.

If this is the cause, consider scanning directly to file (and just showing thumbnails in TImageEnMView).

To scan to file use the OnAcquireBitmap event:

http://www.imageen.com/help/TImageEnMIO.OnAcquireBitmap.html

You can then just append the image to the TImageEnMView with thumbnails enabled:

http://www.imageen.com/help/TImageEnMView.StoreType.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: