Development of1000-kernel Corn Weight Detector Based on Machine Vision
- Author
- WangGang
- Advisor
- WuWenFu
- School
- Jilin University
- Major
- Agricultural Electrification and Automation
- Classification
- TP391.41 Image recognition device
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 91
- Citations
- 0
Abstract
In order to get the1000-kernel weight of grains, the number of grains is mostlycounted manually, which consumes a lot of time and leads to a big error, limiting theapplication of the1000-kernel weight of grains. To detect the1000-kernel weight ofcorn automatically, machine vision technology was applied to the rapid counting ofcorn kernels and a detector of1000-kernel weight of corn based on machine visionwas developed in this paper.The main research work is as follows:(1) In this paper, the detector of1000-kernel weight of corn was designed and aprototype was made for experiment. This instrument includes feeding module,transportation module, weighting module and image acquisition system. The feedingmodule designed on the principle of seed metering device, has a simple structure, iseasy to control and makes less mechanical damage on corn kernels. The USBinterface digital camera without the image acquisition card and easy to use wasselected as the image acquisition device, which greatly reduced cost of the instrument.Conveyor belt was introduced to the instrument as the transportation module andimage acquisition platform. Choosing matte belt as the image acquisition backgroundgreatly reduced the impact of reflective background to image processing.(2) The circuit of this instrument with the core of STC89C51RC includes powersupply, stepper motor driving module, two-phase AC motor driving module, signalmodulation and analog-to-digital conversion module and serial communicationmodule. HX711chip is inexpensive and simple to use. The error range of weighingsystem with HX711as the signal modulation and analog-to-digital conversion moduleis less than±0.6g.(3) Preprocessing and binarization of corn image were reasearched in this paper.Gray-scale image was obtained by extraction of the color component of the image.Between six color components H, S, I, R, G and B, the R component in which thecorn boundary was clear and gray value was uniformly distributed in corn region hadthe highest contrast ratio. Dynamic threshold was used in gray-scale image segmentation, a solution to binarize the uneven illumination image with sub-imagesize200×200and the maximum between-cluster variance algorithm as sub-imagethreshold selection method.(4) The watershed transform based on gradually changing threshold waspromoted for image segmentation of corn count using image processing methods.First, binary image was processed with Euclidean distance transform, and regionswhich values higher than the initial threshold in this image were merged, and then theimage was segmented by watershed transform. To avoid over-segmentation, singleseed regions were cut from resource image and pasted in the result image. After that ifresource image was not empty, increase threshold and repeat the above process.Finally, the corn mount of the result image was counted. The algorithm is stable andaccuracy. The number of corn kernels in image was counted after image segmentationwith the watershed transform based on gradually changing threshold algorithm, andthe error range of corn number was less than±0.5%.(5) According to the distribution law of corn area,a method was designed tocount corn kernels automatically by the area of regions. For the big error of the areamethod, another method was promoted to distinguish the regions with different cornkernels by their concave regions.(6) Computer software was developed on the LabVIEW software platform. Serialinterrupt technology and the state machine program structure were used in softwaredesigning. In this way computer software’s problems poor real-time performance andslow response were solved, and determination cycle was greatly reduced.(7) When software, hardware and debugging of the control circuit were finished,the prototype was test under speed27rpm and48rpm of seed metering respectively.The error range of1000-kernel weight of corn is less than±1.5%, and detection speedwas higher than15corn kernels per second, which met the design requirements.
Table of contents
Summary 4-6
Abstract 6-12
Chapter 1 Introduction 12-18
1.1 purpose and significance 12 - 1.2 Status of domestic and foreign research 13
13-15
1.2.1 machine Vision technology in Agricultural Engineering 13
1.2.2 machine Vision Technology in corn detection 13-14
1.2.3 Research Survey instrument grain weight 14-15
1.3 grain weight determination 15-16
1.4 The main research contents 16-18
Chapter 2 hardware Design 18-29
2.1 overall design 18
2.2 mechanical design 18-21
2.2.1 feeding mechanism 20-21
2.2.2 image acquisition device 21
2.3 grain weight instrument circuit design 21-28
2.3.1 power Module design 22-23
2.3.2 microcontroller 23
2.3.3 watchdog circuit 23-24
2.3.4 stepper motor control circuit 24
2.3.5 AC motor control circuit 24-25
2.3.6 weighing sensor data collection 25-27
2.3.7 serial communication module 27-28
2.3.8 LCD circuit 28
2.4 of this chapter subsections 28-29
Chapter 3 count corn image segmentation algorithm 29-51
3.1 image preprocessing 29-34
3.1.1 color images to grayscale images 29-30
3.1.2 grayscale image filtering 30-32
3.1.3 image enhancement 32-34
3.2 binary image processing 34-37
3.2.1 global threshold method 34-35
3.2.2 uneven illumination image binarization 35 - 37
3.2.3 binary image after processing 37
3.3 contacts grain segmentation algorithm 37-44
3.3.1 watershed segmentation algorithm 38 - 39
3.3.2 watershed algorithm based on distance transform 39-40
3.3.3 segmentation algorithm based on extreme region merging watershed 40-42
3.3. 4 gradually changing watershed algorithm threshold 42-44
3.4 maize grain counting algorithm 44-50
3.4.1 area Method 44-47
3.4.2 concave area law 47-50
3.5 Summary 50-51
Chapter 4, system programming 51-64
4.1 host machine programming 51-58
4.1.1 software development environment 51-52
4.1.2 PC program structure 52-53
4.1 .3 parameter setting module 53-54
4.1.4 serial communication module 54-56
4.1.5 image acquisition module 56-57
4.1.6 image processing module 57-58
4.2 lower machine programming 58-63
4.2.1 main design 58-60
4.2.2 serial communication module 60-61
4.2.3 weight acquisition program 61-63
4.3 Summary 63-64
5th Chapter system Performance test 64-81
5.1 weighing sensor calibration 64
5.2 image grain count test 64-66
5.2.1 area France 64-65
5.2.2 concave area law 65-66
5.3 image segmentation algorithm test 66-72
5.3.1 based extreme region merging watershed segmentation algorithm test 66-69
5.3.2 gradually changing watershed algorithm threshold 69-72
5.4 mechanical tests tiled institutions 72-73
5.5 system performance testing 73-80
5.5.1 weighing error 74-75
5.5.2 counting error 75 - 76
5.5.3 grain weight measurement error 76-79
5.5.4 test speed 79-80
5.6 Summary 80-81 <br / > Chapter 6 Full Summary 81-83
6.1 summarizes 81-82
6.2 further study envisaged 82-83
references published 83-88
master's degree during the academic 88-90
Thanks 90-92
tutors and Author 92
Related dissertations
- Capsule Identification Technology in Machine Vision Technology
- Design of Peanut Seeds Automatic Recognition System Based on Machine Vision
- Multi-Parameter Testing System for Optoelectronic Sight Based on Labview
- Assembly Line Inspection of Brake Master Cylinder Piston Based on Machine Vision
- The Research of Mesh Fabric Surface Quality Deetction System Based on Machitre Vision
- Shape of Image Recognition Technology and Applied Reseach
- Image Processing of Agricultural Products(Fruits) Based on Illumination Invariance
- Research on the Difficiency of China’s Corn Production Efficiency
- The Corn Area Yield Insurance Risk Regionalization
- Research on the Remote Sensing Image Segmentation Algorithm Based on Wavelet Transform
- Design of Home Environment Monitoring System Based on ZigBee Technology
- Research and Application on the Remote Intelligent Monitoring System of Grain Depot
- The LabVIEW-based Design of Filling Stations Monitoring System
- Smart Home Monitoring System Based on Ni Wireless Sensor Network
- The Design of Monitoring System for the Photovoltaic Plant Based on DSP
- Design of Circuit Testing System of Vehicle Fuse Box Based on LabVIEW
- Study on the System of Greenhouse Environment Measurement Based on Zigbee Technology
- Design and Implementation of Terminal for Snowflakes Beef Carcass Quality Measurement System Based on Embedded and Machine Vision
- Research of Permeability Testing System for Clay
- Drowsiness Detection System for the Sentry Based on the Surveillance Video