Position and posture evaluation method, position and posture determination method, corresponding device and electronic equipment

By calculating the degree of fit between the convex hull of the projection point of the target model on the image to be processed and the target object image, the problem of inaccurate pose parameters in the existing technology is solved, and accurate evaluation and confidence of the pose are achieved. improvement.

CN113793250BActive Publication Date: 2024-09-06MEGVII (BEIJING) TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110931976.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-13
Publication Date
2024-09-06
Estimated Expiration
2041-08-13

AI Technical Summary

Technical Problem

It is difficult to accurately evaluate the pose parameters of an object with the existing technology, resulting in a mismatch between the pose parameters and the actual situation, and a large confidence error, making it impossible to accurately determine the pose of the object.

Method used

By obtaining the image to be processed, determining the convex hull of the projection point of the target model in the estimated pose, and calculating the degree of fit between the convex hull of the projection point and the target object image to evaluate the confidence of the pose, thereby accurately evaluating Estimate pose.

Benefits of technology

It achieves accurate evaluation of pose, improves the credibility of pose parameters, can effectively save costs and improve the accuracy of estimated pose in practical applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113793250B
    Figure CN113793250B
Patent Text Reader

Abstract

The present application provides a posture evaluation method, a posture determination method, a corresponding device and an electronic device. A specific implementation of the method includes: obtaining an image to be processed; the image to be processed includes an image of a target object; according to the image to be processed, obtaining a target model corresponding to the target object and an estimated posture corresponding to the target object at the time of shooting the image to be processed; determining the convex hull of the projection points of the target model on the image to be processed under the estimated posture; based on the convex hull of the projection points and the image of the target object, calculating the confidence of the estimated posture to evaluate the estimated posture according to the confidence. The method can calculate the confidence of the estimated posture, so as to be able to evaluate the estimated posture according to the obtained confidence and determine a more accurate target posture.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing, and in particular, to a posture evaluation method, a posture determination method, a corresponding device and an electronic device. Background Art

[0002] In the field of image processing, it is necessary to accurately obtain the position and posture information of an object. The determined object position and posture can be used in fields such as augmented reality and unmanned driving.

[0003] The following methods for obtaining the pose of an object exist in the related art: (1) First, the two-dimensional key points of the target object are detected in the image to be processed, and then the projection points of multiple three-dimensional model points corresponding to the three-dimensional model of the target object in the image to be processed are determined. Finally, the pose parameters of the target object can be obtained based on the minimum reprojection error between the multiple projection points and the corresponding two-dimensional key points; (2) The pose parameters and confidence of the object are regressed using a neural network model. However, when the pose parameters are obtained using the above method (1), there is a problem that the reprojection error is very small, but the pose parameters do not match the actual pose; and there is an error in the confidence obtained using the above method (2). Therefore, neither of the above two methods can accurately evaluate the pose parameters. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a posture evaluation method, a posture determination method, a corresponding device and an electronic device for calculating the confidence of the estimated posture, so as to evaluate the estimated posture according to the obtained confidence and determine a more accurate target posture.

[0005] In the first aspect, an embodiment of the present application provides a method for posture estimation, which includes: obtaining an image to be processed; the image to be processed includes an image of a target object; according to the image to be processed, obtaining a target model corresponding to the target object and an estimated posture corresponding to the target object at the time of shooting the image to be processed; determining the convex hull of the projection points of the target model on the image to be processed under the estimated posture; based on the convex hull of the projection points and the image of the target object, calculating the confidence of the estimated posture, so as to evaluate the estimated posture according to the confidence. In this way, the confidence of the estimated posture can be calculated, so that the estimated posture can be evaluated more accurately.

[0006] Optionally, the confidence of the estimated pose is calculated based on the convex hull of the projection points and the image of the target object, including: determining the contour polygon of the target object in the image to be processed; the contour polygon represents the polygon composed of the contour lines of the target object; calculating the degree of fit between the contour polygon and the convex hull, and determining the degree of fit as the confidence. Here, an implementation method for calculating the confidence is provided, and the calculated confidence can more accurately evaluate the estimated pose.

[0007] Optionally, the confidence of the estimated posture is calculated based on the convex hull of the projection point and the image of the target object, including: determining a first degree of fit between the convex hull of the projection point and the minimum circumscribed rectangle of the target object; and determining a second degree of fit between the minimum circumscribed rectangle of the convex hull corresponding to the convex hull of the projection point and the minimum circumscribed rectangle of the object; and calculating the confidence based on the first degree of fit and the second degree of fit. In this way, the confidence of the estimated posture can be calculated based on the determined first degree of fit and the second degree of fit, and a more accurate confidence can be obtained on the basis of effectively saving cost investment.

