A cucumber open flower six-degree-of-freedom operation pose generation method and system based on active hand-eye vision

By actively recognizing the open state and observation orientation of cucumber flowers through hand-eye vision, and using category-specific keypoint detection to generate a six-degree-of-freedom working pose, the problem of unstable posture calculation of cucumber flowers under different observation orientations is solved, and the precise operation of the robotic arm is realized.

CN123160655APending Publication Date: 2026-11-24NANJING AGRICULTURAL UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611226271.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-13
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing technologies struggle to accurately identify the six-degree-of-freedom pose of cucumber flowers, especially when the flower center and corolla structures are not visible under different observation orientations, leading to unclear meanings of key points and large errors in pose calculation.

Method used

An active hand-eye vision-based method is adopted to identify the open state and observation orientation of cucumber flowers through color depth images. Category-specific key point detection is used for open flowers viewed from the front and side to generate a six-degree-of-freedom working pose. The petal endpoints are used to fit the corolla plane and correct the position of the flower center. The robotic arm is controlled to adjust the observation angle to obtain an accurate working pose.

Benefits of technology

This improves the accuracy, stability, and precision of cucumber flower target selection, ensuring that the robotic arm can accurately reach the flower center for pollination.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160655A_ABST
    Figure CN123160655A_ABST
Patent Text Reader

Abstract

This invention discloses a method and system for generating a six-DOF (degrees of freedom) working pose for cucumber open flowers based on active hand-eye vision. The method includes: acquiring images and identifying the open state and observation orientation of the cucumber flower; extracting category-specific key points for frontal and side-view open flowers, and restoring the three-dimensional position of key structures by combining depth information and camera intrinsic parameters. For frontal open flowers, the corolla plane is fitted and the flower surface normal is determined. A corrected working center is obtained by intersecting the flower center pixel ray with the corolla plane. The robotic arm end effector is aligned with the corrected working center in position and positioned along the flower surface normal in posture to generate a six-DOF working pose. For side-view open flowers, an active observation pose is generated, the camera observation angle is adjusted, and images are reacquired. The final working pose is generated after the frontal view condition is met. This invention can improve the stability of the alignment of the cucumber open flower flower center and the posture alignment, providing a robotic arm executable pose for pollination, fixed-point observation, and other precise operations.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of agricultural robot visual perception and operation positioning technology, specifically to a method and system for generating six-DOF operation poses of cucumber open flowers based on active hand-eye vision. Background Technology

[0002] In greenhouse cucumber production, accurate identification and spatial positioning of open flowers are crucial for robotic pollination, flowering period monitoring, and other precise operations on floral organs. Cucumber flowers are typically distributed among the plant's leaves, stems, and tendrils, making them susceptible to shading, changes in light intensity, and variations in viewing angle. When a robot observes a cucumber flower from different directions, it may obtain frontal, side, or back views, and the visible corolla structure differs significantly depending on the viewing orientation.

[0003] Existing visual perception methods for cucumber flowers mainly focus on target detection, classification, or 2D location acquisition. They typically only obtain the position of the cucumber flower in the image and struggle to directly generate a six-DOF (degrees of freedom) pose that includes 3D position and spatial orientation. Some methods obtain the 3D coordinates of the target center through depth maps, but the surface structure of cucumber flowers is irregular, and depth loss, depth jumps, and background depth mixing easily occur at the edges of the petals. It is difficult to stably determine the corolla plane and flower orientation using only a single pixel or local center depth.

[0004] Furthermore, when a cucumber flower appears in the camera's field of view from the side, the flower center and complete petal structure are usually not visible, making it difficult to directly generate a reliable six-DOF (degrees of freedom) pose using the frontal view structure. Using the same keypoint or pose calculation method for different viewing orientations can easily lead to unclear keypoint meanings, unstable 3D reconstruction, and large errors in pose calculation.

[0005] Therefore, a method for generating a working pose is needed that can identify the opening state and observation direction of cucumber flowers, and apply corresponding processing methods for front-view and side-view open flowers. For front-view open flowers, the corolla plane needs to be fitted using 3D keypoints corresponding to the petal endpoints, and the position of the flower center needs to be corrected to generate a six-DOF working pose. For side-view open flowers, an active observation pose needs to be generated based on the visible corolla structure, and the robotic arm needs to be controlled to adjust the camera's observation angle. After re-acquiring the front-view open flower image, the six-DOF working pose generation is completed. Summary of the Invention

