Defect detection framework on cylindrical metal components on robotic cell using computer vision technologies (deep learning models).
- Python 3.9
- zmqRemoteApi
- Torch 1.10.1
pip install torch==1.10.1+cpu torchvision==0.11.2+cpu torchaudio==0.10.1 -f https://download.pytorch.org/whl/cpu/torch_stable.html
- tqdm
- opencv-python
- scipy
- open3d
- scikit-image
- filterpy
- pandas
-
Install CoppeliaSim Edu from here
-
Install all dependencies above using the following command:
pip install -r requirements.txt
Note you also need to install yolov7 requirements in the
yolov7folder. -
Install zmqRemoteApi (CoppeliaSim API) from here
-
Download supporting files and models from here and put YoloV7 model folder inside the
srcfolder.Warning Don't change the folder name of the YoloV7 model folder. It should look like this
src/yolov7_model.
-
To run this program make sure you installed all dependencies and supporting files and models.
-
Run CoppeliaSim Edu and open the scene file
scene.tttin thedata/cellfolder.Note Don't start the scene from CoppeliaSim, it will be started automatically from the program.
-
Run the main entry points which is
defectron.pyfile in themainfolder. -
Make sure you change the workpiece information in the
defectron.pyfile to match your workpiece, if you are using a new workpiece different from the one in the scene. -
When you run the
defectron.pyfile and the scene is started, make sure you speed up the simulation to its maximum speed by pressing the "bunny" button in the top right corner of the CoppeliaSim window. -
Now, relax and enjoy the show. 😄
Note If the run fails from the first time, try to run it again as YoloV7 might require to download the onnx package.
- Inspecting workpiece step:
sample1_trimmed.mp4
- 3D Scanning of the defective regoin step: