Create an Object Size Detection Solution

Monitor mechanical bolts as they move down a conveyor belt. When a bolt of irregular size is detected, this solution emits an alert.

Target Operating System Ubuntu* 16.04 LTS
Time to Complete 45 minutes

GitHub* (C++) GitHub (Python*) GitHub (Golang)

What You Will Learn 

This application demonstrates how to use computer vision to detect and measure the approximate size (length and width) of parts moving on an assembly line. Using a camera mounted above the assembly line belt, this application monitors the parts and sends a visual alert if it detects an over- or under-sized part.

Gain insight into the following solutions:

  • Computer vision applications for IoT
  • Inference to analyze datasets
  • Industrial market IoT

Use the skills learned in this reference implementation to develop similar IoT solutions.

Learn to build and run an application with these capabilities:

Track mechanical part count and size.
Alert users if an irregularly sized part is detected.
Interpret data from either a live webcam or preexisting video.

How it Works

This object size detector works with a video source, such as a camera.

  1. The application captures video frames and processes the frame data with OpenCV algorithms.
  2. It detects objects on the assembly line and calculates the area (length x width) that the objects occupy.
  3. If the calculated area is not within a predefined range, as specified via command line parameters, the application visually alerts the assembly line operator.
  4. Optionally, the application sends data to a message queuing telemetry transport (MQTT) machine, or machine messaging server, as part of an assembly line data analytics system.