Method and device for determining screen conversion parameters from three-dimensional model to wearable equipment

By collecting the relationship between the target image and the three-dimensional model in the augmented reality display device, the device screen conversion parameters are calculated, which solves the problem of device resolution and field of view limitations, realizes the automatic positioning and scaling of the three-dimensional model, and improves the equipment's performance. Versatility and efficiency.

CN118823271APending Publication Date: 2024-10-22CHINA MOBILE SHANGHAI ICT CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410130234.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-30
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

When existing augmented reality display devices load three-dimensional models, the positioning and scaling effects are limited by the device resolution and field of view, resulting in poor versatility of devices from different manufacturers, high R&D investment, and difficulty in large-scale promotion.

Method used

By collecting the target image at the camera resolution of the wearable device, determining the image scale ratio and real-world position information corresponding to the 3D model, calculating the conversion parameters of the 3D model to the device screen, and realizing automated positioning and scaling.

Benefits of technology

It achieves the best matching effect of 3D models on different devices, makes full use of device hardware capabilities, improves versatility and efficiency, and reduces customized development costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118823271A_ABST
    Figure CN118823271A_ABST
Patent Text Reader

Abstract

The invention provides a method and a device for determining screen conversion parameters from a three-dimensional model to wearable equipment, relates to the technical field of augmented reality, and aims to provide a method for displaying a three-dimensional model matched with the wearable equipment in performance. The method comprises the following steps: determining a second target object image corresponding to a target three-dimensional model based on a first target object image collected by a camera of wearable equipment under a target camera resolution; based on the image scale proportion of the first target object image and the second target object image in the image coordinate system of the second target object image and the three-dimensional position information of a target matching object corresponding to the second target object image in the real world in the real world; determining three-dimensional position information of the first target object image in the real world; and on the basis of the three-dimensional position information of the first target object image in the real world, the first target object image and the camera internal reference, determining a conversion parameter from the three-dimensional model to the screen of the wearable device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of augmented reality technology, and in particular to a method and device for determining screen conversion parameters from a three-dimensional model to a wearable device. Background Art

[0002] At present, the ways to load models on augmented reality display devices include: positioning and scaling. The positioning and scaling effects are achieved based on the resolution and field of view of the augmented reality display device. The higher the resolution and field of view of the device, the better the positioning and scaling effects. However, devices from different manufacturers have different resolutions and fields of view. When the model is displayed on devices from different manufacturers, either a fixed resolution and field of view is used, which makes it impossible to fully utilize the capabilities and resources of the device, or customized development and calibration are performed for different wearable devices, which results in high R&D investment, poor versatility, and cannot be promoted on a large scale. Summary of the invention

[0003] According to one aspect of the present disclosure, a method for determining screen conversion parameters from a three-dimensional model to a wearable device is provided, the method comprising:

[0004] Determine a second target object image corresponding to the target three-dimensional model based on a first target object image captured by a camera of the wearable device at a target camera resolution;

[0005] Determine the three-dimensional position information of the first target object image in the real world by using the image scale ratio of the first target object image and the second target object image in the image coordinate system of the second target object image and the three-dimensional position information of the target matching object in the real world corresponding to the second target object image;

[0006] Based on the three-dimensional position information of the first target object image in the real world, the first target object image and the camera internal parameters, the screen conversion parameters of the three-dimensional model to the wearable device are determined.

[0007] According to another aspect of the present disclosure, a device for determining screen conversion parameters from a three-dimensional model to a wearable device is provided, the device comprising:

[0008] A first determination module, configured to determine a second target object image corresponding to a target three-dimensional model based on a first target object image acquired by a camera of a wearable device at a target camera resolution;

[0009] A second determination module is used to determine the three-dimensional position information of the first target object image in the real world by using the image scale ratio of the first target object image and the second target object image in the image coordinate system of the second target object image and the three-dimensional position information of the target matching object in the real world corresponding to the second target object image;

[0010] The second determination module is also used to determine the screen conversion parameters of the three-dimensional model to the wearable device based on the three-dimensional position information of the first target object image in the real world, the first target object image and the camera internal parameters.

[0011] According to another aspect of the present disclosure, there is provided an electronic device, comprising:

[0012] processor; and,

[0013] A memory for storing programs;

[0014] The program includes instructions, and when the instructions are executed by the processor, the processor executes the method provided according to the exemplary embodiments of the present disclosure.

[0015] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to cause the computer to execute the method provided according to the exemplary embodiments of the present disclosure.

[0016] One or more technical solutions provided in the embodiments of the present application are to determine the second target object image corresponding to the target three-dimensional model by using the first target object image captured by the camera of the wearable device at the target camera resolution, that is, to determine the target three-dimensional model corresponding to the first target object image. Then, based on the image scale ratio of the first target object image and the second target object image in the image coordinate system of the second target object image, and the three-dimensional position information of the target matching object in the real world corresponding to the second target object image, the three-dimensional position information of the first target object image in the real world is determined, that is, the spatial position information of the first target object image in the world coordinate system is determined by the scaling relationship between the first target object image and the second target object image and the three-dimensional position information of the target matching object matched by the second target image in the real world. Finally, based on the three-dimensional position information of the first target object image in the real world, the first target object image and the camera internal parameters, the screen conversion parameters from the three-dimensional model to the wearable device are determined, that is, the conversion relationship between the spatial position information of the first target object image in the world coordinate system and the position information of the first target object image in the coordinate system of the screen display interface of the wearable device is obtained. The target three-dimensional model corresponding to the first target object image can be positioned and scaled according to the conversion relationship, thereby making full use of the hardware equipment capabilities and resources of the wearable device to achieve automatic positioning and scaling of the target three-dimensional model, which is more versatile. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Further details, features and advantages of the present disclosure are disclosed in the following description of exemplary embodiments in conjunction with the accompanying drawings, in which:

[0018] Figure 1 A schematic diagram of a system for determining parameters of a three-dimensional model-to-wearable device screen conversion according to an exemplary embodiment of the present disclosure is shown;

[0019] Figure 2 A flowchart of a method for determining screen conversion parameters from a three-dimensional model to a wearable device according to an exemplary embodiment of the present disclosure is shown;

