Giter Site home page Giter Site logo

tentone / cork Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 24.62 MB

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

License: MIT License

Shell 5.10% CMake 1.27% C++ 91.43% QMake 2.20%
opencv cork computer-vision defect-measurement defect-detection rgb-shadows

cork's Introduction

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).

cork's People

Contributors

tentone avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.