A computer vision-based robot task planning method and system

By refining the judgment of environmental noise and real physical changes, introducing hysteresis locking and boundary uncertainty marking, and optimizing the timing of task sequence updates, the problem of task sequence rearrangement caused by environmental fluctuations in robot vision systems is solved, thereby improving the efficiency and stability of assembly lines.

CN123160937APending Publication Date: 2026-11-24BEIJING OUYI INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In automotive assembly lines, fluctuations in ambient lighting and minor differences in part surfaces cause fluctuations in the angle estimation values ​​of robot vision systems, leading to frequent invalid task sequence rearrangements by the task planner, which reduces assembly efficiency and robot operational stability.

Method used

By continuously acquiring continuous angular deviation measurements and low-level image features of the target object, a short-term state trajectory is constructed, environmental noise and real physical changes are finely judged, hysteresis locking and boundary uncertainty marking are introduced, and the timing of task sequence updates is optimized.

Benefits of technology

It effectively avoids invalid reordering of task sequences caused by visual critical fluctuations, improves the stability and assembly efficiency of robot operations, and ensures the continuity of task sequences and execution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160937A_ABST
    Figure CN123160937A_ABST
Patent Text Reader

Abstract

This application discloses a robot task planning method and system based on computer vision, relating to the fields of computer vision and robot task planning technology. It aims to solve the problem of frequent invalid task sequence rearrangement by the task planner in automotive assembly lines when robot vision systems perform pose recognition and deviation estimation for parts, reducing assembly efficiency and robot operation stability. The method includes: continuously acquiring continuous angular deviation measurements of the target object and low-level image features characterizing the degree of environmental disturbance; sequentially combining the single-frame observation state vectors of the target object across multiple frames to construct a short-time state trajectory of the target object; and determining whether the target object is in a stable state or in a boundary uncertain state near the preset classification threshold based on the statistical characteristics of the continuous angular deviation measurements in the short-time state trajectory and the frequency of crossing a preset classification threshold.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the fields of computer vision and robot task planning technology, and in particular to a robot task planning method and system based on computer vision. Background Technology

[0002] In automotive assembly lines, robots typically rely on computer vision systems to identify the pose and estimate deviations of parts, guiding them to perform tasks such as grasping. The deviation estimates output by the vision system are categorized and mapped into the rigid execution rules of the task planner, dynamically determining the grasping order or adjustment strategy for the parts. However, in actual assembly environments, ambient lighting may fluctuate slightly, and the surfaces of parts may have minor reflections or texture differences.

[0003] When the placement angle deviation of a bolt to be grasped is just near the classification threshold set by the visual algorithm between bolts that can be directly grasped and bolts that require posture adjustment, the aforementioned slight environmental changes will cause the angle estimation value output by the visual algorithm in consecutive frames to fluctuate slightly around this threshold. Since the task planner relies on the visual semantic classification results for rigid sequence rearrangement, this fluctuation in the estimation value at the critical state will cause the classification label of the bolt to repeatedly jump between the two categories.

[0004] Existing systems lack a smoothing mechanism for such critical fluctuations. The planner may misinterpret this as a substantial change in the environment or object state, leading to frequent premature or delayed placement of the bolt in the task sequence. This not only causes invalid oscillations in the task sequence before the robot even performs its actions, but also results in disjointed pauses or meaningless reciprocating movements during the grasping process, thereby reducing assembly efficiency and the stability of robot operations. Summary of the Invention

[0005] This application provides a robot task planning method and system based on computer vision, aiming to solve the problem that in automobile assembly lines, when robot vision systems perform pose recognition and deviation estimation of parts, fluctuations in ambient lighting or slight differences in the surface of parts cause fluctuations in the estimated values ​​at a critical state, which in turn cause the classification labels to jump repeatedly, resulting in the task planner frequently performing invalid task sequence rearrangement, reducing assembly efficiency and robot operation stability.

[0006] Firstly, to address the aforementioned technical problems, this invention provides a robot task planning method based on computer vision. This method includes: continuously acquiring continuous angular deviation measurements of a target object and low-level image features characterizing the degree of environmental disturbance, forming a single-frame observation state vector for each frame; sequentially combining the single-frame observation state vectors of the target object across multiple frames to construct a short-time state trajectory of the target object; determining whether the target object is in a stable state or in a boundary uncertain state near a preset classification threshold based on the statistical characteristics of the continuous angular deviation measurements in the short-time state trajectory and the frequency of crossing a preset classification threshold; and, when determining whether the target object is in a boundary uncertain state, determining the change in the low-level image features in the short-time state trajectory... The system identifies whether the source of the state change is environmental noise or a real physical change. When the target object is determined to be in a boundary uncertainty state and the source of the state change is environmental noise, hysteresis locking is implemented on the target object, and a first corrected state label carrying a boundary uncertainty marker is generated. When the target object is determined to be in a stable state or the source of the state change is a real physical change, a second corrected state label is generated based on the current continuous angle deviation measurement value. The first or second corrected state label is used as the planning input, and the system determines whether to trigger an update of the task sequence for the target object based on the robot's current micro-execution stage and whether the current planning input carries a boundary uncertainty marker.

[0007] Secondly, this application provides a computer vision-based robot task planning system, which includes: an acquisition unit for continuously acquiring continuous angle deviation measurements of a target object and low-level image features characterizing the degree of environmental disturbance, forming a single-frame observation state vector for each frame; a construction unit for sequentially combining the single-frame observation state vectors of the target object across multiple frames to construct a short-time state trajectory of the target object; and a discrimination unit for determining whether the target object is in a stable state or in a boundary uncertain state near a preset classification threshold based on the statistical characteristics of the continuous angle deviation measurements in the short-time state trajectory and the frequency of crossing a preset classification threshold, and, when determining whether it is in a boundary uncertain state, based on the changes in the low-level image features in the short-time state trajectory. Furthermore, the system identifies whether the source of the state change is environmental noise or a real physical change; the generation unit is used to implement hysteresis locking on the target object and generate a first corrected state label carrying a boundary uncertainty marker when it is determined that the target object is in a boundary uncertainty state and the source of the state change is environmental noise; when it is determined that the target object is in a stable state or the source of the state change is a real physical change, it generates a second corrected state label determined based on the current continuous angle deviation measurement value; the processing unit is used to take the first corrected state label or the second corrected state label as planning input, and determine whether to trigger the task sequence update of the target object according to the current micro-execution stage of the robot and whether the current planning input carries a boundary uncertainty marker.

[0008] This application has at least the following beneficial effects: It effectively solves the problem in the prior art where slight environmental changes cause fluctuations in the output value of visual algorithms at critical states, leading to frequent invalid task sequence rearrangements by the task planner. Specifically, this application avoids misjudging visual critical fluctuations as real physical changes by introducing refined judgment of boundary uncertainties and identification of environmental noise. The introduction of hysteresis locking mechanism and boundary uncertainty markers enables the task planner to maintain the stability of the task sequence when facing critical fluctuations, avoiding unnecessary rearrangements. Furthermore, by combining the judgment of the robot's micro-execution stage, the triggering timing of task sequence updates is further optimized, ensuring the continuity and efficiency of robot operations. Therefore, this application can significantly improve the stability and assembly efficiency of robot task planning, overcoming the shortcomings of the prior art. Attached Figure Description

[0009] Figure 1 This is a flowchart illustrating a computer vision-based robot task planning method provided in this application; Figure 2 This is a flowchart illustrating another computer vision-based robot task planning method provided in this application; Figure 3 This is a schematic diagram of the structure of a computer vision-based robot task planning system provided in this application. Detailed Implementation

[0010] The technical solutions of this application will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of this application, and not all embodiments. The components of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0011] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this application, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0012] In automotive assembly lines, robots typically rely on computer vision systems to identify the pose and estimate deviations of parts, guiding them to perform tasks such as grasping. The deviation estimates output by the vision system are categorized and mapped into the rigid execution rules of the task planner, dynamically determining the grasping order or adjustment strategy for parts. However, in actual assembly environments, ambient lighting may fluctuate slightly, and part surfaces may exhibit minor reflections or texture differences. When the placement angle deviation of a bolt to be grasped happens to be near the classification threshold set by the vision algorithm between direct grasp and posture adjustment, these minor environmental changes cause the angle estimates output by the vision algorithm to fluctuate slightly around this threshold in consecutive frames. Since the task planner relies on visual semantic classification results for rigid sequence rearrangement, this critical fluctuation in the estimate value causes the bolt's classification label to repeatedly jump between the two categories. Existing systems lack a smoothing mechanism for such critical fluctuations, causing the planner to misinterpret them as substantial changes in the environment or object state, thus frequently advancing or delaying the bolt in the task sequence. This not only causes invalid oscillations in the task sequence before the robot even performs its actions, but also causes discontinuous pauses or meaningless back-and-forth movements during the grasping process, thereby reducing assembly efficiency and the stability of robot operation.

[0013] In view of the above problems, this application provides a robot task planning method based on computer vision. By introducing a refined identification and correction mechanism for the state of the target object, this application effectively distinguishes between critical fluctuations caused by environmental noise and real physical changes. On this basis, through hysteresis locking and state labels with uncertainty markers, invalid task sequence updates caused by misjudgment by the task planner are avoided, thereby significantly improving the stability and efficiency of robot operation.

[0014] The robot task planning method based on computer vision provided in this application will be described in detail and explained through the following specific embodiments.

[0015] Reference Figure 1 This application provides a computer vision-based robot task planning method, which may include the following steps: S101. Continuously acquire continuous angular deviation measurements of the target object and low-level image features characterizing the degree of environmental disturbance to form a single-frame observation state vector for each frame.

[0016] S102. Combine the single-frame observation state vectors of the target object in multiple frames according to the time sequence to construct the short-time state trajectory of the target object.

[0017] S103. Based on the statistical characteristics of the continuous angle deviation measurement values ​​in the short-term state trajectory and the frequency of crossing the preset classification threshold, determine whether the target object is in a stable state or in a boundary uncertain state near the preset classification threshold. When it is determined to be in a boundary uncertain state, identify the source of the state change as environmental noise or real physical change based on the changes in the underlying image features in the short-term state trajectory.

[0018] S104. When it is determined that the target object is in a boundary uncertainty state and the source of the state change is environmental noise, hysteresis locking is implemented on the target object, and a first corrected state label carrying a boundary uncertainty marker is generated; when it is determined that the target object is in a stable state or the source of the state change is a real physical change, a second corrected state label is generated based on the current continuous angle deviation measurement value.

[0019] S105. Using the first or second corrected state label as the planning input, and based on the current micro-execution stage of the robot and whether the current planning input carries a boundary uncertainty marker, determine whether to trigger the task sequence update of the target object.

[0020] In order to better understand the technical solutions proposed in this application, it is necessary to explain some key terms involved therein.

[0021] "Continuous angular deviation measurement" refers to the angular difference between the actual posture and the ideal posture of a target object estimated after the target object is identified by a vision system. These measurements are acquired continuously and reflect the dynamic changes in the posture of the target object.

[0022] "Underlying image features" refer to visual information extracted from an image that can characterize subtle changes in the environment or the target object itself, such as local brightness, contrast, and texture. These features help distinguish between environmental disturbances and real physical changes.

[0023] The "single-frame observation state vector" is a vector composed of continuous angle deviation measurements and underlying image features acquired at a certain moment, representing the observation state of the target object at a single point in time.

[0024] "Short-time state trajectory" refers to a short-term sequence of state changes formed by combining the single-frame observation state vectors of a target object in multiple frames in chronological order. This sequence is used to analyze the dynamic behavior of the target object.

[0025] "Preset classification threshold" refers to the preset angle deviation limit used in task planning to distinguish different states of a target object (e.g., whether it can be directly grasped or requires posture adjustment).

[0026] "Uncertain boundary state" refers to a state in which the continuous angular deviation measurement value of the target object fluctuates around a preset classification threshold, making it difficult to clearly classify as a stable state or a state that needs adjustment.

[0027] "Environmental noise" refers to visual measurement errors caused by physical changes in the environment, such as illumination, reflection, and shadows, that are not inherent to the target object itself.

[0028] "Real physical change" refers to the actual physical changes that occur in the position, posture, etc. of the target object itself.

[0029] "Hysteresis locking" is a state preservation mechanism that temporarily maintains the previous stable state classification when the target object is in an uncertain state and it is determined to be caused by environmental noise, thus avoiding frequent switching.

[0030] The “first corrected state label” is a state label with an uncertainty marker generated when the target object is in a boundary uncertainty state and hysteresis locking is implemented.

[0031] The "second corrected state label" is a state label determined based on the current measurement value when the target object is in a stable state or undergoes a real physical change.

[0032] The “micro execution phase” refers to the specific stage in which a robot performs a task, such as idle waiting, wide-area movement, approach or grasping execution.

[0033] The method proposed in this application first requires continuously acquiring continuous angular deviation measurements of the target object and low-level image features characterizing the degree of environmental disturbance to form a single-frame observation state vector for each frame. In one implementation, images of the target object can be continuously captured by a camera mounted on a robot. Then, image processing algorithms, such as grayscale conversion, filtering, and edge extraction, are used to extract the geometric features of the target object from the image, thereby calculating the continuous angular deviation measurements. Simultaneously, local brightness gradients or the proportion of overexposed pixels can be calculated as low-level image features. This information, along with timestamps and target object identifiers, is combined into a single-frame observation state vector. For example, on an automotive assembly line, a robot needs to grasp bolts. The vision system continuously captures images of the bolts and calculates the bolt's posture deviation (continuous angular deviation measurements) and image brightness changes (low-level image features), packaging this data into the observation state vector for each frame.

[0034] Next, the single-frame observation state vectors of the target object across multiple frames are combined sequentially to construct a short-time state trajectory for the target object. One implementation is to maintain a fixed-length queue for each target object, such as a first-in, first-out queue. When a new single-frame observation state vector is generated, it is added to the end of the queue, while the oldest single-frame observation state vector is removed to ensure that the queue always contains state data from the most recent period, thus forming a short-time state trajectory. For example, a queue containing 30 frames of data can be set up. Whenever a new frame of data enters, the oldest frame of data is removed, thus forming a 30-frame short-time state trajectory that reflects the state changes of the target object in the recent period.

[0035] Subsequently, based on the statistical characteristics of continuous angular deviation measurements in the short-time state trajectory and the frequency of crossing a preset classification threshold, the target object is determined to be in a stable state or in a boundary uncertainty state near the preset classification threshold. When determining that it is in a boundary uncertainty state, the source of the state change is identified as environmental noise or real physical change based on the changes in the underlying image features in the short-time state trajectory. One implementation method is to calculate the average value, standard deviation, and total number of times the preset classification threshold is crossed for all continuous angular deviation measurements in the short-time state trajectory. If the absolute value of the difference between the average value and the preset classification threshold is large, and the standard deviation is small, and the number of times the threshold is crossed is infrequent, the target object can be determined to be in a stable state. Conversely, if the absolute value of the difference between the average value and the preset classification threshold is small, and the number of times the threshold is crossed is high, it is determined to be a boundary uncertainty state. When in a boundary uncertainty state, the changes in underlying image features are further analyzed. For example, if the underlying image features (such as local average brightness gradient or overexposed pixel ratio) change significantly, while the centroid coordinates of the target object change very little, it may indicate fluctuations caused by environmental noise. If the centroid coordinates change significantly and satisfy the kinematic matching relationship with the change in angle deviation, while the underlying image features do not change much, it may indicate a real physical change.

[0036] When a target object is determined to be in a boundary uncertainty state and the source of the state change is environmental noise, hysteresis locking is applied to the target object, generating a first corrected state label carrying a boundary uncertainty marker. When the target object is determined to be in a stable state or the source of the state change is a real physical change, a second corrected state label is generated based on the current continuous angle deviation measurement value. One implementation is that when the system identifies a target object in a boundary uncertainty state caused by environmental noise, the system backtracks to the last classification label of the target object when it was determined to be in a stable state before entering the boundary uncertainty state, and uses that as the classification result for the current frame, while attaching a boundary uncertainty marker to that classification result. For example, if a bolt was previously stably classified as "directly graspable," when it enters a boundary uncertainty state and is determined to be caused by environmental noise, the system will continue to mark it as "directly graspable," but will additionally attach an "uncertainty" marker. If the target object is in a stable state, or although it is in a boundary uncertainty state but is determined to be caused by a real physical change, its classification label is directly determined based on the current continuous angle deviation measurement value, and a second corrected state label is generated.

[0037] Finally, using either the first or second corrected state label as the planning input, and based on the robot's current micro-execution stage and whether the current planning input carries a boundary uncertainty marker, it is determined whether to trigger a task sequence update for the target object. One implementation involves the system acquiring the robot's current micro-execution stage in real time, such as idle waiting, wide-area movement, approach, or grasping execution. If the planning input is a first corrected state label carrying a boundary uncertainty marker, and the robot is in an approach or grasping execution state, the system will block all task sequence rearrangement requests for the current target object until the current action is completed. This means that even if the label output by the vision system carries uncertainty, the robot will prioritize completing the currently executing or about-to-be-executed action, avoiding interruptions or frequent adjustments due to uncertainty. If the robot is in an idle waiting or wide-area movement state, an observation timer is set for the target object. Before the timer expires, the target object's original position in the current grasping sequence is maintained, and no task sequence update is triggered. If the planning input is a second corrected state label, it is included in the task sequence update process, and the task sequence is re-evaluated based on the new state information.

[0038] The method proposed in this application, through the synergistic effect of the above-mentioned technical features, can effectively solve the problem of invalid task sequence oscillation caused by critical fluctuations of the vision system in existing robot task planners.

[0039] Specifically, this application first constructs a single-frame observation state vector and short-time state trajectory containing richer information by continuously acquiring continuous angular deviation measurements and low-level image features of the target object. This enables the system to not only perceive the pose deviation of the target object, but also the degree of environmental disturbance, providing a data foundation for subsequent refined state judgment.

[0040] Secondly, by analyzing the statistical characteristics of continuous angular deviation measurements in short-term state trajectories and the frequency of crossing preset classification thresholds, this application can accurately determine whether the target object is in a stable state or a boundary uncertain state. This step avoids the simple binary classification of critical states in traditional methods, laying the foundation for subsequent differentiated processing.

[0041] Furthermore, when determining whether a state is in an uncertain boundary state, this application identifies whether the source of the state change is environmental noise or a real physical change based on changes in the underlying image features. For example, when the vision system detects that the bolt's pose deviation fluctuates near the classification threshold, if it also detects significant changes in the local brightness gradient or the proportion of overexposed pixels in the image, while the bolt's centroid position hardly moves, the system will determine that this fluctuation is caused by environmental noise such as changes in ambient lighting, rather than a genuine physical displacement of the bolt. This identification mechanism is one of the core innovations of this application, enabling the system to distinguish between "false" and "true" state changes.

[0042] Building upon this, this application introduces a hysteresis locking mechanism and a first corrected state label with a boundary uncertainty marker. When a boundary uncertainty state is determined to be caused by environmental noise, the system backtracks to the previous stable state of the target object and adds an uncertainty marker to it. For example, if a bolt was previously stably identified as "directly graspable," when it fluctuates near a threshold due to environmental noise, the system will continue to mark it as "directly graspable," but with an additional "uncertainty" marker. This hysteresis locking avoids the task planner frequently adjusting the task sequence due to brief, non-substantial fluctuations. In contrast, existing technologies, when encountering such critical fluctuations, directly switch the target object's classification label repeatedly between different categories, leading to ineffective oscillations in the task sequence.

[0043] Finally, this application intelligently determines whether to trigger a task sequence update based on the robot's current micro-execution stage and whether the planning input carries a boundary uncertainty marker. For example, when the robot is approaching or grasping a target object, even if it receives a first correction status label with an uncertainty marker, the system will block the task sequence rearrangement request and prioritize completing the current action. This effectively avoids the robot from pausing or making meaningless back-and-forth movements due to uncertainty during critical execution stages, significantly improving the continuity and efficiency of the operation. In contrast, existing technologies, lacking mechanisms for identifying and handling uncertainty, may still trigger frequent updates to the task sequence due to critical fluctuations in the vision system when the robot is performing critical actions, thereby reducing assembly efficiency and the stability of robot operations.

[0044] In summary, this application effectively solves the problem of ineffective oscillation of the task planner caused by critical fluctuations of the vision system in the prior art by introducing refined identification of the target object's state, differentiation between environmental noise and real physical changes, hysteresis locking mechanism, and intelligent task sequence update strategy based on uncertainty labeling, thus significantly improving the stability and efficiency of robot operation.

[0045] In some of the embodiments described above in this application, in order to more specifically realize the continuous acquisition of continuous angular deviation measurement values ​​of the target object and the low-level image features characterizing the degree of environmental disturbance, and to form a single-frame observation state vector for each frame, this application further proposes the following steps.

[0046] refer to Figure 2 The aforementioned continuous acquisition of continuous angular deviation measurements of the target object and low-level image features characterizing the degree of environmental disturbance forms a single-frame observation state vector for each frame, including: S201. Obtain consecutive frame images of the target object.

[0047] S202. Perform grayscale conversion, filtering, edge extraction, and connected component segmentation on each frame of the image, and calculate the geometric moments and covariance matrix of the segmented region to extract the centroid coordinates and continuous angular deviation measurements of the target object.

[0048] S203. Calculate the local average brightness gradient and the proportion of overexposed pixels in the segmented region as the underlying image features.

[0049] S204. Combine the timestamp of the current frame, the identifier of the target object, the centroid coordinates, the continuous angle deviation measurement, the local average brightness gradient, and the overexposed pixel ratio into a single-frame observation state vector.

[0050] Specifically, acquiring continuous frame images of the target object refers to continuously capturing image data streams of the target object at different points in time using a vision sensor, such as an industrial camera or a depth camera, at a preset frame rate. These continuous image frames constitute the basic data for subsequent processing.

[0051] Furthermore, each frame of the image undergoes grayscale conversion, filtering, edge extraction, and connected component segmentation. Grayscale conversion transforms a color image into a grayscale image, simplifying the image data, reducing the complexity of subsequent calculations, and highlighting the image's brightness information. Filtering removes potential noise from the image, such as Gaussian noise or salt-and-pepper noise, to smooth the image and improve the accuracy of subsequent feature extraction; common filtering methods include Gaussian filtering and median filtering. Edge extraction identifies the boundary contours of target objects in the image, using algorithms such as the Canny operator, Sobel operator, or Prewitt operator, aiming to accurately delineate the shape information of the target object. Connected component segmentation divides adjacent pixel regions with similar features into independent connected regions, separating the target object from the background and providing a clear region for subsequent geometric feature calculations.

[0052] Based on this, the geometric moments and covariance matrix of the segmented region are calculated to extract the centroid coordinates of the target object and the continuous angular deviation measurements. The geometric moments are mathematical tools describing the shape features of an image region; for example, the zeroth moment can be used to represent the area of ​​the region, while the first moment can be used to calculate the centroid coordinates of the region, i.e., the center position of the target object in the image. The covariance matrix describes the discreteness and directionality of the pixel distribution within the segmented region. By analyzing the eigenvalues ​​and eigenvectors of the covariance matrix, the pose information of the target object can be effectively extracted, thereby obtaining its continuous angular deviation measurements relative to a certain reference direction.

[0053] Simultaneously, the local average brightness gradient and the proportion of overexposed pixels in the segmented region are calculated as the underlying image features. The local average brightness gradient reflects the drastic degree of brightness change in a local area of ​​the image, aiming to assess changes in ambient lighting conditions or image sharpness. The proportion of overexposed pixels represents the percentage of pixels in the image whose brightness values ​​have reached saturation, aiming to assess the image's exposure and thus reflect the stability of ambient lighting. These underlying image features are extracted directly from the image pixel level and are used to characterize the degree of environmental disturbance, such as changes in lighting, shadows, and reflections.

[0054] Finally, the timestamp of the current frame, the identifier of the target object, the centroid coordinates, the continuous angular deviation measurement, the local average brightness gradient, and the overexposed pixel ratio are combined to form the single-frame observation state vector. The timestamp records the capture time of the image frame, ensuring the temporal sequence of the data; the identifier of the target object uniquely identifies different target objects; and the single-frame observation state vector integrates all the extracted information into a structured data unit, representing the complete observation state of the target object at a given moment, providing comprehensive data input for subsequent state judgment and task planning.

[0055] The above technical solution enables the systematic and efficient extraction of key information required for robot task planning from raw image data. Specifically, through refined image preprocessing and feature extraction, not only can the pose information of the target object (such as centroid coordinates and continuous angular deviation measurements) be accurately obtained, but environmental disturbances (such as local average brightness gradient and overexposed pixel ratio) can also be effectively quantified, thus providing high-quality, multi-dimensional data input for subsequent state judgment and task planning. This detailed data acquisition and feature extraction mechanism significantly improves the completeness and accuracy of the single-frame observed state vector, providing a reliable foundation for subsequent stable state judgment and boundary uncertainty identification, thereby enhancing the robustness and adaptability of the entire robot task planning system.

[0056] In some embodiments described above, when constructing a short-term state trajectory of a target object by sequentially combining single-frame observation state vectors from multiple frames, image frame loss may lead to discontinuous or incomplete short-term state trajectory data, thus affecting the accuracy of subsequent target object state judgments. If this problem is not addressed, the robustness and reliability of robot task planning will be affected. Therefore, this application further proposes an optimized method for constructing a short-term state trajectory of a target object by sequentially combining single-frame observation state vectors from multiple frames. This method maintains a state memory queue and introduces a frame loss compensation mechanism to ensure the continuity and reliability of the short-term state trajectory data.

[0057] In response, this application further proposes a step of constructing a short-time state trajectory of the target object by combining the single-frame observation state vectors of the target object in multiple frames in a temporal sequence, including: A first-in-first-out state memory queue is maintained for each target object, and the length of the state memory queue corresponds to a preset time sliding window. The newly generated single-frame observation state vector is stored in the corresponding state memory queue, and the oldest frame data that exceeds the time sliding window in the state memory queue is removed to form the short-time state trajectory. When frame loss occurs, compensation data for virtual frames is generated using the existing valid frame data before and after in the state memory queue through timestamp difference and interpolation. The virtual frames are then stored in the state memory queue after being marked with a low confidence tag. The low confidence tag is used to characterize that the data reliability of the virtual frames is lower than that of normal frame data when no frames are lost.

[0058] Specifically, the state memory queue is designed as a first-in, first-out (FIFO) data structure, which stores the single-frame observation state vector of a specific target object over a period of time. The length of the queue is preset to a time sliding window, which means that the queue always retains only frame data from the most recent period, thereby ensuring that the constructed short-term state trajectory can reflect the latest state of the target object in real time.

[0059] Specifically, when the system acquires a new single-frame observation state vector, this vector is stored in the state memory queue of the corresponding target object. Simultaneously, to maintain the correspondence between the queue length and the time sliding window, the oldest frame data in the queue, i.e., those exceeding the time sliding window, is automatically removed. In this way, the state memory queue can be dynamically updated and always contains a continuous, time-correct short-term state trajectory.

[0060] In practical applications, when image frames are lost due to various reasons (such as sensor failure, network latency, or temporary target occlusion), the solution of this application can compensate using existing temporally adjacent valid frame data in the state memory queue. Specifically, by calculating the timestamp difference between these valid frames and using interpolation methods (such as linear interpolation or more complex spline interpolation), compensation data for virtual frames is generated. To distinguish this compensation data from the actual observation data, the virtual frame is attached with a low-confidence flag, which explicitly indicates that the data reliability of the virtual frame is lower than that of the normal frame data when no frames were lost, thereby providing necessary reference information for subsequent state judgment and task planning.

[0061] Through the above technical solutions, this application can significantly improve the robustness of robot task planning systems in complex dynamic environments. By maintaining a first-in, first-out state memory queue, the real-time performance and temporal continuity of short-term state trajectories are ensured. Especially when facing common problems such as image frame loss, the proposed frame loss compensation mechanism can effectively fill data gaps and avoid state judgment errors caused by incomplete data. In addition, the introduction of low-confidence markers enables the system to perform risk assessment when using compensation data, further improving the reliability of the overall solution, thereby providing the robot with more stable and accurate target state information and optimizing the task sequence generation and update process.

[0062] In some embodiments described above in this application, a method is proposed to determine whether a target object is in a stable state or in a boundary uncertainty state near a preset classification threshold based on the statistical characteristics of continuous angular deviation measurements in a short-term state trajectory and the frequency of crossing a preset classification threshold. Specifically, the step of determining whether a target object is in a stable state or in a boundary uncertainty state near a preset classification threshold can be performed as follows.

[0063] The step of determining whether the target object is in a stable state or in a boundary uncertainty state near the preset classification threshold based on the statistical characteristics of the continuous angle deviation measurements in the short-term state trajectory and the frequency of crossing the preset classification threshold includes: Calculate the arithmetic mean, standard deviation, and total number of times the measured angle deviations of all consecutive angle deviations within the short-term state trajectory cross the preset classification threshold; When the absolute value of the difference between the arithmetic mean and the preset classification threshold is greater than the preset tolerance boundary band width, and the standard deviation is less than the preset noise threshold, and the total number of times the preset classification threshold is crossed is less than the preset high-frequency jump threshold, the target object is determined to be in the stable state. When the absolute value of the difference between the arithmetic mean and the preset classification threshold is less than or equal to the preset tolerance boundary band width, and the total number of times the preset classification threshold is crossed is greater than or equal to the preset high-frequency jump threshold, the target object is determined to be in the boundary uncertainty state. When the total number of times the preset classification threshold is crossed is not zero, but the target object recovers to the original interval and remains stable within a preset short frame period after crossing, it is determined that the target object is in a short-term swing state, and the short-term swing state is classified into the boundary uncertainty state.

[0064] The short-time state trajectory refers to the set of single-frame observation state vectors of the target object within a certain time sliding window. The continuous angle deviation measurement reflects the degree of deviation of the target object's posture from a certain reference. The preset classification threshold is a key boundary used to distinguish the state of the target object; for example, it can be set as the allowable range of target posture deviation in a robot grasping task.

[0065] Specifically, it is first necessary to calculate the arithmetic mean and standard deviation of all continuous angular deviation measurements within the short-term state trajectory, as well as the total number of times the target object's posture crosses the preset classification threshold. The arithmetic mean reflects the overall trend of the target object's posture, the standard deviation measures the severity of posture fluctuations, and the total number of times the target object's posture crosses the preset classification threshold quantifies the frequency of posture jumps near critical limits.

[0066] In a preferred embodiment, when the absolute value of the difference between the arithmetic mean and the preset classification threshold is greater than the preset tolerance boundary band width, it indicates that the target object's posture significantly deviates from the classification threshold. Simultaneously, when the standard deviation is less than a preset noise threshold, and the total number of times the preset classification threshold is crossed is less than a preset high-frequency jump threshold, the target object is comprehensively determined to be in the stable state. This indicates that the target object's posture is stable and far from the critical classification boundary.

[0067] Furthermore, when the absolute value of the difference between the arithmetic mean and the preset classification threshold is less than or equal to the preset tolerance boundary band width, it indicates that the target object's pose is close to or near the classification threshold. Simultaneously, when the total number of times the preset classification threshold is crossed is greater than or equal to the preset high-frequency jump threshold, the target object is determined to be in the boundary uncertainty state. This typically means that the target object's pose fluctuates frequently near critical boundaries, possibly influenced by environmental noise or minor physical changes.

[0068] Furthermore, to more precisely identify states, when the total number of times the preset classification threshold is crossed is not zero, but the target object recovers to its original range and remains stable within a preset short frame period after crossing, it can be determined that the target object is in a short-term swing state. This state is usually caused by transient disturbances, but the target object quickly recovers to stability. In this case, the short-term swing state is classified as a boundary uncertainty state to ensure vigilance against potential uncertainties.

[0069] Through the above technical solution, this application provides a more refined and robust target object state judgment mechanism. Compared to relying solely on a single threshold for judgment, this solution, by combining the arithmetic mean and standard deviation of continuous angular deviation measurements, as well as the frequency of crossing a preset classification threshold, can more accurately identify whether the target object is in a stable, operable state or in a boundary uncertainty state requiring further identification and careful handling. In particular, the identification of short-term swing states avoids misjudgments caused by instantaneous noise, improves the accuracy of state judgment and the stability of the system, thereby providing a more reliable decision-making basis for subsequent robot task planning.

[0070] Based on the changes in the underlying image features described above in the short-term state trajectory, the source of the state change is identified as environmental noise or real physical change, specifically including: Extract adjacent frames or multiple neighboring frames of data where a state transition occurs in the short-time state trajectory, and calculate the first Euclidean distance change of the centroid coordinates of the target object in the adjacent frames or multiple neighboring frames of data. Calculate the first rate of change of the local average brightness gradient and the proportion of overexposed pixels within the same time period; When the change in the first Euclidean distance is less than the preset sub-pixel variation threshold and the first change rate is greater than the preset photometric change threshold, the source of the state change is determined to be environmental noise. When the change in the first Euclidean distance is greater than or equal to the sub-pixel variation threshold, and the change in the first Euclidean distance satisfies the preset kinematic matching relationship with the change in the continuous angle deviation measurement value, and the first rate of change is less than or equal to the photometric abrupt change threshold, the source of the state change is determined to be a real physical change. When the combination of the first Euclidean distance change and the first rate of change does not fall into any of the above-mentioned judgment conditions, the source of the state change will be determined as environmental noise.

[0071] Specifically, when the state of a target object changes from a stable state to a boundary-uncertain state, or undergoes a significant change within a boundary-uncertain state, the system selects adjacent frames or multiple neighboring frames from the short-term state trajectory where these "state transitions" occur for analysis. The first Euclidean distance change refers to the spatial displacement of the target object's centroid coordinates on the image plane within these selected frames, quantifying the visual "movement" of the target object. The local average brightness gradient and the proportion of overexposed pixels are underlying image features; their rate of change, i.e., the first rate of change, characterizes the degree of instantaneous disturbance in the image environment (such as lighting and sharpness). As a preferred implementation, a preset sub-pixel variation threshold is a very small distance value, typically less than one pixel, used to distinguish between minute visual jitter that may be caused by noise and actual physical displacement. A preset photometric abrupt change threshold measures the drastic nature of changes in image brightness or contrast; a large value usually indicates a significant change in ambient lighting or camera parameters. The pre-defined kinematic matching relationship refers to the correlation between the displacement of the center of mass of the target object and the change in its posture (measured value of continuous angular deviation) in accordance with the laws of physical motion. For example, a pure translational motion should not be accompanied by significant posture changes, and vice versa.

[0072] Through the above technical solution, this application can significantly improve the accuracy of robot systems in identifying the source of changes in the state of target objects in complex visual environments. By introducing the first Euclidean distance change in the centroid coordinates, the first rate of change of the underlying image features, and preset sub-pixel variation thresholds, photometric abrupt change thresholds, and kinematic matching relationships, the system can more accurately distinguish between visual artifacts caused by environmental noise and the real physical movement of the target object. This precise discrimination capability avoids frequent and unnecessary task sequence updates caused by misjudging environmental noise as real physical changes, thereby improving the stability and efficiency of task planning. At the same time, it also ensures that when the target object undergoes real physical changes, the robot can promptly and accurately identify and make corresponding planning adjustments, thereby improving the reliability and adaptability of robot operations.

[0073] This application further proposes a step of implementing hysteresis locking on the target object and generating a first corrected state label carrying a boundary uncertainty marker, specifically including: By tracing back the short-term state trajectory, we can find the historical classification label corresponding to the last stable state before the target object entered the boundary uncertainty state. The historical classification label is used as the classification result of the current frame, and the boundary uncertainty marker is attached to the classification result of the current frame to generate the first corrected state label; After generating the first corrected state label, the hysteresis lock is maintained until the arithmetic mean of the continuous angle deviation measurements within the short-term state trajectory exceeds the preset tolerance boundary band, and the number of stable dwell frames after crossing the preset classification threshold reaches the preset stable confirmation period. Then, the hysteresis lock is released, and the second corrected state label is generated based on the current continuous angle deviation measurements.

[0074] Specifically, when the system determines that a target object is in a boundary uncertainty state and that this state change originates from environmental noise, hysteresis locking is implemented to avoid frequent state switching caused by transient noise. The first step of hysteresis locking is to backtrack the short-term state trajectory to identify the historical classification label corresponding to the last time the target object was confirmed as a stable state before entering the boundary uncertainty state. This historical classification label represents the true state of the target object in a relatively stable environment. Subsequently, this historical classification label is adopted as the classification result of the current frame and is appended with a boundary uncertainty marker, thereby generating a first corrected state label. This marker clearly indicates that although the current state is locked as a historical stable state, there is boundary uncertainty behind it, which requires special consideration in subsequent system planning. After generating the first corrected state label, the hysteresis locking state will be maintained. This means that even if the observation values ​​of subsequent frames fluctuate within the boundary uncertainty region, the system will still use the locked historical classification label to resist the interference of environmental noise. This locking state does not last indefinitely but has clear release conditions. The release conditions include two aspects: First, the arithmetic mean of the continuous angle deviation measurements within the short-term state trajectory must exceed the preset tolerance boundary band, indicating that the target object has significantly deviated from its original stable region. Second, after crossing the preset classification threshold, the target object must stably reside in the new region, and the number of frames of stable residence must reach the preset stable confirmation period. Only when both conditions are met simultaneously will the hysteresis lock be released, and the system will generate a second corrected state label based on the current continuous angle deviation measurements, thereby allowing the task planning system to update according to the new real state.

[0075] Through the above technical solutions, this application can significantly improve the robustness and reliability of robot task planning in complex environments. Specifically, by retrospectively reviewing historical classification labels and implementing hysteresis locking, the system can effectively suppress the interference of environmental noise on the judgment of the target object's state, avoid erroneous state switching caused by instantaneous fluctuations, thereby reducing unnecessary task sequence rearrangement and improving the stability of planning. In addition, the explicit hysteresis locking release mechanism, combined with the dual judgment of the arithmetic mean of continuous angle deviation measurements and the number of stable dwell frames, ensures that the system will only release the lock and update the state when the target object undergoes a real and continuous physical change. This avoids the lag or inaccuracy of state updates after noise elimination, enabling the robot to respond more timely and accurately to real changes in the target object, thereby optimizing the efficiency and success rate of task execution.

[0076] The above determination of whether to trigger an update to the task sequence of the target object includes: The robot's current micro-execution stage is acquired in real time. The micro-execution stage includes an idle waiting state, a wide-area movement state in which the end effector moves from a distance to the target object, an approaching state in which the end effector approaches the target object, and a grasping execution state. When the current planning input is the first corrected state label, if the robot is in the approximation state or the grasping execution state, then all task sequence rearrangement requests for the current target object are blocked until the current action is completed; When the current planning input is the first corrected state label, if the robot is in the idle waiting state or the wide-area movement state, an observation period timer is set for the target object. Before the observation period timer expires, the original position of the target object in the current grasping sequence is maintained, and the task sequence update is not triggered. When the current planning input is the second correction status label, the second correction status label will be included in the task sequence update process.

[0077] Specifically, the current micro-execution stage of a robot refers to the different operating modes or states it is in during the execution of a task. These stages are subdivided into idle waiting state, wide-area movement state, approaching state, and grasping execution state. Among them, the idle waiting state indicates that the robot is in a standby state or has no specific task to execute; the wide-area movement state means that the robot's end effector is moving from a relatively far distance towards the target object, at which time the accuracy requirement for path planning is relatively low; the approaching state means that the robot's end effector has approached the target object and is performing fine positioning and attitude adjustment, at which time the requirements for perception and response to the target state are high; the grasping execution state means that the robot's end effector is physically interacting with the target object, such as performing grasping and placement operations, at which time the requirements for stability and real-time performance are extremely high.

[0078] When the planning input is a first corrected state label carrying a boundary uncertainty marker, it indicates that the state of the target object has some uncertainty, but it has not yet been confirmed as a real physical change. If the robot is in the approximation state or grasping execution state at this time, these are critical and high-risk stages of task execution. To avoid task interruption or operational errors due to uncertainty information, the system will block all task sequence rearrangement requests for the current target object. This means that even if a planning input with an uncertainty marker is received, the robot will prioritize completing the currently executing approximation or grasping action until that action is completed, ensuring the continuity and safety of the operation.

[0079] Similarly, when the planning input is the first corrected state label, if the robot is in an idle waiting state or a wide-area movement state, the requirements for real-time response and accuracy are relatively low, and the system has a larger fault tolerance margin. In this case, an observation period timer is set for the target object. Before the observation period timer expires, the system maintains the target object's original position in the current grasping sequence and does not trigger task sequence updates. This is intended to give the system a buffer time to observe whether the target object's state can recover stability on its own, or to further confirm the source of uncertainty, avoiding frequent unnecessary task rescheduling due to brief uncertainties in non-critical stages.

[0080] When the planning input is the second corrected state label, it indicates that the target object is in a stable state or its state change has been confirmed as a real physical change. In this case, the system considers the planning input reliable and instructive, and therefore incorporates the second corrected state label into the task sequence update process. This means that the system can use this reliable information to evaluate and potentially update the task sequence according to a preset planning strategy or evaluation function to optimize subsequent operations.

[0081] Through the above technical solutions, this application can significantly improve the intelligence and robustness of robot task planning. Specifically, by distinguishing the micro-execution stage of the robot and combining it with the reliability of the planning input, the system can adopt differentiated task sequence update strategies according to the risk level and real-time requirements of the actual operation scenario. This effectively avoids errors or unnecessary task reordering caused by the transient uncertainty of the target object's state when the robot performs critical actions (such as approaching or grasping), thereby ensuring the continuity and safety of the operation. At the same time, in non-critical stages, by introducing an observation period mechanism, the system can filter out instantaneous state fluctuations caused by environmental noise, reduce invalid planning updates, and improve the system's operating efficiency and stability. This refined decision-making mechanism enables the robot to more intelligently cope with uncertainties in dynamic environments, optimize resource utilization while ensuring task success rate, reduce potential operational risks, and thus significantly improve the overall performance and reliability of the robot system.

[0082] In some preferred embodiments, a specific example is given below. Suppose an industrial robot is performing a task of picking up workpieces randomly placed on an assembly line.

[0083] First, the robot is in an idle waiting state, awaiting new workpieces to enter its work area. During this time, the vision system continuously monitors the workpieces and generates a single-frame observation state vector. If a workpiece is determined to be in a boundary uncertainty state and a first corrected state label carrying a boundary uncertainty marker is generated, the system sets an observation timer for that workpiece because the robot is in an idle waiting state. Before the timer expires, even if the workpiece's state label carries an uncertainty marker, the robot will not immediately adjust its task sequence but will continue to observe to confirm whether the uncertainty is transient noise or a real physical change. For example, if the workpiece's state stabilizes and a second corrected state label is generated before the timer expires, this second corrected state label will be included in the task sequence update process, and the robot may increase its priority and plan to grasp it.

[0084] Secondly, suppose the robot has already planned to grasp a workpiece and is in a wide-area movement state, with its end effector moving towards the workpiece from a distance. During this process, if the workpiece's state again exhibits boundary uncertainty and generates a first corrected state label, the system will also set an observation period timer. Before the timer expires, the robot will continue moving towards the workpiece along the original path without immediately interrupting its movement or replanning, thus avoiding frequent path adjustments due to brief uncertainties.

[0085] Furthermore, when the robot's end effector has approached the workpiece, entered the approximation state, and begun fine positioning, if the workpiece's state is determined to be in a boundary uncertainty state and a first correction state label is generated, the system will immediately block all task sequence rearrangement requests for that workpiece. This means that the robot will continue to complete the current approximation action without suddenly stopping or changing its target due to uncertainty, thus ensuring the stability and safety of the approximation process.

[0086] Finally, once the robot's end effector has contacted the workpiece and entered the grasping execution state, if the workpiece state again exhibits boundary uncertainty and generates a first corrected state label, the system will also block the task sequence rearrangement request. The robot will prioritize completing the current grasping action until the grasping is successful or fails, avoiding operation interruptions or errors due to uncertainty at critical grasping moments.

[0087] Through the above strategy, the solution of this application enables the robot to intelligently handle the uncertainty of the target object's state according to the task stage it is in, thereby improving the overall robustness of the system while ensuring task execution efficiency and safety.

[0088] In some embodiments of this application, when the planning input is a second corrected state label, the second corrected state label is incorporated into the task sequence update process. However, in practical applications, simply incorporating the label into the process may not effectively solve the problem of dynamic priority adjustment in multi-objective task planning, especially when the robot's working environment is complex and the target object's state is variable. How to efficiently and intelligently update the task sequence to optimize robot operation efficiency is a challenge. If the above problems are not solved, the robot may execute tasks in a suboptimal order, thereby reducing overall operation efficiency.

[0089] In this regard, this application further proposes a specific method for incorporating the aforementioned second revised status label into the task sequence update process, including: When the preconditions for triggering a task sequence update are met, a preset evaluation function is used to recalculate the priority scores of all target objects to be captured in order to generate a new task sequence; the evaluation function includes the following calculation items: The base distance score is inversely proportional to the Euclidean distance from the current spatial coordinates of the robotic arm's end effector to the three-dimensional coordinates of each target object; The attitude adjustment time penalty term corresponding to the additional time required for attitude adjustment based on the classification label; And a state switching history penalty item, which is used to apply a penalty coefficient to any target object to reduce the priority score of any target object when the priority adjustment amount of any target object in a preset recent time period exceeds a preset adjustment range threshold.

[0090] Specifically, the "precondition for triggering task sequence update" can be understood as follows: when the robot is in an idle waiting state or a wide-area movement state, and the planning input is the aforementioned second corrected state label, the system will evaluate whether the task sequence needs to be updated. The "preset evaluation function" is a comprehensive mathematical model whose purpose is to quantify the priority of each target object to be grasped. This evaluation function can integrate multiple calculation items through weighted summation, product, or other nonlinear combinations, according to the needs of the actual application scenario, to output a single priority score.

[0091] The "base distance score" reflects the ease with which the robot actuator can reach the target object. Generally, the closer the target object, the higher the base distance score, thus giving it an advantage in priority ranking. The "Euclidean distance" refers to the straight-line distance between the current position of the robot arm's end effector and the three-dimensional coordinates of the target object. This score is inversely proportional to the Euclidean distance; that is, the closer the distance, the higher the score.

[0092] The "Posture Adjustment Time Cost Penalty" is used to account for the additional posture adjustment time required when grasping different target objects. Different target objects may have different shapes, sizes, or placement postures, causing the robotic arm to need to perform varying degrees of posture adjustment before grasping. This penalty term estimates the additional time required based on the target object's classification label (e.g., object type and posture information obtained through visual recognition) and converts it into a penalty value. The longer the time required, the larger the penalty value, thereby reducing the priority score of that target object.

[0093] The "state switching history penalty item" aims to prevent task sequences from frequently switching back and forth between a few target objects, thereby improving the stability of task planning. When the priority adjustment amount (e.g., suddenly changing from low priority to high priority) of a target object exceeds a preset adjustment magnitude threshold within a preset recent time period, the system applies a penalty coefficient. This penalty coefficient lowers the priority score of the target object, making it less likely to be selected as a high-priority task again in a short period of time. This avoids frequent task switching caused by minor environmental disturbances or short-term data fluctuations, ensuring the continuity of task execution. The "preset recent time period" and "preset adjustment magnitude threshold" can be configured according to the actual application scenario and the requirements for system stability.

