Dormidont Posted May 5, 2006 Report Share Posted May 5, 2006 So this is the question: Is it possible to determine for NI Vision whether there are dark characters on a light background or light characters on a dark background for any selected ROI? Quote Link to comment
Dormidont Posted May 5, 2006 Author Report Share Posted May 5, 2006 So this is the question: Is it possible to determine for NI Vision whether there are dark characters on a light background or light characters on a dark background for any selected ROI? Quote Link to comment
crelf Posted May 5, 2006 Report Share Posted May 5, 2006 So this is the question: Is it possible to determine for NI Vision whether there are dark characters on a light background or light characters on a dark background for any selected ROI? You could try a histogram across the whole ROI which should give you two distinct peaks (one for the background colour and one for the text colour), and then look at the intensity just inside the border of the ROI - if it's the same as the darker peak then you've got light text on a dark background, and if it's the same as the lighter peak then you've got dark text on a light background (this assumes that the area just inside the border is the background - depending on your image, that's a fairly safe assumption). Do you have any example images that you can post for us to look at? 1 Quote Link to comment
Dormidont Posted May 6, 2006 Author Report Share Posted May 6, 2006 Yes I have, there is one of the real examples. Download File:post-4422-1146905913.zip Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.