Projection area measurement method and device, electronic equipment and storage medium

By generating and segmenting the projected image, and adjusting the projected area based on error information, the problem of complex and inaccurate projected area calculation in existing technologies is solved, achieving efficient and accurate projected area measurement.

CN119131118BActive Publication Date: 2025-10-24CHINA AUTOMOTIVE INNOVATION CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411285934.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-13
Publication Date
2025-10-24
Estimated Expiration
2044-09-13

AI Technical Summary

Technical Problem

Existing technologies for calculating the projected area of ​​3D models are complex and inaccurate. Statistical methods are resource-intensive and computationally inefficient, while analytical methods are difficult to accurately segment in complex cases of polygon intersections.

Method used

By generating a projected image based on the target object and the target projection direction, determining the bounding box and performing segmentation processing, calculating the area of ​​the projected image and the area of ​​the blank segmented region, and combining measurement error information, the projected area is adjusted in real time to meet the adjustable target conditions.

Benefits of technology

It improves the flexibility and accuracy of projected area calculation, reduces computational complexity, and achieves improvements in accuracy and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119131118B_ABST
    Figure CN119131118B_ABST
Patent Text Reader

Abstract

The application relates to a projection area measurement method and device, electronic equipment and a storage medium. The method can comprise the following steps: obtaining a projection image corresponding to a target object based on the target object and a target projection direction of the target object; determining a bounding box corresponding to the projection image; performing segmentation processing on the bounding box to obtain a plurality of image segmentation regions; determining a first projection image area and a first blank segmentation image area based on the plurality of projection image regions and the plurality of image segmentation regions; determining first measurement error information of the first projection image area according to the first projection image area, a bounding box area of the bounding box and the first blank segmentation image area; and determining the first projection image area as a projection area corresponding to the projection image in the case that the first measurement error information meets an adjustable target condition. According to the technical scheme provided in the application, the reliability and accuracy of the projection area measurement can be improved, and the measurement efficiency of the projection area can also be improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer graphics, and particularly relates to a projection area measurement method and device, electronic equipment and a storage medium. BACKGROUND

[0002] At present, for the projection area calculation of a three-dimensional model, there are two cases of a statistical method and an analytical method. For the statistical method, mostly used are a ray tracing method, a ray projection method, a pixel method and a Monte Carlo method. These methods can only obtain and determine the calculation result of corresponding precision, thereby leading to a very complex calculation process and a large amount of resources consumed, which seriously affects the calculation efficiency.

[0003] For the analytical method, it depends on an accurate projection intersection point and an internal point identification mechanism. However, in the projection process, a complex situation of intersection of three or more polygons inevitably occurs, and the analytical method is difficult to accurately segment, thereby affecting the accuracy of the calculation result. SUMMARY

[0004] The present application provides a projection area measurement method and device, electronic equipment and a storage medium to at least solve the problem of how to conveniently and accurately determine the projection area in the related art. The technical solution of the present application is as follows:

[0005] According to a first aspect of an embodiment of the present application, a projection area measurement method is provided, comprising:

[0006] obtaining a projection image corresponding to a target object in a target projection direction of the target object based on the target object and the target projection direction of the target object; the projection image is composed of a plurality of projection image regions of triangles;

[0007] determining a bounding box corresponding to the projection image;

[0008] performing segmentation processing on the bounding box to obtain a plurality of image segmentation regions;

[0009] determining a first projection image area corresponding to the projection image and a first blank segmentation image area of a blank image segmentation region based on the plurality of projection image regions and the plurality of image segmentation regions; the blank image segmentation region is an image segmentation region not containing any projection image region;

[0010] determining first measurement error information of the first projection image area according to the first projection image area, a bounding box area of the bounding box and the first blank segmentation image area;

[0011] in a case where the first measurement error information meets an adjustable target condition, determining the first projection image area as a projection area corresponding to the projection image.

[0012] According to a second aspect of the embodiments of the present application, a projection area measurement device is provided, comprising:

[0013] a projection image determination module configured to determine a projection image corresponding to the target object in a target projection direction based on the target object and the target projection direction; the projection image is composed of a plurality of projection image regions of triangles;

[0014] a bounding box determination module configured to determine a bounding box corresponding to the projection image;

[0015] a bounding box segmentation module configured to perform segmentation processing on the bounding box to obtain a plurality of image segmentation regions;

[0016] a first projection image area determination module configured to determine a first projection image area corresponding to the projection image and a first blank segmentation image area of a blank image segmentation region based on the plurality of projection image regions and the plurality of image segmentation regions; the blank image segmentation region is an image segmentation region that does not contain any of the projection image regions;

