Jump to content
Sign in to follow this  
Dormidont

Dark characters on a light background or light characters on a dark background

Recommended Posts

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?

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites
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?

  • Confused 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.