![textile defect detection](https://farm5.staticflickr.com/4554/38706972922_920f647d61_c.jpg)
This is a sample display the result of textile defect detection via OpenCV, you can slide left/right to check image before and after.
這是一個範例,展示用OpenCV檢測紡織品瑕疵的結果,你可以在圖上左右拉動來比較前後的差別。
Get the result like that was not so hard, just tune parameters and keep patient, I had put my code on Github - Defect Detection Demo, you can test it by yourself.
要得到這樣的結果不難,只需要調參數跟耐心,我已經把程式放到。Github上的Defect Detection Demo,你可以自己試試。
Please view this demo in web version, not mobile version.
Dirty | 髒污
![](https://farm5.staticflickr.com/4547/23873262767_bcf55e9843_c.jpg)
![](https://farm5.staticflickr.com/4586/23873262587_5379664343_c.jpg)
Oil | 油汙
![Oil-org](https://farm5.staticflickr.com/4515/38706550702_48890cef14_c.jpg)
![Oil-after](https://farm5.staticflickr.com/4556/37850468575_4ed38f9256_c.jpg)
Broken Yarn | 斷紗
![line-crop](https://farm5.staticflickr.com/4582/23873262567_05bd66b97d_c.jpg)
![broken-yarn](https://farm5.staticflickr.com/4550/26961575459_6a95fb8440_c.jpg)
As you see, the result better than AOI line scan but still not good/smart enough, so it still has a lot work to make it better.
如你所見,這結果比AOI的Line Scan方式來的好,但還是不夠好/聰明,所以要讓它更好還有很多事得做。
can you share sample code, many thanks
ReplyDeleteI will try find it and put on github.
Deletehi @Nova, sorry for late, you can check https://github.com/died/DefectDetectionDemo for code.
Deletemy email: [email protected]
ReplyDelete