01-07-2015 02:33 AM
A good day to all,
I am new here, please forgive me if i have crossed anyone reading this post.
I am an aerospace engineering student that was given a project to convert RGB values to CMYK using labview.
I have found a solution on the forums and it works well. However, I would like to take it a step further.
I am able to access my webcam, via a labview program I found on YouTube which is attached in this post, and would like to extract the RGB information of the mouse pointer and feed the RGB values into the RGB to CMYK converter. The "webcam to converter.png" file sort of explains what my intentions are..
Is there a way to do it? Perhaps someone can point me in the right direction.
01-07-2015 03:30 AM
Try a mouse event loop...
David Koch
01-07-2015 03:55 AM
Hi David!
Thanks for the quick reply.
I am not sure about certain things though..
Do i implement it inside the webcam loop?
This coords tab gives me the pointer position does it also give the RGB coordinates? Can i get that from the coords tab?
I am really sorry, I think it's a great idea, but i do not have sufficient knowledge and experience in LabVIEW..
Regards,
newbiwan
01-07-2015 04:46 AM
Well, basically look for things around 'user event' :
1- add a 'Stop' button and catch its 'pressed' event, quit the loop
2- change the 'timeout' period from '-1' to, say, 20 ms to get 50 Hz
3- put your video capturing code in the 'timeout' event
4- get the mouse coordinate when entering the image zone
5- get the pixel at the given coordonate (see Image's associated methods)
6- convert your color to CYMK
Cannot help you much, Labview refuses to open
your LV 2014 VI in LV 2013. There must so many
improved features and data format changes...
David Koch
01-07-2015 10:21 AM
Hi David,
Thanks again for your fast reply, your step by step tips are very helpful.
I am making superb progress!
However, I am stuck at point 5.
I am able to get the image string information as attached, but I can't seem to extract the RGB value of the pixel at the mouse coordinate.
I have searched around for any image associated methods but most seem to refer me back to mouse coordinates, I may be searching in the wrong place.
Regards,
Newbiwan