[0006] The purpose of this invention is to provide a method for recognizing the orientation of cucumber open flowers based on active hand-eye vision. This method uses color depth images as perceptual input and follows the technical route of "image acquisition - state and orientation recognition - target screening - category-specific key point detection - three-dimensional key point restoration - flower coordinate system and spatial positioning" to convert the two-dimensional visual information of cucumber open flowers into spatial information that can be used for subsequent observation or operation. This allows the visual perception results to not only identify the location of cucumber open flowers, but also to further serve the needs of robotic arm pollination, fixed-point observation or other precision operations.

[0007] To achieve the above objectives, the technical solution adopted by the present invention is as follows:

[0008] On one hand, this invention provides a method for generating a six-DOF (degrees of freedom) pose for an open cucumber flower based on active hand-eye vision, comprising:

[0009] Acquire a color image containing cucumber flower targets and a depth map aligned with the color image;

[0010] The cucumber flower targets in the color image are detected, and the open state and viewing orientation of the cucumber flower targets are jointly identified. The cucumber flower targets are divided into front-view open flowers, side-view open flowers, back-view open flowers and non-open flowers.

[0011] When the cucumber flower target is a front-view open flower or a side-view open flower, the corresponding category-specific two-dimensional key points are extracted according to the category of the cucumber flower target. The depth of the two-dimensional key points is determined by combining the depth map and camera intrinsic parameters. The two-dimensional key points are then back-projected onto the camera coordinate system to obtain the corresponding three-dimensional key points.

[0012] Furthermore, the opening of the open flower is oriented towards the camera, and the flower center and petal unfolding structure are visible;

[0013] The opening of the corolla of the side-viewed open flower is lateral to the camera, and the lateral edge of the corolla and the area where the pedicel connect are visible;

[0014] The back of the open flower is facing the camera, and the flower center and the opening of the corolla are not visible.

[0015] The non-open flowers are cucumber flowers that are in bud, not fully open, or withered and do not meet the preset opening conditions.

[0016] The front-view open flower enters the six-degree-of-freedom working pose generation branch, the side-view open flower enters the active observation branch, and the back-view open flower and non-open flower do not enter the working pose generation process.

[0017] Furthermore, when the cucumber flower target is a front-view open flower, the corolla plane is fitted based on the three-dimensional key points corresponding to the petal endpoints to determine the orientation unit flower surface normal vector; the intersection of the camera ray corresponding to the two-dimensional key point of the flower center with the corolla plane is obtained to obtain the corrected working center, and a six-degree-of-freedom working pose is generated based on the corrected working center and the orientation unit flower surface normal vector.

[0018] Furthermore, when the cucumber flower target is a side-view open flower, the two-dimensional observation center of the flower opening is determined and corrected based on the category-specific two-dimensional key points, the corresponding three-dimensional observation center is restored, and an active observation pose is generated; the active observation pose is converted to the robot arm base coordinate system, the robot arm is controlled to adjust the observation angle, and color images and depth maps are reacquired; when the re-identified cucumber flower target is a front-view open flower, the six-degree-of-freedom operation pose generation process of the front-view open flower is entered.

[0019] Furthermore, after obtaining the six-degree-of-freedom working pose, based on the current end-effector pose of the robotic arm and the hand-eye calibration relationship, the pose is transformed from the camera coordinate system to the robotic arm base coordinate system, and the target position and target posture in the robotic arm base coordinate system are output.

[0020] Furthermore, the six-DOF operation pose generation for the frontal view of the open flower includes:

[0021] Fit the corolla plane based on the 3D key points corresponding to the petal endpoints to determine the normalized flower surface normal vector facing the camera;

[0022] The center of the correction operation is obtained by intersecting the camera ray corresponding to the two-dimensional key point of the flower center with the corolla plane;

[0023] A six-degree-of-freedom working pose is generated based on the corrected working center, the flower surface normal vector, and the reference direction in the corolla plane determined by the three-dimensional key points corresponding to the petal endpoints.

[0024] Furthermore, the active observation of the side-viewed open flower includes:

[0025] Based on the key points of the upper edge of the corolla, the lower edge of the corolla, the center of the flower opening, and the connection point of the pedicel, determine the two-dimensional observation center of the corrected flower opening;

[0026] Based on the effective depth corresponding to the two-dimensional observation center of the corrected flower mouth and the camera intrinsic parameters, the three-dimensional observation center is obtained;

[0027] An active observation pose is generated based on the three-dimensional observation center and the preset observation distance. The active observation pose is then converted to the robotic arm's base coordinate system. The robotic arm is controlled to drive the camera to adjust the observation angle and re-acquire color images and depth maps.

[0028] The re-acquired color image is used for cucumber flower target recognition. When the cucumber flower target is recognized as an open flower in front view, the six-degree-of-freedom operation pose generation process of the open flower in front view is entered.

[0029] Furthermore, the category-specific two-dimensional keypoints include:

[0030] The key points of one flower center and five petal endpoints corresponding to the frontal open flower;

[0031] The key points of the upper edge of the corolla, the lower edge of the corolla, the front end of the corolla, the center of the flower opening, and the connection point of the pedicel are corresponding to the side-view open flower.

[0032] Furthermore, obtaining the three-dimensional key points includes:

[0033] Using the two-dimensional key points as the center, extract local depth values ​​from the depth map;

[0034] Invalid depth values ​​and outliers are removed from the candidate depth values, and the median of the remaining valid depth values ​​is determined as the valid depth of the two-dimensional key point.

[0035] Based on the pixel coordinates of the two-dimensional key points, the effective depth, and the camera intrinsic parameters, a three-dimensional back projection is performed to obtain the corresponding three-dimensional key points in the camera coordinate system.

[0036] On the other hand, the present invention also provides a six-DOF operation pose generation system for cucumber open flower based on active hand-eye vision. The system is used to implement the method described above. The system includes a robotic arm, an image acquisition device and a visual computing processing unit.

[0037] The image acquisition device includes a camera and an image preprocessing module. The camera is used to acquire a color image containing cucumber flower targets, and the image preprocessing module is used to perform alignment processing on the acquired color image.

[0038] The visual computing processing unit is used to identify the open state and observation orientation of cucumber flowers, extract corresponding category-specific two-dimensional key points according to the category of cucumber flower target, determine the depth of the two-dimensional key points by combining the depth map and camera intrinsic parameters, and back-project the two-dimensional key points to the camera coordinate system to obtain the corresponding three-dimensional key points.

[0039] The robotic arm is used to drive the camera to adjust the observation angle based on the active observation pose transformed to the robotic arm's base coordinate system.

[0040] Compared with the prior art, the present invention has the following technical effects:

[0041] First, this invention identifies the open state and observation orientation of cucumber flowers through a cucumber flower target detection model, and performs target triage based on the identification results, so that open flowers viewed from the front and open flowers viewed from the side enter the corresponding processing process, while open flowers viewed from the back and non-open flowers do not enter the subsequent pose generation process, thereby improving the accuracy of pollinable open flower target screening.

[0042] Second, the present invention employs corresponding key point detection models for front-view and side-view open flowers, respectively, so that the category-specific two-dimensional key points are matched with the actual visible corolla structure under different viewing orientations, and the corresponding three-dimensional key points are recovered by combining depth maps and camera intrinsic parameters, thereby improving the stability of the three-dimensional recovery of the key structure of cucumber flowers.

[0043] Third, the present invention fits the corolla plane based on the three-dimensional key points corresponding to the petal endpoints, and obtains the corrected operation center by intersecting the camera ray corresponding to the two-dimensional key points of the flower center with the corolla plane, thereby reducing the influence of depth voids and local depth noise in the flower center area and improving the accuracy of determining the flower center operation position and the flower surface normal vector.

[0044] Fourth, this invention generates an active observation pose for side-view open flowers, controls the robotic arm to drive the camera to adjust the observation angle, and generates a six-degree-of-freedom working pose after re-identifying it as a front-view open flower. This provides the pollination end with the target position and target pose in the robotic arm's base coordinate system, guiding the pollination end to accurately reach the flower center and complete the pollination operation in a suitable posture. Attached Figure Description

[0045] Figure 1 This is a structural block diagram of the cucumber open flower six-DOF working pose generation system of the present invention;

[0046] Figure 2 This is a flowchart of the six-DOF operation pose generation method for cucumber open flower based on active hand-eye vision according to the present invention;

[0047] Figure 3 This is a schematic diagram illustrating the observation categories of cucumber flowers and key points of category specificity in this invention;

[0048] Figure 4 This is a flowchart illustrating the process of restoring 3D key points and generating six-degree-of-freedom poses for an open flower as described in this invention.

[0049] Figure 5 This is a flowchart of the active observation and frontal regression process for side-view open flowers according to the present invention. Detailed Implementation

[0050] The specific embodiments of the present invention will be further described below with reference to the accompanying drawings. These embodiments are used to illustrate the technical solutions of the present invention and do not constitute a limitation on the scope of protection of the present invention.

[0051] (I) System Configuration and Image Acquisition

[0052] This embodiment employs an active hand-eye vision system with the eye on the hand. The system includes a robotic arm, a camera mounted at the end of the robotic arm, a processor, and a memory. The processor is communicatively connected to both the camera and the robotic arm, and is used to perform cucumber flower target recognition, 2D keypoint extraction, 3D keypoint reconstruction, active observation pose generation, and six-degree-of-freedom operational pose generation.

[0053] In this embodiment, an RGB-D camera, such as an Intel RealSense D405 camera, is used to simultaneously acquire color images and depth maps containing the cucumber flower target. Before acquisition, the depth map is aligned to the coordinate system of the color image, so that the pixel positions in the color image can obtain corresponding depth information in the depth map.

[0054] After camera calibration, camera intrinsic parameters are obtained, including the horizontal focal length. vertical focal length and camera principal point coordinates A fixed transformation relationship between the camera coordinate system and the robotic arm end effector coordinate system is obtained through hand-eye calibration, and the current end effector pose of the robotic arm is acquired during image acquisition.

[0055] (ii) Three-model category-specific visual framework

[0056] This embodiment employs a three-model category-specific visual framework consisting of a cucumber flower target detection model, a front-view open flower keypoint detection model, and a side-view open flower keypoint detection model. Category specificity refers to setting different keypoint detection models, keypoint numbers, and keypoint structural semantics for front-view and side-view open flowers, respectively.

[0057] The cucumber flower target detection model takes a complete color image containing cucumber flowers as input and outputs the detection bounding box, recognition category, and detection confidence score of the cucumber flower target. The recognition categories include front-view open flowers, side-view open flowers, back-view open flowers, and non-open flowers.

[0058] A four-category target detection dataset for cucumber flowers was constructed. Detection boxes for cucumber flower targets were annotated in color images, and the corresponding category was determined based on the orientation of the corolla opening, the visibility of the flower center, the petal unfolding state, and the visibility of the area connecting the corolla lateral edge and the pedicel. A cucumber flower target detection model was trained using this four-category target detection dataset.

[0059] In one specific implementation, the cucumber flower target detection model employs the YOLO11n target detection model. This model is used to locate the cucumber flower target, identify its open state, and determine its orientation, and then calls the corresponding keypoint detection model based on the identified category.

[0060] The keypoint detection model for a front-view open flower takes a cropped image of the flower as input and outputs six two-dimensional keypoints, K0 to K5, along with their confidence scores. K0 is the two-dimensional keypoint at the flower center, and K1 to K5 are the two-dimensional keypoints at the five petal endpoints.

[0061] When constructing the keypoint dataset of an open flower facing forward, the two-dimensional keypoint K0 of the flower center is used as the center. The uppermost petal endpoint in the original color image is labeled as K1, and the other petal endpoints are labeled as K2, K3, K4 and K5 in a clockwise direction starting from K1.

[0062] The two-dimensional key point K0 at the center of the flower is used to determine the camera ray passing through the center of the flower; the two-dimensional key points K1 to K5 at the petal endpoints are used to recover the three-dimensional key points at the petal endpoints, fit the corolla plane, and determine the reference direction within the corolla plane.

[0063] In one specific implementation, the keypoint detection model for the frontal open flower adopts the YOLO26n-pose model, which outputs six two-dimensional keypoints of a single category.

[0064] The side-view open flower keypoint detection model takes a cropped image of the side-view open flower as input and outputs five two-dimensional keypoints, K1 to K5, and their confidence scores. Among them, K1 is the upper edge keypoint of the corolla, K2 is the lower edge keypoint of the corolla, K3 is the front end keypoint of the corolla, K4 is the center keypoint of the flower opening, and K5 is the connecting keypoint of the flower stalk.

[0065] K1 and K2 are used to determine the positions of the upper and lower edges of the flower opening and the lateral reference direction of the corolla; K3 is used to indicate the position of the front end of the corolla; K4 is used to provide the initial position of the center of the flower opening; and K5 indicates the connection position between the corolla and the pedicel.

[0066] In one specific implementation, the side-view open flower keypoint detection model adopts the YOLO11n-pose model, which outputs five two-dimensional keypoints of a single category.

[0067] Keypoints for open flowers viewed from the front and keypoints for open flowers viewed from the side are defined independently in their respective keypoint detection models. The same number does not indicate a correspondence between the two types of keypoints.

[0068] The model type described above is the specific implementation adopted in this embodiment. Other neural network models that can perform the same target detection, category recognition and key point detection functions can also be used.

[0069] (III) Target identification and key point extraction

[0070] The color images captured by the camera are input into the cucumber flower target detection model to obtain the detection box, recognition category, and detection confidence of the cucumber flower target.

[0071] When the identified category is front-view open flower, the corresponding target area is cropped according to the detection box, and the front-view open flower key point detection model is called; when the identified category is side-view open flower, the side-view open flower key point detection model is called; when the identified category is rear-view open flower or non-open flower, no subsequent six-degree-of-freedom pose generation is performed.

[0072] When cropping the target area, the detection frame is expanded outwards according to a preset ratio to preserve the complete petal endpoints, corolla edges, and stem connection areas. After keypoint detection is completed, the 2D keypoint coordinates are restored to the original color image coordinate system based on the position and scaling of the cropped area in the original color image.

[0073] The validity of two-dimensional key points is assessed. This assessment includes determining whether the confidence level of each key point reaches a preset threshold, whether the key point is located within the target region, and whether the structural relationships between the key points are reasonable.

[0074] When the two-dimensional keypoints of the flower center or the two-dimensional keypoints of the petal tips are missing when viewing an open flower from the front, a six-degree-of-freedom working pose is not generated; when the keypoints of the open flower are missing when viewed from the side or the structural relationship between the keypoints does not meet the requirements, an active observation pose is not generated.

[0075] (iv) Effective depth and 3D key point recovery

[0076] Centered on effective two-dimensional key points, a local depth sampling neighborhood is established in the depth map aligned with the color image, and candidate depth values ​​are extracted from the local depth sampling neighborhood.

[0077] Invalid and outlier depth values ​​are removed from the candidate depth values, and the median of the remaining depth values ​​is taken as the valid depth of the corresponding 2D keypoint. The size of the depth sampling neighborhood is determined based on the target pixel size, camera working distance, and depth map quality.

[0078] Let the first The pixel coordinates of the two-dimensional key points are The corresponding effective depth is Then the corresponding 3D key points in the camera coordinate system for:

[0079] (1)

[0080] In the formula, superscript Indicates the camera coordinate system.

[0081] (v) Generating pose for a six-DOF open flower operation.

[0082] When the cucumber flower target is identified as an open flower facing forward, the corolla plane is fitted based on the three-dimensional key points of the five petal endpoints corresponding to K1 to K5.

[0083] In this embodiment, singular value decomposition is used to fit the corolla plane and obtain candidate normal vectors. When a candidate normal vector is away from the camera, it is inverted to obtain a normalized flower surface normal vector facing the camera. .

[0084] Let the center position of the five petal endpoints of the 3D keypoints be... The pixel coordinates of the two-dimensional key point K0 in the flower center are: The camera intrinsic parameter matrix is Then the direction of the camera ray passing through the two-dimensional keypoint K0 at the center of the flower is:

[0085]

[0086] exist In this case, the intersection point of the camera ray and the corolla plane is:

[0087] (2)

