Automatic object inspection classification example
In Chapter 5, Automated Optical Inspection, Object Segmentation, and Detection, we looked at an example of automatic object inspection segmentation where a carrier tape contained three different types of object: nuts, screws, and rings. With computer vision, we will be able to recognize each one of these so that we can send notifications to a robot or put each one in a different box. The following is a basic diagram of the carrier tape:

In Chapter 5, Automated Optical Inspection, Object Segmentation, and Detection, we pre-processed the input images and extracted the regions of interest, isolating each object using different techniques. Now, we are going to apply all the concepts we explained in the previous sections in this example to extract features and classify each object, allowing the robot to put each one in a different box. In our application, we are only going to show the labels of each image, but we could send the positions in the image and the label to other devices, such as a robot. At this point, our goal is to give an input image with different objects, allowing the computer to detect the objects and show the objects' names over each image, as demonstrated in the following images. However, to learn the steps of the whole process, we are going to train our system by creating a plot to show the feature distribution that we are going to use, and visualize it with different colors. We will also show the pre-processed input image, and the output classification result obtained. The final result looks as follows:

We are going to follow these steps for our example application:
For each input image:
- Preprocess the image
- Segment the image
- For each object in an image:
- Extract the features
- Add the features to the training feature vector with a corresponding label (nut, screw, ring)
- Create an SVM model.
- Train our SVM model with the training feature vector.
- Preprocess the input image to classify each segmented object.
- Segment the input image.
- For each object detected:
- Extract the features
- Predict it with the SVM
- model
- Paint the result in the output image
For pre-processing and segmentation, we are going to use the code found in Chapter 5, Automated Optical Inspection, Object Segmentation, and Detection. We are then going to explain how to extract the features and create the vectors required to train and predict our model.
- 計(jì)算機(jī)組成原理與接口技術(shù):基于MIPS架構(gòu)實(shí)驗(yàn)教程(第2版)
- Hands-On Data Structures and Algorithms with Rust
- 數(shù)據(jù)可視化:從小白到數(shù)據(jù)工程師的成長(zhǎng)之路
- Unity 5.x Game AI Programming Cookbook
- 云計(jì)算環(huán)境下的信息資源集成與服務(wù)
- InfluxDB原理與實(shí)戰(zhàn)
- Mastering Machine Learning with R(Second Edition)
- Mockito Cookbook
- 智能數(shù)據(jù)分析:入門(mén)、實(shí)戰(zhàn)與平臺(tái)構(gòu)建
- Python數(shù)據(jù)分析與挖掘?qū)崙?zhàn)(第3版)
- 大數(shù)據(jù)技術(shù)原理與應(yīng)用:概念、存儲(chǔ)、處理、分析與應(yīng)用
- Access 2010數(shù)據(jù)庫(kù)程序設(shè)計(jì)實(shí)踐教程
- 大數(shù)據(jù)分析:R基礎(chǔ)及應(yīng)用
- C# 7 and .NET Core 2.0 High Performance
- 一本書(shū)講透數(shù)據(jù)治理:戰(zhàn)略、方法、工具與實(shí)踐