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

By acquiring the projected image of the three-dimensional model and performing the bounding box segmentation process, combining area calculation and error adjustment, the problems of complexity and accuracy of projected area calculation in the prior art are solved, and efficient and accurate projected area measurement is achieved.

CN119131118AActive Publication Date: 2024-12-13CHINA AUTOMOTIVE INNOVATION CORP

Patent Information

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

AI Technical Summary

Technical Problem

When calculating the projection area of ​​a three-dimensional model, the statistical method is complex and resource consumption is high. The analytical method is difficult to accurately segment when the polygons intersect, which affects the accuracy of the calculation results.

Method used

By acquiring the projection image based on the projection direction of the target object, determining the bounding box and performing segmentation processing, calculating the area of ​​the projection image and the blank segmentation area, determining the measurement error information based on the bounding box area, and adjusting the error in real time to obtain the accurate projection area.

Benefits of technology

It improves the calculation accuracy and efficiency of the projection area, can flexibly obtain images in different projection directions, and adjusts the error accuracy according to user needs, improving the accuracy and efficiency of measurement.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119131118A_ABST
    Figure CN119131118A_ABST
Patent Text Reader

Abstract

The invention relates to a projection area measurement method and device, electronic equipment and a storage medium. The method comprises the steps of 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 areas and the plurality of image segmentation areas; determining 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; and under the condition that the first measurement error information meets the adjustable target condition, determining the first projection image area as the projection area corresponding to the projection image. According to the technical scheme provided by the invention, the reliability and accuracy of 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 computational graphics, and in particular to a projection area measurement method, device, electronic device and storage medium. Background Art

[0002] At present, there are two methods for calculating the projection area of ​​three-dimensional models, including statistical method and analytical method. For statistical method, most of the methods used are ray tracing method, ray projection method, pixel method and Monte Carlo method. These methods can only obtain and determine the calculation results of corresponding accuracy, which makes the calculation process very complicated, requires a lot of resources, and seriously affects the calculation efficiency.

[0003] The analytical method relies on accurate projection intersection and internal point recognition mechanisms. However, in the projection process, complex situations where three or more polygons intersect are inevitable. It is difficult for the analytical method to perform accurate segmentation, thus affecting the accuracy of the calculation results. Summary of the invention

[0004] The present application provides a projection area measurement method, device, electronic device and storage medium to at least solve the problems in the related art such as how to conveniently and accurately determine the projection area. 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] Based on the target object and the target projection direction of the target object, a projection image corresponding to the target object in the target projection direction is obtained; the projection image is composed of a plurality of triangular projection image areas;

[0007] Determine a bounding box corresponding to the projected image;

[0008] Segmenting the bounding box to obtain multiple image segmentation regions;

[0009] Based on the multiple projected image areas and the multiple image segmentation areas, determining a first projected image area corresponding to the projected image and a first blank segmentation image area of ​​a blank image segmentation area; the blank image segmentation area is an image segmentation area that does not include any of the projected image areas;

[0010] 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 segmented image area;

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

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

[0013] A projection image determination module, configured to obtain a projection image corresponding to the target object in the target projection direction based on the target object and the target projection direction of the target object; the projection image is composed of a plurality of triangular projection image areas;

[0014] A bounding box determination module, used to determine a bounding box corresponding to the projection image;

[0015] A bounding box segmentation module, used to segment the bounding box to obtain multiple image segmentation areas;

[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 segmented image area of ​​a blank image segmented area based on the multiple projection image areas and the multiple image segmented areas; the blank image segmented area is an image segmented area that does not include any of the projection image areas;

[0017] A first measurement error information determining module, 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 segmented image area;

[0018] The target projection area determination module is used to determine the first projection image area as the projection area corresponding to the projection image when the first measurement error information meets the adjustable target condition.

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

[0020] According to a fourth aspect of an embodiment 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 is enabled to execute any method described in the first aspect of the embodiment of the present application.

[0021] According to a fifth aspect of an embodiment of the present application, a computer program product is provided, comprising computer instructions, which, when executed by a processor, enable a computer to execute any one of the methods described in the first aspect of the embodiment of the present application.

[0022] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application.

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

[0024] Through 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, and different projection images in different projection directions can be obtained, thereby improving the flexibility of obtaining the projection image;

[0025] Furthermore, 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, 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, so that the calculation accuracy of the projection area can be improved;

[0026] Finally, according to the first projection image area, the bounding box area of ​​the bounding box and the first blank segmented image area, the first measurement error information of the first projection image area is determined, and the projection error can be determined in real time; when 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, and the accurate projection area error can be obtained in real time. The error accuracy can also be adjusted according to user needs, 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 attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the technical solutions and advantages of the embodiments of this specification or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0029] Figure 1 The figure is a flow chart of a projection image measuring method according to an exemplary embodiment.

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

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

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

