Forklift speed identification method based on monocular vision and related device

By filtering trajectory quality and target scale information, and combining it with the forklift's motion status, the problem of scale mismatch in monocular vision speed measurement is solved, thus improving the accuracy and reliability of forklift speed recognition.

CN123181501APending Publication Date: 2026-11-27GUANGZHOU GUOXUN ROBOT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611684330.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-29
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

During forklift operation, monocular vision speed measurement can lead to inaccurate scale matching due to factors such as steering, depth movement, fork extension and retraction, cargo obstruction, and overlap of personnel or other vehicles, thus reducing the accuracy and reliability of speed recognition.

Method used

By combining trajectory quality and target scale information to filter trajectory data, and determining the appropriate scale information based on the forklift's motion state, the impact of occlusion, abnormal trajectory association, and scale mismatch on speed recognition is reduced.

Benefits of technology

It improves the accuracy and reliability of forklift speed recognition under monocular vision conditions and reduces the occurrence of abnormal speed measurement results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181501A_ABST
    Figure CN123181501A_ABST
Patent Text Reader

Abstract

This application relates to a method and related apparatus for forklift speed recognition based on monocular vision. The method includes: acquiring image data collected by an image acquisition device to obtain target recognition information and candidate scale information; determining the target trajectory corresponding to the target forklift based on the target recognition information, and determining the trajectory quality information corresponding to the target trajectory; determining the motion state information of the target forklift based on the target trajectory, and determining the target scale information corresponding to the target forklift according to the motion state information, candidate scale information, and preset scale reference information; determining the effective trajectory information based on the trajectory quality information and target scale information; and determining the displacement information and time interval information of the target forklift based on the effective trajectory information and the acquisition time information corresponding to the image data, and determining the speed recognition result corresponding to the target forklift. The solution provided in this application can improve the accuracy and reliability of forklift speed recognition under monocular vision conditions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of image processing technology, and in particular to a method and related apparatus for forklift speed recognition based on monocular vision. Background Technology

[0002] In the field of computer vision, vehicle speed recognition technology based on monocular vision is widely used in scenarios such as factory traffic management, warehousing and logistics, and safety monitoring of operating vehicles. Typically, image data corresponding to a target vehicle is continuously acquired using a fixed monocular imaging device. Target recognition and trajectory tracking are performed on the vehicle in the images. The pixel displacement is determined based on the positional changes of the target vehicle in consecutive image frames. Then, by combining the scale relationship between the actual vehicle size and the image size, the pixel displacement is converted into actual displacement, thereby obtaining the vehicle's corresponding speed.

[0003] Currently, when performing monocular vision speed measurement on forklifts, a scale relationship is typically established based on the pixel size of the target detection box and the preset actual vehicle size. However, during actual operation, forklifts may experience steering, depth movement, fork extension / retraction, cargo occlusion, and overlap with personnel or other vehicles, causing changes in the size of the detection box and its corresponding actual physical orientation. Furthermore, multiple target intersections, short-term occlusion, or low-confidence recognition may also lead to abnormal trajectory correlations. If a single fixed scale relationship is still used to directly convert displacement data, it is easy to cause inaccurate scale matching, thereby reducing the accuracy and reliability of forklift speed recognition results. Summary of the Invention

[0004] To address or partially address the problems existing in related technologies, this application provides a forklift speed recognition method and related device based on monocular vision. By combining trajectory quality and target scale to filter the trajectory information used for speed measurement, and determining the scale information that matches the current direction of movement based on the motion state of the target forklift, the method can reduce the impact of factors such as target occlusion, abnormal trajectory association, vehicle steering, and scale mismatch on speed recognition, thereby improving the accuracy and reliability of forklift speed recognition under monocular vision conditions.

[0005] This application provides a method for forklift speed recognition based on monocular vision, comprising: acquiring image data collected by an image device; performing target recognition processing on the image data to obtain target recognition information and candidate scale information corresponding to at least one target forklift; determining a target trajectory corresponding to the target forklift based on the target recognition information, and determining trajectory quality information corresponding to the target trajectory according to the target trajectory and a preset trajectory evaluation rule; determining motion state information of the target forklift based on the target trajectory, and determining target scale information corresponding to the target forklift according to the motion state information, the candidate scale information and preset scale reference information; determining valid trajectory information from the target trajectory based on the trajectory quality information and the target scale information; determining displacement information and time interval information of the target forklift based on the valid trajectory information and the acquisition time information corresponding to the image data, and determining the speed recognition result corresponding to the target forklift according to the displacement information, the time interval information, the target scale information and the trajectory quality information.

[0006] A second aspect of this application provides a forklift speed recognition device based on monocular vision, comprising: an acquisition module, configured to acquire image data collected by an image device, perform target recognition processing on the image data, and obtain target recognition information and candidate scale information corresponding to at least one target forklift; a first processing module, configured to determine the target trajectory corresponding to the target forklift based on the target recognition information, and determine the trajectory quality information corresponding to the target trajectory according to the target trajectory and a preset trajectory evaluation rule; a second processing module, configured to determine the motion state information of the target forklift based on the target trajectory, and determine the target scale information corresponding to the target forklift according to the motion state information, the candidate scale information and preset scale reference information; a third processing module, configured to determine valid trajectory information from the target trajectory based on the trajectory quality information and the target scale information; and a determination module, configured to determine the displacement information and time interval information of the target forklift based on the valid trajectory information and the acquisition time information corresponding to the image data, and determine the speed recognition result corresponding to the target forklift according to the displacement information, the time interval information, the target scale information and the trajectory quality information.

[0007] A third aspect of this application provides an electronic device, comprising: Processor; and A memory that stores executable code, which, when executed by the processor, causes the processor to perform the method described above.

[0008] A fourth aspect of this application provides a computer-readable storage medium having executable code stored thereon, which, when executed by a processor of an electronic device, causes the processor to perform the method described above.

[0009] The fifth aspect of this application provides a computer program product, including a computer program / instructions that, when executed by a processor, implement the method described above.

[0010] The technical solution provided in this application may include the following beneficial effects: This application discloses a forklift speed recognition method and related apparatus based on monocular vision. The method includes: acquiring image data collected by an image device; performing target recognition processing on the image data to obtain target recognition information and candidate scale information corresponding to at least one target forklift; determining the target trajectory corresponding to the target forklift based on the target recognition information, and determining the trajectory quality information corresponding to the target trajectory according to the target trajectory and a preset trajectory evaluation rule; determining the motion state information of the target forklift based on the target trajectory, and determining the target scale information corresponding to the target forklift according to the motion state information, candidate scale information, and preset scale reference information; determining the effective trajectory information from the target trajectory based on the trajectory quality information and the target scale information; determining the displacement information and time interval information of the target forklift based on the effective trajectory information and the acquisition time information corresponding to the image data, and determining the speed recognition result corresponding to the target forklift according to the displacement information, time interval information, target scale information, and trajectory quality information. In this method, by forming a target trajectory for the target forklift and using trajectory quality information to constrain the trajectory data, the impact of unreliable trajectory data caused by factors such as target occlusion and incorrect association on speed recognition can be reduced. At the same time, based on the motion state information of the target forklift, target scale information that matches the current motion state is determined from candidate scale information, and effective trajectory information is further filtered by combining trajectory quality information and target scale information. This distinguishes the trajectory data that can maintain target tracking from the effective trajectory data that can be used for speed recognition, and avoids data that does not meet the scale adaptation conditions or trajectory quality conditions from directly participating in speed calculation. Finally, the speed recognition result is determined by the displacement information, time interval information and target scale information corresponding to the effective trajectory information. This can reduce abnormal speed measurement caused by changes in motion direction, scale mismatch and low-quality trajectory data, and improve the reliability and stability of forklift speed recognition under monocular vision conditions.

[0011] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description

[0012] The above and other objects, features and advantages of this application will become more apparent from the more detailed description of exemplary embodiments thereof in conjunction with the accompanying drawings, wherein the same reference numerals generally represent the same components in the exemplary embodiments thereof.

[0013] Figure 1 This is a schematic flowchart illustrating a forklift speed recognition method based on monocular vision, as shown in an embodiment of this application. Figure 2 This is a schematic diagram of the structure of a forklift speed recognition device based on monocular vision, as shown in an embodiment of this application. Figure 3 This is a schematic diagram of the structure of an electronic device shown in an embodiment of this application. Detailed Implementation

[0014] Embodiments of this application will now be described in more detail with reference to the accompanying drawings. While embodiments of this application are shown in the drawings, it should be understood that this application may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided to make this application more thorough and complete, and to fully convey the scope of this application to those skilled in the art.

[0015] The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The singular forms “a,” “the,” and “the” used in this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.

[0016] It should be understood that although the terms "first," "second," "third," etc., may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of this application, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.

[0017] In the field of computer vision, vehicle speed recognition technology based on monocular vision is widely used in scenarios such as factory traffic management, warehousing and logistics, and safety monitoring of operating vehicles. Typically, image data corresponding to a target vehicle is continuously acquired using a fixed monocular imaging device. Target recognition and trajectory tracking are performed on the vehicle in the images. The pixel displacement is determined based on the positional changes of the target vehicle in consecutive image frames. Then, by combining the scale relationship between the actual vehicle size and the image size, the pixel displacement is converted into actual displacement, thereby obtaining the vehicle's corresponding speed.

[0018] Currently, when performing monocular vision speed measurement on forklifts, a scale relationship is typically established based on the pixel size of the target detection box and the preset actual vehicle size. However, during actual operation, forklifts may experience steering, depth movement, fork extension / retraction, cargo occlusion, and overlap with personnel or other vehicles, causing changes in the size of the detection box and its corresponding actual physical orientation. Furthermore, multiple target intersections, short-term occlusion, or low-confidence recognition may also lead to abnormal trajectory correlations. If a single fixed scale relationship is still used to directly convert displacement data, it is easy to cause inaccurate scale matching, thereby reducing the accuracy and reliability of forklift speed recognition results.

[0019] To address the aforementioned issues, this application provides a forklift speed recognition method and related apparatus based on monocular vision. By combining trajectory quality and target scale to filter the trajectory information used for speed measurement, and determining scale information that matches the current direction of motion based on the motion state of the target forklift, the method can reduce the impact of factors such as target occlusion, abnormal trajectory association, vehicle steering, and scale mismatch on speed recognition, thereby improving the accuracy and reliability of forklift speed recognition under monocular vision conditions.

[0020] It is understood that before using the technical solutions disclosed in the various embodiments of this application, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this application in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.

[0021] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this application. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this application.

[0022] It is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and related provisions.

[0023] In one embodiment of this application, the monocular vision-based forklift speed recognition method can run on a local terminal device or a server. When the monocular vision-based forklift speed recognition method runs on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and client devices.

[0024] To facilitate understanding of this embodiment, a forklift speed recognition method based on monocular vision disclosed in this application will first be described in detail, such as... Figure 1 As shown, this method can be applied to the aforementioned local terminal device or the aforementioned client device. The method includes the following steps: S110: Acquire image data collected by the image device, perform target recognition processing on the image data, and obtain target recognition information and candidate scale information corresponding to at least one target forklift.

[0025] Specifically, the imaging device can be a monocular image acquisition device installed in the forklift's operating area, used to continuously acquire image data corresponding to the target area according to a preset acquisition method. The image data can include multiple image frames formed in the acquisition sequence, and can have acquisition time information corresponding to each image frame. When at least one forklift exists in an image frame, target recognition processing can be performed on that image frame to identify the corresponding target forklift from the image data. The target forklift can be the forklift object that needs to be tracked for motion and identified for speed. When multiple forklifts exist simultaneously in the same image frame, the recognition results for each forklift can be determined separately, so that different target forklifts have their own corresponding target recognition information. Target recognition information is information used to characterize the recognition status of the target forklift in the current image frame, reflecting information related to the target forklift's position, image region, and image geometry in the image, which is relevant to subsequent trajectory determination. Candidate scale information is candidate information determined based on the image features of the target forklift in the current image, which can be used to establish the correspondence between image scale and actual scale. Since the image scale of the target forklift may differ under different movement directions, image positions, or postures, one or more candidate scale information that can be used for subsequent scale determination can be obtained first, instead of directly using any image scale as the final scale used by the target forklift. Thus, target recognition information and candidate scale information can be obtained separately for each target forklift. The target recognition information can be used to form the target trajectory, and the candidate scale information can be used to determine the target scale information that is compatible with the current movement state of the target forklift.

[0026] S120: Based on target recognition information, determine the target trajectory corresponding to the target forklift, and determine the trajectory quality information corresponding to the target trajectory according to the target trajectory and the preset trajectory evaluation rules.

[0027] Specifically, for multiple image frames acquired consecutively in image data, the correspondence between target forklifts in different image frames can be determined based on the target recognition information corresponding to the target forklift in each image frame. The target recognition information belonging to the same target forklift is then associated according to the image acquisition order to obtain the target trajectory corresponding to that target forklift. The target trajectory can be used to characterize the temporal change process of the same target forklift in continuous image data. When there are multiple target forklifts in the image data, corresponding target trajectories can be established for each target forklift, allowing subsequent motion state judgment and speed recognition to be performed based on the trajectory corresponding to each target forklift. After obtaining the target trajectory, it can be evaluated according to preset trajectory evaluation rules. These rules can be pre-set to judge the continuity and reliability of the target trajectory. Trajectory quality information characterizes whether the currently formed target trajectory can reflect the motion process of the same target forklift in continuous image data. Higher trajectory quality information indicates higher quality continuous data in the target trajectory, which is better suited for subsequent motion analysis and speed recognition. When there are discontinuous or insufficiently reliable trajectory data in the target trajectory, the corresponding trajectory data can be further filtered in subsequent processing. By forming the target trajectory and its corresponding trajectory quality information, subsequent speed recognition can not only rely on the positional changes of the target forklift in the image, but also consider whether the trajectory data that forms the positional changes has sufficient confidence, thereby reducing the impact of trajectory anomalies on the final speed recognition result.

[0028] S130: Based on the target trajectory, determine the motion state information of the target forklift, and determine the target scale information corresponding to the target forklift according to the motion state information, candidate scale information and preset scale reference information.

[0029] Specifically, the motion state information of the target forklift can be determined based on the spatial position changes of the target forklift along the image acquisition sequence. This motion state information reflects the motion state of the target forklift at the current trajectory stage, characterizing its direction of motion and changes in that direction. Preset scale reference information can be pre-obtained information related to the actual physical dimensions of the forklift. This information provides a true physical scale basis for candidate scales in the image; different scale references correspond to different target forklifts. The applicability of candidate scale information can be judged based on the motion state information of the target forklift, and combined with the preset scale reference information, the target scale information corresponding to the current motion state of the target forklift can be determined. Target scale information can characterize the correspondence between the image scale and the actual physical scale at the current trajectory stage, and is used to subsequently convert the target displacement in the image into the actual motion displacement of the target forklift. For example, if the actual distance corresponding to a unit image scale represented by the target scale information is K, then for the displacement d in the image, the actual displacement corresponding to that displacement can be determined based on the target scale information. It should be noted that the target scale information can be updated according to the current motion state of the target forklift, so as to avoid large scale conversion errors caused by always using a fixed scale when the motion state of the target forklift changes.

[0030] S140: Based on trajectory quality information and target scale information, determine the effective trajectory information from the target trajectory.

[0031] Specifically, after obtaining the target trajectory, the reliability of the trajectory data in the target trajectory can be judged based on trajectory quality information to meet the speed recognition requirements. Similarly, the suitability of the corresponding trajectory data in the target trajectory can be judged based on target scale information to ensure it matches the currently determined target scale. Therefore, trajectory quality information and target scale information can be combined to filter the trajectory data in the target trajectory, and trajectory data that meets preset usage conditions can be identified as valid trajectory information. Valid trajectory information refers to the trajectory information determined from the target trajectory that can be used as the basis for subsequent displacement and speed calculations. By forming valid trajectory information, the continuous tracking process of the trajectory and the speed calculation process can be distinguished. That is, although some trajectory data can be used to maintain the trajectory continuity of the target forklift, if its trajectory quality or scale fit does not meet the speed calculation conditions, this part of the trajectory data can be excluded from the speed recognition data input. In this way, the possibility of abnormal trajectory data or mismatched trajectory data directly participating in speed calculation and producing abnormal speed results can be reduced.

[0032] S150: Based on the effective trajectory information and the acquisition time information corresponding to the image data, determine the displacement information and time interval information of the target forklift, and determine the speed recognition result of the target forklift according to the displacement information, time interval information, target scale information and trajectory quality information.

[0033] Specifically, the trajectory positions of the target forklift at different acquisition times can be determined from the valid trajectory information, and the corresponding displacement information can be determined based on the positional differences of the target forklift between different acquisition times. Displacement information characterizes the amount of positional movement of the target forklift in the image data. Since the displacement in the image data is at the image scale, the displacement at the image scale is converted into the displacement of the target forklift in the actual physical space using target scale information. Simultaneously, the time interval information between the two trajectory moments that form this displacement information can be determined based on the acquisition time information corresponding to the corresponding image data. By using acquisition time information corresponding to the actual image acquisition process, the time interval can be made to correspond to the time range of the actual displacement of the target forklift. After obtaining the displacement information, time interval information, and target scale information, the speed recognition result of the target forklift can be determined. By identifying target forklifts in image data and forming corresponding target trajectories, the continuity and reliability of target trajectories can be evaluated based on trajectory quality information. Simultaneously, by combining the target forklift's motion state information, candidate scale information, and preset scale reference information, target scale information adapted to the current motion state is determined. Furthermore, based on trajectory quality information and target scale information, effective trajectory information is filtered from the target trajectory, allowing for a distinction between continuous trajectory tracking and effective speed measurement data selection. This avoids low-quality trajectory data and scale-mismatched data directly participating in speed calculation. The speed recognition result of the target forklift is determined based on the displacement information, time interval information, and target scale information corresponding to the effective trajectory information. This reduces the impact of factors such as target occlusion, abnormal trajectory association, changes in motion direction, and scale reference mismatch on the speed recognition result, thereby improving the reliability and stability of forklift speed recognition under monocular vision conditions and reducing the generation of abnormal speed measurement results.

[0034] For example, a fixed imaging device is set up in the forklift traffic area of ​​a factory area. This device continuously collects image data containing multiple forklifts and records the acquisition time corresponding to each image frame. After target recognition processing of the image data, forklift A and forklift B can be identified, and target recognition information and candidate scale information corresponding to forklift A and forklift B can be obtained respectively. The candidate scale information can be used to characterize the forklift image features in the current image that can be used as a basis for scale determination. Subsequently, based on the target recognition information in consecutive image frames, the recognition results of forklifts belonging to the same target are continuously associated. For example, the target recognition information of forklift A in multiple consecutive image frames is associated to obtain the target trajectory corresponding to forklift A. The target trajectory is evaluated according to a preset trajectory evaluation rule to obtain the corresponding trajectory quality information. If forklift A experiences partial occlusion when passing near other forklifts, reducing the reliability of the correspondence between the target recognition results in some image frames and the historical trajectory, the quality change of this part of the trajectory can be characterized by the trajectory quality information, rather than directly assuming that the trajectory can continue to be maintained as necessarily suitable for subsequent speed measurement. Furthermore, the current motion state information of forklift A is determined based on the target trajectory corresponding to forklift A. For example, the positional changes in consecutive image frames can be used to determine that forklift A is currently mainly moving along the traffic direction and whether it has a significant turn. Then, based on this motion state information, scale information that matches the current motion state is selected from the candidate scale information corresponding to forklift A, and combined with preset scale reference information, the target scale information corresponding to forklift A is determined. Afterward, the target trajectory of forklift A can be filtered based on trajectory quality information and target scale information. For example, trajectory parts with continuous target association and target scale that match the current trajectory state are determined as valid trajectory information, while trajectory parts that can still maintain the target trajectory but are affected by occlusion, abnormal scale changes, or current scale that does not match the motion state are not considered as valid trajectory information for speed recognition. Finally, the displacement information of forklift A between adjacent valid trajectory positions is determined based on the valid trajectory information, and the time interval information is determined based on the acquisition time of the corresponding image frames. Then, the displacement in the image is converted into the corresponding actual motion displacement using the target scale information. Finally, the speed recognition result of forklift A is determined by combining the time interval information and trajectory quality information. For example, when the trajectory data used meets the trajectory quality requirements and the current target scale is suitable for the motion state, the corresponding quantitative speed result can be output. However, when the trajectory quality is insufficient or the scale conditions are not met, the corresponding speed can not be output as a reliable speed result. Through the above processing, the continuity of the target trajectory can be distinguished from the trajectory data screening used for speed calculation, and an appropriate scale can be selected for speed recognition based on the current motion state of the target forklift, thereby reducing the impact of occlusion, incorrect trajectory continuation, and scale mismatch on the forklift speed recognition result.

[0035] In one possible implementation, target recognition processing is performed on the image data to obtain target recognition information and candidate scale information corresponding to at least one target forklift. This includes: performing target recognition processing on each image frame in the image data to obtain target spatial information, recognition confidence, and target geometric feature information corresponding to the target forklift; determining vehicle body reference information and ground reference information corresponding to the target forklift based on the target spatial information, recognition confidence, and target geometric feature information; determining target recognition information corresponding to the target forklift based on the target spatial information, recognition confidence, and target geometric feature information; and determining candidate scale information corresponding to the target forklift based on the vehicle body reference information and ground reference information.

[0036] Specifically, the image data can be multiple image frames continuously acquired by an image device in a sequential acquisition order. Target recognition processing can be performed on each image frame separately to identify at least one target forklift present in each frame. When multiple forklifts exist in the same image frame, the recognition results for each forklift can be obtained separately, and the forklift requiring trajectory tracking and speed recognition is identified as the target forklift. For example, a pre-trained target recognition model can be used to perform target recognition processing on each image frame; for instance, a YOLO11 network can be used to process each image frame to obtain the detection box corresponding to the target forklift. Confidence of identification and the pixel width corresponding to the detection box ,in, Used to characterize the target forklift. Used to characterize the corresponding image frame. Target spatial information can be information representing the spatial position and image area occupied by the target forklift in the current image frame. For example, it can include the detection box corresponding to the target forklift, the center position of the detection box, etc. Through target spatial information, the position of the target forklift in the current image frame can be determined, and a processing range can be provided for subsequently obtaining vehicle body reference information and ground reference information from the corresponding image region. Recognition confidence can be information output by the target recognition model that characterizes the reliability of the current target recognition result. For example, recognition confidence... The higher the value, the greater the confidence level that the corresponding forklift target in the current image frame is identified as the target forklift. For multiple target forklifts existing in the same image frame, their respective recognition confidence levels can be obtained. Target geometric feature information can be information used to characterize the image geometry of the target forklift in the current image frame, for example, it can include at least one of the following: the pixel width, pixel height, area, and aspect ratio of the detection box.

[0037] For example, the pixel width of the detection box corresponding to the target forklift is denoted as... The pixel height of the detection box is recorded as The area of ​​the detection frame corresponding to the target forklift is... It can be represented as:

[0038] The aspect ratio of the detection frame corresponding to the target forklift It can be represented as:

[0039] in, Used to characterize the The first image frame The pixel area of ​​the detection box corresponding to each target forklift. This is used to characterize the aspect ratio of the corresponding detection box. Therefore, the target forklift in the current image frame can be characterized from aspects such as target location, recognition confidence level, and target geometric state through target spatial information, target recognition confidence level, and target geometric feature information.

[0040] Specifically, after determining the target spatial information corresponding to the target forklift, the target region of the target forklift in the image frame can be determined based on the target spatial information. Within this target region, the geometric features of the forklift's body and the contact geometric features between the forklift and the ground can be further extracted to obtain body reference information and ground reference information, respectively. The body reference information can be information representing the geometric state of the forklift's main body in the image, such as the body body region, the pixel length corresponding to the body body, and the image projection direction of the body body. In one example, the body body region can be further extracted from the detection region corresponding to the target forklift, ensuring that the body body region does not include protruding forks, forked goods, the driver, or other objects overlapping with the target forklift, so that the subsequently obtained body reference information can accurately reflect the geometric state of the target forklift's body. The body body region can be obtained through instance segmentation, body key point recognition, or by setting a target recognition model with corresponding annotation categories. For example, for a target forklift whose main body is fully visible, the image projection length of the main body (excluding the forks) along the longitudinal direction of the forklift can be obtained, and this image projection length can be used as the vehicle body reference pixel length in the vehicle body reference information. The vehicle body reference information can also record the extension direction of the corresponding vehicle body reference in the image, so that the vehicle body reference pixel length is associated with the corresponding vehicle body direction. Ground reference information can be information used to characterize the geometric relationship between the target forklift and the ground, such as the wheel ground contact points of the target forklift, the pixel distance between ground contact points, and the ground reference position determined by multiple ground contact points.

[0041] For example, if both the front and rear wheels of the target forklift can be identified, the contact point between the front wheel and the ground can be determined separately. and the contact point between the rear wheels and the ground. The midpoint between the ground contact point of the front wheel and the ground contact point of the rear wheel can be represented as:

[0042] in, Indicates the first The first image frame The ground reference position corresponding to each target forklift can be used as a reference point to characterize the positional relationship between the target forklift and the ground.

[0043] Furthermore, the corresponding wheelbase reference pixel length can be determined based on the ground contact points of the front and rear wheels:

[0044] in, This represents the pixel length between the ground contact points of the front and rear wheels of the target forklift in the current image frame. Since both the front and rear wheel ground contact points are located on the ground, this pixel length can be used to describe the ground geometric reference corresponding to the target forklift. If either the front or rear wheel is partially occluded, and two reliable ground contact points cannot be obtained simultaneously, alternative ground reference information can be determined based on the boundary between the target forklift's body and the ground, key locations on the body, etc.; if a satisfactory ground reference cannot be obtained, the corresponding type of ground reference information may not be generated.

[0045] Specifically, the target spatial information, recognition confidence, and target geometric feature information of the same forklift within the same image frame can be combined to obtain the target recognition information corresponding to the target forklift. For vehicle body reference information, the image projection direction corresponding to the main body of the vehicle, the reference pixel length of the vehicle body, and the corresponding vehicle body reference type can be used as a set of candidate scale information. For example, when the target forklift is viewed approximately from the side and the main body of the vehicle is fully visible, the longitudinal image projection of the vehicle body excluding the forks can be used as a candidate vehicle body scale reference. For ground reference information, the connection direction corresponding to the ground contact points of the front and rear wheels, and the wheelbase reference pixel length can be used. The corresponding ground reference type, etc., serve as another set of candidate scale information. Therefore, candidate scale information can be used to characterize one or more image scale references available for subsequent selection in the current image frame, and different candidate scale information can have different reference sources, reference pixel lengths, and reference orientations. It should be noted that this implementation does not calculate the final scale conversion coefficient using the actual physical size and reference pixel length in the current step. Instead, after obtaining multiple candidate scale information, subsequent processing combines the motion of the target forklift to further determine the corresponding scale information. This avoids directly using a certain vehicle body reference or ground reference as a fixed scale in all motion states, while also distinguishing the target region used for target detection from the geometric reference used for scale recovery.

[0046] In one possible implementation, determining the target trajectory corresponding to the target forklift based on target recognition information includes: determining trajectory prediction information corresponding to the current image frame based on historical trajectory information corresponding to the target forklift; performing matching processing on the target recognition information and trajectory prediction information corresponding to the current image frame to obtain trajectory matching results; and updating the historical trajectory information according to the trajectory matching results to obtain the target trajectory corresponding to the target forklift.

[0047] Specifically, historical trajectory information can be trajectory data formed based on target recognition information of the target forklift in multiple historical image frames prior to the current image frame. This data can include the trajectory identifier corresponding to the target forklift, historical target location, historical target region, target geometric state, and corresponding trajectory state parameters. For target forklifts with established historical trajectories, the target state of the target forklift in the current image frame can be predicted based on the historical trajectory information, thus obtaining the trajectory prediction information corresponding to the current image frame.

[0048] For example, Kalman filtering can be used to predict the state of historical trajectory information. For the first... The target forklift is in the first The trajectory state in each image frame can be represented as:

[0049] The corresponding observation vector can be represented as:

[0050] in, and These represent the horizontal and vertical pixel coordinates of the center position of the target area corresponding to the target forklift, respectively. Indicates the area of ​​the target region. Indicates the aspect ratio of the target area. , and These represent the rates of change corresponding to the center's horizontal position, center's vertical position, and the target area, respectively. Target area and aspect ratio They can be represented as follows:

[0051]

[0052] in, This represents the pixel width corresponding to the target region. This represents the pixel height corresponding to the target region. For cases where the acquisition interval between adjacent image frames is relatively stable, the trajectory state in the current image frame can be predicted based on the historical trajectory state of the previous image frame. The relationship between these states can be expressed as:

[0053] The observation relationship can be expressed as:

[0054] in, Represents the state transition matrix. Represents the observation matrix. This represents the process noise corresponding to the state change process. This represents the observation noise during the target observation process. State transition matrix. It can be represented as:

[0055] Corresponding observation matrix It can be represented as:

[0056] Therefore, the predicted trajectory state in the current image frame can be determined based on the previous trajectory state of the target forklift. For example, the predicted state corresponding to the current image frame can be represented as:

[0057] The corresponding predictive covariance can be expressed as:

[0058] in, Indicates the first The predicted trajectory state of each target forklift in the current image frame. This indicates the trajectory state after the previous image frame has been updated. This represents the prediction covariance corresponding to the current prediction state. This represents the state covariance after the update from the previous image frame. Representing process noise covariance, for example, .

[0059] Furthermore, the predicted pixel width and predicted pixel height of the target forklift in the current image frame can be recovered based on the area and aspect ratio in the predicted trajectory state:

[0060]

[0061] in, This represents the predicted area of ​​the target region. This indicates the aspect ratio of the predicted target area. and These represent the pixel width and pixel height of the predicted target region, respectively. Therefore, the predicted target region of the forklift in the current image frame can be generated by combining the predicted target center position, predicted pixel width, and predicted pixel height. The predicted trajectory state, predicted target position, and predicted target region are then used as the trajectory prediction information corresponding to the current image frame.