[0088] In the formula, This serves as the correction center in the camera coordinate system.

[0089] The corrected operation center corresponds to the two-dimensional key point K0 of the flower center in the color image and is located on the fitted corolla plane in three-dimensional space, thereby reducing the influence of local depressions, deep cavities and local depth noise of the flower center on the position of the operation center.

[0090] The reference direction in the corolla plane is determined based on the uppermost petal endpoint K1. Specifically, a vector is constructed pointing from the correction operation center to the three-dimensional key point corresponding to K1, and this vector is projected onto the corolla plane.

[0091] Let the three-dimensional key point corresponding to K1 be... Then the reference direction in the corolla plane Flower direction and third attitude direction for:

[0092]

[0093]

[0094] This yields the six-DOF (degrees of freedom) operational pose in the camera coordinate system:

[0095] (3)

[0096] In the formula, Used to determine the work location , and Used to determine the working posture.

[0097] (vi) Active observation of open flowers viewed from the side

[0098] When the cucumber flower target is identified as a side-view open flower, an active observation pose is generated based on the key points of the side-view open flower, instead of directly generating a six-degree-of-freedom operational pose.

[0099] Let the two-dimensional coordinate vectors corresponding to K1, K2, K4, and K5 be respectively , , and Then the midpoints of the upper and lower edges of the flower opening are:

[0100]

[0101] Move the key point K4 at the center of the flower opening towards the midpoint of the upper and lower edges of the flower opening to obtain the intermediate correction position:

[0102]

[0103] Based on the direction from the key point K5 connecting the flower stem to the intermediate correction position, the two-dimensional observation center of the corrected flower opening is obtained:

[0104] (4)

[0105] In the formula, For the center correction factor, This is a preset pixel distance that moves along the axial direction of the flower crown. To correct the two-dimensional observation center of the flower opening.

[0106] In one specific implementation, the center correction coefficient Set to 0.35, preset pixel distance Use 4 pixels. The above parameters can be adjusted according to image resolution and flower crown shape.

[0107] Key point K3 at the front end of the corolla is used to check the axial direction of the corolla. When the direction of K5 pointing to the corrected two-dimensional observation center of the flower opening is significantly inconsistent with the direction of K5 pointing to K3, it is determined that the structural relationship of the side-view key point does not meet the requirements, and no active observation pose is generated.

[0108] Based on the corrected two-dimensional observation center of the flower mouth, candidate depth sampling locations are set up in its vicinity, and effective depths are searched from the depth map. Based on the proportion of effective depths and depth fluctuations among the candidate locations, the effective depth that meets the requirements is selected.

[0109] Based on the corrected two-dimensional observation center of the flower aperture, the corresponding effective depth, and the camera intrinsic parameters, a three-dimensional back projection is performed to obtain the three-dimensional observation center in the camera coordinate system.

[0110] The active observation position is determined based on the three-dimensional observation center, the axial direction of the corolla, and a preset observation distance. The active observation position is located outside the corolla opening and maintains the preset observation distance from the three-dimensional observation center.

[0111] The active observation optical axis is directed from the active observation position to the three-dimensional observation center. The lateral reference direction of the corolla is determined based on the key point K1 on the upper edge of the corolla and the key point K2 on the lower edge of the corolla. A right-handed orthogonal coordinate system is constructed by cross product to obtain the active observation pose in the camera coordinate system.

[0112] The active observation pose is converted to the robotic arm's base coordinate system, and the robotic arm is controlled to move the camera to the active observation position and adjust the observation direction. After the robotic arm stabilizes, color images and depth maps are reacquired, and the reacquired color images are input again into the cucumber flower target detection model.

[0113] When multiple cucumber flower targets exist in the re-acquired image, the same target is matched based on the image position and 3D position of the target before and after active observation.

[0114] When the same target is successfully matched and the cucumber flower target is re-identified as a front-view open flower, the front-view open flower key point detection model is invoked, and the six-degree-of-freedom working pose is obtained according to the aforementioned front-view open flower six-degree-of-freedom working pose generation process.

[0115] If the re-identification result is not a frontal open flower, the same target matching fails, or an effective depth cannot be obtained, the six-degree-of-freedom working pose is not output.