[0094] Through the above technical solution, this application enables dynamic and intelligent updating of robot task sequences. Compared to simply incorporating the second corrected state label into the update process, this solution, through a refined evaluation function, can more accurately assess the grasping priority of each target object, avoiding blind or suboptimal task sorting. In particular, the introduction of a state switching history penalty term effectively solves the problem of frequent task sequence jitter that may occur in dynamic environments, significantly improving the stability and robustness of task planning. As a result, the robot can complete grasping tasks with higher efficiency and lower energy consumption, improving the overall intelligence level and production efficiency of the operation.

[0095] This application further proposes a method for maintaining hysteresis locking when the arithmetic mean is detected to cross a preset classification threshold but still remain within a preset tolerance boundary band: Calculate the second Euclidean distance between the first centroid reference position of a first number of consecutive frames before crossing the preset classification threshold and the second centroid reference position of a second number of consecutive frames after crossing the preset classification threshold; If the second Euclidean distance is greater than the preset lower limit for confirming minute physical displacement, it is preliminarily determined that spatial displacement has occurred. Calculate the fluctuation variance of the centroid coordinates of each frame relative to the second centroid reference position after crossing the preset classification threshold. If the fluctuation variance is less than the preset static determination threshold and the number of dwell frames after crossing the preset classification threshold reaches the preset stable confirmation period, then it is confirmed that an irreversible small steady-state transition has occurred. When a small steady-state transition is confirmed, the hysteresis lock is forcibly released, and a second corrected state label is generated based on the average value of the new continuous angle deviation measurements after crossing the preset classification threshold.

[0096] Specifically, the first and second number frames refer to the number of consecutive frames used to calculate the centroid reference position. For example, the first number frames can be configured as the most recent frames before crossing the threshold, while the second number frames can be the most recent frames after crossing the threshold. These numbers can be flexibly configured according to the different requirements of system response speed and stability in actual application scenarios. The first and second centroid reference positions refer to the average or weighted average position of the centroid coordinates of the target object before and after the state change, respectively, and their purpose is to characterize the spatial center of the target object within a specific time period. The second Euclidean distance is used to quantify the spatial distance between the first and second centroid reference positions, and its purpose is to determine whether the target object has undergone actual spatial displacement. The lower limit for confirming minute physical displacement is a preset threshold, and its purpose is to distinguish between minute jitter caused by environmental noise and actual physical displacement. When the second Euclidean distance exceeds this lower limit, it indicates that the target object may have undergone real physical movement. The variance of the fluctuation is used to measure the dispersion of the centroid coordinates of each frame relative to the second centroid reference position after crossing the threshold, and its purpose is to reflect the stability of the target object at the new position. The stationary determination threshold is a preset threshold. When the fluctuation variance is less than this threshold, it indicates that the target object has stabilized in its new position. The dwell frame count refers to the number of frames the target object remains stably in its new state after crossing the threshold. The stability confirmation period is a preset number of frames. When the dwell frame count reaches this period, the stability of the target object in its new position is further confirmed. An irreversible small steady-state transition refers to a small but real and stabilized spatial positional change of the target object; this change should not be considered noise. Forced release of hysteresis lock means that even if the original release conditions in the hysteresis lock are not met, the system will immediately release the hysteresis lock once a small steady-state transition is detected. The average value of the new continuous angle deviation measurements refers to the average value calculated based on the continuous angle deviation measurements of the target object in its new stable state after confirming the small steady-state transition. Its purpose is to generate a new corrected state label.

[0097] Through the above technical solution, this application effectively solves the response lag problem that may occur in traditional hysteresis locking mechanisms when faced with small but real physical displacements. This solution introduces precise identification of small steady-state transitions, enabling the system to promptly release hysteresis locking when the target object undergoes subtle but stable positional changes, avoiding planning delays caused by excessive conservatism. As a result, the real-time performance and accuracy of robot task planning are significantly improved, especially when fine manipulation of the target object or operation in dynamic environments. It ensures that the robot adapts to subtle changes in the target object's state more quickly and accurately, thereby improving the overall efficiency and success rate of task execution.

[0098] In some embodiments, reference is made to Figure 3This application proposes a computer vision-based robot task planning system, comprising: an acquisition unit 301, used to continuously acquire continuous angle deviation measurements of the target object and low-level image features characterizing the degree of environmental disturbance, forming a single-frame observation state vector for each frame; a construction unit 302, used to combine the single-frame observation state vectors of the target object in multiple frames in a temporal sequence to construct a short-time state trajectory of the target object; and a discrimination unit 303, used to determine whether the target object is in a stable state or in a boundary uncertain state near a preset classification threshold based on the statistical characteristics of the continuous angle deviation measurements in the short-time state trajectory and the frequency of crossing a preset classification threshold, and when determining that it is in a boundary uncertain state, based on the changes in the low-level image features in the short-time state trajectory. The system identifies whether the source of the state change is environmental noise or a real physical change. The generation unit 304, when determining that the target object is in a boundary uncertainty state and the source of the state change is environmental noise, implements hysteresis locking on the target object and generates a first corrected state label carrying a boundary uncertainty marker. When determining that the target object is in a stable state or the source of the state change is a real physical change, it generates a second corrected state label determined based on the current continuous angle deviation measurement value. The processing unit 305, using the first or second corrected state label as planning input, determines whether to trigger a task sequence update for the target object based on the robot's current micro-execution stage and whether the current planning input carries a boundary uncertainty marker.

[0099] This system, through the coordinated operation of its various functional units, effectively solves the problem of invalid task sequence oscillations caused by critical fluctuations in the vision system in existing robot task planners. Specifically, the acquisition unit provides comprehensive observation data, the construction unit organizes this data into meaningful short-term state trajectories, the identification unit refines the state of the target object and distinguishes the sources of state changes, the generation unit outputs corrected state labels based on the identification results, and finally, the processing unit intelligently decides whether to update the task sequence based on these labels and the robot's current stage. This system architecture ensures the stability and efficiency of robot task planning in complex and ever-changing environments.

[0100] The above are merely embodiments of this application and are not intended to limit the scope of protection of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.

Claims

1. A robot task planning method based on computer vision, characterized in that, include: Continuously acquire continuous angular deviation measurements of the target object and low-level image features characterizing the degree of environmental disturbance to form a single-frame observation state vector for each frame; The short-time state trajectory of the target object is constructed by combining the single-frame observation state vectors of the target object in multiple frames in a temporal sequence. Based on the statistical characteristics of the continuous angle deviation measurements in the short-term state trajectory and the frequency of crossing the preset classification threshold, it is determined that the target object is in a stable state or in a boundary uncertain state near the preset classification threshold. When it is determined that the object is in the boundary uncertain state, the source of the state change is identified as environmental noise or real physical change based on the changes in the underlying image features in the short-term state trajectory. When it is determined that the target object is in the boundary uncertainty state and the source of the state change is the environmental noise, hysteresis locking is implemented on the target object, and a first corrected state label carrying a boundary uncertainty marker is generated; when it is determined that the target object is in the stable state or the source of the state change is the real physical change, a second corrected state label is generated based on the current continuous angle deviation measurement value. Using the first or second corrected state label as planning input, and based on the robot's current micro-execution stage and whether the current planning input carries the boundary uncertainty marker, it is determined whether to trigger a task sequence update for the target object.

2. The method according to claim 1, characterized in that, The continuous acquisition of continuous angular deviation measurements of the target object and low-level image features characterizing the degree of environmental disturbance forms a single-frame observation state vector for each frame, including: Obtain consecutive frame images of the target object; Each frame of the image is converted to grayscale, filtered, edge extracted, and connected component segmented. The geometric moments and covariance matrix of the segmented region are calculated to extract the centroid coordinates of the target object and the continuous angular deviation measurement values. Calculate the local average brightness gradient and the proportion of overexposed pixels in the segmented region as the features of the underlying image; The timestamp of the current frame, the identifier of the target object, the centroid coordinates, the continuous angle deviation measurement, the local average brightness gradient, and the overexposed pixel ratio are combined to form the single-frame observation state vector.

