Turntable point planning method and device for automatic shooting of industrial parts

By acquiring the 3D model of industrial parts and their geometric surface relationships, establishing a shared edge-connected graph, and generating a shooting center that satisfies the camera's field of view and mechanism constraints, the problem of point number explosion and redundancy in industrial vision inspection is solved, and efficient turntable point planning and robot shooting are realized.

CN123181560APending Publication Date: 2026-11-27WEI JIAN TECHNOLOGY (ZHUHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611178829.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-05
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In industrial vision inspection and 3D reconstruction, existing technologies face challenges such as an explosion in the number of points, shaky shooting posture, path redundancy, and difficulties in robot execution when acquiring multi-view images of industrial parts with complex geometric structures. Furthermore, traditional mesh simplification cannot guarantee the coverage of the camera's field of view and the suitability of turntable shooting.

Method used

By acquiring the 3D model of the industrial part and its geometric surface relationships, a shared edge connected graph is established, coplanar connected components are extracted, geometric surfaces with complete boundary information are generated, and candidate shooting centers that satisfy the camera's field of view width and height and in-plane legality constraints are generated in the local UV plane. The turntable angle and robot shooting pose are solved by combining the mechanism's geometric relationship, and the shooting point is output.

Benefits of technology

It achieves turntable point coverage of every cameraable surface, meets the offset requirements of turntable mechanism and lens installation, reduces manual modeling and point adjustment costs, avoids repeated shooting of fragmented surfaces and accidental shooting of holes, and the output directly includes the pose of the camera and tool center point, which is convenient for robot execution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181560A_ABST
    Figure CN123181560A_ABST
Patent Text Reader

Abstract

The application relates to a turntable point planning method and device for automatic shooting of industrial parts, which comprises the following steps: obtaining a three-dimensional model of an industrial part and a geometric facet relationship thereof, establishing a shared edge connected graph in the same plane barrel according to the geometric facet relationship, extracting coplanar connected blocks from the shared edge connected graph, generating complete geometric facets with complete boundary information based on the coplanar connected blocks, and dividing the complete geometric facets into single-connected geometric facets; a local UV plane is established for each single-connected geometric facet, and candidate shooting centers meeting the camera field of view width-height and in-plane legality constraints are generated in the local UV plane; the turntable angle and the robot shooting pose are solved according to the candidate shooting centers and the mechanism geometric relationship, and the shooting point is output; the application can make the output turntable point cover each shootable functional surface, while meeting the turntable mechanism, lens installation bias and optical axis constraints, thereby reducing the cost of artificial modeling and point adjustment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of industrial automation inspection technology, and in particular to a turntable point planning method and device for automatic imaging of industrial parts. Background Technology

[0002] In industrial vision inspection and 3D reconstruction tasks, for industrial parts with complex geometries, high-integrity surface coverage needs to be achieved through multi-view image acquisition. Existing technologies generally adopt a patch grouping strategy based on mesh simplification or normal clustering, dividing the original triangular mesh into several approximately coplanar regions, and then planning the camera pose for each region.

[0003] However, industrial part CAD models often contain a large number of coplanar fragments after triangulation using STL, OBJ, or STEP. Directly generating shooting points for each triangle would lead to an explosion in the number of points, jittery shooting posture, path redundancy, and difficulties in downstream robot execution. Traditional mesh simplification focuses on visual geometric compression, but does not guarantee that the output area is suitable for camera field of view coverage and turntable shooting. Summary of the Invention

[0004] Based on this, it is necessary to provide a turntable position planning method and device for automatic shooting of industrial parts, which can enable the output turntable position to cover every functional surface that can be photographed, while satisfying the constraints of the turntable mechanism, lens mounting offset and optical axis, and reducing the cost of manual modeling and position adjustment.

[0005] Firstly, this application provides a turntable location planning method for automatic imaging of industrial parts, including: Obtain the 3D model of the industrial part and its geometric patch relationships, and establish a shared edge connected graph within the same planar bucket based on the geometric patch relationships by quantizing shared edges, and extract coplanar connected components from the shared edge connected graph; wherein, the geometric patch relationships include at least the triangle patch vertices, face IDs, shared edges, normalized normals, planar offsets and coplanar hash keys; A complete geometric surface with full boundary information is generated based on coplanar connected components, and the complete geometric surface is divided into simply connected geometric surfaces; the full boundary information includes the outer boundary and internal holes. For each simply connected geometric surface, a local UV plane is established, and candidate shooting centers that satisfy the camera's field of view width and height and in-plane legality constraints are generated within the local UV plane; The turntable angle and robot shooting pose are solved based on the candidate shooting center and the geometric relationship of the mechanism, and the shooting point is output. The geometric relationship of the mechanism includes the surface normal, optical axis plane constraint, reference turntable angle, camera field of view width and height, and installation offset from the lens center to the tool center point.

[0006] In one embodiment, obtaining a 3D model of an industrial part and its geometric patch relationships includes: Read the model triangles of the 3D model, and perform operations on the model triangles to unify the face ID, vertex order, and shared edge representation to obtain the input facets; For each input facet, calculate the normalized normal and plane offset, and construct a coplanar hash key; the coplanar hash key is used to put coplanar input faces into the same plane bucket.

[0007] In one embodiment, generating a complete geometric surface with full boundary information based on coplanar connected components includes: Extract the boundary edges that appear only once for each coplanar connected component to form outer boundary polygons and hole polygons, and generate a complete geometric surface that retains the hole and source face ID based on the outer boundary polygons and hole polygons.

[0008] In one embodiment, dividing a complete geometric surface into simply connected geometric surfaces includes: Regions with holes, recessed corridors, and complete geometric surfaces that cannot be fully covered by a single scan are divided into simply connected rectangular sub-regions.

[0009] In one embodiment, the number of holes in the hole region is reduced by a corridor secant or an equivalent topological secant to generate a simply connected rectangular subregion.

[0010] In one embodiment, generating candidate shooting centers that satisfy the camera's field of view width and height and in-plane validity constraints within the local UV plane includes: Under the constraint that the center line, upper and lower boundary lines and the coverage area of ​​the field of view rectangle meet the requirements, candidate imaging centers are generated along the scan line in the local UV plane.

[0011] Secondly, this application also proposes a turntable positioning planning device for automatic imaging of industrial parts, comprising: The coplanar fragment merging module is used to obtain the 3D model of industrial parts and their geometric patch relationships, and to establish a shared edge connected graph within the same planar bucket based on the geometric patch relationships by quantizing shared edges, and to extract coplanar connected components from the shared edge connected graph; wherein, the geometric patch relationship includes at least the triangle patch vertex, face ID, shared edge, normalized normal, planar offset and coplanar hash key; The perforated region splitting module is used to generate a complete geometric surface with complete boundary information based on coplanar connected components, and to divide the complete geometric surface into simply connected geometric surfaces; the complete boundary information includes the outer boundary and internal holes; The field-of-view coverage module is used to establish a local UV plane for each single-connected geometric surface and generate candidate shooting centers within the local UV plane that satisfy the camera's field-of-view width and height and in-plane legality constraints. The turntable analysis and installation chain inverse solution module is used to solve the turntable angle and robot shooting pose based on the candidate shooting center and the geometric relationship of the mechanism, and output the shooting point. The geometric relationship of the mechanism includes the surface normal, optical axis plane constraint, reference turntable angle, camera field of view width and height, and installation offset from the lens center to the tool center point.

[0012] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of an embodiment of the method of the first aspect.

[0013] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of an embodiment of the method of the first aspect.

[0014] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of an embodiment of the method of the first aspect.

[0015] The aforementioned method and apparatus for turntable location planning for automatic imaging of industrial parts acquires the 3D model of the industrial part and its geometric patch relationships. Based on these geometric patch relationships, a shared edge connected graph is established within the same planar bucket using quantized shared edges. Coplanar connected components are then extracted from this graph. The geometric patch relationships include at least triangular patch vertices, face IDs, shared edges, normalized normals, planar offsets, and coplanar hash keys. A complete geometric surface with full boundary information is generated based on the coplanar connected components, and this complete geometric surface is then divided into simply connected geometric surfaces. The complete boundary information includes outer boundaries and internal holes. For each single-connected geometric surface, a local UV plane is established, and candidate shooting centers that satisfy the camera's field of view width and height and in-plane legality constraints are generated within the local UV plane. Based on the candidate shooting centers and the mechanism's geometric relationship, the turntable angle and robot shooting pose are solved, and the shooting points are output. The mechanism's geometric relationship includes the surface normal, optical axis plane constraint, reference turntable angle, camera's field of view width and height, and the installation offset from the lens center to the tool center point, so that the output turntable points can cover each shooting functional surface, while satisfying the turntable mechanism, lens installation offset, and optical axis constraints, thereby reducing the cost of manual modeling and point adjustment. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 This is a flowchart illustrating a turntable location planning method for automatic imaging of industrial parts in one embodiment. Figure 2 This is a structural block diagram of a turntable positioning planning device for automatic imaging of industrial parts in one embodiment. Figure 3 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0018] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0019] It should be noted that the terms "first," "second," etc., used in this application can be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from the second element. The terms "comprising" and "having," and any variations thereof, used in this application, are intended to cover non-exclusive inclusion. The term "multiple" used in this application refers to two or more. The term "and / or" used in this application refers to one of the embodiments, or any combination of multiple embodiments.