[0116] (vii) Coordinate transformation and pose output

[0117] Define the base coordinate system of the robotic arm as The coordinate system of the robotic arm's end effector is The camera coordinate system is .

[0118] set up This is the homogeneous transformation matrix for transforming the robot arm's end-effector coordinate system to the robot arm's base coordinate system. This is a fixed homogeneous transformation matrix for transforming from the camera coordinate system to the robot arm's end effector coordinate system. Given the target pose in the camera coordinate system, the target pose in the robot arm's base coordinate system is:

[0119] (5)

[0120] In the formula, when hour, Indicates the pose of a six-degree-of-freedom operation; when hour, This indicates active observation of pose.

[0121] For active observation pose, the converted result is used to control the robotic arm to drive the camera to change the observation position and direction; for six-degree-of-freedom operation pose, the converted result is used to output the target position and target attitude in the robotic arm's base coordinate system.

[0122] The translation component in the six-degree-of-freedom pose is represented as the target position. The rotation matrix is ​​converted into Euler angles, rotation vectors, or quaternions in the form of the target posture according to the robot arm control interface, so as to guide the end effector to reach the center of the cucumber flower and maintain the corresponding working posture.

[0123] The memory stores a cucumber flower target detection model, a front-view open flower key point detection model, a side-view open flower key point detection model, and a computer program that implements the above processing procedures. When the processor executes the computer program, it performs cucumber flower target recognition, calls the corresponding key point detection model according to the recognition category, 3D key point recovery, active observation of side-view open flowers, generation of six-degree-of-freedom pose for front-view open flowers, and coordinate transformation.

[0124] The camera type, neural network model, key point confidence threshold, depth sampling neighborhood, center correction coefficient, and preset observation distance mentioned above can all be adjusted according to the actual working environment. As long as the above-mentioned functions can be achieved, they all belong to the implementation of the technical solution of this invention.

[0125] All parts not covered in this invention are the same as or can be implemented using existing technologies.

Claims

1. A method for generating six-DOF operational pose of an open cucumber flower based on active hand-eye vision, characterized in that, include: Acquire a color image containing cucumber flower targets and a depth map aligned with the color image; The cucumber flower targets in the color image are detected, and the open state and viewing orientation of the cucumber flower targets are jointly identified. The cucumber flower targets are divided into front-view open flowers, side-view open flowers, back-view open flowers and non-open flowers. When the cucumber flower target is a front-view open flower or a side-view open flower, the corresponding category-specific two-dimensional key points are extracted according to the category of the cucumber flower target. The depth of the two-dimensional key points is determined by combining the depth map and camera intrinsic parameters. The two-dimensional key points are then back-projected onto the camera coordinate system to obtain the corresponding three-dimensional key points.

2. The method for generating six-DOF operational pose of an open cucumber flower based on active hand-eye vision according to claim 1, characterized in that, The opening of the open flower is facing the camera, and the flower center and petal unfolding structure are visible. The opening of the corolla of the side-viewed open flower is lateral to the camera, and the lateral edge of the corolla and the area where the pedicel connect are visible; The back of the open flower is facing the camera, and the flower center and the opening of the corolla are not visible. The non-open flowers are cucumber flowers that are in bud, not fully open, or withered and do not meet the preset opening conditions. The front-view open flower enters the six-degree-of-freedom working pose generation branch, the side-view open flower enters the active observation branch, and the back-view open flower and non-open flower do not enter the working pose generation process.

3. The method for generating six-DOF operational pose of an open cucumber flower based on active hand-eye vision according to claim 1, characterized in that, When the cucumber flower target is an open flower viewed from the front, the corolla plane is fitted according to the three-dimensional key points corresponding to the petal endpoints to determine the orientation unit flower surface normal vector; the intersection of the camera ray corresponding to the two-dimensional key point of the flower center with the corolla plane is obtained to obtain the corrected operation center, and a six-degree-of-freedom operation pose is generated according to the corrected operation center and the orientation unit flower surface normal vector.