3. The method according to claim 1, characterized in that, The step of combining the single-frame observation state vectors of the target object in multiple frames in a temporal sequence to construct the short-time state trajectory of the target object includes: A first-in-first-out state memory queue is maintained for each target object, and the length of the state memory queue corresponds to a preset time sliding window. The newly generated single-frame observation state vector is stored in the corresponding state memory queue, and the oldest frame data that exceeds the time sliding window in the state memory queue is removed to form the short-time state trajectory. When frame loss occurs, compensation data for virtual frames is generated using the existing valid frame data before and after in the state memory queue through timestamp difference and interpolation. The virtual frames are then stored in the state memory queue after being marked with a low confidence tag. The low confidence tag is used to characterize that the data reliability of the virtual frames is lower than that of normal frame data when no frames are lost.

4. The method according to claim 1, characterized in that, The step of determining whether the target object is in a stable state or in a boundary uncertainty state near the preset classification threshold based on the statistical characteristics of the continuous angle deviation measurements in the short-term state trajectory and the frequency of crossing the preset classification threshold includes: Calculate the arithmetic mean, standard deviation, and total number of times the measured angle deviations of all consecutive angle deviations within the short-term state trajectory cross the preset classification threshold; When the absolute value of the difference between the arithmetic mean and the preset classification threshold is greater than the preset tolerance boundary band width, and the standard deviation is less than the preset noise threshold, and the total number of times the preset classification threshold is crossed is less than the preset high-frequency jump threshold, the target object is determined to be in the stable state. When the absolute value of the difference between the arithmetic mean and the preset classification threshold is less than or equal to the preset tolerance boundary band width, and the total number of times the preset classification threshold is crossed is greater than or equal to the preset high-frequency jump threshold, the target object is determined to be in the boundary uncertainty state. When the total number of times the preset classification threshold is crossed is not zero, but the target object recovers to the original interval and remains stable within a preset short frame period after crossing, it is determined that the target object is in a short-term swing state, and the short-term swing state is classified into the boundary uncertainty state.

5. The method according to claim 2, characterized in that, The step of identifying whether the source of the state change is environmental noise or a real physical change based on the changes in the underlying image features in the short-term state trajectory includes: Extract adjacent frames or multiple neighboring frames of data where a state transition occurs in the short-time state trajectory, and calculate the first Euclidean distance change of the centroid coordinates of the target object in the adjacent frames or multiple neighboring frames of data. Calculate the first rate of change of the local average brightness gradient and the proportion of overexposed pixels within the same time period; When the change in the first Euclidean distance is less than a preset sub-pixel variation threshold and the first change rate is greater than a preset photometric change threshold, the source of the state change is determined to be the environmental noise. When the change in the first Euclidean distance is greater than or equal to the sub-pixel variation threshold, and the change in the first Euclidean distance and the change in the continuous angle deviation measurement value satisfy a preset kinematic matching relationship, and the first rate of change is less than or equal to the photometric abrupt change threshold, the source of the state change is determined to be the real physical change. When the combination of the first Euclidean distance change and the first rate of change does not fall into any of the above-mentioned determination conditions, the source of the state change will be determined to be the environmental noise.

6. The method according to claim 1, characterized in that, The step of performing hysteresis locking on the target object and generating a first corrected state label carrying a boundary uncertainty marker includes: By tracing back the short-term state trajectory, we can find the historical classification label corresponding to the last stable state before the target object entered the boundary uncertainty state. The historical classification label is used as the classification result of the current frame, and the boundary uncertainty marker is attached to the classification result of the current frame to generate the first corrected state label; After generating the first corrected state label, the hysteresis lock is maintained until the arithmetic mean of the continuous angle deviation measurements within the short-term state trajectory exceeds the preset tolerance boundary band, and the number of stable dwell frames after crossing the preset classification threshold reaches the preset stable confirmation period. Then, the hysteresis lock is released, and the second corrected state label is generated based on the current continuous angle deviation measurements.

7. The method according to claim 1, characterized in that, The step of using the first or second corrected state label as planning input, and determining whether to trigger a task sequence update for the target object based on the robot's current micro-execution stage and whether the current planning input carries the boundary uncertainty marker, includes: The robot's current micro-execution stage is acquired in real time. The micro-execution stage includes an idle waiting state, a wide-area movement state in which the end effector moves from a distance to the target object, an approaching state in which the end effector approaches the target object, and a grasping execution state. When the current planning input is the first corrected state label, if the robot is in the approximation state or the grasping execution state, then all task sequence rearrangement requests for the current target object are blocked until the current action is completed; When the current planning input is the first corrected state label, if the robot is in the idle waiting state or the wide-area movement state, an observation period timer is set for the target object. Before the observation period timer expires, the original position of the target object in the current grasping sequence is maintained, and the task sequence update is not triggered. When the current planning input is the second correction status label, the second correction status label will be included in the task sequence update process.

8. The method according to claim 7, characterized in that, The step of incorporating the second corrected status label into the task sequence update process includes: When the preconditions for triggering a task sequence update are met, a preset evaluation function is used to recalculate the priority scores of all target objects to be captured in order to generate a new task sequence; the evaluation function includes the following calculation items: The base distance score is inversely proportional to the Euclidean distance from the current spatial coordinates of the robotic arm's end effector to the three-dimensional coordinates of each target object; The attitude adjustment time penalty term corresponding to the additional time required for attitude adjustment based on the classification label; And a state switching history penalty item, which is used to apply a penalty coefficient to any target object to reduce the priority score of any target object when the priority adjustment amount of any target object in a preset recent time period exceeds a preset adjustment range threshold.

9. The method according to claim 6, characterized in that, During the maintenance of the hysteresis lock, when the arithmetic mean is detected to cross the preset classification threshold but still remain within the preset tolerance boundary band: Calculate the second Euclidean distance between the first centroid reference position of a first number of consecutive frames before crossing the preset classification threshold and the second centroid reference position of a second number of consecutive frames after crossing the preset classification threshold; If the second Euclidean distance is greater than the preset lower limit for confirming minute physical displacement, it is preliminarily determined that spatial displacement has occurred. Calculate the fluctuation variance of the centroid coordinates of each frame relative to the second centroid reference position after crossing the preset classification threshold. If the fluctuation variance is less than the preset static determination threshold and the number of resident frames after crossing the preset classification threshold reaches the preset stable confirmation period, then it is confirmed that an irreversible small steady-state transition has occurred. Upon confirmation of the small steady-state transition, the hysteresis lock is forcibly released, and a second corrected state label is generated based on the average value of the new continuous angle deviation measurements after crossing the preset classification threshold.

10. A robot task planning system based on computer vision, characterized in that, include: The acquisition unit is used to continuously acquire continuous angular deviation measurements of the target object and low-level image features that characterize the degree of environmental disturbance, forming a single-frame observation state vector for each frame. The construction unit is used to combine the single-frame observation state vectors of the target object in multiple frames in a temporal sequence to construct the short-time state trajectory of the target object; The identification unit is used to determine whether the target object is in a stable state or in a boundary uncertain state near the preset classification threshold based on the statistical characteristics of the continuous angle deviation measurement values ​​in the short-term state trajectory and the frequency of crossing the preset classification threshold. When it is determined that the target object is in the boundary uncertain state, the unit identifies the source of the state change as environmental noise or real physical change based on the changes in the underlying image features in the short-term state trajectory. The generation unit is configured to, when determining that the target object is in the boundary uncertainty state and the source of the state change is the environmental noise, implement hysteresis locking on the target object and generate a first corrected state label carrying a boundary uncertainty marker; and when determining that the target object is in the stable state or the source of the state change is the real physical change, generate a second corrected state label determined based on the current continuous angle deviation measurement value. The processing unit is configured to use the first corrected state label or the second corrected state label as planning input, and determine whether to trigger a task sequence update for the target object based on the current micro-execution stage of the robot and whether the current planning input carries the boundary uncertainty marker.