Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

Quality control system for eraser factory

$
0
0
Hello all, My question is a mix between **"how to do the task in a quickly and professional way"** because I'm a completely amateur and **"how can I change my (probably) wrong pipeline"** (any advice would be very appreciated. ****Problem to solve:**** I'm developing a system (it's university last year practicum) to detect if an eraser is in between some quality standards. My system should detect if the eraser: - Has good area - Has an obvius defect in form - If the logo's position is right - If the logo is different (for example, another barcode) - If the barcode's position is right - If the printing is right Here are some images to put you in context: ![This rubber is right](/upfiles/14806466888459554.png) The first eraser at the top is right, ![image description](/upfiles/14806467441700997.png) It's difficult to see, but this is a little bit sharper (different form) and should not pass de Quality Control (QC) You can also have rubber's like: ![image description](/upfiles/14806468383305782.png) ![image description](/upfiles/14806468476116842.png) These will be droped in some part of the pipeline ---------- Taking the first image as a good eraser, the system should determine orientation of the eraser (how many degrees is turned) from a given 0º. This rotation should be the same for all the production. For example, imagine that 0º is the rubber with text in vertical (reading like humans), but it can be any other if it's consistent and not to much difficult to read. **Some guidelines are given by the tutor:** Detect the mask of the rubber and also, the logo. Sectorize it! (how?) If there is a size/form defect, as the system will discard the eraser, cut the anylisis My developed pipeline is as follows: - Binary Threshold (type = 3) with salt noise. ![image description](/upfiles/1480647589165448.png) - Canny Edge Detector - Contours Detection (I'll use the bigger one) - Mask - Crop to the region of interest (bounding box of the eraser). As you can see, contours is taking also the salt noise close to the rubber making it not perfect. **Do you know how to improve it?** ![image description](/upfiles/1480647695584597.png) - Some nice's algorithms founded on the net that I'll show the results. Detect hough lines, trying to determine a triangle (for sure there are more easier ways) ![image description](/upfiles/14806480182561679.png) Detect the logo with a black-hat, Ellipse, Kernel = 24 - 38. My teacher gives me the idea to catch only logo's pixels but I have no idea how to do it in a proper way ![image description](/upfiles/1480648103957591.png) Detect which pixels are inside or outside the contourn (as a previous to detect logo's pixels) I attach pointPolygonTest as given! ![image description](/upfiles/14806485099198661.png) And the final, SURF detector taken from: https://www.youtube.com/watch?v=6UgyHsvqrwg ![image description](/upfiles/14806484619825546.png) **Finally, any usefull link showing how to solve some situation woul be great.** My backproblem is that I don't know ho to search solutions of the problem on the internet.

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>