Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Overlay Color Text on a Black and White picture

I have a black and white camera connected to my CVS (1455) and out put to a vga monitor. Time to time I need to overlay a "Red Color" text. Since my camera is black and white I have selected "Grey" color pallete. With the grey Color Pallete I couldn't display text in color. If i select any other color pallete my picture get different color. Is there any way to modify the grey color pallete to include the text color?
Bottom line I need to Keep the picture in grey scale and I need to show the text in One Color.

thanks
0 Kudos
Message 1 of 6
(4,233 Views)
Hi Puradchi

To do this you must set the video mode of your CVS. There is a VI to do this in the IMAQ RT Pallette. The VI is IMAQ Video Out Display Mode. You can then set the resolution, refresh rate and most importantly to you the bit depth of the display. This does not affect the display of your image as the image is still in its greyscale (U8) format. I have included an example VI for you.

Hope that helps
Mike
0 Kudos
Message 2 of 6
(4,224 Views)
Mike,

I didn't get the attached exaple. Can you please re attach again.

thanks
0 Kudos
Message 3 of 6
(4,220 Views)
Hi

Here it is

Mike
0 Kudos
Message 4 of 6
(4,217 Views)
Mark,

Thank you. It worked. I set the Color depth to 16 bit and its working.

Do you know how can i make the font size bigger. I don't what the available fonts in CVS?

Regards,
Puradchi
0 Kudos
Message 5 of 6
(4,213 Views)
Hi

There is only one font available on the CVS and no way to download new ones to it. If there are only a couple of words that you need then create them as bitmaps and use the overlay bitmap function to display them. I have used this in the past for Company logos and pass fail indication.

Mike
Message 6 of 6
(4,210 Views)