All Projects → chinthysl → AXI_PCB_defect_detection

chinthysl / AXI_PCB_defect_detection

Licence: MIT license
This repo contains data pre-processing, classification and defect detection methodologies for images from Advance XRay Inspection from multi-layer PCB boards. Proprietary AXI image dataset is not included in this repo. Users can use their own datasets on top of the OOP data extraction layer and neural network models implemented here.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to AXI PCB defect detection

yara-parser
Tools for parsing rulesets using the exact grammar as YARA. Written in Go.
Stars: ✭ 69 (+122.58%)
Mutual labels:  detection
rgbd person tracking
R-GBD Person Tracking is a ROS framework for detecting and tracking people from a mobile robot.
Stars: ✭ 46 (+48.39%)
Mutual labels:  detection
CarND-VehicleDetection
vehicle detection with deep learning
Stars: ✭ 34 (+9.68%)
Mutual labels:  detection
Perception-of-Autonomous-mobile-robot
Perception of Autonomous mobile robot,Using ROS,rs-lidar-16,By SLAM,Object Detection with Yolov5 Based DNN
Stars: ✭ 40 (+29.03%)
Mutual labels:  detection
RaspberryPi-4WD-Car
Yahboom 4WD smart robot with AI vision features for Raspberry Pi 4B
Stars: ✭ 31 (+0%)
Mutual labels:  detection
go-tensorflow-realtime-object-detection
Real-time object detection with Go and Tensorflow
Stars: ✭ 60 (+93.55%)
Mutual labels:  detection
device.js
🧬 Reactive library to observe essential browser and device properties.
Stars: ✭ 29 (-6.45%)
Mutual labels:  detection
detect-gpu
Classifies GPUs based on their 3D rendering benchmark score allowing the developer to provide sensible default settings for graphically intensive applications.
Stars: ✭ 749 (+2316.13%)
Mutual labels:  detection
face-mask-detection-tf2
A face mask detection using ssd with simplified Mobilenet and RFB or Pelee in Tensorflow 2.1. Training on your own dataset. Can be converted to kmodel and run on the edge device of k210
Stars: ✭ 72 (+132.26%)
Mutual labels:  detection
Log4j-CVE-Detect
Detections for CVE-2021-44228 inside of nested binaries
Stars: ✭ 33 (+6.45%)
Mutual labels:  detection
crowd density segmentation
The code for preparing the training data for crowd counting / segmentation algorithm.
Stars: ✭ 21 (-32.26%)
Mutual labels:  detection
opencv TLD
TLD:tracking-learning-detection 跟踪算法
Stars: ✭ 41 (+32.26%)
Mutual labels:  detection
Awesome-Vision-Transformer-Collection
Variants of Vision Transformer and its downstream tasks
Stars: ✭ 124 (+300%)
Mutual labels:  detection
brfv4 android examples
Android Studio project (Java)
Stars: ✭ 43 (+38.71%)
Mutual labels:  detection
jeelizGlanceTracker
JavaScript/WebGL lib: detect if the user is looking at the screen or not from the webcam video feed. Lightweight and robust to all lighting conditions. Great for play/pause videos if the user is looking or not, or for person detection. Link to live demo.
Stars: ✭ 68 (+119.35%)
Mutual labels:  detection
object detection
Implementatoin of object detection using Tensorflow 2.1.0 | this can be use in a car for object detection
Stars: ✭ 13 (-58.06%)
Mutual labels:  detection
detect-features
Detect and report browser and hardware features.
Stars: ✭ 63 (+103.23%)
Mutual labels:  detection
DecisionAmbiguityRecognition
Deep learning AI, that recognizes when are people uncertain
Stars: ✭ 16 (-48.39%)
Mutual labels:  detection
survey-computer-vision-2021
2021年计算机视觉技术综述分类汇总
Stars: ✭ 54 (+74.19%)
Mutual labels:  detection
ARFaceFilter
Javascript/WebGL lightweight face tracking library designed for augmented reality webcam filters. Features : multiple faces detection, rotation, mouth opening. Various integration examples are provided (Three.js, Babylon.js, FaceSwap, Canvas2D, CSS3D...).
Stars: ✭ 72 (+132.26%)
Mutual labels:  detection

AXI_PCB_defect_detection

This repo contains data pre-processing, classification and defect detection methodologies for images from Advance XRay Inspection from multi-layer PCB boards. Please go through our research paper if you need more details and be kind enough to Cite it if you are going to use this implementation.