[0008] Optionally, the determining of the first degree of fit between the convex hull of the projection point and the minimum circumscribed rectangle of the object corresponding to the target object includes: determining the first intersection between the convex hull of the projection point and the minimum circumscribed rectangle of the object; using the first area ratio between the first intersection and the convex hull of the projection point to characterize the first degree of fit; and the determining of the second degree of fit between the minimum circumscribed rectangle of the convex hull corresponding to the convex hull of the projection point and the minimum circumscribed rectangle of the object includes: determining the second intersection between the minimum circumscribed rectangle of the convex hull and the minimum circumscribed rectangle of the object; determining the union between the minimum circumscribed rectangle of the convex hull and the minimum circumscribed rectangle of the object; using the second area ratio between the second intersection and the union to characterize the second degree of fit; and the determining of the confidence based on the first degree of fit and the second degree of fit includes: calculating the confidence based on the first area ratio and the second area ratio. Here, an implementation method for calculating the confidence based on the first degree of fit and the second degree of fit is provided.

[0009] Optionally, calculating the confidence level based on the first area ratio and the second area ratio includes: multiplying the first area ratio and the second area ratio to calculate the confidence level to obtain a specific numerical value of the confidence level.

[0010] Optionally, the minimum bounding rectangle of the object is obtained online by detecting the image to be processed using a target detection algorithm, or obtained offline by marking the target object. In this way, in a specific application, the minimum bounding rectangle of the object can be obtained according to actual conditions.

[0011] In a second aspect, an embodiment of the present application provides a method for determining a posture, the method comprising: obtaining a confidence level of an estimated posture; the confidence level is calculated by a posture evaluation method as described in the first aspect; when it is detected that the confidence level meets an evaluation condition, determining the estimated posture as a target posture of the target object.

[0012] Optionally, when it is detected that the confidence meets the evaluation condition, determining the estimated posture as the target posture of the target object includes: when it is detected that the value corresponding to the confidence is greater than a confidence threshold, determining the estimated posture as the target posture of the target object. Here, an implementation method for determining the estimated posture as the target posture is provided.

[0013] In a third aspect, an embodiment of the present application provides a posture evaluation device, which includes: a first acquisition module, used to acquire an image to be processed; the image to be processed includes an image of a target object; a second acquisition module, used to acquire, based on the image to be processed, a target model corresponding to the target object, and an estimated posture corresponding to the target object at the time of shooting the image to be processed; a first determination module, used to determine the convex hull of the projection points of the target model projected on the image to be processed under the estimated posture; a calculation module, used to calculate the confidence of the estimated posture based on the convex hull of the projection points and the image of the target object, so as to evaluate the estimated posture according to the confidence.

[0014] In a fourth aspect, an embodiment of the present application provides a posture determination device, which includes: a third acquisition module, used to obtain the confidence of the estimated posture; the confidence is obtained by the posture evaluation device as described in the third aspect; a second determination module, used to determine the estimated posture as the target posture of the target object when it is detected that the confidence meets the evaluation conditions.

[0015] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps in the method provided in the first aspect are executed.

[0016] In a sixth aspect, an embodiment of the present application provides a readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in the method provided in the first aspect are performed.

[0017] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the embodiments of the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0019] Figure 1 A flowchart of a posture evaluation method provided in an embodiment of the present application;

[0020] Figure 2 A schematic diagram of an application scenario involved in an embodiment of the present application;

[0021] Figure 3 A flowchart of another posture evaluation method provided in an embodiment of the present application;

[0022] Figure 4 A flowchart of a method for determining a posture provided in an embodiment of the present application;

[0023] Figure 5 A structural block diagram of a posture evaluation device provided in an embodiment of the present application;

[0024] Figure 6 A structural block diagram of a posture determination device provided in an embodiment of the present application;

[0025] Figure 7 A schematic diagram of the structure of an electronic device for executing a posture evaluation method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present application.

[0027] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0028] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0029] In recent years, research on computer vision, deep learning, machine learning, image processing, image recognition and other technologies based on artificial intelligence has made important progress. Artificial Intelligence (AI) is an emerging science and technology that studies and develops theories, methods, technologies and application systems for simulating and extending human intelligence. Artificial intelligence is a comprehensive discipline involving many types of technologies such as chips, big data, cloud computing, the Internet of Things, distributed storage, deep learning, machine learning, neural networks, etc. Computer vision, as an important branch of artificial intelligence, specifically allows machines to recognize the world. Computer vision technology usually includes face recognition, liveness detection, fingerprint recognition and anti-counterfeiting verification, biometric recognition, face detection, pedestrian detection, target detection, pedestrian recognition, image processing, image recognition, image semantic understanding, image retrieval, text recognition, video processing, video content recognition, behavior recognition, 3D reconstruction, virtual reality, augmented reality, simultaneous localization and mapping (SLAM), computational photography, robot navigation and positioning and other technologies. With the research and advancement of artificial intelligence technology, this technology has been applied in many fields, such as security, urban management, traffic management, building management, park management, facial access, facial attendance, logistics management, warehouse management, robots, intelligent marketing, computational photography, mobile phone imaging, cloud services, smart homes, wearable devices, unmanned driving, automatic driving, smart medical care, facial payment, facial unlocking, fingerprint unlocking, identity verification, smart screens, smart TVs, cameras, mobile Internet, live streaming, beauty, makeup, medical beauty, and smart temperature measurement.

