← Back to projects

InspectFlow

InspectFlow passes or rejects parts on a conveyor, using either OpenCV rules or a small CNN I trained.

Rules, poor light
46% right
CNN, poor light
100% right
CNN, one CPU core
18 ms a frame
On the same frames, the rules miss three of seven parts and the CNN gets all seven.

Twenty test scenes

Detector and lightRight callGood parts rejectedParts missedms per frame
Rules, normal100%0 of 550 of 2201.6
Rules, poor46%28 of 5591 of 2201.3
CNN, normal100%0 of 550 of 22017.0
CNN, poor100%0 of 550 of 22018.1
InspectFlow dashboard replaying a poor-light run with the CNN, with the run's score under the camera view
The scenes are synthetic. The CNN has not been tested on camera footage.

Run

pip install .
inspect-flow          # dashboard
inspect-flow bench    # the table above