[0017] a first measurement error information determination module configured to determine first measurement error information of the first projection image area according to the first projection image area, a bounding box area of the bounding box, and the first blank segmentation image area;

[0018] a target projection area determination module configured to determine the first projection image area as a projection area corresponding to the projection image in a case where the first measurement error information satisfies an adjustable target condition.

[0019] According to a third aspect of the embodiments of the present application, an electronic device is provided, comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the method of any one of the above first aspect.

[0020] According to a fourth aspect of the embodiments of the present application, a computer readable storage medium is provided, when instructions in the computer readable storage medium are executed by a processor of an electronic device, the electronic device can execute the method of any one of the first aspect of the embodiments of the present application.

[0021] According to a fifth aspect of the embodiments of the present application, a computer program product is provided, comprising computer instructions, when the computer instructions are executed by a processor, the computer executes the method of any one of the first aspect of the embodiments of the present application.

[0022] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, but not limiting the present application.

[0023] The technical solutions provided by the embodiments of the present application bring at least the following beneficial effects:

[0024] By the target object and the target projection direction of the target object, the projection image corresponding to the target object in the target projection direction is obtained, different projection images in different projection directions can be acquired, and the flexibility of the projection image acquisition is improved.

[0025] Further, the bounding box is segmented to obtain a plurality of image segmentation regions; and based on the plurality of projection image regions and the plurality of image segmentation regions, the first projection image area corresponding to the projection image and the first blank segmentation image area of the blank image segmentation region are determined, which can improve the calculation accuracy of the projection area.

[0026] Finally, the first measurement error information of the first projection image area is determined according to the first projection image area, the bounding box area of the bounding box, and the first blank segmentation image area, which can determine the error of the projection in real time; in the case that the first measurement error information meets the adjustable target condition, the first projection image area is determined as the projection area corresponding to the projection image, which can acquire the error of the projection area in real time, and the error accuracy can be adjusted according to the user demand, so that the measurement error can be effectively controlled, thereby improving the accuracy and efficiency of the projection area measurement.

[0027] Other features and aspects of the present application will become apparent from the following detailed description of exemplary embodiments with reference to the following drawings. BRIEF DESCRIPTION OF DRAWINGS

[0028] In order to more clearly illustrate the technical solutions and advantages of the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiment or prior art description. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without any creative effort.

[0029] Figure 1 FIG. 1 is a flowchart of a projection image measurement method according to an exemplary embodiment.

[0030] Figure 2 FIG. 2 is a schematic diagram of a projection image according to an exemplary embodiment.

[0031] Figure 3 FIG. 3 is a schematic diagram of a local coordinate system of a projection image region according to an exemplary embodiment.

[0032] Figure 4 FIG. 4 is a schematic diagram of a first image segmentation region according to an exemplary embodiment.

[0033] Figure 5 is a schematic diagram of a partial target projection image region according to an example embodiment.

[0034] Figure 6 is a schematic diagram of a partial second image segmentation region according to an example embodiment.

[0035] Figure 7 is a block diagram of a projection area measurement device according to an example embodiment.

[0036] Figure 8 is a block diagram of an electronic device for projection area measurement according to an example embodiment. Figure 1 .

[0037] Figure 9 is a block diagram of an electronic device for projection area measurement according to an example embodiment. Figure 2 . DETAILED DESCRIPTION

[0038] In order to make the ordinary person skilled in the art better understand the technical solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described in the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the specification, not all embodiments. Based on the embodiments in the specification, all other embodiments obtained by the person skilled in the art without creative labor are within the scope of the present application.

[0039] It should be noted that the terms "first", "second", and the like in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or server including a series of steps or units does not necessarily limit to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0040] Various exemplary embodiments, features and aspects of the present application will be described in detail below with reference to the accompanying drawings. The same reference numbers in the drawings represent functionally the same or similar elements. Although various aspects of the embodiments are shown in the drawings, the drawings are not necessarily drawn to scale unless specifically indicated.

[0041] The word "exemplary" is used herein to mean "serving as an example, instance, or illustration." Any implementation described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other implementations. The term "and / or" includes any and all combinations of one or more of the associated listed items. The term "at least one of' means one or more or any combination thereof.

[0042] In the absence of special instructions, the direction in this paper should be understood in the following way, the direction close to the user is front, and the direction away from the user is back.