Details of the proprietory dataset

  • Distinct .jpg images including all slices – 32377
  • Distinct ROIs with labels – 92208
  • PCB types – 17
  • Distinct XRay board views – 8063
  • Views containing correct ROIs – 6112, Views containing incorrect ROIs – 1951
  • Slices per XRay board view (slices per physical solder joint) – 3, 4, 5, 6
  • Number of solder joints – 22872
  • Correct joints – 15613, Incorrect joints – 7259
  • Correct-square solder joints – 14672
  • missing - 1496, short - 5605, insufficient - 4691 normal - 2880
  • 3 sliced joints - 5471, 4 sliced joints - 8590, 5 sliced joints - 97, 6 sliced joints - 277

Special Notes:

  • A single XRay board view has multiple ROIs marked.
  • A single defective ROI(solder joint) can have multiple defect labels.
  • If a XRay view contains one incorrect ROI, all solder joints in that view are considered as incorrect.

General Guidelines for contributors

  • Please add your data folders into the ignore file until DVC is setup
  • Don't do git add --all. Please be aware of what you commit.

Project file structure

├── non_defective_xml_files/        # put xml labels for non defective rois here
├── original_dataset/               # put two image folders and PTH2_reviewed.csv inside this
├── board_view.py                   # python class for a unique PCB BoardView
├── constants.py                    # constant values for the project
├── incorrect_roi_images.p          # this file contains file names of all incorrect rois
├── main.py                         # script for creating objects and run ROI concatenation
├── solder_joint.py                 # python class for a unique PCB SolderJoint
├── solder_joint_container.py       # python class containing all BoardView and SolderJoint objs
├── solder_joint_container_obj.p    # saved pickle obj for SolderJointContainer class
└── utils_basics.py                 # helper functions

Code explanation

solder_joint.py

+-----------------------------------------------------------------------+
|                           SolderJoint                                 |
+-----------------------------------------------------------------------+
|+ self.component_name                                                  |
|+ self.defect_id                                                       |
|+ self.defect_name                                                     |
|+ self.roi                                                             |
|+ self.is_square                                                       |
|+ self.slice_dict                                                      |
+-----------------------------------------------------------------------+
|+__init__(self, component_name, defect_id, defect_name, roi)           |
|+add_slice(self, slice_id, file_location)                              |
|+concat_first_four_slices_and_resize(self, width, height)              |
+-----------------------------------------------------------------------+
  • add_slice(self, slice_id, file_location):

    This method will add the slice id and corresponding image location of that slice to the self.slice_dict.

  • concat_first_four_slices_and_resize(self, width, height):

    In this method only 1st 4 slices from ids 0,1,2,3 are concatenated in a 2d square shape. Concatenated 2d image and the label of the joint is returned. You have to catch them in SolderJointContainer object and save to disk accordingly.

    If you want to write a new method of channel concatenation please modify this method. (For an example, if you want to generate gray scale image per slice and concatenate them as a pickle or numpy file)

board_view.py

+-----------------------------------------------------------------------+
|                           BoardView                                   |
+-----------------------------------------------------------------------+
|+ self.view_identifier                                                 |
|+ self.is_incorrect_view                                               |
|+ self.solder_joint_dict                                               |
|+ self.slice_dict                                                      |
+-----------------------------------------------------------------------+
|+__init__(self, view_identifier)                                       |
|+add_solder_joint(self, component, defect_id, defect_name, roi)        |
|+add_slice(self, file_location)                                        |
|+add_slices_to_solder_joints(self)                                     |
+-----------------------------------------------------------------------+
  • This class contains all the SolderJoint objects and all the slices details regarding that board view of the PCB.

solder_joint_container.py

+-----------------------------------------------------------------------+
|                           SolderJointContainer                        |
+-----------------------------------------------------------------------+
|+ self.board_view_dict                                                 |
|+ self.new_image_name_mapping_dict                                     |
|+ self.csv_details_dict                                                |
|+ self.incorrect_board_view_ids                                        |
+-----------------------------------------------------------------------+
|+__init__(self)                                                        |
|+mark_all_images_with_rois(self)                                       |
|+load_non_defective_rois_to_container(self)                            |
|+find_flag_incorrect_roi_board_view_objs(self)                         |
|+save_concat_images_first_four_slices(self, width=128, height=128)     |
|+print_container_details(self)                                         |
|+write_csv_defect_roi_images(self)                                     |
+-----------------------------------------------------------------------+
  • save_concat_images_first_four_slices(self, width=128, height=128):

    In this method only 1st 4 slices from ids 0,1,2,3 are concatenated in a 2d square shape. Concatenated 2d image and the label of the joints returned from the SolderJoint object is saved to the disk accordingly.

    If you want to write a new method of channel concatenation please modify this method.

main.py

SolderJointContainer object is created inside this script. Then using that object we can call the required method to generate concatenated images.

DVC integration

This section will explains about setting up the data version controlling and storage for the project. Data version control is integrated in this project. You can simple train any model by changing parameters of the neural network models. After training you'll see changes in data folders. DVC commit those changes followed by a git commit. Trained models and data will be tracked by a local DVC storage.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].