LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Image Processing for Bottle Detection

Highlighted

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

0 Kudos
Message 1 of 4
(1,428 Views)
Highlighted

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.

0 Kudos
Message 2 of 4
(1,387 Views)
Highlighted

Thank for your help, but it seem like I can't open your link.

0 Kudos
Message 3 of 4
(1,372 Views)
Highlighted

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.

0 Kudos
Message 4 of 4
(1,353 Views)