[0020] In traditional techniques, industrial part CAD models often contain a large number of coplanar fragments after triangulation using STL, OBJ, or STEP. Directly generating shooting points for each triangle would lead to an explosion in the number of points, jittery shooting posture, path redundancy, and difficulties in downstream robot execution. Traditional mesh simplification focuses on visual geometric compression, but does not guarantee that the output area is suitable for camera field of view coverage and turntable shooting.

[0021] Therefore, the main drawbacks of existing technologies include: too many planning points at the fragmented level, which cannot reflect the actual functional surface; directly covering the perforated area with the outer contour will result in holes or empty areas being captured; scanning only according to the center line is prone to missing narrow areas caused by changes in the upper and lower boundaries; if the turntable angle constraint is solved by numerical iteration, it is easy to produce inexplicable unsolvable or abrupt changes.

[0022] Based on this, this application proposes a turntable point planning method for automatic shooting of industrial parts, which changes the model processing target from surface reduction for display to functional surface reconstruction for shooting planning, forming a two-layer structure of FullFaces and SimpleConnectedFaces, and strings together hole splitting, scanning band coverage, hole filling, turntable angle analysis and TCP (Tool Center Point) pose inverse solution into a closed loop.

[0023] Specifically, this application shifts the model processing objective from ordinary surface reduction to functional surface reconstruction oriented towards shooting planning: first, fragmented surfaces are merged according to coplanarity and shared edges, while retaining holes and source surface IDs; then, regions with holes or complexities are split into single connected surfaces, and the axis-aligned orthogonal regions are further rectangularized; finally, scanline strip coverage, legalization, hole filling, and turntable angle analytical solution are performed on each single connected surface.

