- The Global lab software is opened. The Biscuit F is analyzed by following steps:
Preprocessing stage
Step 1: Main menu->Acquire->Passthrough->Freeze Frame
Analysis stage
Step 2: Main menu->Analysis->AOI Histogram->Box->Intensity (Histogram and Data obtained)
Step 3: Main menu->Analysis->Point Histogram->Point Info (Range without filter obtained)
Step 4: Main menu->Filtering->Morphological->Erosion & Dilation->Box (Filtering performed)
Steps 2 & 3 are repeated and new range with filter is obtained.
- The step 1 to Step 4 is repeated for Biscuit P, Biscuit W, Biscuit D and background. The range without filter and the range with filter are obtained and tabulated in Table 1.1. Histogram for each biscuit before and after filter are recorded (Figure 1.1-1.8). The new range for index replace is determined.
- Index replace is performed by following steps:
Optimizing stage
Step 5: Main menu->Contrast->Index Replace->Box
Index range 0-110 is replaced by 0, 111-160 is replaced by 150, 161-195 is replaced by 190 and 196-255 is replaced by 255. Percentage pixels at each new index number for each biscuit are tabulated in Table 1.2.
RESULTS
Table 1.1 Range of biscuit
Table 1.2 Pixel and pixel percentage at new index number
Table 1.3 Size of biscuit
DISCUSSIONS
- The machine vision setting and configurations are optimized. Spotlights and A big paper cone are used to provide and collecting light around biscuit area.
- As in Table 1.1, it is observed that the value of range with filter is smaller than the value of range without filter. The value is overlap each other but after filtering the overlap is decreased. Therefore, better results are obtained after image filtering by erosion and dilation once.
- Range of index number is replaced by new index number. Standard milk chocolate biscuit, biscuit F has 59.7% pixel at index number 0 and 39% pixel at index number 255. Index number 0 is black and 255 is white. In biscuit F, 59.7% is chocolate and 39% is due to white background. In biscuit M, the percentage at index number 0 and 255 is 45.3% and 42.6%. The chocolate percentage is less than biscuit F shows that biscuit M is contaminated with some white chocolate. At index number 190, the percentage of pixel is 10.1%. This shows that some white chocolate is mixed with chocolate and is significant.
- For biscuit P, the percentage at index number 0 and 255 is 43.4% and 39.9%. By compare these percentages with biscuit M, it is found that the index number 0 is less than that of biscuit M. This shows that percentage of chocolate for biscuit P is lesser than biscuit M. At index number 150, the percentage of pixel is13.4%. This shows that inadequate chocolate on the biscuit surface and is significant.
- For biscuit D, the percentage at index number 0 and 255 is 44.3% and 53.7%. Looking at index number 150 and 190, the percentage is very low. By comparing biscuit D with biscuit F, it is worth to note that biscuit D has greater white background. This shows that some portion of biscuit might lost.
CONCLUSIONS
To sum up, biscuit F has significant chocolate, biscuit D has significant white background, biscuit M has mixed with white chocolate due to significant percentage pixel at index number 190 and biscuit P has biscuit with less chocolate due to significant percentage pixel at index number 150. By visual inspections on Biscuit F, D, M and P, the results are agreed with actual biscuits. The system can differentiate and identify biscuits with range of common defects. Therefore, it is concluded that the system is appropriate for the task of inspecting these biscuits.