[0043] In addition, in order to better illustrate the present application, a large number of specific details are given in the specific embodiments below. Those skilled in the art should understand that without certain specific details, the present application can also be implemented. In some examples, methods, means, elements and circuits familiar to those skilled in the art are not described in detail, in order to highlight the main idea of the present application. It should be noted that the following figures show a possible sequence of steps, which actually do not limit the strict order of this sequence. Some steps can be performed in parallel without mutual dependence. The user information (including but not limited to user equipment information, user personal information, user behavior information, etc.) and data (including but not limited to data for display, training data, etc.) involved in the present application are all information and data authorized by the user or fully authorized by all parties.

[0044] Figure 1 is a flow chart of a projection image measurement method according to an exemplary embodiment. As shown in Figure 1 may include the following steps.

[0045] In step S101, based on the target object and the target projection direction of the target object, the projection image corresponding to the target object in the target projection direction is obtained.

[0046] In the embodiments of the present specification, the target object can refer to any object with shape and size. For example, vehicles, various components on vehicles, i.e. tires, doors, trunks, etc., which are not limited by the present application.

[0047] The target projection direction can refer to any plane direction corresponding to the target object. Exemplarily, the target object is a vehicle tire, and the projection image of the vehicle tire on the ground perpendicular to the vehicle is obtained, at this time, the target projection direction is the direction in which the ground perpendicular to the vehicle is located, which is not limited by the present application.

[0048] The projection image can refer to an image formed by projecting the target object in the target projection direction. The projection image is composed of triangular projection image regions. Exemplarily, Figure 2 is a schematic diagram of a projection image according to an exemplary embodiment. As Figure 2 shown, the projection image is a rectangular frame composed of a plurality of triangular projection image regions, and the present application does not limit the projection image.

[0049] In a possible case, a stereolithography file corresponding to the target object in the target projection direction is constructed based on the target object and the target projection direction of the target object; the stereolithography file is read to obtain the projection image corresponding to the target object.

[0050] The stereolithography file is an STL (StereoLithography) file, which is a standard file format used in three-dimensional printing and computer-aided design, and divides a three-dimensional model into a series of small triangles to approximate the shape of an object.

[0051] First, the target object and the target projection direction corresponding to the target object are input into the image processing system, the image processing system processes the target object, and outputs the stereolithography file of the target object. Then, the stereolithography file is accessed by the image reading unit, so as to determine the projection image corresponding to the target object in the target projection direction.

[0052] Exemplarily, the target object is a vehicle, the vehicle is input into the image processing system, the image processing system analyzes and processes the model of the vehicle, and outputs the stereolithography file corresponding to the vehicle; then, according to the vehicle and the target projection direction corresponding to the vehicle, such as the projection in the direction perpendicular to the vehicle, the projection image on the plane in the direction perpendicular to the vehicle can be obtained, and further, the projection image is calculated and analyzed. The present application does not limit the target object and the target projection direction.

[0053] In step S103, the bounding box corresponding to the projection image is determined.

[0054] In the embodiments of the present specification, the bounding box can refer to a rectangular frame for surrounding the projection area.

[0055] In a possible implementation, a corresponding local coordinate system is established, and the position of the origin can be determined according to the position of the target object, which is not limited by the present application. The position of the Z-axis can be the target projection direction, and then the directions of the X-axis and the Y-axis can be determined.

[0056] Further, the vertex positions of each projection image region in the local coordinate system are collected, that is, the coordinate information of each projection image region. Exemplarily,Figure 3 FIG. 1 is a schematic diagram of a local coordinate system of a projected image area according to an exemplary embodiment. Figure 3 As shown, the x-axis and y-axis form a local coordinate system of a plane, where ABC constitutes a projected image area. Based on the position of the projected image area in the local coordinate system, the coordinate information corresponding to the projected image is obtained. For example, the coordinates of A are (2, 3), the coordinates of B are (7, 4), and the coordinates of C are (4, 7). Based on the maximum and minimum values ​​in the coordinate information, that is, point A is located at the bottom of the local coordinate system, point A is determined to be one endpoint of the bounding box, and point B is at the rightmost end of the local coordinate system. Therefore, the distance difference between A and B in the horizontal coordinate is the distance of one side of the bounding box, that is, the horizontal coordinate value of B minus the horizontal coordinate value of A; point C is at the top of the local coordinate system, so the distance difference between A and C in the vertical coordinate is the distance of the other side of the bounding box, that is, the vertical coordinate value of C minus the vertical coordinate value of A. Based on the two distance differences, the rectangular bounding box and the area of ​​the rectangular bounding box can be further determined. The bounding box may include all projected image areas, and two sides of the bounding box are parallel to the x-axis and y-axis in the local coordinate system respectively. This application does not limit the method of determining the bounding box in the local coordinate system.

