WO2023151271A1 - Model presentation method and apparatus, and electronic device and storage medium - Google Patents

Model presentation method and apparatus, and electronic device and storage medium Download PDF

Info

Publication number
WO2023151271A1
WO2023151271A1 PCT/CN2022/118201 CN2022118201W WO2023151271A1 WO 2023151271 A1 WO2023151271 A1 WO 2023151271A1 CN 2022118201 W CN2022118201 W CN 2022118201W WO 2023151271 A1 WO2023151271 A1 WO 2023151271A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
image
model
projection
area
Prior art date
Application number
PCT/CN2022/118201
Other languages
French (fr)
Chinese (zh)
Inventor
范涛
周玉杰
Original Assignee
上海商汤智能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 上海商汤智能科技有限公司 filed Critical 上海商汤智能科技有限公司
Publication of WO2023151271A1 publication Critical patent/WO2023151271A1/en

Links

Images

Classifications

    • G06T3/06

Definitions

  • the present disclosure relates to the technical field of three-dimensional models, and in particular, to a model display method, device, electronic equipment, and storage medium.
  • each 3D model can be roamed.
  • two virtual cameras can be set.
  • the positions of the two virtual cameras are the same on the horizontal plane, and their positions are different in the direction vertical to the horizontal plane.
  • the two virtual cameras move synchronously, and in the process of moving , using the first virtual camera to collect the perspective view of the 3D model, using the second virtual camera to collect the top view of the 3D model, and completing the roaming of each 3D model.
  • the method of using two virtual cameras to collect images of the 3D model has the problem of multi-camera synchronization, and the operation process is cumbersome and the efficiency is low.
  • the present disclosure at least provides a model display method, device, electronic equipment and storage medium.
  • the present disclosure provides a model presentation method, including:
  • the overlay information includes: in the image overlay area The overlay position and/or display size on the ;
  • the thumbnail corresponding to each three-dimensional model is superimposed on the image superposition area of the projected image to generate a target display image.
  • the projection image is collected by using the projection camera, and the thumbnail corresponding to each 3D model in the projection image is obtained; the thumbnail can represent the shape of the 3D model;
  • the superimposition information corresponding to the thumbnail is to superimpose the thumbnail corresponding to each 3D model on the image superposition area of the projected image to generate a target display image.
  • the target display image includes not only the projection image of the 3D model, but also the thumbnail representing the shape of the 3D model, which realizes the roaming of each 3D model with a virtual camera, alleviates the problem of multi-camera synchronization, and improves the efficiency of model roaming.
  • using one frame of target display image to display the projected image and thumbnail alleviates the problem of waste of resources caused by generating multiple frames of images during the roaming process of the 3D model.
  • generating a thumbnail corresponding to each 3D model includes:
  • a thumbnail corresponding to the three-dimensional model is generated.
  • the plan view of the 3D model in the direction of target acquisition wherein the plan view of the 3D model in the direction of target acquisition can more accurately represent the shape of the 3D model, and then based on the plan view, after generating the corresponding thumbnail of the 3D model,
  • the thumbnail can represent the 3D model more accurately.
  • the process of determining the thumbnail does not need manual hand drawing, and the generation process of the thumbnail is relatively simple and efficient.
  • the superimposition information includes a superimposition position
  • the overlay information of the thumbnail includes:
  • the superimposition position of the thumbnail image corresponding to the 3D model is determined.
  • the superimposed position of the thumbnail corresponding to the three-dimensional model is determined, so that the multiple three-dimensional models on the projected image
  • the relative positional relationship is matched with the relative positional relationship of the thumbnails respectively corresponding to the plurality of three-dimensional models on the image superposition area, thereby improving the accuracy of the determined superimposition position.
  • determining the position information of the three-dimensional model on the projection image includes:
  • the display position information is converted into the view coordinate system corresponding to the projection image, so as to obtain the position information of the three-dimensional model on the projection image.
  • the position information of the 3D model on the projected image can be flexibly determined through the above two methods, so as to provide data support for subsequent determination of the superimposition position of the thumbnail corresponding to the 3D model on the image superimposition area.
  • the 3D model corresponds to The overlay position of the thumbnail, including:
  • the abscissa information in the position information of the 3D model on the projected image and the width ratio in the size ratio information it is easier and more efficient to determine the lateral distance information of the thumbnail corresponding to the 3D model;
  • the vertical coordinate information in the position information on the projection image and the height ratio in the size ratio information are relatively simple and efficient to determine the longitudinal distance information of the thumbnail corresponding to the 3D model; realize the use of the position of each 3D model in the projection image Information, more accurately determine the superposition position of the thumbnail corresponding to each 3D model.
  • the determination of the 3D model corresponding to the 3D model is based on the projection information of the 3D model in the projection image and the area information.
  • the overlay information of the thumbnail includes:
  • the display size of the thumbnail image corresponding to the 3D model is determined.
  • the display size of the thumbnail image corresponding to the 3D model is determined, so that the 3D
  • the ratio information between the display size of the thumbnail corresponding to the model and the image size of the three-dimensional model matches the size ratio information between the image superposition area and the projected image, thereby improving the display effect of the thumbnail.
  • the thumbnail corresponding to the 3D model is determined based on the size ratio information and the projection area information of the 3D model in the projection image indicated by the projection information.
  • display dimensions including:
  • the display height in the display size is determined.
  • the display size of the thumbnail image corresponding to the 3D model can be determined more accurately , so that the size of the thumbnail corresponding to the 3D model matches the size of the 3D model, and the size of the image superposition area matches the size of the projected image, and then the follow-up can be more accurate based on the display size
  • the thumbnail corresponding to the 3D model is overlaid in the image overlay area.
  • model display device including:
  • An acquisition module configured to acquire a projection image captured by the projection camera and a thumbnail corresponding to each 3D model included in the projection image
  • a first determination module configured to determine the area information of the image superposition area set in the projected image
  • the second determination module is configured to determine the overlay information of the thumbnail image corresponding to the three-dimensional model based on the projection information of the three-dimensional model in the projected image and the area information; wherein the overlay information includes : the overlay position and/or display size on the image overlay area;
  • the first generating module is configured to superimpose the thumbnail corresponding to each 3D model on the image superposition area of the projected image according to the superimposition information of the thumbnail to generate a target display image.
  • the present disclosure provides an electronic device, including: a processor, a memory, and a bus, the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the The memory communicates with each other through a bus, and when the machine-readable instructions are executed by the processor, the steps of the model presentation method as described in the first aspect or any implementation manner are executed.
  • the present disclosure provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is run by a processor, the model as described in the above-mentioned first aspect or any implementation mode is executed. Show the steps of the method.
  • Fig. 1 shows a schematic flowchart of a model presentation method provided by an embodiment of the present disclosure
  • FIG. 2 shows a schematic diagram of multiple acquisition directions corresponding to a 3D model in a model presentation method provided by an embodiment of the present disclosure
  • Fig. 3 shows a schematic diagram of a target display image provided by an embodiment of the present disclosure
  • Fig. 4 shows a schematic structural diagram of a model display device provided by an embodiment of the present disclosure
  • Fig. 5 shows a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
  • each 3D model can be roamed.
  • two virtual cameras can be set.
  • the positions of the two virtual cameras are the same on the horizontal plane, and their positions are different in the direction vertical to the horizontal plane.
  • the two virtual cameras move synchronously, and in the process of moving , using the first virtual camera to collect the perspective view of the 3D model, using the second virtual camera to collect the top view of the 3D model, and completing the roaming of each 3D model.
  • the method of using two virtual cameras to collect images of the 3D model has the problem of multi-camera synchronization, and the operation process is cumbersome and the efficiency is low.
  • using the first virtual camera to collect the perspective view of the 3D model and using the second virtual camera to collect the perspective view of the 3D model will generate multiple frames of images with the same resolution, resulting in a waste of resources.
  • embodiments of the present disclosure provide a model display method, device, electronic device, and storage medium.
  • the execution subject of the model presentation method provided by the embodiments of the present disclosure is generally a computer device with certain computing capabilities, and the computer device includes, for example: a terminal device or a server; the server may be, for example, a local server, a cloud server, and the like.
  • the terminal device may be, for example, a mobile phone, a tablet, an augmented reality (Augmented Reality, AR) glasses, a personal digital assistant (Personal Digital Assistant, PDA) and other devices.
  • the model presentation method can be implemented by a processor calling computer-readable instructions stored in a memory.
  • FIG. 1 it is a schematic flowchart of a model display method provided by an embodiment of the present disclosure.
  • the method includes: S101-S104, specifically:
  • the projection image is collected by using the projection camera, and the thumbnail corresponding to each 3D model in the projection image is obtained; the thumbnail can represent the shape of the 3D model;
  • the superimposition information corresponding to the thumbnail is to superimpose the thumbnail corresponding to each 3D model on the image superposition area of the projected image to generate a target display image.
  • the target display image includes not only the projection image of the 3D model, but also the thumbnail representing the shape of the 3D model, which realizes the roaming of each 3D model with a virtual camera, alleviates the problem of multi-camera synchronization, and improves the efficiency of model roaming.
  • using one frame of target display image to display the projected image and thumbnail alleviates the problem of waste of resources caused by generating multiple frames of images during the roaming process of the 3D model.
  • the projection camera can be a virtual projection camera in the model rendering engine; or, the generated camera generation module can also be called to generate a virtual projection camera, and the virtual projection camera is used as a projection camera.
  • the projection camera may be a perspective projection camera, or an orthogonal projection camera.
  • the projection image is a perspective projection image
  • the projection image is an orthographic projection image.
  • the projection camera corresponds to pose data
  • the pose data includes camera position and camera pose
  • the camera position can be the coordinate information of the projection camera in the world coordinate system corresponding to the virtual scene
  • the camera pose can be the Euler angle of the projection camera information.
  • the projection camera may be used to collect a projection image of at least one three-dimensional model included in the virtual scene.
  • a thumbnail corresponding to each three-dimensional model in the projected image is obtained.
  • the thumbnail corresponding to each three-dimensional model may be pre-generated before the projection image is collected, or may be generated in real time after the projection image is collected.
  • the thumbnail image corresponding to the 3D model may be an image capable of representing the shape of the 3D model.
  • the thumbnail of the 3D model may be a front view, a top view, etc. of the 3D model.
  • generating a thumbnail corresponding to each 3D model may include: determining a plan view of the 3D model in a target collection direction; and generating a thumbnail corresponding to the 3D model based on the plan view.
  • the target collection direction corresponding to the 3D model can be set as required, wherein different 3D models can correspond to one target collection direction, or different 3D models can also correspond to different target collection directions.
  • the target acquisition direction can be any one of the top view direction, the bottom view direction, the front view direction, the back view direction, the left view direction, and the right view direction. See Figure 2 for a schematic diagram of multiple acquisition directions.
  • the target acquisition direction corresponding to the three-dimensional model can be determined according to the structural characteristics of the three-dimensional model. For example, if the form displayed in the front view direction of 3D model 1 has iconic characteristics, then the target acquisition direction corresponding to 3D model 1 can be the front view direction; The acquisition direction of the target can be the overlooking direction and the like.
  • the plane view of the 3D model in the target collection direction can be determined.
  • the newly generated virtual camera can be used to collect the plane view of the 3D model in the direction of the target collection.
  • a projection camera may also be used to collect a plane view of the 3D model in the target collection direction.
  • the plane view may be used as a thumbnail corresponding to the 3D model.
  • pixel information such as size and brightness of the plan view may be adjusted, and the adjusted plan view may be used as a thumbnail corresponding to the 3D model.
  • the plan view of the 3D model in the direction of target acquisition wherein the plan view of the 3D model in the direction of target acquisition can more accurately represent the shape of the 3D model, and then based on the plan view, after generating the corresponding thumbnail of the 3D model,
  • the thumbnail can represent the 3D model more accurately.
  • the process of determining the thumbnail does not need manual hand drawing, and the generation process of the thumbnail is relatively simple and efficient.
  • an image overlay area can be set in the projected image, so that the adjusted thumbnail can be overlaid on the image overlay area later.
  • the size of the image superposition area may be determined according to the size of the projected image; for example, the size of the image superposition area may be one-tenth, one-twentieth, etc. of the projected image. That is, if the size of the projected image is 510 ⁇ 510, the size of the image superposition area may be 51 ⁇ 51.
  • the proportional relationship between the width and the height of the projected image may also be determined according to the size information of the projected image; based on the proportional relationship, the size of the image superposition area is determined.
  • the size of the projected image is 1024 ⁇ 1024, the size of the image overlay area can be 128 ⁇ 128, 64 ⁇ 64, etc., the size of the projected image is 1024 ⁇ 512, and the size of the image overlay area can be 128 ⁇ 64, 64 ⁇ 32 wait.
  • the position of the image superposition area can be determined according to the position of the blank area included in the projected image. For example, if the blank area at the upper left of the projected image is relatively large, an image superposition area of a specific size may be set at the upper left of the projected image. Alternatively, one of the upper left position, lower left position, upper right position, and lower right position of the projected image may be arbitrarily selected as the position of the image superposition area.
  • area information of the image superimposed area in the projected image can be determined.
  • the area information may be position information, size information, etc. of the image superposition area in the projected image.
  • the thumbnail After the thumbnail corresponding to each 3D model is generated, the thumbnail should be superimposed on the image superposition area of the projected image.
  • the thumbnail When superimposing the thumbnail on the image superimposing area, it is necessary to determine the display size and/or superimposing position of the thumbnail on the image superimposing area.
  • the projection information may include: the image size of the 3D model in the projected image, the position information of the 3D model on the projected image, that is, the coordinate information in the view coordinate system corresponding to the projected image.
  • the area information may include an area size of the image overlay area.
  • the image proportion occupied by the three-dimensional model in the projected image can be determined according to the image size of the three-dimensional model in the projected image and the size information of the projected image;
  • the area size of the overlay area determines the display size of the thumbnail corresponding to the 3D model, so that the image proportion occupied by the 3D model in the projected image matches the area proportion occupied by the thumbnail corresponding to the 3D model in the image overlay area .
  • the superimposed position of the thumbnail corresponding to the 3D model on the image projected area can be determined, so that the 3D model can be projected
  • the position in the image, and the position of the thumbnail corresponding to the 3D model in the image overlay area match.
  • the 3D model corresponding to the 3D model is determined based on the projection information of the 3D model in the projection image and the area information.
  • the superimposed information of the above thumbnails may include:
  • Step A1 based on the area size indicated by the area information and the image size corresponding to the projection image, determine the size ratio information between the image superposition area and the projection image;
  • Step A2 based on the size ratio information and the position information of the 3D model on the projection image indicated by the projection information corresponding to the 3D model, determine the superimposition of the thumbnail image corresponding to the 3D model Location.
  • step A1 based on the area size indicated by the area information of the image superposition area and the image size corresponding to the projected image, size ratio information between the image superimposed area and the projected image is determined.
  • the size ratio information may include: width ratio and height ratio. For example, it is possible to determine the first ratio between the width value in the area size of the image superposition area and the width value in the image size of the projected image, and determine the first ratio as the width ratio; and determine the area size of the image overlay area A second ratio between the height value in and the height value in the image size of the projected image is determined as the height ratio.
  • step A2 the position information of the 3D model on the projected image can be determined first; based on the size ratio information and the position information of the 3D model on the projected image, the superimposed position of the thumbnail corresponding to the 3D model can be determined.
  • the position information can be multiplied by the size ratio information, and the obtained product result can be used to determine the superposition position of the thumbnail corresponding to the 3D model, so that the distance between the position of the 3D model and the lower boundary of the projected image and the height of the projected image can be determined.
  • the first ratio between matches the distance between the superimposed position of the thumbnail and the lower boundary of the image superimposed area, and the second ratio between the height of the image superimposed area, and the distance between the position of the 3D model and the left boundary of the projected image
  • the third ratio between the width of the projected image matches the distance between the superimposed position of the thumbnail image and the left border of the image superimposed area, and the fourth ratio between the width of the image superimposed area.
  • the width value of the area size of the image superposition area is a1, the height value is b1, the width value of the image size corresponding to the projected image is a2, and the height value is b2.
  • the superimposed position of the thumbnail corresponding to the three-dimensional model is determined, so that the multiple three-dimensional models on the projected image
  • the relative positional relationship is matched with the relative positional relationship of the thumbnails respectively corresponding to the plurality of three-dimensional models on the image superposition area, thereby improving the accuracy of the determined superimposition position.
  • the position information of the three-dimensional model on the projection image may be determined according to the following two methods:
  • Mode 1 Based on the projection area information of the 3D model in the projection image, determine the center point of the projection area corresponding to the 3D model, and determine the position information of the center point as the 3D model in the projected image. location information on the projected image.
  • Method 2 Obtain the display position information of the 3D model in the set world coordinate system; use the determined coordinate system conversion matrix to convert the display position information into the view coordinate system corresponding to the projected image, and obtain the Position information of the 3D model on the projected image.
  • the projection area information of the 3D model in the projected image is determined.
  • the projected area can be the outline area of the 3D model on the projected image (the outline area can be the projected area), or the 3D model on the projected image.
  • the detection frame corresponding to the contour area of the contour area may be a projection area); that is, the projection area information may include the position information of the contour area on the projection image, or the position information of the detection frame corresponding to the contour area on the projection image location information, etc.
  • the center point of the projection area corresponding to the three-dimensional model may be determined, and the position information of the center point may be determined as the position information of the three-dimensional model on the projection image.
  • the display pose of the 3D model in a real scene may be determined, and the display pose includes display position information and pose information. Therefore, the display position information of the 3D model in the set world coordinate system can be obtained.
  • the world coordinate system may be a coordinate system constructed with the target scene position in the real scene as the origin.
  • the determined first coordinate system conversion matrix can be used to convert the display position information of the 3D model in the world coordinate system to the camera coordinate system corresponding to the projection camera to obtain intermediate position information; and then use the second coordinate system conversion matrix , the intermediate display position information of the 3D model in the camera coordinate system corresponding to the projection camera is transformed into the view coordinate system corresponding to the projection image, and the position information of the 3D model on the projection image is obtained.
  • the conversion matrix of the first coordinate system may be determined according to information such as camera extrinsic parameters and the position of the projection camera.
  • the conversion matrix of the second coordinate system may be determined according to information such as camera internal parameters and the position of the projection camera.
  • the position information of the 3D model on the projected image can be flexibly determined through the above two methods, so as to provide data support for subsequent determination of the superimposition position of the thumbnail corresponding to the 3D model on the image superimposition area.
  • the 3D model is determined based on the size ratio information and the position information of the 3D model on the projection image indicated by the projection information corresponding to the 3D model
  • the corresponding superposition position of the thumbnail may include:
  • the abscissa position in the superimposed position can be determined based on the lateral distance information and the area information.
  • the ordinate position in the superimposed position can be determined.
  • the abscissa position and the ordinate position may be coordinate information in a view coordinate system corresponding to the projected image. Alternatively, it may also be coordinate information in the view coordinate system corresponding to the image superposition area.
  • the position information of the three-dimensional model D in the view coordinate system corresponding to the projection image in the figure is (768, 128), that is, the abscissa information is 768, and the ordinate information is 128; in the size ratio information
  • the width ratio is a1/a2, that is, the width ratio is 1/16;
  • the height ratio in the size ratio information is b1/b2, that is, the height ratio is 1/16;
  • the ordinate information (128) in the position information of D is multiplied, and the longitudinal distance information is 8; then the abscissa position and the ordinate position of the superposition position can be determined according to the determined horizontal distance information, longitudinal distance information and area information.
  • the superimposed position of the thumbnail corresponding to the three-dimensional model D may be (48, 488), and the superimposed position is position information in the view coordinate system corresponding to the projected image.
  • the abscissa information in the position information of the 3D model on the projected image and the width ratio in the size ratio information it is easier and more efficient to determine the lateral distance information of the thumbnail corresponding to the 3D model;
  • the vertical coordinate information in the position information on the projection image and the height ratio in the size ratio information are relatively simple and efficient to determine the longitudinal distance information of the thumbnail corresponding to the 3D model; realize the use of the position of each 3D model in the projection image Information, more accurately determine the superposition position of the thumbnail corresponding to each 3D model.
  • the superimposition information includes a display size
  • determine the corresponding 3D model based on the projection information of the 3D model in the projection image and the area information.
  • the superimposed information of the above thumbnails may include:
  • Step B1 based on the area size indicated by the area information and the image size corresponding to the projected image, determine the size ratio information between the image superposition area and the projected image;
  • Step B2 based on the size ratio information and the projection area information of the 3D model in the projection image indicated by the projection information, determine the display size of the thumbnail image corresponding to the 3D model.
  • step B1 the size ratio information between the image superposition region and the projected image can be determined based on the region size indicated by the region information of the image superposition region and the image size corresponding to the projected image; wherein, the size ratio information includes: width ratio and height ratio.
  • the size ratio information includes: width ratio and height ratio.
  • step B2 based on the size ratio information and the projection area information of each 3D model in the projection image indicated by the projection information, the display size of the thumbnail image corresponding to each 3D model is determined.
  • the projection area information may include a detection frame corresponding to a contour area of the three-dimensional model on the projection image, and size information on the projection image.
  • target detection may be performed on the projection image, and projection area information corresponding to each three-dimensional model in the projection image may be determined.
  • the trained neural network can be used to perform object detection on the projected image.
  • the width value indicated by the projection area information can be multiplied by the width ratio in the size ratio information to obtain the width value in the display size;
  • the height value indicated by the projection area information can be multiplied by the height ratio in the size ratio information , to get the height value in the display size.
  • the width ratio is a1/a2, and the height ratio is b1/b2;
  • the projection area information corresponding to the three-dimensional model D includes :
  • the width is m2, the height is n2, and the display size of the thumbnail D' corresponding to the 3D model can be determined. That is, the display size can be width: a1/a2 ⁇ m2, height: b1/b2 ⁇ n2.
  • the display size of the thumbnail image corresponding to the 3D model is determined, so that the 3D
  • the ratio information between the display size of the thumbnail corresponding to the model and the image size of the three-dimensional model matches the size ratio information between the image superposition area and the projected image, thereby improving the display effect of the thumbnail.
  • the determination of the thumbnail corresponding to the 3D model is based on the size ratio information and the projection area information of the 3D model in the projection image indicated by the projection information.
  • Display dimensions which can include:
  • the display height in the display size is determined.
  • the display width in the display size is determined; for example, the display width can be obtained by multiplying the width information in the projection area information and the width ratio.
  • the display height in the display size is determined; for example, the height information in the projection area information can be multiplied by the height ratio to obtain the display height.
  • the projection information indicates that the three-dimensional model D has a width of m2 and a height of n2 on the projection image;
  • the width ratio in the size ratio information is a1/a2
  • the height in the size ratio information is The ratio is b1/b2;
  • the ratio b1/b2 is multiplied by the height n2 of the 3D model D, that is, (1/16) ⁇ 16, and the display height of the thumbnail image corresponding to the 3D model is 1; that is, the display of the thumbnail image D' corresponding to the 3D model D can be determined
  • Dimensions include: 4 for display width and 1 for display height.
  • the display size of the thumbnail image corresponding to the 3D model can be determined more accurately , so that the size of the thumbnail corresponding to the 3D model matches the size of the 3D model, and the size of the image superposition area matches the size of the projected image, and then the follow-up can be more accurate based on the display size
  • the thumbnail corresponding to the 3D model is overlaid in the image overlay area.
  • the thumbnail corresponding to each 3D model After determining the overlay position and/or display size of the thumbnail corresponding to each 3D model in the image overlay area, the thumbnail corresponding to each 3D model can be superimposed on the projection according to the overlay position and/or display size corresponding to the thumbnail On the image superposition area of the image, the target display image is obtained.
  • the overlay information includes the overlay position but does not include the display size
  • the overlay information does not include the overlay position and display size
  • a target display image is generated at a preset position in the region.
  • the preset size and preset position can be set as required.
  • the overlay information includes the overlay position and display size
  • the display screen of any device may be controlled to display the target display image.
  • the device may be a mobile phone, a computer, and the like.
  • the writing order of each step does not mean a strict execution order and constitutes any limitation on the implementation process.
  • the specific execution order of each step should be based on its function and possible
  • the inner logic is OK.
  • the embodiment of the present disclosure also provides a model display device, as shown in FIG.
  • the second determination module 403 and the first generation module 404 specifically:
  • An acquisition module 401 configured to acquire a projection image captured by the projection camera and a thumbnail corresponding to each 3D model included in the projection image;
  • the first determination module 402 is configured to determine the area information of the image superposition area set in the projected image
  • the second determination module 403 is configured to determine, based on the projection information of the 3D model in the projection image and the area information, the overlay information of the thumbnail image corresponding to the 3D model; wherein the overlay information Including: the overlay position and/or display size on the image overlay area;
  • the first generation module 404 is configured to superimpose the thumbnail corresponding to each 3D model on the image superposition area of the projected image according to the superimposition information of the thumbnail to generate a target display image.
  • the device further includes: a second generation module 405, configured to generate a thumbnail corresponding to each 3D model according to the following steps:
  • a thumbnail corresponding to the three-dimensional model is generated.
  • the second determination module 403 if the superimposition information includes a superimposition position, the projection information based on the 3D model in the projection image and the area information , when determining the overlay information of the thumbnail corresponding to the 3D model, it is used for:
  • the superimposition position of the thumbnail image corresponding to the 3D model is determined.
  • the second determination module 403 when determining the position information of the 3D model on the projection image, is configured to:
  • the display position information is converted into the view coordinate system corresponding to the projection image, so as to obtain the position information of the three-dimensional model on the projection image.
  • the second determination module 403 based on the size ratio information and indicated by the projection information corresponding to the 3D model, the 3D model on the projection image
  • the position information is used to determine the overlay position of the thumbnail corresponding to the 3D model:
  • the second determination module 403 when the superimposition information includes display size, the projection information based on the 3D model in the projection image and the area information , when determining the overlay information of the thumbnail corresponding to the 3D model, it is used for:
  • the display size of the thumbnail image corresponding to the 3D model is determined.
  • the second determination module 403 determines the projection area information of the 3D model in the projection image based on the size ratio information and the projection information.
  • the second determination module 403 determines the projection area information of the 3D model in the projection image based on the size ratio information and the projection information.
  • the display height in the display size is determined.
  • the functions of the device provided by the embodiments of the present disclosure or the included templates can be used to execute the methods described in the above method embodiments, and its specific implementation can refer to the description of the above method embodiments. For brevity, here No longer.
  • an embodiment of the present disclosure also provides an electronic device.
  • FIG. 5 it is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure, including a processor 501 , a memory 502 , and a bus 503 .
  • the memory 502 is used to store execution instructions, including a memory 5021 and an external memory 5022; the memory 5021 here is also called an internal memory, and is used to temporarily store calculation data in the processor 501 and exchange data with an external memory 5022 such as a hard disk.
  • the processor 501 exchanges data with the external memory 5022 through the memory 5021.
  • the processor 501 communicates with the memory 502 through the bus 503, so that the processor 501 executes the following instructions:
  • the overlay information includes: in the image overlay area The overlay position and/or display size on the ;
  • the thumbnail corresponding to each three-dimensional model is superimposed on the image superposition area of the projected image to generate a target display image.
  • an embodiment of the present disclosure also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is run by a processor, the steps of the model demonstration method described in the above-mentioned method embodiments are executed.
  • the storage medium may be a volatile or non-volatile computer-readable storage medium.
  • the embodiment of the present disclosure also provides a computer program product, the computer program product carries a program code, and the instructions included in the program code can be used to execute the steps of the model presentation method described in the above method embodiment, for details, please refer to the above method The embodiment will not be repeated here.
  • the above-mentioned computer program product may be specifically realized by means of hardware, software or a combination thereof.
  • the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK) etc. wait.
  • a software development kit Software Development Kit, SDK
  • the embodiments of the present disclosure relate to the field of augmented reality.
  • the target object may involve faces, limbs, gestures, actions, etc. related to the human body, or markers and markers related to objects, or sand tables, display areas or display items related to venues or places.
  • Vision-related algorithms can involve visual positioning, SLAM, 3D reconstruction, image registration, background segmentation, object key point extraction and tracking, object pose or depth detection, etc.
  • Specific applications can not only involve interactive scenes such as guided tours, navigation, explanations, reconstructions, virtual effect overlays and display related to real scenes or objects, but also special effects processing related to people, such as makeup beautification, body beautification, special effect display, virtual Interactive scenarios such as model display.
  • the relevant features, states and attributes of the target object can be detected or identified through the convolutional neural network.
  • the above-mentioned convolutional neural network is a network model obtained by performing model training based on a deep learning framework.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the functions are realized in the form of software function units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium executable by a processor.
  • the technical solution of the present disclosure is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present disclosure.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disc and other media that can store program codes. .