[0033] Figure 5 is a schematic diagram showing a local target projection image area according to an exemplary embodiment.

[0034] Figure 6 is a schematic diagram showing a local second image segmentation area according to an exemplary embodiment.

[0035] Figure 7 The figure is a block diagram of a projection area measuring device according to an exemplary embodiment.

[0036] Figure 8 A frame diagram of an electronic device for measuring projection area according to an exemplary embodiment is shown. Figure 1 .

[0037] Fig. 9 A frame diagram of an electronic device for measuring projection area according to an exemplary embodiment is shown. Figure 2 . DETAILED DESCRIPTION

[0038] In order to enable ordinary persons in the art to better understand the technical solutions of the present application, the technical solutions in the embodiments of the present application specification will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application specification. Obviously, the described embodiments are only part of the embodiments of the specification, not all of the embodiments. Based on the embodiments in the present specification, all other embodiments obtained by ordinary persons in the art without creative work are within the scope of protection of the present invention.

[0039] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are 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 numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.

[0041] The word "exemplary" used exclusively herein means "serving as an example, embodiment or illustrative". Any embodiment described herein as "exemplary" is not necessarily to be construed as being superior or better than other embodiments. The term "and / or" herein is merely a description of an association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent the following three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of types. For example, including at least one of A, B, and C may represent any one or more elements selected from the set consisting of A, B, and C.

[0042] Unless otherwise specified, the directions in this document should be understood as follows: the direction closer to the user is the front, and the direction away from the user is the rear.

[0043] In addition, in order to better illustrate the present application, numerous specific details are given in the specific embodiments below. Those skilled in the art should understand that the present application can also be implemented without certain specific details. In some instances, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present application. It should be noted that a possible sequence of steps is shown in the following figure, and it is not actually limited to strictly follow this sequence. Some steps can be executed in parallel without relying on each other. The user information (including but not limited to user device information, user personal information, user behavior information, etc.) and data (including but not limited to data for display, training data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

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

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

[0046] In the implementation manner of this specification, the target object may refer to any object with a shape and size, such as a vehicle, or components of a vehicle, such as tires, doors, trunks, etc., which are not limited in this application.

[0047] The target projection direction may refer to any plane direction corresponding to the target object. For example, the target object is a vehicle tire, and a projection image of the vehicle tire on the ground perpendicular to the vehicle is obtained. In this case, the target projection direction is the direction of the ground perpendicular to the vehicle, and this application does not limit this.

[0048] The projected image may refer to an image formed by projecting the target object in the target projection direction. The projected image is composed of a triangular projection image area. For example, Figure 2 FIG. 1 is a schematic diagram showing a projected image according to an exemplary embodiment. Figure 2 As shown, the projection image is a rectangular frame diagram, which is composed of multiple triangular projection image areas. This application does not limit the projection image.

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

[0050] Among them, the stereolithography file is an STL (STereoLithography) file, which is a standard file format used in 3D printing and computer-aided design. It divides the 3D model into a series of small triangles to approximate the shape of the object.

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

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

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

[0054] In the embodiment of this specification, the bounding box may refer to a rectangular frame used to enclose 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 in this application. The Z-axis position can be the target projection direction, and the directions of the X-axis and Y-axis can be determined.

[0056] Furthermore, the vertex positions of each projection image region in the local coordinate system of all the projection images are traversed and collected, that is, the coordinate information of each projection image region. For example, Figure 3 FIG. 1 is a schematic diagram of a local coordinate system of a projection image area according to an exemplary embodiment. Figure 3 As shown, the x-axis and the y-axis constitute a local coordinate system of a plane, where ABC constitutes a projection image area. According to the position of the projection image area in the local coordinate system, the coordinate information corresponding to the projection 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). According to the maximum and minimum information in the coordinate information, that is, point A is located at the bottom of the local coordinate system, point A is determined as an end point 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 on 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 on 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 the projected image areas, and two sides of the bounding box are respectively parallel to the x-axis and the y-axis in the local coordinate system. The present 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 enclosed area is formed by merging adjacent marked grids. Finally, a bounding box is determined based on the boundary of this enclosed area. The present application does not limit the grid division method. Preferably, the present application uses a local coordinate system to determine the bounding box and the area of ​​the bounding box, which can improve the determination accuracy of 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 area may refer to an area further divided by the bounding box. The present application does not limit the shape of the image segmentation area. Preferably, the present application may use a rectangular image segmentation area, which can improve the calculation efficiency of the projection area corresponding to the projection image.

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