[0030] In the related art, there is a problem that it is not possible to accurately evaluate whether the estimated posture parameters are credible; in order to solve this problem, the present application provides a posture evaluation method; further, the posture evaluation method determines the convex hull of the projection points of the target model of the target object on the image to be processed, and uses the convex hull and the image of the target object to calculate the confidence of the estimated posture, so that the confidence can be used to evaluate whether the estimated posture is credible. In this way, the convex hull of the projection point is obtained by projecting the target model on the image to be processed under the estimated posture. If the estimated posture is the same as the actual posture of the target object at the time when the image to be processed is taken, the convex hull of the projection point should coincide with the image edge of the target object. Therefore, the confidence obtained by the present application can be used to evaluate the estimated posture more accurately, thereby solving the above problem. In practice, the above posture evaluation method can be applied to the corresponding posture estimation process such as vehicles and drones to evaluate the estimated posture. Exemplarily, the posture evaluation method is described in the embodiment of the present application by taking the posture estimation process applied to the vehicle as an example. That is, the above target object may include a target vehicle.

[0031] The defects existing in the solutions in the above-mentioned related technologies are the results obtained by the inventor after practice and careful research. Therefore, the discovery process of the above-mentioned problems and the solutions proposed in the embodiments of the present invention below for the above-mentioned problems should all be the contributions made by the inventor to the present invention during the process of the present invention.

[0032] Please refer to Figure 1 , which shows a flow chart of a posture evaluation method provided in an embodiment of the present application. Figure 1 As shown, the posture evaluation method may include the following steps 101 to 104.

[0033] Step 101, obtaining an image to be processed; the image to be processed includes an image of a target object;

[0034] The target objects mentioned above may include, for example, a target truck, a target van, a target car, etc.

[0035] In some application scenarios, the image to be processed may be obtained by, for example, photographing with a camera or capturing a target image in a target video, etc. The image to be processed may include an image of the target object or images of other objects.

[0036] Step 102, acquiring, according to the image to be processed, a target model corresponding to the target object and an estimated position and posture of the target object corresponding to the shooting time of the image to be processed;

[0037] After obtaining the image to be processed, the target model corresponding to the target object can be further obtained. In some application scenarios, the above-mentioned target model can be obtained by, for example, identifying the target vehicle of the image to be processed and matching it in the preset model library. The above-mentioned preset model library can, for example, include vehicle models corresponding to vans, cars, trucks, etc., and the vehicle parameters of these vehicle models can, for example, be obtained from manufacturers or market experience. For example, the vehicle parameters of a truck can include a height of 2.5 meters, a length of 9 meters, a width of 2.3 meters, and the relative position relationship between key points on the truck such as the logo, license plate, and rearview mirror. In these application scenarios, the target model corresponding to the target vehicle can be obtained by identifying the target vehicle in the image to be processed, and then the length, width, height of the target vehicle and the relative position relationship between each model point can be determined through the target model.

[0038] In some application scenarios, the estimated pose corresponding to the target object at the time of shooting the image to be processed can be further obtained. The above-mentioned estimated pose can be represented by the pose parameters of the target object in the actual application scenario. The pose parameters here can be represented by the coordinate information (x, y, z) of the target object in the world coordinate system, for example. Furthermore, the above-mentioned coordinate parameters "x", "y", and "z" can be any corresponding values ​​in the world coordinate system, where "x" can represent the horizontal axis coordinate information, "y" can represent the vertical axis coordinate information, and "z" can represent the vertical axis coordinate information. In these application scenarios, the estimated pose can be obtained, for example, by a pixel-wise voting network (PVNet for short).

[0039] Step 103, determining a convex hull target model of the projection points of the target model projected on the image to be processed at the estimated pose;

[0040] After determining the target model corresponding to the target object, it is possible to determine multiple projection points where multiple model points on the target model are projected onto the image to be processed under the estimated posture. In some application scenarios, for example, multiple model points constituting the contour of the target model can be selected, and the selected multiple model points can be projected onto the image to be processed to obtain corresponding multiple projection points. In other application scenarios, as many model points as possible can be selected to facilitate determining a more accurate convex hull of the projection points. In other application scenarios, it is also possible to select model points corresponding to multiple two-dimensional key points detected in the image to be processed for projection. The two-dimensional key points here can be used to characterize the position of the target object in the actual application scenario.

[0041] In some application scenarios, after multiple model points are determined, the projection points of these model points in the image to be processed can be determined based on a projection formula. The projection formula here can include, for example: Where λ is the scale factor, is the camera’s intrinsic parameter matrix, is the camera's external parameter matrix, X, Y, Z are the coordinate parameters of the model point, u, v are the pixel coordinate parameters of the projection point, u 0 、v 0 is the center of the image plane. In these application scenarios, the scale factor, the intrinsic parameters of the camera, and the extrinsic parameters can be regarded as known quantities, which can be obtained using existing technologies and will not be described here.