[0020] Figure 3 A flowchart of a method for determining a target camera resolution provided according to an exemplary embodiment of the present disclosure is shown;

[0021] Figure 4 A flowchart of a method for determining a second target object image corresponding to a target three-dimensional model provided according to an exemplary embodiment of the present disclosure is shown;

[0022] Figure 5 A flowchart of a method for acquiring multiple candidate target object images provided according to an exemplary embodiment of the present disclosure is shown;

[0023] Figure 6 A flow chart of a method for acquiring a second target object image provided according to an exemplary embodiment of the present disclosure is shown;

[0024] Figure 7 A flowchart of a method for determining three-dimensional position information of a first target object image in the real world provided according to an exemplary embodiment of the present disclosure is shown;

[0025] Figure 8 A flowchart of a method for determining screen conversion parameters of a three-dimensional model to a wearable device provided according to an exemplary embodiment of the present disclosure is shown;

[0026] Fig. 9 A schematic block diagram of functional modules of an apparatus for determining screen conversion parameters from a three-dimensional model to a wearable device according to an exemplary embodiment of the present disclosure is shown;

[0027] Fig.10 A schematic block diagram of a chip according to an exemplary embodiment of the present disclosure is shown;

[0028] Fig.11 A structural block diagram of an exemplary electronic device that can be used to implement the embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0029] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0030] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0031] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below. It should be noted that the concepts of "first", "second", etc. mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0032] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0033] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0034] Before introducing the embodiments of the present disclosure, the following definitions are given for the terms involved in the embodiments of the present disclosure:

[0035] Standard Operating Procedure (SOP) refers to the description of the standard operating procedures and requirements of an event in a unified format to guide and standardize daily work.

[0036] Augmented Reality (AR) technology is a technology that cleverly integrates virtual information with the real world. It widely uses a variety of technical means such as multimedia, three-dimensional modeling, real-time tracking and registration, intelligent interaction, and sensing. It simulates computer-generated virtual information such as text, images, three-dimensional models, music, and videos, and applies them to the real world. The two types of information complement each other, thereby achieving "enhancement" of the real world.

[0037] The field of view is also called the field of view in optical engineering. The size of the field of view determines the field of view of the optical instrument. The field of view can also be expressed as FOV, and its relationship with the focal length is as follows: image height = EFL*tan(FOV / 2); EFL is the focal length; FOV is the field of view.

[0038] Graphics Processing Unit (GPU), also known as display core, visual processor, display chip, is a microprocessor that specializes in performing image and graphics related calculations on personal computers, workstations, game consoles and some mobile devices (such as tablets, smart phones, etc.).

[0039] Application Program Interface (API), an application program interface is a collection of definitions, programs and protocols that enable mutual communication between computer software through the API interface.

[0040] Rendering precision refers to the number of color bits used when a computer renders an image. The higher the number of color bits, the more colors that can be presented, and the more realistic and delicate the image will be.

[0041] Homography transformation can be simply understood as describing the position mapping relationship between an object in the world coordinate system and the pixel coordinate system. The corresponding transformation matrix is ​​called the homography matrix.

[0042] Given the complexity of industrial manufacturing, a large number of links in the automated and intelligent production process and daily inspection and maintenance process need to rely on human participation. In recent years, the overall labor cost has become increasingly high, experts are scarce, training costs are high, and complex production operations have led to inadequate operating specifications. There are some significant problems, which have posed new challenges to traditional operation instructions.

[0043] With the popularization of 5G networks and the development of AR technology, the operation guidance scenarios in more and more industries have changed from the traditional mode in which operators assist in operations by viewing paper standard operating procedures or viewing guidance materials on mobile phones, computers, and tablets, to using AR technology to solidify the existing knowledge, experience, and skills of skilled workers in the enterprise as action guidelines and templates. Through the environmental perception and object recognition technology of augmented reality display devices, the experience and behavior of skilled workers can be reproduced in the form of videos, 3D industrial models, etc. in front of novices, allowing novices to complete tasks based on visual "induced operations", allowing intellectual assets to be reused and added value, filling the experience gap, and reducing the time for operators to consult materials during the production process. Through the interconnection of data between design and process, a data closed loop between product design, process design, and on-site manufacturing is formed; real-time guidance and prompts are given to operators to check the integrity of steps, thereby reducing the risk of operations, improving operational efficiency, and realizing changes in on-site operation methods.

[0044] To implement the above technology, it is usually necessary to load the work instruction materials (such as 2D or 3D industrial models, etc.) into the augmented reality display device for display, which includes two steps. The first step is to edit the model and bind the materials (such as models, videos, etc. prepared for operation learning) on ​​the model editor, and package the model for publishing on the platform after editing. The second step is for the operator to load the model using the augmented reality display device.

[0045] However, the current way of loading models on augmented reality display devices is: the first step is to download the model, that is, to identify some special images (such as QR codes, etc.) for the augmented reality display device and download the corresponding 3D model; the second step is positioning and calibration. Since the operators wearing augmented reality display devices will move and change their viewing angles, the industrial model needs to be positioned with the QR code as the anchor point to meet the operators' needs to view the industrial model at different positions and angles; the third step is scaling. The operators can walk around the model and observe the model from different angles. The model can simulate the actual situation in reality for real-time scaling, and the details of the model can be observed by adjusting the scaling ratio of the model.

[0046] In summary, the positioning and zooming effects are achieved based on the resolution and field of view of the augmented reality display device. The higher the resolution and field of view of the device, the better the positioning and zooming effects. However, augmented reality display devices from different manufacturers have different resolutions and fields of view. This causes the following problems:

[0047] 1. Augmented reality display devices of different specifications can only adapt to fixed resolutions and field of view.

[0048] 2. For augmented reality display devices of different specifications, customized development and correction of industrial model positioning and scaling effects are required, which has high technical difficulty and poor versatility.

[0049] In order to overcome the above problems, an exemplary embodiment of the present disclosure provides a system for determining screen conversion parameters from a three-dimensional model to a wearable device. The system can determine the conversion relationship between the three-dimensional model and the image coordinate system of the camera of the wearable device based on the hardware performance of the wearable device, and position and scale the three-dimensional model based on the conversion relationship, thereby achieving the best matching effect between the three-dimensional model and the wearable device.

