Projection optimization method, device, terminal and medium for human-machine collaborative assembly
By obtaining and constructing the target projection model, calculating the projection layout optimization model, and adjusting the position of the projector, the problem of poor flexibility in projection layout in human-machine collaborative assembly is solved, adaptive generation of projection layout is achieved, and assembly efficiency is improved.
Patent Information
- Application Number
- CN202410896400.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-07-05
AI Technical Summary
The existing technology has poor flexibility in projection layout in human-machine collaborative assembly, requiring manual adjustment of the projector position, which is time-consuming and inconvenient to flexibly respond to the assembly requirements of complex large-scale products.
By obtaining the initial pose of the target, constructing the target projection model, obtaining target key points and mapping relationships, building a projection layout optimization model based on this information, calculating and adjusting the projector position to achieve adaptive generation of the projection layout.
It improves the flexibility and adaptability of the projection layout, reduces the time to reconfigure the projection layout, and supports adaptive projection layout generation in human-machine collaborative assembly.
Smart Images

Figure CN118429428B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of high-precision assembly of large-sized complex parts, and in particular to a projection optimization method, device, terminal and medium for human-machine collaborative assembly. Background Art
[0002] Large-sized parts such as wall panels and skins are widely used in complex large products in the aviation, aerospace, shipbuilding and other industries. Due to the high degree of customization of parts for complex products, higher requirements are also placed on the work level of assemblers. Spatial augmented reality technology can project assembly process information directly onto the surface of parts, which has important engineering significance for helping assembly workers to perform assembly operations more conveniently. At present, relevant scholars have conducted research on spatial augmented reality technology in assembly sites, mainly using a fixed projection layout, which is mainly used for desktop assembly. This method has poor flexibility. When the projection layout changes, it takes a long time to reconfigure the projection layout, and the position of the projector needs to be adjusted manually, which is very inconvenient.
[0003] Therefore, the prior art still needs to be improved and enhanced. Summary of the invention
[0004] In view of the above-mentioned defects of the prior art, a projection optimization method, device, terminal and medium for human-machine collaborative assembly are provided, aiming to solve the problems in the prior art of poor flexibility during human-machine collaborative assembly and the need to manually adjust the projector position.
[0005] A first aspect of the present invention provides a projection optimization method for human-machine collaborative assembly, comprising:
[0006] Acquire a target initial position and posture, wherein the target initial position and posture include the initial position and posture of a target observer, a target projected object, and a target projector;
[0007] Constructing a target projection model, and mapping the projection scene in the target projection model based on the initial posture;
[0008] Acquire target key points, and acquire a target mapping relationship based on the target key points, wherein the target key points include corner points and assembly key points of the target projected object, and the target mapping relationship is a relationship between the target projected object and the projected image;
[0009] Building a projection layout optimization model based on the target mapping relationship, and calculating the target projection position based on the projection layout optimization model;
[0010] The position of the target projector is adjusted based on the target projection position.
[0011] The projection optimization method for human-machine collaborative assembly, wherein the step of obtaining the initial position and posture of the target includes:
[0012] Construct a field coordinate system, define an initial direction, and record the position parameters and posture parameters of the target observer, the target projected object, and the target projector as the target initial position based on the infrared marker method. The position parameters represent the position of the object in the field coordinate system, and the posture parameters represent the offset angle of the object relative to the initial direction.
[0013] The projection optimization method for human-machine collaborative assembly, wherein the building of the target projection model comprises:
[0014] Acquire target projector parameters, and model the target projector using a pinhole model based on the target projector parameters to obtain a target projector model;
[0015] Modeling the target observer based on a cylinder of the target size to obtain a target observer model;
[0016] Acquire key points and key surface information of the projected object, and model the projected object based on multiple sets of triangular facet formats formed by the key points and key surface information to obtain a target projected object model;
[0017] The target projection model is constructed based on the target projector model, the target observer model and the target projected object model.
[0018] The projection optimization method for human-machine collaborative assembly, wherein the mapping of the projection scene in the target projection model based on the initial posture includes:
[0019] Constructing a virtual coordinate system identical to the on-site coordinate system;
[0020] placing the target projector model, the target observer model and the target projected object model at positions corresponding to the position parameters in the virtual coordinate system based on the position parameters;
[0021] The target projector model, the target observer model and the target projected object model are rotated to position angles corresponding to the posture parameters based on the posture parameters and the initial direction.
[0022] The projection optimization method for human-machine collaborative assembly, wherein the step of acquiring a target mapping relationship based on the target key points comprises:
[0023] Obtaining a target intrinsic parameter matrix and a target extrinsic parameter matrix of the target projector;
[0024] A mapping relationship between each of the target key points and the corresponding two-dimensional pixel points on the projected image is calculated based on the target intrinsic parameter matrix and the target extrinsic parameter matrix.
[0025] The projection optimization method for human-machine collaborative assembly, wherein the construction of a projection layout optimization model based on the target mapping relationship comprises:
[0026] Performing an inverse operation on the position and size of the projected image based on the target key points, the target mapping relationship, and the position and posture of the target projector to obtain a target projected image;
[0027] Obtain target constraints, and based on the target constraints, construct the projection layout optimization model with the goal of maximizing the target projected image.
[0028] The projection optimization method for human-machine collaborative assembly, wherein the inverse operation of the position and size of the projected image based on the target key points, the target mapping relationship and the position and posture of the target projector to obtain the target projected image includes:
[0029] Acquire a target pixel point on the projected image corresponding to the target key point based on the target mapping relationship;
[0030] The projected image is transformed based on the target pixel point to obtain the target projected image that satisfies the position of the target pixel point.
[0031] A second aspect of the present invention provides a projection optimization device for human-machine collaborative assembly, comprising:
[0032] A posture acquisition module, used to acquire a target initial posture, wherein the target initial posture includes an initial posture of a target observer, a target projected object, and a target projector;
[0033] A construction module, used for constructing a target projection model, and mapping a projection scene in the target projection model based on the initial posture;
[0034] A mapping module, used to obtain target key points, and obtain a target mapping relationship based on the target key points, wherein the target key points include corner points and assembly key points of the target projected object, and the target mapping relationship is a relationship between the target projected object and the projected image;
[0035] An optimization module, used to construct a projection layout optimization model based on the target mapping relationship, and calculate the target projection position based on the projection layout optimization model;
[0036] An adjustment module is used to adjust the position of the target projector based on the target projection position.
[0037] The third aspect of the present invention provides a terminal, comprising: a processor, a storage medium communicatively connected to the processor, the storage medium being suitable for storing a plurality of instructions, and the processor being suitable for calling the instructions in the storage medium to execute the steps of implementing any of the above-mentioned projection optimization methods for human-machine collaborative assembly.
[0038] A fourth aspect of the present invention provides a storage medium, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the projection optimization method for human-machine collaborative assembly as described in any of the above items.
[0039] Beneficial effects: Compared with the prior art, the present invention provides a projection optimization method, device, terminal and medium for human-machine collaborative assembly. In the projection optimization method for human-machine collaborative assembly provided by the present invention, by obtaining the target initial posture, the target initial posture includes the initial posture of the target observer, the target projected object and the target projector, and then constructing a target projection model, mapping the projection scene in the target projection model based on the initial posture, further, obtaining the target key points, obtaining the target mapping relationship through the target key points, the target key points include the corner points and assembly key points of the target projected object, and the target mapping relationship is the relationship between the target projected object and the projected image, and then constructing a projection layout optimization model based on the target mapping relationship, calculating the target projection position based on the projection layout optimization model, and finally adjusting the position of the target projector based on the target projection position. By optimizing the projection scene of large-scale human-machine collaborative assembly through the projection optimization method for human-machine collaborative assembly provided by the present invention, the flexibility and adaptability of the projection layout can be effectively improved, and the adaptive generation of the projection layout in the human-machine collaborative environment is realized. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 A flowchart of an embodiment of a projection optimization method for human-machine collaborative assembly provided by the present invention;
[0041] Figure 2 A schematic diagram of a model structure in an embodiment of a projection optimization method for human-machine collaborative assembly provided by the present invention;
[0042] Figure 3 A schematic diagram of a projection scene in an embodiment of a projection optimization method for human-machine collaborative assembly provided by the present invention;
[0043] Figure 4 A schematic diagram of the structure of an embodiment of a projection optimization device for human-machine collaborative assembly provided by the present invention;
[0044] Figure 5A structural principle diagram of an embodiment of a terminal provided by the present invention. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solution and effect of the present invention clearer and more specific, the present invention is further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0046] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present invention refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be intermediate elements. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.
[0047] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as generally understood by those skilled in the art in the art to which the present invention belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as herein.
[0048] The projection optimization method for human-machine collaborative assembly provided by the present invention can be applied to a terminal with computing capability, and the terminal can execute the projection optimization method for human-machine collaborative assembly provided by the present invention to detect and locate the target position in the image to be processed.
[0049] Embodiment 1
[0050] At present, with the development of augmented reality, digital twins, IoTWith the development of technologies such as robots, assembly assistance technology has gradually shifted from passive information display to active adaptive guidance. Under the concept of human-machine collaboration, digital twin technology can provide a fusion and complementary adaptive augmented reality guidance method for the collaborative space between humans and robots. To this end, in this embodiment, a projection optimization method for human-machine collaborative assembly is provided, which performs adaptive projection layout optimization in the projection scene of the digital twin, improves the flexibility of the projection system, reduces the time consumed by reconfiguring the projection layout, and better supports human-machine collaborative assembly.
[0051] Specifically, in this embodiment, a projection optimization method for human-machine collaborative assembly is provided. Figure 1 As shown, the projection optimization method for human-machine collaborative assembly provided by the present invention comprises the following steps:
[0052] S 100. Acquire a target initial position and posture, wherein the target initial position and posture include initial positions and postures of a target observer, a target projected object, and a target projector.
[0053] Reference Figure 2 In this embodiment, the projection scene virtual-real mapping module is used to map the real scene to the terminal with computing power. After the real scene is mapped to the virtual scene, the reverse image generation module based on the key point performs the reverse generation of the projected image in the virtual scene. Finally, the projection layout is optimized based on the multi-factor projection layout optimization module. Specifically, in the projection scene virtual-real mapping stage, the positions of the observer, the projected object and the projector in the real projection scene are first obtained.
[0054] The obtaining of the initial position and posture of the target comprises:
[0055] Construct a field coordinate system, define an initial direction, and record the position parameters and posture parameters of the target observer, the target projected object, and the target projector as the target initial position based on the infrared marker method. The position parameters represent the position of the object in the field coordinate system, and the posture parameters represent the offset angle of the object relative to the initial direction.
[0056] When optimizing the projection scene of human-machine collaborative assembly, it is first necessary to obtain the on-site situation, collect real-world scene information, dynamically capture the environment of the manufacturing site through an infrared camera, and construct the on-site coordinate system.
[0057] Specifically, in the infrared camera motion capture environment at the manufacturing site, a projection coordinate system is constructed with the center ground position of the manufacturing site as the origin, and the vertical ground direction is Z Axis, ground direction is perpendicular to each other. X and YIn the projection coordinate system, the infrared marking point method is used to carry out the target observer O , the surface of the object on which the target is projected S , the target projector P The position parameters and the posture parameters of the marking points are obtained. The position parameters represent the position of the object in the scene coordinate system, and also represent the distance of the object from the origin in the scene coordinate system. X , Y , Z The distance in the direction is expressed as ( , , ) is used to represent the object; the posture parameter represents the offset angle of the object relative to the initial direction, expressed as ( , , ) to indicate its relative to the initial direction X , Y , Z The angle of rotation on the axis, specifically, the initial direction is a default direction vector set in advance.
[0058] Specifically, a set of marking points, the position parameters of the marking surface and the posture parameters are used to represent the posture of a rigid object, that is, the target projected object, in the projection space; for the target observer, the marking points of the torso position are used to determine its center position in the site plane, and there is no need to obtain the posture parameters; and the target projector obtains its optical center position as its position parameters, and it is necessary to obtain the posture parameters of the projector.
[0059] S 200. Construct a target projection model, and map the projection scene in the target projection model based on the initial posture.
[0060] The constructing of the target projection model comprises:
[0061] Acquire target projector parameters, and model the target projector using a pinhole model based on the target projector parameters to obtain a target projector model;
[0062] Modeling the target observer based on a cylinder of the target size to obtain a target observer model;
[0063] Acquire key points and key surface information of the projected object, and model the projected object based on multiple sets of triangular facet formats formed by the key points and key surface information to obtain a target projected object model;
[0064] The target projection model is constructed based on the target projector model, the target observer model and the target projected object model.
[0065] Specifically, mapping the real scene into a virtual scene also includes obtaining the target projection parameters, which include the projector projection ratio and size information of the projected image, and constructing a three-dimensional virtual projection space mapped to the physical space of the real scene based on the target projection parameters.
[0066] In this embodiment, the pinhole model is used to model the projection process for the target projector, and the position of the optical center of the projector is used as the center of the pinhole imaging. The projected image pixels are projected through the optical center for simulation based on the principle that light propagates in a straight line, wherein the projection ratio of the projector determines the range of the projection, and the size of the projected image determines the size of the projection enhancement information; for the target observer, the cylindrical area at the center of the torso is used to represent the occlusion of the projection by the human body, and when the projection simulation path is blocked by the cylinder corresponding to the observer, the projection is disturbed by the observer; for the projected object, the triangular patch format of the corresponding three-dimensional model containing point and surface information is used to express the spatial geometric information, and when the projected image pixels pass through the projection model and the triangular patch of the three-dimensional model generates an intersection, the description of the projection process is completed.
[0067] The mapping of the projection scene in the target projection model based on the initial posture includes:
[0068] Constructing a virtual coordinate system identical to the on-site coordinate system;
[0069] placing the target projector model, the target observer model and the target projected object model at positions corresponding to the position parameters in the virtual coordinate system based on the position parameters;
[0070] The target projector model, the target observer model and the target projected object model are rotated to position angles corresponding to the posture parameters based on the posture parameters and the initial direction.
[0071] That is to say, mapping the real scene into the virtual scene also includes mapping the projection scene. Specifically, a virtual coordinate system identical to the on-site coordinate system is constructed, and for the target projector, the target observer, and the target projected object, the position of the marker point under their initial posture is matched with the target initial posture, and the spatial posture is calculated.
[0072] Based on the position parameters, the target projector model, the target observer model and the target projected object model are placed at positions corresponding to the position parameters in the virtual coordinate system, and based on the posture parameters and the initial direction, the target projector model, the target observer model and the target projected object model are rotated to position angles corresponding to the posture parameters.
[0073] Specifically, the default initial position of each element is (0, 0, 0), the projection direction of the projector is (0, 1, 0), and the posture of the projected object is the same as that in the design coordinate system. For elements such as the projector, observer, and projected object, similarly, the position parameters ( , , ) indicates the n A point or surface is in the projected space coordinate system X , Y , Z The distance from the origin on the axis, the attitude parameters ( , , ) indicates that it is relative to the initial direction X , Y , Z The angle of rotation on the axis, the mapped scene graph is as follows Figure 3 shown.
[0074] S 300. Acquire target key points, and acquire a target mapping relationship based on the target key points, wherein the target key points include corner points and assembly key points of the target projected object, and the target mapping relationship is a relationship between the target projected object and the projected image.
[0075] The acquiring the target mapping relationship based on the target key point includes:
[0076] Obtaining a target intrinsic parameter matrix and a target extrinsic parameter matrix of the target projector;
[0077] A mapping relationship between each of the target key points and the corresponding two-dimensional pixel points on the projected image is calculated based on the target intrinsic parameter matrix and the target extrinsic parameter matrix.
[0078] Specifically, for the target projected object, a spatial projection point cloud on the target projected object is extracted, and a series of key points are selected from the spatial projection point cloud. The key points may be corner points on the target projected object or points required by the project, which are used to ensure that the actual effect during projection meets expectations.
[0079] Then, the target internal parameter matrix and the target external parameter matrix of the target projector are obtained, and the three-dimensional projection point in the projection space coordinate system is calculated by matrix calculation. To the projector 2D pixels on the 2D projected image The mapping relationship ,
[0080] is the target external parameter matrix:
[0081] ;
[0082] in, R and T represents the rotation and translation parameters of the projector in the projection space, which can be calculated based on the target initial pose parameters corresponding to the target projector ( , , , , , ) and the change relationship between the target initial posture parameters corresponding to the target projector is calculated.
[0083] is the target internal parameter matrix:
[0084] ;
[0085] in, represents the focal length of the projector, and Indicates the actual length of a unit pixel. and Represents the number of pixels in width and height in the image. When all the target key point information required for three-dimensional space projection is mapped to the key pixels of the two-dimensional projected image, a list of key pixels on the two-dimensional projected image can be obtained. L , the key pixel list L The positions of all pixels in the projected image are included in a certain regular order, which is the target mapping relationship.
[0086] S 400. Construct a projection layout optimization model based on the target mapping relationship, and calculate a target projection position based on the projection layout optimization model.
[0087] The constructing of a projection layout optimization model based on the target mapping relationship includes:
[0088] S410. Perform an inverse operation on the position and size of the projected image based on the target key points, the target mapping relationship, and the position and posture of the target projector to obtain a target projected image.
[0089] The inverse operation of the position and size of the projected image based on the target key point, the target mapping relationship and the position and posture of the target projector to obtain the target projected image includes:
[0090] S 411. Acquire a target pixel point on the projected image corresponding to the target key point based on the target mapping relationship;
[0091] S 412. Transform the projected image based on the target pixel point to obtain the target projected image that satisfies the position of the target pixel point.
[0092] Specifically, in the projected image, the original key pixel position is determined by the initial pixel list Indicates that its order is the same as the key pixel list L The order is the same as in the key pixel list. L With the original key pixel list The projected image is transformed according to the corresponding relationship between the positions in the image. A thin plate spline interpolation algorithm can be used to generate the projected image on the curved surface part, and an affine transformation interpolation algorithm can be used to generate the projected image on the plane, so as to obtain the inverse operation from the spatial augmented reality result to the two-dimensional target projected image.
[0093] S 420. Obtain a target constraint, and based on the target constraint, construct the projection layout optimization model with the goal of maximizing the target projected image.
[0094] Specifically, the goal is to maximize the area of the projected image of the target, and find the best projection position within the target reachable projection domain, which contains a total of 4 constraints. Constraint 1 expresses the focal length position of the projector. Constraint 2 expresses that the projector is not blocked by the position of the person. Constraint 3 expresses that the projection result has integrity. Constraint 4 expresses that the projector position is within the reachable area. The projection layout optimization model is:
[0095] ;
[0096] Among them, the optimization goal is to maximize the area of the projected image; constraint 1 is the focal length range of the projector; constraint 2 is the range in which the projector is not blocked by people; constraint 3 is the integrity of the projection result; constraint 4 is that the projector position is within the target reachable projection domain.
[0097] Based on the projection layout optimization model, under the four projection layout constraints, traverse N possible projection positions, and calculate the target projected image area ratio. The position corresponding to the largest target projected image result is retained as the projection layout optimization result to output the target projection position.
[0098] S 500. Adjust the position of the target projector based on the target projection position.
[0099] Specifically, the target projection position is the guidance position of the target projector in the current projection scene, and the target projector can be adjusted to the target projection position automatically or manually.
[0100] It can be seen that this embodiment projects the assembly scene of large-scale real parts into a virtual scene in a one-to-one ratio through a series of operations. Then, in the virtual scene, the size and shape of the two-dimensional projected image corresponding to each position of the projector in the reachable projection domain are reversely inferred based on the three-dimensional projected object. With the goal of maximizing the area of the projected image, an optimization model is constructed to obtain the best projection position, and the projector is moved to the best projection position to complete the projection optimization for human-machine collaborative assembly.
[0101] In this way, by constructing a projection simulation scene of virtual-reality mapping, the optical characteristics of the projection process are characterized in the virtual scene, providing a basis for the evaluation of the projection layout; then, by adopting the mapping method of three-dimensional projection feature points and two-dimensional projected image feature pixels, the inverse generation of the projected image is realized; further, by constructing a projection layout optimization model, the adaptive generation of the projection layout in a human-computer collaborative environment is realized, which solves the problems of poor flexibility and low adaptability of the projection layout in the spatial enhancement auxiliary process of existing large-scale products.
[0102] In summary, this embodiment provides a projection optimization method for human-machine collaborative assembly, by obtaining the target initial posture, the target initial posture includes the initial posture of the target observer, the target projected object and the target projector, and then constructing a target projection model, mapping the projection scene in the target projection model based on the initial posture, further, obtaining the target key points, obtaining the target mapping relationship through the target key points, the target key points include the corner points and assembly key points of the target projected object, the target mapping relationship is the relationship between the target projected object and the projected image, and then constructing a projection layout optimization model based on the target mapping relationship, calculating the target projection position based on the projection layout optimization model, and finally adjusting the position of the target projector based on the target projection position. The projection optimization method for human-machine collaborative assembly provided by this embodiment is used to optimize the projection scene of large-scale human-machine collaborative assembly, which can effectively improve the flexibility and adaptability of the projection layout, and realize the adaptive generation of the projection layout in the human-machine collaborative environment.
[0103] It should be understood that, although the various steps in the flowcharts given in the accompanying drawings of the present invention are displayed in sequence according to the indications of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear description in this article, the execution of the steps in the present invention is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps of the present invention may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0104] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory ( ROM ), programmable ROM ( PROM ), electrically programmable ROM ( EPROM ), electrically erasable programmable ROM ( EEPROM ) or flash memory. Volatile memory may include random access memory ( RAM) or external cache memory. By way of illustration and not limitation, RAM Available in various forms, such as static RAM ( SRAM ),dynamic RAM ( DRAM ),synchronous DRAM ( SDRAM ), Double Data Rate SDRAM ( DDRSDRAM ), Enhanced SDRAM ( ESDRAM ), Synchronous Link ( Synchlink ) DRAM ( SLDRAM )、Memory Bus( Rambus )direct RAM ( RDRAM ), Direct Memory Bus Dynamics RAM ( DRDRAM ), and memory bus dynamics RAM ( RDRAM )wait.
[0105] Embodiment 2
[0106] Based on the above embodiments, the present invention further provides a projection optimization device for human-machine collaborative assembly, and its functional module schematic diagram is shown in FIG. Figure 4 As shown, the projection optimization device for human-machine collaborative assembly includes:
[0107] A posture acquisition module, used to acquire a target initial posture, wherein the target initial posture includes an initial posture of a target observer, a target projected object, and a target projector, as specifically described in the first embodiment;
[0108] A construction module, used to construct a target projection model, and map the projection scene in the target projection model based on the initial posture, as described in the first embodiment;
[0109] A mapping module, used to obtain target key points, and obtain a target mapping relationship based on the target key points, wherein the target key points include corner points and assembly key points of the target projected object, and the target mapping relationship is a relationship between the target projected object and the projected image, as described in the first embodiment;
[0110] An optimization module, used to construct a projection layout optimization model based on the target mapping relationship, and calculate the target projection position based on the projection layout optimization model, as specifically described in the first embodiment;
[0111] An adjustment module is used to adjust the position of the target projector based on the target projection position, as specifically described in the first embodiment.
[0112] Embodiment 3
[0113] Based on the projection optimization method for human-machine collaborative assembly described in the first embodiment, the present invention further provides a terminal, whose principle block diagram can be shown as follows: Figure 5 The terminal includes a memory 10 and a processor 20. The memory 10 stores a projection optimization program for human-machine collaborative assembly. When the processor 10 executes the computer program, at least the following steps can be implemented:
[0114] Acquire a target initial position and posture, wherein the target initial position and posture include the initial position and posture of a target observer, a target projected object, and a target projector;
[0115] Constructing a target projection model, and mapping the projection scene in the target projection model based on the initial posture;
[0116] Acquire target key points, and acquire a target mapping relationship based on the target key points, wherein the target key points include corner points and assembly key points of the target projected object, and the target mapping relationship is a relationship between the target projected object and the projected image;
[0117] Building a projection layout optimization model based on the target mapping relationship, and calculating the target projection position based on the projection layout optimization model;
[0118] The position of the target projector is adjusted based on the target projection position.
[0119] Wherein, obtaining the initial position and posture of the target includes:
[0120] Construct a field coordinate system, define an initial direction, and record the position parameters and posture parameters of the target observer, the target projected object, and the target projector as the target initial position based on the infrared marker method. The position parameters represent the position of the object in the field coordinate system, and the posture parameters represent the offset angle of the object relative to the initial direction.
[0121] Wherein, constructing the target projection model includes:
[0122] Acquire target projector parameters, and model the target projector using a pinhole model based on the target projector parameters to obtain a target projector model;
[0123] Modeling the target observer based on a cylinder of the target size to obtain a target observer model;
[0124] Acquire key points and key surface information of the projected object, and model the projected object based on multiple sets of triangular facet formats formed by the key points and key surface information to obtain a target projected object model;
[0125] The target projection model is constructed based on the target projector model, the target observer model and the target projected object model.
[0126] Wherein, mapping the projection scene in the target projection model based on the initial posture includes:
[0127] Constructing a virtual coordinate system identical to the on-site coordinate system;
[0128] placing the target projector model, the target observer model and the target projected object model at positions corresponding to the position parameters in the virtual coordinate system based on the position parameters;
[0129] The target projector model, the target observer model and the target projected object model are rotated to position angles corresponding to the posture parameters based on the posture parameters and the initial direction.
[0130] Wherein, acquiring the target mapping relationship based on the target key point includes:
[0131] Obtaining a target intrinsic parameter matrix and a target extrinsic parameter matrix of the target projector;
[0132] A mapping relationship between each of the target key points and the corresponding two-dimensional pixel points on the projected image is calculated based on the target intrinsic parameter matrix and the target extrinsic parameter matrix.
[0133] Wherein, constructing a projection layout optimization model based on the target mapping relationship includes:
[0134] Performing an inverse operation on the position and size of the projected image based on the target key points, the target mapping relationship, and the position and posture of the target projector to obtain a target projected image;
[0135] Obtain target constraints, and based on the target constraints, construct the projection layout optimization model with the goal of maximizing the target projected image.
[0136] Wherein, performing an inverse operation on the position and size of the projected image based on the target key points, the target mapping relationship and the position and posture of the target projector to obtain the target projected image includes:
[0137] Acquire a target pixel point on the projected image corresponding to the target key point based on the target mapping relationship;
[0138] The projected image is transformed based on the target pixel point to obtain the target projected image that satisfies the position of the target pixel point.
[0139] Embodiment 4
[0140] The present invention also provides a storage medium storing one or more programs, which can be executed by one or more processors to implement the steps of the projection optimization method for human-machine collaborative assembly described in the above embodiment.
[0141] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A projection optimization method for human-machine collaborative assembly, characterized in that: include: Acquire a target initial position and posture, wherein the target initial position and posture include the initial position and posture of a target observer, a target projected object, and a target projector; Constructing a target projection model, and mapping a projection scene in the target projection model based on the initial position of the target; Acquire target key points based on the target projection model, and acquire a target mapping relationship based on the target key points, wherein the target key points include corner points and assembly key points of the target projected object, and the target mapping relationship is a relationship between the target projected object and the projected image; Building a projection layout optimization model based on the target mapping relationship and the position of the target observer, and calculating the target projection position based on the projection layout optimization model; adjusting the position of the target projector based on the target projection position; The obtaining of the initial position and posture of the target comprises: Constructing a scene coordinate system, defining an initial direction, and recording position parameters and posture parameters of the target observer, the target projected object, and the target projector as the target initial position based on an infrared marker method, wherein the position parameter represents the position of the object in the scene coordinate system, and the posture parameter represents the offset angle of the object relative to the initial direction; The constructing of the target projection model comprises: Acquire target projector parameters, and model the target projector using a pinhole model based on the target projector parameters to obtain a target projector model; Modeling the target observer based on a cylinder of the target size to obtain a target observer model; Acquire key points and key surface information of the target projected object, and model the target projected object based on multiple sets of triangular facet formats formed by the key points and key surface information to obtain a target projected object model; Constructing the target projection model based on the target projector model, the target observer model and the target projected object model; The mapping of the projection scene in the target projection model based on the initial position of the target includes: Constructing a virtual coordinate system identical to the on-site coordinate system; placing the target projector model, the target observer model and the target projected object model at positions corresponding to the position parameters in the virtual coordinate system based on the position parameters; Rotating the target projector model, the target observer model, and the target projected object model to a position angle corresponding to the posture parameter based on the posture parameter and the initial direction; The constructing of a projection layout optimization model based on the target mapping relationship and the position of the target observer includes: Performing an inverse operation on the position and size of the projected image based on the target key points, the target mapping relationship, and the position and posture of the target projector to obtain a target projected image; Acquire a target constraint, and based on the target constraint, construct the projection layout optimization model with the target projected image being maximized as the goal; The target constraints include that the projection distance is within the focal length range of the target projector, the target projector is not blocked by the target observer, the projection result has integrity, and the projection position is within the reachable area of the target projector.
2. The projection optimization method for human-machine collaborative assembly according to claim 1, characterized in that: The acquiring the target mapping relationship based on the target key point includes: Obtaining a target intrinsic parameter matrix and a target extrinsic parameter matrix of the target projector; A mapping relationship between each of the target key points and the corresponding two-dimensional pixel points on the projected image is calculated based on the target intrinsic parameter matrix and the target extrinsic parameter matrix.
3. The projection optimization method for human-machine collaborative assembly according to claim 1, characterized in that: The inverse operation of the position and size of the projected image based on the target key point, the target mapping relationship and the position and posture of the target projector to obtain the target projected image includes: Acquire a target pixel point on the projected image corresponding to the target key point based on the target mapping relationship; The projected image is transformed based on the target pixel point to obtain the target projected image that satisfies the position of the target pixel point.
4. A projection optimization device for human-machine collaborative assembly, characterized in that: The device comprises: A posture acquisition module, used to acquire a target initial posture, wherein the target initial posture includes an initial posture of a target observer, a target projected object, and a target projector; A construction module, used for constructing a target projection model, and mapping a projection scene in the target projection model based on the initial position of the target; A mapping module, used to obtain target key points based on the target projection model, and obtain a target mapping relationship based on the target key points, wherein the target key points include corner points and assembly key points of the target projected object, and the target mapping relationship is a relationship between the target projected object and the projected image; An optimization module, configured to construct a projection layout optimization model based on the target mapping relationship and the position of the target observer, and calculate the target projection position based on the projection layout optimization model; An adjustment module, configured to adjust the position of the target projector based on the target projection position; The obtaining of the initial position and posture of the target comprises: Constructing a scene coordinate system, defining an initial direction, and recording position parameters and posture parameters of the target observer, the target projected object, and the target projector as the target initial position based on an infrared marker method, wherein the position parameter represents the position of the object in the scene coordinate system, and the posture parameter represents the offset angle of the object relative to the initial direction; The constructing of the target projection model comprises: Acquire target projector parameters, and model the target projector using a pinhole model based on the target projector parameters to obtain a target projector model; Modeling the target observer based on a cylinder of the target size to obtain a target observer model; Acquire key points and key surface information of the target projected object, and model the target projected object based on multiple sets of triangular facet formats formed by the key points and key surface information to obtain a target projected object model; Constructing the target projection model based on the target projector model, the target observer model and the target projected object model; The mapping of the projection scene in the target projection model based on the initial position of the target includes: Constructing a virtual coordinate system identical to the on-site coordinate system; placing the target projector model, the target observer model and the target projected object model at positions corresponding to the position parameters in the virtual coordinate system based on the position parameters; Rotating the target projector model, the target observer model, and the target projected object model to a position angle corresponding to the posture parameter based on the posture parameter and the initial direction; The constructing of a projection layout optimization model based on the target mapping relationship and the position of the target observer includes: Performing an inverse operation on the position and size of the projected image based on the target key points, the target mapping relationship, and the position and posture of the target projector to obtain a target projected image; Acquire a target constraint, and based on the target constraint, construct the projection layout optimization model with the target projected image being maximized as the goal; The target constraints include that the projection distance is within the focal length range of the target projector, the target projector is not blocked by the target observer, the projection result has integrity, and the projection position is within the reachable area of the target projector.
5. A terminal, characterized in that: The terminal includes: a processor, a storage medium communicatively connected to the processor, the storage medium being suitable for storing a plurality of instructions, and the processor being suitable for calling the instructions in the storage medium to execute the steps of the projection optimization method for human-machine collaborative assembly as described in any one of claims 1 to 3 above.
6. A storage medium, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the projection optimization method for human-machine collaborative assembly as described in any one of claims 1-3.
Citation Information
Patent Citations
Receiver-based projection control method and device, equipment and readable storage medium
CN115767043A
Space positioning method and device based on AR auxiliary assembly
CN116468788A