[0062] Specifically, after obtaining the trajectory prediction information corresponding to the current image frame, the target recognition information obtained through target recognition processing in the current image frame can be matched with the trajectory prediction information corresponding to each historical trajectory to determine the correspondence between the target forklift in the current image frame and the historical trajectory.

[0063] The target recognition information corresponding to the current image frame can include the target position of the forklift, the target region, and the target geometric feature information. The trajectory prediction information can include the target position and the predicted target region predicted based on historical trajectory information. Therefore, the spatial matching degree between the currently recognized target region and the predicted target regions corresponding to different historical trajectories can be compared to obtain the matching relationship between different target recognition information and different trajectory prediction information.

[0064] Specifically, after obtaining the trajectory matching result, the state of the successfully matched historical trajectories can be updated based on the target recognition information in the current image frame. This ensures that the updated trajectory state includes both the predicted information of the historical trajectories and the actual target observation information identified in the current image frame. For example, for a successfully matched historical trajectory, the Kalman gain can be determined based on the predicted covariance and the observation results corresponding to the current target recognition information.

[0065] in, Indicates the first The target forklift is in the first The Kalman gain corresponding to each image frame Represents the observation noise covariance, for example, .

[0066] Furthermore, the predicted trajectory state can be corrected based on the target recognition information corresponding to the current image frame:

[0067] The corresponding state covariance can be updated as follows:

[0068] in, This represents the updated trajectory state obtained after fusing the current target recognition information. This indicates the state difference between the current target observation and the predicted observation. This represents the identity matrix. Therefore, the trajectory state predicted from historical trajectories can be corrected using the actual target recognition information obtained in the current image frame. The updated target position, target geometry, and corresponding target recognition information are then written into the historical trajectory information, forming a target trajectory containing the data from the current image frame. Specifically, for historical trajectories in the current image frame where corresponding actual target recognition information has not been obtained, the corresponding trajectory prediction state can be temporarily retained if preset trajectory retention conditions are met, to maintain the trajectory continuity of the target forklift under short-term occlusion or temporary missed detection. For newly appearing target recognition information in the current image frame that does not correspond to existing historical trajectories, new historical trajectories can be established if trajectory establishment conditions are met. In this way, trajectory prediction, target matching, and trajectory state updates can be continuously executed according to the acquisition order of each image frame, continuously associating target recognition information belonging to the same target forklift with the same trajectory, ultimately obtaining the target trajectory corresponding to the target forklift, which can be used to subsequently determine the motion state and speed recognition of the target forklift.

[0069] In one possible implementation, matching the target recognition information and trajectory prediction information corresponding to the current image frame to obtain a trajectory matching result includes: dividing each target recognition information into first target recognition information and second target recognition information based on the recognition credibility of the target recognition information in the current image frame; performing a first matching process on the first target recognition information and trajectory prediction information to obtain a first trajectory matching result; determining the trajectory prediction information to be matched from the trajectory prediction information based on the first trajectory matching result, and performing a second matching process on the second target recognition information and the trajectory prediction information to be matched to obtain a second trajectory matching result; and determining the trajectory matching result based on the first trajectory matching result and the second trajectory matching result.

[0070] Specifically, the current image frame may contain one or more target forklifts. Therefore, after performing target recognition processing on the current image frame, multiple target recognition information can be obtained, each with a corresponding recognition confidence level. Recognition confidence level can be used to characterize the degree to which the target recognition model identifies the corresponding image region as a target forklift. A first confidence threshold and a second confidence threshold can be preset, and the target recognition information can be divided into first target recognition information and second target recognition information based on the recognition confidence level corresponding to each target recognition information. The first target recognition information can be the target recognition result with a higher recognition confidence level, while the second target recognition information can be the target recognition result with a lower recognition confidence level than the first target recognition information but still meeting the subsequent matching requirements.

[0071] For example, the current number The set of target recognition information in a set of image frames is denoted as . , to identify any target The corresponding recognition confidence level is denoted as Let the first confidence threshold be denoted as Let the second confidence threshold be denoted as ,in, Greater than For example, if the first confidence threshold is 0.5 and the second confidence threshold is 0.1, then the set corresponding to the first target identification information can be represented as:

[0072] The set corresponding to the second target identification information can be represented as:

[0073] in, This represents the set of information for identifying the first target. This represents the second set of target identification information. Target identification information with a confidence level lower than the second confidence level threshold is removed.

[0074] Specifically, the first target identification information in the current image frame can be matched with each trajectory prediction information currently in a valid state to determine the correspondence between the first target identification information and existing target trajectories. The trajectory prediction information may include the predicted target region obtained based on historical trajectory prediction, and the first target identification information may include the target region actually identified in the current image frame. Therefore, the association cost between the two can be determined based on the degree of spatial overlap between the target region corresponding to the first target identification information and the predicted target region corresponding to the trajectory prediction information.

[0075] For example, the association cost can be determined based on the intersection-union ratio (IUU) between the target region corresponding to the target forklift in the current image frame and the predicted target region corresponding to the historical trajectory. For the first... The target area corresponding to the current target identification information and the The predicted target area corresponding to each trajectory prediction information The corresponding association cost can be expressed as:

[0076] in, Indicates the first The target identification information and the first The cost of correlation between trajectory prediction information This represents the intersection-union ratio (IUGR) between two target regions. A higher degree of overlap between two target regions corresponds to a lower IUGR, indicating a higher spatial matching degree between the current target identification information and the trajectory prediction information. After obtaining the IUGR between each first target identification information and each trajectory prediction information, the Hungarian matching algorithm can be used to process multiple IUGRs as a whole to determine the matching correspondence between the first target identification information and the trajectory prediction information. For example, if the IUGR meets a preset matching condition, the corresponding first target identification information and trajectory prediction information can be identified as a matching pair, and all matching pairs that meet the condition can form the first trajectory matching result. For example, the IUGR threshold can be 0.3.

[0077] Specifically, after completing the first matching process, the trajectory prediction information that has matched the first target identification information can be determined based on the first trajectory matching result. Matched trajectory prediction information is then excluded from all trajectory prediction information, and the remaining unmatched trajectory prediction information is identified as the trajectory prediction information to be matched. Therefore, the second matching process does not match all existing trajectories again, but only processes the trajectory prediction information that failed to match after the first matching process. The second stage only re-associates the unmatched trajectories from the first stage with the low-confidence detection results; detection results that have already matched in the first stage do not participate in the second stage matching. Furthermore, the second target identification information can be matched with each trajectory prediction information to be matched. For example, the association cost can be determined based on the intersection-union ratio (IUU) between the target region corresponding to the second target identification information and the predicted target region corresponding to the trajectory prediction information to be matched. The target region corresponding to the second target identification information is denoted as , will the The prediction target area corresponding to each trajectory prediction information to be matched is denoted as _____. Then the corresponding second association cost can be expressed as:

[0078] in, This represents the association cost between the second target identification information and the trajectory prediction information to be matched. The Hungarian matching algorithm can be used to perform overall matching of the association costs between each second target identification information and each trajectory prediction information to be matched, and determine the corresponding matching pairs according to preset matching conditions, thereby obtaining the second trajectory matching result. For example, when the target forklift is temporarily occluded by other targets, the image is blurred, or local features are incomplete, the recognition confidence in the corresponding image frame may decrease, causing the corresponding target identification information to be classified as second target identification information. In this case, if the second target identification information still has a high spatial consistency with a trajectory prediction information that was not successfully matched in the first matching process, the correspondence between the two can be established through the second matching process to continue maintaining the continuity of the target forklift's corresponding trajectory.

[0079] Furthermore, the degree of consistency in the target's motion state and the continuity of the vehicle's reference dimensions can be introduced to form an extended correlation cost. For example, this correlation cost can be: in, This indicates the target region corresponding to the current target identification information. This indicates the target area corresponding to the trajectory prediction information. This represents the Mahalanobis distance between the current target identification information and the trajectory prediction information. This indicates the current actual reference length corresponding to the current target identification information. This indicates the trajectory prediction reference length corresponding to the target trajectory prediction. , and These represent the weights corresponding to each association term, which can be preset. By expanding the association cost, the degree of overlap in the target region space, the difference in target motion state, and the change in the vehicle reference length can be considered simultaneously. When the vehicle reference length cannot be reliably obtained in the current image frame, the association term corresponding to the vehicle reference length can also be omitted.

[0080] Specifically, after completing the first and second matching processes respectively, the first and second trajectory matching results can be summarized to obtain the trajectory matching result corresponding to the current image frame. The first trajectory matching result can be used to characterize the matching relationship between the first target identification information with high recognition confidence and the existing trajectory, while the second trajectory matching result can be used to characterize the matching relationship between the second target identification information and the remaining trajectory prediction information to be matched after the first matching process. For example, the correspondence between successfully matched target identification information and trajectory prediction information in the first trajectory matching result, and the correspondence between successfully matched target identification information and trajectory prediction information in the second trajectory matching result, can be jointly determined as the trajectory matching result corresponding to the current image frame. The set of matching pairs in the first trajectory matching result can be denoted as... Let the set of matching pairs in the second trajectory matching result be denoted as Then the final set of trajectory matching pairs can be represented as:

[0081] in, This indicates the trajectory matching result corresponding to the current image frame. It should be noted that the first and second matching processes are sequential. After the first matching process is completed, trajectory prediction information that has already formed a valid match is not included in the second matching process. Only trajectory prediction information that was not matched in the first matching process is used as the trajectory prediction information to be matched with the second target recognition information. Therefore, reliable trajectory correspondences can be determined by prioritizing target recognition information with high recognition confidence. Simultaneously, the second target recognition information can be used to supplement and associate target trajectories that have not yet been continued through the first matching process due to occlusion, blurring, or other reasons. This reduces erroneous matching caused by low-confidence targets while improving the continuity of the target forklift trajectory under complex image conditions.

