Wang Shaoping 1 Yan Yonglin 1 Hao Xiaofeng 2Li Xianjun 2Wang Xiaogang 1
(1. Central South University of Forestry and Technology, College of Mechanical and Electrical Engineering, Changsha, Hunan 410004; 2. Central South University of Forestry and Technology, College of Materials Science and Engineering, Changsha, Hunan 410004)
DOI:10.12326/j.2096-9694.2022132
1 Algorithm Principles and Calculation Steps
Figure 1 Overall process of the algorithm for measuring the outer diameter and thickness of bamboo tubesFig.1 General flow chart of bamboo tube outer diameter and thickness measurement algorithm
1.1 Object Detection
1.2 Stereo Matching and Distance Calculation
Figure 2 Principle of binocular vision rangingFig.2 Principle of binocular vision ranging
(1) |
1.3 Semantic Segmentation
Figure 3 MobileNet-SegNet structureFig.3 MobileNet-SegNet structure
1.4 Size Calculation
(2) |
2 Data Preparation and Model Training
2.1 Network Training and Test Set Preparation
Figure 4 Image results of labeling bamboo cross-sectionFig.4 Image results of labeling bamboo cross-section
2.2 Training Results
Figure 5 YOLOv4-Tiny network trainingFig.5 YOLOv4-Tiny network training
Figure 6 MobileNet-SegNet network trainingFig.6 MobileNet-SegNet network training
Table 1 YOLOv4-Tiny model performance with different input sizesTab.1 YOLOv4-Tiny model performance with different input sizes
(3) |
(4) |
Table 2 Performance comparison between MobileNet-SegNet and SegNetTab.2 Performance comparison between MobileNet-SegNet and SegNet
Figure 7 Comparison of data augmentation trainingFig.7 Comparison of data augmentation training
3 Raspberry Pi Embedded Experimental Platform Algorithm Deployment
3.1 OpenVINO Asynchronous Inference
Figure 9 OpenVINO asynchronous inferenceFig.9 OpenVINO asynchronous inference
(5) |
Through testing, when detecting a single target on the Raspberry Pi 4B, the main program takes 0.1292 s for a single inference cycle, and based on the data in Tables 1 and 2, to reduce latency, the number of requests for the two networks is set as follows: YOLOv4-Tiny 4 (2 for left and 2 for right image inference), MobileNet-SegNet 2.
3.2 Camera Calibration and Stereo Rectification
(6) |
Table 3 Camera calibration resultsTab.3 Camera calibration results
Figure 10 Image calibration effectFig.10 Image calibration effect
4 Algorithm Verification and Result Analysis
4.1 System Performance Testing
Table 4 Comparison of synchronous and asynchronous inferenceTab.4 Comparison of synchronous and asynchronous inference
4.2 Measurement Conditions Analysis
Table 5 Outer diameter measurement data at different distances without deflection anglesTab.5 Outer diameter measurement at different distances without deflection angles
Table 6 Outer diameter measurement data at 30-40 cm fixed distance with different anglesTab.6 Outer diameter measurement at 30-40 cm distance with different angles
4.3 Verification Experiment for Bamboo Tube Outer Diameter and Thickness Measurement
Table 7 Measurement of bamboo tubes with different outer diametersTab.7 Measurement of bamboo tubes with different outer diameters
5 Conclusion
Author Profile: Wang Shaoping, Male, Master’s Student, College of Mechanical and Electrical Engineering, Central South University of Forestry and Technology.
Corresponding Author: Yan Yonglin, Male, Professor, College of Mechanical and Electrical Engineering, Central South University of Forestry and Technology.
Funding Information: Key R&D Project of Hunan Province 2020 “Research and Demonstration of Key Technologies for Manufacturing Large-Scale Bamboo Engineered Materials” (2020NK2021).
Leave a Comment
Your email address will not be published. Required fields are marked *