[0042] After obtaining multiple projection points, the convex hull of the projection points can be determined. That is, based on multiple projection points, it is determined that the convex polygon formed by connecting the outermost projection points can be regarded as the convex hull of the projection points. For example, Figure 2 In the schematic diagram of the vehicle application scenario shown, if multiple projection points 1 are obtained, the convex hull 2 ​​of the corresponding projection points can be determined.

[0043] Step 104: Calculate the confidence of the estimated pose based on the convex hull of the projection points and the image of the target object, so as to evaluate the estimated pose according to the confidence.

[0044] In some application scenarios, after the convex hull of the projection point is determined, the confidence of the estimated pose can be calculated based on the convex hull of the projection point and the image of the target object.

[0045] The above confidence level can be regarded as the credibility of being able to regard the estimated posture as the actual posture of the target object at the moment when the image to be processed is captured.

[0046] The image of the target object can be regarded as an image presented by the image area occupied by the target object in the image to be processed. For example, the image to be processed includes a road surface and a target vehicle A. In this case, the image area occupied by the target vehicle A can be regarded as the image of the target object.

[0047] Through the above steps 101 to 104, the confidence of the estimated posture can be calculated, so that the estimated posture can be evaluated more accurately.

[0048] In some optional implementations, step 104 may include: determining a contour polygon of the target object in the image to be processed; the contour polygon represents a polygon composed of contour lines of the target object; calculating a degree of fit between the contour polygon and the convex hull, and determining the degree of fit as the confidence level.

[0049] In the related art, if the estimated pose is the same as the actual pose, the convex hull of the projected points and the polygon formed by the contour of the target object should overlap. Therefore, the estimated pose can be evaluated by the degree of fit between the convex hull of the projected points and the contour polygon of the target object.

[0050] In some application scenarios, the degree of fit between the contour polygon and the convex hull can be determined, for example, by determining the straight-line distance between a projection point on the convex hull of the projection point and a corresponding contour point on the contour line.

[0051] In these application scenarios, the contour line can be obtained based on manual annotation, and the confidence can be calculated offline when the convex hull of the projected points is determined. In other application scenarios, the contour line can also be detected online by edge detection algorithms. Therefore, the confidence can also be calculated online.

[0052] In some application scenarios, since the projection points on the convex hull have been determined, the confidence of the estimated pose can be determined by, for example, comparing the projection points with the corresponding two-dimensional key points one by one.

[0053] For some optional implementations, see Figure 3 , which shows a flow chart of another posture evaluation method provided by an embodiment of the present application. Figure 3 As shown, the posture evaluation method may include the following steps 301 to 305.

[0054] Step 301, obtaining an image to be processed; the image to be processed includes an image of a target object;

[0055] The implementation process of step 301 and the technical effect obtained can be compared with Figure 1 Step 101 of the illustrated embodiment is the same or similar and will not be described in detail here.

[0056] Step 302: acquiring, according to the image to be processed, a target model corresponding to the target object and an estimated position and posture of the target object at the time of shooting the image to be processed.

[0057] The implementation process of step 302 and the technical effect obtained can be compared with Figure 1 Step 102 of the illustrated embodiment is the same or similar and will not be described in detail here.

[0058] Step 303, determining the convex hull of the projection points of the target model projected on the image to be processed in the estimated pose;

[0059] The implementation process of step 303 and the technical effect obtained can be compared with Figure 1Step 103 of the illustrated embodiment is the same or similar and will not be described in detail here.

[0060] Step 304, determining a first degree of fit between the convex hull of the projection point and the minimum circumscribed rectangle of the object corresponding to the target object; and determining a second degree of fit between the minimum circumscribed rectangle of the convex hull corresponding to the convex hull of the projection point and the minimum circumscribed rectangle of the object;

[0061] In some application scenarios, the minimum bounding rectangle of the object is obtained online by detecting the image to be processed using a target detection algorithm; or is obtained offline by annotating the target object.

[0062] That is, the minimum bounding rectangle of the object can be detected by a target detection algorithm (eg, a recurrent neural network "RNN"). In other application scenarios, the minimum bounding rectangle of the object can also be obtained by manually marking the target object.

[0063] As mentioned above, if the estimated pose is the same as the actual pose, the convex hull of the projected point and the contour polygon of the target object should coincide. The contour polygon of the target object must be contained in the minimum circumscribed rectangle of the object. Therefore, the confidence can also be calculated based on the first degree of fit between the convex hull of the projected point and the minimum circumscribed rectangle of the object.

[0064] Furthermore, in the related art, the cost of marking the contour polygon of the target object is high, and it also takes a lot of time to detect the contour polygon. Therefore, in order to save costs, the confidence level can also be calculated using the first degree of fit between the convex hull of the projection point and the minimum circumscribed rectangle of the target object.

