11-20-2016 08:29 PM
Hello! I currently doing Master Degree Program about Image Processing for bottle detection.
I have perform following processing:
1. Acquire image from webcam
2. Convert RGB image into binary image with boolean output (0,1)
3. Select botle with ROI Global Rectangle. If bottle detected, LED indicator turn "on".
The code work fine. However, when I apply morphological operation before converting into binary image it display error when performing ROI, "error 1074395720 Invalid ROI".
Please kindly give me suggestion
Thank You
Issara
King Mongkut University of Ladkrabang
11-21-2016 02:01 PM
Hi Issara,
You will get error -1074395720 IMAQ Read Barcode, Invalid ROI when using IMAQ Read Barcode VI if the ROI descriptor passed is incorrect according to this document:
AE KB 3EODQ7CH : Region Of Interest Frequently Asked Questions (FAQ)
http://ae.natinst.com/public.nsf/web/searchinternal/82c6023bcc87f5ca86256f38006d2c98?OpenDocument
Please check it out. I hope this helps.
Best regards,
Daniel C.
11-21-2016 07:41 PM
Thank for your help, but it seem like I can't open your link.
11-22-2016 08:36 AM
Hi Stalkerz,
This one should work:
Region Of Interest Frequently Asked Questions (FAQ)
http://digital.ni.com/public.nsf/allkb/82C6023BCC87F5CA86256F38006D2C98?OpenDocument
Regards,
Daniel C.