LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

irregular shape of ROI

Harlo, recently i am designing a kind of vi that can be automatically detect the region of the barcode.
And this is the VI that i have done. But there is an error when i try to run it.
The error claims that the ROI is invalid.

Does anyone know why the probblem is occured?
I had add 150 pixels to the global rectangle.

But the problem still there.

I had checked with the Triangular ROI in the forum... but the problem still occured.

Download All
0 Kudos
Message 1 of 5
(3,243 Views)

And here is the result of the lines
Green line is the area of ROI selected by the user, while the red lines are the edges selected by the LabView.

 

front panel.png

0 Kudos
Message 2 of 5
(3,229 Views)

And my desired output is the region within the red lines will be cropped out for further processing...
but at the Imaq convert roi to mask.vi, the error of "Invalid type of ROI" has occured.

0 Kudos
Message 3 of 5
(3,228 Views)

You should not use LINE ROI, instead use ROTATED RECTANGLE and then you might also want to use 'IMAQ Covert Rectangle to ROI'.

 

Edited: Attached is the example (LabVIEW version 2012).


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 4 of 5
(3,222 Views)

Moderator... is it you mean instead of using the imaq findstraightedge.vi, i can use the other type of the VI???
sorry if i cant get your advices. i mean misunderstand them.

0 Kudos
Message 5 of 5
(3,214 Views)