[0024] Understandably, the automatic generation method for robot / camera shooting points provided in this application, which generates points covering every cameraable functional surface, simultaneously satisfies the constraints of the turntable mechanism, lens mounting offset, and optical axis, reducing the cost of manual modeling and point adjustment. This is achieved by first reconstructing fragmented triangular faces into cameraable functional surfaces based on coplanarity and shared edges, avoiding repeated shooting at the fragmented surface level; preserving holes and splitting them into single connected surfaces to avoid covering holes or empty areas as solid surfaces; generating a coverage center within the local UV plane of the single connected surface and checking the field of view rectangle to avoid missing boundary shots due to only scanning the centerline; and analytically solving the turntable angle, camera center, and TCP (Tool CenterPoint) pose based on optical axis plane constraints and lens mounting chain, so that the generated results directly become executable robot points.

[0025] It should be noted that the beneficial effects or technical problems solved by the embodiments of this application are not limited to this one, but may also be other implicit or related problems. For details, please refer to the description of the embodiments below.

[0026] Before introducing the specific embodiments of this application, the technical terms involved in this application will be explained: Functional surface: A coplanar connected region that is meaningful for shooting planning, obtained by merging triangular fragments.

[0027] A single connected surface is a functional surface without holes and that can be represented by a single simple polygon. It is the basic unit for planning shooting locations.