[0065] In some application scenarios, if only the first degree of fit is used to evaluate the estimated pose, there may be a problem that the convex hull of the projection point is too small. Therefore, in order to further evaluate the accuracy of the estimated pose, the second degree of fit may be further determined. Here, the reason for the small convex hull of the projection point may include, for example, that the distance between the camera position and the target object is far when acquiring the image to be processed.

[0066] In these application scenarios, the convex hull of the projected point must also be contained in the minimum circumscribed rectangle of the convex hull. Therefore, the minimum circumscribed rectangle of the convex hull can be obtained based on the convex hull of the projected point, so that the estimated pose can be evaluated using the second degree of fit between the minimum circumscribed rectangle of the convex hull and the minimum circumscribed rectangle of the object. For example, Figure 2In the schematic diagram of the vehicle application scenario shown, after obtaining the convex hull 2 ​​of the projection point, the convex hull minimum circumscribed rectangle 3 corresponding to the convex hull 2 ​​of the projection point can be obtained. And the vehicle minimum circumscribed rectangle 4 corresponding to the vehicle can be detected. Therefore, the above-mentioned first fit degree can, for example, include the fit degree between the convex hull 2 ​​of the projection point and the vehicle minimum circumscribed rectangle 4; the above-mentioned second fit degree can, for example, include the fit degree between the convex hull minimum circumscribed rectangle 3 and the vehicle minimum circumscribed rectangle 4.

[0067] Step 305: Calculate the confidence level based on the first fit level and the second fit level.

[0068] After the first fit degree and the second fit degree are determined, the estimated pose may be evaluated based on the first fit degree and the second fit degree.

[0069] In some application scenarios, for example, different weights may be assigned to the first fit degree and the second fit degree, and then the confidence is calculated based on the respective corresponding weights. For example, a weight coefficient of 0.6 may be assigned to the first fit degree, and a weight coefficient of 0.4 may be assigned to the second fit degree. After the first fit degree and the second fit degree are determined, they may be respectively calculated with the corresponding weight coefficients to obtain a comprehensive fit degree, where the comprehensive fit degree may be regarded as the confidence calculated based on the first fit degree and the second fit degree.

[0070] Through the above steps 301 to 305, the confidence of the estimated posture can be calculated based on the determined first fit degree and second fit degree, and a relatively accurate confidence of the estimated posture can be obtained on the basis of effectively saving cost investment.

[0071] In some optional implementations, the above step 304 may include the following sub-steps:

[0072] Sub-step 3041, determining a first intersection portion between the convex hull of the projection point and the minimum circumscribed rectangle of the object;

[0073] In some application scenarios, when determining the first degree of fit, the first intersection between the convex hull of the projection point and the minimum circumscribed rectangle of the object may be determined first. Figure 2 In the schematic diagram of the vehicle application scenario shown, the image portion occupied by the convex hull 2 ​​of the projection point can be regarded as the first intersection portion mentioned above. Here, in other vehicle application scenarios, the area of ​​the convex hull 2 ​​of the projection point can be larger than the area of ​​the vehicle's minimum circumscribed rectangle 4. In this case, the image portion occupied by the vehicle's minimum circumscribed rectangle 4 can be regarded as the first intersection portion mentioned above.

[0074] Sub-step 3042, using a first area ratio between the first intersection portion and the convex hull of the projection point to characterize the first degree of fit;

[0075] After the first intersection portion is determined, a first area ratio between the first intersection portion and the convex hull of the projection point can be determined, so as to characterize the first degree of fit using the first area ratio. In some application scenarios, the determined first intersection portion can be regarded as a contour portion corresponding to the target object in the image to be processed. Then, the first degree of fit can be characterized by the first area ratio between the first intersection portion and the convex hull of the projection point.

[0076] In some optional implementations, for example, the first area ratio may be determined based on the following formula: Among them, I OA represents the first area ratio, C P represents the area of ​​the convex hull of the projection point, C P ∩D represents the area of ​​the first intersection portion. In this way, the first area ratio can be calculated using the above formula to quantify the first fit degree and facilitate subsequent evaluation of the estimated posture.

[0077] Sub-step 3043, determining a second intersection portion between the minimum circumscribed rectangle of the convex hull and the minimum circumscribed rectangle of the object;

[0078] In some application scenarios, when determining the second degree of fit, the second intersection between the minimum circumscribed rectangle of the convex hull and the minimum circumscribed rectangle of the object may be determined first. Figure 2 In the schematic diagram of the vehicle application scenario shown, the image portion occupied by the convex hull minimum circumscribed rectangle 3 can be regarded as the second intersection portion mentioned above. Here, in other vehicle application scenarios, the area of ​​the convex hull minimum circumscribed rectangle 3 can be larger than the area of ​​the vehicle minimum circumscribed rectangle 4. In this case, the image portion occupied by the vehicle minimum circumscribed rectangle 4 can be regarded as the second intersection portion mentioned above.