[0050] Figure 1 FIG. 1 is a schematic diagram showing a system for determining parameters of a screen conversion from a three-dimensional model to a wearable device according to an exemplary embodiment of the present disclosure. Figure 1 As shown, the system for determining the screen conversion parameters from the three-dimensional model to the wearable device may include a device terminal, a camera module, a processing module, a comparison module, an adaptive module, a rendering module and an image feature library.

[0051] The above-mentioned camera module is used to determine the target camera resolution for image acquisition based on comprehensive factors such as the screen resolution, camera preview resolution, CPU, GPU, etc. of the device terminal, and to construct the camera matrix, distance coefficient, and field of view angle through the screen resolution and target camera resolution, and the camera will be calibrated in this module. Among them, the screen resolution refers to the number of pixels that the display can carry, the camera preview resolution refers to the maximum resolution supported by the camera, and the target camera resolution is the most suitable resolution of the camera determined based on the device parameters such as the screen resolution, camera preview resolution, CPU, GPU, etc. For example, there is a corresponding relationship between the target camera resolution and the device parameters such as the screen resolution, camera preview resolution, CPU, GPU, etc., and the target camera resolution can be determined based on the corresponding relationship.

[0052] The above processing module is used for image format conversion and image scaling; extracting image feature values ​​and saving the feature values ​​in text encrypted form in the device terminal; analyzing motion changes through the previous and next two images to perform motion tracking.

[0053] The comparison module is used to compare the features extracted from the preview image captured by the camera with the images in the image feature library one by one, and compare the final result with the threshold set by the system. It is also used to convert the 3D point set in the camera coordinate system into the corresponding 2D point set in the final displayed image coordinate system through perspective transformation.

[0054] The above-mentioned adaptive module is used to obtain 2D and 3D point sets for posture estimation through the camera matrix, distance coefficient and comparison module in the camera module, and finally obtain the rotation angle, position and size of the object to determine the conversion relationship.

[0055] The rendering module is used to send the vertex coordinates, vertex colors, vertex normals, texture maps and other data of the three-dimensional model to the rendering module for rendering, and change the state of the object from a hidden state to a visible state.

[0056] In actual applications, the camera can be turned on through the device terminal to obtain the camera preview screen, the pose estimation can be performed through the image processing module and the image comparison module, and the appropriate 3D model accuracy and model size can be selected through the adaptive algorithm. Finally, the 3D model can be displayed in the preview screen of the device terminal through the rendering module to complete the matching of the 3D model and the wearable device.

[0057] The exemplary embodiments of the present disclosure also provide a method for determining screen conversion parameters from a three-dimensional model to a wearable device, by determining the image scale ratio relationship between a first target object image captured by the wearable device at a target camera resolution and a second target object image pre-stored in an image feature library, and the three-dimensional position information of a target matching object in the real world corresponding to the second target object image, determining the three-dimensional position information of the first target object image in the real world, and then determining the screen conversion parameters from the three-dimensional model to the wearable device through the three-dimensional position information of the first target object image in the real world, the first target object image and the camera internal parameters, and determining the conversion parameters from the three-dimensional model to the screen of the wearable device according to the screen conversion parameters from the three-dimensional model to the wearable device. It should be understood that the wearable device involved in the exemplary embodiments of the present disclosure may be a wearable watch, a wearable bracelet or wearable glasses, etc., which is not limited here.

[0058] The first target object image captured at the target camera resolution involved in the exemplary embodiments of the present disclosure may be completely identical to, partially identical to, or different from the second target object image pre-stored in the image feature library.

[0059] For example, when the first target image is completely identical to the second target image, the first target object contained in the first target image is completely identical to the second target object contained in the second target image. At this time, the first target image and the second target image can completely overlap after being processed by the processing module.

[0060] For another example, when the first target object image is partially identical to the second target object image, the first target object contained in the first target object image is contained in the second target object contained in the second target object image. At this time, after the first target object image and the second target object image are processed by the processing module, the comparison module can determine in the image feature library that the image containing the first target object is the second target object image.

[0061] For another example, when the first target object image is different from the second target object image, that is, the first target object contained in the first target object image is completely different from the second target object contained in the second target object image. In this case, there may be a corresponding relationship between the first target object image and the second target object image. The first target object image may be an identification code containing image information. The processing module obtains the image information contained in the first target object image and sends it to the comparison module. The comparison module determines that the image matching the image information in the image feature library is the second target object image based on the image information.

[0062] Figure 2 FIG. 1 is a flowchart of a method for determining screen conversion parameters of a three-dimensional model to a wearable device according to an exemplary embodiment of the present disclosure. Figure 2 As shown, the method for determining the screen conversion parameters from the three-dimensional model to the wearable device includes:

[0063] Step 210: Determine a second target object image corresponding to the target 3D model based on the first target object image captured by the camera of the wearable device at the target camera resolution. It should be understood that the target camera resolution here can be the optimal resolution of the camera supported by the hardware performance of the wearable device.

[0064] In practical applications, the target camera parameters can be adjusted according to the target camera resolution, and then the device terminal controls the target camera to capture the first target object image at the target camera resolution, and the second target object image matching the first target object image is obtained in the image feature library through the image matching algorithm. It should be understood that the first target object included in the first target object image and the second target object included in the second target object image can be the same or different, and the second target object can include at least the first target object or not include the first target object at all. At this time, there is a corresponding relationship between the first target object image and the second target object image. The first target object image and the second target object image can be static images (i.e., pictures) or a frame in a dynamic image (i.e., video).

[0065] For example, in this embodiment, the first target object image may be an image of a three-dimensional model to be displayed, which is taken by a target camera at a target camera resolution, that is, the first target object may be a three-dimensional model to be displayed. At this time, an image containing the three-dimensional model may be obtained from the image feature library through an image matching algorithm as a second target object image. In this embodiment, the second target object image may be a second target object image containing only the three-dimensional model, or a second target object image containing the three-dimensional model and other object information, etc., which is not limited here. It should be noted that when multiple images containing all or part of the three-dimensional model information are obtained, the image with the highest similarity to the first target object image is determined to be the second target object image.