[0057] In another possible implementation, a grid division method can be used to divide the projected image area into multiple grid units, and mark the grids containing the triangle vertices. Then, a continuous enclosing area is formed by merging adjacent marked grids. Finally, a bounding box is determined based on the boundary of this enclosing area. This application does not limit the grid division method. Preferably, this application uses a local coordinate system to determine the bounding box and the area of ​​the bounding box, which can improve the accuracy of determining the bounding box, simplify the calculation, and can also adjust the vertex position of the projected image area in real time according to the transformation of the projected image, thereby improving the calculation efficiency of the projection area.

[0058] In step S105 , the bounding box is segmented to obtain a plurality of image segmentation regions.

[0059] In the embodiments of this specification, the image segmentation region may refer to a region further divided from the bounding box. This application does not limit the shape of the image segmentation region. Preferably, this application may use a rectangular image segmentation region, which can improve the calculation efficiency of the projection area corresponding to the projected image.

[0060] In a possible implementation, the bounding box is divided into equal parts to obtain a plurality of image segmentation regions of the same shape and size.

[0061] Accordingly, after the bounding box corresponding to the projection image is determined by the projection area measurement device, the bounding box is immediately divided into multiple image segmentation regions by equal division processing, that is, the bounding box is divided into multiple image segmentation regions, and the area and shape of each image segmentation region are the same. Exemplarily, Figure 4 is a schematic diagram of a first image segmentation region according to an exemplary embodiment. As shown in Figure 4 Figure 4 The triangle in the figure can be a projection image region, and the outer large rectangle of the projection image region can be a bounding box. The bounding box is divided into sixteen corresponding image segmentation regions by equal division, that is, sixteen small rectangles, wherein the shapes and sizes of the sixteen small rectangles are equal. The number and shape of the image segmentation region are not limited in the present application, and can be determined according to actual conditions.

[0062] In step S107, based on the multiple projection image regions and the multiple image segmentation regions, a first projection image area corresponding to the projection image and a first blank segmentation image area of the blank image segmentation region are determined.

[0063] In the embodiments of the present specification, the first projection image area can refer to the actual coverage area of the projection image in the bounding box. The blank image segmentation region can refer to an image segmentation region that does not contain any projection image region, and the first blank segmentation image area can refer to the total area covered by the blank image segmentation region, that is, the total area of the image segmentation region that does not contain any projection image region.

[0064] In a possible implementation, at least one first image segmentation region located inside any projection image region is screened from the multiple image segmentation regions; a cumulative area of the at least one first image segmentation region is determined as a first sub-projection image area; or at least one target projection image region located inside any image segmentation region is screened from the multiple projection image regions; a cumulative area of the at least one target projection image region is determined as a second sub-projection area.

[0065] The first projection image area includes at least one of the first sub-projection image area and the second sub-projection image area.

[0066] The first sub-projection image area can refer to the cumulative area of at least one first image segmentation region inside any projection image region. The second sub-projection image area can refer to the cumulative area of at least one target projection image region inside any image segmentation region. The target projection image region can refer to a projection image region completely located inside any image segmentation region. The first image segmentation region can refer to an image segmentation region completely located inside any projection image region.

[0067] In the first sub-projection image area screening step, exemplarily, as shown in​Figure 4 As shown in FIG. 1, Figure 4 In the embodiment, the projection image region is a large triangle, and the first image segmentation region is a shadow rectangle. The number of the first image segmentation regions is not limited in the present application. All the first image segmentation regions in the projection image are screened out, and the areas of all the first image segmentation regions are added, i.e., the cumulative area of at least one first image segmentation region is determined as the first sub-projection image area. After the first sub-projection image area is determined, the first image segmentation region is marked, i.e., the first image segmentation region is labeled. For example, in the initial state, the first image segmentation region is set to 0, and the first image segmentation region (the shadow part) in the embodiment is set to 1, indicating that the first image segmentation region has been calculated, so as to avoid repeated calculation of the system on the first image segmentation region, thereby interfering with the accuracy of the calculation. Figure 4 Figure 4