Abstract

Provided in the present disclosure are a model presentation method and apparatus, and an electronic device and a storage medium. The method comprises: acquiring a projection image collected by a projection camera, and a thumbnail corresponding to each three-dimensional model comprised in the projection image; determining region information of an image superposition region, which is set in the projection image; on the basis of projection information of the three-dimensional models in the projection image and the region information, determining superposition information of the thumbnails corresponding to the three-dimensional models, wherein the superposition information comprises: superposition positions and/or presentation sizes on the image superposition region; and according to the superposition information of the thumbnails, superposing, onto the image superposition region of the projection image, the thumbnails corresponding to the three-dimensional models, so as to generate a target presented image.

Description

模型展示方法、装置、电子设备及存储介质Model display method, device, electronic device and storage medium
本公开要求于2022年02月10日提交中国专利局、申请号为202210125905.6、发明名称为“模型展示方法、装置、电子设备及存储介质”,其全部内容通过引用结合在本公开中。This disclosure is required to be submitted to the China Patent Office on February 10, 2022. The application number is 202210125905.6, and the title of the invention is "model display method, device, electronic equipment, and storage medium." The entire content of which is incorporated by reference in this disclosure.
技术领域technical field
本公开涉及三维模型技术领域,具体而言,涉及模型展示方法、装置、电子设备及存储介质。The present disclosure relates to the technical field of three-dimensional models, and in particular, to a model display method, device, electronic equipment, and storage medium.
背景技术Background technique
虚拟现实场景、数字孪生项目等场景中,可以在三维模型建立之后,对各个三维模型进行漫游。其中,在对各个三维模型进行漫游时,可以设置两个虚拟相机,两个虚拟相机在水平面的位置相同,在垂直水平面的方向上位置不同,两个虚拟相机同步移动,并在移动的过程中,利用第一虚拟相机采集三维模型的透视图,利用第二虚拟相机采集三维模型的俯视图,完成对各个三维模型的漫游。In virtual reality scenarios, digital twin projects and other scenarios, after the 3D model is established, each 3D model can be roamed. Among them, when roaming each 3D model, two virtual cameras can be set. The positions of the two virtual cameras are the same on the horizontal plane, and their positions are different in the direction vertical to the horizontal plane. The two virtual cameras move synchronously, and in the process of moving , using the first virtual camera to collect the perspective view of the 3D model, using the second virtual camera to collect the top view of the 3D model, and completing the roaming of each 3D model.
但是,利用两个虚拟相机采集三维模型的图像的方式,存在多相机同步的问题,操作过程繁琐、效率较低。However, the method of using two virtual cameras to collect images of the 3D model has the problem of multi-camera synchronization, and the operation process is cumbersome and the efficiency is low.
发明内容Contents of the invention
有鉴于此,本公开至少提供一种模型展示方法、装置、电子设备及存储介质。In view of this, the present disclosure at least provides a model display method, device, electronic equipment and storage medium.
第一方面,本公开提供了一种模型展示方法,包括:In a first aspect, the present disclosure provides a model presentation method, including:
获取投影相机采集的投影图像、以及所述投影图像中包括的每个三维模型对应的缩略图;Acquiring a projection image captured by the projection camera and a thumbnail corresponding to each 3D model included in the projection image;
确定所述投影图像中设置的图像叠加区域的区域信息;determining the area information of the image superposition area set in the projected image;
基于所述三维模型在所述投影图像中的投影信息、和所述区域信息,确定所述三维模型对应的所述缩略图的叠加信息;其中,所述叠加信息包括:在所述图像叠加区域上的叠加位置和/或展示尺寸;Based on the projection information of the 3D model in the projected image and the area information, determine the overlay information of the thumbnail corresponding to the 3D model; wherein the overlay information includes: in the image overlay area The overlay position and/or display size on the ;
按照所述缩略图的所述叠加信息,将每个三维模型对应的所述缩略图叠加在所述投影图像的所述图像叠加区域,生成目标展示图像。According to the superimposition information of the thumbnail, the thumbnail corresponding to each three-dimensional model is superimposed on the image superposition area of the projected image to generate a target display image.
上述方法中,通过利用投影相机采集投影图像,并获取投影图像中每个三维模型对应的缩略图;该缩略图能够表征该三维模型形态;并在确定缩略图对应的叠加信息之后,可以按照缩略图对应的叠加信息,将每个三维模型对应的缩略图叠加在投影图像的图像叠加区域,生成目标展示图像。该目标展示图像中既包括三维模型的投影图像、也包括表征三维模型形态的缩略图,实现了利用一个虚拟相机对各个三维模型的漫游,缓解了多相机同步问题,提高了模型漫游效率。同时,利用一帧目标展示图像展示投影图像和缩略图,缓解了三维模型漫游过程中产生多帧图像时带来的资源浪费问题。In the above method, the projection image is collected by using the projection camera, and the thumbnail corresponding to each 3D model in the projection image is obtained; the thumbnail can represent the shape of the 3D model; The superimposition information corresponding to the thumbnail is to superimpose the thumbnail corresponding to each 3D model on the image superposition area of the projected image to generate a target display image. The target display image includes not only the projection image of the 3D model, but also the thumbnail representing the shape of the 3D model, which realizes the roaming of each 3D model with a virtual camera, alleviates the problem of multi-camera synchronization, and improves the efficiency of model roaming. At the same time, using one frame of target display image to display the projected image and thumbnail, alleviates the problem of waste of resources caused by generating multiple frames of images during the roaming process of the 3D model.
一种可能的实施方式中,生成每个三维模型对应的缩略图,包括:In a possible implementation manner, generating a thumbnail corresponding to each 3D model includes:
确定所述三维模型在目标采集方向上的平面图;Determining the plane view of the three-dimensional model in the target collection direction;
基于所述平面图,生成所述三维模型对应的缩略图。Based on the plan view, a thumbnail corresponding to the three-dimensional model is generated.
这里,通过确定三维模型在目标采集方向上的平面图,其中,三维模型在目标采集方向上的平面图能够较准确的表征该三维模型的形态,进而基于该平面图,生成三维模型对应的缩略图后,缩略图能够较准确的表征三维模型。同时,通过基于平面图,确定三维模型对应的缩略图,缩略图的确定过程无需人工手绘,缩略图的生成过程较简便、效率较高。Here, by determining the plan view of the 3D model in the direction of target acquisition, wherein the plan view of the 3D model in the direction of target acquisition can more accurately represent the shape of the 3D model, and then based on the plan view, after generating the corresponding thumbnail of the 3D model, The thumbnail can represent the 3D model more accurately. At the same time, by determining the thumbnail corresponding to the three-dimensional model based on the plan view, the process of determining the thumbnail does not need manual hand drawing, and the generation process of the thumbnail is relatively simple and efficient.
一种可能的实施方式中,在所述叠加信息包括叠加位置的情况下,所述基于所述三维模型在所述投影图像中的投影信息、和所述区域信息,确定所述三维模型对应的所述缩略图的叠加信息,包括:In a possible implementation manner, in the case where the superimposition information includes a superimposition position, determining the corresponding location of the 3D model based on the projection information of the 3D model in the projection image and the area information The overlay information of the thumbnail includes:
基于所述区域信息指示的区域尺寸、和所述投影图像对应的图像尺寸,确定所述图像叠加区域与所述投影图像之间的尺寸比例信息;Based on the area size indicated by the area information and the image size corresponding to the projected image, determine the size ratio information between the image superposition area and the projected image;
基于所述尺寸比例信息、和所述三维模型对应的所述投影信息指示的所述三维模型在所述投影图像上的位置信息,确定所述三维模型对应的所述缩略图的叠加位置。Based on the size ratio information and the position information of the 3D model on the projection image indicated by the projection information corresponding to the 3D model, the superimposition position of the thumbnail image corresponding to the 3D model is determined.
这里,通过确定图像叠加区域与投影图像之间的尺寸比例信息,进而基于三维模型在投影图像上的位置信息,确定三维模型对应的缩略图的叠加位置,使得多个三维模型在投影图像上的相对位置关系、与多个三维模型分别对应的缩略图在图像叠加区域上的相对位置关系相匹配,提高了确定的叠加位置的准确性。Here, by determining the size ratio information between the image superposition area and the projected image, and then based on the position information of the three-dimensional model on the projected image, the superimposed position of the thumbnail corresponding to the three-dimensional model is determined, so that the multiple three-dimensional models on the projected image The relative positional relationship is matched with the relative positional relationship of the thumbnails respectively corresponding to the plurality of three-dimensional models on the image superposition area, thereby improving the accuracy of the determined superimposition position.
一种可能的实施方式中,确定所述三维模型在所述投影图像上的位置信息,包括:In a possible implementation manner, determining the position information of the three-dimensional model on the projection image includes:
基于所述三维模型在所述投影图像中的投影区域信息,确定所述三维模型对应的投影区域的中心点,并将所述中心点的位置信息,确定为所述三维模型在所述投影图像上的位置信息;或者,Based on the projection area information of the three-dimensional model in the projection image, determine the center point of the projection area corresponding to the three-dimensional model, and determine the position information of the center point as the three-dimensional model in the projection image location information on ; or,
获取所述三维模型在设置的世界坐标系中的展示位置信息;Obtain display position information of the 3D model in the set world coordinate system;
利用确定的坐标系转换矩阵,将所述展示位置信息转换至所述投影图像对应的视图坐标系中,得到所述三维模型在所述投影图像上的位置信息。Using the determined coordinate system conversion matrix, the display position information is converted into the view coordinate system corresponding to the projection image, so as to obtain the position information of the three-dimensional model on the projection image.
这里,可以通过上述两种方式灵活的确定三维模型在投影图像上的位置信息,为后续确定三维模型对应的缩略图在图像叠加区域上的叠加位置提供数据支持。Here, the position information of the 3D model on the projected image can be flexibly determined through the above two methods, so as to provide data support for subsequent determination of the superimposition position of the thumbnail corresponding to the 3D model on the image superimposition area.
一种可能的实施方式中,所述基于所述尺寸比例信息、和所述三维模型对应的所述投影信息指示的所述三维模型在所述投影图像上的位置信息,确定所述三维模型对应的所述缩略图的叠加位置,包括:In a possible implementation manner, based on the size ratio information and the position information of the 3D model on the projection image indicated by the projection information corresponding to the 3D model, it is determined that the 3D model corresponds to The overlay position of the thumbnail, including:
基于所述三维模型在所述投影图像上的位置信息中的横坐标信息、与所述尺寸比例信息中的宽度比例,确定所述叠加位置中的横坐标位置;Determine the abscissa position in the superimposed position based on the abscissa information in the position information of the three-dimensional model on the projection image and the width ratio in the size ratio information;
基于所述三维模型在所述投影图像上的位置信息中的纵坐标信息、与所述尺寸比例信息中的高度比例,确定所述叠加位置中的纵坐标位置。Based on the ordinate information in the position information of the three-dimensional model on the projected image and the height ratio in the size ratio information, determine the ordinate position in the superposition position.
这里,通过三维模型在投影图像上的位置信息中的横坐标信息、与尺寸比例信息中的宽度比例,较简便和较高效的确定三维模型对应的缩略图的横向距离信息;以及通过三维模型在投影图像上的位置信息中的纵坐标信息、与尺寸比例信息中的高度比例,较简便和较高效的确定三维模型对应的缩略图的纵向距离信息;实现利用投影图像中每个三维模型的位置信息,较准确的确定每个三维模型对应的缩略图的叠加位置。Here, by using the abscissa information in the position information of the 3D model on the projected image and the width ratio in the size ratio information, it is easier and more efficient to determine the lateral distance information of the thumbnail corresponding to the 3D model; The vertical coordinate information in the position information on the projection image and the height ratio in the size ratio information are relatively simple and efficient to determine the longitudinal distance information of the thumbnail corresponding to the 3D model; realize the use of the position of each 3D model in the projection image Information, more accurately determine the superposition position of the thumbnail corresponding to each 3D model.
一种可能的实施方式中,在所述叠加信息包括展示尺寸的情况下,所述基于所述三维 模型在所述投影图像中的投影信息、和所述区域信息,确定所述三维模型对应的所述缩略图的叠加信息,包括:In a possible implementation manner, in the case where the superimposition information includes a display size, the determination of the 3D model corresponding to the 3D model is based on the projection information of the 3D model in the projection image and the area information. The overlay information of the thumbnail includes:
基于所述区域信息指示的区域尺寸、和所述投影图像对应的图像尺寸,确定所述图像叠加区域与所述投影图像之间的尺寸比例信息;Based on the area size indicated by the area information and the image size corresponding to the projected image, determine the size ratio information between the image superposition area and the projected image;
基于所述尺寸比例信息、和所述投影信息指示的所述三维模型在所述投影图像中的投影区域信息,确定所述三维模型对应的所述缩略图的展示尺寸。Based on the size ratio information and the projection area information of the 3D model in the projection image indicated by the projection information, the display size of the thumbnail image corresponding to the 3D model is determined.
本公开实例中,通过确定图像叠加区域与投影图像之间的尺寸比例信息,再基于投影信息指示的三维模型在投影图像中的投影区域信息,确定三维模型对应的缩略图的展示尺寸,使得三维模型对应的缩略图的展示尺寸与该三维模型的图像尺寸之间的比例信息,和图像叠加区域与投影图像之间的尺寸比例信息匹配,提高了缩略图的展示效果。In the disclosed example, by determining the size ratio information between the image superposition area and the projected image, and then based on the projection area information of the 3D model indicated by the projection information in the projected image, the display size of the thumbnail image corresponding to the 3D model is determined, so that the 3D The ratio information between the display size of the thumbnail corresponding to the model and the image size of the three-dimensional model matches the size ratio information between the image superposition area and the projected image, thereby improving the display effect of the thumbnail.
一种可能的实施方式中,所述基于所述尺寸比例信息、和所述投影信息指示的所述三维模型在所述投影图像中的投影区域信息,确定所述三维模型对应的所述缩略图的展示尺寸,包括:In a possible implementation manner, the thumbnail corresponding to the 3D model is determined based on the size ratio information and the projection area information of the 3D model in the projection image indicated by the projection information. display dimensions, including:
基于所述尺寸比例信息指示的宽度比例、和所述投影区域信息中的宽度信息,确定所述展示尺寸中的展示宽度;determining the display width in the display size based on the width ratio indicated by the size ratio information and the width information in the projection area information;
基于所述尺寸比例信息指示的高度比例、和所述投影区域信息中的高度信息,确定所述展示尺寸中的展示高度。Based on the height ratio indicated by the size ratio information and the height information in the projection area information, the display height in the display size is determined.
本公开实例中,通过确定图像叠加区域与投影图像之间的尺寸比例信息,再基于投影信息指示的三维模型在投影图像中的投影区域信息,较准确的确定三维模型对应的缩略图的展示尺寸,使得三维模型对应的缩略图的尺寸、与该三维模型的尺寸之间的比例,和图像叠加区域的尺寸、与投影图像的尺寸之间的比例匹配,进而后续能够根据该展示尺寸,较准确的在图像叠加区域叠加三维模型对应的缩略图。In the disclosed example, by determining the size ratio information between the image superposition area and the projection image, and then based on the projection area information of the 3D model indicated by the projection information in the projection image, the display size of the thumbnail image corresponding to the 3D model can be determined more accurately , so that the size of the thumbnail corresponding to the 3D model matches the size of the 3D model, and the size of the image superposition area matches the size of the projected image, and then the follow-up can be more accurate based on the display size The thumbnail corresponding to the 3D model is overlaid in the image overlay area.
以下装置、电子设备等的效果描述参见上述方法的说明,这里不再赘述。For the description of the effects of the following devices, electronic equipment, etc., refer to the description of the above method, and will not be repeated here.
第二方面,本公开提供了一种模型展示装置,包括:In a second aspect, the present disclosure provides a model display device, including:
获取模块,用于获取投影相机采集的投影图像、以及所述投影图像中包括的每个三维模型对应的缩略图;An acquisition module, configured to acquire a projection image captured by the projection camera and a thumbnail corresponding to each 3D model included in the projection image;
第一确定模块,用于确定所述投影图像中设置的图像叠加区域的区域信息;A first determination module, configured to determine the area information of the image superposition area set in the projected image;
第二确定模块,用于基于所述三维模型在所述投影图像中的投影信息、和所述区域信息,确定所述三维模型对应的所述缩略图的叠加信息;其中,所述叠加信息包括:在所述图像叠加区域上的叠加位置和/或展示尺寸;The second determination module is configured to determine the overlay information of the thumbnail image corresponding to the three-dimensional model based on the projection information of the three-dimensional model in the projected image and the area information; wherein the overlay information includes : the overlay position and/or display size on the image overlay area;
第一生成模块,用于按照所述缩略图的所述叠加信息,将每个三维模型对应的所述缩略图叠加在所述投影图像的所述图像叠加区域,生成目标展示图像。The first generating module is configured to superimpose the thumbnail corresponding to each 3D model on the image superposition area of the projected image according to the superimposition information of the thumbnail to generate a target display image.
第三方面,本公开提供一种电子设备,包括:处理器、存储器和总线,所述存储器存储有所述处理器可执行的机器可读指令,当电子设备运行时,所述处理器与所述存储器之间通过总线通信,所述机器可读指令被所述处理器执行时执行如上述第一方面或任一实施方式所述的模型展示方法的步骤。In a third aspect, the present disclosure provides an electronic device, including: a processor, a memory, and a bus, the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the The memory communicates with each other through a bus, and when the machine-readable instructions are executed by the processor, the steps of the model presentation method as described in the first aspect or any implementation manner are executed.
第四方面,本公开提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行如上述第一方面或任一实施方式所述的模型 展示方法的步骤。In a fourth aspect, the present disclosure provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is run by a processor, the model as described in the above-mentioned first aspect or any implementation mode is executed. Show the steps of the method.
为使本公开的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments will be described in detail below together with the accompanying drawings.
附图说明Description of drawings
为了更清楚地说明本公开实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍。In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following will briefly introduce the drawings required in the embodiments.
图1示出了本公开实施例所提供的一种模型展示方法的流程示意图;Fig. 1 shows a schematic flowchart of a model presentation method provided by an embodiment of the present disclosure;
图2示出了本公开实施例所提供的一种模型展示方法中,三维模型对应的多个采集方向的示意图;FIG. 2 shows a schematic diagram of multiple acquisition directions corresponding to a 3D model in a model presentation method provided by an embodiment of the present disclosure;
图3示出了本公开实施例所提供的一种目标展示图像的示意图;Fig. 3 shows a schematic diagram of a target display image provided by an embodiment of the present disclosure;
图4示出了本公开实施例所提供的一种模型展示装置的架构示意图;Fig. 4 shows a schematic structural diagram of a model display device provided by an embodiment of the present disclosure;
图5示出了本公开实施例所提供的一种电子设备的结构示意图。Fig. 5 shows a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
具体实施方式Detailed ways
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述。In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure.
虚拟现实场景、数字孪生项目等场景中,可以在三维模型建立之后,对各个三维模型进行漫游。其中,在对各个三维模型进行漫游时,可以设置两个虚拟相机,两个虚拟相机在水平面的位置相同,在垂直水平面的方向上位置不同,两个虚拟相机同步移动,并在移动的过程中,利用第一虚拟相机采集三维模型的透视图,利用第二虚拟相机采集三维模型的俯视图,完成对各个三维模型的漫游。In virtual reality scenarios, digital twin projects and other scenarios, after the 3D model is established, each 3D model can be roamed. Among them, when roaming each 3D model, two virtual cameras can be set. The positions of the two virtual cameras are the same on the horizontal plane, and their positions are different in the direction vertical to the horizontal plane. The two virtual cameras move synchronously, and in the process of moving , using the first virtual camera to collect the perspective view of the 3D model, using the second virtual camera to collect the top view of the 3D model, and completing the roaming of each 3D model.
但是,利用两个虚拟相机采集三维模型的图像的方式,存在多相机同步的问题,操作过程繁琐、效率较低。同时,利用第一虚拟相机采集三维模型的透视图、利用第二虚拟相机采集三维模型的透视图,会生成分辨率一致的多帧图像,造成了资源的浪费。However, the method of using two virtual cameras to collect images of the 3D model has the problem of multi-camera synchronization, and the operation process is cumbersome and the efficiency is low. At the same time, using the first virtual camera to collect the perspective view of the 3D model and using the second virtual camera to collect the perspective view of the 3D model will generate multiple frames of images with the same resolution, resulting in a waste of resources.
为了缓解上述问题,本公开实施例提供了一种模型展示方法、装置、电子设备及存储介质。In order to alleviate the above problems, embodiments of the present disclosure provide a model display method, device, electronic device, and storage medium.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。It should be noted that like numerals and letters denote similar items in the following figures, therefore, once an item is defined in one figure, it does not require further definition and explanation in subsequent figures.
为便于对本公开实施例进行理解,首先对本公开实施例所公开的一种模型展示方法进行详细介绍。本公开实施例所提供的模型展示方法的执行主体一般为具有一定计算能力的计算机设备,该计算机设备例如包括:终端设备或服务器;服务器比如可以为本地服务器、云端服务器等。终端设备比如可以为手机、平板、增强现实(Augmented Reality,AR)眼镜、个人数字助理(Personal Digital Assistant,PDA)等设备。在一些可能的实现方式中,该模型展示方法可以通过处理器调用存储器中存储的计算机可读指令的方式来实现。In order to facilitate the understanding of the embodiments of the present disclosure, a model display method disclosed in the embodiments of the present disclosure is first introduced in detail. The execution subject of the model presentation method provided by the embodiments of the present disclosure is generally a computer device with certain computing capabilities, and the computer device includes, for example: a terminal device or a server; the server may be, for example, a local server, a cloud server, and the like. The terminal device may be, for example, a mobile phone, a tablet, an augmented reality (Augmented Reality, AR) glasses, a personal digital assistant (Personal Digital Assistant, PDA) and other devices. In some possible implementations, the model presentation method can be implemented by a processor calling computer-readable instructions stored in a memory.
参见图1所示,为本公开实施例所提供的模型展示方法的流程示意图,该方法包括:S101-S104,具体的:Referring to FIG. 1 , it is a schematic flowchart of a model display method provided by an embodiment of the present disclosure. The method includes: S101-S104, specifically:
S101,获取投影相机采集的投影图像、以及所述投影图像中包括的每个三维模型对应 的缩略图;S101, acquiring a projection image collected by a projection camera and a thumbnail corresponding to each three-dimensional model included in the projection image;
S102,确定所述投影图像中设置的图像叠加区域的区域信息;S102. Determine area information of an image superposition area set in the projected image;
S103,基于所述三维模型在所述投影图像中的投影信息、和所述区域信息,确定所述三维模型对应的所述缩略图的叠加信息;其中,所述叠加信息包括:在所述图像叠加区域上的叠加位置和/或展示尺寸;S103. Based on the projection information of the 3D model in the projection image and the area information, determine superimposition information of the thumbnail image corresponding to the 3D model; wherein the superposition information includes: Overlay position and/or display size on the overlay area;
S104,按照所述缩略图的所述叠加信息,将每个三维模型对应的所述缩略图叠加在所述投影图像的所述图像叠加区域,生成目标展示图像。S104. According to the superimposition information of the thumbnail, superimpose the thumbnail corresponding to each 3D model on the image superposition area of the projected image to generate a target display image.
上述方法中,通过利用投影相机采集投影图像,并获取投影图像中每个三维模型对应的缩略图;该缩略图能够表征该三维模型形态;并在确定缩略图对应的叠加信息之后,可以按照缩略图对应的叠加信息,将每个三维模型对应的缩略图叠加在投影图像的图像叠加区域,生成目标展示图像。该目标展示图像中既包括三维模型的投影图像、也包括表征三维模型形态的缩略图,实现了利用一个虚拟相机对各个三维模型的漫游,缓解了多相机同步问题,提高了模型漫游效率。同时,利用一帧目标展示图像展示投影图像和缩略图,缓解了三维模型漫游过程中产生多帧图像时带来的资源浪费问题。In the above method, the projection image is collected by using the projection camera, and the thumbnail corresponding to each 3D model in the projection image is obtained; the thumbnail can represent the shape of the 3D model; The superimposition information corresponding to the thumbnail is to superimpose the thumbnail corresponding to each 3D model on the image superposition area of the projected image to generate a target display image. The target display image includes not only the projection image of the 3D model, but also the thumbnail representing the shape of the 3D model, which realizes the roaming of each 3D model with a virtual camera, alleviates the problem of multi-camera synchronization, and improves the efficiency of model roaming. At the same time, using one frame of target display image to display the projected image and thumbnail, alleviates the problem of waste of resources caused by generating multiple frames of images during the roaming process of the 3D model.
下述对S101-S104进行具体说明。S101-S104 will be specifically described below.
针对S101:For S101:
该投影相机可以为模型渲染引擎中的虚拟投影相机;或者,也可以调用生成的相机生成模块,生成虚拟投影相机,该虚拟投影相机作为投影相机。其中,该投影相机可以为透视投影相机,也可以为正交投影相机。在投影相机为透视投影相机时,投影图像为透视投影图像;在投影相机为正交投影相机时,投影图像为正交投影图像。The projection camera can be a virtual projection camera in the model rendering engine; or, the generated camera generation module can also be called to generate a virtual projection camera, and the virtual projection camera is used as a projection camera. Wherein, the projection camera may be a perspective projection camera, or an orthogonal projection camera. When the projection camera is a perspective projection camera, the projection image is a perspective projection image; when the projection camera is an orthographic projection camera, the projection image is an orthographic projection image.
该投影相机对应有位姿数据,该位姿数据包括相机位置和相机姿态,该相机位置可以为投影相机在虚拟场景对应的世界坐标系下的坐标信息,相机姿态可以为投影相机的欧拉角信息。The projection camera corresponds to pose data, the pose data includes camera position and camera pose, the camera position can be the coordinate information of the projection camera in the world coordinate system corresponding to the virtual scene, and the camera pose can be the Euler angle of the projection camera information.
实施时,可以利用该投影相机采集虚拟场景中包括的至少一个三维模型的投影图像。在得到投影图像之后,获取投影图像中每个三维模型对应的缩略图。其中,每个三维模型对应的缩略图可以为采集投影图像之前预先生成的,也可以为在采集投影图像之后,实时生成的。其中,三维模型对应的缩略图可以为能够表征三维模型形态的图像。比如,三维模型的缩略图可以为三维模型的正视图、俯视图等。During implementation, the projection camera may be used to collect a projection image of at least one three-dimensional model included in the virtual scene. After the projected image is obtained, a thumbnail corresponding to each three-dimensional model in the projected image is obtained. Wherein, the thumbnail corresponding to each three-dimensional model may be pre-generated before the projection image is collected, or may be generated in real time after the projection image is collected. Wherein, the thumbnail image corresponding to the 3D model may be an image capable of representing the shape of the 3D model. For example, the thumbnail of the 3D model may be a front view, a top view, etc. of the 3D model.
一种可实施方式中,生成每个三维模型对应的缩略图,可以包括:确定所述三维模型在目标采集方向上的平面图;基于所述平面图,生成所述三维模型对应的缩略图。In a possible implementation manner, generating a thumbnail corresponding to each 3D model may include: determining a plan view of the 3D model in a target collection direction; and generating a thumbnail corresponding to the 3D model based on the plan view.
三维模型对应的目标采集方向可以根据需要进行设置,其中,不同三维模型可以对应一个目标采集方向,或者,不同三维模型也可以对应不同目标采集方向。比如,在不同模型对应一个目标采集方向时,该目标采集方向可以为俯视方向、仰视方向、正视方向、背视方向、左侧视方向、右侧视方向中的任一方向。参见图2所示的多个采集方向的示意图。The target collection direction corresponding to the 3D model can be set as required, wherein different 3D models can correspond to one target collection direction, or different 3D models can also correspond to different target collection directions. For example, when different models correspond to a target acquisition direction, the target acquisition direction can be any one of the top view direction, the bottom view direction, the front view direction, the back view direction, the left view direction, and the right view direction. See Figure 2 for a schematic diagram of multiple acquisition directions.
在不同模型对应不同的目标采集方向时,可以根据三维模型的结构特点,确定该三维模型对应的目标采集方向。比如,若三维模型一的正视方向所展示形态具有标识性特点,则三维模型一对应的目标采集方向可以为正视方向;三维模型二的俯视方向所展示形态具有标识性特点,则三维模型二对应的目标采集方向可以为俯视方向等。When different models correspond to different target acquisition directions, the target acquisition direction corresponding to the three-dimensional model can be determined according to the structural characteristics of the three-dimensional model. For example, if the form displayed in the front view direction of 3D model 1 has iconic characteristics, then the target acquisition direction corresponding to 3D model 1 can be the front view direction; The acquisition direction of the target can be the overlooking direction and the like.
在确定了三维模型的目标采集方向之后,可以确定三维模型在目标采集方向上的平面图。比如,可以利用新生成的虚拟相机,采集三维模型在目标采集方向上的平面图。或者,也可以利用投影相机,采集三维模型在目标采集方向上的平面图。After the target collection direction of the 3D model is determined, the plane view of the 3D model in the target collection direction can be determined. For example, the newly generated virtual camera can be used to collect the plane view of the 3D model in the direction of the target collection. Alternatively, a projection camera may also be used to collect a plane view of the 3D model in the target collection direction.
实施时,可以将该平面图作为三维模型对应的缩略图。或者,也可以对该平面图的尺寸、亮度等像素信息进行调整,将调整后的平面图作为三维模型对应的缩略图。During implementation, the plane view may be used as a thumbnail corresponding to the 3D model. Alternatively, pixel information such as size and brightness of the plan view may be adjusted, and the adjusted plan view may be used as a thumbnail corresponding to the 3D model.
这里,通过确定三维模型在目标采集方向上的平面图,其中,三维模型在目标采集方向上的平面图能够较准确的表征该三维模型的形态,进而基于该平面图,生成三维模型对应的缩略图后,缩略图能够较准确的表征三维模型。同时,通过基于平面图,确定三维模型对应的缩略图,缩略图的确定过程无需人工手绘,缩略图的生成过程较简便、效率较高。Here, by determining the plan view of the 3D model in the direction of target acquisition, wherein the plan view of the 3D model in the direction of target acquisition can more accurately represent the shape of the 3D model, and then based on the plan view, after generating the corresponding thumbnail of the 3D model, The thumbnail can represent the 3D model more accurately. At the same time, by determining the thumbnail corresponding to the three-dimensional model based on the plan view, the process of determining the thumbnail does not need manual hand drawing, and the generation process of the thumbnail is relatively simple and efficient.
针对S102:For S102:
实施时,可以在投影图像中设置图像叠加区域,以便后续将调整后的缩略图叠加至图像叠加区域。该图像叠加区域的尺寸可以根据投影图像的尺寸进行确定;比如,图像叠加区域的尺寸可以为投影图像的十分之一、二十分之一等。即若投影图像的尺寸为510×510,则图像叠加区域的尺寸可以为51×51。During implementation, an image overlay area can be set in the projected image, so that the adjusted thumbnail can be overlaid on the image overlay area later. The size of the image superposition area may be determined according to the size of the projected image; for example, the size of the image superposition area may be one-tenth, one-twentieth, etc. of the projected image. That is, if the size of the projected image is 510×510, the size of the image superposition area may be 51×51.
或者,也可以根据投影图像的尺寸信息,确定投影图像的宽和高的比例关系;基于该比例关系,确定图像叠加区域的尺寸。比如,投影图像的尺寸为1024×1024,图像叠加区域的尺寸可以为128×128、64×64等,投影图像的尺寸为1024×512,图像叠加区域的尺寸可以为128×64、64×32等。Alternatively, the proportional relationship between the width and the height of the projected image may also be determined according to the size information of the projected image; based on the proportional relationship, the size of the image superposition area is determined. For example, the size of the projected image is 1024×1024, the size of the image overlay area can be 128×128, 64×64, etc., the size of the projected image is 1024×512, and the size of the image overlay area can be 128×64, 64×32 wait.
图像叠加区域的位置可以根据投影图像中包括的空白区域的位置进行确定。比如,投影图像中左上位置的空白区域较大,则可以在投影图像的左上位置,设置特定尺寸的图像叠加区域。或者,可以在投影图像的左上位置、左下位置、右上位置、右下位置中任意选择一个位置,作为图像叠加区域的位置。The position of the image superposition area can be determined according to the position of the blank area included in the projected image. For example, if the blank area at the upper left of the projected image is relatively large, an image superposition area of a specific size may be set at the upper left of the projected image. Alternatively, one of the upper left position, lower left position, upper right position, and lower right position of the projected image may be arbitrarily selected as the position of the image superposition area.
在投影图像中设置了图像叠加区域之后,可以确定投影图像中图像叠加区域的区域信息。该区域信息可以为图像叠加区域在投影图像中的位置信息、尺寸信息等。After the image superposition area is set in the projected image, area information of the image superimposed area in the projected image can be determined. The area information may be position information, size information, etc. of the image superposition area in the projected image.
针对S103:For S103:
在生成每个三维模型对应的缩略图后,要将缩略图叠加在投影图像的图像叠加区域上。在将缩略图叠加在图像叠加区域上时,需要确定缩略图在图像叠加区域上的展示尺寸和/或叠加位置。After the thumbnail corresponding to each 3D model is generated, the thumbnail should be superimposed on the image superposition area of the projected image. When superimposing the thumbnail on the image superimposing area, it is necessary to determine the display size and/or superimposing position of the thumbnail on the image superimposing area.
实施时,基于三维模型在投影图像中的投影信息、和图像叠加区域的区域信息,确定三维模型对应的缩略图在图像叠加区域上的叠加位置和/或展示尺寸。其中,投影信息可以包括:三维模型在投影图像中的图像尺寸、三维模型在投影图像上的位置信息,即在投影图像对应的视图坐标系下的坐标信息。区域信息可以包括图像叠加区域的区域尺寸。During implementation, based on the projection information of the 3D model in the projection image and the area information of the image superposition region, the superimposition position and/or display size of the thumbnail corresponding to the 3D model on the image superposition region is determined. Wherein, the projection information may include: the image size of the 3D model in the projected image, the position information of the 3D model on the projected image, that is, the coordinate information in the view coordinate system corresponding to the projected image. The area information may include an area size of the image overlay area.
比如,可以根据三维模型在投影图像中的图像尺寸、和投影图像的尺寸信息,确定三维模型在投影图像中所占据的图像比例;在根据三维模型在投影图像中所占据的图像比例、和图像叠加区域的区域尺寸,确定三维模型对应的缩略图的展示尺寸,以使得三维模型在投影图像中所占据的图像比例、与三维模型对应的缩略图在图像叠加区域中所占据的区域比例相匹配。For example, the image proportion occupied by the three-dimensional model in the projected image can be determined according to the image size of the three-dimensional model in the projected image and the size information of the projected image; The area size of the overlay area determines the display size of the thumbnail corresponding to the 3D model, so that the image proportion occupied by the 3D model in the projected image matches the area proportion occupied by the thumbnail corresponding to the 3D model in the image overlay area .
再比如,可以根据三维模型在投影图像上的位置信息、和投影图像与图像叠加区域之 间的尺寸比例,确定三维模型对应的缩略图在图像投影区域上的叠加位置,以使得三维模型在投影图像中的位置、与三维模型对应的缩略图在图像叠加区域中的位置相匹配。For another example, according to the position information of the 3D model on the projected image and the size ratio between the projected image and the image superimposed area, the superimposed position of the thumbnail corresponding to the 3D model on the image projected area can be determined, so that the 3D model can be projected The position in the image, and the position of the thumbnail corresponding to the 3D model in the image overlay area match.
一种可实施方式中,在所述叠加信息包括叠加位置的情况下,所述基于所述三维模型在所述投影图像中的投影信息、和所述区域信息,确定所述三维模型对应的所述缩略图的叠加信息,可以包括:In a possible implementation manner, in the case where the superimposition information includes a superimposition position, the 3D model corresponding to the 3D model is determined based on the projection information of the 3D model in the projection image and the area information. The superimposed information of the above thumbnails may include:
步骤A1,基于所述区域信息指示的区域尺寸、和所述投影图像对应的图像尺寸,确定所述图像叠加区域与所述投影图像之间的尺寸比例信息;Step A1, based on the area size indicated by the area information and the image size corresponding to the projection image, determine the size ratio information between the image superposition area and the projection image;
步骤A2,基于所述尺寸比例信息、和所述三维模型对应的所述投影信息指示的所述三维模型在所述投影图像上的位置信息,确定所述三维模型对应的所述缩略图的叠加位置。Step A2, based on the size ratio information and the position information of the 3D model on the projection image indicated by the projection information corresponding to the 3D model, determine the superimposition of the thumbnail image corresponding to the 3D model Location.
在步骤A1中,基于图像叠加区域的区域信息指示的区域尺寸、和投影图像对应的图像尺寸,确定图像叠加区域与投影图像之间的尺寸比例信息。其中,尺寸比例信息可以包括:宽度比例和高度比例。比如,可以确定图像叠加区域的区域尺寸中的宽度值、与投影图像的图像尺寸中的宽度值之间的第一比例,将该第一比例确定为宽度比例;以及确定图像叠加区域的区域尺寸中的高度值、与投影图像的图像尺寸中的高度值之间的第二比例,将该第二比例确定为高度比例。In step A1, based on the area size indicated by the area information of the image superposition area and the image size corresponding to the projected image, size ratio information between the image superimposed area and the projected image is determined. Wherein, the size ratio information may include: width ratio and height ratio. For example, it is possible to determine the first ratio between the width value in the area size of the image superposition area and the width value in the image size of the projected image, and determine the first ratio as the width ratio; and determine the area size of the image overlay area A second ratio between the height value in and the height value in the image size of the projected image is determined as the height ratio.
在步骤A2中,可以先确定三维模型在投影图像上的位置信息;基于尺寸比例信息、和三维模型在投影图像上的位置信息,确定该三维模型对应的缩略图的叠加位置。In step A2, the position information of the 3D model on the projected image can be determined first; based on the size ratio information and the position information of the 3D model on the projected image, the superimposed position of the thumbnail corresponding to the 3D model can be determined.
比如,可以将位置信息、与尺寸比例信息相乘,利用得到的乘积结果,确定三维模型对应的缩略图的叠加位置,可以使得三维模型的位置距离投影图像下边界的距离、和投影图像的高度之间第一比例,与缩略图的叠加位置距离图像叠加区域下边界的距离、和图像叠加区域的高度之间的第二比例相匹配,以及三维模型的位置距离投影图像左边界的距离、和投影图像的宽度之间第三比例,与缩略图的叠加位置距离图像叠加区域左边界的距离、和图像叠加区域的宽度之间的第四比例相匹配。For example, the position information can be multiplied by the size ratio information, and the obtained product result can be used to determine the superposition position of the thumbnail corresponding to the 3D model, so that the distance between the position of the 3D model and the lower boundary of the projected image and the height of the projected image can be determined. The first ratio between matches the distance between the superimposed position of the thumbnail and the lower boundary of the image superimposed area, and the second ratio between the height of the image superimposed area, and the distance between the position of the 3D model and the left boundary of the projected image, and The third ratio between the width of the projected image matches the distance between the superimposed position of the thumbnail image and the left border of the image superimposed area, and the fourth ratio between the width of the image superimposed area.
示例性的,参见图3所示,图像叠加区域的区域尺寸中的宽度值为a1、高度值为b1,投影图像对应的图像尺寸的宽度值为a2、高度值为b2,确定图像叠加区域与投影图像之间的尺寸比例信息中的宽度比例为a1/a2、高度比例为b1/b2。确定三维模型D在投影图像上的位置信息;基于尺寸比例信息、和三维模型D在投影图像上的位置信息,确定三维模型对应的缩略图D’的叠加位置。Exemplarily, as shown in FIG. 3, the width value of the area size of the image superposition area is a1, the height value is b1, the width value of the image size corresponding to the projected image is a2, and the height value is b2. Determine the image superposition area and In the size ratio information between projection images, the width ratio is a1/a2, and the height ratio is b1/b2. Determine the position information of the three-dimensional model D on the projection image; based on the size ratio information and the position information of the three-dimensional model D on the projection image, determine the superposition position of the thumbnail D' corresponding to the three-dimensional model.
这里,通过确定图像叠加区域与投影图像之间的尺寸比例信息,进而基于三维模型在投影图像上的位置信息,确定三维模型对应的缩略图的叠加位置,使得多个三维模型在投影图像上的相对位置关系、与多个三维模型分别对应的缩略图在图像叠加区域上的相对位置关系相匹配,提高了确定的叠加位置的准确性。Here, by determining the size ratio information between the image superposition area and the projected image, and then based on the position information of the three-dimensional model on the projected image, the superimposed position of the thumbnail corresponding to the three-dimensional model is determined, so that the multiple three-dimensional models on the projected image The relative positional relationship is matched with the relative positional relationship of the thumbnails respectively corresponding to the plurality of three-dimensional models on the image superposition area, thereby improving the accuracy of the determined superimposition position.
一种可实施方式中,可以根据下述两种方式,确定所述三维模型在所述投影图像上的位置信息:In one possible implementation manner, the position information of the three-dimensional model on the projection image may be determined according to the following two methods:
方式一、基于所述三维模型在所述投影图像中的投影区域信息,确定所述三维模型对应的投影区域的中心点,并将所述中心点的位置信息,确定为所述三维模型在所述投影图像上的位置信息。Mode 1: Based on the projection area information of the 3D model in the projection image, determine the center point of the projection area corresponding to the 3D model, and determine the position information of the center point as the 3D model in the projected image. location information on the projected image.
方式二、获取所述三维模型在设置的世界坐标系中的展示位置信息;利用确定的坐标 系转换矩阵,将所述展示位置信息转换至所述投影图像对应的视图坐标系中,得到所述三维模型在所述投影图像上的位置信息。Method 2: Obtain the display position information of the 3D model in the set world coordinate system; use the determined coordinate system conversion matrix to convert the display position information into the view coordinate system corresponding to the projected image, and obtain the Position information of the 3D model on the projected image.
在方式一中,确定三维模型在投影图像中的投影区域信息,该投影区域可以为三维模型在投影图像上的轮廓区域(该轮廓区域可以为投影区域),也可以为三维模型在投影图像上的轮廓区域对应的检测框(该检测框所处区域可以为投影区域);即投影区域信息可以包括轮廓区域在投影图像上的位置信息,也可以包括轮廓区域对应的检测框在投影图像上的位置信息等。In the first way, the projection area information of the 3D model in the projected image is determined. The projected area can be the outline area of the 3D model on the projected image (the outline area can be the projected area), or the 3D model on the projected image. The detection frame corresponding to the contour area of the contour area (the area where the detection frame is located may be a projection area); that is, the projection area information may include the position information of the contour area on the projection image, or the position information of the detection frame corresponding to the contour area on the projection image location information, etc.
再可以确定三维模型对应的投影区域的中心点,并将该中心点的位置信息,确定为三维模型在投影图像上的位置信息。Then, the center point of the projection area corresponding to the three-dimensional model may be determined, and the position information of the center point may be determined as the position information of the three-dimensional model on the projection image.
方式二中,一般的,在三维模型构建之后,可以确定三维模型在现实场景中的展示位姿,该展示位姿中包括展示位置信息和姿态信息。故可以获取三维模型在设置的世界坐标系中的展示位置信息。该世界坐标系可以为以现实场景中的目标场景位置为原点构建的坐标系。In the second manner, generally, after the 3D model is constructed, the display pose of the 3D model in a real scene may be determined, and the display pose includes display position information and pose information. Therefore, the display position information of the 3D model in the set world coordinate system can be obtained. The world coordinate system may be a coordinate system constructed with the target scene position in the real scene as the origin.
实施时,可以利用确定的第一坐标系转换矩阵,将三维模型在世界坐标系中的展示位置信息转换至投影相机对应的相机坐标系下,得到中间位置信息;再利用第二坐标系转换矩阵,将三维模型在投影相机对应的相机坐标系下的中间展示位置信息转换至投影图像对应的视图坐标系下,得到三维模型在投影图像上的位置信息。其中,可以根据相机外参、投影相机的位置等信息,确定第一坐标系转换矩阵。以及可以根据相机内参、投影相机的位置等信息,确定第二坐标系转换矩阵。During implementation, the determined first coordinate system conversion matrix can be used to convert the display position information of the 3D model in the world coordinate system to the camera coordinate system corresponding to the projection camera to obtain intermediate position information; and then use the second coordinate system conversion matrix , the intermediate display position information of the 3D model in the camera coordinate system corresponding to the projection camera is transformed into the view coordinate system corresponding to the projection image, and the position information of the 3D model on the projection image is obtained. Wherein, the conversion matrix of the first coordinate system may be determined according to information such as camera extrinsic parameters and the position of the projection camera. And the conversion matrix of the second coordinate system may be determined according to information such as camera internal parameters and the position of the projection camera.
这里,可以通过上述两种方式灵活的确定三维模型在投影图像上的位置信息,为后续确定三维模型对应的缩略图在图像叠加区域上的叠加位置提供数据支持。Here, the position information of the 3D model on the projected image can be flexibly determined through the above two methods, so as to provide data support for subsequent determination of the superimposition position of the thumbnail corresponding to the 3D model on the image superimposition area.
一种可实施方式中,步骤A2中,基于所述尺寸比例信息、和所述三维模型对应的所述投影信息指示的所述三维模型在所述投影图像上的位置信息,确定所述三维模型对应的所述缩略图的叠加位置,可以包括:In a possible implementation manner, in step A2, the 3D model is determined based on the size ratio information and the position information of the 3D model on the projection image indicated by the projection information corresponding to the 3D model The corresponding superposition position of the thumbnail may include:
基于所述三维模型在所述投影图像上的位置信息中的横坐标信息、与所述尺寸比例信息中的宽度比例,确定所述叠加位置中的横坐标位置;Determine the abscissa position in the superimposed position based on the abscissa information in the position information of the three-dimensional model on the projection image and the width ratio in the size ratio information;
基于所述三维模型在所述投影图像上的位置信息中的纵坐标信息、与所述尺寸比例信息中的高度比例,确定所述叠加位置中的纵坐标位置。Based on the ordinate information in the position information of the three-dimensional model on the projected image and the height ratio in the size ratio information, determine the ordinate position in the superposition position.
实施时,在确定图像叠加区域与投影图像之间的尺寸比例信息、和三维模型在投影图像上的位置信息后,可以基于三维模型在投影图像上的位置信息中的横坐标信息、与尺寸比例信息中的宽度比例,确定三维模型对应的缩略图距离图像叠加区域的左边界的距离,即横向距离信息。再可以基于横向距离信息、和区域信息,确定叠加位置中的横坐标位置。During implementation, after determining the size ratio information between the image superposition area and the projected image, and the position information of the 3D model on the projected image, based on the abscissa information in the position information of the 3D model on the projected image, and the size ratio The width ratio in the information determines the distance between the thumbnail corresponding to the 3D model and the left boundary of the image superposition area, that is, the horizontal distance information. Then, the abscissa position in the superimposed position can be determined based on the lateral distance information and the area information.
以及基于三维模型在投影图像上的位置信息中的纵坐标信息、与尺寸比例信息中的高度比例,确定三维模型对应的缩略图距离图像叠加区域的下边界的距离,即纵向距离信息。再可以基于纵向距离信息、和区域信息,确定叠加位置中的纵坐标位置。And based on the ordinate information in the position information of the 3D model on the projected image and the height ratio in the size ratio information, determine the distance between the thumbnail corresponding to the 3D model and the lower boundary of the image superposition area, that is, the longitudinal distance information. Then, based on the longitudinal distance information and the area information, the ordinate position in the superimposed position can be determined.
其中,横坐标位置和纵坐标位置可以为在投影图像对应的视图坐标系下的坐标信息。或者,也可以为在图像叠加区域对应的视图坐标系下的坐标信息。Wherein, the abscissa position and the ordinate position may be coordinate information in a view coordinate system corresponding to the projected image. Alternatively, it may also be coordinate information in the view coordinate system corresponding to the image superposition area.
示例性的,参见图3所示,图中三维模型D在投影图像对应的视图坐标系的位置信息 为(768,128),即横坐标信息为768,纵坐标信息为128;尺寸比例信息中的宽度比例为a1/a2,即宽度比例为1/16;尺寸比例信息中的高度比例为b1/b2,即高度比例为1/16;Exemplarily, as shown in FIG. 3, the position information of the three-dimensional model D in the view coordinate system corresponding to the projection image in the figure is (768, 128), that is, the abscissa information is 768, and the ordinate information is 128; in the size ratio information The width ratio is a1/a2, that is, the width ratio is 1/16; the height ratio in the size ratio information is b1/b2, that is, the height ratio is 1/16;
用尺寸比例信息中的宽度比例1/16与三维模型D的位置信息中的横坐标信息(768)相乘,得横向距离信息为48;用尺寸比例信息中的高度比例1/16与三维模型D的位置信息中的纵坐标信息(128)相乘,得纵向距离信息为8;再可以根据确定的横向距离信息、纵向距离信息和区域信息,确定叠加位置的横坐标位置和纵坐标位置。比如,在图3中,三维模型D对应的缩略图的叠加位置可以为(48,488),该叠加位置是在投影图像对应的视图坐标系下的位置信息。Multiply the width ratio 1/16 in the size ratio information with the abscissa information (768) in the position information of the three-dimensional model D, and the horizontal distance information is 48; use the height ratio 1/16 in the size ratio information and the three-dimensional model The ordinate information (128) in the position information of D is multiplied, and the longitudinal distance information is 8; then the abscissa position and the ordinate position of the superposition position can be determined according to the determined horizontal distance information, longitudinal distance information and area information. For example, in FIG. 3 , the superimposed position of the thumbnail corresponding to the three-dimensional model D may be (48, 488), and the superimposed position is position information in the view coordinate system corresponding to the projected image.
这里,通过三维模型在投影图像上的位置信息中的横坐标信息、与尺寸比例信息中的宽度比例,较简便和较高效的确定三维模型对应的缩略图的横向距离信息;以及通过三维模型在投影图像上的位置信息中的纵坐标信息、与尺寸比例信息中的高度比例,较简便和较高效的确定三维模型对应的缩略图的纵向距离信息;实现利用投影图像中每个三维模型的位置信息,较准确的确定每个三维模型对应的缩略图的叠加位置。Here, by using the abscissa information in the position information of the 3D model on the projected image and the width ratio in the size ratio information, it is easier and more efficient to determine the lateral distance information of the thumbnail corresponding to the 3D model; The vertical coordinate information in the position information on the projection image and the height ratio in the size ratio information are relatively simple and efficient to determine the longitudinal distance information of the thumbnail corresponding to the 3D model; realize the use of the position of each 3D model in the projection image Information, more accurately determine the superposition position of the thumbnail corresponding to each 3D model.
一种可实施方式中,在所述叠加信息包括展示尺寸的情况下,所述基于所述三维模型在所述投影图像中的投影信息、和所述区域信息,确定所述三维模型对应的所述缩略图的叠加信息,可以包括:In a possible implementation manner, in the case where the superimposition information includes a display size, based on the projection information of the 3D model in the projection image and the area information, determine the corresponding 3D model. The superimposed information of the above thumbnails may include:
步骤B1,基于所述区域信息指示的区域尺寸、和所述投影图像对应的图像尺寸,确定所述图像叠加区域与所述投影图像之间的尺寸比例信息;Step B1, based on the area size indicated by the area information and the image size corresponding to the projected image, determine the size ratio information between the image superposition area and the projected image;
步骤B2,基于所述尺寸比例信息、和所述投影信息指示的所述三维模型在所述投影图像中的投影区域信息,确定所述三维模型对应的所述缩略图的展示尺寸。Step B2, based on the size ratio information and the projection area information of the 3D model in the projection image indicated by the projection information, determine the display size of the thumbnail image corresponding to the 3D model.
在步骤B1中,可以基于图像叠加区域的区域信息指示的区域尺寸、和投影图像对应的图像尺寸,确定图像叠加区域与投影图像之间的尺寸比例信息;其中,尺寸比例信息包括:宽度比例和高度比例。具体的,尺寸比例信息的确定过程,可以参考针对步骤A1的说明,此处不在详述。In step B1, the size ratio information between the image superposition region and the projected image can be determined based on the region size indicated by the region information of the image superposition region and the image size corresponding to the projected image; wherein, the size ratio information includes: width ratio and height ratio. Specifically, for the determination process of the size ratio information, reference may be made to the description for step A1, which will not be described in detail here.
在步骤B2中,基于尺寸比例信息、和投影信息指示的每个三维模型在投影图像中的投影区域信息,确定每个三维模型对应的缩略图的展示尺寸。其中,投影区域信息可以包括三维模型在投影图像上的轮廓区域对应的检测框、在投影图像上的尺寸信息。In step B2, based on the size ratio information and the projection area information of each 3D model in the projection image indicated by the projection information, the display size of the thumbnail image corresponding to each 3D model is determined. Wherein, the projection area information may include a detection frame corresponding to a contour area of the three-dimensional model on the projection image, and size information on the projection image.
示例性的,可以对投影图像进行目标检测,确定投影图像中每个三维模型对应的投影区域信息。比如,可以利用训练后的神经网络,对投影图像进行目标检测。Exemplarily, target detection may be performed on the projection image, and projection area information corresponding to each three-dimensional model in the projection image may be determined. For example, the trained neural network can be used to perform object detection on the projected image.
比如,可以将投影区域信息指示的宽度值、与尺寸比例信息中的宽度比例相乘,得到展示尺寸中的宽度值;将投影区域信息指示的高度值、与尺寸比例信息中的高度比例相乘,得到展示尺寸中的高度值。For example, the width value indicated by the projection area information can be multiplied by the width ratio in the size ratio information to obtain the width value in the display size; the height value indicated by the projection area information can be multiplied by the height ratio in the size ratio information , to get the height value in the display size.
示例性的,参见图3所示,图中的图像叠加区域与投影图像之间的尺寸比例信息中的宽度比例为a1/a2、高度比例为b1/b2;三维模型D对应的投影区域信息包括:宽度为m2、高度为n2,可以确定三维模型对应的缩略图D’的展示尺寸。即该展示尺寸可以为宽度:a1/a2×m2、高度:b1/b2×n2。Exemplarily, as shown in FIG. 3 , in the size ratio information between the image superposition area and the projection image in the figure, the width ratio is a1/a2, and the height ratio is b1/b2; the projection area information corresponding to the three-dimensional model D includes : The width is m2, the height is n2, and the display size of the thumbnail D' corresponding to the 3D model can be determined. That is, the display size can be width: a1/a2×m2, height: b1/b2×n2.
本公开实例中,通过确定图像叠加区域与投影图像之间的尺寸比例信息,再基于投影信息指示的三维模型在投影图像中的投影区域信息,确定三维模型对应的缩略图的展示尺 寸,使得三维模型对应的缩略图的展示尺寸与该三维模型的图像尺寸之间的比例信息,和图像叠加区域与投影图像之间的尺寸比例信息匹配,提高了缩略图的展示效果。In the disclosed example, by determining the size ratio information between the image superposition area and the projected image, and then based on the projection area information of the 3D model indicated by the projection information in the projected image, the display size of the thumbnail image corresponding to the 3D model is determined, so that the 3D The ratio information between the display size of the thumbnail corresponding to the model and the image size of the three-dimensional model matches the size ratio information between the image superposition area and the projected image, thereby improving the display effect of the thumbnail.
一种可实施方式中,所述基于所述尺寸比例信息、和所述投影信息指示的所述三维模型在所述投影图像中的投影区域信息,确定所述三维模型对应的所述缩略图的展示尺寸,可以包括:In a possible implementation manner, the determination of the thumbnail corresponding to the 3D model is based on the size ratio information and the projection area information of the 3D model in the projection image indicated by the projection information. Display dimensions, which can include:
基于所述尺寸比例信息指示的宽度比例、和所述投影区域信息中的宽度信息,确定所述展示尺寸中的展示宽度;determining the display width in the display size based on the width ratio indicated by the size ratio information and the width information in the projection area information;
基于所述尺寸比例信息指示的高度比例、和所述投影区域信息中的高度信息,确定所述展示尺寸中的展示高度。Based on the height ratio indicated by the size ratio information and the height information in the projection area information, the display height in the display size is determined.
基于尺寸比例信息指示的宽度比例、和投影区域信息中的宽度信息,确定展示尺寸中的展示宽度;比如,可以将投影区域信息中的宽度信息与宽度比例相乘,得到展示宽度。以及基于尺寸比例信息指示的高度比例、和投影区域信息中的高度信息,确定展示尺寸中的展示高度;比如,可以将投影区域信息中的高度信息与高度比例相乘,得到展示高度。Based on the width ratio indicated by the size ratio information and the width information in the projection area information, the display width in the display size is determined; for example, the display width can be obtained by multiplying the width information in the projection area information and the width ratio. And based on the height ratio indicated by the size ratio information and the height information in the projection area information, the display height in the display size is determined; for example, the height information in the projection area information can be multiplied by the height ratio to obtain the display height.
示例性的,参见图3所示,图中投影信息指示的三维模型D在投影图像上的宽度为m2、高度为n2;尺寸比例信息中的宽度比例为a1/a2、尺寸比例信息中的高度比例为b1/b2;Exemplarily, refer to FIG. 3 , where the projection information indicates that the three-dimensional model D has a width of m2 and a height of n2 on the projection image; the width ratio in the size ratio information is a1/a2, and the height in the size ratio information is The ratio is b1/b2;
将尺寸比例信息中的宽度比例a1/a2与三维模型D的宽度m2相乘,即(1/16)×64,得到三维模型对应的缩略图的展示宽度为4;将尺寸比例信息中的高度比例b1/b2与三维模型D的高度n2相乘,即(1/16)×16,得到三维模型对应的缩略图的展示高度为1;即可以确定三维模型D对应的缩略图D’的展示尺寸包括:展示宽度为4,展示高度为1。Multiply the width ratio a1/a2 in the size ratio information by the width m2 of the 3D model D, that is (1/16)×64, to obtain the display width of the thumbnail corresponding to the 3D model is 4; the height in the size ratio information The ratio b1/b2 is multiplied by the height n2 of the 3D model D, that is, (1/16)×16, and the display height of the thumbnail image corresponding to the 3D model is 1; that is, the display of the thumbnail image D' corresponding to the 3D model D can be determined Dimensions include: 4 for display width and 1 for display height.
本公开实例中,通过确定图像叠加区域与投影图像之间的尺寸比例信息,再基于投影信息指示的三维模型在投影图像中的投影区域信息,较准确的确定三维模型对应的缩略图的展示尺寸,使得三维模型对应的缩略图的尺寸、与该三维模型的尺寸之间的比例,和图像叠加区域的尺寸、与投影图像的尺寸之间的比例匹配,进而后续能够根据该展示尺寸,较准确的在图像叠加区域叠加三维模型对应的缩略图。In the disclosed example, by determining the size ratio information between the image superposition area and the projection image, and then based on the projection area information of the 3D model indicated by the projection information in the projection image, the display size of the thumbnail image corresponding to the 3D model can be determined more accurately , so that the size of the thumbnail corresponding to the 3D model matches the size of the 3D model, and the size of the image superposition area matches the size of the projected image, and then the follow-up can be more accurate based on the display size The thumbnail corresponding to the 3D model is overlaid in the image overlay area.
针对S104:For S104:
在确定每个三维模型对应的缩略图在图像叠加区域的叠加位置和/或展示尺寸后,可以按照缩略图对应的叠加位置和/或展示尺寸,将每个三维模型对应的缩略图叠加在投影图像的图像叠加区域上,得到目标展示图像。After determining the overlay position and/or display size of the thumbnail corresponding to each 3D model in the image overlay area, the thumbnail corresponding to each 3D model can be superimposed on the projection according to the overlay position and/or display size corresponding to the thumbnail On the image superposition area of the image, the target display image is obtained.
比如,在叠加信息包括叠加位置、不包括展示尺寸时,可以先将三维模型对应的缩略图调整为预设尺寸,得到调整后的缩略图;再将调整后的缩略图叠加在图像叠加区域的叠加位置上,生成目标展示图像。For example, when the overlay information includes the overlay position but does not include the display size, you can first adjust the thumbnail corresponding to the 3D model to the preset size to obtain the adjusted thumbnail; then overlay the adjusted thumbnail on the image overlay area At the superimposed position, a target display image is generated.
再比如,在叠加信息不包括叠加位置、包括展示尺寸时,可以先将三维模型对应的缩略图的尺寸调整为展示尺寸,得到调整后的缩略图;再将调整后的缩略图叠加在图像叠加区域的预设位置上,生成目标展示图像。其中,预设尺寸、预设位置可以根据需要进行设置。For another example, when the overlay information does not include the overlay position and display size, you can first adjust the size of the thumbnail corresponding to the 3D model to the display size to obtain the adjusted thumbnail; then overlay the adjusted thumbnail on the image overlay A target display image is generated at a preset position in the region. Wherein, the preset size and preset position can be set as required.
再比如,在在叠加信息包括叠加位置和展示尺寸时,可以先将三维模型对应的缩略图调整为展示尺寸,得到调整后的缩略图;再将调整后的缩略图叠加在图像叠加区域的叠加位置上,生成目标展示图像。For another example, when the overlay information includes the overlay position and display size, you can first adjust the thumbnail corresponding to the 3D model to the display size to obtain the adjusted thumbnail; then overlay the adjusted thumbnail on the image overlay area position, generate a target display image.
实施时,在生成目标展示图像之后,可以控制任一设备的显示屏展示该目标展示图像。其中,该设备可以为手机、电脑等。During implementation, after the target display image is generated, the display screen of any device may be controlled to display the target display image. Wherein, the device may be a mobile phone, a computer, and the like.
本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的撰写顺序并不意味着严格的执行顺序而对实施过程构成任何限定,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。Those skilled in the art can understand that in the above method of specific implementation, the writing order of each step does not mean a strict execution order and constitutes any limitation on the implementation process. The specific execution order of each step should be based on its function and possible The inner logic is OK.
基于相同的构思,本公开实施例还提供了一种模型展示装置,参见图4所示,为本公开实施例提供的模型展示装置的架构示意图,包括获取模块401、第一确定模块402、第二确定模块403、第一生成模块404,具体的:Based on the same idea, the embodiment of the present disclosure also provides a model display device, as shown in FIG. The second determination module 403 and the first generation module 404, specifically:
获取模块401,用于获取投影相机采集的投影图像、以及所述投影图像中包括的每个三维模型对应的缩略图;An acquisition module 401, configured to acquire a projection image captured by the projection camera and a thumbnail corresponding to each 3D model included in the projection image;
第一确定模块402,用于确定所述投影图像中设置的图像叠加区域的区域信息;The first determination module 402 is configured to determine the area information of the image superposition area set in the projected image;
第二确定模块403,用于基于所述三维模型在所述投影图像中的投影信息、和所述区域信息,确定所述三维模型对应的所述缩略图的叠加信息;其中,所述叠加信息包括:在所述图像叠加区域上的叠加位置和/或展示尺寸;The second determination module 403 is configured to determine, based on the projection information of the 3D model in the projection image and the area information, the overlay information of the thumbnail image corresponding to the 3D model; wherein the overlay information Including: the overlay position and/or display size on the image overlay area;
第一生成模块404,用于按照所述缩略图的所述叠加信息,将每个三维模型对应的所述缩略图叠加在所述投影图像的所述图像叠加区域,生成目标展示图像。The first generation module 404 is configured to superimpose the thumbnail corresponding to each 3D model on the image superposition area of the projected image according to the superimposition information of the thumbnail to generate a target display image.
一种可能的实施方式中,所述装置还包括:第二生成模块405,所述第二生成模块405,用于根据下述步骤生成每个三维模型对应的缩略图:In a possible implementation manner, the device further includes: a second generation module 405, configured to generate a thumbnail corresponding to each 3D model according to the following steps:
确定所述三维模型在目标采集方向上的平面图;Determining the plane view of the three-dimensional model in the target collection direction;
基于所述平面图,生成所述三维模型对应的缩略图。Based on the plan view, a thumbnail corresponding to the three-dimensional model is generated.
一种可能的实施方式中,所述第二确定模块403,在所述叠加信息包括叠加位置的情况下,所述基于所述三维模型在所述投影图像中的投影信息、和所述区域信息,确定所述三维模型对应的所述缩略图的叠加信息时,用于:In a possible implementation manner, the second determination module 403, if the superimposition information includes a superimposition position, the projection information based on the 3D model in the projection image and the area information , when determining the overlay information of the thumbnail corresponding to the 3D model, it is used for:
基于所述区域信息指示的区域尺寸、和所述投影图像对应的图像尺寸,确定所述图像叠加区域与所述投影图像之间的尺寸比例信息;Based on the area size indicated by the area information and the image size corresponding to the projected image, determine the size ratio information between the image superposition area and the projected image;
基于所述尺寸比例信息、和所述三维模型对应的所述投影信息指示的所述三维模型在所述投影图像上的位置信息,确定所述三维模型对应的所述缩略图的叠加位置。Based on the size ratio information and the position information of the 3D model on the projection image indicated by the projection information corresponding to the 3D model, the superimposition position of the thumbnail image corresponding to the 3D model is determined.
一种可能的实施方式中,所述第二确定模块403,在确定所述三维模型在所述投影图像上的位置信息时,用于:In a possible implementation manner, the second determination module 403, when determining the position information of the 3D model on the projection image, is configured to:
基于所述三维模型在所述投影图像中的投影区域信息,确定所述三维模型对应的投影区域的中心点,并将所述中心点的位置信息,确定为所述三维模型在所述投影图像上的位置信息;或者,Based on the projection area information of the three-dimensional model in the projection image, determine the center point of the projection area corresponding to the three-dimensional model, and determine the position information of the center point as the three-dimensional model in the projection image location information on ; or,
获取所述三维模型在设置的世界坐标系中的展示位置信息;Obtain display position information of the 3D model in the set world coordinate system;
利用确定的坐标系转换矩阵,将所述展示位置信息转换至所述投影图像对应的视图坐标系中,得到所述三维模型在所述投影图像上的位置信息。Using the determined coordinate system conversion matrix, the display position information is converted into the view coordinate system corresponding to the projection image, so as to obtain the position information of the three-dimensional model on the projection image.
一种可能的实施方式中,所述第二确定模块403,在所述基于所述尺寸比例信息、和所述三维模型对应的所述投影信息指示的所述三维模型在所述投影图像上的位置信息,确定所述三维模型对应的所述缩略图的叠加位置时,用于:In a possible implementation manner, the second determination module 403, based on the size ratio information and indicated by the projection information corresponding to the 3D model, the 3D model on the projection image The position information is used to determine the overlay position of the thumbnail corresponding to the 3D model:
基于所述三维模型在所述投影图像上的位置信息中的横坐标信息、与所述尺寸比例信息中的宽度比例,确定所述叠加位置中的横坐标位置;Determine the abscissa position in the superimposed position based on the abscissa information in the position information of the three-dimensional model on the projection image and the width ratio in the size ratio information;
基于所述三维模型在所述投影图像上的位置信息中的纵坐标信息、与所述尺寸比例信息中的高度比例,确定所述叠加位置中的纵坐标位置。Based on the ordinate information in the position information of the three-dimensional model on the projected image and the height ratio in the size ratio information, determine the ordinate position in the superposition position.
一种可能的实施方式中,所述第二确定模块403,在所述叠加信息包括展示尺寸的情况下,所述基于所述三维模型在所述投影图像中的投影信息、和所述区域信息,确定所述三维模型对应的所述缩略图的叠加信息时,用于:In a possible implementation manner, the second determination module 403, when the superimposition information includes display size, the projection information based on the 3D model in the projection image and the area information , when determining the overlay information of the thumbnail corresponding to the 3D model, it is used for:
基于所述区域信息指示的区域尺寸、和所述投影图像对应的图像尺寸,确定所述图像叠加区域与所述投影图像之间的尺寸比例信息;Based on the area size indicated by the area information and the image size corresponding to the projected image, determine the size ratio information between the image superposition area and the projected image;
基于所述尺寸比例信息、和所述投影信息指示的所述三维模型在所述投影图像中的投影区域信息,确定所述三维模型对应的所述缩略图的展示尺寸。Based on the size ratio information and the projection area information of the 3D model in the projection image indicated by the projection information, the display size of the thumbnail image corresponding to the 3D model is determined.
一种可能的实施方式中,所述第二确定模块403,在所述基于所述尺寸比例信息、和所述投影信息指示的所述三维模型在所述投影图像中的投影区域信息,确定所述三维模型对应的所述缩略图的展示尺寸时,用于:In a possible implementation manner, the second determination module 403 determines the projection area information of the 3D model in the projection image based on the size ratio information and the projection information. When displaying the size of the thumbnail corresponding to the 3D model, it is used for:
基于所述尺寸比例信息指示的宽度比例、和所述投影区域信息中的宽度信息,确定所述展示尺寸中的展示宽度;determining the display width in the display size based on the width ratio indicated by the size ratio information and the width information in the projection area information;
基于所述尺寸比例信息指示的高度比例、和所述投影区域信息中的高度信息,确定所述展示尺寸中的展示高度。Based on the height ratio indicated by the size ratio information and the height information in the projection area information, the display height in the display size is determined.
在一些实施例中,本公开实施例提供的装置具有的功能或包含的模板可以用于执行上文方法实施例描述的方法,其具体实现可以参照上文方法实施例的描述,为了简洁,这里不再赘述。In some embodiments, the functions of the device provided by the embodiments of the present disclosure or the included templates can be used to execute the methods described in the above method embodiments, and its specific implementation can refer to the description of the above method embodiments. For brevity, here No longer.
基于同一技术构思,本公开实施例还提供了一种电子设备。参照图5所示,为本公开实施例提供的电子设备的结构示意图,包括处理器501、存储器502、和总线503。其中,存储器502用于存储执行指令,包括内存5021和外部存储器5022;这里的内存5021也称内存储器,用于暂时存放处理器501中的运算数据,以及与硬盘等外部存储器5022交换的数据,处理器501通过内存5021与外部存储器5022进行数据交换,当电子设备500运行时,处理器501与存储器502之间通过总线503通信,使得处理器501在执行以下指令:Based on the same technical idea, an embodiment of the present disclosure also provides an electronic device. Referring to FIG. 5 , it is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure, including a processor 501 , a memory 502 , and a bus 503 . Among them, the memory 502 is used to store execution instructions, including a memory 5021 and an external memory 5022; the memory 5021 here is also called an internal memory, and is used to temporarily store calculation data in the processor 501 and exchange data with an external memory 5022 such as a hard disk. The processor 501 exchanges data with the external memory 5022 through the memory 5021. When the electronic device 500 is running, the processor 501 communicates with the memory 502 through the bus 503, so that the processor 501 executes the following instructions:
获取投影相机采集的投影图像、以及所述投影图像中包括的每个三维模型对应的缩略图;Acquiring a projection image captured by the projection camera and a thumbnail corresponding to each 3D model included in the projection image;
确定所述投影图像中设置的图像叠加区域的区域信息;determining the area information of the image superposition area set in the projected image;
基于所述三维模型在所述投影图像中的投影信息、和所述区域信息,确定所述三维模型对应的所述缩略图的叠加信息;其中,所述叠加信息包括:在所述图像叠加区域上的叠加位置和/或展示尺寸;Based on the projection information of the 3D model in the projected image and the area information, determine the overlay information of the thumbnail corresponding to the 3D model; wherein the overlay information includes: in the image overlay area The overlay position and/or display size on the ;
按照所述缩略图的所述叠加信息,将每个三维模型对应的所述缩略图叠加在所述投影图像的所述图像叠加区域,生成目标展示图像。According to the superimposition information of the thumbnail, the thumbnail corresponding to each three-dimensional model is superimposed on the image superposition area of the projected image to generate a target display image.
其中,处理器501的具体处理流程可以参照上述方法实施例的记载,这里不再赘述。Wherein, for the specific processing flow of the processor 501, reference may be made to the descriptions in the foregoing method embodiments, and details are not repeated here.
此外,本公开实施例还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行上述方法实施例中所述的模型展示法的 步骤。其中,该存储介质可以是易失性或非易失的计算机可读取存储介质。In addition, an embodiment of the present disclosure also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is run by a processor, the steps of the model demonstration method described in the above-mentioned method embodiments are executed. . Wherein, the storage medium may be a volatile or non-volatile computer-readable storage medium.
本公开实施例还提供一种计算机程序产品,该计算机程序产品承载有程序代码,所述程序代码包括的指令可用于执行上述方法实施例中所述的模型展示法的步骤,具体可参见上述方法实施例,在此不再赘述。The embodiment of the present disclosure also provides a computer program product, the computer program product carries a program code, and the instructions included in the program code can be used to execute the steps of the model presentation method described in the above method embodiment, for details, please refer to the above method The embodiment will not be repeated here.
其中,上述计算机程序产品可以具体通过硬件、软件或其结合的方式实现。在一个可选实施例中,所述计算机程序产品具体体现为计算机存储介质,在另一个可选实施例中,计算机程序产品具体体现为软件产品,例如软件开发包(Software Development Kit,SDK)等等。Wherein, the above-mentioned computer program product may be specifically realized by means of hardware, software or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK) etc. wait.
本公开实施例涉及增强现实领域,通过获取现实环境中的目标对象的图像信息,进而借助各类视觉相关算法实现对目标对象的相关特征、状态及属性进行检测或识别处理,从而得到与具体应用匹配的虚拟与现实相结合的AR效果。示例性的,目标对象可涉及与人体相关的脸部、肢体、手势、动作等,或者与物体相关的标识物、标志物,或者与场馆或场所相关的沙盘、展示区域或展示物品等。视觉相关算法可涉及视觉定位、SLAM、三维重建、图像注册、背景分割、对象的关键点提取及跟踪、对象的位姿或深度检测等。具体应用不仅可以涉及跟真实场景或物品相关的导览、导航、讲解、重建、虚拟效果叠加展示等交互场景,还可以涉及与人相关的特效处理,比如妆容美化、肢体美化、特效展示、虚拟模型展示等交互场景。可通过卷积神经网络,实现对目标对象的相关特征、状态及属性进行检测或识别处理。上述卷积神经网络是基于深度学习框架进行模型训练而得到的网络模型。The embodiments of the present disclosure relate to the field of augmented reality. By acquiring the image information of the target object in the real environment, and then using various visual correlation algorithms to detect or identify the relevant characteristics, states and attributes of the target object, and thus obtain the specific application Matching AR effect combining virtual and reality. Exemplarily, the target object may involve faces, limbs, gestures, actions, etc. related to the human body, or markers and markers related to objects, or sand tables, display areas or display items related to venues or places. Vision-related algorithms can involve visual positioning, SLAM, 3D reconstruction, image registration, background segmentation, object key point extraction and tracking, object pose or depth detection, etc. Specific applications can not only involve interactive scenes such as guided tours, navigation, explanations, reconstructions, virtual effect overlays and display related to real scenes or objects, but also special effects processing related to people, such as makeup beautification, body beautification, special effect display, virtual Interactive scenarios such as model display. The relevant features, states and attributes of the target object can be detected or identified through the convolutional neural network. The above-mentioned convolutional neural network is a network model obtained by performing model training based on a deep learning framework.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统和装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。在本公开所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-described system and device can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some communication interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个处理器可执行的非易失的计算机可读取存储介质中。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种 可以存储程序代码的介质。If the functions are realized in the form of software function units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium executable by a processor. Based on this understanding, the technical solution of the present disclosure is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present disclosure. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disc and other media that can store program codes. .
以上仅为本公开的具体实施方式,但本公开的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应以权利要求的保护范围为准。The above is only the specific implementation of the present disclosure, but the scope of protection of the present disclosure is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope of the present disclosure, which should be covered within the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be determined by the protection scope of the claims.