[0061] Accordingly, after the projection area measurement device determines the bounding box corresponding to the projection image, the bounding box is immediately divided into equal parts, that is, the bounding box is divided into multiple image segmentation areas, each of which has the same area and shape. Figure 4 FIG. 1 is a schematic diagram showing a first image segmentation region according to an exemplary embodiment. Figure 4 As shown, Figure 4 The triangle in the figure can be the projected image area, and the outer large rectangle of the projected image area is the bounding box. The bounding box is divided into sixteen corresponding image segmentation areas, that is, sixteen small rectangles, where the shapes and sizes of the sixteen small rectangles are equal. The present application does not limit the number and shape of the image segmentation areas, which can be determined according to actual conditions.

[0062] In step S107, based on the plurality of projection image regions and the plurality of 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 this specification, the first projection image area may refer to the actual coverage area of ​​the calculated projection image in the bounding box. The blank image segmentation area may refer to the image segmentation area that does not contain any projection image area, and the first blank segmentation image area may refer to the total area covered by the blank image segmentation area, that is, the total area of ​​the image segmentation area that does not contain any projection image area.

[0064] In one possible implementation, at least one first image segmentation region located inside any projection image region is screened out from a plurality of image segmentation regions; the 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 out from a plurality of projection image regions; the 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 a first sub-projection image area and a second sub-projection image area.

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

[0067] In the first sub-projection image area screening step, illustratively, as Figure 4 As shown, Figure 4 The image includes 16 image segmentation regions and a projection image region in the bounding box. All image segmentation regions in the bounding box are screened, and the first image segmentation region located inside the projection image region is screened out, that is, Figure 4 In the projection image, the projection image area is a large triangle, and the first image segmentation area is a shaded rectangle. The present application does not limit the number of first image segmentation areas. All first image segmentation areas in the projection image are screened out, and the areas of all first image segmentation areas are added together, that is, the cumulative area of ​​at least one first image segmentation area is determined as the first sub-projection image area. After determining the first sub-projection image area, the first image segmentation area is marked, that is, the first image segmentation area is labeled. For example, in the initial state, the first image segmentation area is set to 0. Figure 4 The first image segmentation area (shaded part) is set to 1, indicating that the first image segmentation area has been calculated, so as to avoid the system from repeatedly calculating the first image segmentation area, thereby interfering with the calculation accuracy.

[0068] In the second sub-projection image area screening step, Figure 5 FIG. 1 is a schematic diagram showing a local target projection image area according to an exemplary embodiment. Figure 5 As shown, Figure 5 The image includes a partial image segmentation area corresponding to the bounding box and a projection image area, that is, a local projection image area of ​​the projection image, and may also include other projection image areas. Exemplarily, all projection image areas are traversed to screen out at least one target projection image area completely located inside any image segmentation area, that is, Figure 5 The target projection image area (triangle) is completely located in an image segmentation area (small rectangle). At this time, the coordinate positions of the three vertices in the corresponding target projection image area (triangle) can be determined according to the local coordinate system, and then the second sub-projection image area corresponding to the target projection image area can be determined. Further, the areas of all the screened target projection image areas are accumulated, that is, the cumulative area of ​​at least one target projection image area is determined as the second sub-projection image area. After determining the second sub-projection image area, the target projection image area is immediately marked, that is, the target projection image area is labeled. For example, in the initial state, the target projection image area is set to 0, and after the second sub-projection area screening step is performed, the target projection image area is set to 1. This application does not limit the marking processing method. In this way, the system can avoid repeated calculations of the target projection image area and ensure the accuracy and stability of the projection area calculation.

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

[0070] When the area calculation process of the projection image only includes 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 only includes 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, at this time, 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 out from multiple image segmentation regions, and each second image segmentation region has no overlapping area with any projection image region; and the cumulative area of ​​at least one second image segmentation region is determined as the first blank segmentation image area.