[0066] Step 220: Determine the three-dimensional position information of the first target object image in the real world based on the image scale ratio of the first target object image and the second target object image in the image coordinate system of the second target object image, and the three-dimensional position information of the target matching object in the real world corresponding to the second target object image.

[0067] In practical applications, the first target object image can be scaled or stretched to the scale ratio of the second target object image in the image coordinate system of the second target object image. Then, when the three-dimensional position information of the second target object in the real world corresponding to the second target object image is known, the three-dimensional position information of the first target object image in the real world can be determined by using the stretched first target object image and the three-dimensional position information of the second target object in the real world corresponding to the second target object image, that is, the first target object image is converted to the world coordinate system according to the proportional relationship between the first target object image and the second target object image.

[0068] Exemplarily, since the coordinates of the feature points in the image coordinate system where the first target object image is located and the image coordinate system where the second target object image is located are known, at least 4 pairs of matching points can be selected in the image coordinate system where the first target object image is located and the image coordinate system where the second target object image is located, and the singular value decomposition method is used to calculate the homography matrix between the first target object image and the second target object image, and the first target object image is scaled or stretched to the scale ratio of the second target object image in the image coordinate system of the second target object image according to the obtained homography matrix. Specifically, it is assumed that 4 feature point matching pairs in the first target object image and the second target object image are obtained, among which the first feature point matching pair is (X 1 , Y 1 , 1) and (X 1 ’ , Y 1 ’ , 1), the second feature point matching (X 2 , Y 2 , 1) and (X 2 ’ , Y 2 ’ , 1), the third feature point matching pair is (X 3 , Y 3 , 1) and (X 3 ’ , Y 3 ’ , 1), the fourth feature point matching pair is (X 4 , Y 4 , 1) and (X 4 ’ , Y 4’ ,1),Assume that the homography matrix between each feature point matching pair can be expressed as

[0069]

[0070] Then there is

[0071]

[0072] By using the singular value decomposition method to bring the four feature point matching pairs into the solution of the above equations 1 and 2, the homography matrix H can be obtained, that is, the mapping relationship between the image coordinate system where the first target object image is located and the image coordinate system where the second target object image is located can be obtained. Then, the coordinates of the feature points corresponding to the first target object image in the image coordinate system of the second target object image can be obtained by multiplying the obtained homography matrix H by the coordinates of each feature point of the first target object image in its corresponding image coordinate system, that is, the projection image of the first target object image in the image coordinate system of the second target object image is obtained, and then the image scale ratio of the first target object image and the second target image in the image coordinate system of the second target object image is determined by comparing and calibrating the image scale of the projection image of the first target object image in the image coordinate system of the second target object image with the image scale of the second target object image.

[0073] Since the three-dimensional position information of the second target object in the real world corresponding to the second target object image is known, that is, the three-dimensional position information of the first target object image in the real world after conversion to the image coordinate system where the second target object image is located is known, and the image scale ratio of the second target object image in the image coordinate system of the second target object image is known, the three-dimensional position information of the first target object image in the real world can be obtained according to the correspondence between the three-dimensional position information of the first target object image in the real world after conversion and the image scale ratio of the first target object image and the second target image in the image coordinate system of the second target image.

[0074] Step 230: Based on the three-dimensional position information of the first target object image in the real world, the first target object image, and the camera internal parameters, determine the three-dimensional model to wearable device screen conversion parameters. It should be understood that the three-dimensional model to wearable device screen conversion parameters here may include the rotation angle, position, and scale of the three-dimensional model to the wearable device screen.

[0075] In actual applications, in order to obtain the first target object image information that is finally displayed on the screen of the terminal display interface, it is necessary to convert the three-dimensional position information of the first target object image in the real world into two-dimensional image position information displayed on the screen of the terminal display interface, so as to obtain conversion parameters between the three-dimensional position information of the first target object image in the real world and the position information of the two-dimensional image displayed on the screen of the terminal display interface, and based on the conversion parameters, convert the three-dimensional model in the world coordinate system into the two-dimensional image position information displayed on the screen of the terminal display interface, and after rendering, the three-dimensional model that matches the hardware performance of the wearable device can be obtained.

[0076] As can be seen from the above, one or more technical solutions provided in the exemplary embodiments of the present disclosure determine the second target object image corresponding to the target three-dimensional model through the first target object image captured by the camera of the wearable device at the target camera resolution, that is, determine the target three-dimensional model corresponding to the first target object image. Then, based on the image scale ratio of the first target object image and the second target object image in the image coordinate system of the second target object image, and the three-dimensional position information of the target matching object in the real world corresponding to the second target object image, determine the three-dimensional position information of the first target object image in the real world, that is, determine the spatial position information of the first target object image in the world coordinate system through the scaling relationship between the first target object image and the second target object image and the three-dimensional position information of the target matching object matched by the second target image. Finally, based on the three-dimensional position information of the first target object image in the real world, the first target object image and the camera internal parameters, the screen conversion parameters from the three-dimensional model to the wearable device are determined, that is, the conversion relationship between the spatial position information of the first target object image in the world coordinate system and the coordinate system of the first target object image on the screen of the wearable device is obtained. The target three-dimensional model corresponding to the first target object image can be positioned and scaled according to the conversion relationship, thereby making full use of the hardware device capabilities and resources of the wearable device to achieve automatic positioning and scaling of the target three-dimensional model, which is more versatile.

[0077] As a possible implementation, Figure 3 FIG. 1 is a flow chart showing a method for determining a target camera resolution according to an exemplary embodiment of the present disclosure. Figure 3 As shown, the above method also includes:

[0078] Step 310: Obtain the camera preview resolution of the wearable device and the hardware information of the wearable device. It should be understood that the camera preview resolution here can be the maximum resolution supported by the camera. It should be noted that the camera preview resolution of the wearable device and the hardware information of the wearable device here can be directly read from the content stored in the terminal device. If the terminal device does not store relevant information, it is necessary to re-acquire the camera preview resolution of the wearable device and the hardware information of the wearable device and store the obtained results for direct reading next time.