[0068] In the second sub-projection image area screening step, Figure 5 is a schematic diagram of a local target projection image region according to an example embodiment. As shown in FIG. 2, Figure 5 As shown in FIG. 3, Figure 5 In the embodiment, the projection image region is a large triangle, and the first image segmentation region is a shadow rectangle. The number of the first image segmentation regions is not limited in the present application. All the first image segmentation regions in the projection image are screened out, and the areas of all the first image segmentation regions are added, i.e., the cumulative area of at least one first image segmentation region is determined as the first sub-projection image area. After the first sub-projection image area is determined, the first image segmentation region is marked, i.e., the first image segmentation region is labeled. For example, in the initial state, the first image segmentation region is set to 0, and the first image segmentation region (the shadow part) in the embodiment is set to 1, indicating that the first image segmentation region has been calculated, so as to avoid repeated calculation of the system on the first image segmentation region, thereby interfering with the accuracy of the calculation. Figure 5 In the embodiment, the projection image region is a large triangle, and the first image segmentation region is a shadow rectangle. The number of the first image segmentation regions is not limited in the present application. All the first image segmentation regions in the projection image are screened out, and the areas of all the first image segmentation regions are added, i.e., the cumulative area of at least one first image segmentation region is determined as the first sub-projection image area. After the first sub-projection image area is determined, the first image segmentation region is marked, i.e., the first image segmentation region is labeled. For example, in the initial state, the first image segmentation region is set to 0, and the first image segmentation region (the shadow part) in the embodiment is set to 1, indicating that the first image segmentation region has been calculated, so as to avoid repeated calculation of the system on the first image segmentation region, thereby interfering with the accuracy of the calculation.

[0069] ​​In a possible implementation, the first projection image area includes at least one of the first sub-projection image area and the second sub-projection image area.

[0070] When the area calculation process of the projection image includes only the first sub-projection image area screening step, the first sub-projection image area is determined as the first projection image area.

[0071] When the area calculation process of the projection image includes only the second sub-projection image area screening step, the second sub-projection image area is determined as the first projection image area.

[0072] When the area calculation process of the projection image includes both the first sub-projection image area screening step and the second sub-projection image area screening step, the first sub-projection image area and the second sub-projection image area are added to determine the corresponding first projection image area.

[0073] In another possible implementation, at least one second image segmentation region is screened from the plurality of image segmentation regions, and each second image segmentation region does not overlap with any projection image region; and a cumulative area of the at least one second image segmentation region is determined as the first blank segmentation image area.

[0074] In the embodiments of the present specification, the second image segmentation region can refer to a region that does not overlap with any projection image region.

[0075] Figure 6 FIG. 1 is a schematic diagram of a partial second image segmentation region according to an example embodiment. As shown in FIG. 1, Figure 6 Figure 6 The plurality of image segmentation regions corresponding to the bounding box and one projection image region, i.e., a partial projection image region of the projection image, can also include other projection image regions. The projection image region is surrounded by three image segmentation regions. All projection image regions corresponding to the projection image are processed to screen at least one second image segmentation region, and each second image segmentation region does not overlap with any projection image region. For example, Figure 6 ​The rectangle in the upper left corner is a second image segmentation region. Further, the area of at least one second image segmentation region is accumulated, that is, the cumulative area of the second image segmentation region can be determined as the first blank segmentation image area. After determining the first blank segmentation image area, the second image segmentation region is marked, that is, the second image segmentation region is labeled. For example, before determining the first blank segmentation image area, the second image segmentation region is set to 0; after determining the first blank segmentation image area, the second image segmentation region is immediately set to 1, indicating that the second image segmentation region has been calculated, thereby improving the calculation accuracy of the projection area. The marking method of the second image segmentation region is not limited in the present application.

[0076] In a possible implementation, after completing the first sub-projection image area screening step, the second sub-projection image area screening step, and the first blank segmentation image area step, there may be other situations in the image segmentation region corresponding to the bounding box other than the above steps. For example, as shown in FIG. 8, a projection image region, that is, a triangle in the figure, is surrounded by three image segmentation regions. At this time, in the calculation process of the current first projection image area, the above steps cannot be used for calculation. Further, in the calculation process of the current first projection image area, the projection image region is not calculated, and the initial label state is maintained. For example, the projection image region, that is, the triangle, is set to 0. The present application can also include other situations where the calculation of the area corresponding to the projection image region is not performed, which is not limited herein. Figure 6 Figure 6 As shown in FIG. 8, a projection image region, that is, a triangle in the figure, is surrounded by three image segmentation regions. At this time, in the calculation process of the current first projection image area, the above steps cannot be used for calculation. Further, in the calculation process of the current first projection image area, the projection image region is not calculated, and the initial label state is maintained. For example, the projection image region, that is, the triangle, is set to 0. The present application can also include other situations where the calculation of the area corresponding to the projection image region is not performed, which is not limited herein.