[0028] Optical axis plane constraint: A mechanism constraint that requires the camera's optical axis to be orthogonal to the normal of a preset plane.

[0029] Furthermore, the technical parameters involved in this application are explained with reference to the table below.

[0030]

[0031] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will be described below with reference to the accompanying drawings.

[0032] In one exemplary embodiment, such as Figure 1 As shown, a turntable location planning method for automatic imaging of industrial parts is provided, including the following steps 202 to 208. Wherein: Step 202: Obtain the 3D model of the industrial part and its geometric patch relationships, and establish a shared edge connected graph in the same planar bucket according to the geometric patch relationships by quantizing shared edges, and extract coplanar connected components from the shared edge connected graph; wherein, the geometric patch relationships include at least the triangle patch vertices, face IDs, shared edges, normalized normals, planar offsets and coplanar hash keys.

[0033] Optionally, obtaining the 3D model of the industrial part and its geometric facet relationships includes: reading the model triangles of the 3D model, performing operations on the model triangles to obtain input faces by unifying face IDs, vertex order, and shared edge representation; calculating the normalized normal and plane offset for each input facet, and constructing a coplanar hash key; the coplanar hash key is used to put coplanar input faces into the same planar bucket.

[0034] Specifically, the model triangles triangulated by STL, OBJ, or STEP are read through the coplanar fragment merging module, and the face IDs, vertex orders, and shared edge representations are unified to obtain the input face Fi={vi,k}. The geometric face relationships include face vertices, face IDs, adjacent edges, face normals, and the plane information of the face.

[0035] Furthermore, the normalized normal is calculated for each facet using the coplanar fragment merging module according to equation (1). And calculate the plane offset. Then construct the coplanar hash key according to equation (2). Among them, the coplanar hash key, also known as the planar hash key, belongs to the geometric facet relationship and is used to put potentially coplanar triangular fragments into the same candidate planar bucket, thereby reducing the scale of subsequent graph connectivity search. Within the same planar bucket, the shared edge connected graph of equation (3) is established by quantizing the shared edges. Extract coplanar connected components. This step merges visually displayed fragments into functional surface candidates for shooting planning, which can reduce the number of fragmented surface points and attitude jitter.

[0036] Among them, for input patches Define the unit normal, i.e., equation (1):

[0037] Through normal tolerance Planar bias tolerance Construct a planar key, i.e., equation (2):

[0038] Construct a graph with shared edges within the same Ki. ,in Equation (3) yields:

[0039] Step 204: Generate a complete geometric surface with complete boundary information based on the coplanar connected components, and divide the complete geometric surface into simply connected geometric surfaces; the complete boundary information includes the outer boundary and internal holes.

[0040] Optionally, generating a complete geometric surface with complete boundary information based on coplanar connected components includes: extracting boundary edges that appear only once for each coplanar connected component to form outer boundary polygons and hole polygons, and generating a complete geometric surface that retains the hole and source surface ID based on the outer boundary polygons and hole polygons.

[0041] For example, dividing a complete geometric surface into simply connected geometric surfaces includes: dividing a complete geometric surface containing holes, recessed corridors, and areas that cannot be completely covered by a single scan into simply connected rectangular sub-regions. Specifically, the hole regions are generated by decreasing the number of holes by one order using corridor secants or equivalent topological secants.

[0042] Specifically, the boundary edges that appear only once in each connected component are extracted using the perforated region splitting module according to equation (4), and the outer boundary polygon is further formed. and polygonal holes This generates a FullFace that preserves both the hole and the source face ID. The technical effect of this step is to preserve the semantics of the hole and avoid capturing empty areas by directly covering them with the outer contour in subsequent shots.

