06-21-2016 09:42 AM
Hi, I am trying to measure light intensity from LED diodes with a webcam to detect if the light is on or off. I started with a example from labview: "Light meter" and tried to change that to work with the feed from a web cam as input. I didn't work at all.. What am I doing wrong? I will post both my file and the example.
I want it work like the example "light meter". And then decide at what range of light intensity the light is on or off.
All that I have done in "Test 7" is to try too make the "input data" come from a web cam insted of a file. Please help!
Solved! Go to Solution.
06-22-2016 12:38 AM
Anyone who can help me?
06-22-2016 12:58 AM
Hey,
The issue is with the copy paste approach which you should do after understanding the code.
Light meter will work absolutly as expected and so your code will.
All you need to do is passing the 'Rectangle' information/ROI of your LED in the image. (Currently it is constant as a cluster of some values).
YOu can use a property node of your ROI (of image indicator)instead of constant and pass ROI information drawn on the image
06-22-2016 01:13 AM - edited 06-22-2016 01:14 AM
I don't understand what you mean, where do I go from here?
06-22-2016 01:23 AM - edited 06-22-2016 01:28 AM
Please find attached code modified with the ROI property
Draw an ROI on image indicator(frontPanel)
Edited: Your Code: Just draw ROI in image Source on your LED
06-22-2016 01:45 AM
I get this error.. Anyway I don't really want that function. I want a constant ROI. I have gotten the vi to work.
06-22-2016 01:47 AM
06-22-2016 01:51 AM
But how do I make it so the image log created in and by the vision acquisition will be deleted after each run of the sequence? The log takes up quite a bit of memory after some runs..
06-22-2016 02:06 AM