[0077] In step S109, the first measurement error information of the first projection image area is determined according to the first projection image area, the bounding box area of the bounding box, and the first blank segmentation image area.

[0078] In the embodiment of the present application, the first measurement error information can be used to represent the evaluation result of the accuracy of the first projection image area, that is, the closeness or deviation between the first projection image area and the actual projection area.

[0079] In a possible implementation, the first projection image area and the first blank segmentation image area are added to obtain a measured bounding box area; the bounding box area and the measured bounding box area are subtracted to obtain a projection error area; and the first measurement error information is determined according to the ratio of the projection error area to the first projection image area.

[0080] ​Specifically, the bounding box area is set as A, the first projection image area is A1, and the first blank segmentation image area is A2. The first projection image area A1 is added to the first blank segmentation image area A2 to obtain a measurement bounding box area B=A1+A2. The bounding box area is subtracted from the measurement bounding box area to obtain a projection error area C=A-B=A-(A1+A2). Further, the first measurement error information D=C / A1=[A-(A1+A2)] / A1 can be determined according to the ratio of the projection error area to the first projection area. The manner of the first measurement error information is not limited in the application.

[0081] In step S111, the first projection image area is determined as the projection area corresponding to the projection image in a case where the first measurement error information satisfies the adjustable target condition.

[0082] In the embodiments of the present specification, the adjustable target condition can refer to a standard or threshold that can be adjusted according to actual conditions or user requirements, for judging whether the accuracy of the first projection image area meets the requirements. The projection area corresponding to the projection image can refer to the first projection image area that satisfies the adjustable target condition.

[0083] In a possible implementation, in a case where the calculated first measurement error information satisfies the adjustable target condition, for example, the first measurement error information is 0.25, and the value of the adjustable target condition set by the user is less than 0.3. Further, it can be obtained that the first measurement error information is within the range of the living room target condition, and further, the first projection image area can be directly determined as the projection area corresponding to the projection image. The adjustable target condition can be adjusted in time according to the user's demand, and further, the calculation efficiency can be improved, and the calculation accuracy of the projection area can be adjusted in real time.

[0084] In another possible implementation, in a case where the first measurement error information does not satisfy the adjustable target condition, the plurality of image segmentation regions are segmented to obtain a plurality of sub-image segmentation regions; the second projection image area corresponding to the projection image and the second blank segmentation image area of the blank image segmentation region are re-determined based on the plurality of projection image regions and the plurality of sub-image segmentation regions; the second measurement error information of the second projection image area is re-determined according to the second projection image area, the bounding box area, and the second blank segmentation image area; and the second projection image area is determined as the projection area corresponding to the projection image in a case where the second measurement error information satisfies the adjustable target condition.

[0085] In the embodiments of the present specification, the sub-image segmentation region can refer to a region further divided from the image segmentation region. For example, the image segmentation region is four identical rectangular frames, and the sub-image segmentation region is a region further divided into four equal parts from each image segmentation region, and 16 identical rectangular frames are obtained. The number of sub-image segmentation regions is not limited in the present application. The second projection image area can refer to the actual coverage area of the projection image in the bounding box calculated according to the sub-image segmentation region. The second blank segmentation image area can refer to the total area covered by the blank image segmentation region calculated according to the sub-image segmentation region.

[0086] For example, the first measurement error information is 0.25, and the adjustable target condition set by the user is less than 0.2. At this time, the first measurement error information does not meet the adjustable target condition, and the projection image region corresponding to the first projection image area and the corresponding segmentation image region that have been calculated are not calculated repeatedly, that is, the projection image region and the segmentation image region that have been marked as 1 are excluded first, and only the remaining projection image region and segmentation image region marked as 0 are calculated. In this way, the calculation amount of the projection area can be reduced, and repeated calculation can be avoided, and the calculation accuracy of the projection area can be improved.

[0087] Further, the segmentation image regions not involved in the calculation are equally divided to obtain a plurality of sub-image segmentation regions with the same size and shape.

[0088] At least one first sub-image segmentation region located inside any unmeasured projection image region is selected from the plurality of sub-image segmentation regions, and the cumulative area of the at least one first sub-image segmentation region is determined as a third sub-projection image area.

[0089] Alternatively, at least one first projection image region located inside any sub-image segmentation region is selected from the plurality of unmeasured projection image regions, and the cumulative area of the at least one first projection image region is determined as a fourth sub-projection image area. The second projection image area includes at least one of the third sub-projection image area and the fourth sub-projection image area plus the first projection area.

