Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Detect the rectangular

Solved!
Go to solution
Solution
Accepted by topic author lazer

Hi,

 

Sorry for the delay. Here is the code generated from Vision Assistant (and slightly modified) that corresponds to the algorithms I described earlier.

I tried it on the image you posted in your original post.

 

Hope this helps.

 

Christophe

Message 11 of 17
(2,110 Views)

Hello Chris,

 

Thank you for help. I can not open these files because I am out of town at the moment. Only one question, will these codes work with all solar modules image or only with the origional image which I posted. 

 

Did you look at my codes. What I found while working is; vision support 8 bits perfectly but 16 or higher bits image does not therefore I convert first image to 64RGB and then use this image. If there is necessary I converted 64RGB into 8 bits again. But this new created image is better than the old one. This was the concept of making these codes. Please have a look at my these codes. 

 

I will see your kind help in one hour time and if there any question or any point which is not clear to me will ask you. Once again, Thank you for kind help. 

 

Many Thanks 

Lazer

0 Kudos
Message 12 of 17
(2,104 Views)

You might need to adjust some parameters, like the Region of Interest, edge threshold parameters, if you choose that method, or the contour analysis parameters.

The contour algorithm only works so far on 8-bit images, so you will have to convert the image to 8-bit to use this method.

IMAQ Find Straight Edge 3 should work on all image type according to the help.

I advise you to prototype the algorithms in Vision Assistant. This is a handy tool to try out the different algorithms included in Vision Development Module, and try them out on your images.

Message 13 of 17
(2,102 Views)

Hello, 

 

Thank you, for all these advises. I will keep these useful information in my considerations while wokring on those methods. As regards to Vision Assistance tool, at first I was advised to use this but I could make this tool work for me and then figure out tool is not working properly, I do not know why. Most of the fucntions show the same error which is this function works with only color images. After this, I did not use this tool again but I think converted 64RGB image can do the work. I will try them and let you know. 

 

Many thanks 

Lazer 

0 Kudos
Message 14 of 17
(2,100 Views)

Hello Nadiah, 

 

Sorry for late reply, I was not in the town. I have attached my program. I am working on image processing. Its mean, we both can help each other as well.Smiley Very Happy

 

Best Wishes,

Lazer

0 Kudos
Message 15 of 17
(2,094 Views)

Hello Nadiah, 

 

All four sub VIs are also attached. However if you need more help, ask for it. If I have created the code what you are looking for, I will help you. 

 

Lazer 

Download All
0 Kudos
Message 16 of 17
(2,094 Views)

Hello Chris, 

 

Thank you very much for this help. Those two codes are working prefectly. I will come to the forum shortly to seek solution of new problem. 

 

Many Thanks 

Lazer

0 Kudos
Message 17 of 17
(2,092 Views)