[0074] In the embodiment of this specification, the second image segmentation area may refer to an area that does not overlap with any projection image area.

[0075] Figure 6 is a schematic diagram showing a local second image segmentation region according to an exemplary embodiment. For example, Figure 6 As shown, Figure 6 It includes multiple image segmentation areas corresponding to the bounding box and a projection image area, that is, a local projection image area of ​​the projection image, and may also include other projection image areas. The projection image area is surrounded by three image segmentation areas. All projection image areas corresponding to the projection image are traversed to screen out at least one second image segmentation area, wherein each second image segmentation area does not overlap with any projection image area. For example, Figure 6The rectangle in the upper left corner is the second image segmentation area. Furthermore, the area of ​​at least one second image segmentation area is accumulated, that is, the accumulated area of ​​the second image segmentation area can be determined as the first blank segmentation image area. After the first blank segmentation image area is determined, the second image segmentation area is marked, that is, the second image segmentation area is labeled. For example, before the first blank segmentation image area is determined, the second image segmentation area is set to 0; after the first blank segmentation image area is determined, the second image segmentation area is immediately set to 1 to indicate that the second image segmentation area has completed the calculation, thereby improving the calculation accuracy of the projection area. The present application does not limit the marking method of the second image segmentation area.

[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, other situations other than the above steps may exist in the image segmentation area corresponding to the bounding box. For example, Figure 6 As shown, in the projection image area, that is, Figure 6 The triangle in is surrounded by three image segmentation areas. At this time, in the process of calculating the current first projection image area, the above steps cannot be used for calculation. Furthermore, in the process of calculating the current first projection image area, the projection image area is not calculated, and the initial label state is maintained. For example, the projection image area, that is, the triangle, is set to 0. The present application may also include other situations in which the area corresponding to the projection image area is not calculated, and the present application is not limited here.

[0077] In step S109, 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 segmented image area.

[0078] In the embodiments of the present specification, the first measurement error information may be used to characterize an evaluation result of the accuracy of the first projection image area, that is, the degree of proximity or the size of the deviation between the first projection image area and the actual projection area.

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

[0080] Specifically, the area of ​​the bounding box is set to A, the area of ​​the first projection image is A1, and the area of ​​the first blank segmented image is A2. By adding the area of ​​the first projection image A1 and the area of ​​the first blank segmented image A2, the measured bounding box area B=A1+A2 can be obtained. Then the bounding box area is subtracted from the measured bounding box area to obtain the projection error area C=AB=A-(A1+A2). Furthermore, the first measurement error information D=C / A1=[A-(A1+A2)] / A1 can be determined based on the ratio of the projection error area to the first projection area. This application does not limit the method of the first measurement error information.

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

[0082] In the embodiments of this specification, the adjustable target condition may refer to a standard or threshold value that can be adjusted according to actual conditions or user needs, and is used to determine whether the accuracy of the first projection image area meets the requirements. The projection area corresponding to the projection image may refer to the first projection image area that meets the adjustable target condition.

[0083] In a possible implementation, when 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. Furthermore, 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. Setting the adjustable target condition can be adjusted in time according to the needs of the user, thereby improving the efficiency of the calculation, and adjusting the calculation accuracy of the projection area in real time.

[0084] In another possible implementation, when the first measurement error information does not meet the adjustable target condition, multiple image segmentation areas are segmented to obtain multiple sub-image segmentation areas; based on the multiple projection image areas and the multiple sub-image segmentation areas, the second projection image area corresponding to the projection image and the second blank segmentation image area of ​​the blank image segmentation area are re-determined; based on the second projection image area, the bounding box area and the second blank segmentation image area, the second measurement error information of the second projection image area is re-determined; when the second measurement error information meets the adjustable target condition, the second projection image area is determined as the projection area corresponding to the projection image.

[0085] In the embodiments of this specification, the sub-image segmentation area may refer to an area that is further divided into the image segmentation area. Exemplarily, the image segmentation area is 4 identical rectangular frames, and the sub-image segmentation area is an area that is further divided into four equal parts of each image segmentation area, resulting in 16 identical rectangular frames. This application does not impose any current limitation on the number of sub-image segmentation areas. The second projected image area may refer to the actual coverage area of ​​the projected image in the bounding box calculated based on the sub-image segmentation area. The second blank segmented image area may refer to the total area covered by the blank image segmentation area calculated based on the sub-image segmentation area.

[0086] Exemplarily, 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 area and the corresponding segmented image area corresponding to the calculated first projection image area are not repeatedly calculated, that is, the projection image area and the segmented image area that have been marked as 1 are excluded first, and only the remaining projection image area and the segmented image area that are set to 0 are calculated. This can reduce the amount of calculation of the projection area, avoid repeated calculations, and improve the calculation accuracy of the projection area.

[0087] Furthermore, the segmented image regions not involved in the calculation are segmented into equal parts to obtain a plurality of sub-image segmented regions of the same size and shape.

[0088] Continue to screen out at least one first sub-image segmentation region located inside any projection image region that has not been measured from the multiple sub-image segmentation regions; and determine the cumulative area of ​​the at least one first sub-image segmentation region as the third sub-projection image area.

[0089] Alternatively, at least one first projection image area located inside any sub-image segmentation area is selected from a plurality of projection image areas that have not been measured; and the cumulative area of ​​the at least one first projection image area is determined as the 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 area is selected from the plurality of sub-image segmentation areas, and each third image segmentation area does not overlap with any projection image area. The accumulated area of ​​the third image segmentation area is added to the first blank segmentation image area to obtain a 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 segmented image area. Exemplarily, the second projection image area is E1, the bounding box area is A, and the second blank segmented image area is E2, and the second projection image area is D1=[A-(E1+E2)] / E1. The second measurement error information is then judged and processed, and when the second error information meets 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 still does not meet the adjustable target condition, the above steps are repeated until the measured error information meets the adjustable target condition, which is not elaborated in this application.

[0093] In one possible implementation, in the vehicle, after determining the projection area corresponding to the final projection image of the vehicle, the vehicle's starting resistance coefficient, lateral force coefficient, lift coefficient, etc. can be determined based on the projection area. This application does not limit the above coefficients, and the specific coefficients 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. Figure 7 , the device may include:

[0095] A projection image determination module 701 is used to obtain a projection image corresponding to the target object in the target projection direction based on the target object and the target projection direction of the target object; the projection image is composed of a plurality of triangular projection image areas;

[0096] A bounding box determination module 703 is used to determine a bounding box corresponding to the projected image;

[0097] The bounding box segmentation module 705 is used to segment the bounding box to obtain multiple image segmentation areas;

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

[0099] The equal-part segmentation module performs equal-part segmentation processing on the bounding box to obtain multiple image segmentation areas of the same shape and size.

[0100] A first projection image area determination module 707, configured to determine a first projection image area corresponding to the projection image and a first blank segmented image area of ​​a blank image segmented area based on a plurality of projection image areas and a plurality of image segmented areas; the blank image segmented area is an image segmented area that does not include any projection image area;

[0101] A first measurement error information determining module 709, 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 segmented image area;

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

[0103] A measurement bounding box area determination module is used to add the first projection image area and the first blank segmentation image area to obtain a measurement bounding box area;

[0104] A projection error area determination module, used for subtracting the bounding box area from the measured bounding box area to obtain the projection error area;

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

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

[0107] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0108] Figure 8 is a block diagram of an electronic device for projected area measurement according to an exemplary embodiment. The electronic device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 8 As shown. The electronic device includes a processor, a memory, a network interface, a display screen and an input device connected via a system bus. Among them, 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 operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a projection area measurement method is implemented. The display screen of the electronic device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the housing of the electronic device, or an external keyboard, touchpad or mouse, etc.

