03-31-2013 10:32 AM
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
Solved! Go to Solution.
04-03-2013 06:17 AM
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
04-03-2013 02:04 PM
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.
04-03-2013 02:13 PM
Hello Chris,
I am using 2011 version. Yes, Please can you upload those VIs.
Many Thanks
Lazer
04-03-2013 02:36 PM
04-03-2013 06:36 PM
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
04-03-2013 06:37 PM
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
04-03-2013 08:45 PM
hi lazer. can you please upload all the code in labview 2010? thank you.
04-03-2013 09:21 PM
04-04-2013 02:33 AM
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.