A size report generation method, apparatus, device, and storage medium
Patent Information
- Application Number
- CN202211152281.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-21
- Publication Date
- 2026-10-09
- Estimated Expiration
- 2042-09-21
AI Technical Summary
[0004]本发明要解决的是上述现有技术中尺寸报告生成过程复杂且耗时长的技术问题
[0039] The method for generating this dimension report includes the following steps: First, obtain a set of measurement points for the component; this set of measurement points includes multiple sub-sets of measurement points; each sub-set of measurement points includes measurement point information for multiple measurement points; the measurement point information includes the three-dimensional coordinates and three-dimensional normal vectors of the corresponding measurement points; the angular deviation of the three-dimensional normal vectors of any two measurement points is less than or equal to a first preset threshold; the deviation of the preset dimension coordinates of any two measurement points is less than or equal to a second preset threshold; then, for each sub-set of measurement points, determine the coordinates of the observation point based on the viewpoint, the three-dimensional coordinates of the multiple measurement points in the sub-set of measurement points, and the three-dimensional normal vectors; based on the coordinates of the observation point, filter the data points of the three-dimensional model of the component to obtain the target three-dimensional model; perform a screenshot operation on the target three-dimensional model to obtain a target image containing the target three-dimensional model; generate a dimension report based on each sub-set of measurement points and the target image corresponding to each sub-set of measurement points. The process of determining the target image described above is not only simple, but it can also remove the parts of the measurement points in the sub-measurement point set that are obstructed from the observation point on the 3D model of the component, so that the unobstructed parts can be directly seen in the final target 3D model. This makes it easier for relevant personnel to intuitively understand the position of the measurement points on the component, and facilitates the size analysis and processing of the component.
Smart Images