[0109] Those skilled in the art will understand that Figure 8The structure shown in the figure is merely a block diagram of a partial 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 may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0110] Fig. 9 is a block diagram of an electronic device for projected area measurement according to an exemplary embodiment. The electronic device may be a server, and its internal structure diagram may be as shown in FIG. Fig. 9 As shown. The electronic device includes a processor, a memory and a network interface connected through a system bus. Among them, 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 operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a projection area measurement method is implemented.

[0111] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is merely a block diagram of a partial 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 may include more or fewer components than 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; and 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 as in the embodiment of the present application.

[0113] In an exemplary embodiment, a computer-readable storage medium is also provided, and when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the projection area measurement method in the embodiment 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, an optical data storage device, etc.

[0114] In an exemplary embodiment, a computer program product including instructions is also provided. When the computer program product is run on a computer, the computer is enabled to execute the projection area measurement method in the embodiment of the present application.

[0115] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing related 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, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), 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] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0117] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A method for measuring a projection area, characterized in that: include: Based on a target object and a target projection direction of the target object, obtaining a projection image corresponding to the target object in the target projection direction; The projection image is composed of a plurality of triangular projection image areas; Determine a bounding box corresponding to the projected image; Segmenting the bounding box to obtain multiple image segmentation regions; Based on the multiple projected image areas and the multiple image segmentation areas, determining a first projected image area corresponding to the projected image and a first blank segmentation image area of ​​a blank image segmentation area; the blank image segmentation area is an image segmentation area that does not include any of the projected image areas; 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 segmented image area; In a case where the first measurement error information satisfies an adjustable target condition, the first projection image area is determined as a projection area corresponding to the projection image.