[0082] In one possible implementation, determining the motion state information of the target forklift based on the target trajectory includes: determining the target position information of the target forklift in multiple image frames from the target trajectory based on the acquisition order of the image data; determining the inter-frame displacement information of the target forklift based on the target position information corresponding to adjacent image frames, and determining the motion direction information of the target forklift based on the inter-frame displacement information; determining the steering feature information of the target forklift based on the multiple motion direction information of the target forklift; and determining the motion state information of the target forklift based on the motion direction information and the steering feature information.

[0083] Specifically, the target trajectory may include multiple trajectory data recorded consecutively according to the acquisition order of the image data, with each trajectory data corresponding to the target recognition result of the target forklift in the corresponding image frame. The target position corresponding to multiple image frames can be extracted sequentially from the target trajectory corresponding to the target forklift according to the acquisition order of each image frame, thereby obtaining the target position information of the target forklift in multiple image frames. The target position information can be information used to characterize the image position of the target forklift in the corresponding image frame. In one embodiment, the center position of the detection area corresponding to the target forklift can be used as the target position information. If the ground reference position of the target forklift can be reliably obtained, the ground reference position can also be used as the target position information. For multiple consecutive image frames, the target position type used in consecutive image frames can remain consistent to avoid additional position offsets due to changes in the position reference type. For example, for the target forklift... The first The target location information corresponding to each image frame is represented as follows:

[0084] in, Indicates the target forklift In the Target location information in each image frame This represents the horizontal pixel coordinates corresponding to the target location. This represents the vertical pixel coordinates corresponding to the target location. Following the order in which the image data was acquired, multiple target location information corresponding to the target forklift can be obtained sequentially, for example... , as well as This allows us to further determine the motion changes of the target forklift by utilizing the changes in the target position as the image frame changes.

[0085] Specifically, the target position information corresponding to two adjacent image frames in the target trajectory can be selected according to the acquisition order of the image data, and the inter-frame displacement information of the target forklift can be determined according to the position difference between the two target position information. The inter-frame displacement information can be information used to characterize the image position change of the target forklift between adjacent image frames. For example, it can include the lateral position change, the longitudinal position change, and the inter-frame displacement vector formed by the lateral position change and the longitudinal position change.

[0086] For example, for the first The first image frame and the first For each image frame, the corresponding inter-frame displacement information can be represented as:

[0087] This can be further expressed as:

[0088] in, Indicates the target forklift From the Image frames up to the 1st Inter-frame displacement information corresponding to each image frame. Furthermore, the motion direction information of the target forklift can be determined based on the inter-frame displacement information. The motion direction information can be data representing the direction of movement of the target forklift from the previous target position to the current target position. For example, the inter-frame displacement vector can be normalized to obtain the corresponding motion direction vector: in, Indicates that the target forklift starts from the first... Image frames up to the 1st The motion direction information corresponds to each image frame. The motion direction of the target forklift can also be described by the direction angle, which can be expressed as:

[0089] in, This indicates the direction angle of motion of the target forklift. Using this method, the target forklift can have corresponding direction information between each adjacent image frame.

[0090] Specifically, multiple consecutive motion direction information can be acquired based on the acquisition sequence of the image data, and the changes between adjacent motion direction information can be compared to determine the steering feature information of the target forklift. The steering feature information can characterize whether the target forklift's motion direction has changed and the degree of change. For example, when the motion direction corresponding to multiple consecutive frame intervals remains basically consistent, the target forklift can be considered to be in a straight-line state; when the continuous motion direction changes, the steering feature of the target forklift can be determined based on the corresponding direction change.

[0091] For example, the direction change angle can be determined based on the motion direction vectors corresponding to two adjacent inter-frame intervals. For the first... The motion direction vector corresponding to each frame interval and the The motion direction vector corresponding to each frame interval The corresponding change angle of direction can be expressed as:

[0092] When the direction vector of motion can be a unit direction vector, the above formula can also be expressed as:

[0093] in, This indicates the degree of directional change between two adjacent directions of motion. When using motion direction angles to represent motion direction information, the corresponding directional change information can also be determined based on the changes between consecutive motion direction angles, for example:

[0094] Furthermore, the periodicity of the direction angle can be normalized so that the angle of change of direction falls within the preset angle range.

[0095] Furthermore, the steering feature information of the target forklift can be determined based on multiple consecutive directional change angles. For example, multiple directional change angles can be obtained within a consecutive image frame interval:

[0096] in, This represents the set of directional change information of the target forklift within the current consecutive image frame interval. This indicates the number of continuous directional change information elements used. The steering characteristic information of the target forklift can be determined based on the magnitude, continuity, and trend of the directional change angles in the set of directional change information. For example, when multiple consecutive directional change angles are within a small range, it can be determined that the overall movement direction of the target forklift remains stable; when multiple consecutive directional change angles continuously increase or exceed the corresponding directional change conditions, it can be determined that the target forklift has a more obvious steering characteristic. Therefore, the steering characteristic information is obtained by combining single-frame position changes with information from multiple consecutive motion directions, thereby reducing the possibility of misjudging the motion state due to target position jitter in a single image frame.

[0097] Specifically, the current motion direction information of the target forklift can be correlated with the steering feature information obtained from multiple consecutive motion direction information to determine the motion state information of the target forklift. The motion state information can be used to comprehensively characterize the current motion direction and changes in that direction of the target forklift, and may include the current motion direction and corresponding steering state. The motion direction information can determine the primary direction the target forklift is currently moving in; the steering feature information can further determine whether that motion direction remains stable or is undergoing continuous change.

[0098] For example, the motion state information corresponding to the target forklift can be represented as:

[0099] in, Indicates the target forklift is in the 1st mile. Motion state information for each image frame corresponding to a time period This indicates the direction of movement of the target forklift. This represents steering characteristic information determined based on multiple consecutive motion direction information. When motion direction information is represented by a direction angle, it can also be expressed as:

[0100] For example, when the motion direction information of the target forklift remains basically consistent across multiple consecutive image frames, and the corresponding steering feature information indicates that the degree of direction change is small, it can be determined that the target forklift is currently in a relatively stable motion direction state; when the motion direction of the target forklift continues to change, and the steering feature information indicates that the degree of direction change reaches the corresponding condition, it can be determined that the target forklift is currently in a steering state.

[0101] In one possible implementation, the target scale information corresponding to the target forklift is determined based on motion state information, candidate scale information, and preset scale reference information, including: determining reference direction information and reference pixel length information corresponding to the target forklift based on the candidate scale information; determining a specified candidate scale information from the candidate scale information based on the direction matching relationship between the motion direction information and the reference direction information; and determining the target scale information corresponding to the target forklift based on the reference pixel length information corresponding to the specified candidate scale information and the preset scale reference information.

[0102] Specifically, candidate scale information can include one or more scale references formed based on the vehicle body reference information and ground reference information corresponding to the target forklift. Different candidate scale information can correspond to different scale reference types. For example, candidate scale information can include vehicle body scale reference information formed based on the main body of the target forklift, and ground scale reference information formed based on the ground contact positions of the front and rear wheels of the target forklift. For vehicle body scale reference information, when the target forklift is viewed approximately from the side and the main body is fully visible, the longitudinal portion of the vehicle body excluding the forks can be used as the scale reference, and the projection direction of the longitudinal portion of the vehicle body in the current image frame and the corresponding pixel projection length can be determined. For ground scale reference information, when the ground contact points of both the front and rear wheels of the target forklift can be reliably determined, the line segment between the ground contact points of the front and rear wheels can be used as the scale reference, and the direction and pixel length of this line segment in the current image frame can be determined.

[0103] For example, for the target forklift... Each candidate scale information can be used to denot the two endpoints of the corresponding reference line segment as follows: and ,in, This represents the current image frame. The corresponding reference pixel length information can then be represented as:

[0104] in, Indicates the first The candidate scale information in the first The length of the reference pixels in each image frame.

[0105] Furthermore, the corresponding reference direction information can be determined based on the two endpoints of the reference line segment. For example, the corresponding reference direction unit vector can be represented as:

[0106] in, Indicates the first The reference direction information corresponding to the candidate scale information. For example, when the first candidate scale information... When the candidate scale information is ground scale reference information formed based on the ground contact points of the front and rear wheels, the reference pixel length can be the pixel distance between the ground contact points of the front and rear wheels, and the reference direction can be the connection direction between the ground contact points of the front and rear wheels; when the candidate scale information is ground scale reference information formed based on the ground contact points of the front and rear wheels, the reference pixel length can be the pixel distance between the ground contact points of the front and rear wheels, and the reference direction can be the connection direction between the ground contact points of the When the candidate scale information is the vehicle scale reference information, the reference pixel length can be the pixel projection length corresponding to the vehicle body along the longitudinal direction, and the reference direction can be the projection direction of the vehicle body longitudinally in the image.

[0107] Specifically, the motion direction information determined in the aforementioned implementation method can be obtained from the motion state information of the target forklift. The motion direction information corresponding to the target forklift is then compared with the reference direction information corresponding to each candidate scale, thereby determining the direction matching relationship between the motion direction of the target forklift and the reference directions at different scales. For example, the unit vector of the motion direction of the target forklift in the current image frame is denoted as... , will the The reference direction unit vector corresponding to each candidate scale information is denoted as . The directional matching relationship can then be represented by the angle between the two directional vectors:

[0108] in, Indicates the direction of movement of the target forklift relative to the first... The angle between the reference directions corresponding to the candidate scale information. With both the motion direction vector and the reference direction vector normalized, it can be further expressed as: Based on the directional matching relationships corresponding to each candidate scale information, candidate scale information with a high degree of matching with the current movement direction of the target forklift can be selected and designated as the specified candidate scale information. For example, candidate scale information whose directional angle meets the preset directional matching conditions can be designated as optional candidate scale information, and the specified candidate scale information can be determined from the optional candidate scale information. When there are multiple candidate scale information that meet the directional matching conditions, one candidate scale information can also be determined by considering the availability of the candidate scale information itself. For example, when the ground contact positions of the front and rear wheels of the target forklift are clearly visible, the ground scale reference corresponding to the wheelbase can be used; when the target forklift is approximately viewed from the side and the main body of the vehicle is fully visible, the vehicle scale reference corresponding to the longitudinal direction of the vehicle can be used. Thus, it is possible to avoid directly using a certain image scale reference as the scale basis for the current target forklift simply because it can be identified, but rather to determine the specified candidate scale information that is more suitable for the current movement state based on the matching between the current movement direction of the target forklift and the direction of the candidate scale reference.