[0043] Furthermore, the perforated or complex FullFace is split into simply connected SimpleConnectedFaces using the perforated region splitting module. This is necessary when the FullFace contains holes, recessed corridors, multiple branches unsuitable for single-scan coverage, or is an axis-aligned orthogonal polygon that can be decomposed into rectangular sub-regions with area conservation. The perforated region is part of the functional region representation, and the resulting set of SimpleConnectedFaces is the direct object of subsequent image coverage.

[0044] Each connected component A FullFace is formed, whose boundary edge set is given by equation (4):

[0045] When splitting a FullFace into several simply connected surfaces, the cut cost can be minimized:

[0046] Step 206: Establish a local UV plane for each simply connected geometric surface, and generate candidate shooting centers within the local UV plane that satisfy the camera's field of view width and height and in-plane legality constraints.

[0047] For example, generating a candidate shooting center that satisfies the camera's field of view width and height and in-plane legality constraints in the local UV plane includes: generating a candidate shooting center along the scan line in the local UV plane while ensuring that the center line, upper and lower boundary lines and the coverage area of ​​the field of view rectangle meet the constraints.

[0048] Specifically, a local UV coordinate system (u,v) is established for each SimpleConnectedFace through the field-of-view coverage module, with the camera's field of view width and height as the coordinates. Generate candidate image centers. Here, scanning refers to calculating the intersection of polygons along the scan line within the local UV plane. and strip coverage area At the same time, check the center line, upper and lower boundary lines and the coverage area of ​​the field of view rectangle to reduce missed shots in narrow edge areas.

[0049] Among them, for a single connected surface Establish local base scan lines The intersection with the polygon is given by equation (5):

[0050] Width and height of field of view The candidate center vc uses a strip interval, i.e., equation (6):

[0051] The set of field coverages satisfies equation (7):

[0052] The feasibility score for each candidate shooting center is as follows:

[0053] Step 208: Solve the turntable angle and robot shooting pose based on the candidate shooting center and the geometric relationship of the mechanism, and output the shooting point; the geometric relationship of the mechanism includes the surface normal, optical axis plane constraint, reference turntable angle, camera field of view width and height, and installation offset from the lens center to the tool center point.

[0054] Here, the tool center point refers to the TCP (Tool Center Point). The turntable angle is part of the pose solution result, derived from... Solve the one-dimensional analytical expression and select the continuous solution according to the reference turntable angle.

[0055] Specifically, the turntable angle, camera center, optical axis direction, TCP position, and robot posture are solved for each candidate shooting center through the turntable angle analysis module and the installation chain inverse solution module. The mechanism geometry relationship includes the surface normal n, the optical axis plane constraint normal q, the reference turntable angle δ0, the camera field of view W,H, the offset lc from the lens center to the TCP, and the robot posture convention; among which the turntable angle is solved analytically according to equations (8) to (9), and the continuous solution is selected according to the reference turntable angle.

[0056] Wherein, if the normal of the optical axis plane is normal direction of the face is The turntable corner is Then the constraint is given by equation (8):

[0057] Where A = qxnx + qyny, = qxny+qynx, C=qznz. Let ρ=A2+B2, φ=atan2( A), the analytical solution is given by equation (9):

[0058] Optionally, coplanar merging can employ KD-tree adjacency or topological half-edge structures; perforated splitting can employ vertical or nearest-point corridors; and coverage centers can be generated by regular scanning, integer programming, or adaptive sampling.

[0059] The aforementioned turntable location planning method for automatic imaging of industrial parts acquires the 3D model of the industrial part and its geometric patch relationships. Based on these relationships, a shared edge connected graph is established within the same planar bucket using quantized shared edges. Coplanar connected components are then extracted from this graph. The geometric patch relationships include at least triangular patch vertices, face IDs, shared edges, normalized normals, planar offsets, and coplanar hash keys. A complete geometric surface with full boundary information is generated based on the coplanar connected components, and this complete geometric surface is then divided into simply connected geometric surfaces. The complete boundary information includes outer boundaries and internal holes. For each simply connected geometric surface, a local UV plane is established, and candidate shooting centers that satisfy the camera's field of view width and height and in-plane legality constraints are generated within the local UV plane. Based on the candidate shooting centers and the mechanism's geometric relationship, the turntable angle and robot shooting pose are solved, and the shooting points are output. The mechanism's geometric relationship includes the surface normal, optical axis plane constraint, reference turntable angle, camera's field of view width and height, and the installation offset from the lens center to the tool center point, so that the output turntable points can cover each shooting functional surface, while satisfying the turntable mechanism, lens installation offset, and optical axis constraints, thereby reducing the cost of manual modeling and point adjustment.

