跳到主要內容

以AI深度模型檢測NB D件螺絲孔

Purpose:
To check if screw exists in each screw hole on D piece of notebook by Machine Learning.

Field test of MI4FA project : labeling 3 vacant holes and 1 hole with screw accurately; right pane indicated results of 4 holes with probabilities


Pictures of Field Test





Training:
Step:
Construct framework to take picture of piece D with conditioned ambient light spotted on
1.Collect pictures of screw hole with and without screw on notebook D piece in every project as many as possible.
2.Auto crop circular region of screw hole in pictures by OpenCV program

3.Train CNN model

training dataset:

























Inference:
1.Crop loosely









2.Inverse








3.Threshold






4.pyr
pyrUp
pyrDown



5.can algorithm




6.hough






7.square cropping



8.circle cropping with black padding




9.predict and labeling on picture directly





Result:








留言

這個網誌中的熱門文章

DeepRacer

Preliminary training: deepracer-github-simapp.tar.gz Reward function: ./opt/install/sagemaker_rl_agent/lib/python3.5/site-packages/markov/environments/deepracer_env.py action = [steering_angle, throttle] TRAINING_IMAGE_SIZE = (160, 120) Plotted waypoints in vertices array of hard track Parameters: on_track, x, y, distance_from_center, car_orientation, progress, steps,                                                                          throttle, steering, track_width, waypoints, closest_waypoints Note: Above picture is from https://yanpanlau.github.io/2016/10/11/Torcs-Keras.html