4. The method for generating six-DOF operational pose of a cucumber open flower based on active hand-eye vision according to claim 3, characterized in that, When the target cucumber flower is a side-view open flower, the two-dimensional observation center of the flower opening is determined and corrected based on the category-specific two-dimensional key points, the corresponding three-dimensional observation center is restored and an active observation pose is generated; the active observation pose is converted to the robot arm base coordinate system, the robot arm is controlled to adjust the observation angle and re-acquire color images and depth maps; when the re-identified target cucumber flower is a front-view open flower, the six-degree-of-freedom operation pose generation process of the front-view open flower is entered.

5. The method for generating six-DOF operational pose of a cucumber open flower based on active hand-eye vision according to claim 4, characterized in that, After obtaining the six-degree-of-freedom working pose, the robot arm's current end-effector pose and the hand-eye calibration relationship are used to transform it from the camera coordinate system to the robot arm base coordinate system, and the target position and target posture in the robot arm base coordinate system are output.

6. The method for generating six-DOF operational pose of a cucumber open flower based on active hand-eye vision according to claim 1, characterized in that, The six-DOF operation pose generation for the frontal view of an open flower includes: Fit the corolla plane based on the 3D key points corresponding to the petal endpoints to determine the normalized flower surface normal vector facing the camera; The center of the correction operation is obtained by intersecting the camera ray corresponding to the two-dimensional key point of the flower center with the corolla plane; A six-degree-of-freedom working pose is generated based on the corrected working center, the flower surface normal vector, and the reference direction in the corolla plane determined by the three-dimensional key points corresponding to the petal endpoints.

7. The method for generating six-DOF operational pose of a cucumber open flower based on active hand-eye vision according to claim 1, characterized in that, The active observation of the side-view open flower includes: Based on the key points of the upper edge of the corolla, the lower edge of the corolla, the center of the flower opening, and the connection point of the pedicel, determine the two-dimensional observation center of the corrected flower opening; Based on the effective depth corresponding to the two-dimensional observation center of the corrected flower mouth and the camera intrinsic parameters, the three-dimensional observation center is obtained; An active observation pose is generated based on the three-dimensional observation center and the preset observation distance. The active observation pose is then converted to the robotic arm's base coordinate system. The robotic arm is controlled to drive the camera to adjust the observation angle and re-acquire color images and depth maps. The re-acquired color image is used for cucumber flower target recognition. When the cucumber flower target is recognized as an open flower in front view, the six-degree-of-freedom operation pose generation process of the open flower in front view is entered.

8. The method for generating six-DOF operational pose of an open cucumber flower based on active hand-eye vision according to claim 1, characterized in that, The category-specific two-dimensional key points include: The key points of one flower center and five petal endpoints corresponding to the frontal open flower; The key points of the upper edge of the corolla, the lower edge of the corolla, the front end of the corolla, the center of the flower opening, and the connection point of the pedicel are corresponding to the side-view open flower.

9. The method for generating six-DOF operational pose of a cucumber open flower based on active hand-eye vision according to claim 1, characterized in that, The acquisition of the three-dimensional key points includes: Using the two-dimensional key points as the center, extract local depth values ​​from the depth map; Invalid depth values ​​and outliers are removed from the candidate depth values, and the median of the remaining valid depth values ​​is determined as the valid depth of the two-dimensional key point. Based on the pixel coordinates of the two-dimensional key points, the effective depth, and the camera intrinsic parameters, a three-dimensional back projection is performed to obtain the corresponding three-dimensional key points in the camera coordinate system.

10. A six-DOF (degrees of freedom) operational pose generation system for cucumber open flower based on active hand-eye vision, the system being used to implement the method as described in any one of claims 1 to 9, characterized in that, The system includes a robotic arm, an image acquisition device, and a visual computing processing unit; The image acquisition device includes a camera and an image preprocessing module. The camera is used to acquire a color image containing cucumber flower targets, and the image preprocessing module is used to perform alignment processing on the acquired color image. The visual computing processing unit is used to identify the open state and observation orientation of cucumber flowers, extract corresponding category-specific two-dimensional key points according to the category of cucumber flower target, determine the depth of the two-dimensional key points by combining the depth map and camera intrinsic parameters, and back-project the two-dimensional key points to the camera coordinate system to obtain the corresponding three-dimensional key points. The robotic arm is used to drive the camera to adjust the observation angle based on the active observation pose transformed to the robotic arm's base coordinate system.