Skip to content
No description, website, or topics provided.
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.


Type Name Latest commit message Commit time
Failed to load latest commit information.

Surface Inspection Integration

This software package acts as a client to an industrial robot controller, integrating a GigE camera and machine learning algorithm for automatic defect detection and reporting.

The software architecture is in its current form in this version of the code, but will still require testing and (likely) bugfixes.


  1. Clone this repository to your machine
  2. Download the trained network from the following link: . When prompted for a password, enter resnet
  3. Copy RES101TrainedNET.mat into the Data folder
  4. Open MATLAB to the directory you cloned this repository to
  5. Configure connections to the IRC and Camera, as described below.
  6. Clear your MATLAB workspace: clear all;
  7. Start the inspection by instantiating the AutoOpticalInspection class:
aoi = AutoOpticalInspection();

The IRC will be automatically connected to, and the system will respond to packets from the IRC. 8. Important: After testing, run aoi.dispose(); to close the TCP connection to the IRC, the connection to the camera, and shut down the state machine. If this is not done, connections may persist in the background and cause errors when trying to restart the inspection.

Configuring IRC Connection

At the top of the /Modules/Mod_ProcessControl.m file, adjust the IRC IP address and Port number to match the actual IRC.

Configuring the Camera Connection

In /Modules/Mod_ImageAcquisition.m modify the IP address for the camera. The default exposure (shutter speed) can be adjusted here as well.

You can’t perform that action at this time.