CN116233581A - Agricultural and forestry disease spore image acquisition method - Google Patents

Agricultural and forestry disease spore image acquisition method Download PDF

Info

Publication number
CN116233581A
CN116233581A CN202310138582.9A CN202310138582A CN116233581A CN 116233581 A CN116233581 A CN 116233581A CN 202310138582 A CN202310138582 A CN 202310138582A CN 116233581 A CN116233581 A CN 116233581A
Authority
CN
China
Prior art keywords
image
air
disease
module
box body
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310138582.9A
Other languages
Chinese (zh)
Other versions
CN116233581B (en
Inventor
王波涛
种传刚
郝可馨
匡益乐
尹健光
刘剑飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing University of Technology
Original Assignee
Beijing University of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing University of Technology filed Critical Beijing University of Technology
Priority to CN202310138582.9A priority Critical patent/CN116233581B/en
Publication of CN116233581A publication Critical patent/CN116233581A/en
Application granted granted Critical
Publication of CN116233581B publication Critical patent/CN116233581B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Microscoopes, Condenser (AREA)
  • Emergency Alarm Devices (AREA)

Abstract

A method for collecting the images of disease spores in agriculture and forestry includes such steps as sucking the air containing disease spores by suction tube continuously, amplifying the air at a certain position of suction tube by high-power microscope, continuously photographing by digital camera, overlapping the images, and repeating the collecting procedure. The implementation of the system involves two parts of a hardware system and a software program, wherein the hardware system comprises a box body, an air duct mechanism, a photographing mechanism, a focusing mechanism, a control mechanism and a power supply mechanism, and the software program comprises an acquisition module, an image module, a user module and a communication module. The invention can realize remote real-time full-automatic collection of disease spore images, spore image processing and disease burst early warning; the intelligent agricultural and forestry intelligent conversion system has the characteristics of low equipment cost, high collection efficiency, strong practicability and the like, so that the product can be widely popularized, and the intelligent conversion of the traditional agriculture and forestry is quickened.

Description

Agricultural and forestry disease spore image acquisition method
Technical Field
The invention relates to the field of intelligent agriculture and forestry disease early warning, in particular to a method for acquiring an agricultural and forestry disease spore image.
Background
In agriculture and forestry production, the agricultural grain production is affected by a plurality of disease spores, for example, if the agricultural grain production is not timely subjected to disease early warning and control, the large-area yield reduction of the grain can be caused, and even the national safety can be affected. In the past, the means of manually monitoring spores is difficult to accurately and rapidly detect agricultural disease spores and send out early warning, so that the purpose of improving monitoring efficiency can be achieved only by adopting a spore identification system based on an image identification technology to automatically identify and early warn the agricultural disease spores. In addition, the existing spore monitoring technology is mainly focused on a processing method after image data are acquired, but the innovation of an acquisition technical scheme is little, and particularly, the research on the field spore image data acquisition technology is less, and a novel acquisition method is necessary to be explored.
The conventional collection method at present mainly relies on manually placing a glass slide coated with mucus in the field, waiting for the glass slide to adsorb spores in the air within a certain time interval, then manually retrieving the spores, observing the spores under a microscope and photographing, and only obtaining single spore pictures for a certain period of time, so that the number of pictures is small, the acquisition process is complicated, and the time consumption is long. In recent years, a new collection method is that a certain number of glass slides are controlled by a motor or spores in air are adsorbed by an adhesive tape and then continuously moved and photographed on a mechanical chain conveyor belt, so that spore pictures in different time can be obtained remotely and fully automatically, but the quality of the obtained spore pictures is poor and the quantity is limited due to the influence of shaking of the conveyor belt and the limitation of the number of the glass slides. And the system equipment built by the method has high integration level and high hardware cost, so that the use threshold of a user is improved, and the agricultural and forestry disease spore image acquisition method still needs to be continuously explored.
Disclosure of Invention
The invention provides a novel method for acquiring an agricultural and forestry disease spore image, which has the following basic ideas:
sucking air containing disease spores continuously by using a suction pipe, amplifying the air at a certain position of the suction pipe by using a high-power microscope for a certain period of time in the air sucking process, continuously photographing by using an attached digital camera, overlapping the photos, and repeating the collecting process to obtain the required number of collected photos.
The specific idea is as follows:
1. the embedded control board is used for controlling a digital camera, a light supplementing lamp, a stepping motor, an air extracting pump and the like attached to the high-power microscope to be matched to realize full-automatic collection of the disease spores, wherein the key steps are that the high-power microscope is controlled to amplify and continuously and rapidly shoot at the same position in a certain time period by the attached digital camera, and the amplification factor of the high-power microscope is more than 1000 times; and (3) after obtaining the disease spore image, carrying out image superposition, and finally completing recognition and counting of the superposed image by using an autonomously designed disease spore recognition algorithm. Compared with various disease spore collecting systems in recent years, the invention does not need to frequently and periodically replace glass slides, adhesive tapes, conveyor belts and the like, thereby greatly reducing equipment cost, equipment operation difficulty and maintenance cost and obtaining high-quality and large-quantity disease spore pictures. Therefore, the invention provides a novel agricultural and forestry disease spore image acquisition method which is low in cost, high in efficiency and easy to operate in agricultural and forestry production activities.
The invention aims to solve the technical problems that:
an efficient agriculture and forestry disease spore image automatic acquisition method is designed. The specific implementation relates to two parts of contents of hardware system design and software program design.
The technical scheme adopted by the invention aiming at the technical problems is as follows:
related hardware is selected and designed according to the acquisition process requirement, and the software function is mainly to realize the full-automatic acquisition of the disease spores, the disease spores image processing and the like by the control hardware.
The hardware part is the main body of the disease spore collecting system and is also the most basic part. The hardware equipment design mainly comprises a box body, an air duct mechanism, a photographing mechanism, a focusing mechanism, a control mechanism and a power supply mechanism. The following describes the technical scheme of the hardware part of the present invention in detail:
firstly, the model selection of all hardware components accords with the national standard and can work normally at the temperature of-30 degrees to +60 degrees, because the installation environment of the hardware equipment is an unmanned environment in the field, the weather problem in four seasons can be overcome.
The box design needs to let the collection part more stable, safe, the efficient go on, so design two inside and outside boxes, its interior box utilizes the screw fixation to be on fixed baffle in outer box inside, and the inside wind channel mechanism that contains its important collection flow of interior box, mechanism of shooing, focusing mechanism, outer box outside is installed and is kept off rain cap and business turn over gas port filter screen.
The air duct mechanism is an air source and guarantee of a collection area, stable and uniform air flow is required, and large shaking cannot be caused. The air inlet and outlet device comprises an air inlet and outlet channel fixing device, an air inlet channel, an air inlet fixing device of a ventilating duct, an acrylic air duct collecting pipe, an air outlet channel and an air pump. The air pump is a small vacuum air pump with small power and low air suction speed, is a power source of air in an air duct, is fixed on the right side of the inside of the outer box body and is controlled by the embedded control board, an air inlet of the air pump is connected with an air outlet channel for air suction, and an air outlet of the air pump is fixed on the right side of the outer box body for air discharge. The air inlet stabilizing device of the ventilating duct is fixed on the middle right above the inner box body, is connected with the air inlet channel and the acrylic air duct collecting pipe, and has the function of providing stable and uniform air for the acrylic air duct collecting pipe. The air inlet/outlet channel is responsible for stable gas transmission between the inner box body and the outer box body, and latex tubes are selected for enhancing extensibility and operability. The acrylic air duct collecting tube is designed to support the amplification of a high-power microscope and is used for collecting images by an attached digital camera, is fixed between the attached digital camera of the high-power microscope and a light supplementing lamp, has the most stable air flow and is a disease spore image collecting area. The air inlet channel is connected with an air inlet channel fixing device, and the design of the air inlet channel fixing device reduces instability caused by air entering wind speed to the greatest extent.
The photographing mechanism is an important part of the collection effect and quality, and can rapidly conduct microscopic photographing. The light supplementing device consists of a digital camera attached to a high-power microscope, an acrylic air duct collecting pipe and a light supplementing lamp. The digital camera attached to the high-power microscope is customized by a manufacturer, and can rapidly conduct microscopic photographing. The high-power microscope and the attached digital camera are fixed on the sliding table bracket, and the microscope lens part of the high-power microscope is opposite to the acrylic air duct collecting pipe for microscopic amplification shooting of disease spores flowing in the acrylic air duct collecting pipe. The right side of the acrylic air duct collecting pipe is provided with a light supplementing lamp, the light supplementing lamp is connected with an embedded control board, the switch and the brightness are controlled by the light supplementing lamp, the height of the light supplementing lamp and the micro lens part are on the same horizontal line, and sufficient illumination conditions are provided for microscopic amplifying shooting of a digital camera attached to a high-power micro mirror.
The focusing mechanism carries out focal length fine adjustment according to spore type parameters, and the precision is required to be very high and the stability is high. So the design is carried out by selecting the silk shaft slide bar, the two-phase stepping motor and the stepping motor driver. The whole mechanism is arranged inside the inner box body, the wire shaft sliding rod and the two-phase stepping motor are transversely connected and placed at the bottom of the inner box body, the stepping motor driver is respectively connected with the two-phase stepping motor and the embedded control board circuit and placed beside the two-phase stepping motor, and the embedded control board sends out a control instruction focusing mechanism to respond to realize a focusing function.
The control mechanism is the brain of the whole hardware device, and because of the high software requirement performance, an embedded control board is used, which is similar to the combination of raspberry group and STM 32. The router is composed of an embedded control board and a router. The bottom of the outer box body is placed, the electric wires and the USB data wires connected with the control pins are bundled together and fixed below the inner box body and penetrate through the inner box body to be connected to related hardware for collection, and the related hardware is controlled to conduct collection operation.
The power supply mechanism supplies power to the whole hardware equipment, and can adopt a storage battery or mains supply. The bottom of the outer box is placed, the switch thereof is placed on the side wall of the outer box, and the power supply wires thereof are bundled together and fixed under the inner box and connected to each hardware through the inner box.
The software part is the driving core of the whole system and is the most important part, and is developed by means of the hardware embedded control board. The disease spore collecting work of the auxiliary hardware is efficiently realized, so that the whole system can realize remote full-automatic disease spore image collecting under the conditions of multiple points and high concurrence, and the collected disease spore images are stored, processed and transmitted.
The software part design of the invention is realized in an abstract and modularized way according to the function classification, and mainly comprises four parts of an acquisition control module, an image module, a user module and a communication module. The functions, designs and implementations of the four modules are described below.
1. The collection control module is mainly responsible for an automatic collection part of the disease spores, controls the whole automatic collection flow of the disease spores, and uniformly distributes hardware equipment such as a light supplementing lamp, an air extracting pump, a digital camera attached to a high-power microscope, a stepping motor driver and the like in the collection process according to the collection flow of the disease spores, so that the collection control module is the first key step of the software part of the invention. The program design is mainly divided into two parts, namely an acquisition flow control program and a hardware pin control program.
(1) And the acquisition flow control program is used for integrally controlling the acquisition flow, and the design logic is that after an acquisition instruction is received, an air pump and a light supplementing lamp are firstly turned on, then the focal length of the high power microscope is adjusted, different focal length gear selections are carried out according to different selected disease spores, and after the focal length is adjusted, the acquisition is formally carried out, and the acquisition is continuously carried out according to a set time interval. Firstly, a digital camera attached to a high-power microscope is utilized to continuously and rapidly photograph, then an image module is used for image processing, and the next acquisition is carried out until the acquisition times are reached or a user stop instruction is received after the processing is completed.
(2) And a hardware pin control program for designing a pin level change control program so as to control the equipment required by the acquisition process. The light supplementing lamp is turned on and off by utilizing the high-low conversion of the pin level, the brightness of the light supplementing lamp is further adjusted by utilizing the PWM wave output by the high-low conversion of the pin level, the sucking pump is turned on and off by utilizing the high-low conversion of the pin level, the stepping motor driver is used for controlling the rotating speed of a motor by utilizing the PWM wave output by the high-low conversion of the pin level, the motor direction is controlled by utilizing the high-low conversion of the pin level, the motor shake is weakened by utilizing a click acceleration and deceleration algorithm, and the digital camera attached to the high-power micro mirror is connected with an embedded control board through a USB (universal serial bus) so that a disease spore picture can be acquired by utilizing an internal video screenshot function of the system, and the part is embedded in an image acquisition program part of an image module.
2. The image module is used for carrying out related operation on the disease spore image data and is mainly responsible for the acquisition, processing and transmission work of the disease spore image, and is a second key step of the invention. The program design is mainly divided into three parts according to the sequence of image flow and corresponding functions, namely an image acquisition program, an image processing program and an image transmission program.
(1) The invention uses a high-power microscope to amplify and uses an attached digital camera to shoot the disease spore image, the attached digital camera of the high-power microscope is connected to an embedded control center through a standard USB interface, the embedded control center is provided with an embedded Linux system, the attached digital camera of the high-power microscope is equivalent to a conventional video input device, and the Linux system is provided with a video device driving frame V4L2 for use, so the image acquisition program uses the frame to call a kernel function of the frame to realize the disease spore image acquisition work.
(2) The image processing program is the most important part of the image module, and has the main functions of executing an image superposition algorithm on the collected disease spore image, and then executing a spore recognition algorithm on the processed disease spore image and counting.
The main design flow is image acquisition, image superposition and superposition image recognition. The first step of image acquisition sources is based on a plurality of pictures obtained by the image acquisition program, the second step of overlapping the pictures, and the third step of identifying and counting disease spores according to the overlapped images.
(3) The image transmission program is the last part of the program of the image module, and has the main function of being responsible for transmitting all disease spore pictures after image processing to a fixed remote cloud server, wherein the cloud server is bound with an embedded control board to form a one-to-many relationship, one embedded control board corresponds to one cloud server, and one cloud server corresponds to a plurality of embedded control boards. In consideration of factors such as user use feeling, network bandwidth of a system, transmission failure of abnormal conditions and the like, the image transmission program designs three key steps, task execution of a timer is designed to avoid a user use peak period, image transmission is carried out at regular time every day, a thread pool utilized by the second design fully calls dominant multithreading of the multi-core CPU of the embedded control panel to carry out image transmission, meanwhile, a buffer file/network IO stream is used for accelerating the image transmission speed, and a third design high fault tolerance image transmission rule enables less transmission and repeated transmission conditions to be solved.
3. The user module provides user services for the multi-point client and the cloud server, and is mainly responsible for distinguishing different authorities of the multi-point client and the cloud server and carrying out function limitation on users with different authorities, and meanwhile, the concurrent problem of multiple users on a single acquisition end is required to be solved. The design is that a fixed cloud server is written into the highest user authority, only the cloud server can initiate and complete picture transmission, the rest users are divided into two types of system users and common users, only the system users can modify equipment parameters, and the common users share other rest instructions. The problem of the many-to-one concurrency control is that the Netty network framework based on non-blocking input output (NIO) is utilized for design, and the Netty network framework is embedded into a communication module, so that a disease spore collecting system can work normally during the period of multi-user concurrency control of single collecting equipment.
4. The communication module is used for formatting the network data packet at an application layer and is mainly responsible for quick, safe and reliable information interaction between the embedded control center and the client and cloud servers. The network frame selects a high concurrency, fast transmission and packaged Netty network frame, the encoding and decoding of the network frame select a Netty self-contained character string codec, all the non-picture data are packaged by using a JSON (JavaScript Object Notation ) format, and the analysis efficiency of the data is improved. The image data has the characteristics of large total amount of images, large occupied space of a single image, fixed transmission time and the like, a new batch of threads are opened by using a thread pool, the image data is packaged and then transmitted by using a custom communication protocol on a specially designed application layer, and the safety and the reliability of the image data are improved.
Drawings
FIG. 1 is a schematic diagram of a system according to the present invention
FIG. 2 is a schematic diagram of a hardware main structure of the present invention
FIG. 3 is a schematic diagram of the software functional modules of the present invention
FIG. 4 is a schematic diagram of a process for collecting spores of disease according to the invention
FIG. 5 is a schematic diagram of an image processing flow according to the present invention
FIG. 6 is a diagram illustrating a custom communication format according to the present invention
Figure 2 reference numerals illustrate: the device comprises an outer box body 1, a rain cover 2, an inner box body 3, an air inlet channel 4, an air outlet channel 5, a digital camera attached to a high-power microscope 6, a sliding table bracket 7, a wire shaft sliding rod 8, a two-phase stepping motor 9, an embedded control board 10, a storage battery 11, an air pump 12, an acrylic air duct collection tube 13, a light supplementing lamp 14, an air inlet stabilizing device of a ventilation duct 15, an air inlet channel fixing device 16 and a fixing partition plate 17.
Detailed Description
The invention relates to an agricultural and forestry disease spore image acquisition method, which is further described below with reference to the accompanying drawings:
(1) The whole system structure of the invention is shown in figure 1, and the design is carried out according to a system structure diagram by two parts, namely a disease spore image acquisition device hardware part and a disease spore image acquisition embedded control center software part. The hardware part of the system consists of an embedded control plate, a high-power microscope, an attached digital camera, an air pump, a light supplementing lamp, a power supply, a motor driver, a stepping motor and the like, and the software part mainly consists of four parts of an acquisition module, an image module, a user module and a communication module.
(2) The hardware main structure of the invention is shown in figure 2, and the hardware part mainly comprises a box body, an air duct mechanism, a photographing mechanism, a focusing mechanism, a control mechanism and a power supply mechanism.
The box body is composed of an outer box body 1, a rain cover 2 and an inner box body 3. The rain cover is arranged on the uppermost surface of the outer box body and used for shielding rain to prevent the air channel mechanism from being corroded by rainwater, the inner box body comprises an inner box body, an air inlet channel 4, an air outlet channel 5, an air pump 12, an embedded control board 10 of the control mechanism and a storage battery 11 of the power supply mechanism, the inner box body is fixed on a fixed partition board 17, and the inner box body comprises the rest other mechanism hardware. The design of the inner box body and the outer box body has the beneficial effects that the most important disease spore image acquisition part is isolated and protected, so that the acquisition part is more stable, safer and more efficient.
The air duct mechanism consists of an air inlet channel fixing device 16, an air inlet channel 4, a ventilating duct air inlet fixing device 15, an acrylic air duct collecting pipe 13, an air outlet channel 5 and an air pump 12. The air pump is fixed on the right side in the outer box body, the air inlet of the air pump is connected with the air outlet channel for the power source of the air channel air, and the air outlet of the air pump is fixed on the right side for air discharge. The air inlet stabilizing device of the ventilating duct is fixed on the middle right above the inner box body, is connected with the air inlet channel and the acrylic air duct collecting pipe, and has the function of providing stable and uniform air for the acrylic air duct collecting pipe. The acrylic air duct collecting tube is fixed between a digital camera attached to the high-power microscope and the light supplementing lamp, has the most stable air flow, and is a disease spore image collecting area. The air inlet channel is connected with an air inlet channel fixing device, and the design of the air inlet channel fixing device reduces instability caused by air entering wind speed to the greatest extent.
The focusing mechanism consists of a wire shaft slide bar 8, a two-phase stepping motor 9 and a stepping motor driver. The whole mechanism is arranged inside the inner box body, the wire shaft slide bar and the two-phase stepping motor are transversely connected and placed at the bottom of the inner box body, the screw cap device below the wire shaft slide bar is used for fixing, the screw is fixed through the other side of the inner box body, and the stepping motor driver is connected with the two-phase stepping motor and the embedded control board circuit and placed beside the two-phase stepping motor. The focusing mechanism is used for conveniently adjusting the focal length of the collection of the spores of various diseases.
The photographing mechanism consists of a digital camera attached to the high-power microscope, an acrylic air duct collecting pipe and a light supplementing lamp. The microscope and the attached digital camera are fixed on the sliding table bracket, the microscope lens part of the microscope is opposite to the acrylic air duct collecting pipe for microscopic shooting of the disease spores flowing in the acrylic air duct collecting pipe, the light supplementing lamp is arranged on the opposite side of the acrylic air duct collecting pipe, the height of the light supplementing lamp and the microscope lens part are on the same horizontal line, and sufficient illumination conditions are provided for microscopic shooting of the attached digital camera of the microscope. The photographing mechanism has the beneficial effects of high mechanism stability, high coordination degree, simple acquisition process and high acquisition efficiency.
The control mechanism is composed of an embedded control board 10 and a router. The bottom of the outer box body is placed, the electric wires and the USB data wires connected with the control pins are bundled together and fixed below the inner box body and penetrate through the inner box body to be connected to related hardware for collection, the related hardware is controlled to conduct collection operation, and the brain of the whole hardware equipment is formed.
The power supply mechanism is composed of a storage battery. The bottom of the outer box body is placed, the switch of the switch is placed on the side wall of the outer box body, and the power supply wires of the switch are bound together and fixed below the inner box body and penetrate through the inner box body to be connected to each hardware, so that the whole hardware equipment is powered.
According to the hardware structure, the process of acquiring the disease spore image by the hardware is as follows:
when a cycle acquisition command is received, a cycle acquisition step is started, firstly, if the command carries focusing parameters, a PWM wave and a high-low level are output by a control pin of the embedded control board 10 to control the sliding table bracket 7 so as to drive a digital camera attached to the high-power micro mirror 6 fixed on the sliding table bracket to move and adjust the focal length, and otherwise, focusing is not carried out. And starting a formal cycle acquisition step, firstly starting a light supplementing lamp 14, then starting an air pump to enable the environmental air of agriculture and forestry crops to enter from an air inlet channel, a ventilating duct air inlet stabilizing device and an acrylic air channel acquisition tube and finally exit from an air outlet channel 5, wherein the line forms a whole air channel, disease spore image acquisition work is carried out in the acrylic air channel 13 acquisition tube, and under the driving of the air pump, disease spores in the air pass through the acrylic air channel acquisition tube and then are subjected to quick microscopic photographing by utilizing a digital camera attached to a high-power micro-mirror so as to acquire disease spore images. And (5) after obtaining the disease spore picture, continuing to perform image processing, image transmission and other subsequent steps in the embedded control board software part.
(3) All of the functions provided by the software portion of the embedded control center of the present invention are shown in fig. 3.
(4) The process of collecting the disease spores is shown in fig. 4, and the following description of the process of collecting the disease spores is divided into steps:
step one: and an instruction analysis stage. After the program of the embedded control center is normally started, the program can be stopped in a state waiting for receiving the instruction, and the user is provided with different functions according to different authorities. The instructions are divided into three types, namely a picture transmission instruction and a heartbeat detection instruction which can only be sent by the cloud server, a parameter modification instruction which can be used by an administrator user, a cycle acquisition starting instruction and a cycle acquisition ending instruction which can be used by a common user, and independent control of part of hardware. In the disease spore collection flow, the instruction of starting the cycle collection is received to formally start the cycle collection of the disease spore image, wherein the instruction can carry parameters such as the spore type, the cycle collection times and the like.
Step two: and a focal length adjustment stage. The acquired cycle acquisition instruction may carry parameters, if no parameters default are that the disease spore type is not changed, the focus adjustment is not performed, and if the spore type parameters are carried, the focus adjustment part is performed. The focal length adjusting part determines how to perform focal length fine adjustment according to spore type parameters, compares whether the system database contains corresponding spore types, if not, the feedback data is wrong, the instruction is input again, if so, the original spore types of the system are taken out for focal length conversion, specifically, the database is saved according to data obtained by corresponding focusing experiments, the data is directly obtained when the system is used, and database data expansion can be performed every time the spore types of diseases are newly increased. After the distance and direction parameters corresponding to the movement after the focal length conversion are obtained, the parameters are sent to a stepping motor control module, the direction of the stepping motor is controlled by utilizing the change of the pin level, the speed and the total movement distance of the stepping motor are controlled by utilizing the output PWM wave frequency and time, wherein the S-shaped stepping motor acceleration and deceleration algorithm of fig. 5 is also added to control the movement of the stepping motor so as to eliminate the initial and final speed abrupt changes of the stepping motor to the greatest extent and finally realize the minimum mechanical transmission jitter.
Step three: and (5) a cyclic collection stage. After the second step is finished, the formal cycle acquisition is started, and firstly, the lamp light is turned on to formally start the cycle acquisition signal. And then checking a cycle acquisition parameter, if the residual cycle acquisition parameter is 0, ending cycle acquisition, otherwise, starting to execute first cycle acquisition, firstly starting an air pump to enable the environmental air of the agriculture and forestry crops to flow in the acrylic ventilation pipeline of the figure 2, simultaneously starting a timer to perform time control, then rapidly shooting by using a digital camera attached to a high-power microscope to obtain a disease spore image of the air in the acrylic ventilation pipeline, and when the time of the timer is up, closing the air pump, the timer, stopping shooting and cycle acquisition parameter-1, and finally performing the image processing part of the figure 6 to process the acquired disease spore image. The re-entry loop checks if the acquisition parameter is 0 until a 0 represents the end of all loop acquisitions. And finally, the repeated disease spore image cycle acquisition is completed.
(5) The image processing flow of the present invention is shown in fig. 5. The design flow comprises three parts of image acquisition, image superposition and image recognition, and finally, the image recognition and counting of the disease spore image are realized so as to provide calculation parameters for the early warning function. The actions and implementation of each part are specifically described below according to an image processing flow chart.
The first step of image acquisition, wherein the image is derived from an image of a disease spore acquired during a certain period of the day. And the second step of image superposition, wherein the picture input is that the plurality of pictures selected in the first step are superposed, and the picture output is that the specifications of the pictures are consistent after superposition. And thirdly, identifying the image, and outputting the number of spores in the picture.
(6) As shown in FIG. 6, the custom communication format of the invention has the characteristics of large total quantity of pictures, large occupied space of a single picture, fixed transmission time and the like, and is not suitable for the same communication format as common data transmission because a large quantity of picture transmission influences other operations of users. Therefore, a new batch of threads are opened by the thread pool, and the picture data are packaged and transmitted by the custom communication protocol on the special design application layer, so that the safety and reliability of the picture data are improved, and the receiving end is ensured to smoothly receive all pictures.
The data packet format of the custom communication format is shown in fig. 6, and one data packet is composed of eight parts. The first part is a data packet header (8 bytes), which is designed to make the receiving end recognize the picture data and prompt to be ready for receiving, and to protect the data and reduce the probability of accidental coincidence of the picture data, the more special the 8 bytes content is. The second and third parts are the current picture number (4 bytes) and the total number of the transmission pictures (4 bytes), and the design purpose of the two parts is to mark the picture transmission progress, so that the picture transmission thread is closed in time after the picture transmission is completed, and the waste of system resources is avoided. The fourth and fifth parts are the current picture name length (4 bytes) and the current picture name (name actual size), and the design purposes of the two parts are to establish the file of the current transmission picture at the receiving end, and to establish the corresponding picture blank file in advance according to the file name. The sixth and seventh parts are the current picture data length (8 bytes) and the current picture data (actual picture size), and the purpose of the two parts is to transmit the real picture content by using the current transmission picture blank file established at the receiving end. The eighth part is the end of the data packet (4 bytes), and the design of this part is that the receiving end knows that the picture data packet has been read completely, and the transmission of the picture transmission data packet is finished successfully.
The invention provides a method for acquiring agricultural and forestry disease spore images, which is described in detail above, and components, embodiments and principles of the invention are described, and the description of the above examples is used for helping to understand the implementation scheme and core idea used by the invention; it will be appreciated by those skilled in the art that changes could be made in these embodiments, examples and applications without departing from the broad inventive concept thereof, and the invention is not to be construed as being limited thereto.

Claims (3)

1. A method for collecting the images of disease spores in agriculture and forestry is characterized in that a suction pipe is used for continuously sucking air containing the disease spores, a high-power microscope is adopted to amplify the air at a certain position of the suction pipe in the process of sucking the air for a certain period of time, an attached digital camera is used for continuously photographing, then the photos are overlapped, and the collecting process is repeated to obtain the required number of disease spores to collect photos; the method comprises the following steps of including two parts of contents of a hardware system and a software program; the magnification of the high-magnification microscope is more than 1000 times;
the software comprises four parts, namely an acquisition control module, an image module, a user module and a communication module; the collection control module is responsible for an automatic collection part of the disease spores; the image module is responsible for processing the disease spore image data; the user module is responsible for providing user services for the multi-point client and the cloud server; the communication module is responsible for information interaction between the embedded control center and the client and cloud server;
the hardware system part comprises a box body, an air duct mechanism, a photographing mechanism, a focusing mechanism, a control mechanism and a power supply mechanism according to functions; the device comprises an outer box body, an inner box body, an air inlet channel, an air outlet channel, a high-power microscope, an attached digital camera, a sliding table bracket, a wire shaft sliding rod, a two-phase stepping motor, an embedded control board, a storage battery, an air pump, an acrylic air duct collecting pipe, a light supplementing lamp, an air inlet stabilizing device of an air inlet channel, an air inlet channel fixing device and a fixing partition board;
the air duct mechanism comprises: the air pump is fixed on the right side of the inner part of the outer box body and is connected to the embedded control board, the air inlet stabilizing device of the ventilating duct is fixed in the middle of the right upper part of the inner box body and is connected with the air inlet channel, the lower part of the air inlet stabilizing device is connected with the acrylic air duct collecting pipe, and the acrylic air duct collecting pipe is fixed in the middle of a digital camera and a light supplementing lamp attached to the high-power microscope;
the photographing mechanism uses a digital camera attached to the high-power microscope, the high-power microscope and the attached digital camera are fixed on the sliding table bracket, the microscope lens part of the photographing mechanism is opposite to the acrylic air duct collecting pipe, the right side of the photographing mechanism, through the acrylic air duct collecting pipe, is provided with a light supplementing lamp, three points are consistent in height, the digital camera attached to the high-power microscope is connected to the embedded control board through a USB, and the light supplementing lamp is connected to the relay first and then connected to the embedded control board through a GPIO pin;
the wire shaft slide bar is transversely connected with the two-phase stepping motor and is placed at the bottom of the inner box body, the stepping motor driver is respectively connected with the two-phase stepping motor and the embedded control board circuit, and the embedded control board controls the focal length movement by utilizing the level change of the GPIO pins;
and the control mechanism uses an embedded control board.
2. The method according to claim 1, characterized in that: the acquisition control module comprises an acquisition flow control program and a hardware pin control program; the image module comprises an image acquisition program, an image processing program and an image transmission program; the user module comprises three parts of authority management, multipoint concurrent processing and instruction analysis and forwarding; the communication module comprises a custom communication protocol, data formatting/encryption and heartbeat detection.
3. The method according to claim 2, characterized in that: the image processing program in the image module is used for obtaining the disease spore identification and counting information from the collected disease spore images through image processing, and the image processing program comprises three parts of image acquisition, image superposition and image identification, so that superposition, identification and counting of the disease spore images are realized.
CN202310138582.9A 2023-02-20 2023-02-20 Agricultural and forestry disease spore image acquisition method Active CN116233581B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310138582.9A CN116233581B (en) 2023-02-20 2023-02-20 Agricultural and forestry disease spore image acquisition method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310138582.9A CN116233581B (en) 2023-02-20 2023-02-20 Agricultural and forestry disease spore image acquisition method

Publications (2)

Publication Number Publication Date
CN116233581A true CN116233581A (en) 2023-06-06
CN116233581B CN116233581B (en) 2024-06-21

Family

ID=86590642

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310138582.9A Active CN116233581B (en) 2023-02-20 2023-02-20 Agricultural and forestry disease spore image acquisition method

Country Status (1)

Country Link
CN (1) CN116233581B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208344A (en) * 2015-09-28 2015-12-30 中国水稻研究所 Distributed mobile agricultural pest information acquisition and diagnosis system and embedded type camera
CN109635802A (en) * 2018-12-30 2019-04-16 北京工业大学 Agriculture and forestry disease spore image information remote supervision system
CN110684641A (en) * 2019-10-16 2020-01-14 宁夏大学 Intelligent spore capturing analyzer
WO2020199538A1 (en) * 2019-04-04 2020-10-08 中设设计集团股份有限公司 Bridge key component disease early-warning system and method based on image monitoring data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208344A (en) * 2015-09-28 2015-12-30 中国水稻研究所 Distributed mobile agricultural pest information acquisition and diagnosis system and embedded type camera
CN109635802A (en) * 2018-12-30 2019-04-16 北京工业大学 Agriculture and forestry disease spore image information remote supervision system
WO2020199538A1 (en) * 2019-04-04 2020-10-08 中设设计集团股份有限公司 Bridge key component disease early-warning system and method based on image monitoring data
CN110684641A (en) * 2019-10-16 2020-01-14 宁夏大学 Intelligent spore capturing analyzer

Also Published As

Publication number Publication date
CN116233581B (en) 2024-06-21

Similar Documents

Publication Publication Date Title
CN110033103A (en) A kind of photovoltaic panel cruising inspection system and method for inspecting
CN110569737A (en) Face recognition deep learning method and face recognition acceleration camera
CN105721748A (en) Photographing control device and auxiliary flash control device
CN109326125B (en) Picture quality diagnosis system and method based on embedded system
CN105812667A (en) System and method for photographing PPT rapidly
CN102404130A (en) Control method and control system of electronic conferences
CN105611171A (en) Method and device for online shooting video file by utilizing multiple terminals
CN107229115A (en) A kind of intelligent microscope system and application method based on Internet of Things
CN106755603A (en) The remote operation Bioexperiment system and control method of a kind of multi-platform interaction
CN105187717A (en) Shooting method and system capable of controlling television camera via voice
CN102361495B (en) Projection control method and projection equipment
CN116233581B (en) Agricultural and forestry disease spore image acquisition method
CN106375709A (en) Centralized video monitoring platform system
CN115578662A (en) Unmanned aerial vehicle front-end image processing method, system, storage medium and equipment
CN109151321A (en) A kind of remote parameter configuration method, server, video camera and system
CN109698941A (en) Multiple-camera trajectory control system and method
CN109862260A (en) Multiple-camera control device and method
CN105681642A (en) Shooting control device, auxiliary flash control device and auxiliary flash control system
CN110266961A (en) Image generating method, system and image forming apparatus
CN205485239U (en) Projection system
CN108877347A (en) Classroom outdoor scene reproducing interactive tutoring system based on robot projection function
CN115346123A (en) Intelligent lamp pole autonomous system based on intelligent gateway
CN112040131B (en) Intelligent camera based on EtherCAT industrial Ethernet bus and control method thereof
CN113206928A (en) Centralized control system for studio
CN207766411U (en) A kind of action monitoring system based on dual camera

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant