| With the progress of agricultural informatinization,the technology of remote acquire crop image has also developed quickly.However,the existing systems of fixed crop image acquisition are mostly transmit information by wired,but the crop usually grow in harsh environments,if transmit information by cable,there are some shortcomings,such as,difficult to wiring,limited scope,and higher cost.The goal of this paper is to develop a system that can obtain images of crop in different growth periods by wireless network.The system combine the motion control of camera with remote transmission and image processing technology to accomplish the acquisition of crop detail images and panoramic images.Record the growth of the crop by the form of pictures,to provide relevant data for the further study,so that people can better manage the stages of crop growth.The main contents of this paper are as follows:(1)Analyze the requirements of the system,based on the existing hardware structure and camera device,design a convenient and simple scheme to achieve the goal of obtaining crop detail and overall images.First,we design the motion scheme of camera on truss,to provide conditions for acquiring target image,then we combine the image acquisition with image processing technology to acquire and manage the multi-type crop images.(2)The design of crop image acquisition site.In the system of this paper,The 4G network camera is used to obtain crop images;the truss is used as the motion mechanism of the camera;two stepper motors are used in the motion of camera,they are used to realize the horizontal and vertical motion respectively;The pan&tilt is used to realize the horizontal rotation of the camera.the motor control module is the research emphasis of the site design.In the system,we use the STM32 circuit board,RS485 interface and infrared sensor to constitute the control and transmission module of stepper motor.And complete the code of camera motion control according to the different motion requirements of the client.(3)The writing of client software.We use C++ language combine with the OpenCV library,SQL Server database,SDK of camera,image processing technology and the control commands of camera motion module to write the client software,achieve the goals that acquire crop images of different type.In the expert port,we combine remote camera motion control with image transmission to obtain detail images;In the data center,we combine the movement of camera in the horizontal direction with image acquisition to gain a batch of overlapping images firstly,then use the image mosaic algorithm which based on SIFTfeature points to obtain the crop panoramic image in monitoring area.(4)Debugging and analysis of the system.In the expert port,we should test the motion control module and image acquisition module,By remotely click the movement control button to drive the motion of camera,click the snapshot button to obtain crop images,we should test the sensitivity of these two operations.After many test,we found that the delay of control module is less than 1s,the response time of the snapshot module is 2-3s,they are all in the acceptable time range of the system.In the data center,we should test whether the client can complete the acquisition of images that to be stitched with a good performance and whether the final panoramic image is satisfied.These can be tested by setting the image acquisition time.The experimental results show that the functions of the system can be well realized,which provides some technical support for future crop research. |