Loading...

Red Drop Out

Support for GdPicture Light Imaging Toolkit and GdPicture Pro Imaging ActiveX/SDK.

Red Drop Out

Postby shoukz » Thu Nov 13, 2008 9:36 pm

Loic,

Is there any way we can do the Red Drop out programmatically on the Image after it got scanned. RemoveRedComponent function is not working.

thanks,
Shoukat.
shoukz
 
Posts: 6
Joined: Thu Oct 30, 2008 5:50 pm

Re: Red Drop Out

Postby Loïc » Thu Nov 13, 2008 10:06 pm

Hi,

The RemoveRedComponent() method is not dedicated for that.

Please, attach an image on which you are trying to apply this correction. I'll see if we can do something.

Best regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4437
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: Red Drop Out

Postby shoukz » Thu Nov 13, 2008 10:18 pm

Loic,

I do have only the real bills. Sorry I'm unable to attach those images as of now due to company policy. But it is a form wih the red fields. Values are in black.For better OCR we need to drop the red portion of the Form. When I was playing with the RGB to GRB(SwapColorsRGBtoGBR), the red portion of the form got turned into green. If I apply white color on the red portion of the form my purpose would be solved. Can you please let me know how to do that.

thanks,
Shoukat.
shoukz
 
Posts: 6
Joined: Thu Oct 30, 2008 5:50 pm

Re: Red Drop Out

Postby Loïc » Thu Nov 13, 2008 10:25 pm

Ok,

Could you try that:

Code: Select all
Call Imaging1.SwapColorEx(Imaging1.argb(255, 255, 0, 0), Imaging1.argb(255, 255, 255, 255), 90)


See: http://guides.gdpicture.com/v5/gdpictur ... lorEx.html

It should be good for you. You can decrease the threshold parameter in order to catch more color.

let me know about the result.

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4437
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: Red Drop Out

Postby shoukz » Thu Nov 13, 2008 10:42 pm

Loic,

No luck on that. I reduced the threshold to 40 and tried that also. Red stays there. I'm wondering how come it is replaced with the Green or blue with the SwapColorsRGBtoGBR method.

thanks,
Shoukat.
shoukz
 
Posts: 6
Joined: Thu Oct 30, 2008 5:50 pm

Re: Red Drop Out

Postby Loïc » Fri Nov 14, 2008 3:10 pm

Hi,

Could you attach just a portion of your image including a red part ?

Best regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4437
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: Red Drop Out

Postby bbanet » Fri Apr 23, 2010 4:25 am

I am trying to do the same thing, but the red is not really red, it is more some version of pink. I could get the exact color, but I would expect this to be pretty prone to error. Seems like the GetColorChannelFlagsK method gives me what I need, since the text is black over a red/pink background. Is this the proper use of this method?
bbanet
 
Posts: 17
Joined: Mon Jun 15, 2009 11:03 pm


Return to GdPicture [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 2 guests

cron