[0079] Exemplarily, the hardware information of the wearable device may include processor performance parameters and screen display quality parameters of the wearable device. The processor performance parameters of the wearable device may include the number of cores, basic frequency and cache size of the central processor; the model, memory size, used memory and remaining memory of the graphics processor. The screen display quality parameters may include camera preview resolution and screen resolution. The camera preview resolution and screen resolution may be obtained through the native API of the device terminal system.

[0080] The hardware information of the wearable device may also include camera field of view parameters. The camera field of view parameters may be determined by shooting a calibration diagram. According to the interface prompt information in the wearable device terminal, a calibration diagram may be shot at a specified distance. After the three-dimensional model is received by the wearable device screen conversion parameter determination system, the camera field of view angle is calculated according to the distance parameter and the length and width of the calibration diagram in the device terminal (the length and width can be determined by drawing the projection matrix of the calibration diagram in the world coordinate system through the recognition algorithm). It should be understood that the calibration diagram here may be a pre-prepared image, which is only used to solve the field of view angle. The calibration diagram may be the same as the first target image, or different from the first target image, which is not limited here. For example, the calibration object included in the calibration diagram may be a circular object. It is easier to determine the conversion relationship of the length and width ratio according to the radius relationship in each direction by shooting a circular object in a full shooting manner. Of course, the calibration object included in the calibration diagram may also be a square object, and is not limited to this.

[0081] For example, when the distance parameter is 24mm and the object size is about 36mm x 24mm in full shooting (i.e. the object takes up the entire screen), the vertical field of view angle can be calculated by the field of view angle calculation formula: 2*atan(24 / 2 / 24)->~84 degrees, and the horizontal field of view angle is: 2*atan(36 / 2 / 24)->73 degrees.

[0082] Step 320: Determine a target camera resolution based on the hardware information of the wearable device and the camera preview resolution, where the target camera resolution is less than or equal to the camera preview resolution.

[0083] In practical applications, the target camera resolution can be determined by obtaining the hardware information of the wearable device and the correspondence between the camera preview resolution and the target camera resolution or by manual experience. It should be understood that the target camera resolution here is the camera resolution that matches the camera preview resolution of the wearable device and the hardware information of the wearable device. After determining the target resolution, the camera parameters of the camera of the wearable device can be adjusted according to the target resolution. After the adjustment is completed, the preset image is taken with the camera with adjusted camera parameters to obtain the first target object image. It should be understood that the preset image here can be a QR code or an image in the image feature library.

[0084] As a possible implementation, Figure 4 FIG. 1 is a flow chart showing a method for determining a second target object image corresponding to a target three-dimensional model according to an exemplary embodiment of the present disclosure. Figure 4 As shown, the first target object image and the second target object image both include the same target object, and determining the second target object image corresponding to the target three-dimensional model based on the first target object image captured by the camera of the wearable device at the target camera resolution includes:

[0085] Step 410: Acquire multiple candidate target images from multiple reference images based on the first target image. The first target image and multiple reference images in the image feature library may be matched based on an image matching algorithm to determine multiple candidate images that meet the matching requirements.

[0086] Step 420: Verify multiple candidate target images based on the first target image to obtain a second target image. After determining multiple candidate images, screen the multiple candidate images using an image verification method to determine a second target image that matches the first target image. It should be understood that the match here can be that the image content of the second target image is completely consistent with that of the first target image, or that the image content of the second target image is partially consistent with that of the first target image, and there is no limitation here.

[0087] In some alternatives, Figure 5 FIG. 1 is a flow chart showing a method for acquiring multiple candidate target object images according to an exemplary embodiment of the present disclosure. Figure 5 As shown, the above-mentioned obtaining multiple candidate target object images from multiple reference images based on the first target object image includes:

[0088] Step 510: Obtain the degree of match between the first target object image and each reference image. The image features of the first target object image and the multiple reference images can be extracted by the processing module, and then the image features of the first target object image and the image features of each reference image are matched using an image matching algorithm to obtain the degree of match between the first target object image and each reference image. It should be understood that the image matching algorithm here may include an image feature matching algorithm based on image features, for example, the image matching algorithm may be a KnnMatch image feature matching algorithm, a SIFI image feature matching algorithm, a SURF image feature matching algorithm, or an ORB image feature matching algorithm, etc., but is not limited thereto. It may also be an image grayscale matching algorithm based on image grayscale, for example, the image matching algorithm may be a MAD image grayscale matching algorithm, a SAD image grayscale matching algorithm, or an SSD image grayscale matching algorithm, etc., but is not limited thereto.

[0089] Step 520: Based on the matching degree between the first target image and each reference image, a plurality of candidate target images satisfying the matching degree screening condition are obtained. It should be understood that the matching degree screening condition here can be set according to actual conditions and is not limited here.

[0090] Exemplarily, when the image matching algorithm used in the above image matching is the KnnMatch image feature matching algorithm, the KnnMatch image feature matching algorithm can be used to return two closest matching items for each query descriptor of the image feature of the first target image and the image feature of each reference image, and obtain the matching degree of the first target image and each reference image. Then, the distance between the adjacent matching points is screened, and the matching degree screening condition is determined to be 0.67. The matching points with a distance greater than 0.67 are deleted, and the remaining multiple reference images are multiple candidate target images.

[0091] In some alternatives, Figure 6 FIG. 4 is a flow chart showing a method for acquiring a second target image according to an exemplary embodiment of the present disclosure. Figure 6 As shown, the above-mentioned verification of multiple candidate target images based on the first target image to obtain the second target image includes:

[0092] Step 610: Determine the mapping relationship between the first target image and each candidate target image. When the first target image and each candidate target image have the same image content, the first target image can be scaled or enlarged to the size of each candidate target image according to a preset image size ratio by determining the mapping relationship.

[0093] For example, the homography transformation method can be used to bring at least four matching points in the first target object image and each candidate target object image into the corresponding equation, and the homography matrix, that is, the mapping relationship between the first target object image and each candidate target object image, can be obtained by solving the equation according to an optimization algorithm such as the Levenberg-Marquardt optimization algorithm. Then, based on the mapping relationship between the first target object image and each candidate target object image, the first target object image is calibrated so that the size, position and rotation angle of the first target object image and each corresponding candidate target are the same.