2. The projection 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 determining, based on the multiple projection image areas and the multiple image segmentation areas, the first projection image area corresponding to the projection image includes at least one of the following: Screening out at least one first image segmentation region located inside any of the projection image regions from the plurality of image segmentation regions; Determining the accumulated area of ​​the at least one first image segmentation region as the first sub-projection image area; Alternatively, at least one target projection image region located inside any of the image segmentation regions is screened out from the multiple projection image regions; and a cumulative area of ​​the at least one target projection image region is determined as the second sub-projection image area.

3. The projection area measurement method according to claim 1 or 2, characterized in that: The determining, based on the plurality of projection image regions and the plurality of image segmentation regions, a first blank segmentation image area of ​​the blank image segmentation region comprises: Filtering out at least one second image segmentation region from the plurality of image segmentation regions, wherein each second image segmentation region does not have an overlapping region with any of the projection image regions; The cumulative area of ​​the at least one second image segmentation region is determined as the first blank segmented image area.

4. The projection area measurement method according to claim 1, characterized in that: The determining 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 segmented image area includes: Adding the first projection image area and the first blank segmented image area to obtain a measurement bounding box area; Subtracting the area of ​​the bounding box from the area of ​​the measured bounding box to obtain a projection error area; The first measurement error information is determined according to a ratio of the projection error area to the first projection image area.

5. The projection area measurement method according to claim 1, characterized in that: The method further comprises: When the first measurement error information does not satisfy the adjustable target condition, segmenting the multiple image segmentation regions to obtain multiple sub-image segmentation regions; re-determining a second projection image area corresponding to the projection image and a second blank segmented image area of ​​the blank image segmented area based on the multiple projection image areas and the multiple sub-image segmented areas; re-determining 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 segmented image area; In a case where the second measurement error information satisfies the adjustable target condition, the second projection image area is determined as the projection area corresponding to the projection image.

6. The projection area measurement method according to claim 1, characterized in that: The segmentation process is performed on the bounding box to obtain a plurality of image segmentation regions, including: The bounding box is divided into equal parts to obtain a plurality of image segmentation regions of the same shape and size.

7. The projection area measurement method according to claim 1, characterized in that: The obtaining, based on the target object and the target projection direction of the target object, a projection image corresponding to the target object in the target projection direction comprises: Based on the target object and the target projection direction of the target object, construct a stereolithography file corresponding to the target object in the target projection direction; The stereolithography file is read to obtain the projection image corresponding to the target object.

8. A projection area measuring device, characterized in that: include: A projection image determination module, configured to obtain a projection image corresponding to the target object in the target projection direction based on the target object and the target projection direction of the target object; the projection image is composed of a plurality of triangular projection image areas; A bounding box determination module, used to determine a bounding box corresponding to the projection image; A bounding box segmentation module, used to segment the bounding box to obtain multiple image segmentation areas; A first projection image area determination module, configured to determine a first projection image area corresponding to the projection image and a first blank segmented image area of ​​a blank image segmented area based on the multiple projection image areas and the multiple image segmented areas; the blank image segmented area is an image segmented area that does not include any of the projection image areas; A first measurement error information determining module, 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 segmented image area; The target projection area determination module is used to determine the first projection image area as the projection area corresponding to the projection image when the first measurement error information meets the adjustable target condition.

9. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the projection area measurement method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the projection area measurement method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Point cloud detection optimization method and device, electronic equipment and storage medium

    CN115578337A

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

    CN117152236A

  • 3D target detection method and system and vehicle

    CN117274975A

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

    CN117372502A

  • Method and apparatus for detecting target object in image

    US20210174537A1

Cited By

  • Capacitance identification and grid optimization method and system for integrated passive device simulation

    CN121212063A

  • Capacitance identification and mesh optimization method and system for integrated passive device simulation

    CN121212063B