A two-dimensional map intercepting system, method, device, storage medium and automobile
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-23
- Publication Date
- 2026-08-11
AI Technical Summary
[0005]本发明解决了现有的方法多为重复操作、效率低且误差大,不能有效支撑项目开发的问题
[0040]本发明解决了现有的方法多为重复操作、效率低且误差大,不能有效支撑项目开发的问题。具体有益效果包括:
Smart Images

Figure CN115756277B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of screenshot technology, specifically to a two-dimensional image capture system, method, device, storage medium, and automobile. Background Technology
[0002] Two-dimensional image capture is an automatic screenshot of the retrieved three-dimensional data using specific recognition logic. It is used for human judgment or automated computer inspection, preparing for most measurement modules such as surface difference, compression, and interference.
[0003] However, the existing methods are limited to manual operation, which requires opening the 3D data one by one, rotating the angle and positioning to extract the 2D image. This method is mostly repetitive, inefficient and has large errors, and cannot effectively support project development.
[0004] Therefore, the existing methods have the following drawbacks: they involve many repetitive operations, are inefficient and have large errors, and cannot effectively support project development. Summary of the Invention
[0005] This invention solves the problems of existing methods being mostly repetitive operations, inefficient, and prone to large errors, thus failing to effectively support project development.
[0006] The present invention discloses a two-dimensional image cropping system, which includes a positioning module, a direction module, a quantization module, and a range module;
[0007] The positioning module is used to provide positioning points for the three-dimensional data of the part.
[0008] The orientation module is used to determine the orientation of the screenshot of the two-dimensional image of the three-dimensional data of the part;
[0009] The quantization module is used to determine the screenshot deflection angle of the two-dimensional image of the three-dimensional data of the part, and according to the number of parts that need to be cropped from the three-dimensional data of the part, the quantization module divides the three-dimensional data of the part into two-dimensional cross sections on an average basis.
[0010] The range module selects the cut-off range of the two-dimensional image of the three-dimensional data of the part.
[0011] The present invention discloses a two-dimensional image cropping method, which is implemented using a two-dimensional image cropping system described above, and includes the following steps:
[0012] Step S1: Open the 3D data of the part using the 3D data retrieval method;
[0013] Step S2: Extract a 2D image from the 3D data of the part;
[0014] The methods for extracting two-dimensional images from three-dimensional data of parts include the overall screenshot method, the selection screenshot method, and the reference part screenshot method.
[0015] The overall screenshot method is as follows:
[0016] The positioning module provides the extreme points at both ends of the part's three-dimensional data;
[0017] The orientation module determines the orientation of the screenshot of the 2D image of the part's 3D data;
[0018] The quantization module determines the screenshot deflection angle of the 2D image of the part's 3D data;
[0019] Based on the number of sections to be extracted from the 3D data of the part, the quantization module divides the 3D data of the part into 2D sections on an average basis.
[0020] After selecting the cut-off range of the 2D image of the 3D data of the part using the range module, a 2D image of the 3D data of the part is cut out.
[0021] Furthermore, in one embodiment of the present invention, the screenshot selection method specifically includes:
[0022] The positioning module provides the coordinate points of the part's three-dimensional data;
[0023] The orientation module determines the orientation of the screenshot of the 2D image of the part's 3D data;
[0024] The quantization module determines the screenshot deflection angle of the 2D image of the part's 3D data;
[0025] After selecting the cut-off range of the 2D image of the 3D data of the part using the range module, a 2D image of the 3D data of the part is cut out.
[0026] Furthermore, in one embodiment of the present invention, the reference component screenshot method specifically includes:
[0027] If it is a combination structure of three-dimensional data of multiple parts, the smallest three-dimensional data of the part in the combination structure is used as the reference part, and the cross-section of the mating position between the three-dimensional data of the parts in the combination structure is extracted.
[0028] The positioning module provides the extreme points at both ends of the reference component;
[0029] The direction module determines the screenshot direction of the 2D diagram of the combined structure;
[0030] The quantization module determines the screenshot deflection angle of the two-dimensional graph of the combined structure;
[0031] Based on the number of sections to be cut from the composite structure, the quantization module divides the composite structure into two-dimensional sections on an average basis.
[0032] After selecting the cut-off range of the two-dimensional diagram of the combined structure using the range module, the two-dimensional diagram of the combined structure is cut out.
[0033] Furthermore, in one embodiment of the present invention, the combined structure of the multiple parts three-dimensional data includes a side-by-side connection structure, an embedded structure, and a stacked structure.
[0034] Furthermore, in one embodiment of the present invention, the screenshot deflection angle is 0° to 90°.
[0035] The present invention relates to a car, wherein the car is equipped with the two-dimensional image capture system described in the above method.
[0036] The electronic device of the present invention includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus.
[0037] Memory, used to store computer programs;
[0038] When a processor executes a program stored in memory, it implements any of the steps described in the above methods.
[0039] The present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements any of the steps described in the above-described methods.
[0040] This invention solves the problems of existing methods being mostly repetitive, inefficient, and prone to large errors, thus failing to effectively support project development. Specific beneficial effects include:
[0041] 1. The present invention provides a two-dimensional image cropping method. For a single part, it can automatically identify the maximum and minimum values of any vehicle's X / Y / Z axes or determine the cropping position based on given point coordinates. It can also define the cropping direction, number of cropping points, and cropping range based on the vehicle's X / Y / Z axes or other arbitrary angle views. For multiple parts (assemblies or the entire vehicle), in addition to the above methods, the cropping range can be defined based on selected reference parts. This method is based on CATIA software, and a secondary development program is created to establish an automated automotive DPA inspection system. Utilizing specific recognition logic, the computer automatically performs two-dimensional image cropping, replacing manual cropping and achieving automation. This significantly improves the speed and accuracy of two-dimensional image cropping for the entire vehicle, effectively supporting project development.
[0042] 2. The two-dimensional image capture method described in this invention is an important part of the DPA inspection of whole vehicle data in an automotive DPA automated system. It can prepare most measurement modules such as surface difference, compression, and interference by capturing images. Attached Figure Description
[0043] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein:
[0044] Figure 1 This refers to the automatic identification of the maximum and minimum values of the whole vehicle in the X direction as described in the specific implementation method;
[0045] Figure 2 This is the diagram showing the determination of the screenshot direction and deflection angle as described in the specific implementation method;
[0046] Figure 3 This is the screenshot showing the determination of the number of screenshots as described in the specific implementation method;
[0047] Figure 4 This refers to the screenshot range defined in the specific implementation method;
[0048] Figure 5 This is a schematic diagram of the two-dimensional image capture described in the specific implementation method;
[0049] Figure 6 This is the coordinate diagram of the given point a as described in the specific implementation method;
[0050] Figure 7 This is the diagram showing the determination of the screenshot direction and deflection angle as described in the specific implementation method;
[0051] Figure 8 This refers to the screenshot range defined in the specific implementation method;
[0052] Figure 9 This is a schematic diagram of the two-dimensional image capture described in the specific implementation method;
[0053] Figure 10 This is the adjusted screenshot range diagram described in the specific implementation method;
[0054] Figure 11 This is a diagram illustrating the process of extracting a two-dimensional drawing of the assembly or vehicle as described in the specific implementation method.
[0055] Figure 12 This is a schematic diagram of a two-dimensional image capture as described in the specific implementation method. Detailed Implementation
[0056] Various embodiments of the present invention will now be clearly and completely described with reference to the accompanying drawings. The embodiments described with reference to the drawings are exemplary and intended to explain the present invention, and should not be construed as limiting the present invention.
[0057] The two-dimensional image cropping system described in this embodiment includes a positioning module, a direction module, a quantization module, and a range module.
[0058] The positioning module is used to provide positioning points for the three-dimensional data of the part.
[0059] The orientation module is used to determine the orientation of the screenshot of the two-dimensional image of the three-dimensional data of the part;
[0060] The quantization module is used to determine the screenshot deflection angle of the two-dimensional image of the three-dimensional data of the part, and according to the number of parts that need to be cropped from the three-dimensional data of the part, the quantization module divides the three-dimensional data of the part into two-dimensional cross sections on an average basis.
[0061] The range module selects the cut-off range of the two-dimensional image of the three-dimensional data of the part.
[0062] The two-dimensional image cropping method described in this embodiment is implemented using the two-dimensional image cropping system described in the above embodiment, and includes the following steps:
[0063] Step S1: Open the 3D data of the part using the 3D data retrieval method;
[0064] Step S2: Extract a 2D image from the 3D data of the part;
[0065] The methods for extracting two-dimensional images from three-dimensional data of parts include the overall screenshot method, the selection screenshot method, and the reference part screenshot method.
[0066] The overall screenshot method is as follows:
[0067] The positioning module provides the extreme points at both ends of the part's three-dimensional data;
[0068] The orientation module determines the orientation of the screenshot of the 2D image of the part's 3D data;
[0069] The quantization module determines the screenshot deflection angle of the 2D image of the part's 3D data;
[0070] Based on the number of sections to be extracted from the 3D data of the part, the quantization module divides the 3D data of the part into 2D sections on an average basis.
[0071] After selecting the cut-off range of the 2D image of the 3D data of the part using the range module, a 2D image of the 3D data of the part is cut out.
[0072] In this embodiment, the screenshot selection method specifically refers to:
[0073] The positioning module provides the coordinate points of the part's three-dimensional data;
[0074] The orientation module determines the orientation of the screenshot of the 2D image of the part's 3D data;
[0075] The quantization module determines the screenshot deflection angle of the 2D image of the part's 3D data;
[0076] After selecting the cut-off range of the 2D image of the 3D data of the part using the range module, a 2D image of the 3D data of the part is cut out.
[0077] In this embodiment, the reference component screenshot method specifically refers to:
[0078] If it is a combination structure of three-dimensional data of multiple parts, the smallest three-dimensional data of the part in the combination structure is used as the reference part, and the cross-section of the mating position between the three-dimensional data of the parts in the combination structure is extracted.
[0079] The positioning module provides the extreme points at both ends of the reference component;
[0080] The direction module determines the screenshot direction of the 2D diagram of the combined structure;
[0081] The quantization module determines the screenshot deflection angle of the two-dimensional graph of the combined structure;
[0082] Based on the number of sections to be cut from the composite structure, the quantization module divides the composite structure into two-dimensional sections on an average basis.
[0083] After selecting the cut-off range of the two-dimensional diagram of the combined structure using the range module, the two-dimensional diagram of the combined structure is cut out.
[0084] In this embodiment, the combined structure of the three-dimensional data of the multiple parts includes a side-by-side connection structure, an embedded structure, and a stacked structure.
[0085] In this embodiment, the screenshot deflection angle is 0° to 90°.
[0086] This embodiment is based on the two-dimensional image cropping method described in this invention, and provides a practical implementation method:
[0087] The first step is to open the 3D data of the part using the 3D data retrieval method in the DPA automated inspection system;
[0088] A method for retrieving three-dimensional data includes the following steps:
[0089] Step S1: The storage module stores the 3D data to be measured into a folder and records the storage path of the 3D data to be measured.
[0090] Step S2: The naming module names the 3D data to be tested according to the naming rule of name + number - project number;
[0091] Step S3: After the recognition module identifies the storage path of the 3D data to be tested, the recognition module executes the naming rules of the 3D data to be tested and opens the 3D data to be tested.
[0092] In step S4, the assembly module assembles the 3D data to be measured opened by the recognition module into the specified coordinate system, thus completing the retrieval of the 3D data to be measured.
[0093] The second step involves extracting a 2D image from the 3D data of the part, as detailed below:
[0094] Method 1, such as Figure 1As shown, in any X / Y / Z direction of the whole vehicle, the positioning module gives the maximum and minimum values of the three-dimensional data of the part, where point a is the maximum value in the X direction of the whole vehicle and point b is the minimum value in the X direction of the whole vehicle.
[0095] like Figure 2 As shown, based on the X / Y / Z direction of the whole vehicle or any other arbitrary angle view, the direction module provides the screenshot direction of the two-dimensional image of the three-dimensional data of the part in the Y direction of the whole vehicle, and the quantization module provides the screenshot deflection angle of the two-dimensional image of the three-dimensional data of the part, which is 0° to 90°.
[0096] Based on the number of 2D images to be extracted from the 3D data of the part, the quantization module divides the 3D data of the part into 2D cross-sections on an average basis, such as... Figure 3 As shown, the quantization module determines the number of screenshots to be 2, namely A1-A1 and A2-A2, which means that the 3D data of the part is divided into three equal parts by points c and d.
[0097] like Figure 4 As shown, the range module selects the cropping range of the 2D image of the 3D data of the part. In the figure, the area between the dashed lines represents the cropping range, that is, the cropped range is a rectangle with side lengths l and s. The cropping center is the projection point of the part's centroid in the cropping direction. Specifically, Figure 5 Extract two-dimensional images of the three-dimensional data of the part from A1-A1 and A2-A2.
[0098] Method 2, such as Figure 6 As shown, in any X / Y / Z direction of the whole vehicle, the positioning module provides the coordinate points of the three-dimensional data of the part, where point a is given coordinate point.
[0099] like Figure 7 As shown, based on the X / Y / Z direction of the whole vehicle or any other arbitrary angle view, the direction module provides the screenshot direction of the two-dimensional image of the three-dimensional data of the part in the Y direction of the whole vehicle, and the quantization module provides the screenshot deflection angle of the two-dimensional image of the three-dimensional data of the part, which is 0° to 90°.
[0100] like Figure 8 As shown, the range module selects the cropping range of the part's 3D data. In the figure, the area between the dashed lines represents the cropping range, which is a rectangle with side lengths l and s. The center of the cropping is the projection point of the part's centroid in the cropping direction. Figure 9 To extract a 2D image of the 3D data of the part from AA, such as... Figure 10 As shown, adjusting the screenshot range allows the entire 2D model of the part to be displayed.
[0101] Method 3: If the structure consists of multiple 3D data combinations, including side-by-side connections, embedded structures, and stacked structures, use the smallest 3D data of the combined structure as the reference element to extract cross-sections of the mating positions between the 3D data of the parts in the combined structure, thereby improving the efficiency of image extraction. Figure 11 As shown, A and B are a combined structure, where B is the reference component.
[0102] The positioning module provides the extreme points at both ends of the reference component. In the diagram, points a and b are both extreme points of B. The direction module determines that the screenshot direction of the 2D diagram of the combined structure is the Y-axis of the entire vehicle. The quantization module determines that the screenshot deflection angle of the 2D diagram of the combined structure is 0°. Since the combined structure requires only one screenshot (AA), the quantization module divides the combined structure into two equal sections, with the center point of B as the screenshot location. After the range module selects the screenshot range of the 2D diagram of the combined structure… Figure 12 Extract a two-dimensional diagram of the composite structure from AA.
[0103] The aforementioned two-dimensional image extraction method can automatically acquire two-dimensional image information of parts, assemblies (or the whole vehicle) from any angle and position, preparing for most measurement modules such as surface difference, compression, and interference. The specific recognition logic is universal; if the inspection standards remain unchanged, it can be applied to different projects, improving work efficiency.
[0104] This embodiment describes a type of automobile, which is equipped with the material inspection system described in the above embodiment.
[0105] The electronic device of the present invention includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus.
[0106] Memory, used to store computer programs;
[0107] When a processor executes a program stored in memory, it implements any of the steps described in the above embodiments.
[0108] The present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements any of the method steps described in the above embodiments.
[0109] The memory in this application embodiment can be volatile memory or non-volatile memory, or it can include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM). It should be noted that the memory used in the methods described in this invention is intended to include, but is not limited to, these and any other suitable types of memory.
[0110] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., high-density digital video discs (DVDs)), or semiconductor media (e.g., solid-state disks (SSDs)).
[0111] In implementation, each step of the above method can be completed by integrated logic circuits in the processor's hardware or by instructions in software. The steps of the method disclosed in the embodiments of this application can be directly implemented by a hardware processor, or by a combination of hardware and software modules in the processor. The software modules can reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. This storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above method. To avoid repetition, detailed descriptions are omitted here.
[0112] It should be noted that the processor in the embodiments of this application can be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method embodiments can be completed by the integrated logic circuitry in the processor's hardware or by instructions in software form. The processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. This storage medium is located in memory, and the processor reads the information in the memory and, in conjunction with its hardware, completes the steps of the above methods.
[0113] The above provides a detailed description of a two-dimensional image capture system, method, device, storage medium, and automobile proposed by the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A method for cropping a two-dimensional image, the method being implemented using the aforementioned two-dimensional image cropping system, characterized in that, The two-dimensional image capture system includes a positioning module, a direction module, a quantization module, and a range module; The positioning module is used to provide positioning points for the three-dimensional data of the part. The orientation module is used to determine the orientation of the screenshot of the two-dimensional image of the three-dimensional data of the part; The quantization module is used to determine the screenshot deflection angle of the two-dimensional image of the three-dimensional data of the part, and according to the number of parts that need to be cropped from the three-dimensional data of the part, the quantization module divides the three-dimensional data of the part into two-dimensional cross sections on an average basis. The range module selects the cut-off range of the two-dimensional image of the three-dimensional data of the part; The method includes the following steps: Step S1: Open the 3D data of the part using the 3D data retrieval method; Step S2: Extract a 2D image from the 3D data of the part; The methods for extracting two-dimensional images from three-dimensional data of parts include the overall screenshot method, the selection screenshot method, and the reference part screenshot method. The overall screenshot method is as follows: The positioning module provides the extreme points at both ends of the part's three-dimensional data; The orientation module determines the orientation of the screenshot of the 2D image of the part's 3D data; The quantization module determines the screenshot deflection angle of the 2D image of the part's 3D data; Based on the number of sections to be extracted from the 3D data of the part, the quantization module divides the 3D data of the part into 2D sections on an average basis. After the range module selects the area to capture the 2D image of the 3D data of the part, it captures the 2D image of the 3D data of the part. The screenshot selection method is as follows: The positioning module provides the coordinate points of the part's three-dimensional data; The orientation module determines the orientation of the screenshot of the 2D image of the part's 3D data; The quantization module determines the screenshot deflection angle of the 2D image of the part's 3D data; After the range module selects the area to capture the 2D image of the 3D data of the part, it captures the 2D image of the 3D data of the part. The reference component screenshot method is specifically as follows: If it is a combination structure of three-dimensional data of multiple parts, the smallest three-dimensional data of the part in the combination structure is used as the reference part, and the cross-section of the mating position between the three-dimensional data of the parts in the combination structure is extracted. The positioning module provides the extreme points at both ends of the reference component; The direction module determines the screenshot direction of the 2D diagram of the combined structure; The quantization module determines the screenshot deflection angle of the two-dimensional graph of the combined structure; Based on the number of sections to be cut from the composite structure, the quantization module divides the composite structure into two-dimensional sections on an average basis. After selecting the cut-off range of the two-dimensional diagram of the combined structure using the range module, the two-dimensional diagram of the combined structure is cut out.
2. The two-dimensional image cropping method according to claim 1, characterized in that, The combined structure of the three-dimensional data of the multiple parts includes a side-by-side connection structure, an embedded structure, and a stacked structure.
3. The two-dimensional image cropping method according to claim 1, characterized in that, The screenshot is deflected at an angle of 0° to 90°.
4. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, when executing a program stored in memory, implements the steps of the method described in any one of claims 1-3.
5. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the method described in any one of claims 1-3.
Citation Information
Patent Citations
Method for creating two-dimensional cross-sectional shape data from three-dimensional data
JP2005302058A