Automatic inspection method and system for orchard and electronic equipment
Using multi-sensor fusion SLAM technology and deep learning to identify target features and calculate the best shooting angle, it solves the problems of complex collection points and poor effects of existing orchard inspection robots, realizes automatic orchard inspection and path planning, and improves the efficiency of inspections. Check efficiency and effectiveness.
Patent Information
- Application Number
- CN202410671654.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-09-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing collection points of orchard inspection robots are complex to operate, have poor collection effects, and cannot accurately reflect the phenotypic characteristics of fruit trees, resulting in unsatisfactory data quality.
It uses multi-sensor fusion SLAM technology to build an orchard map, automatically identifies target features through deep learning and attention mechanisms, calculates the best shooting angle, realizes automatic orchard inspection and path planning, and autonomously detects target points and plans the optimal path.
It improves the efficiency and effectiveness of orchard inspections, realizes independent detection and path planning of orchard inspection robots, and reduces labor costs.
Smart Images

Figure CN118658056A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of orchard inspection, and in particular to a method, system and electronic equipment for automatic orchard inspection. Background Art
[0002] In current agricultural production, fruit tree phenotyping is of great significance. Through plant phenotyping, important data on the proximal nutrition, growth and reproductive processes of crops can be obtained. However, there are many problems with the existing methods of manually collecting phenotypic data of orchard fruit trees. First, this method requires a lot of manpower and time, and the workflow is cumbersome and inefficient. Secondly, the accuracy of manually collected data is difficult to guarantee, and it is easily affected by environmental factors, and the data quality is unstable.
[0003] In response to these problems, the existing inspection robot technology for phenotypic collection has reduced manpower input to a certain extent, but there are still some problems. First, the robot needs to manually determine the phenotypic collection points, which not only increases the complexity of the operation, but also may lead to improper selection of collection points due to human factors, affecting the collection effect. Secondly, even if the collection points are determined, the collection effect of the robot is not satisfactory, and it cannot accurately reflect the phenotypic characteristics of the fruit trees, and the quality of the data obtained is not ideal. Summary of the invention
[0004] The technical problem to be solved by the present invention is that the operation of the existing inspection robot collection points is complicated, the collection effect is poor and the phenotypic characteristics of fruit trees cannot be accurately reflected. The purpose is to provide a method for automatic inspection of orchards to solve the above problems.
[0005] A method for automatic inspection of an orchard, comprising:
[0006] Step S1, based on the camera, lidar and SLAM module on the robot, the acquired image, point cloud information and motion estimation information are integrated to establish a preliminary map of the orchard;
[0007] Step S2, establishing a semantic map by combining target features and the preliminary map of the orchard, wherein the target features are formed based on the image acquired by the camera;
[0008] Step S3, establishing a spatial semantic map based on the inspection object according to the semantic map, wherein the inspection object includes at least one of an orchard, a fruit tree, and a fruit;
[0009] Step S4, locating the current posture point of the robot and completing path planning to realize automatic inspection of the orchard.
[0010] Furthermore, the step S1 further includes:
[0011] Step S11, obtaining images and point cloud information based on the camera and laser radar on the robot;
[0012] Step S12, establishing a relationship between the image and the point cloud information to obtain fused data;
[0013] Step S13, completing motion estimation information based on the SLAM module;
[0014] Step S14, establishing a preliminary map of the orchard based on the fused data and the motion estimation information.
[0015] Furthermore, the step S14 includes:
[0016] The target features in the image are identified through a deep learning model and an attention mechanism. The target features include at least one of a lychee fruit, a lychee bouquet, and a lychee young leaf, and are associated with the point cloud information to obtain a preliminary three-dimensional spatial position of the photographed object in the multi-frame data.
[0017] Furthermore, the target features in the image are identified through deep learning models and attention mechanisms, including:
[0018] Step S141, processing the acquired image according to deep learning technology to obtain a processing result;
[0019] Step S142, determining the target feature of the image through an attention mechanism according to the processing result;
[0020] Step S143, associating the target feature with the point cloud data;
[0021] Step S144, using the associated data, calculate the three-dimensional spatial position of each target feature.
[0022] Furthermore, the method further comprises:
[0023] Step S5, after arriving at the inspection point, the best shooting angle is calculated by spatial coordinate conversion between the navigation camera and the inspection camera 104, and the inspection camera is adjusted to a preset angle for shooting.
[0024] Furthermore, the step S5 comprises:
[0025] Step S51, spatial coordinate conversion: During the inspection process, the navigation camera and the inspection camera 104 may be located at different positions and positioned in different directions. Therefore, it is necessary to first perform spatial coordinate conversion to match the coordinate systems of the navigation camera and the inspection camera 104 so as to perform calculations in the same coordinate system.
[0026] Step S52, calculate the best shooting angle: by calculating in the same coordinate system, according to the location of the target feature and the environmental information, determine the best shooting angle. This angle should be able to fully display the target feature, while taking into account factors such as lighting and occlusion, so as to obtain high-quality image data.
[0027] Step S53, adjusting the camera: according to the calculated optimal shooting angle, the inspection camera is controlled to adjust so that the shooting direction and angle of the camera reach the preset angle. This can be achieved by controlling the electric or pan / tilt of the camera.
[0028] Step S54, shooting: Once the camera is adjusted to a preset viewing angle, the camera is triggered to shoot. The navigation camera and the inspection camera 104 can work simultaneously, for navigation and shooting tasks respectively. The image data obtained by shooting will contain detailed information of the target features.
[0029] Furthermore, in step S6, the robot is controlled to traverse each path point, repeat the shooting work, and complete the inspection task of the orchard.
[0030] Furthermore, the step S6 further includes:
[0031] Step S61, according to the result of the path planning, during the inspection process, controlling the robot to traverse each path point in sequence;
[0032] Step S62, controlling the camera to shoot at least 2 times until the shooting of the target feature is completed;
[0033] Step S63, traversing all path points, and completing the photographing of all the target features of all inspection objects.
[0034] Another aspect of the present invention provides an automatic inspection system for an orchard, comprising a robot and a camera and a laser radar arranged on the robot, wherein the camera is used to obtain an image of the orchard environment, and the laser radar is used to obtain depth information of the orchard environment; and further comprising:
[0035] The controller is used to control the movement of the robot, the shooting behavior of the camera and the acquisition of the depth information by the laser radar, and is also used to implement the above method.
[0036] Another aspect of the present invention provides an electronic device, including:
[0037] A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the method is implemented when the processor executes the program.
[0038] Compared with the prior art, the present invention has the following advantages and beneficial effects:
[0039] 1. The present invention discloses an automatic inspection method for an orchard. The method establishes an orchard map based on the SLAM technology of multi-sensor fusion, and automatically identifies target features such as lychee fruits, lychee bouquets and lychee young leaves through deep learning and attention mechanism, and obtains the three-dimensional spatial position of the photographed object; a semantic map is established by projecting the identified targets onto a preliminary map of the orchard, and each target point that needs to be inspected is determined, and an optimal path is planned to connect each inspection point through a path planning algorithm; after arriving at the inspection point, the optimal shooting angle is calculated through the spatial coordinate conversion between the navigation camera and the inspection camera, and the inspection camera is adjusted to a preset angle for shooting, so that the orchard inspection robot can autonomously detect the target point, and autonomously plan the inspection path to complete the patrol task with the optimal path, thereby improving the efficiency and effect of the orchard inspection;
[0040] 2. The present invention discloses an automatic orchard inspection system. The system establishes an orchard map based on the SLAM technology of multi-sensor fusion, and automatically identifies target features such as lychee fruits, lychee bouquets and lychee young leaves through deep learning and attention mechanism, and obtains the three-dimensional spatial position of the photographed object; by projecting the identified targets onto the preliminary map of the orchard, a semantic map is established, each target point that needs to be inspected is determined, and an optimal path is planned to connect each inspection point through a path planning algorithm; after arriving at the inspection point, the optimal shooting angle is calculated through the spatial coordinate conversion between the navigation camera and the inspection camera, and the inspection camera is adjusted to a preset angle for shooting, so that the orchard inspection robot can autonomously detect the target point, and autonomously plan the inspection path to complete the patrol task with the optimal path, thereby improving the efficiency and effect of the orchard inspection;
[0041] 3. The present invention discloses an electronic device for automatic inspection of an orchard. The electronic device establishes an orchard map based on the SLAM technology of multi-sensor fusion, and automatically identifies target features such as lychee fruits, lychee bouquets and lychee leaves through deep learning and attention mechanism, so as to obtain the three-dimensional spatial position of the photographed object; a semantic map is established by projecting the identified targets onto a preliminary map of the orchard, and each target point that needs to be inspected is determined, and an optimal path is planned to connect each inspection point through a path planning algorithm; after arriving at the inspection point, the optimal shooting angle is calculated through the spatial coordinate conversion between the navigation camera and the inspection camera, and the inspection camera is adjusted to a preset angle for shooting, so that the orchard inspection robot can autonomously detect the target point, and autonomously plan the inspection path to complete the patrol task with the optimal path, thereby improving the efficiency and effect of the orchard inspection. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The accompanying drawings are used to better understand the present invention and do not constitute a limitation of the present invention.
[0043] Figure 1 is a schematic diagram of a method for realizing automatic inspection of an orchard according to an embodiment of the present invention;
[0044] Figure 2 is a hardware schematic diagram of a method for realizing automatic inspection of an orchard according to an embodiment of the present invention;
[0045] Figure 3 is a hardware schematic diagram of another method for realizing automatic inspection of an orchard according to an embodiment of the present invention;
[0046] Figure 4 is a schematic diagram of an automatic inspection system for an orchard according to an embodiment of the present invention;
[0047] Figure 5 is a schematic diagram of an electronic device according to an embodiment of the present invention.
[0048] Reference numerals:
[0049] 100-orchard automatic inspection system, 101-robot, 102-inspection camera, 103-navigation camera, 104-lidar, 105-controller, 200-electronic device, 201-processor, 202-memory. DETAILED DESCRIPTION
[0050] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0051] The present invention provides a method for automatic inspection of an orchard, comprising:
[0052] Step S1, based on the camera, laser radar 104 and SLAM module on the robot 101, the acquired image, point cloud information and motion estimation information are integrated to establish a preliminary map of the orchard;
[0053] Step S2, establishing a semantic map by combining target features and the preliminary map of the orchard, wherein the target features are formed based on the image acquired by the camera;
[0054] Step S3, establishing a spatial semantic map based on the inspection object according to the semantic map, wherein the inspection object includes at least one of an orchard, a fruit tree, and a fruit;
[0055] Step S4, locating the current position point of the robot 101 and completing path planning to realize automatic inspection of the orchard.
[0056] The industry generally practices manual collection of phenotypic data of fruit trees in orchards, which is cumbersome and labor-intensive. The existing inspection robot 101 needs to manually determine the phenotypic collection points for phenotypic collection, and the collection effect of the collection points is poor, and the data obtained is not good.
[0057] In some embodiments, in response to the problems of the prior art, this embodiment proposes a technical solution for an orchard inspection robot. The technical solution uses a semantic map, a navigation camera 103 establishes inspection target semantics through a model (such as a deep learning attention mechanism), and then a navigation algorithm completes path planning to achieve automatic inspection of the orchard.
[0058] Specifically, Figure 1 As shown, the technical solution includes the following steps:
[0059] Step S1, building an orchard map based on multi-sensor fusion SLAM technology. Using sensors such as navigation camera 103 and laser radar 104 to obtain data on the orchard environment, multi-sensor fusion SLAM technology (the hardware implemented is collectively referred to as SLAM module) is used to build a map to form a preliminary orchard map (3D map).
[0060] like Figure 2 , 3 As shown, if the height of the camera is limited, the freedom of camera acquisition can be increased by using structures such as telescopic rods. The camera can include an inspection camera 102 and a navigation camera 103. The inspection camera 102 is used to photograph the inspection object, and the navigation camera 103 is used to build a map.
[0061] Step S2, projecting the identified target features and their three-dimensional positions onto the preliminary map of the orchard to establish a semantic map; determining each target point that needs to be inspected, and planning the optimal path to connect each inspection point through a path planning algorithm.
[0062] Step S21, target projection: project the target features such as lychee fruits, lychee bouquets and lychee young leaves identified in the previous step onto the established preliminary map of the orchard according to their positions in the image. In this way, each point in the map is associated with the corresponding target feature.
[0063] Step S22, build a semantic map: combine the projected target features with other information in the map (such as buildings, roads, etc.) to form a semantic map. In this map, each point is not only a geometric position, but also has an associated target feature label, such as "fruit", "bouquet", etc.
[0064] Step S23, determine the inspection target points: In the semantic map, determine the target points that need to be inspected according to the target feature labels. These target points may be areas where lychee fruits are concentrated, places where bouquets are distributed, etc. The purpose of determining these target points is to optimize the inspection path so that these targets can be accessed and inspected more efficiently.
[0065] Step S24, path planning: Use a path planning algorithm, such as A* algorithm, Dijkstra algorithm, genetic algorithm, etc. to plan the optimal path connecting each inspection target point. The optimal path can be defined according to different indicators, such as path length, time, energy consumption, etc. When planning the path, consider avoiding obstacles and optimizing the feasibility and efficiency of the path.
[0066] Step S25, optimal path connection: connect the paths obtained by path planning to form a continuous inspection path. This path will guide the navigation system to achieve sequential navigation from one inspection target point to another inspection target point in the orchard.
[0067] Step S26, navigation execution: input the planned path into the navigation system to realize autonomous navigation. The navigation system will guide the robot 101 or the navigation device to patrol along the optimal path in the orchard according to the path information, so as to accurately visit each target point.
[0068] By projecting the target onto the map, building a semantic map, determining the inspection target points, and planning the optimal path, it is possible to efficiently inspect the target points in the orchard, while taking into account the comprehensive utilization of map information and target features, thereby achieving the purpose of intelligent navigation and inspection.
[0069] Step S3, establish a semantic map based on the inspection object to provide more accurate information for path planning and target recognition.
[0070] During the mapping process, in addition to constructing general map information, specific spatial semantic maps can also be established based on the specific objectives of the inspection.
[0071] A spatial semantic map is a special type of map that not only contains the spatial information of the environment (such as location, distance, etc.), but also incorporates the semantic information of objects (such as object type, attributes, etc.). In the inspection task, the spatial semantic map not only records the geometric features of the environment, but also marks the location, type and attributes of different inspection objects to provide richer information support. For example, for the inspection of an orchard, the map can mark the location, variety, growth status and other information of each fruit tree, and the location, maturity and other information of each fruit. In this way, when conducting an inspection, the robot 101 or the navigation system can intelligently select a path based on the information on the map, and locate the inspection object at the same time to achieve accurate inspection tasks. The use of a spatial semantic map helps to perform tasks more efficiently and accurately, because it not only provides geometric information of the environment, but also combines the semantic information of the inspection target, enabling the machine to better understand and adapt to the environment. This map not only helps with path planning, but also supports tasks such as target recognition and position calibration.
[0072] Therefore, the spatial semantic map will focus on the features and information related to the inspection object. For example, in an orchard inspection, the map can mark the location and attributes of objects such as fruits, bouquets, and young leaves, thereby providing more accurate information for subsequent path planning and target recognition.
[0073] Step S4, positioning the current position point of the robot 101 and completing path planning.
[0074] Step S41, positioning the current posture point: During the inspection process, the current posture point is positioned through the laser radar 104 data. This involves matching the point cloud data obtained by the laser radar 104 with the established map to determine the current position of the robot 101 or the navigation device. The laser radar 104 positioning can achieve real-time and accurate position information.
[0075] Step S42, path planning: using the path planning algorithm, according to the established spatial semantic map and the current posture point, plan the optimal path connecting each inspection point. The optimal path can be defined according to specific indicators, such as path length, time, energy consumption, etc. The path planning algorithm will consider factors such as the target position in the map, obstacles, and the movement ability of the robot 101.
[0076] Step S43, optimal path connection: connect the paths obtained by path planning to form a continuous path. This path will guide the robot 101 or navigation device to move from one inspection point to another in the orchard.
[0077] Step S44, navigation execution: input the planned path into the navigation system to achieve autonomous navigation. The navigation system will guide the robot 101 or the navigation device to inspect the orchard along the optimal path based on the path information.
[0078] By establishing a spatial semantic map based on the inspection object, locating the current position point, and performing path planning and navigation execution, it is possible to efficiently and accurately visit each target point during the inspection process and ensure the optimization and accuracy of the path. This method of comprehensive application of map, positioning, path planning and navigation technology can achieve the goal of autonomous inspection.
[0079] The step S1 further includes:
[0080] Step S11, obtaining image and point cloud information based on the camera and laser radar 104 on the robot 101;
[0081] Step S12, establishing a relationship between the image and the point cloud information to obtain fused data;
[0082] Step S13, completing motion estimation information based on the SLAM module;
[0083] Step S14, establishing a preliminary map of the orchard based on the fused data and the motion estimation information.
[0084] Specifically, the following steps may be included:
[0085] Step S11, data collection: First, data of the orchard environment is collected using various sensors such as the navigation camera 103 and the laser radar 104. The navigation camera 103 can capture environmental images, while the laser radar 104 can obtain point cloud data, which will be used to build a map.
[0086] Step S12, sensor fusion: fusing the data obtained by different sensors. This involves matching the image data with the laser radar 104 data to obtain rich environmental information in different dimensions. Sensor fusion can provide more accurate and comprehensive data, which helps to build high-quality maps.
[0087] Step S13, motion estimation: SLAM technology is used to perform motion estimation, that is, to determine the relative position of the sensor in time and space. The information obtained is called motion estimation information. This includes estimating the change of the sensor's posture (position and orientation) over time, and their relative position in 3D space.
[0088] Step S14, map construction: Using the information from sensor fusion and motion estimation, we start to build a map of the orchard. This map is a three-dimensional representation that records the location, shape, and structure of objects in the environment. By fusing sensor data from different times and locations, we gradually build up different parts of the map.
[0089] The step S14 may further include:
[0090] The target features in the image are identified through a deep learning model and an attention mechanism. The target features include at least one of a lychee fruit, a lychee bouquet, and a lychee young leaf, and are associated with the point cloud information to obtain a preliminary three-dimensional spatial position of the photographed object in the multi-frame data.
[0091] Among them, the three-dimensional spatial information is combined with the motion estimation information to establish a preliminary map of the orchard.
[0092] Identify target features in images through deep learning models and attention mechanisms, including:
[0093] Step S141, processing the acquired image according to deep learning technology to obtain a processing result;
[0094] Step S142, determining the target feature of the image through an attention mechanism according to the processing result;
[0095] Step S143, associating the target feature with the point cloud data;
[0096] Step S144, using the associated data, calculate the three-dimensional spatial position of each target feature.
[0097] In some embodiments, the specific implementation is:
[0098] Step S141, preliminary identification of target features: using deep learning techniques, such as convolutional neural networks (CNN) or Transformer-based models, the acquired images are processed to identify target features such as litchi fruits, litchi bouquets, and litchi leaves. The model can be trained to accurately locate and classify different targets in the image.
[0099] Step S142, determining the image target features through an attention mechanism: introducing an attention mechanism, such as a self-attention mechanism, enables the model to focus on areas in the image that are closely related to the target features. This helps to improve the accuracy and robustness of target recognition.
[0100] Step S143, data association: Associating the target features identified in the image with the three-dimensional point cloud data acquired by the laser radar 104. By establishing a connection between the image and the point cloud data, the corresponding relationship between the target features in the image and the three-dimensional position of the actual object can be determined.
[0101] Step S144, three-dimensional spatial position determination: using the associated data, calculate the position of the target feature in three-dimensional space. The precise three-dimensional position of the target can be determined using methods such as triangulation based on the geometric information of the point cloud data and the position of the target feature in the image.
[0102] Inspection methods may also include:
[0103] Step S15, environment modeling: During the map construction process, the environment is modeled, including fruit trees, roads, buildings, etc. Sensor data provides the characteristics and geometric information of different objects in the environment, which helps to build a more sophisticated environment model.
[0104] Step S16, map update: During the navigation process, new sensor data is continuously collected and updated with the existing map. This helps to adjust and improve the map in real time to reflect changes and changes in the environment.
[0105] Step S17, map optimization: Optimize the map to make it more accurate and complete. The optimization may include removing duplicate or inconsistent data, smoothing features in the map, and adjusting sensor postures, etc., so that the map is more consistent with the actual environment.
[0106] Through the above steps, an accurate orchard map can be established based on multi-sensor fusion SLAM technology. The map contains information such as the location, shape, and structure of objects in the environment, providing a basis for subsequent target recognition and navigation. The identified target features need to be integrated with the phenotypic information of the objects in the orchard (such as litchi).
[0107] The method further comprises:
[0108] Step S5, after arriving at the inspection point, the best shooting angle is calculated by spatial coordinate conversion between the navigation camera 103 and the inspection camera 104, and the inspection camera 102 is adjusted to a preset angle for shooting.
[0109] Through this process, it can be ensured that after arriving at the inspection point, the target features are photographed according to the calculated optimal viewing angle.
[0110] The step S5 comprises:
[0111] Step S51, spatial coordinate conversion: During the inspection process, the navigation camera 103 and the inspection camera 104 may be located at different positions and positioned in different directions. Therefore, it is necessary to first perform spatial coordinate conversion to correspond the coordinate systems of the navigation camera 103 and the inspection camera 104 so as to perform calculations in the same coordinate system.
[0112] Step S52, calculate the best shooting angle: by calculating in the same coordinate system, according to the location of the target feature and the environmental information, determine the best shooting angle. This angle should be able to fully display the target feature, while taking into account factors such as lighting and occlusion, so as to obtain high-quality image data.
[0113] Step S53, adjusting the camera: according to the calculated optimal shooting angle, the inspection camera 102 is controlled to adjust so that the shooting direction and angle of the camera reach the preset angle. This can be achieved by controlling the electric or pan / tilt of the camera.
[0114] Step S54, shooting: Once the camera is adjusted to a preset viewing angle, the camera is triggered to shoot. The navigation camera 103 and the inspection camera 104 can work simultaneously, for navigation and shooting tasks respectively. The image data obtained by shooting will contain detailed information of the target features.
[0115] This can help obtain high-quality image data to support subsequent target recognition, analysis and evaluation tasks. The entire process requires precise spatial coordinate transformation, calculation and camera control to ensure the accuracy and efficiency of the shooting task.
[0116] Step S6, controlling the robot 101 to traverse each path point, repeating the shooting work, and completing the inspection task of the orchard.
[0117] In this way, the orchard inspection robot 101 can autonomously detect target points and autonomously plan inspection paths to complete patrol tasks in the optimal path.
[0118] The step S6 further includes:
[0119] Step S61, according to the result of the path planning, during the inspection process, control the robot 101 to traverse each path point in sequence;
[0120] Step S62, controlling the camera to shoot at least 2 times until the shooting of the target feature is completed;
[0121] Step S63, traversing all path points, and completing the photographing of all the target features of all inspection objects.
[0122] In an exemplary technical solution, specifically:
[0123] Step S61, traversing the path points: according to the previous path planning results, during the inspection process, traverse each path point in turn. Each path point represents an inspection target point, which needs to be photographed or other tasks.
[0124] Step S62, repeat the shooting process: at each path point, execute the shooting process described above. This includes steps such as spatial coordinate conversion, calculation of the best shooting angle, camera adjustment and actual shooting. According to the preset angle and parameters, the shooting of the target feature is completed.
[0125] Step S63, completing the inspection task: repeat the shooting work until all the path points are traversed. In this process, the navigation system will autonomously navigate to each path point in the order of path planning, perform the shooting task, and move to the next path point after the task is completed until the inspection task of all path points is completed. Once all path points are visited and photographed, the inspection task is completed.
[0126] By traversing each path point and repeatedly taking photos, it can be ensured that each inspection target point in the orchard is visited and photographed. This autonomous inspection process can efficiently obtain data on different target features in the orchard. At the same time, the entire process also relies on precise path planning, navigation and shooting technology to ensure the accuracy and completion of the task. It also improves the efficiency and effectiveness of orchard inspections, reduces labor costs, and has high practical value.
[0127] However, this technical solution still has some problems. For example, the accuracy and stability of the deep learning model and attention mechanism may be affected by factors such as data quality and feature selection. In addition, the solution needs to be further optimized and improved to improve its practicality and reliability. Nevertheless, this technical solution still provides a new and effective method for orchard inspection and provides new technical support for agricultural modernization.
[0128] The present invention further provides an orchard automatic inspection system 100, comprising a robot 101 and a camera and a laser radar 104 arranged on the robot 101, wherein the camera is used to obtain an orchard environment image, and the laser radar 104 is used to obtain depth information of the orchard environment; and further comprising:
[0129] The controller 105 is used to control the movement of the robot 101, the shooting behavior of the camera and the acquisition of the depth information by the laser radar 104, and is also used to implement the above method.
[0130] In some implementation modes, the description and explanation may refer to the above embodiments for details, which will not be repeated here.
[0131] Figure 4 A block diagram of an exemplary system suitable for implementing embodiments of the present invention is shown. Figure 4 The system shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0132] Among them, the robot 101 can be a cruise robot 101, an intelligent robot 101 system that can move autonomously and perform cruise tasks. It can move within a predetermined area or on a specific path to perform tasks such as surveying, monitoring, patrolling, shooting, etc. It includes the following features: Autonomy: The cruise robot 101 has autonomous navigation and decision-making capabilities, and can adjust its actions according to environmental changes and task requirements. Mobility: These robots 101 are usually equipped with wheels, feet and other mobile devices, and can move on different terrains. Sensors: The cruise robot 101 is usually equipped with a variety of sensors, such as laser radar 104, cameras, ultrasonic sensors, etc., to perceive the surrounding environment. Path planning: The robot 101 can realize intelligent path selection and obstacle avoidance according to the preset path or the path generated by dynamic planning. Task execution: It can perform a variety of tasks, such as patrolling, detection, surveying, shooting, etc., and configure corresponding sensors and tools according to different tasks. Data collection: Through sensors, the cruise robot 101 can collect environmental information, such as images, point clouds, etc., for subsequent analysis.
[0133] Among them, the camera can be a navigation camera 103 to obtain image information of the surrounding environment, so as to achieve navigation and positioning. Including the following features: Lightweight and compact: The navigation camera 103 is usually designed to be lightweight and compact, suitable for installation on various autonomous navigation equipment, and will not cause too much impact on the overall weight and volume. Real-time: The navigation camera 103 is usually able to provide real-time image streams, and can obtain environmental information in real time during navigation. High resolution: In order to accurately perceive the surrounding environment, the navigation camera 103 usually has a relatively high resolution to capture details. Wide-angle lens: Generally equipped with a wide-angle lens to capture a larger range of environmental information and support a panoramic field of view. Sensor: The sensor of the navigation camera 103 can be CMOS or CCD, which has high sensitivity and can adapt to different lighting conditions. Image processing: Some navigation cameras 103 have built-in image processing functions, such as real-time feature extraction, target recognition, etc., and image processing can be performed on the device.
[0134] Among them, the laser radar 104 can be a sensor technology for measuring distance and obtaining three-dimensional information of the environment. It calculates the distance between the target object and the sensor by emitting laser pulses and measuring the time it takes for the laser pulse to be emitted from the sensor to be reflected back to the sensor by the target object. The laser radar 104 can provide high-resolution spatial data and is widely used in autonomous navigation, environmental perception, map construction and other fields. It includes the following features: High precision: The laser radar 104 has high ranging accuracy and can achieve millimeter-level distance measurement, which is suitable for precise positioning and obstacle avoidance. Three-dimensional perception: The laser radar 104 can obtain the three-dimensional coordinate information of the target object and provide detailed spatial data. Real-time: Most laser radars 104 can measure at a very fast rate to achieve real-time environmental perception. Not affected by light: The laser radar 104 uses laser beams for measurement, which is not affected by light conditions and is suitable for various environments. Large-range measurement: Some laser radars 104 can cover a large range of measurement areas and are used in a wide range of application scenarios.
[0135] Among them, the SLAM (Simultaneous Localization and Mapping) module can be used to realize the simultaneous positioning and map construction of autonomous mobile devices (such as robots 101, vehicles, drones, etc.) in unknown environments. Its main goal is to enable mobile devices to determine their own positions while sensing the environment without a priori maps, and use the sensed information to build environmental maps. It mainly implements two functions: Localization: Positioning refers to determining the position of a mobile device in the environment. By analyzing sensor data, especially environmental information obtained by laser radar 104, cameras, etc., the SLAM algorithm can estimate the position and orientation of the device in space. Mapping: Mapping refers to using sensor data to create a map of the environment during movement. This map can be two-dimensional or three-dimensional, and is used to record information such as obstacles and feature points in the environment.
[0136] The above system is presented in the form of a general-purpose computing device. The components of the system may also include, but are not limited to: one or more processors 201 or processing units, a system memory 202, and a bus connecting different system components (including the system memory 202 and the processing unit).
[0137] Various embodiments of the systems and techniques described above in the present invention may be implemented in digital electronic circuit systems, integrated circuit systems, FPGAs (Field Programmable Gate Arrays), ASICs (Application-Specific Integrated Circuits), ASSPs (Application-Specific Standard Products), SOCs (System On Chips), CPLDs (Complex Programmable Logic Devices), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor 201, which may be a dedicated or general-purpose programmable processor 201 that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0138] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (Cathode-Ray Tube) or LCD (Liquid Crystal Display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0139] The present invention further provides an electronic device 200, comprising:
[0140] The memory 202, the processor 201, and a computer program stored in the memory 202 and executable on the processor 201, when the processor 201 executes the program, the above method is implemented.
[0141] It should be noted that, Figure 5As shown, the electronic device 200 in this example is in the form of a general computing device. The components of the electronic device 200 may include but are not limited to: one or more processors 201 or processing units, a system memory 202, and a bus connecting different system components (including the system memory 202 and the processing unit).
[0142] The electronic device 200 includes a computing unit, which can perform various appropriate actions and processes according to a computer program stored in a ROM (Read-Only Memory, read-only memory 202) or a computer program loaded from a storage unit to a RAM (Random Access Memory, random access / access memory 202). In the RAM, various programs and data required for the operation of the device can also be stored. The computing unit, ROM and RAM are connected to each other through a bus. The I / O (Input / Output, input / output) interface is also connected to the bus.
[0143] Multiple components in the electronic device 200 are connected to the I / O interface, including: input units, such as keyboards, mice, etc.; output units, such as various types of displays, speakers, etc.; storage units, such as disks, optical disks, etc.; and communication units, such as network cards, modems, wireless communication transceivers, etc. The communication unit allows the device to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunication networks.
[0144] The electronic device 200 used to implement the example of the embodiment of the present invention is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device 200 can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown in the present invention, their connections and relationships, and their functions are only examples and are not intended to limit the implementation of the present invention described and / or required in the present invention.
[0145] The processor 201 is a computing unit, which may be various general and / or special processing components with processing and computing capabilities. Some examples of the processor 201 include, but are not limited to, a CPU (Central Processing Unit), a GPU (Graphic Processing Units), various dedicated AI (Artificial Intelligence) computing chips, various computing units running machine learning model algorithms, a DSP (Digital Signal Processor, Digital Signal Processor 201), and any appropriate processor 201, controller 105, microcontroller 105, etc. The computing unit performs the various methods and processes described above, such as an imaging method based on focal plane fitting. For example, in some embodiments, the imaging method based on focal plane fitting may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit. In some embodiments, part or all of the computer program may be loaded and / or installed on the device via a ROM and / or a communication unit. When the computer program is loaded into the RAM and executed by the computing unit, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the processor 201 may be configured to execute the aforementioned method in any other appropriate manner (for example, by means of firmware).
[0146] In the context of the present invention, memory 202 may be a machine-readable medium, which may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or apparatus. A machine-readable medium may also be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. More specific examples of machine-readable storage media may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a RAM, a ROM, an EPROM (Electrically Programmable Read-Only-Memory, Erasable Programmable Read-Only Memory 202) or a flash memory 202, an optical fiber, a CD-ROM (CompactDisc Read-Only Memory, Portable Compact Disk Read-Only Memory 202), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0147] The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. These program codes can be provided to the processor 201 or controller 105 of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by the processor 201 or controller 105, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0148] Compared with the prior art, the present invention has the following advantages and beneficial effects:
[0149] 1. The present invention provides a method for automatic inspection of an orchard. The method establishes an orchard map based on the SLAM technology of multi-sensor fusion, and automatically identifies target features such as litchi fruits, litchi bouquets and litchi leaves through deep learning and attention mechanism to obtain the three-dimensional spatial position of the photographed object; a semantic map is established by projecting the identified targets onto a preliminary map of the orchard, and each target point that needs to be inspected is determined, and an optimal path is planned to connect each inspection point through a path planning algorithm; after arriving at the inspection point, the optimal shooting angle is calculated through the spatial coordinate conversion between the navigation camera and the inspection camera, and the inspection camera is adjusted to a preset angle for shooting, so that the orchard inspection robot can autonomously detect the target point, and autonomously plan the inspection path to complete the patrol task with the optimal path, thereby improving the efficiency and effect of the orchard inspection;
[0150] 2. An automatic orchard inspection system provided by the present invention establishes an orchard map based on the SLAM technology of multi-sensor fusion, and automatically identifies target features such as litchi fruits, litchi bouquets and litchi leaves through deep learning and attention mechanism, and obtains the three-dimensional spatial position of the photographed object; by projecting the identified targets onto the preliminary map of the orchard, a semantic map is established, each target point that needs to be inspected is determined, and an optimal path is planned to connect each inspection point through a path planning algorithm; after arriving at the inspection point, the spatial coordinate conversion between the navigation camera and the inspection camera is performed to calculate the best shooting angle, and the inspection camera is adjusted to the preset angle for shooting, so that the orchard inspection robot can autonomously detect the target point, and autonomously plan the inspection path to complete the patrol task with the optimal path, thereby improving the efficiency and effect of the orchard inspection;
[0151] 3. The present invention provides an electronic device for automatic inspection of an orchard. The electronic device establishes an orchard map based on the SLAM technology of multi-sensor fusion, and automatically identifies target features such as lychee fruits, lychee bouquets and lychee leaves through deep learning and attention mechanism to obtain the three-dimensional spatial position of the photographed object; a semantic map is established by projecting the identified targets onto a preliminary map of the orchard, and each target point that needs to be inspected is determined, and an optimal path is planned to connect each inspection point through a path planning algorithm; after arriving at the inspection point, the optimal shooting angle is calculated through the spatial coordinate conversion between the navigation camera and the inspection camera, and the inspection camera is adjusted to a preset angle for shooting, so that the orchard inspection robot can autonomously detect the target point and autonomously plan the inspection path to complete the patrol task with the optimal path, thereby improving the efficiency and effect of the orchard inspection.
[0152] In the several embodiments provided by the present invention, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0153] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0154] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, "plurality" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
Claims
1. A method for automatic inspection of an orchard, characterized in that: include: Step S1, based on the camera, laser radar (104) and SLAM module on the robot (101), the acquired image, point cloud information and motion estimation information are integrated to establish a preliminary map of the orchard; Step S2, establishing a semantic map by combining target features and the preliminary map of the orchard, wherein the target features are formed based on the image acquired by the camera; Step S3, establishing a spatial semantic map based on the inspection object according to the semantic map, wherein the inspection object includes at least one of an orchard, a fruit tree, and a fruit; Step S4, locating the current position point of the robot (101) and completing path planning to achieve automatic inspection of the orchard.
2. The method for automatic inspection of an orchard according to claim 1, characterized in that: The step S1 further includes: Step S11, obtaining image and point cloud information based on the camera and laser radar (104) on the robot (101); Step S12, establishing a relationship between the image and the point cloud information to obtain fused data; Step S13, completing motion estimation information based on the SLAM module; Step S14, establishing a preliminary map of the orchard based on the fused data and the motion estimation information.
3. The method for automatic inspection of an orchard according to claim 2, characterized in that: The step S14 comprises: The target features in the image are identified through a deep learning model and an attention mechanism. The target features include at least one of a lychee fruit, a lychee bouquet, and a lychee young leaf, and are associated with the point cloud information to obtain a preliminary three-dimensional spatial position of the photographed object in the multi-frame data.
4. The method for automatic inspection of an orchard according to claim 3, characterized in that: Identify target features in images through deep learning models and attention mechanisms, including: Step S141, processing the acquired image according to deep learning technology to obtain a processing result; Step S142, determining the target feature of the image through an attention mechanism according to the processing result; Step S143, associating the target feature with the point cloud data; Step S144, using the associated data, calculate the three-dimensional spatial position of each target feature.
5. A method for automatic inspection of an orchard according to any one of claims 1 to 4, characterized in that: The method further comprises: Step S5, after arriving at the inspection point, the best shooting angle is calculated by converting the spatial coordinates between the navigation camera (103) and the inspection camera (104), and the inspection camera (102) is adjusted to a preset angle for shooting.
6. The method for automatic inspection of an orchard according to claim 5, characterized in that: The step S5 comprises: Step S51, spatial coordinate conversion: during the inspection process, the navigation camera (103) and the inspection camera (104) may be located at different positions and positioned in different directions; Step S52, calculating the best shooting angle: determining the best shooting angle by calculating in the same coordinate system according to the position and environmental information of the target feature; Step S53, adjusting the camera: according to the calculated optimal shooting angle, controlling the inspection camera (102) to adjust so that the shooting direction and angle of the camera reach a preset angle; Step S54, shooting: when the camera is adjusted to a preset viewing angle, the camera is triggered to shoot, and the navigation camera (103) and the inspection camera (104) can work simultaneously, for navigation and shooting tasks respectively.
7. The method for automatic inspection of an orchard according to claim 1, characterized in that: Step S6, controlling the robot (101) to traverse each path point, repeating the shooting work, and completing the inspection task of the orchard.
8. The method for automatic inspection of an orchard according to claim 7, characterized in that: The step S6 further includes: Step S61, according to the result of the path planning, during the inspection process, controlling the robot (101) to traverse each path point in sequence; Step S62, controlling the camera to shoot at least 2 times until the shooting of the target feature is completed; Step S63, traversing all path points, and completing the photographing of all the target features of all inspection objects.
9. An automatic inspection system (100) for an orchard, characterized in that: The invention comprises a robot (101) and a camera and a laser radar (104) arranged on the robot (101), wherein the camera is used to obtain an image of an orchard environment, and the laser radar (104) is used to obtain depth information of the orchard environment; and further comprises: A controller (105) is used to control the movement of the robot (101), the shooting behavior of the camera and the acquisition of the depth information by the laser radar (104), and is also used to implement the method according to any one of claims 1 to 8.
10. An electronic device (200), characterized in that: include: A memory (202), a processor (201), and a computer program stored in the memory (202) and executable on the processor (201), wherein the processor (201) implements the method according to any one of claims 1 to 8 when executing the program.
Citation Information
Patent Citations
Semantic intelligent substation inspection robot autonomous inspection method and system
CN111958591A
Substation semantic map construction method based on laser SLAM and visual fusion
CN114638909A
Cited By
Bridge inspection method based on image recognition
CN119251693A
Bridge inspection method based on image recognition
CN119251693B
Intelligent inspection robot for greenhouse planting, control system and method
CN119270636A
Method and system for monitoring growth situation of fruit tree
CN119380194A
Automatic blueberry picking system and method based on visual identification and path planning
CN119452899A