Figure CN115688260B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a method, apparatus, device, and storage medium for generating size reports. Background Technology
[0002] In automotive dimensional engineering, the dimensional data and specifications of assemblies, subassemblies, individual components, and even individual components from suppliers must be measured and calculated in a timely manner for use by dimensional engineers in analysis and design. In this process, dimensional measurement reports greatly facilitate communication and analysis among dimensional engineers. Dimensional reports contain information such as measurement points, various indicators, and images of components. To present this information intuitively to dimensional engineers and other users, the image areas in the report should clearly and accurately correspond to the measurement point information, while also displaying relatively complete details.
[0003] In current practice, some dimensional reports use manually taken screenshots to fill in the images, and then the dimensional reports are generated uniformly. CM4D software is more commonly used in the market. CM4D is a traditional automotive parts dimensional analysis software. It uses a client / server architecture. Before dimensional engineers can use it to create reports, they need to make a series of repeated adjustments and programming to the measurement points and models so that the images in the report correspond to the measurement point information more completely. Summary of the Invention
[0004] The present invention aims to solve the technical problem that the generation process of size reports is complex and time-consuming in the prior art.
[0005] To address the aforementioned technical problems, this application discloses a method for generating a dimension report, comprising:
[0006] Obtain the measurement point set of the component; the measurement point set includes multiple sub-measurement point sets; each sub-measurement point set includes measurement point information of multiple measurement points; the measurement point information includes the three-dimensional coordinates and three-dimensional normal vector of the corresponding measurement point; the angle deviation of the three-dimensional normal vector of any two measurement points is less than or equal to a first preset threshold; the deviation of the preset dimension coordinates of any two measurement points is less than or equal to a second preset threshold.
[0007] For each sub-set of measurement points, the coordinates of the observation point are determined based on the viewpoint of the observation point, the three-dimensional coordinates of multiple measurement points in the sub-set of measurement points, and the three-dimensional normal vector.
[0008] Based on the coordinates of the observation point, the data points of the three-dimensional model of the component are filtered to obtain the target three-dimensional model;
[0009] Take a screenshot of the target's 3D model to obtain a target image containing the target's 3D model;
[0010] Generate a size report based on each of the sub-measurement point sets and the corresponding target image.
[0011] Optionally, the determination of the coordinates of the observation point based on the viewpoint, the three-dimensional coordinates of multiple measurement points in the sub-measurement point set, and the three-dimensional normal vector includes:
[0012] The virtual space is determined based on the three-dimensional coordinates of multiple measuring points in the sub-measuring point set; each of the multiple measuring points is located inside or on the surface of the virtual space.
[0013] The coordinates of the observation point are determined based on the virtual space, the perspective of the observation point, and the three-dimensional normal vectors of multiple measurement points in the sub-measurement point set.
[0014] Optionally, the coordinates of the observation point are determined based on the virtual space, the viewpoint of the observation point, and the three-dimensional normal vectors of multiple measurement points in the sub-measurement point set, including:
[0015] The viewing angle width of the observation point is determined based on the longest diagonal of the virtual space;
[0016] The coordinates of the initial observation point are determined based on the viewing width and viewing angle of the observation point.
[0017] Determine the coordinates of the center point of this virtual space;
[0018] The distance between the observation point and the center point is determined based on the coordinates of the center point of the virtual space, the coordinates of the initial observation point, the viewing angle of the observation point, and the viewing angle width of the observation point.
[0019] The normal vector of the center point is determined based on the three-dimensional normal vectors of multiple measuring points in the sub-measuring point set;
[0020] Project the distance between the observation point and the center point onto the normal vector of the center point to determine the coordinates of the observation point.
[0021] Optionally, the 3D model of the component and the sub-measurement point set are located in the same coordinate system;
[0022] Based on the coordinates of the observation point, the data points of the 3D model of the component are filtered to obtain the target 3D model, including:
[0023] Connect the observation point to multiple measurement points on the 3D model of the component, and remove the data points of the 3D model located on the connecting line to obtain the target 3D model.
[0024] Optionally, a screenshot operation is performed on the target 3D model to obtain a target image containing the target 3D model, including:
[0025] Based on the preset display window size of the size report, a screenshot is taken of the page containing the target 3D model to obtain a target image containing the target 3D model.
[0026] Optionally, a size report is generated based on each of the sub-measurement point sets and the corresponding target image, including:
[0027] Obtain the set of measurement points corresponding to the sub-set of measurement points; multiple measurement points in this set are the actual measured values corresponding to the measurement points;
[0028] This dimension report is generated based on each sub-measurement point set, the corresponding target image, and the measurement point set.
[0029] Optionally, the measurement point information may also include the area name of the corresponding measurement point; and the area names of multiple measurement points in each sub-measurement point set are the same.
[0030] This application also discloses a size report generation apparatus, which includes:
[0031] The acquisition module is used to acquire a set of measurement points for a component; the set of measurement points includes multiple sub-sets of measurement points; each sub-set of measurement points includes measurement point information for multiple measurement points; the measurement point information includes the three-dimensional coordinates and three-dimensional normal vector of the corresponding measurement point; the angle deviation of the three-dimensional normal vector of any two measurement points is less than or equal to a first preset threshold; the deviation of the preset dimension coordinates of any two measurement points is less than or equal to a second preset threshold.
[0032] The observation point coordinate determination module is used to determine the coordinates of each observation point for each sub-set of measurement points based on the observation point's perspective, the three-dimensional coordinates of multiple measurement points in the sub-set of measurement points, and the three-dimensional normal vector.
[0033] The filtering module is used to filter the data points of the 3D model of the component based on the coordinates of the observation point to obtain the target 3D model;
[0034] The screenshot module is used to take a screenshot of the target 3D model and obtain a target image containing the target 3D model.
[0035] The generation module is used to generate a size report based on each of the sub-measurement point sets and the target image corresponding to each sub-measurement point set.
[0036] In another aspect, this application also discloses an electronic device including a processor and a memory, wherein the memory stores at least one instruction, at least one program, code set, or instruction set, the at least one instruction, the at least one program, the code set, or the instruction set being loaded and executed by the processor to implement the above-described size report generation method.
[0037] In another aspect, this application also discloses a computer storage medium storing at least one instruction or at least one program, which is loaded and executed by a processor to implement the above-described size report generation method.
[0038] By adopting the above technical solution, the dimension report generation method provided in this application has the following beneficial effects:
[0039] The method for generating this dimension report includes the following steps: First, obtain a set of measurement points for the component; this set of measurement points includes multiple sub-sets of measurement points; each sub-set of measurement points includes measurement point information for multiple measurement points; the measurement point information includes the three-dimensional coordinates and three-dimensional normal vectors of the corresponding measurement points; the angular deviation of the three-dimensional normal vectors of any two measurement points is less than or equal to a first preset threshold; the deviation of the preset dimension coordinates of any two measurement points is less than or equal to a second preset threshold; then, for each sub-set of measurement points, determine the coordinates of the observation point based on the viewpoint, the three-dimensional coordinates of the multiple measurement points in the sub-set of measurement points, and the three-dimensional normal vectors; based on the coordinates of the observation point, filter the data points of the three-dimensional model of the component to obtain the target three-dimensional model; perform a screenshot operation on the target three-dimensional model to obtain a target image containing the target three-dimensional model; generate a dimension report based on each sub-set of measurement points and the target image corresponding to each sub-set of measurement points. The process of determining the target image described above is not only simple, but it can also remove the parts of the measurement points in the sub-measurement point set that are obstructed from the observation point on the 3D model of the component, so that the unobstructed parts can be directly seen in the final target 3D model. This makes it easier for relevant personnel to intuitively understand the position of the measurement points on the component, and facilitates the size analysis and processing of the component. Attached Figure Description
[0040] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0041] Figure 1 This is a diagram illustrating one possible application scenario for this application;
[0042] Figure 2 This is a flowchart of an optional method for generating a dimension report according to this application;
[0043] Figure 3 This is a schematic diagram of an optional process for determining the coordinates of an observation point in this application;
[0044] Figure 4 This is a model diagram of an optional method for determining the coordinates of an observation point in this application;
[0045] Figure 5 This is a schematic diagram of another optional process for determining the coordinates of the observation point in this application;
[0046] Figure 6 This is a schematic diagram of an optional dimension report generation device according to this application;
[0047] Figure 7 This is a schematic diagram of the hardware structure of an electronic device for implementing the dimension report generation method provided in this application embodiment. Detailed Implementation
[0048] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0049] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or server that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or devices.
[0050] See Figure 1 As shown, Figure 1This is an optional application scenario diagram of this application. The scenario includes a terminal or server 01 and a dimension report generation module 011 located on the terminal or server 01. The dimension report generation module 011 is used to acquire a set of measurement points for a component; the set of measurement points includes multiple sub-sets of measurement points; each sub-set of measurement points includes measurement point information for multiple measurement points; the measurement point information includes the three-dimensional coordinates and three-dimensional normal vectors of the corresponding measurement points; the angular deviation of the three-dimensional normal vectors of any two measurement points is less than or equal to a first preset threshold; the deviation of the preset dimension coordinates of any two measurement points is less than or equal to a second preset threshold; then, for each sub-set of measurement points, the coordinates of the observation point are determined based on the viewpoint of the observation point, the three-dimensional coordinates of the multiple measurement points in the sub-set of measurement points, and the three-dimensional normal vectors; based on the coordinates of the observation point, the data points of the three-dimensional model of the component are filtered to obtain a target three-dimensional model; a screenshot operation is performed on the target three-dimensional model to obtain a target image containing the target three-dimensional model; a dimension report is generated based on each sub-set of measurement points and the target image corresponding to each sub-set of measurement points.
[0051] Optionally, the terminal can be a mobile terminal or a computer terminal.
[0052] A server can be a standalone physical server, a service cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms. A server may include network communication units, processors, and memory, among other things. A server can provide image transmission services.
[0053] In some possible implementations, the server can be a node device in the blockchain system, capable of sharing acquired and generated information with other node devices in the blockchain system, enabling information sharing among multiple node devices. Multiple node devices in the blockchain system can be configured with the same blockchain, which consists of multiple blocks, and adjacent blocks are related, ensuring that any data tampering in any block can be detected by the next block. This prevents data tampering in the blockchain and guarantees the security and reliability of the data in the blockchain.
[0054] The following describes a specific embodiment of a dimension report generation method according to this application. Figure 2This is a flowchart illustrating an optional size report generation method according to this application. This specification provides method operation steps as shown in the embodiments or flowcharts, but based on conventional or non-inventive labor, more or fewer operation steps may be included. The order of steps listed in the embodiments is merely one possible execution order among many and does not represent the only execution order. In actual system or server product execution, the method can be executed sequentially according to the embodiments or drawings, or in parallel (e.g., in a parallel processor or multi-threaded processing environment). Specifically, as shown... Figure 2 As shown, the method may include:
[0055] S201: Obtain the measurement point set of the component; the measurement point set includes multiple sub-measurement point sets; each sub-measurement point set includes measurement point information of multiple measurement points; the measurement point information includes the three-dimensional coordinates and three-dimensional normal vector of the corresponding measurement point; the angle deviation of the three-dimensional normal vector of any two measurement points is less than or equal to a first preset threshold; the deviation of the preset dimension coordinates of any two measurement points is less than or equal to a second preset threshold.
[0056] In one possible embodiment, in order to further ensure that the measuring points in each sub-measuring point set belong to the same region of the component, the measuring point information also includes the region name of the corresponding measuring point; and the region names of multiple measuring points in each sub-measuring point set are the same.
[0057] Optionally, to further ensure that the measurement points in each sub-measurement point set belong to the same area of the component, the spatial distance between adjacent measurement points in each sub-measurement point set is less than or equal to a third preset threshold, so as to ensure that the measurement points in the sub-measurement point set are relatively densely distributed.
[0058] The multiple sub-measurement point sets in the aforementioned measurement point set can be measurement point sets of the same part of the component, or measurement point sets corresponding to different parts of the component; that is, the same part of the component can correspond to one sub-measurement point set, or it can correspond to multiple sub-measurement point sets; whether the same part of the component corresponds to one or multiple sub-measurement point sets can be determined based on the number of measurement points, that is, the number of measurement points contained in the sub-measurement point set is less than or equal to the fourth preset threshold, so that the number of measurement points can be displayed on one page, making it convenient for users to view without having to flip through pages to view and compare.
[0059] In this embodiment, the preset dimensions include three dimensions: x, y, and z. For any measurement point, its three-dimensional coordinates can be represented as (x, y, z), and its three-dimensional normal vector can be represented as (i, j, k).
[0060] The 3D model of the component mentioned below can be located on the corresponding 3D model drawing interface. The format of the 3D model can be .obj or .gltf, and there is no limitation here.
[0061] Optionally, the report generation module is based on a B / S architecture for the entire system. The report generation module may include a front-end module, a data entry module, a data pagination module, an image processing module, a report generation module, and a database module, etc.
[0062] The front-end module is mainly responsible for human-computer interaction, data interaction, 3D model generation, and screenshot acquisition of target images. The other modules are back-end modules. The data entry module provides a data entry interface. The data pagination module is used to paginate the above-mentioned measurement point set and the measurement point set below. Data on one page forms a sub-measurement point set or sub-measurement point set. This data will be stored in the database module for easy subsequent access. The database also stores dimension report template data (this is just an example; the database can also store other required data depending on the data requirements of the dimension report). The image processing module can be used to identify the target 3D model in the target image below and mark it with a rectangle.
[0063] S203: For each sub-set of measurement points, determine the coordinates of the observation point based on the viewpoint of the observation point, the three-dimensional coordinates of multiple measurement points in the sub-set of measurement points, and the three-dimensional normal vector.
[0064] In one possible embodiment, see [reference] Figure 3 , Figure 3 This is a schematic diagram of an optional process for determining the coordinates of an observation point according to this application. Step S203 can be specifically described as follows:
[0065] S2031: Determine the virtual space based on the three-dimensional coordinates of multiple measuring points in the sub-measuring point set; each of the multiple measuring points is located inside or on the surface of the virtual space.
[0066] See Figure 4 , Figure 4 This is a model diagram of an optional method for determining the coordinates of observation points according to this application. The subset of measurement points includes measurement point 1, measurement point 2, ..., measurement point N; the virtual space is... Figure 4 The dashed cube shown.
[0067] Optionally, the virtual space can be determined by connecting the measurement points with the maximum and minimum values on the X-axis, Y-axis, and Z-axis of the measurement point set. To simplify the calculation process, the boundary surfaces of the cube can be determined based on some of the measurement points with limit values on the above three axes, and then the cube can be determined. The space formed by this cube is the virtual space. This is only required if all measurement points in the sub-measurement point set are located within or on the surface of the virtual space.
[0068] S2033: Determine the coordinates of the observation point based on the virtual space, the perspective of the observation point, and the three-dimensional normal vectors of multiple measurement points in the sub-measurement point set.
[0069] In one possible embodiment, see [reference] Figure 5 , Figure 5 This is a schematic diagram illustrating another optional process for determining the coordinates of the observation point in this application. Step S2033 above can be specifically described as follows:
[0070] S501: Determine the viewing angle width of the observation point based on the longest diagonal of the virtual space.
[0071] In this embodiment, it will be based on Figure 4 The model shown illustrates the process of determining the coordinates of the observation point in this application, such as... Figure 4 As shown, AB is the longest diagonal of this virtual space. ∠AP1B can be the viewpoint of the observation point mentioned above, for example, it can be 60 degrees.
[0072] S503: Determine the coordinates of the initial observation point based on the viewing angle width and viewing angle of the observation point.
[0073] In this embodiment, P1 is the determined initial observation point. The viewing angle of the observation point can be a pre-set known quantity. The position of P1 can be determined based on the viewing angle width AB and the viewing angle.
[0074] S505: Determine the coordinates of the center point of the virtual space.
[0075] In this embodiment, when the virtual space is determined in step S2031, that is, the coordinates of each point in the virtual space are determined, the coordinates of the center point of the virtual space can be determined based on the coordinates of these points using a space volume center point solving algorithm. Of course, if the virtual space is a cuboid or a cube, refer to [reference needed]. Figure 4 Then the intersection of the two longest intersecting diagonals of the virtual space can be determined as the center point of the virtual space.
[0076] S507: Determine the distance between the observation point and the center point based on the coordinates of the center point of the virtual space, the coordinates of the initial observation point, the viewing angle of the observation point, and the viewing angle width of the observation point.
[0077] See Figure 4 Given that ∠AP1B is 60 degrees and the coordinates of points A, B, P1, and M are known, the distance MP1 between the observation point and the center point can be calculated using the triangle correlation algorithm.
[0078] S509: Determine the normal vector of the center point based on the three-dimensional normal vectors of multiple measuring points in the sub-measuring point set.
[0079] In this embodiment, the normal vector of the center point is n→=(i1,j1,k1).
[0080] S511: Project the distance between the observation point and the center point onto the normal vector of the center point to determine the coordinates of the observation point.
[0081] In this embodiment, MP is the distance projected onto the normal vector n→=(i1,j1,k1) from the distance MP1 mentioned above, and point P is the observation point.
[0082] S205: Based on the coordinates of the observation point, filter the data points of the three-dimensional model of the component to obtain the target three-dimensional model.
[0083] In one possible embodiment, the 3D model of the component and the sub-measurement point set are located in the same coordinate system, so the coordinates of the measurement points in the measurement point set can be directly correlated with the coordinates of the data points on the 3D model. To facilitate subsequent comparison between the measurement points and the measurement points, the measurement point set mentioned below is also located in the same coordinate system as the measurement point set. However, depending on actual needs, the coordinate systems of the three can also be different. But when comparing and calculating data from different coordinate systems, coordinate system transformation is required, i.e., conversion to the same coordinate system.
[0084] Step S205 can be specifically described as follows: Connect the observation point to multiple measurement points on the 3D model of the component, and remove the data points of the 3D model located on the connecting lines to obtain the target 3D model. This removes the local components that obstruct the sub-measurement point set.
[0085] Optionally, the above process of removing data points from the 3D model on the connection line can be deletion, hiding, or a combination of both. There are no restrictions here, as long as the 3D model finally displayed on the page is a model without occluded sub-measurement point sets.
[0086] S207: Perform a screenshot operation on the target's 3D model to obtain a target image containing the target's 3D model.
[0087] In one possible embodiment, step S207 can be specifically described as: taking a screenshot of the page containing the target 3D model based on the preset display window size of the size report, and obtaining a target image containing the target 3D model.
[0088] In this embodiment, when the size of the display window corresponding to the target image on the size report is larger than the size of the target 3D model, the target image that is equivalent to the size of the display window can be directly cropped; otherwise, the cropped target image needs to be reduced in size.
[0089] Optionally, after capturing an initial image containing the target 3D model, image recognition technology can be used to identify the target 3D model in the initial image and mark it with a rectangle so that relevant personnel can distinguish the model diagram corresponding to the sub-measurement point set.
[0090] In this initial image, the information for each measurement point in each sub-measurement point set includes the two-dimensional coordinates of the corresponding measurement point. One possible format for the measurement point information of a sub-measurement point set is as follows:
[0091]
[0092] Here, a {} represents a measurement point, where x and y are the planar coordinates of the measurement point on the two-dimensional graphic, and tagName is the name of the measurement point (such as FL124H2R, UN072H1R, UN072H1L, FL123H1L in the above example). This name is consistent with the name of the measurement point on the three-dimensional model, which facilitates correspondence in the dimension report.
[0093] The backend service defines a suitable window to contain these measurement points and then extracts the image within that window to form the graphic displayed on the dimension report. Since the entire process does not involve image resolution processing, its resolution is the same as the transmitted image, making it convenient for users to view when applied to the dimension report.
[0094] S209: Generate a size report based on each of the sub-measurement point sets and the target image corresponding to each of the sub-measurement point sets.
[0095] In one possible embodiment, step S209 can be specifically described as: obtaining the measurement point set corresponding to the sub-measurement point set; multiple measurement points in the measurement point set are the actual measurement values corresponding to the measurement points; generating the size report based on each sub-measurement point set, the target image corresponding to each sub-measurement point set, and the measurement point set.
[0096] Optionally, the data contained in this measurement point set usually refers to the actual measurement data of a certain component, generally in DMO format.
[0097] Optionally, step S209 further includes: determining a set of comparison differences based on the set of measurement points and the set of measuring points; each difference in the set of comparison differences is determined based on the three-dimensional coordinates of the corresponding measurement point and the three-dimensional coordinates of the measuring point, and the set of comparison differences will be displayed in the corresponding display area of the size report later.
[0098] It should be noted that the set of measuring points contains the names of the measuring points, and correspondingly, the set of measurement points also contains the names of the measurement points. A pair of corresponding measuring point names and measurement point names are the same.
[0099] This application uses a 3D-manipulated "box model" (i.e., the aforementioned virtual space) to dynamically adjust the position of observation points in the model based on the measurement point information. Simultaneously, it utilizes the intersection relationship between the observation points and the model to hide or delete invalid model areas, thereby ensuring the accuracy and visibility of measurement points as much as possible when taking screenshots of the dimensional report. Furthermore, it employs target recognition and region localization technologies to segment and crop the image region, ultimately obtaining a valid part image region, ensuring no loss of image resolution and facilitating the retrieval of detailed part information in the dimensional report. It also achieves real-time data interaction through front-end and back-end interaction, with both report index data and image data transmitted in real time, allowing for timely adaptation to modifications and updates to the dimensional report. The entire image acquisition process is fully automated, while maintaining the resolution of the screenshots and simplifying human operation.
[0100] See Figure 6 , Figure 6 This is a schematic diagram of an optional dimension report generation apparatus according to this application. In another aspect, this application also discloses a dimension report generation apparatus, which includes:
[0101] The acquisition module 601 is used to acquire a set of measurement points for a component; the set of measurement points includes multiple sub-sets of measurement points; each sub-set of measurement points includes measurement point information for multiple measurement points; the measurement point information includes the three-dimensional coordinates and three-dimensional normal vector of the corresponding measurement point; the angle deviation of the three-dimensional normal vector of any two measurement points is less than or equal to a first preset threshold; the deviation of the preset dimension coordinates of any two measurement points is less than or equal to a second preset threshold.
[0102] The observation point coordinate determination module 603 is used to determine the coordinates of the observation point for each sub-measurement point set based on the observation point's perspective, the three-dimensional coordinates of multiple measurement points in the sub-measurement point set, and the three-dimensional normal vector.
[0103] The filtering module 605 is used to filter the data points of the three-dimensional model of the component based on the coordinates of the observation point to obtain the target three-dimensional model.
[0104] The screenshot module 607 is used to perform a screenshot operation on the target 3D model to obtain a target image containing the target 3D model;
[0105] The generation module 609 is used to generate a size report based on each of the sub-measurement point sets and the target image corresponding to each of the sub-measurement point sets.
[0106] In one possible embodiment, the observation point coordinate determination module is used to determine a virtual space based on the three-dimensional coordinates of multiple measuring points in the sub-measuring point set; each of the multiple measuring points is located inside or on the surface of the virtual space;
[0107] The coordinates of the observation point are determined based on the virtual space, the perspective of the observation point, and the three-dimensional normal vectors of multiple measurement points in the sub-measurement point set.
[0108] In one possible embodiment, the observation point coordinate determination module is used to determine the viewing angle width of the observation point based on the longest diagonal of the virtual space;
[0109] The coordinates of the initial observation point are determined based on the viewing width and viewing angle of the observation point.
[0110] Determine the coordinates of the center point of this virtual space;
[0111] The distance between the observation point and the center point is determined based on the coordinates of the center point of the virtual space, the coordinates of the initial observation point, the viewing angle of the observation point, and the viewing angle width of the observation point.
[0112] The normal vector of the center point is determined based on the three-dimensional normal vectors of multiple measuring points in the sub-measuring point set;
[0113] Project the distance between the observation point and the center point onto the normal vector of the center point to determine the coordinates of the observation point.
[0114] In one possible embodiment, the three-dimensional model of the component and the sub-measurement point set are located in the same coordinate system;
[0115] The filtering module is used to connect the observation point with multiple measurement points on the 3D model of the component, remove the data points of the 3D model located on the connecting line, and obtain the target 3D model.
[0116] In one possible embodiment, the screenshot module is used to perform a screenshot operation on the page where the target 3D model is located based on the preset display window size of the size report, so as to obtain a target image containing the target 3D model.
[0117] In one possible embodiment, the generation module is used to obtain the measurement point set corresponding to the sub-measurement point set; the multiple measurement points in the measurement point set are the actual measurement values corresponding to the measurement points;
[0118] This dimension report is generated based on each sub-measurement point set, the corresponding target image, and the measurement point set.
[0119] In one possible embodiment, the measurement point information also includes the region name of the corresponding measurement point; and the region names of multiple measurement points in each sub-measurement point set are the same.
[0120] This application provides a size report generation device, which includes a processor and a memory. The memory stores at least one instruction or at least one program segment, which is loaded and executed by the processor to implement the size report generation method provided in the above method embodiments.
[0121] Furthermore, Figure 7 This is a schematic diagram of the hardware structure of an electronic device for implementing the dimension report generation method provided in this application embodiment. The dimension report generation device may participate in or include the dimension report generation apparatus provided in this application embodiment. Figure 7 As shown, the size report generation device 70 may include one or more processors 702 (shown as 702a, 702b, ..., 702n in the figure) 702 (processor 702 may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.), a memory 704 for storing data, and a transmission device 706 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the I / O interface), a network interface, a power supply, and / or a camera. Those skilled in the art will understand that... Figure 7 The structure shown is for illustrative purposes only and does not limit the structure of the aforementioned electronic device. For example, the size report generation device 70 may also include a size... Figure 7 The more or fewer components shown, or having the same Figure 7 The different configurations shown.
[0122] It should be noted that the aforementioned one or more processors 702 and / or other data processing circuitry are generally referred to herein as "data processing circuitry". This data processing circuitry may be embodied, in whole or in part, in software, hardware, firmware, or any other combination thereof. Furthermore, the data processing circuitry may be a single, independent processing module, or may be wholly or partially integrated into any other element within the size report generation device 70 (or mobile device). As involved in the embodiments of this application, the data processing circuitry serves as a processor control mechanism (e.g., selection of a variable resistor termination path connected to an interface).
[0123] The memory 704 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the size report generation method described in the embodiments of this application. The processor 702 executes various functional applications and data processing by running the software programs and modules stored in the memory 704, thereby realizing the aforementioned size report generation method. The memory 704 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 704 may further include memory remotely located relative to the processor 702, and these remote memories can be connected to the size report generation device 70 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0124] The transmission device 706 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the communication provider of the size report generation device 70. In one example, the transmission device 706 includes a network interface controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In one embodiment, the transmission device 706 may be a radio frequency (RF) module for wireless communication with the Internet.
[0125] The display may be, for example, a touchscreen liquid crystal display (LCD) that allows the user to interact with the user interface of the size report generating device 70 (or a mobile device).
[0126] Embodiments of this application also provide a computer-readable storage medium, which can be disposed in a size report generation device to store at least one instruction or at least one program related to implementing the size report generation method in the method embodiment. The at least one instruction or the at least one program is loaded and executed by the processor to implement the size report generation method provided in the above method embodiment.
[0127] Optionally, in this embodiment, the storage medium may be located in at least one of the multiple network servers in a computer network. Optionally, in this embodiment, the storage medium may include, but is not limited to, various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0128] Embodiments of this application also provide a computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the size report generation method as provided in the method embodiments.
[0129] It should be noted that the order of the embodiments described above is merely for descriptive purposes and does not represent the superiority or inferiority of the embodiments. Furthermore, specific embodiments have been described above. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps described in the claims can be performed in a different order than that shown in the embodiments and still achieve the desired result. Additionally, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0130] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the device embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0131] The above description is only a preferred embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A method for generating a size report, characterized in that, include: Obtain a set of measurement points for the component; the set of measurement points includes multiple sub-sets of measurement points; each sub-set of measurement points includes measurement point information for multiple measurement points; the measurement point information includes the three-dimensional coordinates and three-dimensional normal vector of the corresponding measurement point; the angle deviation of the three-dimensional normal vector of any two measurement points is less than or equal to a first preset threshold; the deviation of the preset dimension coordinates of any two measurement points is less than or equal to a second preset threshold. For each sub-measurement point set, the coordinates of the observation point are determined based on the viewpoint of the observation point, the three-dimensional coordinates of multiple measurement points in the sub-measurement point set, and the three-dimensional normal vector. Based on the coordinates of the observation point, the data points of the three-dimensional model of the component are filtered to obtain the target three-dimensional model; A screenshot operation is performed on the target 3D model to obtain a target image containing the target 3D model; Generate a size report based on each of the sub-measurement point sets and the target image corresponding to each of the sub-measurement point sets; The determination of the coordinates of the observation point based on the viewpoint of the observation point, the three-dimensional coordinates of multiple measuring points in the sub-measuring point set, and the three-dimensional normal vector includes: The virtual space is determined based on the three-dimensional coordinates of multiple measuring points in the sub-measuring point set; each of the multiple measuring points is located inside or on the surface of the virtual space. The coordinates of the observation point are determined based on the virtual space, the perspective of the observation point, and the three-dimensional normal vectors of multiple measurement points in the sub-measurement point set.
2. The method for generating a size report according to claim 1, characterized in that, The process of determining the coordinates of the observation point based on the virtual space, the viewpoint of the observation point, and the three-dimensional normal vectors of multiple measurement points in the sub-measurement point set includes: The viewing angle width of the observation point is determined based on the longest diagonal of the virtual space; The coordinates of the initial observation point are determined based on the viewing angle width and the viewing angle of the observation point. Determine the coordinates of the center point of the virtual space; The distance between the observation point and the center point is determined based on the coordinates of the center point of the virtual space, the coordinates of the initial observation point, the viewing angle of the observation point, and the viewing angle width of the observation point. The normal vector of the center point is determined based on the three-dimensional normal vectors of multiple measuring points in the sub-measuring point set; The distance between the observation point and the center point is projected onto the normal vector of the center point to determine the coordinates of the observation point.
3. The method for generating a size report according to claim 1, characterized in that, The three-dimensional model of the component and the sub-measurement point set are located in the same coordinate system; The process of filtering data points of the 3D model of the component based on the coordinates of the observation point to obtain the target 3D model includes: The observation point is connected to multiple measurement points on the three-dimensional model of the component, and the data points of the three-dimensional model located on the connecting line are removed to obtain the target three-dimensional model.
4. The method for generating a size report according to claim 2, characterized in that, The step of taking a screenshot of the target 3D model to obtain a target image containing the target 3D model includes: Based on the preset display window size of the size report, a screenshot is taken of the page containing the target 3D model to obtain a target image containing the target 3D model.
5. The method for generating a size report according to claim 1, characterized in that, The step of generating a size report based on each of the sub-measurement point sets and the target image corresponding to each sub-measurement point set includes: Obtain the set of measurement points corresponding to the sub-measurement point set; multiple measurement points in the measurement point set are the actual measured values corresponding to the measurement points. The dimension report is generated based on each of the sub-measurement point sets, the target image corresponding to each of the sub-measurement point sets, and the measurement point set.
6. The method for generating a size report according to claim 1, characterized in that, The measurement point information also includes the region name of the corresponding measurement point; and the region names of multiple measurement points in each of the sub-measurement point sets are the same.
7. A size report generation device, characterized in that, include: An acquisition module is used to acquire a set of measurement points for a component; the set of measurement points includes multiple sub-sets of measurement points; each sub-set of measurement points includes the three-dimensional coordinates and three-dimensional normal vectors of multiple measurement points. The observation point coordinate determination module is used to determine the coordinates of the observation point for each sub-measurement point set based on the observation point's perspective, the three-dimensional coordinates of multiple measurement points in the sub-measurement point set, and the three-dimensional normal vector; the angle deviation of the three-dimensional normal vector between any two measurement points is less than or equal to a first preset threshold. The deviation of the preset dimension coordinates of any two of the plurality of measuring points is less than or equal to the second preset threshold. The filtering module is used to filter the data points of the three-dimensional model of the component based on the coordinates of the observation point to obtain the target three-dimensional model; The screenshot module is used to perform a screenshot operation on the target 3D model to obtain a target image containing the target 3D model; The generation module is used to generate a size report based on each of the sub-measurement point sets and the target image corresponding to each of the sub-measurement point sets; The determination of the coordinates of the observation point based on the viewpoint of the observation point, the three-dimensional coordinates of multiple measuring points in the sub-measuring point set, and the three-dimensional normal vector includes: The virtual space is determined based on the three-dimensional coordinates of multiple measuring points in the sub-measuring point set; each of the multiple measuring points is located inside or on the surface of the virtual space. The coordinates of the observation point are determined based on the virtual space, the perspective of the observation point, and the three-dimensional normal vectors of multiple measurement points in the sub-measurement point set.
8. An electronic device comprising a processor and a memory, the memory storing at least one instruction, at least one program, a code set, or an instruction set, the at least one instruction, the at least one program, the code set, or the instruction set being loaded and executed by the processor to implement the size report generation method as described in any one of claims 1-6.
9. A computer storage medium storing at least one instruction or at least one program, said at least one instruction or said at least one program being loaded and executed by a processor to implement the size report generation method as described in any one of claims 1-6.
Citation Information
Patent Citations
Method for rapidly generating shape detection report
CN110046335A