Hi,
how can I detect if a scanned page is completely empty?
Because I must skip empty pages in a scan process.
How to detect/skip empty scanned pages?
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan
- Lzcat - Tracker Supp
- Site Admin
- Posts: 677
- Joined: Thu Jun 28, 2007 8:42 am
Re: How to detect/skip empty scanned pages?
Hi Dorwol.
Can you be more specific?
We will need what SDKs you are using and on which step you need to detect this.
Can you be more specific?
We will need what SDKs you are using and on which step you need to detect this.
Victor
Tracker Software
Project manager
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Tracker Software
Project manager
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Re: How to detect/skip empty scanned pages?
For Scanning I use xcscan40 from "PDF-XChange Pro SDK 6".
Re: How to detect/skip empty scanned pages?
I also use "Image-XChange SDK 4"
- Lzcat - Tracker Supp
- Site Admin
- Posts: 677
- Joined: Thu Jun 28, 2007 8:42 am
Re: How to detect/skip empty scanned pages?
Hi Dorwol.
If you are using "Image-XChange SDK 4" you have full control over image (before placing it to pdf file).
You can examine image data using IMG_PageLockBlock/IMG_PageLockBlock if you need some custom logic.
For simple case (if you scanner produce clean white images) you may use IMG_PageCountColors to make sure that page is solid, and use IMG_PageGetPixel to check solid color.
HTH.
If you are using "Image-XChange SDK 4" you have full control over image (before placing it to pdf file).
You can examine image data using IMG_PageLockBlock/IMG_PageLockBlock if you need some custom logic.
For simple case (if you scanner produce clean white images) you may use IMG_PageCountColors to make sure that page is solid, and use IMG_PageGetPixel to check solid color.
HTH.
Victor
Tracker Software
Project manager
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Tracker Software
Project manager
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.