Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Detect the rectangular

Solved!
Go to solution

Hello everyone,

 

I am trying to detect the whole solar module as an one unit, however threshold analysis helps the code to recognise there are three cells but I want to detect the solar module and calculate the area of the coverred by the module. Can someone look at the code and help me what to do please. Detection must follow be auntonomus.

 

Many Thanks

Lazer

Download All
0 Kudos
Message 1 of 17
(5,573 Views)

Hello everyone, 

 

Can someone reply please. I am stuck very badly. Everytime when I try to draw the rectangle, I am ending up with the same result. What I am trying to do is to draw one single rectangle which illustrate the whole solar module. Any suggestion ? Please someone reply to my post. Please

 

Many Thanks 

Lazer

0 Kudos
Message 2 of 17
(5,532 Views)

I tried 2 different methods that both work well.

 

1) Using Edge Detection.

Vision Development Module contains advanced edge detection algorithm that can find straight edge on challenging images.

- Convert the image to grayscale

- Use IMAQ Find Straight Edge 3 four times to locate 4 straight edges of the part.

- Then use the analytic geometry tools to find the intersection of the straight edges and locate the 4 corners of the part.

 

2) Using contour analysis

- Convert the image to grayscale

- Use the close grayscale morphology function to close the gap between the subpanels.

- Use IMAQ Extract Contour to extract the contour of the part.

- Find the valeys of the contour to locate the 4 corners.

 

Which version of LabVIEW are you using? If you want I can attach a couple VIs that show both methods.

Message 3 of 17
(5,523 Views)

Hello Chris,

 

I am using 2011 version. Yes, Please can you upload those VIs. 

 

Many Thanks

Lazer

0 Kudos
Message 4 of 17
(5,517 Views)
Hello Chris,

I made one code today but and draw lines however could not find the corners. I will upload this code shortly. I am waiting for those VIs which you have. Many Thanks.

Thanks
Lazer
0 Kudos
Message 5 of 17
(5,512 Views)

Hello Chris,

 

This is my code and sub VI follow by next post. You can see at this code, I managed to draw the lines but they are not straight however finding the corners were very hard, I could not find the corners. As you you said in your last post you have made 2 VIs which can perform the required task. Can you please upload them please. 

 

Many Thanks 

Download All
0 Kudos
Message 6 of 17
(5,505 Views)

This is all what need to run my code. I am still waiting for you VIs. Can you please upload them Please. 

 

Thanks for help

Lazer

0 Kudos
Message 7 of 17
(5,504 Views)

hi lazer. can you please upload all the code in labview 2010? thank you.

0 Kudos
Message 8 of 17
(5,500 Views)
Hello nadiah,

I will but not now because this time my laptop is not with me. I am out but sometime in the morning, I will upload them for you.
By the way, are you after all program or any specific VI.

Best wishes,
Lazer
0 Kudos
Message 9 of 17
(5,496 Views)

I've done vision VI based on image processing. But I just want to see the code you've done in case if I can upgrade my program.

0 Kudos
Message 10 of 17
(5,488 Views)