[0090] At least one third image segmentation region is selected from the plurality of sub-image segmentation regions, and each third image segmentation region does not overlap with any projection image region. The cumulative area of the third image segmentation region plus the first blank segmentation image area is the second blank segmentation image area.

[0091] Accordingly, the second measurement error information of the second projection image area is re-determined according to the second projection image area, the bounding box area, and the second blank segmentation image area. Exemplarily, the second projection image area is E1, the bounding box area is A, and the second blank segmentation image area is E2, so that the second projection image area is D1 = [A-(E1+E2)] / E1. The second measurement error information is further determined and processed, and in a case where the second error information satisfies the adjustable target condition, the second projection area is determined as the projection area corresponding to the projection image.

[0092] If the second measurement error information does not satisfy the adjustable target condition, the above steps are repeated until the measurement error information satisfies the adjustable target condition, which is not repeated herein.

[0093] In a possible implementation, after the final projection area corresponding to the projection image of the vehicle is determined in the vehicle, the starting resistance coefficient, the lateral force coefficient, the lift coefficient, etc. of the vehicle can be determined according to the projection area, which is not limited herein and can be determined according to actual conditions.

[0094] Figure 7 is a block diagram of a projection area measurement device according to an exemplary embodiment. Referring to Figure 7 The device can include:

[0095] The projection image determination module 701 is configured to obtain a projection image corresponding to a target object in a target projection direction of the target object based on the target object and the target projection direction of the target object. The projection image is composed of a plurality of projection image regions of a triangle.

[0096] The bounding box determination module 703 is configured to determine a bounding box corresponding to the projection image.

[0097] The bounding box segmentation module 705 is configured to perform segmentation processing on the bounding box to obtain a plurality of image segmentation regions.

[0098] In a possible implementation, the bounding box segmentation module 705 includes:

[0099] The equal-portion segmentation module performs equal-portion segmentation processing on the bounding box to obtain a plurality of image segmentation regions with the same shape and size.

[0100] The first projection image area determination module 707 is configured to determine a first projection image area corresponding to the projection image and a first blank segmentation image area of a blank image segmentation region based on the plurality of projection image regions and the plurality of image segmentation regions. The blank image segmentation region is an image segmentation region that does not contain any projection image region.

[0101] The first measurement error information determination module 709 is configured to determine first measurement error information of the first projection image area according to the first projection image area, the bounding box area of the bounding box, and the first blank segmentation image area.

[0102] In a possible implementation, the first measurement error information determination module 709 includes:

[0103] The measurement bounding box area determination module is configured to add the first projection image area and the first blank segmentation image area to obtain a measurement bounding box area.

[0104] The projection error area determination module is configured to subtract the measurement bounding box area from the bounding box area to obtain a projection error area.

[0105] The ratio determination module is configured to determine the first measurement error information according to a ratio of the projection error area to the first projection image area.

[0106] The target projection area determination module 711 is configured to determine the first projection image area as a projection area corresponding to the projection image when the first measurement error information satisfies an adjustable target condition.

[0107] As to the apparatus in the above-described embodiments, specific manners in which various modules perform operations have been described in details in the embodiments of the method, and thus will not be described in details here.

[0108] Figure 8 is a block diagram of an electronic device for projection area measurement according to an example embodiment. The electronic device can be a terminal, and its internal structure can be as shown in Figure 8 The electronic device includes a processor, a memory, a network interface, a display screen, and an input device connected through a system bus. The processor of the electronic device is configured to provide calculation and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for running the operating system and the computer program in the non-volatile storage medium. The network interface of the electronic device is configured to communicate with external terminals through network connection. The computer program is executed by the processor to implement a projection area measurement method. The display screen of the electronic device can be a liquid crystal display screen or an electronic ink display screen. The input device of the electronic device can be a touch layer overlaid on the display screen, or can be a key, trackball, or touchpad arranged on the shell of the electronic device, or can be an external keyboard, touchpad, or mouse, etc.

[0109] Those skilled in the art can understand that, Figure 8The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0110] Figure 9 is a block diagram of an electronic device for projection area measurement according to an exemplary embodiment. The electronic device can be a server, and its internal structure diagram can be as shown in Figure 9 The electronic device includes a processor, a memory and a network interface connected through a system bus. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operating system and the computer program in the non-volatile storage medium to run. The network interface of the electronic device is used to communicate with external terminals through network connection. The computer program is executed by the processor to implement a projection area measurement method.

