04-25-2014 01:39 PM
I want to use optical character recognition to read the temperature from a digital thermometer. I get errors about the region of interest. I managed to load an image and convert it to grayscale for use.
I attached a screenshot of my code. The error that comes up appears to be linked to the IMAQ read LCD tool saying that the ROI is faulty. How could I solve this problem?
04-29-2014 08:32 AM
connect imaq read to all imaq dst. What is the image format that you are trying to read? jpg, bmp ? attach your code
04-29-2014 09:07 AM
Thank you. I attached a screenshot of the relevant part of my code because the rest of it is quite large. I am trying to take a picture of a digital thermometer using a simple webcam. Im not sure what the default image type is.
04-29-2014 09:25 AM
There's a VI to set ROI which'll pop up a copy of the image in which you can draw/mark the region. The output is a valid ROI.
/Y
04-30-2014 06:00 AM
Could you possible give me more guidance as to how I could find this VI. I attached my code
04-30-2014 07:45 AM
Why are you using picture indicators rather than the image indicators, you obviously have IMAQ...
I have attached a modified .vi which is taking its ROI from your one image indicator. You will need to use the ROI tools (right side of the image indicator to define your ROI).
I cant run the VI as I don't have a camera attached. If you attache a sample image, further debugging will be easier.
04-30-2014 08:34 AM
Thank you very much. Ill try it out later today and Ill let update the forum if it fixes the problem.
04-30-2014 09:34 AM
Would it be possible if you save it for labview version 2010 as this is the one I am using and it wont let me open the VI you sent
04-30-2014 09:36 AM
here you go
04-30-2014 09:47 AM
Thank you very much. Unfortunately the same 'Invalid ROI' error comes up