[0079] Sub-step 3044, determining the union of the minimum circumscribed rectangle of the convex hull and the minimum circumscribed rectangle of the object;

[0080] After the second intersection part is determined, the union part between the minimum bounding rectangle of the convex hull and the minimum bounding rectangle of the object can be further determined. Figure 2 In the schematic diagram of the vehicle application scenario shown, the image portion occupied by the vehicle minimum circumscribed rectangle 4 can be regarded as the above-mentioned union portion. Here, in other vehicle application scenarios, the area of ​​the vehicle minimum circumscribed rectangle 4 can be smaller than the area of ​​the convex hull minimum circumscribed rectangle 3. In this case, the image portion occupied by the convex hull minimum circumscribed rectangle 3 can be regarded as the above-mentioned union portion.

[0081] Sub-step 3045, using a second area ratio between the second intersection portion and the union portion to characterize the second degree of fit;

[0082] In some application scenarios, after obtaining the second intersection part and the union part, the areas of the two can be divided to obtain the above-mentioned second area ratio. In these application scenarios, in order to avoid the situation where the confidence is inaccurate due to, for example, the convex hull of the projection point is too small as a whole, after determining the second intersection part and the union part, the second fit degree can be characterized based on the second area ratio between the two to determine whether the minimum circumscribed rectangle of the convex hull fits the minimum circumscribed rectangle of the object.

[0083] In some optional implementations, the second area ratio may be determined based on the following formula: OU =(B P ∩D) / (B P ∪D), where I OU Characterize the second area ratio, B P ∩D represents the area of ​​the second intersection, B P ∪D represents the area of ​​the union part. In this way, the second area ratio can be calculated using the above formula to quantify the second fit degree and facilitate the subsequent calculation of the confidence level.

[0084] In this way, the above step 305 may include sub-step 3051: calculating the confidence level based on the first area ratio and the second area ratio.

[0085] After determining the first area ratio and the second area ratio, a confidence level can be calculated based on the first area ratio and the second area ratio. In some application scenarios, the first area ratio and the second area ratio can be multiplied to obtain a probability that the estimated posture is the actual posture. The probability can be regarded as the above confidence level.

[0086] In some optional implementations, the sub-step 3051 may include: multiplying the first area ratio by the second area ratio to calculate the confidence level. For example, the confidence level may be calculated based on the following formula: S=I OA *I OU ; Wherein, S represents the confidence level.

[0087] That is to say, after obtaining the first area ratio and the second area ratio, the two can be multiplied, and then the above confidence can be determined by the first fit degree and the second fit degree represented by the two respectively. In this way, when the estimated posture is evaluated using the confidence, the estimated posture that meets the evaluation conditions can be closer to the actual posture.

[0088] Please refer to Figure 4 , which shows a flow chart of a method for determining a posture provided by an embodiment of the present application. Figure 4 As shown, the posture determination method may include the following steps 401 to 402.

[0089] Step 401, obtaining the confidence of the estimated posture; the confidence can be calculated by, for example, the posture evaluation method described in any of the above implementations, which will not be described in detail here;

[0090] Step 402: When it is detected that the confidence meets an evaluation condition, the estimated posture is determined as the target posture of the target object.

[0091] In some application scenarios, after obtaining the confidence of the estimated pose, it is possible to detect whether the confidence meets the evaluation conditions. The evaluation conditions here may include, for example, that the straight-line distance between multiple target projection points on the convex hull constituting the projection point and the two-dimensional key points corresponding to each target projection point is within 0.1 cm, 0.2 cm, etc. The two-dimensional key point here may be a key point corresponding to the model point corresponding to the target projection point detected in the image to be processed.

[0092] Furthermore, when it is detected that the confidence meets the evaluation condition, it can be considered that the current corresponding estimated posture is relatively close to the actual posture, and then the estimated posture can be determined as the target posture of the target object.

[0093] In some optional implementations, the above step 402 may include: when it is detected that the value corresponding to the confidence is greater than a confidence threshold, determining the estimated posture as the target posture of the target object.

[0094] After the confidence is determined, it can be determined whether the value corresponding to the confidence is greater than the evaluation threshold, and when it is detected that the value corresponding to the confidence is greater than the evaluation threshold, the estimated posture can be determined as the target posture. The above evaluation threshold can include empirical values ​​or test values ​​such as 0.85, 0.9, etc. that can substantially characterize that the estimated posture is relatively close to the actual posture, so as to ensure that the estimated posture that meets the evaluation conditions is relatively close to the actual posture.

[0095] In this embodiment, when it is determined that the confidence is greater than the evaluation threshold, it can be determined that the estimated posture is close to the actual posture. Therefore, the estimated posture can be determined as the target posture of the target object. The evaluation process is more rational and the credibility of the evaluation result is high.