Claims (10)

  1. 一种模型展示方法,其特征在于,包括:A model display method, characterized by comprising:
    获取投影相机采集的投影图像、以及所述投影图像中包括的每个三维模型对应的缩略图;Acquiring a projection image captured by the projection camera and a thumbnail corresponding to each 3D model included in the projection image;
    确定所述投影图像中设置的图像叠加区域的区域信息;determining the area information of the image superposition area set in the projected image;
    基于所述三维模型在所述投影图像中的投影信息、和所述区域信息,确定所述三维模型对应的所述缩略图的叠加信息;其中,所述叠加信息包括:在所述图像叠加区域上的叠加位置和/或展示尺寸;Based on the projection information of the 3D model in the projected image and the area information, determine the overlay information of the thumbnail corresponding to the 3D model; wherein the overlay information includes: in the image overlay area The overlay position and/or display size on the ;
    按照所述缩略图的所述叠加信息,将每个三维模型对应的所述缩略图叠加在所述投影图像的所述图像叠加区域,生成目标展示图像。According to the superimposition information of the thumbnail, the thumbnail corresponding to each three-dimensional model is superimposed on the image superposition area of the projected image to generate a target display image.
  2. 根据权利要求1所述的方法,其特征在于,生成每个三维模型对应的缩略图,包括:The method according to claim 1, wherein generating a thumbnail corresponding to each 3D model comprises:
    确定所述三维模型在目标采集方向上的平面图;Determining the plane view of the three-dimensional model in the target collection direction;
    基于所述平面图,生成所述三维模型对应的缩略图。Based on the plan view, a thumbnail corresponding to the three-dimensional model is generated.
  3. 根据权利要求1或2所述的方法,其特征在于,在所述叠加信息包括叠加位置的情况下,所述基于所述三维模型在所述投影图像中的投影信息、和所述区域信息,确定所述三维模型对应的所述缩略图的叠加信息,包括:The method according to claim 1 or 2, wherein, in the case where the superimposition information includes a superimposition position, the projection information based on the three-dimensional model in the projection image and the area information, Determining the overlay information of the thumbnail corresponding to the 3D model includes:
    基于所述区域信息指示的区域尺寸、和所述投影图像对应的图像尺寸,确定所述图像叠加区域与所述投影图像之间的尺寸比例信息;Based on the area size indicated by the area information and the image size corresponding to the projected image, determine the size ratio information between the image superposition area and the projected image;
    基于所述尺寸比例信息、和所述三维模型对应的所述投影信息指示的所述三维模型在所述投影图像上的位置信息,确定所述三维模型对应的所述缩略图的叠加位置。Based on the size ratio information and the position information of the 3D model on the projection image indicated by the projection information corresponding to the 3D model, the superimposition position of the thumbnail image corresponding to the 3D model is determined.
  4. 根据权利要求3所述的方法,其特征在于,确定所述三维模型在所述投影图像上的位置信息,包括:The method according to claim 3, wherein determining the position information of the three-dimensional model on the projected image comprises:
    基于所述三维模型在所述投影图像中的投影区域信息,确定所述三维模型对应的投影区域的中心点,并将所述中心点的位置信息,确定为所述三维模型在所述投影图像上的位置信息;或者,Based on the projection area information of the three-dimensional model in the projection image, determine the center point of the projection area corresponding to the three-dimensional model, and determine the position information of the center point as the three-dimensional model in the projection image location information on ; or,
    获取所述三维模型在设置的世界坐标系中的展示位置信息;Obtain display position information of the 3D model in the set world coordinate system;
    利用确定的坐标系转换矩阵,将所述展示位置信息转换至所述投影图像对应的视图坐标系中,得到所述三维模型在所述投影图像上的位置信息。Using the determined coordinate system conversion matrix, the display position information is converted into the view coordinate system corresponding to the projection image, so as to obtain the position information of the three-dimensional model on the projection image.
  5. 根据权利要求3或4所述的方法,其特征在于,所述基于所述尺寸比例信息、和所述三维模型对应的所述投影信息指示的所述三维模型在所述投影图像上的位置信息,确定所述三维模型对应的所述缩略图的叠加位置,包括:The method according to claim 3 or 4, wherein the position information of the three-dimensional model on the projection image indicated by the projection information corresponding to the three-dimensional model based on the size ratio information , determining the overlay position of the thumbnail corresponding to the 3D model, including:
    基于所述三维模型在所述投影图像上的位置信息中的横坐标信息、与所述尺寸比例信息中的宽度比例,确定所述叠加位置中的横坐标位置;Determine the abscissa position in the superimposed position based on the abscissa information in the position information of the three-dimensional model on the projection image and the width ratio in the size ratio information;
    基于所述三维模型在所述投影图像上的位置信息中的纵坐标信息、与所述尺寸比例信息中的高度比例,确定所述叠加位置中的纵坐标位置。Based on the ordinate information in the position information of the three-dimensional model on the projected image and the height ratio in the size ratio information, determine the ordinate position in the superposition position.
  6. 根据权利要求1~5任一所述的方法,其特征在于,在所述叠加信息包括展示尺寸的情况下,所述基于所述三维模型在所述投影图像中的投影信息、和所述区域信息,确定所述三维模型对应的所述缩略图的叠加信息,包括:The method according to any one of claims 1 to 5, characterized in that, in the case where the overlay information includes a display size, the projection information based on the three-dimensional model in the projection image and the area information, to determine the overlay information of the thumbnail corresponding to the 3D model, including:
    基于所述区域信息指示的区域尺寸、和所述投影图像对应的图像尺寸,确定所述图像叠加区域与所述投影图像之间的尺寸比例信息;Based on the area size indicated by the area information and the image size corresponding to the projected image, determine the size ratio information between the image superposition area and the projected image;
    基于所述尺寸比例信息、和所述投影信息指示的所述三维模型在所述投影图像中的投影区域信息,确定所述三维模型对应的所述缩略图的展示尺寸。Based on the size ratio information and the projection area information of the 3D model in the projection image indicated by the projection information, the display size of the thumbnail image corresponding to the 3D model is determined.
  7. 根据权利要求6所述的方法,其特征在于,所述基于所述尺寸比例信息、和所述投影信息指示的所述三维模型在所述投影图像中的投影区域信息,确定所述三维模型对应的所述缩略图的展示尺寸,包括:The method according to claim 6, characterized in that, based on the size ratio information and the projection area information of the three-dimensional model indicated by the projection information in the projection image, it is determined that the three-dimensional model corresponds to The display dimensions of said thumbnails, including:
    基于所述尺寸比例信息指示的宽度比例、和所述投影区域信息中的宽度信息,确定所述展示尺寸中的展示宽度;determining the display width in the display size based on the width ratio indicated by the size ratio information and the width information in the projection area information;
    基于所述尺寸比例信息指示的高度比例、和所述投影区域信息中的高度信息,确定所述展示尺寸中的展示高度。Based on the height ratio indicated by the size ratio information and the height information in the projection area information, the display height in the display size is determined.
  8. 一种模型展示装置,其特征在于,包括:A model display device, characterized in that it comprises:
    获取模块,用于获取投影相机采集的投影图像、以及所述投影图像中包括的每个三维模型对应的缩略图;An acquisition module, configured to acquire a projection image captured by the projection camera and a thumbnail corresponding to each 3D model included in the projection image;
    第一确定模块,用于确定所述投影图像中设置的图像叠加区域的区域信息;A first determination module, configured to determine the area information of the image superposition area set in the projected image;
    第二确定模块,用于基于所述三维模型在所述投影图像中的投影信息、和所述区域信息,确定所述三维模型对应的所述缩略图的叠加信息;其中,所述叠加信息包括:在所述图像叠加区域上的叠加位置和/或展示尺寸;The second determination module is configured to determine the overlay information of the thumbnail image corresponding to the three-dimensional model based on the projection information of the three-dimensional model in the projected image and the area information; wherein the overlay information includes : the overlay position and/or display size on the image overlay area;
    第一生成模块,用于按照所述缩略图的所述叠加信息,将每个三维模型对应的所述缩略图叠加在所述投影图像的所述图像叠加区域,生成目标展示图像。The first generating module is configured to superimpose the thumbnail corresponding to each 3D model on the image superposition area of the projected image according to the superimposition information of the thumbnail to generate a target display image.
  9. 一种电子设备,其特征在于,包括:处理器、存储器和总线,所述存储器存储有所述处理器可执行的机器可读指令,当电子设备运行时,所述处理器与所述存储器之间通过总线通信,所述机器可读指令被所述处理器执行时执行如权利要求1至7任一所述的模型展示方法的步骤。An electronic device, characterized in that it includes: a processor, a memory, and a bus, the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the connection between the processor and the memory The machine-readable instructions are executed by the processor through bus communication, and the steps of the model presentation method according to any one of claims 1 to 7 are executed.
  10. 一种计算机可读存储介质,其特征在于,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行如权利要求1至7任一所述的模型展示方法的步骤。A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is run by a processor, the steps of the model presentation method according to any one of claims 1 to 7 are executed.