[0094] Step 620: If the mapping relationship corresponding to the candidate target object image satisfies the target mapping relationship, the candidate target object image is determined to be the second target object image. It should be understood that the target mapping relationship here can be determined based on actual conditions. For example, the target mapping relationship can be that the first target object image after homography matrix calibration and the determined second target object image have partially the same content, or the first target object image after homography matrix calibration and the determined second target object image have all the same content, etc., and is not limited thereto.

[0095] In practical applications, when the image contents of the first target object image and the second target object image are exactly the same, the calibrated first target object image can be overlapped with each candidate target object image, and the candidate target image that completely overlaps with the first target object image can be determined as the second target object image. Then, based on the second target object image and the hardware information of the wearable device, the specifications of the three-dimensional model corresponding to the second target object image can be selected from the image feature library to determine the three-dimensional model to be displayed.

[0096] In some alternatives, Figure 7 FIG. 1 is a flow chart showing a method for determining three-dimensional position information of a first target object image in the real world according to an exemplary embodiment of the present disclosure. Figure 7 As shown, the above-mentioned determining the three-dimensional position information of the first target object image in the real world based on the image scale ratio of the first target object image and the second target object image in the image coordinate system of the second target object image, and the three-dimensional position information of the target matching object in the real world corresponding to the second target object image, includes:

[0097] Step 710: Determine a projection image of the first target object image in an image coordinate system of the second target object image based on the target mapping relationship and the first target object image.

[0098] Step 720: Based on the image scale of the projection image of the first target image in the image coordinate system of the second target image and the image scale of the second target image, determine the image scale ratio of the first target image and the second target image in the image coordinate system of the second target image. That is, in the calibration step of the first target image described above, the image scale ratio obtained can be the homography matrix described above. In this way, the image scale ratio relationship between the first target image captured by the wearable device of the present disclosure at the target resolution and the image in the image feature library is determined.

[0099] Step 730: Determine the three-dimensional position information of the first target object image in the real world based on the three-dimensional position information of the target matching object in the real world corresponding to the second target object image and the image scale ratio of the second target object image in the image coordinate system of the second target object image. When the three-dimensional position information of the target matching object in the real world corresponding to the second target object image in the real world is known, the position information of the first target object image in the image coordinate system of the second target object image can be converted into the three-dimensional position information of the first target object image in the world coordinate system based on the three-dimensional position information of the target matching object in the real world corresponding to the second target object image and the image scale ratio of the second target object image in the image coordinate system of the second target object image. The specific conversion method can refer to the relevant description above and will not be repeated here.

[0100] As a possible implementation, Figure 8 FIG. 1 is a flow chart showing a method for determining a screen conversion parameter of a three-dimensional model to a wearable device according to an exemplary embodiment of the present disclosure. Figure 8 As shown, based on the three-dimensional position information of the first target object image in the real world, the first target object image and the camera internal parameters, the screen conversion parameters of the three-dimensional model to the wearable device are determined, including:

[0101] Step 810: Perform camera pose estimation based on the three-dimensional position information of the first target object image in the real world, the first target object image, and the camera intrinsic parameters to determine the camera pose. At this time, a pose estimation algorithm can be used to determine the camera pose. For example, the pose estimation algorithm can be a solvePnP pose estimation function or a solvePnPRansac pose estimation function, etc., but is not limited thereto. The camera intrinsic parameters may include the camera principal point position and the camera focal length, which are used to realize the coordinate conversion between the point in the camera coordinate system and the pixel coordinate system.

[0102] For example, when the pose estimation algorithm is used to determine the camera pose, the camera internal parameters such as the focal length, principal point coordinates, and lens distortion parameters are known, so the camera pose can be solved directly based on the solvePnP pose estimation function or the solvePnPRansac pose estimation function. The camera pose here may include the rotation matrix and translation vector between the camera coordinate system and the world coordinate system.

[0103] Step 820: Determine the screen conversion parameters from the three-dimensional model to the wearable device based on the camera position and camera intrinsic parameters. The screen conversion parameters from the three-dimensional model to the wearable device here can be considered to include the camera position and posture as well as the camera intrinsic parameters, and the camera projection model can be constructed through the camera position and posture as well as the camera intrinsic parameters. When the three-dimensional model corresponding to the above-mentioned first target object image is obtained, the three-dimensional model can be converted to the camera coordinate system where the screen of the wearable device is located through the camera projection model, thereby obtaining a two-dimensional image of the three-dimensional model, and then the two-dimensional image of the three-dimensional model is rendered using a rendering module and displayed on the screen of the terminal display interface.

[0104] Exemplarily, before adjusting the posture of the three-dimensional model, the camera coordinate system can be mirrored to convert the right-hand coordinate system into the left-hand coordinate system, and then the transformation components of the three-dimensional model are determined according to the camera posture and the camera internal parameters to obtain the final position, rotation angle and scale of the three-dimensional model, that is, the screen conversion parameters from the three-dimensional model to the wearable device. Finally, the above three-dimensional model is adjusted according to the screen conversion parameters from the three-dimensional model to the wearable device, and the adjusted three-dimensional model is rendered using a rendering module to obtain a three-dimensional model that is adapted to the hardware performance of the wearable device and the target camera resolution provided by the exemplary embodiment of the present disclosure. The method for determining the screen conversion parameters from the three-dimensional model to the wearable device of the exemplary embodiment of the present disclosure eliminates the need for customized development for different wearable devices, has high versatility, and can fully utilize the processing power of the wearable device to achieve the best three-dimensional model display effect.

[0105] The above mainly introduces the solution provided by the embodiment of the present disclosure from the perspective of the server. It is understandable that, in order to implement the above functions, the server includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present disclosure.

[0106] The embodiments of the present disclosure may divide the server into functional units according to the above method examples. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The above integrated modules may be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiments of the present disclosure is schematic and is only a logical functional division. There may be other division methods in actual implementation.

[0107] In the case of dividing each functional module according to each function, an exemplary embodiment of the present disclosure provides a device for determining screen conversion parameters from a three-dimensional model to a wearable device, which can be a server or a chip applied to a server. Fig. 9 FIG. 1 is a schematic block diagram showing the functional modules of a device for determining screen conversion parameters from a three-dimensional model to a wearable device according to an exemplary embodiment of the present disclosure. Fig. 9 As shown, the device 900 for determining the screen conversion parameters of the three-dimensional model to the wearable device includes:

[0108] A first determination module 901 is used to determine a second target object image corresponding to a target three-dimensional model based on a first target object image captured by a camera of a wearable device at a target camera resolution;

[0109] A second determination module 902 is used to determine the three-dimensional position information of the first target object image in the real world by using the image scale ratio of the first target object image to the second target object image in the image coordinate system of the second target object image and the three-dimensional position information of the target matching object in the real world corresponding to the second target object image;

[0110] The second determination module 902 is further used to determine screen conversion parameters from the three-dimensional model to the wearable device based on the three-dimensional position information of the first target object image in the real world, the first target object image and the camera internal parameters.

[0111] As a possible implementation, the above-mentioned device 900 for determining the screen conversion parameters of the three-dimensional model to the wearable device further includes an acquisition module 903, which is used to acquire the camera preview resolution of the wearable device and the hardware information of the wearable device;

[0112] The second determination module 902 is further used to determine a target camera resolution based on the hardware information of the wearable device and the camera preview resolution, where the target camera resolution is less than or equal to the camera preview resolution.

[0113] In some optional embodiments, the hardware information of the wearable device includes processor performance parameters and screen display quality parameters of the wearable device; and / or,

[0114] The hardware information of the wearable device includes the camera field of view parameters.

[0115] As a possible implementation, the acquisition module 903 is further used to acquire multiple candidate target object images from multiple reference images based on the first target object image; and verify the multiple candidate target object images based on the first target object image to obtain the second target object image.

[0116] In some optional embodiments, the acquisition module 903 is further used to acquire the degree of match between the first target image and each reference image; based on the degree of match between the first target image and each reference image, a plurality of candidate target images satisfying the matching degree screening condition are acquired.

[0117] In some optional embodiments, the second determination module 902 is further used to determine a mapping relationship between the first target object image and each candidate target object image; if the mapping relationship corresponding to the candidate target object image satisfies the target mapping relationship, the candidate target object image is determined to be the second target object image.

[0118] In some optional embodiments, the second determination module 902 is further used to determine a projection image of the first target object image in the image coordinate system of the second target object image based on the target mapping relationship and the first target object image; determine an image scale ratio of the first target object image and the second target object image in the image coordinate system of the second target object image based on an image scale of the projection image of the first target object image in the image coordinate system of the second target object image and an image scale of the second target object image; determine the three-dimensional position information of the first target object image in the real world based on the three-dimensional position information of a target matching object in the real world corresponding to the second target object image and an image scale ratio of the second target object image in the image coordinate system of the second target object image.

[0119] As a possible implementation method, the above-mentioned second determination module 902 is also used to estimate the camera pose based on the three-dimensional position information of the first target object image in the real world, the first target object image and the camera intrinsic parameters, and determine the camera pose; based on the camera pose and the camera intrinsic parameters, determine the screen conversion parameters from the three-dimensional model to the wearable device.

[0120] Fig.10 Schematic block diagram of a chip according to an exemplary embodiment of the present disclosure is shown. Fig.10 As shown, the chip 100 includes one or more (including two) processors 101 and a communication interface 102. The communication interface 102 can support the server to perform the data sending and receiving steps in the above image processing method, and the processor 101 can support the server to perform the data processing steps in the above image processing method.

[0121] Optional, such as Fig.10As shown, the chip 100 also includes a memory 103, which may include a read-only memory and a random access memory, and provides operation instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory (NVRAM).

[0122] In some embodiments, Fig.10 As shown, the processor 101 performs corresponding operations by calling the operation instructions stored in the memory (the operation instructions may be stored in the operating system). The processor 101 controls the processing operations of any one of the terminal devices, and the processor may also be called a central processing unit (CPU). The memory 103 may include a read-only memory and a random access memory, and provides instructions and data to the processor 101. A portion of the memory 103 may also include NVRAM. For example, in an application, the memory, the communication interface, and the memory are coupled together through a bus system, wherein the bus system may include a power bus, a control bus, and a status signal bus in addition to a data bus. However, for the sake of clarity, in Fig.10 Various buses are labeled as bus system 104 .

[0123] The method disclosed in the above-mentioned embodiment of the present disclosure can be applied to a processor or implemented by a processor. The processor can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above-mentioned processor can be a general-purpose processor, a digital signal processor (digital signal processing, DSP), an ASIC, a field-programmable gate array (field-programmable gate array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present disclosure can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be combined to execute. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0124] The exemplary embodiment of the present disclosure also provides an electronic device, comprising: at least one processor; and a memory connected to the at least one processor in communication. The memory stores a computer program that can be executed by the at least one processor, and the computer program is used to cause the electronic device to perform the method according to the embodiment of the present disclosure when executed by the at least one processor.

[0125] Exemplary embodiments of the present disclosure also provide a non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to perform a method according to an embodiment of the present disclosure.

[0126] Exemplary embodiments of the present disclosure further provide a computer program product, including a computer program, wherein when the computer program is executed by a processor of a computer, the computer is used to enable the computer to perform the method according to the embodiment of the present disclosure.

[0127] refer to Fig.11 , a block diagram of an electronic device 1100 that can be used as a server or client of the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers such as blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0128] like Fig.11 As shown, the electronic device 1100 includes a computing unit 1101, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1102 or a computer program loaded from a storage unit 1108 into a random access memory (RAM) 1103. In the RAM 1103, various programs and data required for the operation of the electronic device 1100 can also be stored. The computing unit 1101, the ROM 1102, and the RAM 1103 are connected to each other via a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.

[0129] A plurality of components in the electronic device 1100 are connected to the I / O interface 1105, including: an input unit 1106, an output unit 1107, a storage unit 1108, and a communication unit 1109. The input unit 1106 may be any type of device capable of inputting information to the electronic device 1100, and the input unit 1106 may receive input digital or character information, and generate signal inputs related to user settings and / or function control of the electronic device. The output unit 1107 may be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 1108 may include, but is not limited to, a disk, an optical disk. The communication unit 1109 allows the electronic device 1100 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and may include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth™ device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.

