LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ROI and color analysis

I'm trying to make a VI that can look at four plants and to determine if any one of them is brown. The top left plant in the image is plant 1, the top right is plant 2, the bottom left is plant 3, the bottom right is plant 4. I need to activate a boolean LED on the front panel for the designated plant in the case that it is brown, i.e. there should be four LED's one for each plant and if any are brown the LED should be on. I am trying to approach this by creating four rectangular regions of interests (one for each plant), and determining if any of the ROI's contain a brown plant. I am thinking of extracting the rgb values from the ROI's and analyzing them to determine if they are brown and turning on the LED if so. Although I'm not familiar with image analysis and I am relatively new to labview generally, I'm not sure if RGB values can be obtained for an entire ROI or if it is limited only for pixels. I will have a screenshot of my VI as well as the VI itself attached. The top right plant in the screen shot is an example of my brown plant. I would appreciate any help ASAP please. 

 

Thanks

Block diagram.PNGfront panel.PNG

 

 

0 Kudos
Message 1 of 4
(3,186 Views)

Hello Ahmed

 

Thanks for the detailed description.

 

What is the current state on your project? Are you able to run and identifies something on your project?

 

Thanks

 

Andres

0 Kudos
Message 2 of 4
(3,101 Views)

I finished the VI, it is now functioning as needed, the updated VI should be attached here for you to see. The only problem is that the front panel is very cluttered as I have 5 ROI descriptor controls, is there any way to make it cleaner looking?

0 Kudos
Message 3 of 4
(3,095 Views)

Hi.

 

I'm glad to hear you solved your issue.

 

About your code, I see it very clean. You can put those into an array maybe but the information is very clear and is more up to you if you want to modify something but is not necessary.

 

Regards

0 Kudos
Message 4 of 4
(3,072 Views)