PCT/CN2022/118201 2022-02-10 2022-09-09 Model presentation method and apparatus, and electronic device and storage medium WO2023151271A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210125905.6A CN114463167A (en) 2022-02-10 2022-02-10 Model display method and device, electronic equipment and storage medium
CN202210125905.6 2022-02-10

Publications (1)

Publication Number Publication Date
WO2023151271A1 true WO2023151271A1 (en) 2023-08-17

Family

ID=81412779

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/118201 WO2023151271A1 (en) 2022-02-10 2022-09-09 Model presentation method and apparatus, and electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN114463167A (en)
WO (1) WO2023151271A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114463167A (en) * 2022-02-10 2022-05-10 北京市商汤科技开发有限公司 Model display method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107689082A (en) * 2016-08-03 2018-02-13 腾讯科技(深圳)有限公司 A kind of data projection method and device
US20180241986A1 (en) * 2016-03-09 2018-08-23 Tencent Technology (Shenzhen) Company Limited Image processing method and device
CN112672139A (en) * 2021-03-16 2021-04-16 深圳市火乐科技发展有限公司 Projection display method, device and computer readable storage medium
CN113645396A (en) * 2020-04-27 2021-11-12 成都术通科技有限公司 Image superposition method, device, equipment and storage medium
CN114463167A (en) * 2022-02-10 2022-05-10 北京市商汤科技开发有限公司 Model display method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180241986A1 (en) * 2016-03-09 2018-08-23 Tencent Technology (Shenzhen) Company Limited Image processing method and device
CN107689082A (en) * 2016-08-03 2018-02-13 腾讯科技(深圳)有限公司 A kind of data projection method and device
CN113645396A (en) * 2020-04-27 2021-11-12 成都术通科技有限公司 Image superposition method, device, equipment and storage medium
CN112672139A (en) * 2021-03-16 2021-04-16 深圳市火乐科技发展有限公司 Projection display method, device and computer readable storage medium
CN114463167A (en) * 2022-02-10 2022-05-10 北京市商汤科技开发有限公司 Model display method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114463167A (en) 2022-05-10