[0111] Those skilled in the art can understand that Figure 9 The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0112] In an exemplary embodiment, an electronic device is also provided, including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the projection area measurement method in the embodiments of the present application.

[0113] In an exemplary embodiment, a computer readable storage medium is also provided, when the instructions in the computer readable storage medium are executed by the processor of the electronic device, the electronic device can execute the projection area measurement method in the embodiments of the present application. The computer readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk and an optical data storage device, etc.

[0114] In an exemplary embodiment, a computer program product containing instructions is also provided, when it is run on a computer, the computer executes the projection area measurement method in the embodiments of the present application.

[0115] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer readable storage medium. When the computer program is executed, the processes of the above-mentioned embodiments of the methods can be included. Any reference to memory, storage, databases, or other media in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration but not limitation, RAM is available in many forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0116] Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. It is intended that the specification and examples be considered as exemplary only, with the true scope and spirit of the application being indicated by the following claims.

[0117] It should be understood that the application is not limited to the precise construction that has been described above and illustrated in the accompanying drawings, and that various modifications and changes can be made by those skilled in the art without departing from the scope of the application. The scope of the application is limited only by the appended claims.

Claims

1. A method of measuring a projected area, characterized by, The method comprises: obtaining a projection image corresponding to the target object in a target projection direction based on the target object and the target projection direction; the projection image is composed of a plurality of triangular projection image regions; determining a bounding box corresponding to the projection image; segmenting the bounding box to obtain a plurality of image segmentation regions; determining a first projection image area corresponding to the projection image and a first blank segmentation image area of a blank image segmentation region based on the plurality of projection image regions and the plurality of image segmentation regions; the blank image segmentation region is an image segmentation region that does not contain any of the projection image regions; determining first measurement error information of the first projection image area according to the first projection image area, a bounding box area of the bounding box, and the first blank segmentation image area; in the case that the first measurement error information meets an adjustable target condition, determining the first projection image area as a projection area corresponding to the projection image.

2. The projected area measurement method according to claim 1, characterized in that, The first projection image area includes at least one of a first sub-projection image area and a second sub-projection image area, and the determination of the first projection image area corresponding to the projection image based on the plurality of projection image regions and the plurality of image segmentation regions comprises at least one of the following: screening at least one first image segmentation region located inside any of the projection image regions from the plurality of image segmentation regions; determining a cumulative area of the at least one first image segmentation region as the first sub-projection image area; or, screening at least one target projection image region located inside any of the image segmentation regions from the plurality of projection image regions; and determining a cumulative area of the at least one target projection image region as the second sub-projection image area.

3. The projected area measurement method according to claim 1 or 2, characterized in that, The determination of the first blank segmentation image area of the blank image segmentation region based on the plurality of projection image regions and the plurality of image segmentation regions comprises: screening at least one second image segmentation region from the plurality of image segmentation regions, each second image segmentation region not overlapping with any of the projection image regions; determining a cumulative area of the at least one second image segmentation region as the first blank segmentation image area.

4. The projected area measurement method of claim 1, wherein The determination of the first measurement error information of the first projection image area according to the first projection image area, the bounding box area of the bounding box, and the first blank segmentation image area comprises: adding the first projection image area and the first blank segmentation image area to obtain a measured bounding box area; subtracting the bounding box area from the measured bounding box area to obtain a projection error area; determining the first measurement error information according to a ratio of the projection error area to the first projection image area.

5. The projected area measurement method of claim 1, wherein The method further comprises: in the case that the first measurement error information does not meet the adjustable target condition, segmenting the plurality of image segmentation regions to obtain a plurality of sub-image segmentation regions; redetermine a second projection image area corresponding to the projection image and a second blank segmentation image area of the blank image segmentation area based on the plurality of projection image regions and the plurality of image segmentation areas; redetermine second measurement error information of the second projection image area according to the second projection image area, the bounding box area, and the second blank segmentation image area; determine the second projection image area as the projection area corresponding to the projection image in a case where the second measurement error information meets the adjustable target condition.

6. The projected area measurement method of claim 1, wherein The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises:

7. The projected area measurement method of claim 1, wherein The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises:

8. A projected area measuring device, characterized by, The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises:

9. An electronic device, comprising: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises:

10. A computer-readable storage medium, characterized in that, The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises: The segmentation processing on the bounding box comprises

Citation Information

Patent Citations

  • Method and device for calculating projection area of 3D mesh model, and storage medium

    CN117152236A

  • Group target projection area calculation method and system for target vulnerability analysis

    CN117372502A