[0096] Please refer to Figure 5 , which shows a structural block diagram of a posture evaluation device provided in an embodiment of the present application, and the posture evaluation device can be a module, program segment or code on an electronic device. It should be understood that the device is similar to the above Figure 1 The method embodiment corresponds to and can be executed Figure 1 The various steps involved in the method embodiment and the specific functions of the device can be found in the above description. To avoid repetition, the detailed description is appropriately omitted here.

[0097] Optionally, the above-mentioned posture determination device includes a first acquisition module 501, a second acquisition module 502, a first determination module 503 and a calculation module 504. The first acquisition module 501 is used to acquire the image to be processed; the image to be processed includes an image of the target object; the second acquisition module 502 is used to acquire the target model corresponding to the target object and the estimated posture corresponding to the target object at the shooting time of the image to be processed according to the image to be processed; the first determination module 503 is used to determine the convex hull of the projection points of the target model projected on the image to be processed under the estimated posture; the calculation module 504 is used to calculate the confidence of the estimated posture based on the convex hull of the projection points and the image of the target object, so as to evaluate the estimated posture according to the confidence.

[0098] Optionally, the calculation module 504 is further used to: determine the contour polygon of the target object in the image to be processed; the contour polygon represents a polygon composed of the contour lines of the target object; calculate the degree of fit between the contour polygon and the convex hull, and determine the degree of fit as the confidence level.

[0099] Optionally, the calculation module 504 is further used to: determine a first degree of fit between the convex hull of the projection point and the minimum circumscribed rectangle of the object corresponding to the target object; and determine a second degree of fit between the minimum circumscribed rectangle of the convex hull corresponding to the convex hull of the projection point and the minimum circumscribed rectangle of the object; and calculate the confidence level based on the first degree of fit and the second degree of fit.

[0100] Optionally, the calculation module 504 is further used to: determine the first intersection part between the convex hull of the projection point and the minimum circumscribed rectangle of the object; use the first area ratio between the first intersection part and the convex hull of the projection point to characterize the first degree of fit; and determine the second degree of fit between the minimum circumscribed rectangle of the convex hull corresponding to the convex hull of the projection point and the minimum circumscribed rectangle of the object, including: determining the second intersection part between the minimum circumscribed rectangle of the convex hull and the minimum circumscribed rectangle of the object; determining the union part between the minimum circumscribed rectangle of the convex hull and the minimum circumscribed rectangle of the object; using the second area ratio between the second intersection part and the union part to characterize the second degree of fit; and determining the confidence level based on the first degree of fit and the second degree of fit, including: calculating the confidence level based on the first area ratio and the second area ratio.

[0101] Optionally, the calculation module 504 is further used to: multiply the first area ratio and the second area ratio to calculate the confidence level.

[0102] Optionally, the minimum circumscribed rectangle of the object is obtained online by detecting the image to be processed using a target detection algorithm; or is obtained offline by labeling the target object.

[0103] It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0104] Please refer to Figure 6 , which shows a structural block diagram of a posture determination device provided in an embodiment of the present application, and the posture determination device can be a module, program segment or code on an electronic device. It should be understood that the device is similar to the above Figure 4 The method embodiment corresponds to and can be executed Figure 4 The various steps involved in the method embodiment and the specific functions of the device can be found in the above description. To avoid repetition, the detailed description is appropriately omitted here.

[0105] Optionally, the above-mentioned posture determination device includes a third acquisition module 601 and a second determination module 602; wherein the third acquisition module 601 is used to obtain the confidence of the estimated posture; the confidence can be obtained by Figure 6 The posture evaluation device obtains; a second determination module 602, which is used to determine the estimated posture as the target posture of the target object when it is detected that the confidence meets the evaluation conditions.

[0106] Optionally, the second determination module 602 is further used to: when it is detected that the value corresponding to the confidence is greater than a confidence threshold, determine the estimated posture as the target posture of the target object.

[0107] It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0108] Please refer to Figure 7 , Figure 7A schematic diagram of the structure of an electronic device for executing a posture evaluation method provided in an embodiment of the present application, the electronic device may include: at least one processor 701, such as a CPU, at least one communication interface 702, at least one memory 703 and at least one communication bus 704. Among them, the communication bus 704 is used to realize direct connection and communication between these components. Among them, the communication interface 702 of the device in the embodiment of the present application is used to communicate signaling or data with other node devices. The memory 703 can be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 703 can optionally be at least one storage device located away from the aforementioned processor. Computer-readable instructions are stored in the memory 703. When the computer-readable instructions are executed by the processor 701, the electronic device can, for example, execute the above-mentioned Figure 1 The method process is shown.

[0109] Understandably, Figure 7 The structure shown is for illustration only, and the electronic device may also include Figure 7 More or fewer components as shown, or with Figure 7 Different configurations shown. Figure 7 Each component shown in the figure can be implemented by hardware, software or a combination thereof.

[0110] The present application provides a readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the following can be performed: Figure 1 The method process in the method embodiment shown is executed by the electronic device.