[0109] Specifically, the preset scale reference information can be the actual physical size information of the target forklift corresponding to different candidate scale reference types. For example, when the specified candidate scale information is a ground scale reference formed based on the ground contact points of the front and rear wheels, the corresponding preset scale reference information can be the actual wheelbase of the target forklift; when the specified candidate scale information is a vehicle body scale reference formed based on the vehicle body, the corresponding preset scale reference information can be the actual longitudinal length of the vehicle body excluding the forks. The preset scale reference information can be pre-stored in the vehicle size file corresponding to the target forklift and can be obtained based on the vehicle model, vehicle identification, or other information that can determine the vehicle size.

[0110] For example, the specified candidate scale information is denoted as The corresponding reference pixel length is denoted as The preset scale reference information corresponding to the reference type of the specified candidate scale information is denoted as... ,in, This represents the actual length of the corresponding scale reference in real physical space.

[0111] The target scale information corresponding to the target forklift can be represented as:

[0112] in, Indicates the target forklift is in the 1st mile. Target scale information corresponding to each image frame This indicates the actual physical reference length corresponding to the specified candidate scale information. This indicates the reference pixel length corresponding to the specified candidate scale information. Target scale information can be used to characterize the correspondence between the unit pixel length and the actual physical length in the current image region. For example, when the specified candidate scale information is the front and rear wheelbase reference, the actual wheelbase of the target forklift can be used as... The pixel length between the ground contact points of the front and rear wheels in the current image frame is taken as... This allows us to obtain the target dimension information corresponding to the current target forklift; when the specified candidate dimension information is the longitudinal reference of the vehicle body, the actual longitudinal length of the vehicle body excluding the forks, confirmed by the vehicle model information, can be used as... And the length of the projected pixels corresponding to the longitudinal direction of the vehicle body in the current image frame is used as This allows for the determination of target scale information. By first determining a specified candidate scale information that matches the current motion state based on the motion direction, and then using the reference pixel length of this specified candidate scale information and the corresponding actual scale reference information to determine the target scale information, the obtained scale relationship can correspond to the current motion direction of the target forklift and the currently observable geometric reference. This makes the subsequent trajectory selection and displacement scale conversion based on the target scale information more accurate.

[0113] In one possible implementation, determining valid trajectory information from the target trajectory based on trajectory quality information and target scale information includes: determining trajectory association status information corresponding to each target identification information in the target trajectory based on trajectory quality information; determining scale matching information corresponding to each target identification information based on target scale information; and determining valid trajectory information from the target trajectory based on trajectory association status information, scale matching information, and preset filtering rules.

[0114] Specifically, trajectory quality information can be information obtained based on the target trajectory and preset trajectory evaluation rules, used to characterize the reliability of the association between each target identification result and its corresponding target trajectory. Based on the association status of each target identification information in the target trajectory, the trajectory association status information corresponding to each target identification information can be determined. The trajectory association status information can be used to characterize whether the current target identification information can be considered a reliable actual observation in the target trajectory. For example, the trajectory association status corresponding to the current target identification information can be determined based on whether there is an effective match between the current target identification information and the corresponding trajectory prediction information, whether the target identity is continuous in consecutive image frames, whether the target category is consistent, whether the changes in the target's geometric state are continuous, and whether there are obvious anomalies in the target's motion changes.

[0115] Specifically, target scale information can be determined based on the motion state information of the target forklift, candidate scale information, and preset scale reference information. It represents the correspondence between image scale and actual physical scale. For each target recognition information in the target trajectory, it can be determined whether the target forklift image state reflected by the current target recognition information matches the scale usage conditions corresponding to the target scale information, thus obtaining the corresponding scale matching information. Scale matching information can be used to characterize whether the target scale information is suitable for the current target recognition information. For example, the scale matching information corresponding to the current target recognition information can be determined based on whether the vehicle body reference or ground reference corresponding to the current target recognition information remains visible, whether the scale reference type currently used is consistent with the scale reference type used when determining the target scale information, whether the reference pixel length meets the usage requirements, whether the image pose of the target forklift has changed significantly, and whether the scale change is continuous. For example, for target scale information that uses the front and rear wheelbase as a scale reference, if the ground contact positions of the front and rear wheels can be reliably obtained in the current target recognition information, and the corresponding reference line segments do not show obvious occlusion or abnormal shortening, then it can be determined that there is a good scale matching relationship between the current target recognition information and the target scale information. Or, when the target scale information is determined based on the longitudinal reference of the vehicle body in the side view state of the target forklift, and the current target recognition information indicates that the target forklift has made a significant turn, causing the longitudinal projection length of the vehicle body in the image to be significantly shortened, then the current target recognition information and the original target scale information may no longer meet the scale usage conditions, and the corresponding scale matching information can be determined as not meeting the scale matching conditions.

[0116] Specifically, filtering rules for selecting valid trajectory data can be pre-set, and the target identification information in the target trajectory can be filtered based on the trajectory association status information and scale matching information corresponding to each target identification information. The pre-set filtering rules can include at least trajectory association conditions and scale matching conditions. The trajectory association condition can be used to determine whether the target identification information belongs to the actual information corresponding to the target forklift, and the scale matching condition can be used to determine whether the current target identification information can match the target scale information. When the trajectory association status information corresponding to a certain target identification information meets the trajectory association condition, and the corresponding scale matching information meets the scale matching condition, the target identification information and its corresponding trajectory data can be determined as valid trajectory data. By organizing multiple valid trajectory data according to the image data acquisition order, the valid trajectory information corresponding to the target forklift can be obtained.

[0117] Furthermore, for target identification information with low reliability but still usable for continuing the target trajectory, if its association reliability or scale matching degree does not yet meet the preset screening conditions, it can continue to be retained in the target trajectory to ensure the continuity of the target forklift's identity, but it will not be determined as valid trajectory information. If the trajectory association state of a certain target identification information meets the requirements, but the current scale reference is significantly occluded, the scale changes abruptly, or the current target pose is no longer applicable to the target scale information, the target identification information can also continue to be used to maintain the target trajectory, but it will not be considered as valid trajectory information.

[0118] In one possible implementation, based on the effective trajectory information and the acquisition time information corresponding to the image data, the displacement information and time interval information of the target forklift are determined, and the speed recognition result corresponding to the target forklift is determined according to the displacement information, time interval information, target scale information, and trajectory quality information. This includes: determining adjacent effective target information from the effective trajectory information based on the acquisition time information corresponding to the image data; determining the displacement information of the target forklift based on the target position corresponding to the adjacent effective target information, and determining the time interval information of the target forklift based on the acquisition time corresponding to the adjacent effective target information; performing scale transformation processing on the displacement information based on the target scale information to obtain the actual displacement information of the target forklift, and determining the speed parameters of the target forklift according to the actual displacement information and time interval information; and determining the speed recognition result corresponding to the target forklift based on the speed parameters and trajectory quality information.

[0119] Specifically, the valid trajectory information can include multiple valid target information items arranged according to the acquisition order of the image data. Each valid target information item corresponds to a valid actual observation of the target forklift in an image frame and has a corresponding target position and acquisition time. Multiple valid target information items in the valid trajectory information can be arranged in chronological order according to the acquisition time information corresponding to the image data, and two valid target information items with adjacent acquisition times can be identified as adjacent valid target information items. For example, for the target forklift... If the first The first valid target information and the first Each valid target information is formed by arranging two adjacent valid target information according to the acquisition time, and then the target locations corresponding to the two can be obtained separately. , and collection time , In this case, if the target forklift in the intermediate image frame is not identified as valid trajectory information due to occlusion, insufficient target recognition quality, or failure to meet scale conditions, the two actual observations that meet the valid conditions before and after the occlusion can be identified as adjacent valid target information, and subsequent processing can be performed based on their respective actual acquisition times.

[0120] Specifically, the target positions corresponding to adjacent valid target information can be obtained, and the displacement information of the target forklift can be determined based on the positional difference between the two target positions. The center position of the detection area corresponding to the target forklift can be used as the target position. For the target forklift... , will the The target location corresponding to each valid target information is represented as follows:

[0121] The target position corresponding to the previous adjacent valid target information is represented as:

[0122] The pixel displacement between two adjacent valid target information can be expressed as:

[0123] in, Indicates the target forklift The image pixel displacement between two adjacent valid target information. When using a ground reference position as the target position corresponding to the valid target information, the corresponding displacement information can also be determined based on the positional difference between two adjacent ground reference positions. Regardless of whether the detection area center or the ground reference position is used, the target position type used for two consecutive adjacent valid target information can remain consistent to avoid uncorrected switching between different position reference methods and the resulting additional positional error.

[0124] Furthermore, the time interval information can be determined based on the acquisition time corresponding to two adjacent valid target information. For example, it can be represented as:

[0125] in, This represents the time interval between two adjacent valid target information entries. This indicates the actual collection time corresponding to the currently valid target information. This represents the actual acquisition time corresponding to the previous valid target information. When the image device acquires data at a stable frame rate, and adjacent valid target information comes from two consecutively acquired image frames, the time interval can also be expressed as:

[0126] in, This indicates the image acquisition frame rate corresponding to the imaging device. It should be noted that when there are dropped frames, variable frame rates, or one or more invalid image frames between adjacent valid target information, the actual acquisition time can be prioritized. and Calculate the time interval.

[0127] Furthermore, the original frame-by-frame speed measurement method can be used to determine the speed parameters corresponding to the target forklift. For two consecutive actual target observations within the same target trajectory, the pixel width of the detection box corresponding to the target forklift in the current image frame and the previous image frame can be obtained, and the average pixel width can be determined based on the pixel width of the detection box corresponding to the two actual target observations. The average pixel width can be expressed as:

[0128] in, Indicates the first The target forklift is in the first The first image frame and the first The average pixel width of the detection box between each image frame; Indicates the first The target forklift is in the first The pixel width of the detection box in each image frame; Indicates the first The target forklift is in the first The pixel width of the detection box in each image frame; Used to represent the current image frame; This is used to characterize the pixel length in the image pixel coordinate system; and it can determine the original instantaneous scale between two adjacent actual target observations based on the actual reference size of the target forklift and the average detection box pixel width. The original instantaneous scale can be expressed as:

[0129] in, Indicates the first The target forklift is in the first The first image frame and the first The original instantaneous scale between image frames is used to characterize the actual physical length corresponding to a unit pixel length; This indicates the actual reference size of the target forklift, which can be the actual physical size of the forklift corresponding to the pixel width of the current detection box. This represents the average pixel width of the detection box corresponding to two consecutive actual target observations; The scale used to characterize the target is determined jointly by two adjacent target observations. Using the above method, a correspondence between the image scale and the actual physical scale can be established using the actual reference size of the target forklift and the average pixel width in the image. Then, the original velocity parameters corresponding to the target forklift can be determined based on pixel displacement, time interval, and the original instantaneous scale. The original velocity parameters can be expressed as:

[0130] in, Indicates the first The target forklift is in the first The first image frame and the first The original velocity parameters corresponding to each image frame; The speed parameter used to characterize this speed was determined using the original frame-by-frame velocimetry method; This represents the original instantaneous scale corresponding to two adjacent actual target observations; Indicates the first The pixel displacement of a target forklift between two adjacent actual target observations; This represents the time interval between two consecutive actual target observations.

[0131] In one example, the pixel displacement The position of the target forklift can be determined based on the center position of the detection box in two adjacent image frames. The center position of the detection box in each image frame is , No. The center position of the detection box in each image frame is When the pixel displacement is, it can be expressed as:

[0132] in, and They represent the first The target forklift is in the first The horizontal and vertical pixel coordinates of the center of the detection box in each image frame; and They represent the first The target forklift is in the first The horizontal and vertical pixel coordinates of the center of the detection box in each image frame; This represents the image pixel displacement of the target forklift between two consecutive actual target observations.

[0133] Specifically, when the target scale information corresponds to the physical scale of a unit pixel within a local region, and the displacement direction matches the adopted scale reference direction, the actual displacement information can be determined by multiplying the target scale information by the pixel displacement. For example, the target scale information can be represented as... The actual displacement information of the target forklift can then be expressed as:

[0134] in, This indicates the actual displacement of the target forklift between two adjacent valid target information. This indicates the target scale information corresponding to the current target forklift. This represents the pixel displacement between adjacent valid target information.

[0135] Furthermore, the inter-frame average scale of the same scale reference used in two adjacent valid observations can be expressed as:

[0136] in, This indicates the actual physical length corresponding to the selected scale reference. and These represent the reference pixel lengths of the scale reference in two adjacent valid observations, respectively. This is used to indicate the corresponding scale reference type. The average reference direction corresponding to two consecutive valid observations can be expressed as:

[0137] in, and These represent the reference directions corresponding to two consecutive valid observations. Therefore, the actual displacement information obtained after scaling along the corresponding reference directions can be expressed as:

[0138] in, This indicates the actual displacement of the target forklift along the currently applicable reference direction between adjacent valid target information. This represents the projection component of the image displacement in the reference direction.

[0139] Specifically, after obtaining the actual displacement information, the speed parameters corresponding to the target forklift can be determined based on the actual displacement information and time interval information:

[0140] in, Indicates the target forklift The velocity parameter, measured in meters per second, is the velocity parameter within the time interval corresponding to two adjacent valid target information. After obtaining the velocity parameter corresponding to the target forklift, the validity of the current velocity parameter can be judged by combining it with the trajectory quality information of the trajectory segment corresponding to the velocity parameter. Based on the judgment result, the velocity identification result corresponding to the target forklift can be determined. For example, when the adjacent valid target information of the velocity parameter all belong to the same target forklift, and the corresponding trajectory quality meets the preset velocity output conditions, the velocity parameter can be determined as the valid velocity identification result corresponding to the target forklift. In this way, adjacent valid target information is first determined from the valid trajectory information, and then the pixel displacement and actual acquisition time interval are determined based on the adjacent valid target information. The pixel displacement is converted into actual displacement using target scale information adapted to the current state of the target forklift. Furthermore, the calculated velocity parameter is judged by combining it with the trajectory quality information to determine whether it can be used as a reliable velocity output. This allows the continuous tracking process of the target forklift to be distinguished from the quantitative velocity identification process, avoiding the direct formation of incorrect velocity identification results from predicted trajectory position, invalid observations, or abnormal trajectory identity.

[0141] This application discloses a forklift speed recognition method based on monocular vision, comprising: acquiring image data collected by an image device; performing target recognition processing on the image data to obtain target recognition information and candidate scale information corresponding to at least one target forklift; determining the target trajectory corresponding to the target forklift based on the target recognition information, and determining the trajectory quality information corresponding to the target trajectory according to the target trajectory and a preset trajectory evaluation rule; determining the motion state information of the target forklift based on the target trajectory, and determining the target scale information corresponding to the target forklift according to the motion state information, candidate scale information, and preset scale reference information; determining the effective trajectory information from the target trajectory based on the trajectory quality information and the target scale information; determining the displacement information and time interval information of the target forklift based on the effective trajectory information and the acquisition time information corresponding to the image data, and determining the speed recognition result corresponding to the target forklift according to the displacement information, time interval information, target scale information, and trajectory quality information. In this method, by forming a target trajectory for the target forklift and using trajectory quality information to constrain the trajectory data, the impact of unreliable trajectory data caused by factors such as target occlusion and incorrect association on speed recognition can be reduced. At the same time, based on the motion state information of the target forklift, target scale information that matches the current motion state is determined from candidate scale information. The effective trajectory information is further filtered by combining trajectory quality information and target scale information, so that trajectory data that can maintain target tracking is distinguished from effective trajectory data that can be used for speed recognition. This avoids data that does not meet the scale adaptation conditions or trajectory quality conditions from directly participating in speed calculation. Finally, the speed recognition result is determined by the displacement information, time interval information and target scale information corresponding to the effective trajectory information. This can reduce abnormal speed measurement caused by changes in motion direction, scale mismatch and low-quality trajectory data, and improve the reliability and stability of forklift speed recognition under monocular vision conditions.

[0142] Corresponding to the aforementioned application function implementation method embodiments, this application also provides a forklift speed recognition device, electronic device, and corresponding embodiments based on monocular vision.

[0143] Figure 2 This is a schematic diagram of the structure of a forklift speed recognition device based on monocular vision, as shown in an embodiment of this application.

[0144] See Figure 2 A forklift speed recognition device 200 based on monocular vision includes: The acquisition module 210 is used to acquire image data collected by the image device, perform target recognition processing on the image data, and obtain target recognition information and candidate scale information corresponding to at least one target forklift. The first processing module 220 is used to determine the target trajectory corresponding to the target forklift based on the target recognition information, and to determine the trajectory quality information corresponding to the target trajectory according to the target trajectory and the preset trajectory evaluation rules. The second processing module 230 is used to determine the motion state information of the target forklift based on the target trajectory, and to determine the target scale information corresponding to the target forklift according to the motion state information, candidate scale information and preset scale reference information. The third processing module 240 is used to determine effective trajectory information from the target trajectory based on trajectory quality information and target scale information; The determination module 250 is used to determine the displacement information and time interval information of the target forklift based on the effective trajectory information and the acquisition time information corresponding to the image data, and to determine the speed recognition result of the target forklift according to the displacement information, time interval information, target scale information and trajectory quality information.

[0145] In one possible implementation, the acquisition module 210 is further configured to perform target recognition processing on each image frame in the image data to obtain target spatial information, recognition confidence, and target geometric feature information corresponding to the target forklift; based on the target spatial information, determine the vehicle body reference information and ground reference information corresponding to the target forklift; based on the target spatial information, recognition confidence, and target geometric feature information, determine the target recognition information corresponding to the target forklift, and based on the vehicle body reference information and ground reference information, determine the candidate scale information corresponding to the target forklift.

[0146] In one possible implementation, the first processing module 220 is further configured to determine the trajectory prediction information corresponding to the current image frame based on the historical trajectory information corresponding to the target forklift; perform matching processing on the target recognition information and trajectory prediction information corresponding to the current image frame to obtain the trajectory matching result; and update the historical trajectory information according to the trajectory matching result to obtain the target trajectory corresponding to the target forklift.

[0147] In one possible implementation, the first processing module 220 is further configured to: divide each target recognition information into first target recognition information and second target recognition information based on the recognition credibility of the target recognition information in the current image frame; perform a first matching process on the first target recognition information and trajectory prediction information to obtain a first trajectory matching result; determine the trajectory prediction information to be matched from the trajectory prediction information based on the first trajectory matching result, and perform a second matching process on the second target recognition information and the trajectory prediction information to be matched to obtain a second trajectory matching result; and determine the trajectory matching result based on the first trajectory matching result and the second trajectory matching result.

[0148] In one possible implementation, the second processing module 230 is further configured to: determine the target position information of the target forklift in multiple image frames from the target trajectory based on the acquisition sequence corresponding to the image data; determine the inter-frame displacement information of the target forklift based on the target position information corresponding to adjacent image frames, and determine the motion direction information of the target forklift based on the inter-frame displacement information; determine the steering feature information of the target forklift based on the multiple motion direction information corresponding to multiple target forklifts; and determine the motion state information of the target forklift based on the motion direction information and the steering feature information.

[0149] In one possible implementation, the second processing module 230 is further configured to determine the reference direction information and reference pixel length information corresponding to the target forklift based on the candidate scale information; determine the specified candidate scale information from the candidate scale information based on the direction matching relationship between the motion direction information and the reference direction information; and determine the target scale information corresponding to the target forklift based on the reference pixel length information corresponding to the specified candidate scale information and the preset scale reference information.

[0150] In one possible implementation, the third processing module 240 is further configured to determine the trajectory association status information corresponding to each target identification information in the target trajectory based on the trajectory quality information; determine the scale matching information corresponding to each target identification information based on the target scale information; and determine the valid trajectory information from the target trajectory based on the trajectory association status information, the scale matching information, and the preset filtering rules.