[0060] Furthermore, the embodiments of this application can significantly reduce redundant shooting points caused by fragmented surfaces, avoid accidental shooting of holes or missed shooting of narrow edges in areas with holes, and the output directly includes the camera and TCP pose, which is convenient for robot execution.

[0061] Specifically, the embodiments of this application focus on the reconstruction of coplanar connected functional surfaces for shooting planning rather than visual display, using planar hash keys. And shared edge connected graph Fragmented triangles are merged into candidate functional surfaces for shooting, thereby reducing redundant points. A two-layer functional region representation using FullFace and SimpleConnectedFace is employed; FullFace retains the outer boundary and holes, while SimpleConnectedFace serves as the actual planning unit, thus avoiding missed shots due to holes and complex surfaces. A combined coverage strategy of strip scanline coverage, center validation, and mesh hole filling is used to achieve [the desired effect]. I_band and field of view width and height The output points cover each cameraable functional surface. Based on the one-dimensional analytical solution of the turntable angle under the optical axis plane constraint and the inverse solution of the installation chain, a continuous and executable robot TCP posture is output through A cos(δ)+B sin(δ)+C=0, the reference turntable angle δ0, and the offset lc.

[0062] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps. It is understood that the steps in different embodiments can be freely combined as needed, and all non-contradictory solutions formed by such combinations are within the scope of protection of this application.

[0063] Based on the same inventive concept, this application also provides a turntable location planning device for automatically photographing industrial parts, used to implement the aforementioned turntable location planning method for automatically photographing industrial parts. The solution provided by this device is similar to the solution described in the above method. Therefore, the specific limitations of one or more turntable location planning device embodiments for automatically photographing industrial parts provided below can be found in the limitations of the turntable location planning method for automatically photographing industrial parts described above, and will not be repeated here.

[0064] In one exemplary embodiment, such as Figure 2 As shown, a turntable positioning planning device 900 for automatic imaging of industrial parts is provided, including: a coplanar fragment merging module 901, a perforated area splitting module 902, a field of view coverage module 903, and a turntable analysis and installation chain inverse solution module 904, wherein: The coplanar fragment merging module 901 is used to obtain the 3D model of an industrial part and its geometric patch relationships, and to establish a shared edge connected graph in the same planar bucket according to the geometric patch relationships by quantizing shared edges, and to extract coplanar connected components from the shared edge connected graph; wherein, the geometric patch relationships include at least the triangle patch vertices, face IDs, shared edges, normalized normals, planar offsets and coplanar hash keys; The perforated region splitting module 902 is used to generate a complete geometric surface with complete boundary information based on coplanar connected components, and to divide the complete geometric surface into simply connected geometric surfaces; the complete boundary information includes the outer boundary and internal holes; The field of view coverage module 903 is used to establish a local UV plane for each single-connected geometric surface, and generate candidate shooting centers that satisfy the camera's field of view width and height and in-plane legality constraints within the local UV plane; The turntable analysis and installation chain inverse solution module 904 is used to solve the turntable angle and robot shooting pose based on the candidate shooting center and the geometric relationship of the mechanism, and output the shooting point. The geometric relationship of the mechanism includes the surface normal, optical axis plane constraint, reference turntable angle, camera field of view width and height, and installation offset from the lens center to the tool center point.

[0065] The various modules in the aforementioned turntable positioning planning device for automatic imaging of industrial parts can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the corresponding operations of each module.

[0066] In one exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 3 As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides the environment for the operation of the operating system and computer programs in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When executed by the processor, the computer program implements a turntable positioning planning method for automatic imaging of industrial parts. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.

