Skip to content
/ cork Public

Cork stopper quality analysis and comparison vision system using RGB shadow decomposition for industrial application.

License

Notifications You must be signed in to change notification settings

tentone/cork

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cork Stopper Quality

  • Cork stopper analysis and comparison vision system, capable of detecting defects on the booth sides of a cork stopper.

  • Developed using a Imaging Source DFK23UX236 camera and Linux.

  • System was triggered using an external machine that pushed the cork trough the camera FOV.

  • Uses a structured RGB light to measure shadows from 3 sides of the cork stopper.

Features

  • Automatic cork detection (based color and circular morphology).
  • Automatic detection parameters adjustment to accommodate different cork sizes in real-time.
  • Per-pixel shadow based defect measurement for a precise area of defect measurement.
  • Color channels are analyzed individually, and the defect detection is based on the RGB shadows.
    • Darker cork usually still reflects RED light, using RED, BLUE and GREEN light from different angles we can check if the shadow produced by the defect (hole) is common to all color channels.
    • Typical system cannot distinguish a hole (defect) from a darker zone (not a defect).
  • In the images bellow we can observe some results where its possible to observe darker zones in the cork not being classified as a defect.

Configuration

  • The project can use up to two individual cameras and has support for IP, USB, File image sources.
  • The QT interface only support Portuguese language. The configuration tab allows to customize the camera parameters used.
  • If there is not present a RGB light setup the system is still able to detect defects. But it is not as efficient and you may get some false positives.

Build and Run w/ QMake

  • Setup QT5 and compile OpenCV with QT support
  • Install QT Creator IDE
  • Change the "tiscamera" path under the corkselector.pro file
  • If the glibconfig.h is missing try the following command
  • sudo cp /usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h /usr/include/glib-2.0/glibconfig.h
cmake .
./build.sh

Code Style

  • camelCase for all names (except constants).
  • Beginning with a capital if it's a class, lowercase if not.
  • Constants in ALL_CAPS with underscore separating works.
  • Functions can be written the same as variables, camelCase (you can tell it's a function because it requires () after it).

Dependencies

License

  • This project is distributed under MIT license. (Available on the project Git repository on GitHub).

About

Cork stopper quality analysis and comparison vision system using RGB shadow decomposition for industrial application.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published