[0151] In one possible implementation, the determining module 250 is further configured to: determine adjacent valid target information from the valid trajectory information based on the acquisition time information corresponding to the image data; determine the displacement information of the target forklift based on the target position corresponding to the adjacent valid target information; determine the time interval information of the target forklift based on the acquisition time corresponding to the adjacent valid target information; perform scale transformation processing on the displacement information based on the target scale information to obtain the actual displacement information of the target forklift; determine the speed parameters of the target forklift based on the actual displacement information and the time interval information; and determine the speed recognition result corresponding to the target forklift based on the speed parameters and trajectory quality information.

[0152] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated further here.

[0153] This application discloses a forklift speed recognition device based on monocular vision, comprising: an acquisition module for acquiring image data collected by an image device, performing target recognition processing on the image data to obtain target recognition information and candidate scale information corresponding to at least one target forklift; a first processing module for determining the target trajectory corresponding to the target forklift based on the target recognition information, and determining the trajectory quality information corresponding to the target trajectory according to the target trajectory and a preset trajectory evaluation rule; a second processing module for determining the motion state information of the target forklift based on the target trajectory, and determining the target scale information corresponding to the target forklift according to the motion state information, candidate scale information, and preset scale reference information; a third processing module for determining valid trajectory information from the target trajectory based on the trajectory quality information and target scale information; and a determination module for determining the displacement information and time interval information of the target forklift based on the valid trajectory information and the acquisition time information corresponding to the image data, and determining the speed recognition result corresponding to the target forklift according to the displacement information, time interval information, target scale information, and trajectory quality information. In this method, by forming a target trajectory for the target forklift and using trajectory quality information to constrain the trajectory data, the impact of unreliable trajectory data caused by factors such as target occlusion and incorrect association on speed recognition can be reduced. At the same time, based on the motion state information of the target forklift, target scale information that matches the current motion state is determined from candidate scale information. The effective trajectory information is further filtered by combining trajectory quality information and target scale information, so that trajectory data that can maintain target tracking is distinguished from effective trajectory data that can be used for speed recognition. This avoids data that does not meet the scale adaptation conditions or trajectory quality conditions from directly participating in speed calculation. Finally, the speed recognition result is determined by the displacement information, time interval information and target scale information corresponding to the effective trajectory information. This can reduce abnormal speed measurement caused by changes in motion direction, scale mismatch and low-quality trajectory data, and improve the reliability and stability of forklift speed recognition under monocular vision conditions.

[0154] This embodiment also provides an electronic device, including a processor and a memory. The memory stores computer-executable instructions that can be executed by the processor. The processor executes the computer-executable instructions to implement the above-described monocular vision-based forklift speed recognition method. This electronic device can be a server or a terminal device.

[0155] See Figure 3 As shown, the electronic device includes a processor 300 and a memory 301. The memory 301 stores computer-executable instructions that can be executed by the processor 300. The processor 300 executes the computer-executable instructions to implement the above-described monocular vision-based forklift speed recognition method.

[0156] Furthermore, Figure 3The electronic device shown also includes a bus 302 and a communication interface 303. The processor 300, the communication interface 303 and the memory 301 are connected via the bus 302.

[0157] The memory 301 may include high-speed random access memory (RAM) and may also include non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 303 (which can be wired or wireless), such as the Internet, wide area network, local area network, metropolitan area network, etc. The bus 302 may be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 3 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.

[0158] The processor 300 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of the processor 300 or by instructions in software form. The processor 300 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software module can reside in a readily available storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory 301. The processor 300 reads information from memory 301 and, in conjunction with its hardware, completes the steps of the method described in the foregoing embodiments.

[0159] This embodiment also provides a computer-readable storage medium storing computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to implement the above-described monocular vision-based forklift speed recognition method.

[0160] Furthermore, in the description of the embodiments of this application, unless otherwise expressly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances.

[0161] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0162] In the description of this application, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0163] Finally, it should be noted that the above embodiments are merely specific implementations of this application, used to illustrate the technical solutions of this application, and not to limit them. The protection scope of this application is not limited thereto. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the technical scope disclosed in this application. Such modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be covered within the protection scope of this application. Therefore, the protection scope of this application should be determined by the protection scope of the claims.

Claims

1. A forklift speed recognition method based on monocular vision, characterized in that, include: Acquire image data collected by an image device, perform target recognition processing on the image data, and obtain target recognition information and candidate scale information corresponding to at least one target forklift; Based on the target recognition information, the target trajectory corresponding to the target forklift is determined, and the trajectory quality information corresponding to the target trajectory is determined according to the target trajectory and the preset trajectory evaluation rules. Based on the target trajectory, the motion state information of the target forklift is determined, and the target scale information corresponding to the target forklift is determined according to the motion state information, the candidate scale information and the preset scale reference information. Based on the trajectory quality information and the target scale information, valid trajectory information is determined from the target trajectory; Based on the effective trajectory information and the acquisition time information corresponding to the image data, the displacement information and time interval information of the target forklift are determined, and the speed recognition result corresponding to the target forklift is determined according to the displacement information, the time interval information, the target scale information and the trajectory quality information.

2. The method according to claim 1, characterized in that, The step of performing target recognition processing on the image data to obtain target recognition information and candidate scale information corresponding to at least one target forklift includes: Target recognition processing is performed on each image frame in the image data to obtain the target spatial information, recognition confidence level and target geometric feature information corresponding to the target forklift; Based on the target space information, determine the vehicle body reference information and / or ground reference information corresponding to the target forklift; Based on the target spatial information, the recognition confidence level, and the target geometric feature information, the target recognition information corresponding to the target forklift is determined, and based on the vehicle body reference information and / or the ground reference information, the candidate scale information corresponding to the target forklift is determined.

3. The method according to claim 1, characterized in that, Determining the target trajectory corresponding to the target forklift based on the target recognition information includes: Based on the historical trajectory information corresponding to the target forklift, determine the trajectory prediction information corresponding to the current image frame; The target recognition information and trajectory prediction information corresponding to the current image frame are matched to obtain the trajectory matching result; The historical trajectory information is updated based on the trajectory matching result to obtain the target trajectory corresponding to the target forklift.

4. The method according to claim 3, characterized in that, The step of matching the target recognition information and the trajectory prediction information corresponding to the current image frame to obtain the trajectory matching result includes: Based on the recognition credibility of the target recognition information in the current image frame, each target recognition information is divided into first target recognition information and second target recognition information; The first target identification information and the trajectory prediction information are subjected to a first matching process to obtain a first trajectory matching result; Based on the first trajectory matching result, the trajectory prediction information to be matched is determined from the trajectory prediction information, and the second target identification information and the trajectory prediction information to be matched are subjected to a second matching process to obtain the second trajectory matching result; The trajectory matching result is determined based on the first trajectory matching result and the second trajectory matching result.

5. The method according to claim 1, characterized in that, The step of determining the motion state information of the target forklift based on the target trajectory includes: Based on the acquisition sequence corresponding to the image data, the target position information of the target forklift in multiple image frames is determined from the target trajectory; The inter-frame displacement information of the target forklift is determined based on the target position information corresponding to adjacent image frames, and the movement direction information of the target forklift is determined based on the inter-frame displacement information. Based on multiple movement direction information corresponding to multiple target forklifts, determine the steering feature information corresponding to the target forklifts; Based on the motion direction information and the steering feature information, the motion state information of the target forklift is determined.

6. The method according to claim 5, characterized in that, Determining the target scale information corresponding to the target forklift based on the motion state information, the candidate scale information, and the preset scale reference information includes: Based on the candidate scale information, the reference direction information and reference pixel length information corresponding to the target forklift are determined; Based on the direction matching relationship between the motion direction information and the reference direction information, a specified candidate scale information is determined from the candidate scale information; Based on the reference pixel length information corresponding to the specified candidate scale information and the preset scale reference information, the target scale information corresponding to the target forklift is determined.

7. The method according to claim 1, characterized in that, The step of determining valid trajectory information from the target trajectory based on the trajectory quality information and the target scale information includes: Based on the trajectory quality information, determine the trajectory association status information corresponding to the target identification information in the target trajectory; Based on the target scale information, determine the scale matching information corresponding to each of the target recognition information; Based on the trajectory association status information, the scale matching information, and the preset filtering rules, the valid trajectory information is determined from the target trajectory.

8. The method according to claim 1, characterized in that, The process of determining the displacement information and time interval information of the target forklift based on the effective trajectory information and the acquisition time information corresponding to the image data, and determining the speed recognition result corresponding to the target forklift based on the displacement information, the time interval information, the target scale information, and the trajectory quality information, includes: Based on the acquisition time information corresponding to the image data, adjacent valid target information is determined from the valid trajectory information; Based on the target positions corresponding to the adjacent valid target information, the displacement information of the target forklift is determined, and based on the acquisition time corresponding to the adjacent valid target information, the time interval information of the target forklift is determined. The displacement information is scale-transformed based on the target scale information to obtain the actual displacement information of the target forklift. The speed parameters of the target forklift are then determined based on the actual displacement information and the time interval information. Based on the speed parameters and the trajectory quality information, the speed recognition result corresponding to the target forklift is determined.

9. A forklift speed recognition device based on monocular vision, characterized in that, include: The acquisition module is used to acquire image data collected by the image device, perform target recognition processing on the image data, and obtain target recognition information and candidate scale information corresponding to at least one target forklift. The first processing module is used to determine the target trajectory corresponding to the target forklift based on the target identification information, and to determine the trajectory quality information corresponding to the target trajectory according to the target trajectory and the preset trajectory evaluation rules. The second processing module is used to determine the motion state information of the target forklift based on the target trajectory, and to determine the target scale information corresponding to the target forklift according to the motion state information, the candidate scale information and the preset scale reference information. The third processing module is used to determine valid trajectory information from the target trajectory based on the trajectory quality information and the target scale information; The determination module is used to determine the displacement information and time interval information of the target forklift based on the effective trajectory information and the acquisition time information corresponding to the image data, and to determine the speed recognition result corresponding to the target forklift according to the displacement information, the time interval information, the target scale information and the trajectory quality information.

10. An electronic device, characterized in that, include: processor; as well as A memory having executable code stored thereon, which, when executed by the processor, causes the processor to perform the method as described in any one of claims 1-8.