Similar Documents

Publication Publication Date Title
JP7231306B2 (en) Method, Apparatus and System for Automatically Annotating Target Objects in Images
US11393173B2 (en) Mobile augmented reality system
US11869205B1 (en) Techniques for determining a three-dimensional representation of a surface of an object from a set of images
US11170561B1 (en) Techniques for determining a three-dimensional textured representation of a surface of an object from a set of images with varying formats
CN107993216B (en) Image fusion method and equipment, storage medium and terminal thereof
CN109615703B (en) Augmented reality image display method, device and equipment
US20180189974A1 (en) Machine learning based model localization system
Tian et al. Handling occlusions in augmented reality based on 3D reconstruction method
CN107484428B (en) Method for displaying objects
US10223839B2 (en) Virtual changes to a real object
WO2019035155A1 (en) Image processing system, image processing method, and program
WO2016029939A1 (en) Method and system for determining at least one image feature in at least one image
JP2006053694A (en) Space simulator, space simulation method, space simulation program and recording medium
EP3467788A1 (en) Three-dimensional model generation system, three-dimensional model generation method, and program
US11854228B2 (en) Methods and systems for volumetric modeling independent of depth data
US11900552B2 (en) System and method for generating virtual pseudo 3D outputs from images
CN107330980A (en) A kind of virtual furnishings arrangement system based on no marks thing
Placitelli et al. Low-cost augmented reality systems via 3D point cloud sensors
US20200118333A1 (en) Automated costume augmentation using shape estimation
WO2023151271A1 (en) Model presentation method and apparatus, and electronic device and storage medium
CN114399610A (en) Texture mapping system and method based on guide prior
Li et al. Outdoor augmented reality tracking using 3D city models and game engine
Englert et al. Enhancing the ar experience with machine learning services
US11770551B2 (en) Object pose estimation and tracking using machine learning
Saran et al. Augmented annotations: Indoor dataset generation with augmented reality

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22925630

Country of ref document: EP

Kind code of ref document: A1