[0111] The present embodiment discloses a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the methods provided by the above-mentioned method embodiments. For example, the method may include: acquiring an image to be processed; the image to be processed includes an image of a target object; based on the image to be processed, acquiring a target model corresponding to the target object, and an estimated pose corresponding to the target object at the time of shooting the image to be processed; determining the convex hull of the projection points of the target model on the image to be processed under the estimated pose; and calculating the confidence of the estimated pose based on the convex hull of the projection points and the image of the target object, so as to evaluate the estimated pose according to the confidence.

[0112] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0113] In addition, the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0114] Furthermore, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0115] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.

[0116] The above description is only an embodiment of the present application and is not intended to limit the protection scope of the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A posture evaluation method, characterized in that: include: Acquire an image to be processed; the image to be processed includes an image of a target object; According to the image to be processed, acquiring a target model corresponding to the target object and an estimated position and posture of the target object corresponding to the shooting time of the image to be processed; Determine the convex hull of the projection points of the target model projected on the image to be processed at the estimated pose; Based on the convex hull of the projection points and the image of the target object, a confidence level of the estimated pose is calculated to evaluate the estimated pose according to the confidence level.

2. The method according to claim 1, characterized in that The calculating the confidence of the estimated pose based on the convex hull of the projection points and the image of the target object comprises: In the image to be processed, a contour polygon of the target object is determined; the contour polygon represents a polygon composed of contour lines of the target object; The degree of fit between the contour polygon and the convex hull is calculated, and the degree of fit is determined as the confidence level.

3. The method according to claim 1, characterized in that The calculating the confidence of the estimated pose based on the convex hull of the projection points and the image of the target object comprises: Determining a first degree of fit between the convex hull of the projection point and the minimum circumscribed rectangle of the object corresponding to the target object; and Determine a second degree of fit between the minimum circumscribed rectangle of the convex hull corresponding to the convex hull of the projection point and the minimum circumscribed rectangle of the object; The confidence level is calculated based on the first degree of fit and the second degree of fit.

4. The method according to claim 3, characterized in that Determining a first degree of fit between the convex hull of the projection point and the minimum circumscribed rectangle of the object corresponding to the target object includes: Determine a first intersection portion between the convex hull of the projection point and the minimum circumscribed rectangle of the object; using a first area ratio between the first intersection portion and the convex hull of the projection point to characterize the first fitting degree; and The determining a second degree of fit between the minimum circumscribed rectangle of the convex hull corresponding to the convex hull of the projection point and the minimum circumscribed rectangle of the object includes: Determine a second intersection portion between the minimum circumscribed rectangle of the convex hull and the minimum circumscribed rectangle of the object; Determine the union of the minimum circumscribed rectangle of the convex hull and the minimum circumscribed rectangle of the object; using a second area ratio between the second intersection portion and the union portion to characterize the second degree of fit; and The determining the confidence level based on the first fit degree and the second fit degree includes: The confidence level is calculated based on the first area ratio and the second area ratio.

5. The method according to claim 4, characterized in that Calculating the confidence level based on the first area ratio and the second area ratio includes: The confidence level is calculated by multiplying the first area ratio and the second area ratio.

6. The method according to any one of claims 3 to 5, characterized in that: The object minimum circumscribed rectangle is obtained online by detecting the image to be processed using a target detection algorithm; or is obtained offline by marking the target object.

7. A method for determining a posture, characterized in that: include: Obtaining a confidence level of the estimated posture; the confidence level is calculated by the posture evaluation method as described in any one of claims 1 to 6; When it is detected that the confidence meets an evaluation condition, the estimated pose is determined as a target pose of the target object.

8. The method according to claim 7, characterized in that When it is detected that the confidence level satisfies an evaluation condition, determining the estimated posture as the target posture of the target object comprises: When it is detected that the value corresponding to the confidence is greater than a confidence threshold, the estimated posture is determined as the target posture of the target object.

9. A posture evaluation device, characterized in that: include: A first acquisition module is used to acquire an image to be processed; the image to be processed includes an image of a target object; A second acquisition module is used to acquire, according to the image to be processed, a target model corresponding to the target object and an estimated position and posture of the target object corresponding to the shooting moment of the image to be processed; A first determination module is used to determine the convex hull of the projection points of the target model projected on the image to be processed at the estimated position and posture; A calculation module is used to calculate the confidence of the estimated pose based on the convex hull of the projection points and the image of the target object, so as to evaluate the estimated pose according to the confidence.

10. A posture determination device, characterized in that: include: The third acquisition module is used to obtain the confidence of the estimated pose; The confidence level is obtained by the posture evaluation device according to claim 9; The second determination module is used to determine the estimated posture as the target posture of the target object when it is detected that the confidence meets the evaluation condition.

11. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the method according to any one of claims 1 to 6 or 7 to 8 is executed.

12. A readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1-6 or 7-8 is performed.