[0130] The computing unit 1101 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1101 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 1101 performs the various methods and processes described above. For example, in some embodiments, the method provided by the exemplary embodiments of the present disclosure may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 1108. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 1100 via the ROM 1102 and / or the communication unit 1109. In some embodiments, the computing unit 1101 may be configured to perform the method provided by the exemplary embodiments of the present disclosure in any other appropriate manner (e.g., by means of firmware).

[0131] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0132] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0133] As used in this disclosure, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and / or device (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.

[0134] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0135] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0136] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.

[0137] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instruction is loaded and executed on a computer, the process or function described in the embodiment of the present disclosure is executed in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a terminal, a user device or other programmable device. The computer program or instruction may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instruction may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired or wireless means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server, data center, etc. that integrates one or more available media. The available medium may be a magnetic medium, for example, a floppy disk, a hard disk, a tape; it may also be an optical medium, for example, a digital video disc (DVD); it may also be a semiconductor medium, for example, a solid state drive (SSD).

[0138] Although the present disclosure has been described in conjunction with specific features and embodiments thereof, it is apparent that various modifications and combinations may be made thereto without departing from the spirit and scope of the present disclosure. Accordingly, this specification and the drawings are merely exemplary illustrations of the present disclosure as defined by the appended claims, and are deemed to have covered any and all modifications, variations, combinations or equivalents within the scope of the present disclosure. Obviously, those skilled in the art may make various modifications and variations to the present disclosure without departing from the spirit and scope of the present disclosure. Thus, if these modifications and variations of the present disclosure fall within the scope of the claims of the present disclosure and their equivalents, the present disclosure is also intended to include these modifications and variations.

Claims

1. A method for determining screen conversion parameters from a three-dimensional model to a wearable device, characterized in that: The method comprises: Determine a second target object image corresponding to the target three-dimensional model based on a first target object image captured by a camera of the wearable device at a target camera resolution; Determine the three-dimensional position information of the first target object image in the real world based on the image scale ratio of the first target object image and the second target object image in the image coordinate system of the second target object image, and the three-dimensional position information of the target matching object in the real world corresponding to the second target object image; Based on the three-dimensional position information of the first target object image in the real world, the first target object image and the camera internal parameters, the conversion parameters of the three-dimensional model to the screen of the wearable device are determined.

2. The method according to claim 1, characterized in that The method further comprises: Obtaining the camera preview resolution of the wearable device and the hardware information of the wearable device; The target camera resolution is determined based on the hardware information of the wearable device and the camera preview resolution, and the target camera resolution is less than or equal to the camera preview resolution.

3. The method according to claim 2, characterized in that The hardware information of the wearable device includes processor performance parameters and screen display quality parameters of the wearable device; and / or, The hardware information of the wearable device includes camera field of view parameters.

4. The method according to claim 1, characterized in that The first target object image and the second target object image both include the same target object, and determining the second target object image corresponding to the target three-dimensional model based on the first target object image acquired by the camera of the wearable device at the target camera resolution includes: Acquire a plurality of candidate target object images from a plurality of reference images based on the first target object image; The plurality of candidate target object images are verified based on the first target object image to obtain a second target object image.

5. The method according to claim 4, characterized in that The acquiring a plurality of candidate target object images from a plurality of reference images based on the first target object image comprises: Obtaining a degree of matching between the first target image and each of the reference images; Based on the matching degree between the first target object image and each of the reference images, a plurality of candidate target object images satisfying a matching degree screening condition are acquired.

6. The method according to claim 4, characterized in that The verifying the plurality of candidate target images based on the first target image to obtain a second target image includes: Determining a mapping relationship between the first target object image and each of the candidate target object images; If the mapping relationship corresponding to the candidate target object image satisfies the target mapping relationship, the candidate target object image is determined to be the second target object image.

7. The method according to claim 6, characterized in that The determining of the three-dimensional position information of the first target object image in the real world based on the image scale ratio of the first target object image and the second target object image in the image coordinate system of the second target object image and the three-dimensional position information of the target matching object in the real world corresponding to the second target object image includes: Determining a projection image of the first target object image in an image coordinate system of the second target object image based on the target mapping relationship and the first target object image; Determining an image scale ratio of the first object image to the second object image in the image coordinate system of the second object image based on an image scale of a projection image of the first object image in the image coordinate system of the second object image and an image scale of the second object image; The three-dimensional position information of the first target object image in the real world is determined based on the three-dimensional position information of the target matching object in the real world corresponding to the second target object image and the image scale ratio of the second target object image in the image coordinate system of the second target object image.

8. The method according to any one of claims 1 to 7, characterized in that: Determining conversion parameters of the three-dimensional model to the screen of the wearable device based on the three-dimensional position information of the first target object image in the real world, the first target object image, and camera internal parameters, including: Perform camera pose estimation based on the three-dimensional position information of the first target object image in the real world, the first target object image and the camera intrinsic parameters to determine the camera pose; Based on the camera pose and the camera intrinsic parameters, a conversion parameter from the three-dimensional model to the screen of the wearable device is determined.

9. A device for determining screen conversion parameters from a three-dimensional model to a wearable device, characterized in that: The device comprises: A first determination module, configured to determine a second target object image corresponding to a target three-dimensional model based on a first target object image acquired by a camera of a wearable device at a target camera resolution; A second determination module is used to determine the three-dimensional position information of the first target object image in the real world by using the image scale ratio of the first target object image and the second target object image in the image coordinate system of the second target object image and the three-dimensional position information of the target matching object in the real world corresponding to the second target object image; The second determination module is also used to determine the conversion parameters of the three-dimensional model to the screen of the wearable device based on the three-dimensional position information of the first target object image in the real world, the first target object image and the camera intrinsic parameters.

10. An electronic device, characterized in that: include: processor; as well as A memory for storing programs; The program includes instructions, which, when executed by the processor, cause the processor to perform the method according to any one of claims 1 to 8.

11. A non-transitory computer-readable storage medium, characterized in that The non-transitory computer-readable storage medium stores computer instructions for causing the computer to execute the method according to any one of claims 1-8.