[0067] Those skilled in the art will understand that Figure 3 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0068] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the method described above.

[0069] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-described method.

[0070] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps of the method described above.

[0071] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.

[0072] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0073] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A turntable location planning method for automatic imaging of industrial parts, characterized in that, The method includes: Obtain the 3D model of an industrial part and its geometric patch relationships, and establish a shared edge connected graph within the same planar bucket based on the geometric patch relationships by quantizing shared edges, and extract coplanar connected components from the shared edge connected graph; wherein, the geometric patch relationships include at least triangle patch vertices, face IDs, shared edges, normalized normals, planar offsets, and coplanar hash keys; Based on the coplanar connected components, a complete geometric surface with complete boundary information is generated, and the complete geometric surface is divided into simply connected geometric surfaces; the complete boundary information includes the outer boundary and internal holes; For each of the single-connected geometric surfaces, a local UV plane is established, and a candidate shooting center that satisfies the camera's field of view width and height and in-plane legality constraints is generated within the local UV plane; The turntable angle and robot shooting pose are solved based on the candidate shooting center and the geometric relationship of the mechanism, and the shooting point is output; the geometric relationship of the mechanism includes the surface normal, optical axis plane constraint, reference turntable angle, camera field of view width and height, and installation offset from the lens center to the tool center point.

2. The method according to claim 1, characterized in that, The acquisition of the 3D model of the industrial part and its geometric patch relationships includes: Read the model triangles of the 3D model, and perform operations on the model triangles to obtain the input facets by unifying the face ID, vertex order, and shared edge representation. For each input facet, the normalized normal and the plane offset are calculated, and a coplanar hash key is constructed; the coplanar hash key is used to place coplanar input facests into the same plane bucket.

3. The method according to claim 1, characterized in that, The generation of a complete geometric surface with full boundary information based on the coplanar connected components includes: For each coplanar connected component, extract the boundary edge that appears only once to form an outer boundary polygon and a hole polygon, and generate the complete geometric surface that retains the hole and the source surface ID based on the outer boundary polygon and the hole polygon.

4. The method according to claim 1, characterized in that, The step of dividing the complete geometric surface into simply connected geometric surfaces includes: The regions containing holes, recessed corridors, and the complete geometric surfaces that cannot be fully covered by a single scan are divided into simply connected rectangular sub-regions.

5. The method according to claim 4, characterized in that, The hole region is generated by decreasing the number of holes by one order through corridor secants or equivalent topological secants to form the simply connected rectangular subregion.

6. The method according to claim 1, characterized in that, The process of generating candidate shooting centers within the local UV plane that satisfy the camera's field of view width and height and in-plane legality constraints includes: Under the constraint that the center line, upper and lower boundary lines and the coverage area of ​​the field of view rectangle meet the requirements, the candidate imaging center is generated along the scan line in the local UV plane.

7. A turntable positioning device for automatic imaging of industrial parts, characterized in that, The device includes: The coplanar fragment merging module is used to obtain the 3D model of an industrial part and its geometric patch relationships, and to establish a shared edge connected graph within the same planar bucket based on the geometric patch relationships by quantizing shared edges, and to extract coplanar connected components from the shared edge connected graph; wherein, the geometric patch relationships include at least triangle patch vertices, face IDs, shared edges, normalized normals, planar offsets, and coplanar hash keys; A perforated region splitting module is used to generate a complete geometric surface with complete boundary information based on the coplanar connected block, and to divide the complete geometric surface into simply connected geometric surfaces; the complete boundary information includes the outer boundary and internal holes; The field-of-view coverage module is used to establish a local UV plane for each of the single-connected geometric surfaces, and generate candidate shooting centers that satisfy the camera's field-of-view width and height and in-plane legality constraints within the local UV plane; The turntable analysis and installation chain inverse solution module is used to solve the turntable angle and robot shooting pose based on the candidate shooting center and the geometric relationship of the mechanism, and output the shooting point. The geometric relationship of the mechanism includes the surface normal, optical axis plane constraint, reference turntable angle, camera field of view width and height, and installation offset from the lens center to the tool center point.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.