WO2022042413A1 - Image reconstruction method and apparatus, and computer readable storage medium, and processor - Google Patents

Image reconstruction method and apparatus, and computer readable storage medium, and processor Download PDF

Info

Publication number
WO2022042413A1
WO2022042413A1 PCT/CN2021/113469 CN2021113469W WO2022042413A1 WO 2022042413 A1 WO2022042413 A1 WO 2022042413A1 CN 2021113469 W CN2021113469 W CN 2021113469W WO 2022042413 A1 WO2022042413 A1 WO 2022042413A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
virtual viewpoint
predetermined position
camera
transition
Prior art date
Application number
PCT/CN2021/113469
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 WO2022042413A1 publication Critical patent/WO2022042413A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/18Image warping, e.g. rearranging pixels individually
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting

Definitions

  • the present invention relates to the field of computers, and in particular, to a method, an apparatus, a computer-readable storage medium and a processor for reconstructing an image.
  • the user uses gesture interaction to determine the virtual viewpoint position for viewing video images on the terminal.
  • the viewing process due to the low computing resources of the terminal or the poor video quality, when the user stays on the virtual viewpoint for a long time to watch, the video is stuck, and the timeliness when reconstructing the image from the virtual viewpoint is poor.
  • Embodiments of the present invention provide a method, an apparatus, a computer-readable storage medium, and a processor for reconstructing an image, so as to at least solve the technical problem of poor timeliness when reconstructing an image at a virtual viewpoint.
  • a method for reconstructing an image may include: detecting that an interactive operation occurs on the operation interface, and obtaining a target position after the virtual viewpoint is displaced on the operation interface; controlling the virtual viewpoint to transition from the target position to a predetermined position, wherein the predetermined position is a space free from the virtual viewpoint The position of the camera whose degree and position are coincident; use the image deformation model to process the image with the virtual viewpoint at the predetermined position, and obtain the reconstructed image.
  • another method for reconstructing an image may include: detecting that an interactive operation of controlling the virtual viewpoint to move from a first position to a second position occurs on the operation interface; and controlling the virtual viewpoint to transition from the second position to a third position, wherein the third position is a camera deployed with a camera.
  • the location of the true viewpoint read the image of the camera at the third position; process the image using a plane-based image warping model to obtain a reconstructed image.
  • another method for reconstructing an image may include: sensing the interactive operation of the operating object on the operating interface; responding to the interactive operation, displaying the displacement of the virtual viewpoint on the operating interface based on the interactive operation, wherein the displacement is moving from a first position to a second position; displaying The virtual viewpoint transitions from a second location to a third location, where the third location is the location of the real viewpoint where the camera is deployed; displaying a reconstructed image generated by processing the target image using a plane-based image warping model, where the target image is located at Image captured by the camera in the third position.
  • another method for reconstructing an image may include: sensing the movement operation of the operation object on the operation interface; if the suspension of the movement operation is sensed, obtaining the stop position of the operation object on the operation interface when the movement operation is stopped; controlling the virtual viewpoint located at the stop position to transition to a predetermined position, wherein, the predetermined position is the position of the camera that coincides with the position of the spatial degrees of freedom of the virtual viewpoint; the image of the camera at the predetermined position is processed using a plane-based image deformation model to obtain a reconstructed image.
  • another method for reconstructing an image may include: sensing the movement operation of the operation object on the operation interface; if the suspension of the movement operation is sensed, obtaining the stop position of the operation object on the operation interface when the movement operation is stopped; controlling the virtual viewpoint located at the stop position to transition to a predetermined position,
  • the predetermined position is the position of the real viewpoint where the camera is deployed; the image of the camera located at the predetermined position is read; the image is processed using a plane-based image deformation model to obtain a reconstructed image.
  • another method for reconstructing an image may include: during the live broadcast, detecting that a moving operation is received on the live screen; acquiring a target position after the virtual viewpoint is displaced on the live screen; controlling the virtual viewpoint to move from the target position to a predetermined position, wherein the predetermined position is The camera position coincides with the position of the spatial degrees of freedom of the virtual viewpoint; the image deformation model is used to process the image of the virtual viewpoint at the predetermined position, and the reconstructed image is obtained.
  • an apparatus for reconstructing an image may include: a first acquisition module for detecting an interactive operation on the operation interface, and acquiring a target position after the virtual viewpoint is displaced on the operation interface; a first control module for controlling the virtual viewpoint to transition from the target position to the The predetermined position, wherein the predetermined position is the camera position coincident with the position of the spatial degree of freedom of the virtual viewpoint; the second processing module is used for using the image deformation model to process the image of the virtual viewpoint at the predetermined position to obtain the reconstructed image.
  • the device may include: a detection module for detecting that an interactive operation of controlling the virtual viewpoint to move from the first position to the second position occurs on the operation interface; and a second control module for controlling the virtual viewpoint to transition from the second position to the third position position, where the third position is the position of the real viewpoint where the camera is deployed; the first reading module is used to read the image of the camera located at the third position; the second processing module is used to use the plane-based image warping model Process the image to obtain a reconstructed image.
  • the device may include: a first sensing module for sensing the movement operation of the operation object on the operation interface; a second acquisition module for obtaining the stoppage of the operation object on the operation interface when the movement operation is stopped if it is sensed that the movement operation is stopped position; a third control module for controlling the virtual viewpoint at the stop position to transition to a predetermined position, wherein the predetermined position is a camera position coincident with the position of the spatial degree of freedom of the virtual viewpoint; a third processing module for using a plane-based The image warping model processes the image of the camera at the predetermined position and obtains the reconstructed image.
  • a computer-readable storage medium includes a stored program, wherein when the program is executed by the processor, the device where the computer-readable storage medium is located is controlled to execute the method for reconstructing an image according to the embodiment of the present invention.
  • a processor is also provided.
  • the processor is used for running a program, wherein the method for reconstructing an image according to the embodiment of the present invention is executed when the program is running.
  • a system for reconstructing an image may include: a processor; a memory, connected to the processor, for providing the processor with instructions for processing the following processing steps: detecting that an interactive operation occurs on the operation interface, and acquiring a target after the virtual viewpoint is displaced on the operation interface position; control the virtual viewpoint to transition from the target position to a predetermined position, wherein the predetermined position is the camera position that coincides with the position of the spatial degrees of freedom of the virtual viewpoint; use the image deformation model to process the image of the virtual viewpoint at the predetermined position to obtain the reconstructed image.
  • an interactive operation is detected on the operation interface to obtain the target position after the virtual viewpoint is displaced on the operation interface; the virtual viewpoint is controlled to transition from the target position to a predetermined position, wherein the predetermined position is the same as the virtual viewpoint.
  • the position of the camera with the spatial degrees of freedom coincides with the position of the camera; the image deformation model is used to process the image with the virtual viewpoint at the predetermined position, and the reconstructed image is obtained.
  • the present application obtains the target position after the virtual viewpoint is displaced on the operation interface, and when the virtual viewpoint transitions from the target position to the predetermined position, the image deformation model can be used to process the image of the virtual viewpoint at the predetermined position, so as to achieve
  • the calculation process of the image deformation model is simple, the calculation speed is block, and it adapts to the computing resources of the low-end computer, it solves the technical problem of poor timeliness when reconstructing the image at the virtual viewpoint, and achieves the improvement of the virtual image.
  • 1A is a block diagram of a hardware structure of a computer terminal (or mobile device) for implementing a method for reconstructing an image according to an embodiment of the present invention
  • FIG. 1B is a schematic structural diagram of a reconstructed image in a specific application scenario according to an embodiment of the present invention.
  • FIG. 2 is a flowchart of a method for reconstructing an image according to an embodiment of the present invention
  • FIG. 3 is a flowchart of another method for reconstructing an image according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of another method for reconstructing an image according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of another method for reconstructing an image according to an embodiment of the present invention.
  • FIG. 6 is a flowchart of another method for reconstructing an image according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a DIBR virtual viewpoint difference according to the related art.
  • FIG. 8 is a schematic diagram of virtual viewpoint interpolation based on Warping and DIBR according to an embodiment of the present invention.
  • FIG. 9 is a flowchart of a method for virtual viewpoint interpolation based on Warping and DIBR according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of an apparatus for reconstructing an image according to an embodiment of the present invention.
  • FIG. 11 is a schematic diagram of another apparatus for reconstructing an image according to an embodiment of the present invention.
  • FIG. 12 is a schematic diagram of another apparatus for reconstructing an image according to an embodiment of the present invention.
  • FIG. 13 is a schematic diagram of another apparatus for reconstructing an image according to an embodiment of the present invention.
  • FIG. 14 is a structural block diagram of a computer terminal according to an embodiment of the present invention.
  • DIBR Depth Image Based Rendering
  • Warping is an operation to deform a two-dimensional image according to the three-dimensional information of the space
  • An image deformation model which is a model for processing a two-dimensional image by using an image deformation technology, wherein the image deformation technology includes the above deformation operation;
  • the 6DoF parameter refers to six degrees of freedom in directions, specifically, translation along three directions and rotation parameters around three axes.
  • an embodiment of a method for reconstructing an image is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and , although a logical order is shown in the flowcharts, in some cases steps shown or described may be performed in an order different from that herein.
  • Embodiment 1 of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device.
  • 1A is a block diagram of a hardware structure of a computer terminal (or mobile device) for implementing a method for reconstructing an image according to an embodiment of the present invention.
  • the computer terminal 10 may include one or more processors 102 (represented by 102a, 102b, . processing means such as a processor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission means 106 for communication functions.
  • processors 102 represented by 102a, 102b, .
  • processing means such as a processor MCU or a programmable logic device FPGA
  • memory 104 for storing data
  • a transmission means 106 for communication functions.
  • FIG. 1A may also include: display, input/output interface (I/O interface), universal serial bus (USB) port (may be included as one of the ports of the I/O interface), network interface, power supply and/or camera.
  • I/O interface input/output interface
  • USB universal serial bus
  • FIG. 1A is only a schematic diagram, which does not limit the structure of the above electronic device.
  • the computer terminal 10 may also include more or fewer components than shown in FIG. 1A , or have a different configuration than that shown in FIG. 1A .
  • the one or more processors 102 and/or other data processing circuits described above may generally be referred to herein as "data processing circuits.”
  • the data processing circuit may be embodied in whole or in part as software, hardware, firmware or any other combination.
  • the data processing circuitry may be a single stand-alone processing module, or incorporated in whole or in part into any of the other elements in the computer terminal 10 (or mobile device).
  • the data processing circuit acts as a kind of processor control (eg, selection of a variable resistance termination path connected to an interface).
  • the memory 104 can be used to store software programs and modules of application software, such as a program instruction/data storage device corresponding to the method for reconstructing an image in the embodiment of the present invention.
  • the processor 102 runs the software programs and modules stored in the memory 104, thereby Execute various functional applications and data processing, that is, realize the method of reconstructing images of the above-mentioned application programs.
  • Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, memory 104 may further include memory located remotely from processor 102, which may be connected to computer terminal 10 through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
  • Transmission means 106 are used to receive or transmit data via a network.
  • a specific example of the above-mentioned network may include a wireless network provided by a communication provider of the computer terminal 10 .
  • the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet.
  • the transmission device 106 may be a radio frequency (Radio Frequency, RF) module, which is used for wirelessly communicating with the Internet.
  • RF Radio Frequency
  • the display may be, for example, a touch screen type liquid crystal display (LCD) that enables a user to interact with the user interface of the computer terminal 10 (or mobile device).
  • LCD liquid crystal display
  • the computer device (or mobile device) shown in FIG. 1A may include hardware elements (including circuits), software elements (including a computer stored on a computer-readable medium) code), or a combination of both hardware and software elements.
  • FIG. 1A is only one example of a specific embodiment, and is intended to illustrate the types of components that may be present in a computer device (or mobile device) as described above.
  • FIG. 1B is a schematic structural diagram of a reconstructed image in a specific application scenario according to an embodiment of the present invention, which shows an arrangement scene of a system 20 for reconstructing an image.
  • the system 20 for reconstructing an image may include a plurality of acquisition devices.
  • the acquisition array 21 , the data processing device 22 , the server cluster 23 in the cloud may include: server 231 , server 232 , server 233 , server 234 ), playback control device 24 , playback terminal 25 and interactive terminal 26 .
  • the system 20 for reconstructing an image can acquire the target position after the virtual viewpoint is displaced on the operation interface, and when the virtual viewpoint transitions from the target position to the predetermined position, the image deformation model can be used to process the image in which the virtual viewpoint is located at the predetermined position , so as to achieve the purpose of obtaining reconstructed images.
  • the acquisition array 21 may include a plurality of cameras, which may be fan-shaped and placed at different positions in the field acquisition area according to a preset multi-angle free viewing angle range.
  • the data processing device 22 can respectively send instructions to each camera in the acquisition array 21 through a wireless local area network, and each acquisition device in the acquisition array 21 transmits the obtained position of the camera based on the instructions sent by the data processing device 22 . to the data processing device 22 .
  • the interactive terminal 26 in this embodiment determines the target position after the virtual viewpoint is displaced on the operation interface based on the interactive operation.
  • the interactive terminal can be obtained.
  • the target position after the virtual viewpoint sent on the operation interface is displaced, and the virtual viewpoint is controlled to transition from the target position to a predetermined position.
  • the image with the virtual viewpoint at the predetermined position is processed, the reconstructed image is obtained, and the obtained reconstructed image can be uploaded to the server cluster 23 in the cloud, and the server cluster 23 can send the reconstructed image to the interactive terminal 26 for display.
  • the data processing device 22 detects that an interactive operation occurs on the operation interface of the interactive terminal 26, obtains the target position of the virtual viewpoint sent by the interactive terminal 26 after the displacement on the operation interface, and uses The target position is uploaded to the server cluster 23 in the cloud, and the virtual viewpoint is controlled to transition from the target position to the predetermined position through the server cluster 23, and then the image with the virtual viewpoint located at the predetermined position is processed by the image deformation model, and the reconstructed image is obtained, and the obtained data can be obtained.
  • the reconstructed image is sent to the interactive terminal 26 for display.
  • the playback control device 24 may receive the reconstructed image sent by the server cluster 23, and the playback terminal 25 receives the reconstructed image from the playback control device 24 and plays the reconstructed image in real time.
  • the playback control device 24 may be a manual playback control device or a virtual playback control device.
  • a broadcast director control device such as a broadcast director station, may be used as a playback control device in the embodiment of the present invention.
  • the reconstructed image may be a reconstructed image in a video.
  • the entities in the video will not be completely static.
  • the reconstructed image will also change continuously over time. change.
  • This embodiment adopts the above-mentioned system for reconstructing an image.
  • the user can directly view the reconstructed image through the playback terminal 25;
  • the image deformation model to process the image with the virtual viewpoint located at the predetermined position, and obtain the reconstructed image.
  • the above system 20 for reconstructing an image may also include only the playback terminal 25 or only the interaction terminal 26, or use the same terminal device as the playback terminal 25 and the interaction terminal 26.
  • an embodiment of the present specification provides a solution.
  • the present application provides a method for reconstructing an image as shown in FIG. 2 .
  • the method for reconstructing an image in this embodiment may be performed by the mobile terminal of the embodiment shown in FIG. 1A or the system for reconstructing an image shown in FIG. 1B .
  • FIG. 2 is a flowchart of a method for reconstructing an image according to an embodiment of the present invention. As shown in Figure 2, the method may include the following steps:
  • step S202 an interactive operation is detected on the operation interface, and a target position after the virtual viewpoint is displaced on the operation interface is acquired.
  • the interactive operation may be the interaction performed by the terminal user for the virtual viewpoint, and may also be called user free viewpoint interaction (DIBR), wherein the interactive operation occurs on the operation interface.
  • DIBR user free viewpoint interaction
  • the virtual viewpoint will be displaced on the operation interface, therefore, the above-mentioned interactive operation may be a movement operation for the virtual viewpoint, for example, a movement operation starting from point A on the operation interface.
  • an interactive operation can be detected on the operation interface, and then the target position where the virtual viewpoint stays after the displacement on the operation interface can be obtained.
  • the target position is point B on the operation interface, and the interactive operation stops at point B. It is the operation that the user's finger lifts up the moment it reaches point B, then the displacement of the virtual viewpoint on the operation interface is the displacement between point A and point B.
  • Step S204 controlling the virtual viewpoint to transition from the target position to a predetermined position, where the predetermined position is a camera position coincident with the position of the spatial degree of freedom of the virtual viewpoint.
  • the target position does not necessarily correspond to the real camera position, so that image reconstruction cannot be performed directly at the target position .
  • the virtual viewpoint can be controlled to transition from the target position to the predetermined position, and the virtual viewpoint can be transitioned from the stayed target position along the interactive inertia according to a certain path until the transitioned position coincides with the position of the spatial degrees of freedom of the virtual viewpoint.
  • the position coincident with the position of the spatial degree of freedom of the virtual viewpoint is the predetermined position.
  • the above-mentioned predetermined position in this embodiment may be a position where a camera is deployed, wherein the camera may be a real camera, that is, the predetermined position in this embodiment may be a real camera position, which may also be called a real viewpoint Location.
  • the predetermined position in this embodiment is a real viewpoint position closest to the target position.
  • the virtual viewpoint after acquiring the target position of the virtual viewpoint after the displacement on the operation interface, the virtual viewpoint is no longer controlled by the interactive operation, so this embodiment controls the virtual viewpoint to transition from the target position to the predetermined position, so
  • the interactive inertia involved can be understood as a rule for transitioning the virtual viewpoint, which can also be called inertial transition, which conforms to the user's interaction habits and experience.
  • the virtual viewpoint is controlled to slide from the target position to a predetermined position at a certain speed and then stop.
  • the predetermined position may be a preferred position to which the control target position transitions on the operation interface, or a position that conforms to the user's interaction habits and experience.
  • the black solid points (such as A1 and A2) can represent virtual viewpoints
  • the white hollow positions (such as B1, A2, etc.) B2, B3, etc.) can represent the position of the real viewpoint where the real camera is located.
  • the control mode can include any one of the following: select the real viewpoint from the virtual viewpoint A2; select a real viewpoint with free computing resources and the closest to the virtual viewpoint; when the camera where the selected real viewpoint is located is damaged, waiting for processing time When any one or more of the situations in the predetermined duration exceed, select the real viewpoint with the highest preset weight value.
  • the above-mentioned certain path in this embodiment may be a predetermined smooth path.
  • the above-mentioned spatial degrees of freedom positions may be three spatial degrees of freedom positions (x, y, z).
  • Step S206 using the image deformation model to process the image with the virtual viewpoint located at the predetermined position to obtain the reconstructed image.
  • the image warping model may also be called a Warping model, which can be used to process the two-dimensional image by using the image warping technology, that is, the two-dimensional image is processed according to the three-dimensional information of the space. Deformation operations.
  • the above-mentioned image deformation model can be used to process the virtual viewpoint at the above-mentioned predetermined position. image to obtain a reconstructed image.
  • the calculation process of the above-mentioned image deformation model is simple, so this embodiment is faster than the interpolation method using depth map-based virtual viewpoint reconstruction (DIBR), adapts to the computing resources of low-end computers, and ensures the virtual viewpoint Timeliness (real-time) when reconstructing images, and image quality in complex image reconstruction scenarios.
  • DIBR depth map-based virtual viewpoint reconstruction
  • an interactive operation on the operation interface is detected, and the target position after the virtual viewpoint is displaced on the operation interface is obtained; the virtual viewpoint is controlled to transition from the target position to a predetermined position, wherein the predetermined position is the same as the target position.
  • the position of the camera where the spatial degrees of freedom of the virtual viewpoint coincide; the image deformation model is used to process the image with the virtual viewpoint at a predetermined position, and the reconstructed image is obtained. That is to say, in this embodiment, the target position after the virtual viewpoint is displaced on the operation interface is obtained.
  • the image deformation model can be used to process the image in which the virtual viewpoint is located at the predetermined position.
  • the purpose of obtaining the reconstructed image is achieved. Because the calculation process of the image deformation model is simple, the calculation speed is block, and it adapts to the computing resources of the low-end computer, it solves the technical problem of poor timeliness when reconstructing the image at the virtual viewpoint, and achieves the improvement of The technical effect of time-sensitiveness when reconstructing images from virtual viewpoints.
  • the interactive operation occurring on the operation interface may be a continuous operation process.
  • the displacement of the virtual viewpoint on the operation interface it is detected that an interactive operation occurs on the operation interface. If it is detected that the virtual viewpoint moves to the target position, the interactive operation is interrupted, for example, the interactive operation stays at the target position.
  • the transition operation of executing the transition of the virtual viewpoint from the target position to the predetermined position is started, that is, once the interruption of the interactive operation at the target position is detected, the execution of the above transition operation is triggered.
  • step S204 in the process of controlling the virtual viewpoint to transition from the target position to the predetermined position, the method further includes: using the DIBR virtual viewpoint interpolation algorithm to generate interpolation of the transition image frame; based on the transition image frame interpolation to reconstruct the image during the transition.
  • the DIBR virtual viewpoint interpolation algorithm may be used to generate the interpolation of the transition image frame until the virtual viewpoint transitions from the target position to the predetermined position, for example, until The spatial three-DOF position (x, y, z) of the virtual viewpoint coincides with the real camera position.
  • the spatial three-DOF position (x, y, z) of the virtual viewpoint coincides with the real camera position.
  • the difference between the interpolated planned 6DoF position and the real camera position is only in the remaining three rotational degrees of freedom (respectively are the degrees of freedom of rotation around the x, y, and z axes).
  • an image during the transition of the virtual viewpoint from the target position to the predetermined position may be reconstructed based on the interpolation of the transition image frame.
  • step S204 after the virtual viewpoint is controlled to transition from the target position to the predetermined position, the Warping image deformation algorithm is invoked to switch to use the image deformation model for image reconstruction.
  • the image warping algorithm can be the Warping image warping algorithm, which can also be called Warping operation. Because of its simple calculation, only one projection needs to be performed, and there are no other pre- and post-processing operations. Therefore, it is more efficient than DIBR. Interpolation is fast.
  • the Warping image warping algorithm may be called, that is, the DIBR virtual viewpoint interpolation algorithm is switched to the Warping image warping algorithm, so that the image warping model is used for image reconstruction. It is because of the above-mentioned characteristics of the operation of Warping, which ensures the timeliness when reconstructing images from virtual viewpoints and the image quality in complex image reconstruction scenarios.
  • This embodiment provides the DIBR method combined with the Warping function, which can support richer terminal interaction design, and can flexibly configure different interaction methods in combination with actual terminal and scene conditions, thereby creating a good experience for users.
  • using an image deformation model to process an image where the virtual viewpoint is located at a predetermined position includes: reading a corresponding image from a camera based on the predetermined position where the virtual viewpoint is located; according to the space where the virtual viewpoint is located Rotational degrees of freedom on the coordinate system, using the image warping model to process the read image.
  • the corresponding image when the image deformation model is used to process the image in which the virtual viewpoint is located at the predetermined position, the corresponding image may be read from the camera based on the predetermined position of the virtual viewpoint, and the corresponding image is read from the camera.
  • the image of the virtual viewpoint is located at a predetermined position, which can also be called the original camera image, and then determine the spatial coordinate system where the virtual viewpoint is located, and determine the rotational degrees of freedom on the spatial coordinate system, for example, three rotational degrees of freedom , according to the rotational degrees of freedom on the spatial coordinate system where the virtual viewpoint is located, use the image deformation model to process the read image, and then update the next viewpoint reconstruction function, so that the timeliness problem of terminal reconstruction DIBR can be solved at the same time, and Image quality issues in complex reconstruction scenarios.
  • this embodiment can solve the problem of smoothness when the user switches between free viewpoints through the inertial DIBR interpolation transition from the virtual viewpoint position interacted by the user to the real camera position.
  • the spatial degree of freedom is the coordinate value of the virtual viewpoint on the spatial coordinate system
  • the rotational degree of freedom is the degree of freedom of rotating around the coordinate axis of the spatial coordinate system.
  • the spatial degree of freedom is the coordinate value of the virtual viewpoint on the spatial coordinate system, for example, (x, y, z)
  • the rotational degree of freedom is the degree of freedom to rotate around the coordinate axis of the spatial coordinate system , for example, there are 3 degrees of freedom, which can be rotation degrees of freedom around the three axes of x, y, and z respectively.
  • step S204 before controlling the virtual viewpoint to transition from the target position to the predetermined position, the method further includes: acquiring the distance between the target position where the virtual viewpoint is currently located and the predetermined position; if the distance exceeds a threshold value , then control the virtual viewpoint to move from the target position to the viewpoint position where the camera with the highest priority is located according to the preset camera priority; if the distance does not exceed the threshold, execute the step of transitioning the virtual viewpoint from the target position to the predetermined position.
  • the distance between the current target position after the virtual viewpoint is displaced on the operation interface and the predetermined position can also be obtained, and the predetermined position is The location where the camera is deployed. Then it is judged whether the distance between the target position and the predetermined position exceeds the threshold value, and if it is judged that the distance between the target position and the predetermined position exceeds the threshold value, the virtual viewpoint transition from the target position to the predetermined position is not executed, but the preset The camera priority is controlled to control the virtual viewpoint to move from the target position to the viewpoint position where the camera with the highest priority is located according to the above-mentioned preset camera priority; If the distance does not exceed the threshold, you can continue to perform the transition of the virtual viewpoint from the target position to the predetermined position, which can be to transition the virtual viewpoint along the interactive inertia according to a certain path from the stayed target position until the transition to the space between the position and the virtual viewpoint The position of the degrees of freedom coincide
  • step S202 after detecting that an interactive operation occurs on the operation interface, the method further includes: popping up prompt information for indicating at least one selection control; selecting the reconstructed image by triggering any selection control display resolution.
  • the interaction operation may be the interaction performed by the end user for the virtual viewpoint, in order to make the user more convenient to deal with the acquired reconstructed image and set to meet the requirements, for example, in order to make the user more convenient to deal with the acquired reconstructed image
  • the display resolution of the obtained reconstructed image is set to meet the requirements for the resolution of the reconstructed image to be obtained.
  • a pop-up is used to indicate at least one selection control.
  • the prompt information wherein the selection control may be a functional control for selecting the resolution of the reconstructed image to be acquired, and the prompt information is also interactive indication information to prompt the user to perform a selection operation.
  • the user's selection operation on any selection control can be received, and then in response to the selection operation on any selection control, the display resolution of the reconstructed image is selected, wherein each Each selection control may correspond to the display resolution of one reconstructed image, and multiple selection controls may correspond to different display resolutions of the reconstructed image respectively, so as to meet the requirement of diverse settings for the display resolution of the reconstructed image to be acquired, for example, In the scenario where the user is watching a movie, there will be a reminder of the low display resolution of the reconstructed image. In this way, when the image deformation model is used to process the image with the virtual viewpoint located at the predetermined position, the obtained reconstructed image is the display resolution corresponding to the selection control triggered by the user.
  • the embodiment of the present invention also provides another method for reconstructing an image.
  • FIG. 3 is a flowchart of another method for reconstructing an image according to an embodiment of the present invention. As shown in Figure 3, the method may include the following steps:
  • Step S302 it is detected that an interactive operation of controlling the virtual viewpoint to move from the first position to the second position occurs on the operation interface.
  • the interactive operation may be an interaction performed by the user with respect to the virtual viewpoint.
  • the virtual viewpoint is controlled to move from the first position to the second position, where the second position may be the position where the virtual viewpoint stays after the displacement on the operation interface, for example, the position where the user's finger is lifted on the operation interface.
  • Step S304 controlling the virtual viewpoint to transition from the second position to the third position, where the third position is the position of the real viewpoint where the camera is deployed.
  • step S304 of the present invention after an interactive operation of controlling the virtual viewpoint to move from the first position to the second position is detected on the operation interface, the virtual viewpoint can be controlled to transition from the second position to the third position, It can be that the virtual viewpoint transitions from the second position where it stayed along a certain path along the interactive inertia until it transitions to a third position, where the real viewpoint of the camera can be deployed, which is different from the position of the spatial degrees of freedom of the virtual viewpoint. coincide.
  • the spatial DOF position may be a spatial three DOF position (x, y, z).
  • Step S306 read the image of the camera located at the third position.
  • step S306 of the present invention after controlling the virtual viewpoint to transition from the second position to the third position, the image of the camera located at the third position can be read.
  • Step S308 using the plane-based image deformation model to process the image to obtain a reconstructed image.
  • the image of the camera located at the third position is read, the image can be processed using a plane-based image deformation model to obtain a reconstructed image.
  • a plane-based image deformation model can be used in the image reconstruction scene to process the image of the third position of the virtual viewpoint.
  • the image of the camera is obtained, and then the reconstructed image is obtained, and the image deformation model of the plane is a two-dimensional image deformation model.
  • the calculation process of the above-mentioned plane-based image deformation model is simple, so this embodiment is faster than the interpolation method using the DIBR based on the depth map, thus adapting to the computing resources of low-end computers, It ensures the timeliness of image reconstruction from virtual viewpoints and the image quality in complex image reconstruction scenarios.
  • the position of the real viewpoint closest to the second position is selected as the third position.
  • At least one real viewpoint position before controlling the virtual viewpoint to transition from the second position to the third position, at least one real viewpoint position may be acquired, and then from the at least one real viewpoint position, the closest real viewpoint position to the second position is determined, And use it as the third position that needs to control the transition of the virtual viewpoint from the second position to.
  • the embodiment of the present invention also provides another method for reconstructing an image.
  • FIG. 4 is a flowchart of another method for reconstructing an image according to an embodiment of the present invention. As shown in Figure 4, the method may include the following steps:
  • Step S402 an interactive operation of the operation object on the operation interface is sensed.
  • the interactive operation may be the interaction of the virtual viewpoint performed by the operation object.
  • the virtual viewpoint will be displaced on the operation interface, wherein , the operation object can be the user.
  • This embodiment senses the above-mentioned interactive operation of the operation object on the operation interface.
  • Step S404 in response to the interactive operation, display the displacement of the virtual viewpoint on the operation interface based on the interactive operation, wherein the displacement is moving from the first position to the second position.
  • the virtual viewpoint can be displaced on the operation interface based on the interactive operation.
  • the virtual viewpoint after sensing the interactive operation of the operation object on the operation interface, the virtual viewpoint can be displayed in response to the interactive operation.
  • the displacement occurs on the operation interface based on the interactive operation, wherein the displacement is the displacement from the first position to the second position.
  • the second position where the virtual viewpoint stays after the displacement from the first position on the operation interface can be obtained, and the displacement between the first position and the second position can be determined, which is also an interactive operation.
  • the displacement occurred on the operation interface, and then the displacement occurred in the operation interface of the interactive operation is displayed.
  • Step S406 displaying that the virtual viewpoint transitions from the second position to the third position, where the third position is the position of the real viewpoint where the camera is deployed.
  • step S406 of the present invention after the displacement of the interactive operation on the operation interface is displayed, the displayed virtual viewpoint transitions from the second position to the third position.
  • the virtual viewpoint can be controlled to transition from the second position to the third position, and the virtual viewpoint can be transitioned from the second position where it stayed along the interactive inertia according to a certain path until it transitions to the third position,
  • the third position may be deployed with the real viewpoint of the camera, which coincides with the position of the spatial degree of freedom of the virtual viewpoint, thereby displaying the result of the transition of the virtual viewpoint from the second position to the third position.
  • the spatial DOF position may be a spatial three DOF position (x, y, z).
  • Step S408 displaying a reconstructed image generated by processing the target image using the plane-based image deformation model, where the target image is an image captured by a camera located at a third position.
  • step S408 of the present invention after the displayed virtual viewpoint transitions from the second position to the third position, the reconstructed image generated by processing the target image using the plane-based image deformation model is displayed.
  • the target image captured by the camera at the third position is read, and the plane-based The image warping model processes the above target image, acquires and displays the reconstructed image.
  • the calculation process of the above-mentioned plane-based image deformation model is simple, so this embodiment is faster than the interpolation method using DIBR based on depth map, thus adapting to the computing resources of low-end computers and ensuring virtual viewpoint reconstruction The timeliness of images, and the image quality in complex image reconstruction scenarios.
  • the embodiment of the present invention also provides another method for reconstructing an image.
  • FIG. 5 is a flowchart of another method for reconstructing an image according to an embodiment of the present invention. As shown in Figure 5, the method may include the following steps:
  • Step S502 sensing the movement operation of the operation object on the operation interface.
  • the movement operation may be a movement operation performed by the operation object for the virtual viewpoint.
  • the virtual viewpoint will occur and move on the operation interface.
  • Step S504 if it is sensed that the movement operation is suspended, obtain the stop position where the operation object stays on the operation interface when the movement operation is suspended.
  • step S504 of the present invention after sensing the movement operation of the operation object on the operation interface, if the suspension of the movement operation is sensed, the stop position of the operation object on the operation interface when the movement operation is stopped is obtained.
  • the moving operation that occurs on the operation interface is a continuous operation process. If the suspension of the moving operation is sensed, the stop position of the operation object on the operation interface when the moving operation is stopped can be obtained, that is, the moving operation An interruption occurred at the above stop position.
  • Step S506 controlling the virtual viewpoint located at the stop position to transition to a predetermined position, where the predetermined position is a camera position coincident with the position of the spatial degree of freedom of the virtual viewpoint.
  • the virtual viewpoint at the stop position can be controlled to transition to a predetermined position.
  • the virtual viewpoint moves with the moving operation, and after acquiring the stop position where the operation object stays on the operation interface when the moving operation is stopped, the virtual viewpoint at the stop position can be triggered to transition to a predetermined position, the predetermined position
  • the camera position that is coincident with the position of the spatial degrees of freedom of the virtual viewpoint may be the real camera position, and may also be referred to as the real viewpoint position.
  • Step S508 using the plane-based image deformation model to process the image of the camera at the predetermined position to obtain a reconstructed image.
  • a plane-based image deformation model can be used to process the image of the camera at the predetermined position to obtain a reconstructed image.
  • the virtual viewpoint transitions to the predetermined position, there is an image of the camera with the virtual viewpoint at the predetermined position, the image captured by the camera at the third position is read, and the plane-based image deformation model is used Process this image to obtain a reconstructed image.
  • the calculation process of the above-mentioned plane-based image deformation model is simple, so this embodiment is faster than the interpolation method using DIBR based on depth map, thus adapting to the computing resources of low-end computers and ensuring virtual viewpoint reconstruction The timeliness of images, and the image quality in complex image reconstruction scenarios.
  • the embodiment of the present invention also provides another method for reconstructing an image.
  • FIG. 6 is a flowchart of another method for reconstructing an image according to an embodiment of the present invention. As shown in Figure 6, the method may include the following steps:
  • Step S602 sensing the movement operation of the operation object on the operation interface.
  • the movement operation may be a movement operation performed by the operation object for the virtual viewpoint.
  • the virtual viewpoint will occur and move on the operation interface.
  • the displacement corresponding to the trajectory of the operation, where the operation object may be the user's finger, and the movement operation may be the user's sliding operation.
  • Step S604 if it is sensed that the movement operation is suspended, obtain the stop position where the operation object stays on the operation interface when the movement operation is suspended.
  • step S604 of the present invention after sensing the movement operation of the operation object on the operation interface, if the suspension of the movement operation is sensed, the stop position of the operation object on the operation interface when the movement operation is stopped is obtained.
  • the movement operation that occurs on the operation interface is a continuous operation process. If the suspension of the movement operation is sensed, the stop position of the operation object on the operation interface when the movement operation is stopped can be obtained, that is, the movement operation An interruption occurred at the above stop position.
  • Step S606 controlling the virtual viewpoint located at the staying position to transition to a predetermined position, where the predetermined position is the position of the real viewpoint where the camera is deployed.
  • step S606 of the present invention after obtaining the stop position where the operation object stays on the operation interface when the moving operation is suspended, the virtual viewpoint at the stop position is controlled to transition to a predetermined position.
  • the virtual viewpoint moves with the moving operation, and after acquiring the stop position where the operation object stays on the operation interface when the moving operation is stopped, the virtual viewpoint at the stop position can be triggered to transition to a predetermined position, the predetermined position is the position of the real viewpoint where the camera is deployed, the position of the camera that can coincide with the position of the spatial degrees of freedom of the virtual viewpoint.
  • step S608 the image of the camera located at the predetermined position is read.
  • step S608 of the present invention after controlling the virtual viewpoint located at the stop position to transition to the predetermined position, the image of the camera located at the predetermined position is read.
  • Step S610 using a plane-based image deformation model to process the image to obtain a reconstructed image.
  • step S610 of the present invention after the image of the camera located at the predetermined position is read, the image is processed using a plane-based image deformation model to obtain a reconstructed image.
  • the image of the camera at the predetermined position of the virtual viewpoint can be processed using a plane-based image deformation model in the image reconstruction scene , and then obtain the reconstructed image.
  • the embodiment of the present invention also provides another method for reconstructing an image, and the method may include: during the live broadcast, detecting that a movement operation is received on the live broadcast screen; obtaining the target position of the virtual viewpoint after the displacement on the live broadcast screen; controlling The virtual viewpoint is moved from the target position to a predetermined position, where the predetermined position is the camera position that coincides with the position of the virtual viewpoint's spatial degrees of freedom; the image deformation model is used to process the image of the virtual viewpoint at the predetermined position to obtain a reconstructed image.
  • the method for reconstructing an image in this embodiment may be applied to a live broadcast scenario, for example, the live broadcast scenario may be a transaction type live broadcast scenario, which is not specifically limited here.
  • the movement operation in this embodiment may be a movement operation of a virtual viewpoint performed by a terminal user on the live screen in the live broadcast scene, and may also be referred to as user free viewpoint interaction.
  • the viewpoint will be displaced on the live screen, for example, the displacement corresponding to the movement operation starting from point A on the live screen.
  • the interactive operation on the live screen can be detected, and then the target position where the virtual viewpoint stays after the displacement on the live screen is obtained.
  • the target position is point B on the live screen, and the moving operation stops at point B. It is the operation that the user's finger lifts up when it reaches point B, and the displacement of the virtual viewpoint on the live screen is the displacement between point A and point B.
  • the target position does not necessarily correspond to the real camera position, so that image reconstruction cannot be performed directly at the target position.
  • the virtual viewpoint can be controlled to transition from the target position to the predetermined position, and the virtual viewpoint can be transitioned from the stayed target position along the interactive inertia according to a certain path until the transitioned position coincides with the position of the spatial degrees of freedom of the virtual viewpoint.
  • the position coincident with the position of the spatial degree of freedom of the virtual viewpoint is the predetermined position.
  • the predetermined position in this embodiment is a real viewpoint position closest to the target position.
  • the virtual viewpoint after obtaining the target position of the virtual viewpoint after the displacement on the live screen, the virtual viewpoint is no longer controlled by the interactive operation, so this embodiment controls the virtual viewpoint to transition from the target position to the predetermined position, so
  • the interactive inertia involved can be understood as a rule for transitioning the virtual viewpoint.
  • the above-mentioned certain path in this embodiment may be a predetermined smooth path on the live broadcast screen.
  • the above-mentioned spatial degrees of freedom positions may be three spatial degrees of freedom positions (x, y, z).
  • an image deformation model can be used to process the image with the virtual viewpoint at the predetermined position to obtain a reconstructed image.
  • the calculation process of the above-mentioned image deformation model is simple, so this embodiment is faster than the interpolation method using depth map-based virtual viewpoint reconstruction, adapts to the computing resources of low-end computers, and ensures that the virtual viewpoint reconstructs the image when the image is reconstructed.
  • the timeliness real-time
  • the image quality in complex image reconstruction scenarios are very important.
  • the calculation process of the above-mentioned plane-based image deformation model is simple, so this embodiment is faster than the interpolation method using DIBR based on depth map, thus adapting to the computing resources of low-end computers and ensuring virtual viewpoint reconstruction The timeliness of images, and the image quality in complex image reconstruction scenarios.
  • This embodiment provides the DIBR method combined with the Warping function, which can support richer terminal interaction design, and can flexibly configure different interaction methods in combination with actual terminal and scene conditions, thereby creating a good experience for users.
  • This embodiment uses the combined solution of inertial DIBR transition and real viewpoint position Warping to avoid the problem of low time-efficiency in the calculation of the low-end computer after staying at the virtual viewpoint position, and the related problem of low image quality in complex scenes, It can adapt to the computing resources of low-end computers and improve the image quality in complex scenes at the same time, so that the free-view video experience has better universality.
  • FIG. 7 is a schematic diagram of a DIBR virtual viewpoint difference value according to the related art.
  • the black thin solid arrow is used to represent the true orientation of the original camera
  • the hollow circle is used to represent the original camera
  • the black solid circle is used to represent the virtual camera.
  • a camera array with sparse viewpoints is used to obtain a wide range of free viewpoints, wherein the black solid circles are used to indicate the position where the virtual viewpoints stay when performing virtual viewpoint interaction, and the hollow circles are used to represent the virtual viewpoints through DIBR. method to interpolate the determined real camera position.
  • the main interaction method is to determine the position of the virtual viewpoint where the user wishes to stay through the gesture interaction of the end user, and to perform interpolation through the DIBR method according to the 6DoF parameters of the virtual viewpoint to obtain the user's position at the virtual viewpoint. View images.
  • DIBR DIBR
  • the terminal computing resources are not abundant, which will lead to high complexity of DIBR.
  • the calculation cannot achieve the purpose of real-time. Therefore, if the user stays in the virtual viewpoint for a long time to watch, the video will be stuck; As a result, the quality of the depth map cannot be guaranteed, which further causes the user to stay at the virtual viewpoint position continuously, and the subjective experience of the interpolated image quality is seriously degraded compared with the original viewpoint.
  • this embodiment proposes that a simplified version of Warping-based method needs to be added to the DIBR reference software to meet diverse and universal interaction requirements.
  • FIG. 8 is a schematic diagram of virtual viewpoint interpolation based on Warping and DIBR according to an embodiment of the present invention.
  • the black thin solid line arrows are used to represent the real orientation of the original camera
  • the black thick solid line arrows are used to represent the virtual camera orientation after the path is planned (what the user sees is the black thick solid line arrows) ).
  • Open circles are used to represent the original camera
  • black filled circles are used to represent the virtual camera.
  • FIG. 9 is a flowchart of a method for virtual viewpoint interpolation based on Warping and DIBR according to an embodiment of the present invention.
  • step S901 when step S901 is executed, the user performs virtual viewpoint interaction (DIBR) and stays at the position of the black solid circle, the virtual viewpoint can be planned along the path.
  • DIBR virtual viewpoint interaction
  • the interactive inertia performs transition interpolation through a smooth path until the three-degree-of-freedom position (x, y, z) of the virtual viewpoint coincides with the real camera position.
  • the virtual viewpoint moves from the second black circle to its adjacent At the position of the left hollow circle of the adjacent left side, the position of the adjacent left hollow circle corresponds to the position of the real camera, so that step S902 is realized, and the virtual viewpoint inertial transitions to the real viewpoint, and then step S903 is executed, through Warping Determine the true viewpoint location.
  • the spatial three-degree-of-freedom position (x, y, z) of the virtual viewpoint coincides with the real camera position, the difference between the interpolated planned 6DoF position and the real camera position is only in the remaining three rotational degrees of freedom (respectively is the degree of freedom of rotation around the three axes of x, y, and z)
  • step S903 is executed, S901 is executed again.
  • the solid thin arrows corresponding to the hollow circles the solid thick arrows corresponding to the black solid circles, and the paths corresponding to the solid dashed arrows.
  • the next viewpoint reconstruction function can be updated through the Warping operation of the original camera image according to the three rotational degrees of freedom, so that
  • the above two problems can be solved at the same time: the problem of timeliness of terminal reconstruction of DIBR, and the problem of image quality in complex reconstruction scenarios.
  • the inertial DIBR interpolation transition is performed from the virtual viewpoint position interacted by the user to the real camera position, thereby solving the problem of smoothness when the user switches between free viewpoints.
  • the black solid points (such as A1 and A2) can represent virtual viewpoints
  • the white hollow points (such as B1, B2, B3, etc.) can represent the position of the real viewpoint where the real camera is located.
  • the control mode can include any one of the following: select the real viewpoint from the virtual viewpoint A2; select a real viewpoint with free computing resources and the closest to the virtual viewpoint; when the camera where the selected real viewpoint is located is damaged, waiting for processing time When any one or more of the situations in the predetermined duration exceed, select the real viewpoint with the highest preset weight value.
  • this embodiment provides a DIBR method combined with the Warping function, which can support richer terminal interaction design, and can be flexibly configured in combination with actual terminal and scenario conditions Different interaction methods to enhance user experience.
  • the combination scheme of inertial DIBR transition and real viewpoint position Warping is used to avoid the problem of real-time calculation of low-end computers after staying at the virtual viewpoint position, and the problem of image quality in related complex scenes.
  • This embodiment provides a DIBR synthesis method supported by a Warping function with low computational complexity, through which the computational resources of low-end and mid-end computers and image quality problems in complex scenes can be simultaneously adapted, so that free-view video can be Experience is more universal.
  • an apparatus for implementing the above method for reconstructing an image is also provided. It should be noted that the apparatus for reconstructing an image in this embodiment can be used to execute the method for reconstructing an image shown in FIG. 2 in the embodiment of the present invention.
  • FIG. 10 is a schematic diagram of an apparatus for reconstructing an image according to an embodiment of the present invention.
  • the apparatus 100 for reconstructing an image may include: a first acquisition module 101, a first control module 102 and a second processing module 103.
  • the first obtaining module 101 is configured to detect an interactive operation on the operation interface, and obtain the target position after the virtual viewpoint is displaced on the operation interface.
  • the first control module 102 is configured to control the virtual viewpoint to transition from a target position to a predetermined position, wherein the predetermined position is a camera position coincident with the position of the spatial degree of freedom of the virtual viewpoint.
  • the second processing module 103 is configured to use the image deformation model to process the image with the virtual viewpoint located at the predetermined position, and obtain the reconstructed image.
  • first acquisition module 101 corresponds to steps S202 to S206 in Embodiment 1
  • second processing module 103 corresponds to steps S202 to S206 in Embodiment 1
  • the three modules and corresponding steps are implemented by the examples and The application scenarios are the same, but are not limited to the content disclosed in the first embodiment.
  • the above-mentioned modules may run in the computer terminal 10 provided in the first embodiment.
  • another apparatus for implementing the above method for reconstructing an image is also provided. It should be noted that the apparatus for reconstructing an image in this embodiment can be used to execute the method for reconstructing an image shown in FIG. 3 in the embodiment of the present invention.
  • another apparatus for implementing the above method for reconstructing an image is also provided. It should be noted that the apparatus for reconstructing an image in this embodiment may be used to execute the method for reconstructing an image shown in FIG. 4 in the embodiment of the present invention.
  • FIG. 11 is a schematic diagram of another apparatus for reconstructing an image according to an embodiment of the present invention.
  • the apparatus 110 for reconstructing an image may include: a detection module 111 , a second control module 112 , a first reading module 113 and a second processing module 114 .
  • the detection module 111 is configured to detect that an interactive operation of controlling the virtual viewpoint to move from the first position to the second position occurs on the operation interface.
  • the second control module 112 is configured to control the virtual viewpoint to transition from the second position to the third position, where the third position is the position of the real viewpoint where the camera is deployed.
  • the first reading module 113 is used for reading the image of the camera located at the third position.
  • the second processing module 114 is configured to process the image by using the plane-based image deformation model to obtain the reconstructed image.
  • the detection module 111 , the second control module 112 , the first reading module 113 and the second processing module 114 correspond to steps S302 to S308 in Embodiment 1, and the four modules correspond to the corresponding steps
  • the implemented examples and application scenarios are the same, but are not limited to the content disclosed in the first embodiment above. It should be noted that, as a part of the apparatus, the above-mentioned modules may run in the computer terminal 10 provided in the first embodiment.
  • another apparatus for implementing the above method for reconstructing an image is also provided. It should be noted that the apparatus for reconstructing an image in this embodiment can be used to execute the method for reconstructing an image shown in FIG. 5 in the embodiment of the present invention.
  • FIG. 12 is a schematic diagram of another apparatus for reconstructing an image according to an embodiment of the present invention.
  • the apparatus 120 for reconstructing an image may include: a first sensing module 121, a second acquiring module 122, a third control module 123, and a third processing module 124.
  • the first sensing module 121 is used for sensing the movement operation of the operation object on the operation interface.
  • the second obtaining module 122 is configured to obtain the stop position where the operation object stays on the operation interface when the movement operation is stopped when it is sensed that the movement operation is stopped.
  • the third control module 123 is configured to control the virtual viewpoint located at the stop position to transition to a predetermined position, wherein the predetermined position is a camera position coincident with the position of the spatial degree of freedom of the virtual viewpoint.
  • the third processing module 124 is configured to process the image of the camera at the predetermined position by using the plane-based image deformation model to obtain the reconstructed image.
  • first sensing module 121 corresponds to steps S502 to S508 in Embodiment 1
  • second acquisition module 122 corresponds to steps S502 to S508 in Embodiment 1
  • the four modules correspond to the corresponding steps S502 to S508.
  • the examples and application scenarios implemented by the steps are the same, but are not limited to the content disclosed in the first embodiment above.
  • the above-mentioned modules may run in the computer terminal 10 provided in the first embodiment.
  • another apparatus for implementing the above method for reconstructing an image is also provided. It should be noted that the apparatus for reconstructing an image in this embodiment can be used to execute the method for reconstructing an image shown in FIG. 6 in the embodiment of the present invention.
  • FIG. 13 is a schematic diagram of another apparatus for reconstructing an image according to an embodiment of the present invention.
  • the apparatus 130 for reconstructing an image may include: a second sensing module 131 , a third acquiring module 132 , a fourth control module 133 , a second reading module 134 and a fourth processing module 135 .
  • the second sensing module 131 is used for sensing the movement operation of the operation object on the operation interface.
  • the third obtaining module 132 is configured to obtain the stop position where the operation object stays on the operation interface when the movement operation is stopped if it is sensed that the movement operation is stopped.
  • the fourth control module 133 is configured to control the virtual viewpoint located at the stop position to transition to a predetermined position, where the predetermined position is the position of the real viewpoint where the camera is deployed.
  • the second reading module 134 is used for reading the image of the camera located at the predetermined position.
  • the fourth processing module 135 is configured to process the image by using the plane-based image deformation model to obtain the reconstructed image.
  • the above-mentioned second sensing module 131 , third acquisition module 132 , fourth control module 133 , second reading module 134 and fourth processing module 135 correspond to steps S602 to S610 in Embodiment 1 , the examples and application scenarios implemented by the four modules and the corresponding steps are the same, but are not limited to the content disclosed in the first embodiment above. It should be noted that, as a part of the apparatus, the above-mentioned modules may run in the computer terminal 10 provided in the first embodiment.
  • the target position after the virtual viewpoint is displaced on the operation interface is obtained, and when the virtual viewpoint transitions from the target position to the predetermined position, an image deformation model can be used to process the virtual viewpoint at the predetermined position.
  • the image above can achieve the purpose of obtaining the reconstructed image. Because the calculation process of the image deformation model is simple, the calculation speed is block, and it adapts to the computing resources of the low-end computer, thus solving the technical problem of poor timeliness when reconstructing the image at the virtual viewpoint, The technical effect of improving the timeliness when reconstructing an image at a virtual viewpoint is achieved.
  • Embodiments of the present invention may provide a system for reconstructing an image, and the system for reconstructing an image may include a computer terminal, and the computer terminal may be any computer terminal device in a computer terminal group.
  • the above-mentioned computer terminal may also be replaced by a terminal device such as a mobile terminal.
  • the above-mentioned computer terminal may be located in at least one network device among multiple network devices of a computer network.
  • the above-mentioned computer terminal can execute the program code of the following steps in the method for reconstructing an image: detecting that an interactive operation occurs on the operation interface, obtaining the target position after the virtual viewpoint is displaced on the operation interface; controlling the virtual viewpoint from the target The position transitions to a predetermined position, where the predetermined position is the camera position coincident with the position of the spatial degree of freedom of the virtual viewpoint; the image deformation model is used to process the image of the virtual viewpoint at the predetermined position to obtain a reconstructed image.
  • FIG. 14 is a structural block diagram of a computer terminal according to an embodiment of the present invention.
  • the computer terminal A may include: one or more (only one is shown in the figure) processor 142 , memory 144 , and transmission device 146 .
  • the memory can be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for reconstructing an image in the embodiment of the present invention, and the processor executes various functions by running the software programs and modules stored in the memory.
  • Application and data processing that is, to realize the above-mentioned method of reconstructing an image.
  • the memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
  • the memory may further include memory located remotely from the processor, and these remote memories may be connected to the computer terminal A through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
  • the processor can call the information and application programs stored in the memory through the transmission device to perform the following steps: detecting that an interactive operation occurs on the operation interface, obtaining the target position after the virtual viewpoint is displaced on the operation interface; controlling the virtual viewpoint from the target position Transition to a predetermined position, where the predetermined position is the camera position coincident with the position of the spatial degree of freedom of the virtual viewpoint; use the image deformation model to process the image with the virtual viewpoint at the predetermined position to obtain a reconstructed image.
  • the above-mentioned processor may further execute the program code of the following steps: if it is detected that the interaction operation at the target position is interrupted, start and execute a transition operation of transitioning the virtual viewpoint from the target position to the predetermined position.
  • the above-mentioned processor can also execute the program code of the following steps: in the process of controlling the virtual viewpoint to transition from the target position to the predetermined position, use the DIBR virtual viewpoint interpolation algorithm to generate the interpolation of the transition image frame; Interpolate to reconstruct the image during transition.
  • the above-mentioned processor can also execute the program code of the following steps: after controlling the virtual viewpoint to transition from the target position to the predetermined position, call the Warping image warping algorithm to switch to use the image warping model for image reconstruction.
  • the above-mentioned processor can also execute the program code of the following steps: based on the predetermined position where the virtual viewpoint is located, read the corresponding image from the camera; Image warping model to process the read image.
  • the above-mentioned processor can also execute the program code of the following steps: before controlling the virtual viewpoint to transition from the target position to the predetermined position, obtain the distance between the target position where the virtual viewpoint is currently located and the predetermined position; if the distance exceeds a threshold, Then control the virtual viewpoint to move from the target position to the viewpoint position where the camera with the highest priority is located according to the preset camera priority; if the distance does not exceed the threshold, execute the step of transitioning the virtual viewpoint from the target position to the predetermined position.
  • the above-mentioned processor can also execute the program code of the following steps: after detecting that an interactive operation occurs on the operation interface, pop up prompt information for indicating at least one selection control; by triggering any selection control, select the reconstructed image. display resolution.
  • the processor may call the information and the application program stored in the memory through the transmission device to perform the following steps: detecting that an interactive operation of controlling the virtual viewpoint to move from the first position to the second position occurs on the operation interface control the virtual viewpoint to transition from a second position to a third position, where the third position is the position of the real viewpoint where the camera is deployed; read the image of the camera at the third position; process the image using a plane-based image warping model, Acquire reconstructed images.
  • the above-mentioned processor may further execute the program code of the following steps: selecting the position of the real viewpoint closest to the second position as the third position.
  • the processor may call the information and the application program stored in the memory through the transmission device to perform the following steps: sensing an interaction operation of the operation object on the operation interface; responding to the interaction operation, displaying the virtual viewpoint based on the interaction The displacement generated by the operation on the operation interface, wherein the displacement is the movement from the first position to the second position; the transition of the displayed virtual viewpoint from the second position to the third position, wherein the third position is the position of the real viewpoint where the camera is deployed ; displaying a reconstructed image generated by processing the target image using a plane-based image warping model, where the target image is an image captured by a camera located at a third position.
  • the processor may call the information and the application program stored in the memory through the transmission device to perform the following steps: sensing the movement operation of the operation object on the operation interface; if it senses that the movement operation is terminated, obtain the movement operation The stop position where the operation object stays on the operation interface when it is aborted; control the virtual viewpoint at the stop position to transition to a predetermined position, where the predetermined position is the camera position that coincides with the position of the spatial degrees of freedom of the virtual viewpoint; use a plane-based image deformation model to process The image of the camera at the predetermined position, and the reconstructed image is obtained.
  • the processor may call the information and the application program stored in the memory through the transmission device to perform the following steps: sensing the movement operation of the operation object on the operation interface; if it senses that the movement operation is terminated, obtain the movement operation The stop position where the operation object stays on the operation interface when it is suspended; control the virtual viewpoint at the stop position to transition to a predetermined position, wherein the predetermined position is the position of the real viewpoint where the camera is deployed; read the image of the camera at the predetermined position; The planar image warping model processes the image to obtain a reconstructed image.
  • the processor may call the information and application programs stored in the memory through the transmission device to perform the following steps: during the live broadcast process, detecting that a moving operation is received on the live broadcast screen; obtaining a virtual viewpoint on the live broadcast screen control the virtual viewpoint to move from the target position to a predetermined position, wherein the predetermined position is the camera position that coincides with the position of the spatial degrees of freedom of the virtual viewpoint; use the image deformation model to process the image of the virtual viewpoint at the predetermined position , to obtain the reconstructed image.
  • a method for reconstructing an image is provided.
  • the target position after the virtual viewpoint is displaced on the operation interface is obtained;
  • the virtual viewpoint is controlled to transition from the target position to a predetermined position, wherein the predetermined position is the position that coincides with the position of the spatial degrees of freedom of the virtual viewpoint Camera position;
  • use the image deformation model to process the image with the virtual viewpoint at the predetermined position, and obtain the reconstructed image. That is to say, the target position after the virtual viewpoint is displaced on the operation interface is obtained.
  • the image deformation model can be used to process the image of the virtual viewpoint at the predetermined position, so as to obtain the The purpose of reconstructing the image, because the calculation process of the image deformation model is simple, the calculation speed is block, and it adapts to the computing resources of the low-end computer, so as to solve the technical problem of poor timeliness when reconstructing the image in the virtual viewpoint, and achieve the improvement of the reconstruction in the virtual viewpoint. Time-sensitive technical effects of images.
  • FIG. 14 is only a schematic diagram, and the computer terminal A can also be a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, an applause computer, and a mobile Internet device (Mobile Internet Devices, MID), PAD and other terminal equipment.
  • FIG. 14 does not limit the structure of the above-mentioned computer terminal.
  • the computer terminal A may also include more or less components than those shown in FIG. 14 (eg, a network interface, a display device, etc.), or have a different configuration than that shown in FIG. 14 .
  • Embodiments of the present invention also provide a computer-readable storage medium.
  • the above-mentioned storage medium may be used to store the program code executed by the method for reconstructing an image provided in the above-mentioned first embodiment.
  • the computer-readable storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.
  • the computer-readable storage medium is configured to store program codes for performing the following steps: detecting that an interactive operation occurs on the operation interface, and acquiring the target position after the virtual viewpoint is displaced on the operation interface. ; Control the virtual viewpoint to transition from the target position to a predetermined position, wherein the predetermined position is the camera position coincident with the position of the spatial degrees of freedom of the virtual viewpoint; use the image deformation model to process the image of the virtual viewpoint at the predetermined position, and obtain the reconstructed image.
  • the computer-readable storage medium is further configured to store program code for performing the steps of: initiating performing a transition operation of transitioning the virtual viewpoint from the target position to the predetermined position if an interruption of the interactive operation at the target position is detected.
  • the computer-readable storage medium is further configured to store program code for performing the following steps: in the process of controlling the virtual viewpoint to transition from the target position to the predetermined position, use the DIBR virtual viewpoint interpolation algorithm to generate a transition image frame. Interpolation; based on the interpolation of the transition image frames, to reconstruct the image in the transition process.
  • the computer-readable storage medium is further configured to store program codes for executing the following steps: after controlling the virtual viewpoint to transition from the target position to the predetermined position, call the Warping image warping algorithm, and switch to use the image warping model to perform the transformation. Image reconstruction.
  • the computer-readable storage medium is further configured to store program codes for performing the following steps: reading a corresponding image from the camera based on the predetermined position where the virtual viewpoint is located; according to the spatial coordinate system where the virtual viewpoint is located The rotational degrees of freedom on the image warping model are used to process the read image.
  • the computer-readable storage medium is further configured to store program codes for executing the following steps: before controlling the virtual viewpoint to transition from the target position to the predetermined position, acquiring the distance between the target position where the virtual viewpoint is currently located and the predetermined position. Distance; if the distance exceeds the threshold, control the virtual viewpoint to move from the target position to the viewpoint position where the camera with the highest priority is located according to the preset camera priority; if the distance does not exceed the threshold, execute the virtual viewpoint transition from the target position to the predetermined location steps.
  • the computer-readable storage medium is further configured to store program codes for executing the following steps: after detecting that an interactive operation occurs on the operation interface, pop up prompt information for indicating at least one selection control; by triggering any one of the Select the control to choose the display resolution of the reconstructed image.
  • the computer-readable storage medium is configured to store program codes for performing the following steps: detecting that an interactive operation of controlling the virtual viewpoint to move from the first position to the second position occurs on the operation interface; controlling the virtual The viewpoint transitions from the second position to the third position, where the third position is the position of the real viewpoint where the camera is deployed; the image of the camera at the third position is read; the image is processed using a plane-based image warping model to obtain a reconstructed image .
  • the computer-readable storage medium is further configured to store program code for performing the steps of: selecting a real viewpoint position closest to the second position as the third position.
  • the computer-readable storage medium is configured to store program codes for executing the following steps: sensing an interactive operation of the operating object on the operating interface; responding to the interactive operation, displaying that the virtual viewpoint is operating based on the interactive operation.
  • the display uses A reconstructed image generated by processing a target image based on a plane-based image deformation model, wherein the target image is an image captured by a camera located at a third position.
  • the computer-readable storage medium is configured to store program codes for performing the following steps: sensing the movement operation of the operation object on the operation interface; if the suspension of the movement operation is sensed, obtaining the operation when the movement operation is stopped The stop position where the object stays on the operation interface; control the virtual viewpoint located at the stop position to transition to a predetermined position, where the predetermined position is the camera position that coincides with the position of the spatial degree of freedom of the virtual viewpoint; use the plane-based image deformation model to process the camera at the predetermined position. position of the image to obtain a reconstructed image.
  • the computer-readable storage medium is configured to store program codes for performing the following steps: sensing the movement operation of the operation object on the operation interface; if the suspension of the movement operation is sensed, obtaining the operation when the movement operation is stopped The stop position where the object stays on the operation interface; control the virtual viewpoint at the stop position to transition to a predetermined position, where the predetermined position is the position of the real viewpoint where the camera is deployed; read the image of the camera at the predetermined position; use the plane-based image The deformed model processes the image to obtain a reconstructed image.
  • the computer-readable storage medium is configured to store program codes for executing the following steps: during the live broadcast, it is detected that a movement operation is received on the live broadcast screen; the virtual viewpoint is obtained to shift on the live broadcast screen control the virtual viewpoint to move from the target position to a predetermined position, where the predetermined position is the camera position that coincides with the position of the spatial degrees of freedom of the virtual viewpoint; use the image deformation model to process the image with the virtual viewpoint at the predetermined position, and obtain the reconstruction image.
  • the disclosed technical content 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, and there may be other division methods in actual implementation, for example, multiple units or components may be combined or Integration into another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of units or modules, and may be in electrical or other forms.
  • the units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium.
  • the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or 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 for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.
  • the aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes .

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

Disclosed in the present invention are an image reconstruction method and apparatus, and a computer readable storage medium, and a processor. The method comprises: upon detecting that an interaction operation occurs on an operation interface, and obtaining a target position after displacement of a virtual viewpoint occurs on the operation interface; controlling transition of the virtual viewpoint from the target position to a predetermined position, wherein the predetermined position is a camera position that coincides with the position of the virtual viewpoint in spatial degree of freedom; and processing, by using an image deformation model, an image when the virtual viewpoint is located at the predetermined position, and obtaining a reconstructed image. The present invention solves the technical problem of poor timeliness in reconstructing an image at a virtual viewpoint.

Description

重建图像的方法、装置、计算机可读存储介质和处理器Method, apparatus, computer readable storage medium and processor for reconstructing an image
本申请要求2020年08月24日递交的申请号为202010857911.1、发明名称为“重建图像的方法、装置、计算机可读存储介质和处理器”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application No. 202010857911.1 filed on August 24, 2020 and the invention title is "Method, Apparatus, Computer-readable Storage Medium and Processor for Reconstructing Images", the entire contents of which are incorporated by reference in this application.
技术领域technical field
本发明涉及计算机领域,具体而言,涉及一种重建图像的方法、装置、计算机可读存储介质和处理器。The present invention relates to the field of computers, and in particular, to a method, an apparatus, a computer-readable storage medium and a processor for reconstructing an image.
背景技术Background technique
目前,用户使用手势交互来确定终端上观看视频图像的虚拟视点位置。在观看过程中,由于终端的计算资源少或视频质量差,使得用户在长时间停留在虚拟视点上进行观看时,导致视频的卡顿,从而在虚拟视点重建图像时的时效性差。At present, the user uses gesture interaction to determine the virtual viewpoint position for viewing video images on the terminal. During the viewing process, due to the low computing resources of the terminal or the poor video quality, when the user stays on the virtual viewpoint for a long time to watch, the video is stuck, and the timeliness when reconstructing the image from the virtual viewpoint is poor.
针对上述的在虚拟视点重建图像时的时效性差的技术问题,目前尚未提出有效的解决方案。For the above-mentioned technical problem of poor timeliness when reconstructing an image from a virtual viewpoint, no effective solution has been proposed yet.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供了一种重建图像的方法、装置、计算机可读存储介质和处理器,以至少解决在虚拟视点重建图像时的时效性差的技术问题。Embodiments of the present invention provide a method, an apparatus, a computer-readable storage medium, and a processor for reconstructing an image, so as to at least solve the technical problem of poor timeliness when reconstructing an image at a virtual viewpoint.
根据本发明实施例的一个方面,提供了一种重建图像的方法。该方法可以包括:检测到操作界面上发生交互操作,获取虚拟视点在操作界面上发生位移后的目标位置;控制虚拟视点从目标位置过渡到预定位置,其中,预定位置为与虚拟视点的空间自由度位置重合的相机位置;使用图像变形模型处理虚拟视点位于预定位置上的图像,获取重建图像。According to an aspect of the embodiments of the present invention, a method for reconstructing an image is provided. The method may include: detecting that an interactive operation occurs on the operation interface, and obtaining a target position after the virtual viewpoint is displaced on the operation interface; controlling the virtual viewpoint to transition from the target position to a predetermined position, wherein the predetermined position is a space free from the virtual viewpoint The position of the camera whose degree and position are coincident; use the image deformation model to process the image with the virtual viewpoint at the predetermined position, and obtain the reconstructed image.
根据本发明实施例的另一方面,还提供了另一种重建图像的方法。该方法可以包括:检测到操作界面上发生控制虚拟视点从第一位置移动到第二位置的交互操作;控制虚拟视点从第二位置过渡到第三位置,其中,第三位置为部署有相机的真实视点的位置;读取位于第三位置的相机的图像;使用基于平面的图像变形模型处理图像,获取重建图像。According to another aspect of the embodiments of the present invention, another method for reconstructing an image is also provided. The method may include: detecting that an interactive operation of controlling the virtual viewpoint to move from a first position to a second position occurs on the operation interface; and controlling the virtual viewpoint to transition from the second position to a third position, wherein the third position is a camera deployed with a camera. The location of the true viewpoint; read the image of the camera at the third position; process the image using a plane-based image warping model to obtain a reconstructed image.
根据本发明实施例的另一方面,还提供了另一种重建图像的方法。该方法可以包括:感应到操作对象在操作界面上的交互操作;响应交互操作,显示虚拟视点基于交互操作在操作界面上发生的位移,其中,位移为从第一位置移动到第二位置;显示虚拟视点从第二位置过渡到第三位置,其中,第三位置为部署有相机的真实视点的位置;显示使用基于平面的图像变形模型处理目标图像而生成的重建图像,其中,目标图像为位于第三位置的相机捕获的图像。According to another aspect of the embodiments of the present invention, another method for reconstructing an image is also provided. The method may include: sensing the interactive operation of the operating object on the operating interface; responding to the interactive operation, displaying the displacement of the virtual viewpoint on the operating interface based on the interactive operation, wherein the displacement is moving from a first position to a second position; displaying The virtual viewpoint transitions from a second location to a third location, where the third location is the location of the real viewpoint where the camera is deployed; displaying a reconstructed image generated by processing the target image using a plane-based image warping model, where the target image is located at Image captured by the camera in the third position.
根据本发明实施例的另一方面,还提供了另一种重建图像的方法。该方法可以包括:感应操作对象在操作界面上的移动操作;如果感应到移动操作中止,获取移动操作中止时操作对象在操作界面停留的停留位置;控制位于停留位置的虚拟视点过渡到预定位置, 其中,预定位置为与虚拟视点的空间自由度位置重合的相机位置;使用基于平面的图像变形模型处理相机在预定位置的图像,获取重建图像。According to another aspect of the embodiments of the present invention, another method for reconstructing an image is also provided. The method may include: sensing the movement operation of the operation object on the operation interface; if the suspension of the movement operation is sensed, obtaining the stop position of the operation object on the operation interface when the movement operation is stopped; controlling the virtual viewpoint located at the stop position to transition to a predetermined position, Wherein, the predetermined position is the position of the camera that coincides with the position of the spatial degrees of freedom of the virtual viewpoint; the image of the camera at the predetermined position is processed using a plane-based image deformation model to obtain a reconstructed image.
根据本发明实施例的另一方面,还提供了另一种重建图像的方法。该方法可以包括:感应操作对象在操作界面上的移动操作;如果感应到移动操作中止,获取移动操作中止时操作对象在操作界面停留的停留位置;控制位于停留位置的虚拟视点过渡到预定位置,其中,预定位置为部署有相机的真实视点的位置;读取位于预定位置的相机的图像;使用基于平面的图像变形模型处理图像,获取重建图像。According to another aspect of the embodiments of the present invention, another method for reconstructing an image is also provided. The method may include: sensing the movement operation of the operation object on the operation interface; if the suspension of the movement operation is sensed, obtaining the stop position of the operation object on the operation interface when the movement operation is stopped; controlling the virtual viewpoint located at the stop position to transition to a predetermined position, The predetermined position is the position of the real viewpoint where the camera is deployed; the image of the camera located at the predetermined position is read; the image is processed using a plane-based image deformation model to obtain a reconstructed image.
根据本发明实施例的另一方面,还提供了另一种重建图像的方法。该方法可以包括:在直播过程中,检测到直播画面上接收到移动操作;获取虚拟视点在直播画面上发生位移后的目标位置;控制虚拟视点从目标位置移动到预定位置,其中,预定位置为与虚拟视点的空间自由度位置重合的相机位置;使用图像变形模型处理虚拟视点位于预定位置上的图像,获取重建图像。According to another aspect of the embodiments of the present invention, another method for reconstructing an image is also provided. The method may include: during the live broadcast, detecting that a moving operation is received on the live screen; acquiring a target position after the virtual viewpoint is displaced on the live screen; controlling the virtual viewpoint to move from the target position to a predetermined position, wherein the predetermined position is The camera position coincides with the position of the spatial degrees of freedom of the virtual viewpoint; the image deformation model is used to process the image of the virtual viewpoint at the predetermined position, and the reconstructed image is obtained.
根据本发明实施例的另一方面,还提供了一种重建图像的装置。该装置可以包括:第一获取模块,用于检测到操作界面上发生交互操作,获取虚拟视点在操作界面上发生位移后的目标位置;第一控制模块,用于控制虚拟视点从目标位置过渡到预定位置,其中,预定位置为与虚拟视点的空间自由度位置重合的相机位置;第二处理模块,用于使用图像变形模型处理虚拟视点位于预定位置上的图像,获取重建图像。According to another aspect of the embodiments of the present invention, an apparatus for reconstructing an image is also provided. The device may include: a first acquisition module for detecting an interactive operation on the operation interface, and acquiring a target position after the virtual viewpoint is displaced on the operation interface; a first control module for controlling the virtual viewpoint to transition from the target position to the The predetermined position, wherein the predetermined position is the camera position coincident with the position of the spatial degree of freedom of the virtual viewpoint; the second processing module is used for using the image deformation model to process the image of the virtual viewpoint at the predetermined position to obtain the reconstructed image.
根据本发明实施例的另一方面,还提供了另一种重建图像的装置。该装置可以包括:检测模块,用于检测到操作界面上发生控制虚拟视点从第一位置移动到第二位置的交互操作;第二控制模块,用于控制虚拟视点从第二位置过渡到第三位置,其中,第三位置为部署有相机的真实视点的位置;第一读取模块,用于读取位于第三位置的相机的图像;第二处理模块,用于使用基于平面的图像变形模型处理图像,获取重建图像。According to another aspect of the embodiments of the present invention, another apparatus for reconstructing an image is also provided. The device may include: a detection module for detecting that an interactive operation of controlling the virtual viewpoint to move from the first position to the second position occurs on the operation interface; and a second control module for controlling the virtual viewpoint to transition from the second position to the third position position, where the third position is the position of the real viewpoint where the camera is deployed; the first reading module is used to read the image of the camera located at the third position; the second processing module is used to use the plane-based image warping model Process the image to obtain a reconstructed image.
根据本发明实施例的另一方面,还提供了另一种重建图像的装置。该装置可以包括:第一感应模块,用于感应操作对象在操作界面上的移动操作;第二获取模块,用于如果感应到移动操作中止,获取移动操作中止时操作对象在操作界面停留的停留位置;第三控制模块,用于控制位于停留位置的虚拟视点过渡到预定位置,其中,预定位置为与虚拟视点的空间自由度位置重合的相机位置;第三处理模块,用于使用基于平面的图像变形模型处理相机在预定位置的图像,获取重建图像。According to another aspect of the embodiments of the present invention, another apparatus for reconstructing an image is also provided. The device may include: a first sensing module for sensing the movement operation of the operation object on the operation interface; a second acquisition module for obtaining the stoppage of the operation object on the operation interface when the movement operation is stopped if it is sensed that the movement operation is stopped position; a third control module for controlling the virtual viewpoint at the stop position to transition to a predetermined position, wherein the predetermined position is a camera position coincident with the position of the spatial degree of freedom of the virtual viewpoint; a third processing module for using a plane-based The image warping model processes the image of the camera at the predetermined position and obtains the reconstructed image.
根据本发明实施例的另一方面,还提供了另一种重建图像的装置。该装置可以包括:第二感应模块,用于感应操作对象在操作界面上的移动操作;第三获取模块,用于如果感应到移动操作中止,获取移动操作中止时操作对象在操作界面停留的停留位置;第四控制模块,用于控制位于停留位置的虚拟视点过渡到预定位置,其中,预定位置为部署有相机的真实视点的位置;第二读取模块,用于读取位于预定位置的相机的图像;第四处理模块,用于使用基于平面的图像变形模型处理图像,获取重建图像。According to another aspect of the embodiments of the present invention, another apparatus for reconstructing an image is also provided. The device may include: a second sensing module for sensing the movement operation of the operation object on the operation interface; a third acquisition module for obtaining the stay of the operation object on the operation interface when the movement operation is stopped if it is sensed that the movement operation is stopped position; a fourth control module for controlling the virtual viewpoint at the stop position to transition to a predetermined position, wherein the predetermined position is the position of the real viewpoint where the camera is deployed; a second reading module for reading the camera at the predetermined position The fourth processing module is used to process the image by using the plane-based image deformation model to obtain the reconstructed image.
根据本发明实施例的另一方面,还提供了一种计算机可读存储介质。该计算机可读存储介质包括存储的程序,其中,在程序被处理器运行时控制计算机可读存储介质所在设备执行本发明实施例的重建图像的方法。According to another aspect of the embodiments of the present invention, a computer-readable storage medium is also provided. The computer-readable storage medium includes a stored program, wherein when the program is executed by the processor, the device where the computer-readable storage medium is located is controlled to execute the method for reconstructing an image according to the embodiment of the present invention.
根据本发明实施例的另一方面,还提供了一种处理器。该处理器用于运行程序,其中,程序运行时执行本发明实施例的重建图像的方法。According to another aspect of the embodiments of the present invention, a processor is also provided. The processor is used for running a program, wherein the method for reconstructing an image according to the embodiment of the present invention is executed when the program is running.
根据本发明实施例的另一方面,还提供了一种重建图像的系统。该系统可以包括:处理器;存储器,与处理器相连接,用于为处理器提供处理以下处理步骤的指令:检测到操作界面上发生交互操作,获取虚拟视点在操作界面上发生位移后的目标位置;控制虚拟视点从目标位置过渡到预定位置,其中,预定位置为与虚拟视点的空间自由度位置重合的相机位置;使用图像变形模型处理虚拟视点位于预定位置上的图像,获取重建图像。According to another aspect of the embodiments of the present invention, a system for reconstructing an image is also provided. The system may include: a processor; a memory, connected to the processor, for providing the processor with instructions for processing the following processing steps: detecting that an interactive operation occurs on the operation interface, and acquiring a target after the virtual viewpoint is displaced on the operation interface position; control the virtual viewpoint to transition from the target position to a predetermined position, wherein the predetermined position is the camera position that coincides with the position of the spatial degrees of freedom of the virtual viewpoint; use the image deformation model to process the image of the virtual viewpoint at the predetermined position to obtain the reconstructed image.
在本发明实施例中,采用检测到操作界面上发生交互操作,获取虚拟视点在操作界面上发生位移后的目标位置;控制虚拟视点从目标位置过渡到预定位置,其中,预定位置为与虚拟视点的空间自由度位置重合的相机位置;使用图像变形模型处理虚拟视点位于预定位置上的图像,获取重建图像。也就是说,本申请获取虚拟视点在操作界面上发生位移后的目标位置,在虚拟视点从目标位置过渡到预定位置的情况下,可以使用图像变形模型处理虚拟视点位于预定位置上的图像,达到了获取重建图像的目的,由于图像变形模型的计算过程简单,计算速度块,且适应低端机的计算资源,从而解决了在虚拟视点重建图像时的时效性差的技术问题,达到了提高在虚拟视点重建图像时的时效性的技术效果。In the embodiment of the present invention, an interactive operation is detected on the operation interface to obtain the target position after the virtual viewpoint is displaced on the operation interface; the virtual viewpoint is controlled to transition from the target position to a predetermined position, wherein the predetermined position is the same as the virtual viewpoint. The position of the camera with the spatial degrees of freedom coincides with the position of the camera; the image deformation model is used to process the image with the virtual viewpoint at the predetermined position, and the reconstructed image is obtained. That is to say, the present application obtains the target position after the virtual viewpoint is displaced on the operation interface, and when the virtual viewpoint transitions from the target position to the predetermined position, the image deformation model can be used to process the image of the virtual viewpoint at the predetermined position, so as to achieve In order to obtain the reconstructed image, because the calculation process of the image deformation model is simple, the calculation speed is block, and it adapts to the computing resources of the low-end computer, it solves the technical problem of poor timeliness when reconstructing the image at the virtual viewpoint, and achieves the improvement of the virtual image. The technical effect of the timeliness when reconstructing images from viewpoints.
附图说明Description of drawings
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the attached image:
图1A是根据本发明实施例的一种用于实现重建图像的方法的计算机终端(或移动设备)的硬件结构框图;1A is a block diagram of a hardware structure of a computer terminal (or mobile device) for implementing a method for reconstructing an image according to an embodiment of the present invention;
图1B是根据本发明实施例的一种具体应用场景中的重建图像的结构示意图;1B is a schematic structural diagram of a reconstructed image in a specific application scenario according to an embodiment of the present invention;
图2是根据本发明实施例的一种重建图像的方法的流程图;2 is a flowchart of a method for reconstructing an image according to an embodiment of the present invention;
图3是根据本发明实施例的另一种重建图像的方法的流程图;3 is a flowchart of another method for reconstructing an image according to an embodiment of the present invention;
图4是根据本发明实施例的另一种重建图像的方法的流程图;4 is a flowchart of another method for reconstructing an image according to an embodiment of the present invention;
图5是根据本发明实施例的另一种重建图像的方法的流程图;5 is a flowchart of another method for reconstructing an image according to an embodiment of the present invention;
图6是根据本发明实施例的另一种重建图像的方法的流程图;6 is a flowchart of another method for reconstructing an image according to an embodiment of the present invention;
图7是根据相关技术中的一种DIBR虚拟视点差值的示意图;7 is a schematic diagram of a DIBR virtual viewpoint difference according to the related art;
图8是根据本发明实施例的一种基于Warping和DIBR的虚拟视点插值的示意图;8 is a schematic diagram of virtual viewpoint interpolation based on Warping and DIBR according to an embodiment of the present invention;
图9是根据本发明实施例的一种基于Warping和DIBR的虚拟视点插值的方法的流 程图;9 is a flowchart of a method for virtual viewpoint interpolation based on Warping and DIBR according to an embodiment of the present invention;
图10是根据本发明实施例的一种重建图像的装置的示意图;10 is a schematic diagram of an apparatus for reconstructing an image according to an embodiment of the present invention;
图11是根据本发明实施例的另一种重建图像的装置的示意图;11 is a schematic diagram of another apparatus for reconstructing an image according to an embodiment of the present invention;
图12是根据本发明实施例的另一种重建图像的装置的示意图;12 is a schematic diagram of another apparatus for reconstructing an image according to an embodiment of the present invention;
图13是根据本发明实施例的另一种重建图像的装置的示意图;以及FIG. 13 is a schematic diagram of another apparatus for reconstructing an image according to an embodiment of the present invention; and
图14是根据本发明实施例的一种计算机终端的结构框图。FIG. 14 is a structural block diagram of a computer terminal according to an embodiment of the present invention.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to make those skilled in the art better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only Embodiments are part of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used may be interchanged under appropriate circumstances such that the embodiments of the invention described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having" and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.
首先,在对本申请实施例进行描述的过程中出现的部分名词或术语适用于如下解释:First of all, some nouns or terms that appear in the process of describing the embodiments of the present application are suitable for the following explanations:
基于深度图的虚拟视点重建(Depth Image Based Rendering,简称为DIBR),先利用深度信息将参考图像投影到三维欧式空间,再将三维空间点投影到虚拟摄像机的成像平面上;Depth Image Based Rendering (DIBR for short), first uses the depth information to project the reference image to the 3D Euclidean space, and then projects the 3D space points to the imaging plane of the virtual camera;
形变操作(Warping),为根据空间的三维信息对二维图像进行形变的操作;Warping is an operation to deform a two-dimensional image according to the three-dimensional information of the space;
图像变形模型,为用于对二维图像采用图像变形技术进行处理的模型,其中,图像形变技术包括上述形变操作;An image deformation model, which is a model for processing a two-dimensional image by using an image deformation technology, wherein the image deformation technology includes the above deformation operation;
自由视点视频,为了提供高自由度观看体验,用户可以在观看中通过交互手段,来调整观看的视角,从其想要观看的自由视点角度进行观看;For free viewpoint videos, in order to provide a high degree of freedom viewing experience, users can adjust the viewing angle through interactive means during viewing, and watch from the free viewpoint they want to watch;
6DoF参数,指6个方向自由度,具体是指,沿三个方向的平动以及绕三个轴的转动参数。The 6DoF parameter refers to six degrees of freedom in directions, specifically, translation along three directions and rotation parameters around three axes.
实施例1Example 1
根据本发明实施例,还提供了一种重建图像的方法的实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所 示出或描述的步骤。According to an embodiment of the present invention, an embodiment of a method for reconstructing an image is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and , although a logical order is shown in the flowcharts, in some cases steps shown or described may be performed in an order different from that herein.
本申请实施例一所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。图1A是根据本发明实施例的一种用于实现重建图像的方法的计算机终端(或移动设备)的硬件结构框图。如图1A所示,计算机终端10(或移动设备10)可以包括一个或多个(图中采用102a、102b,……,102n来示出)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)、用于存储数据的存储器104、以及用于通信功能的传输装置106。除此以外,还可以包括:显示器、输入/输出接口(I/O接口)、通用串行总线(USB)端口(可以作为I/O接口的端口中的一个端口被包括)、网络接口、电源和/或相机。本领域普通技术人员可以理解,图1A所示的结构仅为示意,其并不对上述电子装置的结构造成限定。例如,计算机终端10还可包括比图1A中所示更多或者更少的组件,或者具有与图1A所示不同的配置。The method embodiment provided in Embodiment 1 of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. 1A is a block diagram of a hardware structure of a computer terminal (or mobile device) for implementing a method for reconstructing an image according to an embodiment of the present invention. As shown in FIG. 1A , the computer terminal 10 (or mobile device 10 ) may include one or more processors 102 (represented by 102a, 102b, . processing means such as a processor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission means 106 for communication functions. In addition, may also include: display, input/output interface (I/O interface), universal serial bus (USB) port (may be included as one of the ports of the I/O interface), network interface, power supply and/or camera. Those of ordinary skill in the art can understand that the structure shown in FIG. 1A is only a schematic diagram, which does not limit the structure of the above electronic device. For example, the computer terminal 10 may also include more or fewer components than shown in FIG. 1A , or have a different configuration than that shown in FIG. 1A .
应当注意到的是上述一个或多个处理器102和/或其他数据处理电路在本文中通常可以被称为“数据处理电路”。该数据处理电路可以全部或部分的体现为软件、硬件、固件或其他任意组合。此外,数据处理电路可为单个独立的处理模块,或全部或部分的结合到计算机终端10(或移动设备)中的其他元件中的任意一个内。如本申请实施例中所涉及到的,该数据处理电路作为一种处理器控制(例如与接口连接的可变电阻终端路径的选择)。It should be noted that the one or more processors 102 and/or other data processing circuits described above may generally be referred to herein as "data processing circuits." The data processing circuit may be embodied in whole or in part as software, hardware, firmware or any other combination. Furthermore, the data processing circuitry may be a single stand-alone processing module, or incorporated in whole or in part into any of the other elements in the computer terminal 10 (or mobile device). As referred to in the embodiments of the present application, the data processing circuit acts as a kind of processor control (eg, selection of a variable resistance termination path connected to an interface).
存储器104可用于存储应用软件的软件程序以及模块,如本发明实施例中的重建图像的方法对应的程序指令/数据存储装置,处理器102通过运行存储在存储器104内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的应用程序的重建图像的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至计算机终端10。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 can be used to store software programs and modules of application software, such as a program instruction/data storage device corresponding to the method for reconstructing an image in the embodiment of the present invention. The processor 102 runs the software programs and modules stored in the memory 104, thereby Execute various functional applications and data processing, that is, realize the method of reconstructing images of the above-mentioned application programs. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, memory 104 may further include memory located remotely from processor 102, which may be connected to computer terminal 10 through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
传输装置106用于经由一个网络接收或者发送数据。上述的网络具体实例可包括计算机终端10的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,RF)模块,其用于通过无线方式与互联网进行通讯。Transmission means 106 are used to receive or transmit data via a network. A specific example of the above-mentioned network may include a wireless network provided by a communication provider of the computer terminal 10 . In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (Radio Frequency, RF) module, which is used for wirelessly communicating with the Internet.
显示器可以例如触摸屏式的液晶显示器(LCD),该液晶显示器可使得用户能够与计算机终端10(或移动设备)的用户界面进行交互。The display may be, for example, a touch screen type liquid crystal display (LCD) that enables a user to interact with the user interface of the computer terminal 10 (or mobile device).
此处需要说明的是,在一些可选实施例中,上述图1A所示的计算机设备(或移动设备)可以包括硬件元件(包括电路)、软件元件(包括存储在计算机可读介质上的计 算机代码)、或硬件元件和软件元件两者的结合。应当指出的是,图1A仅为特定具体实例的一个实例,并且旨在示出可存在于上述计算机设备(或移动设备)中的部件的类型。It should be noted here that, in some optional embodiments, the computer device (or mobile device) shown in FIG. 1A may include hardware elements (including circuits), software elements (including a computer stored on a computer-readable medium) code), or a combination of both hardware and software elements. It should be noted that FIG. 1A is only one example of a specific embodiment, and is intended to illustrate the types of components that may be present in a computer device (or mobile device) as described above.
图1B是根据本发明实施例的一种具体应用场景中的重建图像的结构示意图,其中示出了一种重建图像的系统20的布置场景,重建图像的系统20可以包括由多个采集设备组成的采集阵列21、数据处理设备22、云端的服务器集群23(可以包括:服务器231、服务器232、服务器233、服务器234)、播放控制设备24,播放终端25和交互终端26。该重建图像的系统20,可以获取虚拟视点在操作界面上发生位移后的目标位置,在虚拟视点从目标位置过渡到预定位置的情况下,可以使用图像变形模型处理虚拟视点位于预定位置上的图像,从而达到获取重建图像的目的。1B is a schematic structural diagram of a reconstructed image in a specific application scenario according to an embodiment of the present invention, which shows an arrangement scene of a system 20 for reconstructing an image. The system 20 for reconstructing an image may include a plurality of acquisition devices. The acquisition array 21 , the data processing device 22 , the server cluster 23 in the cloud (may include: server 231 , server 232 , server 233 , server 234 ), playback control device 24 , playback terminal 25 and interactive terminal 26 . The system 20 for reconstructing an image can acquire the target position after the virtual viewpoint is displaced on the operation interface, and when the virtual viewpoint transitions from the target position to the predetermined position, the image deformation model can be used to process the image in which the virtual viewpoint is located at the predetermined position , so as to achieve the purpose of obtaining reconstructed images.
具体而言,参照图1B,所述采集阵列21可以包括多个相机,可以根据预设的多角度自由视角范围,成扇形置于现场采集区域的不同位置。Specifically, referring to FIG. 1B , the acquisition array 21 may include a plurality of cameras, which may be fan-shaped and placed at different positions in the field acquisition area according to a preset multi-angle free viewing angle range.
所述数据处理设备22可以通过无线局域网向所述采集阵列21中各相机分别发送指令,所述采集阵列21中各采集设备基于所述数据处理设备22发送的指令,将获得的相机的位置传输至所述数据处理设备22。The data processing device 22 can respectively send instructions to each camera in the acquisition array 21 through a wireless local area network, and each acquisition device in the acquisition array 21 transmits the obtained position of the camera based on the instructions sent by the data processing device 22 . to the data processing device 22 .
该实施例的交互终端26基于交互操作,确定虚拟视点在操作界面上发生位移后的目标位置,当所述数据处理设备22检测到交互终端26的操作界面上发生交互操作时,可以获取交互终端26发送的虚拟视点在操作界面上发生位移后的目标位置,控制虚拟视点从目标位置过渡到预定位置,该预定位置可以为与虚拟视点的空间自由度位置重合的相机位置,然后使用图像变形模型处理虚拟视点位于预定位置上的图像,获取重建图像,并可以将获得的所述重建图像上传至云端的服务器集群23,服务器集群23可以将重建图像发送至交互终端26上进行显示。The interactive terminal 26 in this embodiment determines the target position after the virtual viewpoint is displaced on the operation interface based on the interactive operation. When the data processing device 22 detects that an interactive operation occurs on the operation interface of the interactive terminal 26, the interactive terminal can be obtained. 26. The target position after the virtual viewpoint sent on the operation interface is displaced, and the virtual viewpoint is controlled to transition from the target position to a predetermined position. The image with the virtual viewpoint at the predetermined position is processed, the reconstructed image is obtained, and the obtained reconstructed image can be uploaded to the server cluster 23 in the cloud, and the server cluster 23 can send the reconstructed image to the interactive terminal 26 for display.
作为另一种可选的实施方式,当所述数据处理设备22检测到交互终端26的操作界面上发生交互操作,获取交互终端26发送的虚拟视点在操作界面上发生位移后的目标位置,将目标位置上传至云端的服务器集群23,通过服务器集群23控制虚拟视点从目标位置过渡到预定位置,然后使用图像变形模型处理虚拟视点位于预定位置上的图像,获取重建图像,并可以将获得的所述重建图像发送至交互终端26上进行显示。As another optional implementation, when the data processing device 22 detects that an interactive operation occurs on the operation interface of the interactive terminal 26, obtains the target position of the virtual viewpoint sent by the interactive terminal 26 after the displacement on the operation interface, and uses The target position is uploaded to the server cluster 23 in the cloud, and the virtual viewpoint is controlled to transition from the target position to the predetermined position through the server cluster 23, and then the image with the virtual viewpoint located at the predetermined position is processed by the image deformation model, and the reconstructed image is obtained, and the obtained data can be obtained. The reconstructed image is sent to the interactive terminal 26 for display.
然后,播放控制设备24可以接收到服务器集群23发送的重建图像,播放终端25接收来自所述播放控制设备24的重建图像并进行实时播放。其中,播放控制设备24可以为人工播放控制设备,也可以为虚拟播放控制设备。在具体实施中,导播控制设备如导播台可以作为本发明实施例中的一种播放控制设备。Then, the playback control device 24 may receive the reconstructed image sent by the server cluster 23, and the playback terminal 25 receives the reconstructed image from the playback control device 24 and plays the reconstructed image in real time. The playback control device 24 may be a manual playback control device or a virtual playback control device. In a specific implementation, a broadcast director control device, such as a broadcast director station, may be used as a playback control device in the embodiment of the present invention.
在该实施例中,重建图像可以为在视频中重建图像,通常而言,视频中的实体不会是完全静止的,例如采用上述重建图像的系统,重建图像也会随着时间变化而不断地变动。In this embodiment, the reconstructed image may be a reconstructed image in a video. Generally speaking, the entities in the video will not be completely static. For example, using the above-mentioned reconstructed image system, the reconstructed image will also change continuously over time. change.
该实施例采用上述重建图像的系统,一方面,用户通过播放终端25可以直接观看重建图像;另一方面,用户通过交互终端26观看图像的过程中,通过交互操作,可以获取虚拟视点在操作界面上发生位移后的目标位置,以控制虚拟视点从目标位置过渡到预定位置,使用图像变形模型处理虚拟视点位于预定位置上的图像,获取重建图像。可以理解的是,以上重建图像的系统20中也可以仅包含播放终端25或仅包含交互终端26,或者通过同一终端设备作为所述播放终端25和交互终端26。This embodiment adopts the above-mentioned system for reconstructing an image. On the one hand, the user can directly view the reconstructed image through the playback terminal 25; To control the transition of the virtual viewpoint from the target position to the predetermined position, use the image deformation model to process the image with the virtual viewpoint located at the predetermined position, and obtain the reconstructed image. It can be understood that, the above system 20 for reconstructing an image may also include only the playback terminal 25 or only the interaction terminal 26, or use the same terminal device as the playback terminal 25 and the interaction terminal 26.
本领域技术人员可以理解的是,用户使用手势交互来确定终端上观看视频图像的虚拟视点位置。在观看过程中,由于终端的计算资源少或视频质量差,使得用户在长时间停留在虚拟视点上进行观看时,导致视频的卡顿,从而在虚拟视点重建图像时的时效性差。因此如何在使用虚拟视点重建图像时,保证其时效性成为一个难以解决的问题。It can be understood by those skilled in the art that the user uses gesture interaction to determine the virtual viewpoint position for viewing the video image on the terminal. During the viewing process, due to the low computing resources of the terminal or the poor video quality, when the user stays on the virtual viewpoint for a long time to watch, the video is stuck, and the timeliness when reconstructing the image from the virtual viewpoint is poor. Therefore, how to ensure the timeliness when reconstructing images using virtual viewpoints has become a difficult problem to solve.
有鉴于此,本说明书实施例提供一种方案,在图1A或图1B所示的运行环境下,本申请提供了如图2所示的重建图像的方法。需要说明的是,该实施例的重建图像的方法可以由图1A所示实施例的移动终端或图1B所示的重建图像的系统来执行。In view of this, an embodiment of the present specification provides a solution. Under the operating environment shown in FIG. 1A or FIG. 1B , the present application provides a method for reconstructing an image as shown in FIG. 2 . It should be noted that, the method for reconstructing an image in this embodiment may be performed by the mobile terminal of the embodiment shown in FIG. 1A or the system for reconstructing an image shown in FIG. 1B .
图2是根据本发明实施例的一种重建图像的方法的流程图。如图2所示,该方法可以包括以下步骤:FIG. 2 is a flowchart of a method for reconstructing an image according to an embodiment of the present invention. As shown in Figure 2, the method may include the following steps:
步骤S202,检测到操作界面上发生交互操作,获取虚拟视点在操作界面上发生位移后的目标位置。In step S202, an interactive operation is detected on the operation interface, and a target position after the virtual viewpoint is displaced on the operation interface is acquired.
在本发明上述步骤S202提供的技术方案中,交互操作可以是终端用户所进行的针对虚拟视点的交互,也可以称为用户自由视点交互(DIBR),其中,在操作界面上发生交互操作的过程中,虚拟视点在操作界面上会发生位移,因而,上述交互操作可以是针对虚拟视点的移动操作,比如,从操作界面上的A点开始的移动操作。In the technical solution provided by the above step S202 of the present invention, the interactive operation may be the interaction performed by the terminal user for the virtual viewpoint, and may also be called user free viewpoint interaction (DIBR), wherein the interactive operation occurs on the operation interface. , the virtual viewpoint will be displaced on the operation interface, therefore, the above-mentioned interactive operation may be a movement operation for the virtual viewpoint, for example, a movement operation starting from point A on the operation interface.
该实施例可以检测操作界面上发生交互操作,然后获取虚拟视点在操作界面上发生位移后所停留的目标位置,比如,目标位置为操作界面上的B点,交互操作在B点停住,可以是用户的手指在达到B点刹那间抬起的操作,则虚拟视点在操作界面上发生的位移为A点与B点之间的位移。In this embodiment, an interactive operation can be detected on the operation interface, and then the target position where the virtual viewpoint stays after the displacement on the operation interface can be obtained. For example, the target position is point B on the operation interface, and the interactive operation stops at point B. It is the operation that the user's finger lifts up the moment it reaches point B, then the displacement of the virtual viewpoint on the operation interface is the displacement between point A and point B.
步骤S204,控制虚拟视点从目标位置过渡到预定位置,其中,预定位置为与虚拟视点的空间自由度位置重合的相机位置。Step S204 , controlling the virtual viewpoint to transition from the target position to a predetermined position, where the predetermined position is a camera position coincident with the position of the spatial degree of freedom of the virtual viewpoint.
在本发明上述步骤S204提供的技术方案中,在获取虚拟视点在操作界面上发生位移后的目标位置之后,该目标位置不一定对应真实相机位置,从而在该目标位置是无法直接进行图像重建的。该实施例可以控制虚拟视点从目标位置过渡到预定位置,可以是将虚拟视点沿着交互惯性按照一定路径从所停留的目标位置进行过渡,直至过渡到的位置与虚拟视点的空间自由度位置重合,该与虚拟视点的空间自由度位置重合的位置为预定位置。需要说明的是,该实施例的上述预定位置,可以为部署有相机的位置,其中,相机可以为真实相机,也即,该实施例的预定位置可以为真实相机位置,也可以称为真实 视点位置。可选地,该实施例的上述预定位置为距离上述目标位置最近的真实视点位置。In the technical solution provided by the above step S204 of the present invention, after obtaining the target position of the virtual viewpoint displaced on the operation interface, the target position does not necessarily correspond to the real camera position, so that image reconstruction cannot be performed directly at the target position . In this embodiment, the virtual viewpoint can be controlled to transition from the target position to the predetermined position, and the virtual viewpoint can be transitioned from the stayed target position along the interactive inertia according to a certain path until the transitioned position coincides with the position of the spatial degrees of freedom of the virtual viewpoint. , the position coincident with the position of the spatial degree of freedom of the virtual viewpoint is the predetermined position. It should be noted that the above-mentioned predetermined position in this embodiment may be a position where a camera is deployed, wherein the camera may be a real camera, that is, the predetermined position in this embodiment may be a real camera position, which may also be called a real viewpoint Location. Optionally, the predetermined position in this embodiment is a real viewpoint position closest to the target position.
在该实施例中,由于在获取虚拟视点在操作界面上发生位移后的目标位置之后,虚拟视点不再受交互操作的控制了,因而该实施例控制虚拟视点从目标位置过渡到预定位置,所涉及的交互惯性可以理解为对虚拟视点进行过渡的一种规则,也可以称为惯性过渡,符合用户的交互习惯和体验,比如,控制虚拟视点从目标位置按照一定速度滑到预定位置再停下,该预定位置可以为在操作界面上控制目标位置过渡到的优选位置,或者符合用户的交互习惯和体验的位置。In this embodiment, after acquiring the target position of the virtual viewpoint after the displacement on the operation interface, the virtual viewpoint is no longer controlled by the interactive operation, so this embodiment controls the virtual viewpoint to transition from the target position to the predetermined position, so The interactive inertia involved can be understood as a rule for transitioning the virtual viewpoint, which can also be called inertial transition, which conforms to the user's interaction habits and experience. For example, the virtual viewpoint is controlled to slide from the target position to a predetermined position at a certain speed and then stop. , the predetermined position may be a preferred position to which the control target position transitions on the operation interface, or a position that conforms to the user's interaction habits and experience.
结合图7和图8所示的一种可选实施例中,对上述实施例进行一定的说明,黑色实心的点(例如A1和A2)可以表示虚拟视点,白色空心位置的点(例如B1、B2、B3等)可以表示真实相机所在的真实视点的位置。在操作界面上发生移动操作后,使得虚拟视点从A1点移动到A2点之后,处于A2位置的虚拟视点会基于预定控制模式选择一个真实相机所在的真实视点,并移动到这个真实视点,此时的控制模式可以包括如下任意一种:选择距离该虚拟视点A2的真实视点;选择计算资源空闲的且与该虚拟视点最近的一个真实视点;在发生选中的真实视点所在的相机损坏、等待处理时长超过预定时长中任意一种或多种情况发生的情况下,选择预设的权重值最高的真实视点。In an optional embodiment shown in FIG. 7 and FIG. 8, the above-mentioned embodiment will be described to a certain extent. The black solid points (such as A1 and A2) can represent virtual viewpoints, and the white hollow positions (such as B1, A2, etc.) B2, B3, etc.) can represent the position of the real viewpoint where the real camera is located. After the movement operation occurs on the operation interface, after the virtual viewpoint is moved from A1 to A2, the virtual viewpoint at the A2 position will select a real viewpoint where the real camera is located based on the predetermined control mode, and move to this real viewpoint. At this time, The control mode can include any one of the following: select the real viewpoint from the virtual viewpoint A2; select a real viewpoint with free computing resources and the closest to the virtual viewpoint; when the camera where the selected real viewpoint is located is damaged, waiting for processing time When any one or more of the situations in the predetermined duration exceed, select the real viewpoint with the highest preset weight value.
可选地,该实施例的上述一定路径可以为预先规定好的平滑路径。上述空间自由度位置可以为空间三自由度位置(x,y,z)。Optionally, the above-mentioned certain path in this embodiment may be a predetermined smooth path. The above-mentioned spatial degrees of freedom positions may be three spatial degrees of freedom positions (x, y, z).
步骤S206,使用图像变形模型处理虚拟视点位于预定位置上的图像,获取重建图像。Step S206 , using the image deformation model to process the image with the virtual viewpoint located at the predetermined position to obtain the reconstructed image.
在本发明上述步骤S206提供的技术方案中,图像变形模型也可以称为Warping模型,其可以用于对二维图像采用图像变形技术进行处理,也即,根据空间的三维信息对二维图像进行形变操作。在该实施例中,在虚拟视点过渡到预定位置上之后,则具有虚拟视点位于预定位置上的图像,该实施例可以在图像重建场景中,使用上述图像变形模型处理虚拟视点位于上述预定位置上的图像,进而得到重建图像。In the technical solution provided in the above step S206 of the present invention, the image warping model may also be called a Warping model, which can be used to process the two-dimensional image by using the image warping technology, that is, the two-dimensional image is processed according to the three-dimensional information of the space. Deformation operations. In this embodiment, after the virtual viewpoint transitions to the predetermined position, there is an image with the virtual viewpoint at the predetermined position. In this embodiment, in the image reconstruction scene, the above-mentioned image deformation model can be used to process the virtual viewpoint at the above-mentioned predetermined position. image to obtain a reconstructed image.
在该实施例中,上述图像变形模型的计算过程简单,因而该实施例比采用基于深度图的虚拟视点重建(DIBR)的插值方法要快速,适应了低端机的计算资源,确保了虚拟视点重建图像时的时效性(实时性),以及复杂的图像重建场景下的图像质量。In this embodiment, the calculation process of the above-mentioned image deformation model is simple, so this embodiment is faster than the interpolation method using depth map-based virtual viewpoint reconstruction (DIBR), adapts to the computing resources of low-end computers, and ensures the virtual viewpoint Timeliness (real-time) when reconstructing images, and image quality in complex image reconstruction scenarios.
通过本申请上述步骤S204至步骤S206,检测到操作界面上发生交互操作,获取虚拟视点在操作界面上发生位移后的目标位置;控制虚拟视点从目标位置过渡到预定位置,其中,预定位置为与虚拟视点的空间自由度位置重合的相机位置;使用图像变形模型处理虚拟视点位于预定位置上的图像,获取重建图像。也就是说,该实施例获取虚拟视点在操作界面上发生位移后的目标位置,在虚拟视点从目标位置过渡到预定位置的情况下,可以使用图像变形模型处理虚拟视点位于预定位置上的图像,达到了获取重建图像的目的,由于图像变形模型的计算过程简单,计算速度块,且适应低端机的计算资源,从而解决了在虚拟视点重建图像时的时效性差的技术问题,达到了提高在虚拟视点重建图像 时的时效性的技术效果。Through the above-mentioned steps S204 to S206 of the present application, an interactive operation on the operation interface is detected, and the target position after the virtual viewpoint is displaced on the operation interface is obtained; the virtual viewpoint is controlled to transition from the target position to a predetermined position, wherein the predetermined position is the same as the target position. The position of the camera where the spatial degrees of freedom of the virtual viewpoint coincide; the image deformation model is used to process the image with the virtual viewpoint at a predetermined position, and the reconstructed image is obtained. That is to say, in this embodiment, the target position after the virtual viewpoint is displaced on the operation interface is obtained. When the virtual viewpoint transitions from the target position to the predetermined position, the image deformation model can be used to process the image in which the virtual viewpoint is located at the predetermined position. The purpose of obtaining the reconstructed image is achieved. Because the calculation process of the image deformation model is simple, the calculation speed is block, and it adapts to the computing resources of the low-end computer, it solves the technical problem of poor timeliness when reconstructing the image at the virtual viewpoint, and achieves the improvement of The technical effect of time-sensitiveness when reconstructing images from virtual viewpoints.
下面对该实施例的上述方法进行进一步介绍。The above method of this embodiment will be further described below.
作为一种可选的实施方式,如果检测到目标位置处的交互操作中断,则启动执行虚拟视点从目标位置过渡到预定位置的过渡操作。As an optional implementation manner, if it is detected that the interaction operation at the target position is interrupted, a transition operation of transitioning the virtual viewpoint from the target position to the predetermined position is started.
在该实施例中,在操作界面上发生的交互操作可以是连续的操作过程。在虚拟视点在操作界面上发生位移的过程中,检测操作界面上发生了交互操作,如果检测到虚拟视点在移动至目标位置处时,交互操作出现了中断,比如,交互操作停留在了目标位置处,此时开始启动执行虚拟视点从目标位置过渡到预定位置的过渡操作,也即,一旦检测到目标位置处的交互操作中断,则触发执行上述过渡操作。In this embodiment, the interactive operation occurring on the operation interface may be a continuous operation process. During the displacement of the virtual viewpoint on the operation interface, it is detected that an interactive operation occurs on the operation interface. If it is detected that the virtual viewpoint moves to the target position, the interactive operation is interrupted, for example, the interactive operation stays at the target position. At this point, the transition operation of executing the transition of the virtual viewpoint from the target position to the predetermined position is started, that is, once the interruption of the interactive operation at the target position is detected, the execution of the above transition operation is triggered.
作为一种可选的实施方式,在步骤S204,控制虚拟视点从目标位置过渡到预定位置的过程中,该方法还包括:使用DIBR虚拟视点插值算法,生成过渡图像帧的插值;基于过渡图像帧的插值,来重建过渡过程中的图像。As an optional implementation manner, in step S204, in the process of controlling the virtual viewpoint to transition from the target position to the predetermined position, the method further includes: using the DIBR virtual viewpoint interpolation algorithm to generate interpolation of the transition image frame; based on the transition image frame interpolation to reconstruct the image during the transition.
在该实施例中,在控制虚拟视点从目标位置过渡到预定位置的中间过程中,可以使用DIBR虚拟视点插值算法生成过渡图像帧的插值,直至虚拟视点从目标位置过渡到预定位置,比如,直至虚拟视点的空间三自由度位置(x,y,z)与真实相机位置重合。其中,在虚拟视点的空间三自由度位置(x,y,z)与真实相机位置重合之后,则插值的规划6DoF位置与真实相机位置之间的差别仅仅在于剩余的三个旋转自由度(分别为绕x,y,z三个轴旋转的自由度)。In this embodiment, in the middle process of controlling the virtual viewpoint to transition from the target position to the predetermined position, the DIBR virtual viewpoint interpolation algorithm may be used to generate the interpolation of the transition image frame until the virtual viewpoint transitions from the target position to the predetermined position, for example, until The spatial three-DOF position (x, y, z) of the virtual viewpoint coincides with the real camera position. Among them, after the spatial three-degree-of-freedom position (x, y, z) of the virtual viewpoint coincides with the real camera position, the difference between the interpolated planned 6DoF position and the real camera position is only in the remaining three rotational degrees of freedom (respectively are the degrees of freedom of rotation around the x, y, and z axes).
在生成过渡图像帧的插值之后,可以基于过渡图像帧的插值,来重建虚拟视点从目标位置过渡到预定位置的过程中的图像。After the interpolation of the transition image frame is generated, an image during the transition of the virtual viewpoint from the target position to the predetermined position may be reconstructed based on the interpolation of the transition image frame.
作为一种可选的实施方式,在步骤S204,控制虚拟视点从目标位置过渡到预定位置之后,调用Warping图像变形算法,切换为使用图像变形模型来进行图像重建。As an optional implementation manner, in step S204, after the virtual viewpoint is controlled to transition from the target position to the predetermined position, the Warping image deformation algorithm is invoked to switch to use the image deformation model for image reconstruction.
在该实施例中,图像变形算法可以为Warping图像变形算法,其也可以称为Warping的操作,由于其计算简单,只需要进行一次投影,并没有其它的前后处理操作,因而,其比DIBR的插值要快速。该实施例在控制虚拟视点从目标位置过渡到预定位置之后,可以调用Warping图像变形算法,也即,将DIBR虚拟视点插值算法切换为Warping图像变形算法,从而使用图像变形模型来进行图像重建,正是因为Warping的操作的上述特性,从而确保了虚拟视点重建图像时的时效性,以及复杂的图像重建场景下的图像质量。In this embodiment, the image warping algorithm can be the Warping image warping algorithm, which can also be called Warping operation. Because of its simple calculation, only one projection needs to be performed, and there are no other pre- and post-processing operations. Therefore, it is more efficient than DIBR. Interpolation is fast. In this embodiment, after controlling the virtual viewpoint to transition from the target position to the predetermined position, the Warping image warping algorithm may be called, that is, the DIBR virtual viewpoint interpolation algorithm is switched to the Warping image warping algorithm, so that the image warping model is used for image reconstruction. It is because of the above-mentioned characteristics of the operation of Warping, which ensures the timeliness when reconstructing images from virtual viewpoints and the image quality in complex image reconstruction scenarios.
该实施例提供了结合Warping功能的DIBR方法,可以支持更丰富的终端交互设计,并可以结合实际的终端和场景情况,去灵活地配置不同的交互方法,从而给用户创造良好体验。This embodiment provides the DIBR method combined with the Warping function, which can support richer terminal interaction design, and can flexibly configure different interaction methods in combination with actual terminal and scene conditions, thereby creating a good experience for users.
作为一种可选的实施方式,使用图像变形模型处理虚拟视点位于预定位置上的图像,包括:基于虚拟视点所处的预定位置,从相机上读取到对应的图像;根据虚拟视点所在 的空间坐标系上的旋转自由度,使用图像变形模型来处理读取到的图像。As an optional implementation manner, using an image deformation model to process an image where the virtual viewpoint is located at a predetermined position includes: reading a corresponding image from a camera based on the predetermined position where the virtual viewpoint is located; according to the space where the virtual viewpoint is located Rotational degrees of freedom on the coordinate system, using the image warping model to process the read image.
在该实施中,在实现使用图像变形模型处理虚拟视点位于预定位置上的图像时,可以是基于虚拟视点所处的预定位置,从相机上读取到对应的图像,该从相机上读取到的图像也即虚拟视点位于预定位置上的图像,也可以称为原始相机图像,然后确定虚拟视点所在的空间坐标系,确定该空间坐标系上的旋转自由度,比如,为三个旋转自由度,根据虚拟视点所在的空间坐标系上的旋转自由度,使用图像变形模型来处理读取到的图像,进而更新接下来的视点重建功能,这样就可以同时解决终端重建DIBR的时效性问题,以及在复杂重建场景下的图像质量问题。同时,该实施例通过从用户交互的虚拟视点位置到真实相机位置的惯性的DIBR插值过渡,可以解决用户在自由视点切换时的平滑性问题。In this implementation, when the image deformation model is used to process the image in which the virtual viewpoint is located at the predetermined position, the corresponding image may be read from the camera based on the predetermined position of the virtual viewpoint, and the corresponding image is read from the camera. The image of the virtual viewpoint is located at a predetermined position, which can also be called the original camera image, and then determine the spatial coordinate system where the virtual viewpoint is located, and determine the rotational degrees of freedom on the spatial coordinate system, for example, three rotational degrees of freedom , according to the rotational degrees of freedom on the spatial coordinate system where the virtual viewpoint is located, use the image deformation model to process the read image, and then update the next viewpoint reconstruction function, so that the timeliness problem of terminal reconstruction DIBR can be solved at the same time, and Image quality issues in complex reconstruction scenarios. At the same time, this embodiment can solve the problem of smoothness when the user switches between free viewpoints through the inertial DIBR interpolation transition from the virtual viewpoint position interacted by the user to the real camera position.
作为一种可选的实施方式,空间自由度为虚拟视点位于空间坐标系上的坐标值,旋转自由度为围绕空间坐标系的坐标轴旋转的自由度。As an optional implementation manner, the spatial degree of freedom is the coordinate value of the virtual viewpoint on the spatial coordinate system, and the rotational degree of freedom is the degree of freedom of rotating around the coordinate axis of the spatial coordinate system.
在该实施例的上述方案中,空间自由度为虚拟视点位于空间坐标系上的坐标值,比如,为(x,y,z),旋转自由度为围绕空间坐标系的坐标轴旋转的自由度,比如,该自由度有3个,可以分别为绕x,y,z三个轴旋转的自由度。In the above solution of this embodiment, the spatial degree of freedom is the coordinate value of the virtual viewpoint on the spatial coordinate system, for example, (x, y, z), and the rotational degree of freedom is the degree of freedom to rotate around the coordinate axis of the spatial coordinate system , for example, there are 3 degrees of freedom, which can be rotation degrees of freedom around the three axes of x, y, and z respectively.
作为一种可选的实施方式,在步骤S204,控制虚拟视点从目标位置过渡到预定位置之前,该方法还包括:获取虚拟视点当前所在的目标位置与预定位置之间的间距;如果间距超过阈值,则控制虚拟视点按照预设的相机优先级,从目标位置移动到优先级最高的相机所在的视点位置;如果间距未超过阈值,则执行虚拟视点从目标位置过渡到预定位置的步骤。As an optional implementation manner, in step S204, before controlling the virtual viewpoint to transition from the target position to the predetermined position, the method further includes: acquiring the distance between the target position where the virtual viewpoint is currently located and the predetermined position; if the distance exceeds a threshold value , then control the virtual viewpoint to move from the target position to the viewpoint position where the camera with the highest priority is located according to the preset camera priority; if the distance does not exceed the threshold, execute the step of transitioning the virtual viewpoint from the target position to the predetermined position.
在该实施例中,在控制虚拟视点从目标位置过渡到预定位置之前,还可以先获取虚拟视点在操作界面上发生位移后的当前所在的目标位置与预定位置之间的间距,该预定位置为部署有相机的位置。然后判断上述目标位置与预定位置之间的间距是否超过阈值,如果判断出目标位置与预定位置之间的间距超过阈值,则不执行虚拟视点从目标位置过渡到预定位置,而是先获取预设的相机优先级,控制虚拟视点按照上述预设的相机优先级,从目标位置移动到优先级最高的相机所在的视点位置;可选地,该实施例如果判断出目标位置与预定位置之间的间距未超过阈值,则可以继续执行虚拟视点从目标位置过渡到预定位置,可以是将虚拟视点沿着交互惯性按照一定路径从所停留的目标位置进行过渡,直至过渡到的位置与虚拟视点的空间自由度位置重合,该与虚拟视点的空间自由度位置重合的位置也即预定位置,从而该实施例达到了根据虚拟视点当前所在的目标位置与预定位置之间的间距,来控制虚拟视点从目标位置所过渡到的位置的目的。In this embodiment, before controlling the virtual viewpoint to transition from the target position to the predetermined position, the distance between the current target position after the virtual viewpoint is displaced on the operation interface and the predetermined position can also be obtained, and the predetermined position is The location where the camera is deployed. Then it is judged whether the distance between the target position and the predetermined position exceeds the threshold value, and if it is judged that the distance between the target position and the predetermined position exceeds the threshold value, the virtual viewpoint transition from the target position to the predetermined position is not executed, but the preset The camera priority is controlled to control the virtual viewpoint to move from the target position to the viewpoint position where the camera with the highest priority is located according to the above-mentioned preset camera priority; If the distance does not exceed the threshold, you can continue to perform the transition of the virtual viewpoint from the target position to the predetermined position, which can be to transition the virtual viewpoint along the interactive inertia according to a certain path from the stayed target position until the transition to the space between the position and the virtual viewpoint The position of the degrees of freedom coincides, and the position that coincides with the position of the spatial degrees of freedom of the virtual viewpoint is also the predetermined position, so that this embodiment achieves the control of the virtual viewpoint from the target position according to the distance between the target position where the virtual viewpoint is currently located and the predetermined position. The purpose of the location to which the location transitions.
作为一种可选的实施方式,在步骤S202,检测到操作界面上发生交互操作之后,该方法还包括:弹出用于指示至少一个选择控件的提示信息;通过触发任意一个选择控件,选择重建图像的显示分辨率。As an optional implementation manner, in step S202, after detecting that an interactive operation occurs on the operation interface, the method further includes: popping up prompt information for indicating at least one selection control; selecting the reconstructed image by triggering any selection control display resolution.
在该实施例中,交互操作可以是终端用户所进行的针对虚拟视点的交互,为了使用户更方便地对待获取到的重建图像进行设置,以满足需求,比如,为了使用户更方便地对待获取到的重建图像的显示分辨率进行设置,以满足用于对待获取到的重建图像的分辨率的需求,该实施例可以在检测到操作界面上发生交互操作之后,弹出用于指示至少一个选择控件的提示信息,其中,选择控件可以为用于选择待获取的重建图像的分辨率的功能控件,提示信息也即交互指示信息,以提示用户进行选择操作。In this embodiment, the interaction operation may be the interaction performed by the end user for the virtual viewpoint, in order to make the user more convenient to deal with the acquired reconstructed image and set to meet the requirements, for example, in order to make the user more convenient to deal with the acquired reconstructed image The display resolution of the obtained reconstructed image is set to meet the requirements for the resolution of the reconstructed image to be obtained. In this embodiment, after an interactive operation is detected on the operation interface, a pop-up is used to indicate at least one selection control. The prompt information, wherein the selection control may be a functional control for selecting the resolution of the reconstructed image to be acquired, and the prompt information is also interactive indication information to prompt the user to perform a selection operation.
在弹出用于指示至少一个选择控件的提示信息之后,可以接收用户对任意一个选择控件的选择操作,进而响应用于对任意一个选择控件的选择操作,选择重建图像的显示分辨率,其中,每个选择控件可以对应一个重建图像的显示分辨率,多个选择控件可以分别对应不同的重建图像的显示分辨率,以满足待获取到的重建图像的显示分辨率具有多样化设置的需求,比如,在用户观看电影的场景下,会有重建图像的低显示分辨率的提醒。这样在使用图像变形模型处理虚拟视点位于预定位置上的图像时,获取到的重建图像为用户触发的选择控件所对应的显示分辨率。After popping up the prompt information indicating at least one selection control, the user's selection operation on any selection control can be received, and then in response to the selection operation on any selection control, the display resolution of the reconstructed image is selected, wherein each Each selection control may correspond to the display resolution of one reconstructed image, and multiple selection controls may correspond to different display resolutions of the reconstructed image respectively, so as to meet the requirement of diverse settings for the display resolution of the reconstructed image to be acquired, for example, In the scenario where the user is watching a movie, there will be a reminder of the low display resolution of the reconstructed image. In this way, when the image deformation model is used to process the image with the virtual viewpoint located at the predetermined position, the obtained reconstructed image is the display resolution corresponding to the selection control triggered by the user.
本发明实施例还提供了另一种重建图像的方法。The embodiment of the present invention also provides another method for reconstructing an image.
图3是根据本发明实施例的另一种重建图像的方法的流程图。如图3所示,该方法可以包括以下步骤:FIG. 3 is a flowchart of another method for reconstructing an image according to an embodiment of the present invention. As shown in Figure 3, the method may include the following steps:
步骤S302,检测到操作界面上发生控制虚拟视点从第一位置移动到第二位置的交互操作。Step S302, it is detected that an interactive operation of controlling the virtual viewpoint to move from the first position to the second position occurs on the operation interface.
在本发明上述步骤S302提供的技术方案中,交互操作可以是用户所进行的针对虚拟视点的交互,其中,在操作界面上发生交互操作的过程中,虚拟视点在操作界面上会发生位移,可以控制虚拟视点从第一位置移动到第二位置,该第二位置可以为虚拟视点在操作界面上发生位移后所停留的位置,比如,为用户的手指在操作界面上抬起的位置。In the technical solution provided by the above step S302 of the present invention, the interactive operation may be an interaction performed by the user with respect to the virtual viewpoint. The virtual viewpoint is controlled to move from the first position to the second position, where the second position may be the position where the virtual viewpoint stays after the displacement on the operation interface, for example, the position where the user's finger is lifted on the operation interface.
步骤S304,控制虚拟视点从第二位置过渡到第三位置,其中,第三位置为部署有相机的真实视点的位置。Step S304, controlling the virtual viewpoint to transition from the second position to the third position, where the third position is the position of the real viewpoint where the camera is deployed.
在本发明上述步骤S304提供的技术方案中,在检测到操作界面上发生控制虚拟视点从第一位置移动到第二位置的交互操作之后,可以控制虚拟视点从第二位置过渡到第三位置,可以是将虚拟视点沿着交互惯性按照一定路径从所停留的第二位置进行过渡,直至过渡到第三位置,该第三位置可以部署有相机的真实视点,其与虚拟视点的空间自由度位置重合。In the technical solution provided in the above step S304 of the present invention, after an interactive operation of controlling the virtual viewpoint to move from the first position to the second position is detected on the operation interface, the virtual viewpoint can be controlled to transition from the second position to the third position, It can be that the virtual viewpoint transitions from the second position where it stayed along a certain path along the interactive inertia until it transitions to a third position, where the real viewpoint of the camera can be deployed, which is different from the position of the spatial degrees of freedom of the virtual viewpoint. coincide.
可选地,该实施例的上述一定路径可以为预先规定好的平滑路径。空间自由度位置可以为空间三自由度位置(x,y,z)。Optionally, the above-mentioned certain path in this embodiment may be a predetermined smooth path. The spatial DOF position may be a spatial three DOF position (x, y, z).
步骤S306,读取位于第三位置的相机的图像。Step S306, read the image of the camera located at the third position.
在本发明上述步骤S306提供的技术方案中,在控制虚拟视点从第二位置过渡到第三位置之后,可以读取位于第三位置的相机的图像。In the technical solution provided by the above step S306 of the present invention, after controlling the virtual viewpoint to transition from the second position to the third position, the image of the camera located at the third position can be read.
在该实施例中,在虚拟视点过渡到第三位置上之后,则具有虚拟视点位于第三位置上的相机的图像,读取该位于第三位置的相机的图像。In this embodiment, after the virtual viewpoint transitions to the third position, there is an image of the camera whose virtual viewpoint is at the third position, and the image of the camera at the third position is read.
步骤S308,使用基于平面的图像变形模型处理图像,获取重建图像。Step S308, using the plane-based image deformation model to process the image to obtain a reconstructed image.
在本发明上述步骤S308提供的技术方案中,在读取位于第三位置的相机的图像之后,可以使用基于平面的图像变形模型处理图像,获取重建图像。In the technical solution provided in the above step S308 of the present invention, after the image of the camera located at the third position is read, the image can be processed using a plane-based image deformation model to obtain a reconstructed image.
在该实施例中,在虚拟视点过渡到第三位置,且读取位于第三位置的相机的图像之后,则可以在图像重建场景中,使用基于平面的图像变形模型处理虚拟视点第三位置的相机的图像,进而得到重建图像,平面的图像变形模型为二维图像变形模型。In this embodiment, after the virtual viewpoint transitions to the third position and the image of the camera located at the third position is read, a plane-based image deformation model can be used in the image reconstruction scene to process the image of the third position of the virtual viewpoint. The image of the camera is obtained, and then the reconstructed image is obtained, and the image deformation model of the plane is a two-dimensional image deformation model.
在该实施例中,上述基于平面的图像变形模型的计算过程简单,因而该实施例相比采用基于深度图的DIBR的插值方法而言,更要快速,从而适应了低端机的计算资源,确保了虚拟视点重建图像时的时效性,以及复杂的图像重建场景下的图像质量。In this embodiment, the calculation process of the above-mentioned plane-based image deformation model is simple, so this embodiment is faster than the interpolation method using the DIBR based on the depth map, thus adapting to the computing resources of low-end computers, It ensures the timeliness of image reconstruction from virtual viewpoints and the image quality in complex image reconstruction scenarios.
作为一种可选的实施方式,选择距离第二位置最近的真实视点位置作为第三位置。As an optional implementation manner, the position of the real viewpoint closest to the second position is selected as the third position.
在该实施例中,在控制虚拟视点从第二位置过渡到第三位置之前,可以获取至少一个真实视点位置,然后从至少一个真实视点位置中,确定出距离第二位置最近的真实视点位置,并将其作为需要控制虚拟视点从第二位置过渡到的第三位置。In this embodiment, before controlling the virtual viewpoint to transition from the second position to the third position, at least one real viewpoint position may be acquired, and then from the at least one real viewpoint position, the closest real viewpoint position to the second position is determined, And use it as the third position that needs to control the transition of the virtual viewpoint from the second position to.
本发明实施例还提供了另一种重建图像的方法。The embodiment of the present invention also provides another method for reconstructing an image.
图4是根据本发明实施例的另一种重建图像的方法的流程图。如图4所示,该方法可以包括以下步骤:FIG. 4 is a flowchart of another method for reconstructing an image according to an embodiment of the present invention. As shown in Figure 4, the method may include the following steps:
步骤S402,感应到操作对象在操作界面上的交互操作。Step S402, an interactive operation of the operation object on the operation interface is sensed.
在本发明上述步骤S402提供的技术方案中,交互操作可以是由操作对象所进行的针对虚拟视点的交互,在操作界面上发生交互操作的过程中,虚拟视点在操作界面上会发生位移,其中,操作对象可以为用户。该实施例感应操作对象在操作界面上的上述交互操作。In the technical solution provided in the above step S402 of the present invention, the interactive operation may be the interaction of the virtual viewpoint performed by the operation object. During the interactive operation on the operation interface, the virtual viewpoint will be displaced on the operation interface, wherein , the operation object can be the user. This embodiment senses the above-mentioned interactive operation of the operation object on the operation interface.
步骤S404,响应交互操作,显示虚拟视点基于交互操作在操作界面上发生的位移,其中,位移为从第一位置移动到第二位置。Step S404 , in response to the interactive operation, display the displacement of the virtual viewpoint on the operation interface based on the interactive operation, wherein the displacement is moving from the first position to the second position.
在本发明上述步骤S404提供的技术方案中,虚拟视点可以基于交互操作在操作界面上发生位移,该实施例可以在感应到操作对象在操作界面上的交互操作之后,响应交互操作,显示虚拟视点基于交互操作在操作界面上发生的位移,其中,位移为从第一位置移动到第二位置之间的位移。In the technical solution provided in the above step S404 of the present invention, the virtual viewpoint can be displaced on the operation interface based on the interactive operation. In this embodiment, after sensing the interactive operation of the operation object on the operation interface, the virtual viewpoint can be displayed in response to the interactive operation. The displacement occurs on the operation interface based on the interactive operation, wherein the displacement is the displacement from the first position to the second position.
在该实施例中,响应上述交互操作,可以获取虚拟视点在操作界面上从第一位置发生位移后所停留的第二位置,确定第一位置与第二位置之间的位移,其也是交互操作在操作界面上所发生的位移,进而显示交互操作在操作界面上所发生的位移。In this embodiment, in response to the above-mentioned interactive operation, the second position where the virtual viewpoint stays after the displacement from the first position on the operation interface can be obtained, and the displacement between the first position and the second position can be determined, which is also an interactive operation. The displacement occurred on the operation interface, and then the displacement occurred in the operation interface of the interactive operation is displayed.
步骤S406,显示虚拟视点从第二位置过渡到第三位置,其中,第三位置为部署有相机的真实视点的位置。Step S406, displaying that the virtual viewpoint transitions from the second position to the third position, where the third position is the position of the real viewpoint where the camera is deployed.
在本发明上述步骤S406提供的技术方案中,在显示交互操作在操作界面上发生的位移之后,显示虚拟视点从第二位置过渡到第三位置。In the technical solution provided by the above step S406 of the present invention, after the displacement of the interactive operation on the operation interface is displayed, the displayed virtual viewpoint transitions from the second position to the third position.
在该实施例中,可以控制虚拟视点从上述第二位置过渡到第三位置,可以是将虚拟视点沿着交互惯性按照一定路径从所停留的第二位置进行过渡,直至过渡到第三位置,该第三位置可以部署有相机的真实视点,其与虚拟视点的空间自由度位置重合,进而显示虚拟视点从第二位置过渡到第三位置的结果。In this embodiment, the virtual viewpoint can be controlled to transition from the second position to the third position, and the virtual viewpoint can be transitioned from the second position where it stayed along the interactive inertia according to a certain path until it transitions to the third position, The third position may be deployed with the real viewpoint of the camera, which coincides with the position of the spatial degree of freedom of the virtual viewpoint, thereby displaying the result of the transition of the virtual viewpoint from the second position to the third position.
可选地,该实施例的上述一定路径可以为预先规定好的平滑路径。空间自由度位置可以为空间三自由度位置(x,y,z)。Optionally, the above-mentioned certain path in this embodiment may be a predetermined smooth path. The spatial DOF position may be a spatial three DOF position (x, y, z).
步骤S408,显示使用基于平面的图像变形模型处理目标图像而生成的重建图像,其中,目标图像为位于第三位置的相机捕获的图像。Step S408 , displaying a reconstructed image generated by processing the target image using the plane-based image deformation model, where the target image is an image captured by a camera located at a third position.
在本发明上述步骤S408提供的技术方案中,在显示虚拟视点从第二位置过渡到第三位置之后,显示使用基于平面的图像变形模型处理目标图像而生成的重建图像。In the technical solution provided by the above step S408 of the present invention, after the displayed virtual viewpoint transitions from the second position to the third position, the reconstructed image generated by processing the target image using the plane-based image deformation model is displayed.
在该实施例中,在虚拟视点过渡到第三位置上之后,则具有虚拟视点位于第三位置上的相机的图像,读取由位于第三位置的相机捕获的目标图像,进而使用基于平面的图像变形模型处理上述目标图像,获取并显示该重建图像。In this embodiment, after the virtual viewpoint transitions to the third position, there is an image of the camera with the virtual viewpoint at the third position, the target image captured by the camera at the third position is read, and the plane-based The image warping model processes the above target image, acquires and displays the reconstructed image.
在该实施例中,上述基于平面的图像变形模型的计算过程简单,因而该实施例比采用基于深度图的DIBR的插值方法要快速,从而适应了低端机的计算资源,确保了虚拟视点重建图像时的时效性,以及复杂的图像重建场景下的图像质量。In this embodiment, the calculation process of the above-mentioned plane-based image deformation model is simple, so this embodiment is faster than the interpolation method using DIBR based on depth map, thus adapting to the computing resources of low-end computers and ensuring virtual viewpoint reconstruction The timeliness of images, and the image quality in complex image reconstruction scenarios.
本发明实施例还提供了另一种重建图像的方法。The embodiment of the present invention also provides another method for reconstructing an image.
图5是根据本发明实施例的另一种重建图像的方法的流程图。如图5所示,该方法可以包括以下步骤:FIG. 5 is a flowchart of another method for reconstructing an image according to an embodiment of the present invention. As shown in Figure 5, the method may include the following steps:
步骤S502,感应操作对象在操作界面上的移动操作。Step S502, sensing the movement operation of the operation object on the operation interface.
在本发明上述步骤S502提供的技术方案中,移动操作可以是由操作对象所进行的针对虚拟视点的移动操作,在操作界面上发生移动操作的过程中,虚拟视点在操作界面上会发生与移动操作的轨迹相对应的位移,其中,操作对象可以为用户的手指,从而移动操作可以为用户的手指的滑动操作。该实施例感应操作对象在操作界面上的上述移动操作。In the technical solution provided by the above step S502 of the present invention, the movement operation may be a movement operation performed by the operation object for the virtual viewpoint. During the movement operation on the operation interface, the virtual viewpoint will occur and move on the operation interface. The displacement corresponding to the trajectory of the operation, wherein the operation object may be the user's finger, and the movement operation may be the sliding operation of the user's finger. This embodiment senses the above-mentioned movement operation of the operation object on the operation interface.
步骤S504,如果感应到移动操作中止,获取移动操作中止时操作对象在操作界面停留的停留位置。Step S504, if it is sensed that the movement operation is suspended, obtain the stop position where the operation object stays on the operation interface when the movement operation is suspended.
在本发明上述步骤S504提供的技术方案中,在感应操作对象在操作界面上的移动操作之后,如果感应到移动操作中止,获取移动操作中止时操作对象在操作界面停留的停留位置。In the technical solution provided by the above step S504 of the present invention, after sensing the movement operation of the operation object on the operation interface, if the suspension of the movement operation is sensed, the stop position of the operation object on the operation interface when the movement operation is stopped is obtained.
在该实施例中,在操作界面上发生的移动操作为连续的操作过程,如果感应到移动操作中止,则可以获取移动操作中止时操作对象在操作界面所停留的停留位置,也即, 移动操作在上述停留位置出现了中断。In this embodiment, the moving operation that occurs on the operation interface is a continuous operation process. If the suspension of the moving operation is sensed, the stop position of the operation object on the operation interface when the moving operation is stopped can be obtained, that is, the moving operation An interruption occurred at the above stop position.
步骤S506,控制位于停留位置的虚拟视点过渡到预定位置,其中,预定位置为与虚拟视点的空间自由度位置重合的相机位置。Step S506 , controlling the virtual viewpoint located at the stop position to transition to a predetermined position, where the predetermined position is a camera position coincident with the position of the spatial degree of freedom of the virtual viewpoint.
在本发明上述步骤S506提供的技术方案中,在获取移动操作中止时操作对象在操作界面停留的停留位置之后,可以控制位于停留位置的虚拟视点过渡到预定位置。In the technical solution provided by the above step S506 of the present invention, after obtaining the stop position where the operation object stays on the operation interface when the moving operation is suspended, the virtual viewpoint at the stop position can be controlled to transition to a predetermined position.
在该实施例中,虚拟视点随着移动操作进行移动,在获取移动操作中止时操作对象在操作界面停留的停留位置之后,则可以触发控制位于停留位置的虚拟视点过渡到预定位置,该预定位置为与虚拟视点的空间自由度位置重合的相机位置,可以是真实相机位置,也可以称为真实视点位置。In this embodiment, the virtual viewpoint moves with the moving operation, and after acquiring the stop position where the operation object stays on the operation interface when the moving operation is stopped, the virtual viewpoint at the stop position can be triggered to transition to a predetermined position, the predetermined position The camera position that is coincident with the position of the spatial degrees of freedom of the virtual viewpoint may be the real camera position, and may also be referred to as the real viewpoint position.
步骤S508,使用基于平面的图像变形模型处理相机在预定位置的图像,获取重建图像。Step S508 , using the plane-based image deformation model to process the image of the camera at the predetermined position to obtain a reconstructed image.
在本发明上述步骤S508提供的技术方案中,在控制位于停留位置的虚拟视点过渡到预定位置之后,可以使用基于平面的图像变形模型处理相机在预定位置的图像,获取重建图像。In the technical solution provided in the above step S508 of the present invention, after the virtual viewpoint at the stop position is controlled to transition to a predetermined position, a plane-based image deformation model can be used to process the image of the camera at the predetermined position to obtain a reconstructed image.
在该实施例中,在虚拟视点过渡到预定位置上之后,则具有虚拟视点位于预定位置上的相机的图像,读取由位于第三位置的相机捕获的图像,进而使用基于平面的图像变形模型处理该图像,获取重建图像。In this embodiment, after the virtual viewpoint transitions to the predetermined position, there is an image of the camera with the virtual viewpoint at the predetermined position, the image captured by the camera at the third position is read, and the plane-based image deformation model is used Process this image to obtain a reconstructed image.
在该实施例中,上述基于平面的图像变形模型的计算过程简单,因而该实施例比采用基于深度图的DIBR的插值方法要快速,从而适应了低端机的计算资源,确保了虚拟视点重建图像时的时效性,以及复杂的图像重建场景下的图像质量。In this embodiment, the calculation process of the above-mentioned plane-based image deformation model is simple, so this embodiment is faster than the interpolation method using DIBR based on depth map, thus adapting to the computing resources of low-end computers and ensuring virtual viewpoint reconstruction The timeliness of images, and the image quality in complex image reconstruction scenarios.
本发明实施例还提供了另一种重建图像的方法。The embodiment of the present invention also provides another method for reconstructing an image.
图6是根据本发明实施例的另一种重建图像的方法的流程图。如图6所示,该方法可以包括以下步骤:FIG. 6 is a flowchart of another method for reconstructing an image according to an embodiment of the present invention. As shown in Figure 6, the method may include the following steps:
步骤S602,感应操作对象在操作界面上的移动操作。Step S602, sensing the movement operation of the operation object on the operation interface.
在本发明上述步骤S602提供的技术方案中,移动操作可以是由操作对象所进行的针对虚拟视点的移动操作,在操作界面上发生移动操作的过程中,虚拟视点在操作界面上会发生与移动操作的轨迹相对应的位移,其中,操作对象可以为用户的手指,移动操作可以为用户的滑动操作。该实施例感应操作对象在操作界面上的上述移动操作。In the technical solution provided in the above step S602 of the present invention, the movement operation may be a movement operation performed by the operation object for the virtual viewpoint. During the movement operation on the operation interface, the virtual viewpoint will occur and move on the operation interface. The displacement corresponding to the trajectory of the operation, where the operation object may be the user's finger, and the movement operation may be the user's sliding operation. This embodiment senses the above-mentioned movement operation of the operation object on the operation interface.
步骤S604,如果感应到移动操作中止,获取移动操作中止时操作对象在操作界面停留的停留位置。Step S604, if it is sensed that the movement operation is suspended, obtain the stop position where the operation object stays on the operation interface when the movement operation is suspended.
在本发明上述步骤S604提供的技术方案中,在感应操作对象在操作界面上的移动操作之后,如果感应到移动操作中止,获取移动操作中止时操作对象在操作界面停留的停留位置。In the technical solution provided by the above step S604 of the present invention, after sensing the movement operation of the operation object on the operation interface, if the suspension of the movement operation is sensed, the stop position of the operation object on the operation interface when the movement operation is stopped is obtained.
在该实施例中,在操作界面上发生的移动操作为连续的操作过程,如果感应到移动 操作中止,则可以获取移动操作中止时操作对象在操作界面所停留的停留位置,也即,移动操作在上述停留位置出现了中断。In this embodiment, the movement operation that occurs on the operation interface is a continuous operation process. If the suspension of the movement operation is sensed, the stop position of the operation object on the operation interface when the movement operation is stopped can be obtained, that is, the movement operation An interruption occurred at the above stop position.
步骤S606,控制位于停留位置的虚拟视点过渡到预定位置,其中,预定位置为部署有相机的真实视点的位置。Step S606, controlling the virtual viewpoint located at the staying position to transition to a predetermined position, where the predetermined position is the position of the real viewpoint where the camera is deployed.
在本发明上述步骤S606提供的技术方案中,在获取移动操作中止时操作对象在操作界面停留的停留位置之后,控制位于停留位置的虚拟视点过渡到预定位置。In the technical solution provided by the above step S606 of the present invention, after obtaining the stop position where the operation object stays on the operation interface when the moving operation is suspended, the virtual viewpoint at the stop position is controlled to transition to a predetermined position.
在该实施例中,虚拟视点随着移动操作进行移动,在获取移动操作中止时操作对象在操作界面停留的停留位置之后,则可以触发控制位于停留位置的虚拟视点过渡到预定位置,该预定位置为部署有相机的真实视点的位置,可以与虚拟视点的空间自由度位置重合的相机位置。In this embodiment, the virtual viewpoint moves with the moving operation, and after acquiring the stop position where the operation object stays on the operation interface when the moving operation is stopped, the virtual viewpoint at the stop position can be triggered to transition to a predetermined position, the predetermined position is the position of the real viewpoint where the camera is deployed, the position of the camera that can coincide with the position of the spatial degrees of freedom of the virtual viewpoint.
步骤S608,读取位于预定位置的相机的图像。In step S608, the image of the camera located at the predetermined position is read.
在本发明上述步骤S608提供的技术方案中,在控制位于停留位置的虚拟视点过渡到预定位置之后,读取位于预定位置的相机的图像。In the technical solution provided in the above step S608 of the present invention, after controlling the virtual viewpoint located at the stop position to transition to the predetermined position, the image of the camera located at the predetermined position is read.
在该实施例中,在虚拟视点过渡到预定位置上之后,则具有虚拟视点位于预定位置上的相机的图像,读取该位于预定位置的相机的图像。In this embodiment, after the virtual viewpoint transitions to the predetermined position, there is an image of the camera whose virtual viewpoint is located at the predetermined position, and the image of the camera located at the predetermined position is read.
步骤S610,使用基于平面的图像变形模型处理图像,获取重建图像。Step S610, using a plane-based image deformation model to process the image to obtain a reconstructed image.
在本发明上述步骤S610提供的技术方案中,在读取位于预定位置的相机的图像之后,使用基于平面的图像变形模型处理图像,获取重建图像。In the technical solution provided by the above step S610 of the present invention, after the image of the camera located at the predetermined position is read, the image is processed using a plane-based image deformation model to obtain a reconstructed image.
在该实施例中,在虚拟视点过渡到预定位置,且读取位于预定位置的相机的图像之后,则可以在图像重建场景中,使用基于平面的图像变形模型处理虚拟视点预定位置的相机的图像,进而得到重建图像。In this embodiment, after the virtual viewpoint transitions to a predetermined position and the image of the camera at the predetermined position is read, the image of the camera at the predetermined position of the virtual viewpoint can be processed using a plane-based image deformation model in the image reconstruction scene , and then obtain the reconstructed image.
本发明实施例还提供了另一种重建图像的方法,该方法可以包括:在直播过程中,检测到直播画面上接收到移动操作;获取虚拟视点在直播画面上发生位移后的目标位置;控制虚拟视点从目标位置移动到预定位置,其中,预定位置为与虚拟视点的空间自由度位置重合的相机位置;使用图像变形模型处理虚拟视点位于预定位置上的图像,获取重建图像。The embodiment of the present invention also provides another method for reconstructing an image, and the method may include: during the live broadcast, detecting that a movement operation is received on the live broadcast screen; obtaining the target position of the virtual viewpoint after the displacement on the live broadcast screen; controlling The virtual viewpoint is moved from the target position to a predetermined position, where the predetermined position is the camera position that coincides with the position of the virtual viewpoint's spatial degrees of freedom; the image deformation model is used to process the image of the virtual viewpoint at the predetermined position to obtain a reconstructed image.
该实施例的重建图像的方法可以应用在直播场景中,比如,该直播场景可以为交易类型的直播场景,此处不做具体限制。该实施例的移动操作可以是终端用户在直播场景中针对直播画面所进行的对虚拟视点的移动操作,也可以称为用户自由视点交互,其中,在直播画面上发生移动操作的过程中,虚拟视点在直播画面上会发生位移,比如,从直播画面上的A点开始的移动操作所对应的位移。The method for reconstructing an image in this embodiment may be applied to a live broadcast scenario, for example, the live broadcast scenario may be a transaction type live broadcast scenario, which is not specifically limited here. The movement operation in this embodiment may be a movement operation of a virtual viewpoint performed by a terminal user on the live screen in the live broadcast scene, and may also be referred to as user free viewpoint interaction. The viewpoint will be displaced on the live screen, for example, the displacement corresponding to the movement operation starting from point A on the live screen.
该实施例可以检测直播画面上发生交互操作,然后获取虚拟视点在直播画面上发生位移后所停留的目标位置,比如,目标位置为直播画面上的B点,移动操作在B点停住,可以是用户的手指在达到B点刹那间抬起的操作,则虚拟视点在直播画面上发生的位移 为A点与B点之间的位移。In this embodiment, the interactive operation on the live screen can be detected, and then the target position where the virtual viewpoint stays after the displacement on the live screen is obtained. For example, the target position is point B on the live screen, and the moving operation stops at point B. It is the operation that the user's finger lifts up when it reaches point B, and the displacement of the virtual viewpoint on the live screen is the displacement between point A and point B.
在获取虚拟视点在直播画面上发生位移后的目标位置之后,该目标位置不一定对应真实相机位置,从而在该目标位置是无法直接进行图像重建的。该实施例可以控制虚拟视点从目标位置过渡到预定位置,可以是将虚拟视点沿着交互惯性按照一定路径从所停留的目标位置进行过渡,直至过渡到的位置与虚拟视点的空间自由度位置重合,该与虚拟视点的空间自由度位置重合的位置为预定位置。可选地,该实施例的上述预定位置为距离上述目标位置最近的真实视点位置。After obtaining the target position of the virtual viewpoint displaced on the live screen, the target position does not necessarily correspond to the real camera position, so that image reconstruction cannot be performed directly at the target position. In this embodiment, the virtual viewpoint can be controlled to transition from the target position to the predetermined position, and the virtual viewpoint can be transitioned from the stayed target position along the interactive inertia according to a certain path until the transitioned position coincides with the position of the spatial degrees of freedom of the virtual viewpoint. , the position coincident with the position of the spatial degree of freedom of the virtual viewpoint is the predetermined position. Optionally, the predetermined position in this embodiment is a real viewpoint position closest to the target position.
在该实施例中,由于在获取虚拟视点在直播画面上发生位移后的目标位置之后,虚拟视点不再受交互操作的控制了,因而该实施例控制虚拟视点从目标位置过渡到预定位置,所涉及的交互惯性可以理解为对虚拟视点进行过渡的一种规则。In this embodiment, after obtaining the target position of the virtual viewpoint after the displacement on the live screen, the virtual viewpoint is no longer controlled by the interactive operation, so this embodiment controls the virtual viewpoint to transition from the target position to the predetermined position, so The interactive inertia involved can be understood as a rule for transitioning the virtual viewpoint.
可选地,该实施例的上述一定路径可以为在直播画面上预先规定好的平滑路径。上述空间自由度位置可以为空间三自由度位置(x,y,z)。Optionally, the above-mentioned certain path in this embodiment may be a predetermined smooth path on the live broadcast screen. The above-mentioned spatial degrees of freedom positions may be three spatial degrees of freedom positions (x, y, z).
在该实施例中,在虚拟视点过渡到预定位置上之后,则具有虚拟视点位于预定位置上的图像,该实施例可以使用图像变形模型处理虚拟视点位于上述预定位置上的图像,进而得到重建图像。In this embodiment, after the virtual viewpoint transitions to the predetermined position, there is an image with the virtual viewpoint at the predetermined position. In this embodiment, an image deformation model can be used to process the image with the virtual viewpoint at the predetermined position to obtain a reconstructed image. .
在该实施例中,上述图像变形模型的计算过程简单,因而该实施例比采用基于深度图的虚拟视点重建的插值方法要快速,适应了低端机的计算资源,确保了虚拟视点重建图像时的时效性(实时性),以及复杂的图像重建场景下的图像质量。In this embodiment, the calculation process of the above-mentioned image deformation model is simple, so this embodiment is faster than the interpolation method using depth map-based virtual viewpoint reconstruction, adapts to the computing resources of low-end computers, and ensures that the virtual viewpoint reconstructs the image when the image is reconstructed. The timeliness (real-time), and the image quality in complex image reconstruction scenarios.
在该实施例中,上述基于平面的图像变形模型的计算过程简单,因而该实施例比采用基于深度图的DIBR的插值方法要快速,从而适应了低端机的计算资源,确保了虚拟视点重建图像时的时效性,以及复杂的图像重建场景下的图像质量。In this embodiment, the calculation process of the above-mentioned plane-based image deformation model is simple, so this embodiment is faster than the interpolation method using DIBR based on depth map, thus adapting to the computing resources of low-end computers and ensuring virtual viewpoint reconstruction The timeliness of images, and the image quality in complex image reconstruction scenarios.
该实施例提供了结合Warping功能的DIBR方法,可以支持更丰富的终端交互设计,并可以结合实际的终端和场景情况,去灵活地配置不同的交互方法,从而给用户创造良好体验。This embodiment provides the DIBR method combined with the Warping function, which can support richer terminal interaction design, and can flexibly configure different interaction methods in combination with actual terminal and scene conditions, thereby creating a good experience for users.
该实施例通过惯性DIBR过渡和真实视点位置Warping的组合方案,来避免停留在虚拟视点位置后的低端机的计算的时效性低的问题,以及相关的复杂场景下的图像质量低的问题,可以同时适应中低端机的计算资源以及提高复杂场景下的图像质量,从而使得自由视点视频体验具有更好的普适性。This embodiment uses the combined solution of inertial DIBR transition and real viewpoint position Warping to avoid the problem of low time-efficiency in the calculation of the low-end computer after staying at the virtual viewpoint position, and the related problem of low image quality in complex scenes, It can adapt to the computing resources of low-end computers and improve the image quality in complex scenes at the same time, so that the free-view video experience has better universality.
实施例2Example 2
下面对该实施例的上述方法的优选实施方式进行进一步举例介绍。The preferred implementation of the above-mentioned method of this embodiment will be further described with examples below.
图7是根据相关技术中的一种DIBR虚拟视点差值的示意图。如图7所示,如图8所示,黑色细实线箭头用于表示原始相机真实的朝向,空心圆圈用于表示原始相机,黑色实心圆圈用于表示虚拟相机。该实施例通过稀疏视点的相机阵列拍摄,来获取一个较大范围的自由视点,其中,黑色实心圆圈用于表示在进行虚拟视点交互时,虚拟视点所 停留的位置,空心圆圈用于表示通过DIBR的方法进行插值,所确定的真实相机的位置。在相关技术中,主要的交互方法是通过终端用户的手势交互来确定用户希望停留的虚拟视点的位置,并且根据虚拟视点的6DoF参数,通过DIBR的方法进行插值,以获得用户在虚拟视点位置的观看图像。FIG. 7 is a schematic diagram of a DIBR virtual viewpoint difference value according to the related art. As shown in Figure 7, as shown in Figure 8, the black thin solid arrow is used to represent the true orientation of the original camera, the hollow circle is used to represent the original camera, and the black solid circle is used to represent the virtual camera. In this embodiment, a camera array with sparse viewpoints is used to obtain a wide range of free viewpoints, wherein the black solid circles are used to indicate the position where the virtual viewpoints stay when performing virtual viewpoint interaction, and the hollow circles are used to represent the virtual viewpoints through DIBR. method to interpolate the determined real camera position. In the related art, the main interaction method is to determine the position of the virtual viewpoint where the user wishes to stay through the gesture interaction of the end user, and to perform interpolation through the DIBR method according to the 6DoF parameters of the virtual viewpoint to obtain the user's position at the virtual viewpoint. View images.
但是,单一的DIBR功能还无法满足用户多样化的需求,这主要有以下两方面的原因:由于在一些中低端机型上,终端的计算资源并不丰富,从而会导致DIBR高复杂度的计算无法达到实时的目的,因而,用户如果长时间停留在虚拟视点上进行观看,就会导致视频出现卡顿现象;另外,如果场景非常复杂,或者自由视点视频的压缩码率比较低,则会导致深度图的质量无法保障,从而进一步导致了用户持续停留在虚拟视点位置,并且插值的图像质量和原始视点相比较,主观体验下降也较为严重。However, a single DIBR function cannot meet the diverse needs of users. This is mainly due to the following two reasons: on some mid-to-low-end models, the terminal computing resources are not abundant, which will lead to high complexity of DIBR. The calculation cannot achieve the purpose of real-time. Therefore, if the user stays in the virtual viewpoint for a long time to watch, the video will be stuck; As a result, the quality of the depth map cannot be guaranteed, which further causes the user to stay at the virtual viewpoint position continuously, and the subjective experience of the interpolated image quality is seriously degraded compared with the original viewpoint.
基于以上的两个原因,该实施例提出了需要在DIBR的参考软件中增加基于简化版Warping的方法,以满足多样化和普适性的交互需求。Based on the above two reasons, this embodiment proposes that a simplified version of Warping-based method needs to be added to the DIBR reference software to meet diverse and universal interaction requirements.
图8是根据本发明实施例的一种基于Warping和DIBR的虚拟视点插值的示意图。如图8所示,黑色细实线箭头用于表示原始相机真实的朝向,黑色粗实线箭头用于表示在规划好路径后,虚拟相机的朝向(用户看到的都是黑色粗实线箭头)。空心圆圈用于表示原始相机,黑色实心圆圈用于表示虚拟相机。图9是根据本发明实施例的一种基于Warping和DIBR的虚拟视点插值的方法的流程图。结合图8和图9可知,在基于Warping的虚拟视点插值中,当执行步骤S901,用户进行虚拟视点交互(DIBR),并停留在黑色实心圆圈位置时,可以通过规划路径,将虚拟视点沿着交互惯性通过平滑的路径,进行过渡插值,直至虚拟视点的空间三自由度位置(x,y,z)与真实相机位置进行重合,比如,虚拟视点从第二个黑色实现圆圈移动至与其相邻的左侧空心圆圈所在的位置上,相邻的左侧空心圆圈所在的位置对应的是真实相机的位置,从而实现了步骤S902,将虚拟视点惯性过渡到真实视点,进而执行步骤S903,通过Warping确定真实视点位置。在虚拟视点的空间三自由度位置(x,y,z)与真实相机位置进行重合之后,则插值的规划6DoF位置和真实相机位置之间的差别,仅仅在于剩余的三个旋转自由度(分别为绕x,y,z三个轴旋转的自由度),在执行步骤S903之后,重新执行S901。其中,在图8中,与空心圆圈对应的实线细箭头,与黑色实心圆圈对应的是实线粗箭头,实线虚箭头对应的是路径。FIG. 8 is a schematic diagram of virtual viewpoint interpolation based on Warping and DIBR according to an embodiment of the present invention. As shown in Figure 8, the black thin solid line arrows are used to represent the real orientation of the original camera, and the black thick solid line arrows are used to represent the virtual camera orientation after the path is planned (what the user sees is the black thick solid line arrows) ). Open circles are used to represent the original camera, and black filled circles are used to represent the virtual camera. FIG. 9 is a flowchart of a method for virtual viewpoint interpolation based on Warping and DIBR according to an embodiment of the present invention. 8 and 9 , in the virtual viewpoint interpolation based on Warping, when step S901 is executed, the user performs virtual viewpoint interaction (DIBR) and stays at the position of the black solid circle, the virtual viewpoint can be planned along the path. The interactive inertia performs transition interpolation through a smooth path until the three-degree-of-freedom position (x, y, z) of the virtual viewpoint coincides with the real camera position. For example, the virtual viewpoint moves from the second black circle to its adjacent At the position of the left hollow circle of the adjacent left side, the position of the adjacent left hollow circle corresponds to the position of the real camera, so that step S902 is realized, and the virtual viewpoint inertial transitions to the real viewpoint, and then step S903 is executed, through Warping Determine the true viewpoint location. After the spatial three-degree-of-freedom position (x, y, z) of the virtual viewpoint coincides with the real camera position, the difference between the interpolated planned 6DoF position and the real camera position is only in the remaining three rotational degrees of freedom (respectively is the degree of freedom of rotation around the three axes of x, y, and z), after step S903 is executed, S901 is executed again. Among them, in FIG. 8 , the solid thin arrows corresponding to the hollow circles, the solid thick arrows corresponding to the black solid circles, and the paths corresponding to the solid dashed arrows.
在虚拟视点的空间三自由度位置(x,y,z)与真实相机位置进行重合之后,则可以通过原始相机图像根据三个旋转自由度的Warping操作,来更新接下来的视点重建功能,这样就可以同时解决上述两个问题:终端重建DIBR的时效性问题,以及复杂重建场景下的图像质量问题。同时,该实施例通过从用户交互的虚拟视点位置到真实相机位置进行惯性的DIBR插值过渡,从而可以解决用户在自由视点切换时候的平滑性问题。After the three-degree-of-freedom position (x, y, z) of the virtual viewpoint coincides with the real camera position, the next viewpoint reconstruction function can be updated through the Warping operation of the original camera image according to the three rotational degrees of freedom, so that The above two problems can be solved at the same time: the problem of timeliness of terminal reconstruction of DIBR, and the problem of image quality in complex reconstruction scenarios. At the same time, in this embodiment, the inertial DIBR interpolation transition is performed from the virtual viewpoint position interacted by the user to the real camera position, thereby solving the problem of smoothness when the user switches between free viewpoints.
结合图7和图8可知,黑色实心的点(例如A1和A2)可以表示虚拟视点,白色空 心位置的点(例如B1、B2、B3等)可以表示真实相机所在的真实视点的位置。在操作界面上发生移动操作后,使得虚拟视点从A1点移动到A2点之后,处于A2位置的虚拟视点会基于预定控制模式选择一个真实相机所在的真实视点,并移动到这个真实视点,此时的控制模式可以包括如下任意一种:选择距离该虚拟视点A2的真实视点;选择计算资源空闲的且与该虚拟视点最近的一个真实视点;在发生选中的真实视点所在的相机损坏、等待处理时长超过预定时长中任意一种或多种情况发生的情况下,选择预设的权重值最高的真实视点。7 and 8, the black solid points (such as A1 and A2) can represent virtual viewpoints, and the white hollow points (such as B1, B2, B3, etc.) can represent the position of the real viewpoint where the real camera is located. After the movement operation occurs on the operation interface, after the virtual viewpoint is moved from A1 to A2, the virtual viewpoint at the A2 position will select a real viewpoint where the real camera is located based on the predetermined control mode, and move to this real viewpoint. At this time, The control mode can include any one of the following: select the real viewpoint from the virtual viewpoint A2; select a real viewpoint with free computing resources and the closest to the virtual viewpoint; when the camera where the selected real viewpoint is located is damaged, waiting for processing time When any one or more of the situations in the predetermined duration exceed, select the real viewpoint with the highest preset weight value.
在该实施例中,上述Warping的操作由于计算简单,只需要进行一次投影,没有其它前后处理操作,因而比DIBR的插值要快速。考虑到标准在不同场景和机型中应用的普遍性,该实施例提供了结合Warping功能的DIBR方法,可以支持更丰富的终端交互设计,并且可以结合实际的终端和场景情况,去灵活地配置不同的交互方法,以提升用户体验。In this embodiment, the above-mentioned Warping operation only needs to perform one projection because of its simple calculation, and there are no other pre- and post-processing operations, so it is faster than the DIBR interpolation. Considering the ubiquity of the application of the standard in different scenarios and models, this embodiment provides a DIBR method combined with the Warping function, which can support richer terminal interaction design, and can be flexibly configured in combination with actual terminal and scenario conditions Different interaction methods to enhance user experience.
在该实施例中,通过惯性DIBR过渡和真实视点位置Warping的组合方案,来避免停留在虚拟视点位置后的低端机的计算实时性的问题,以及相关复杂场景下的图像质量问题。In this embodiment, the combination scheme of inertial DIBR transition and real viewpoint position Warping is used to avoid the problem of real-time calculation of low-end computers after staying at the virtual viewpoint position, and the problem of image quality in related complex scenes.
该实施例提供了一种具有计算复杂度较低的Warping功能支持的DIBR合成方法,通过该方法,可以同时适应中低端机的计算资源以及复杂场景下的图像质量问题,从而使得自由视点视频体验具有更好的普适性。This embodiment provides a DIBR synthesis method supported by a Warping function with low computational complexity, through which the computational resources of low-end and mid-end computers and image quality problems in complex scenes can be simultaneously adapted, so that free-view video can be Experience is more universal.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that, for the sake of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence. As in accordance with the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention.
实施例3Example 3
根据本发明实施例,还提供了一种用于实施上述重建图像的方法的装置。需要说明的是,该实施例的重建图像的装置可以用于执行本发明实施例图2所示的重建图像的方法。According to an embodiment of the present invention, an apparatus for implementing the above method for reconstructing an image is also provided. It should be noted that the apparatus for reconstructing an image in this embodiment can be used to execute the method for reconstructing an image shown in FIG. 2 in the embodiment of the present invention.
图10是根据本发明实施例的一种重建图像的装置的示意图。如图10所示,该重建 图像的装置100可以包括:第一获取模块101、第一控制模块102和第二处理模块103。FIG. 10 is a schematic diagram of an apparatus for reconstructing an image according to an embodiment of the present invention. As shown in FIG. 10 , the apparatus 100 for reconstructing an image may include: a first acquisition module 101, a first control module 102 and a second processing module 103.
第一获取模块101,用于检测到操作界面上发生交互操作,获取虚拟视点在操作界面上发生位移后的目标位置。The first obtaining module 101 is configured to detect an interactive operation on the operation interface, and obtain the target position after the virtual viewpoint is displaced on the operation interface.
第一控制模块102,用于控制虚拟视点从目标位置过渡到预定位置,其中,预定位置为与虚拟视点的空间自由度位置重合的相机位置。The first control module 102 is configured to control the virtual viewpoint to transition from a target position to a predetermined position, wherein the predetermined position is a camera position coincident with the position of the spatial degree of freedom of the virtual viewpoint.
第二处理模块103,用于使用图像变形模型处理虚拟视点位于预定位置上的图像,获取重建图像。The second processing module 103 is configured to use the image deformation model to process the image with the virtual viewpoint located at the predetermined position, and obtain the reconstructed image.
此处需要说明的是,上述第一获取模块101、第一控制模块102和第二处理模块103对应于实施例1中的步骤S202至步骤S206,三个模块与对应的步骤所实现的实例和应用场景相同,但不限于上述实施例一所公开的内容。需要说明的是,上述模块作为装置的一部分可以运行在实施例一提供的计算机终端10中。It should be noted here that the above-mentioned first acquisition module 101 , first control module 102 and second processing module 103 correspond to steps S202 to S206 in Embodiment 1, and the three modules and corresponding steps are implemented by the examples and The application scenarios are the same, but are not limited to the content disclosed in the first embodiment. It should be noted that, as a part of the apparatus, the above-mentioned modules may run in the computer terminal 10 provided in the first embodiment.
根据本发明实施例,还提供了另一种用于实施上述重建图像的方法的装置。需要说明的是,该实施例的重建图像的装置可以用于执行本发明实施例图3所示的重建图像的方法。According to an embodiment of the present invention, another apparatus for implementing the above method for reconstructing an image is also provided. It should be noted that the apparatus for reconstructing an image in this embodiment can be used to execute the method for reconstructing an image shown in FIG. 3 in the embodiment of the present invention.
根据本发明实施例,还提供了另一种用于实施上述重建图像的方法的装置。需要说明的是,该实施例的重建图像的装置可以用于执行本发明实施例图4所示的重建图像的方法。According to an embodiment of the present invention, another apparatus for implementing the above method for reconstructing an image is also provided. It should be noted that the apparatus for reconstructing an image in this embodiment may be used to execute the method for reconstructing an image shown in FIG. 4 in the embodiment of the present invention.
图11是根据本发明实施例的另一种重建图像的装置的示意图。如图11所示,该重建图像的装置110可以包括:检测模块111、第二控制模块112、第一读取模块113和第二处理模块114。FIG. 11 is a schematic diagram of another apparatus for reconstructing an image according to an embodiment of the present invention. As shown in FIG. 11 , the apparatus 110 for reconstructing an image may include: a detection module 111 , a second control module 112 , a first reading module 113 and a second processing module 114 .
检测模块111,用于检测到操作界面上发生控制虚拟视点从第一位置移动到第二位置的交互操作。The detection module 111 is configured to detect that an interactive operation of controlling the virtual viewpoint to move from the first position to the second position occurs on the operation interface.
第二控制模块112,用于控制虚拟视点从第二位置过渡到第三位置,其中,第三位置为部署有相机的真实视点的位置。The second control module 112 is configured to control the virtual viewpoint to transition from the second position to the third position, where the third position is the position of the real viewpoint where the camera is deployed.
第一读取模块113,用于读取位于第三位置的相机的图像。The first reading module 113 is used for reading the image of the camera located at the third position.
第二处理模块114,用于使用基于平面的图像变形模型处理图像,获取重建图像。The second processing module 114 is configured to process the image by using the plane-based image deformation model to obtain the reconstructed image.
此处需要说明的是,上述检测模块111、第二控制模块112、第一读取模块113和第二处理模块114对应于实施例1中的步骤S302至步骤S308,四个模块与对应的步骤所实现的实例和应用场景相同,但不限于上述实施例一所公开的内容。需要说明的是,上述模块作为装置的一部分可以运行在实施例一提供的计算机终端10中。It should be noted here that the detection module 111 , the second control module 112 , the first reading module 113 and the second processing module 114 correspond to steps S302 to S308 in Embodiment 1, and the four modules correspond to the corresponding steps The implemented examples and application scenarios are the same, but are not limited to the content disclosed in the first embodiment above. It should be noted that, as a part of the apparatus, the above-mentioned modules may run in the computer terminal 10 provided in the first embodiment.
根据本发明实施例,还提供了另一种用于实施上述重建图像的方法的装置。需要说明的是,该实施例的重建图像的装置可以用于执行本发明实施例图5所示的重建图像的方法。According to an embodiment of the present invention, another apparatus for implementing the above method for reconstructing an image is also provided. It should be noted that the apparatus for reconstructing an image in this embodiment can be used to execute the method for reconstructing an image shown in FIG. 5 in the embodiment of the present invention.
图12是根据本发明实施例的另一种重建图像的装置的示意图。如图12所示,该重 建图像的装置120可以包括:第一感应模块121、第二获取模块122、第三控制模块123和第三处理模块124。FIG. 12 is a schematic diagram of another apparatus for reconstructing an image according to an embodiment of the present invention. As shown in FIG. 12 , the apparatus 120 for reconstructing an image may include: a first sensing module 121, a second acquiring module 122, a third control module 123, and a third processing module 124.
第一感应模块121,用于感应操作对象在操作界面上的移动操作。The first sensing module 121 is used for sensing the movement operation of the operation object on the operation interface.
第二获取模块122,用于如果感应到移动操作中止,获取移动操作中止时操作对象在操作界面停留的停留位置。The second obtaining module 122 is configured to obtain the stop position where the operation object stays on the operation interface when the movement operation is stopped when it is sensed that the movement operation is stopped.
第三控制模块123,用于控制位于停留位置的虚拟视点过渡到预定位置,其中,预定位置为与虚拟视点的空间自由度位置重合的相机位置。The third control module 123 is configured to control the virtual viewpoint located at the stop position to transition to a predetermined position, wherein the predetermined position is a camera position coincident with the position of the spatial degree of freedom of the virtual viewpoint.
第三处理模块124,用于使用基于平面的图像变形模型处理相机在预定位置的图像,获取重建图像。The third processing module 124 is configured to process the image of the camera at the predetermined position by using the plane-based image deformation model to obtain the reconstructed image.
此处需要说明的是,上述第一感应模块121、第二获取模块122、第三控制模块123和第三处理模块124对应于实施例1中的步骤S502至步骤S508,四个模块与对应的步骤所实现的实例和应用场景相同,但不限于上述实施例一所公开的内容。需要说明的是,上述模块作为装置的一部分可以运行在实施例一提供的计算机终端10中。It should be noted here that the above-mentioned first sensing module 121, second acquisition module 122, third control module 123 and third processing module 124 correspond to steps S502 to S508 in Embodiment 1, and the four modules correspond to the corresponding steps S502 to S508. The examples and application scenarios implemented by the steps are the same, but are not limited to the content disclosed in the first embodiment above. It should be noted that, as a part of the apparatus, the above-mentioned modules may run in the computer terminal 10 provided in the first embodiment.
根据本发明实施例,还提供了另一种用于实施上述重建图像的方法的装置。需要说明的是,该实施例的重建图像的装置可以用于执行本发明实施例图6所示的重建图像的方法。According to an embodiment of the present invention, another apparatus for implementing the above method for reconstructing an image is also provided. It should be noted that the apparatus for reconstructing an image in this embodiment can be used to execute the method for reconstructing an image shown in FIG. 6 in the embodiment of the present invention.
图13是根据本发明实施例的另一种重建图像的装置的示意图。如图13所示,该重建图像的装置130可以包括:第二感应模块131、第三获取模块132、第四控制模块133、第二读取模块134和第四处理模块135。FIG. 13 is a schematic diagram of another apparatus for reconstructing an image according to an embodiment of the present invention. As shown in FIG. 13 , the apparatus 130 for reconstructing an image may include: a second sensing module 131 , a third acquiring module 132 , a fourth control module 133 , a second reading module 134 and a fourth processing module 135 .
第二感应模块131,用于感应操作对象在操作界面上的移动操作。The second sensing module 131 is used for sensing the movement operation of the operation object on the operation interface.
第三获取模块132,用于如果感应到移动操作中止,获取移动操作中止时操作对象在操作界面停留的停留位置。The third obtaining module 132 is configured to obtain the stop position where the operation object stays on the operation interface when the movement operation is stopped if it is sensed that the movement operation is stopped.
第四控制模块133,用于控制位于停留位置的虚拟视点过渡到预定位置,其中,预定位置为部署有相机的真实视点的位置。The fourth control module 133 is configured to control the virtual viewpoint located at the stop position to transition to a predetermined position, where the predetermined position is the position of the real viewpoint where the camera is deployed.
第二读取模块134,用于读取位于预定位置的相机的图像。The second reading module 134 is used for reading the image of the camera located at the predetermined position.
第四处理模块135,用于使用基于平面的图像变形模型处理图像,获取重建图像。The fourth processing module 135 is configured to process the image by using the plane-based image deformation model to obtain the reconstructed image.
此处需要说明的是,上述第二感应模块131、第三获取模块132、第四控制模块133、第二读取模块134和第四处理模块135对应于实施例1中的步骤S602至步骤S610,四个模块与对应的步骤所实现的实例和应用场景相同,但不限于上述实施例一所公开的内容。需要说明的是,上述模块作为装置的一部分可以运行在实施例一提供的计算机终端10中。It should be noted here that the above-mentioned second sensing module 131 , third acquisition module 132 , fourth control module 133 , second reading module 134 and fourth processing module 135 correspond to steps S602 to S610 in Embodiment 1 , the examples and application scenarios implemented by the four modules and the corresponding steps are the same, but are not limited to the content disclosed in the first embodiment above. It should be noted that, as a part of the apparatus, the above-mentioned modules may run in the computer terminal 10 provided in the first embodiment.
在该实施例的重建图像的装置中,获取虚拟视点在操作界面上发生位移后的目标位置,在虚拟视点从目标位置过渡到预定位置的情况下,可以使用图像变形模型处理虚拟视点位于预定位置上的图像,达到了获取重建图像的目的,由于图像变形模型的计算过 程简单,计算速度块,且适应低端机的计算资源,从而解决了在虚拟视点重建图像时的时效性差的技术问题,达到了提高在虚拟视点重建图像时的时效性的技术效果。In the apparatus for reconstructing an image of this embodiment, the target position after the virtual viewpoint is displaced on the operation interface is obtained, and when the virtual viewpoint transitions from the target position to the predetermined position, an image deformation model can be used to process the virtual viewpoint at the predetermined position. The image above can achieve the purpose of obtaining the reconstructed image. Because the calculation process of the image deformation model is simple, the calculation speed is block, and it adapts to the computing resources of the low-end computer, thus solving the technical problem of poor timeliness when reconstructing the image at the virtual viewpoint, The technical effect of improving the timeliness when reconstructing an image at a virtual viewpoint is achieved.
实施例4Example 4
本发明的实施例可以提供一种重建图像的系统,该重建图像的系统可以包括计算机终端,该计算机终端可以是计算机终端群中的任意一个计算机终端设备。可选地,在本实施例中,上述计算机终端也可以替换为移动终端等终端设备。Embodiments of the present invention may provide a system for reconstructing an image, and the system for reconstructing an image may include a computer terminal, and the computer terminal may be any computer terminal device in a computer terminal group. Optionally, in this embodiment, the above-mentioned computer terminal may also be replaced by a terminal device such as a mobile terminal.
可选地,在本实施例中,上述计算机终端可以位于计算机网络的多个网络设备中的至少一个网络设备。Optionally, in this embodiment, the above-mentioned computer terminal may be located in at least one network device among multiple network devices of a computer network.
在本实施例中,上述计算机终端可以执行重建图像的方法中以下步骤的程序代码:检测到操作界面上发生交互操作,获取虚拟视点在操作界面上发生位移后的目标位置;控制虚拟视点从目标位置过渡到预定位置,其中,预定位置为与虚拟视点的空间自由度位置重合的相机位置;使用图像变形模型处理虚拟视点位于预定位置上的图像,获取重建图像。In this embodiment, the above-mentioned computer terminal can execute the program code of the following steps in the method for reconstructing an image: detecting that an interactive operation occurs on the operation interface, obtaining the target position after the virtual viewpoint is displaced on the operation interface; controlling the virtual viewpoint from the target The position transitions to a predetermined position, where the predetermined position is the camera position coincident with the position of the spatial degree of freedom of the virtual viewpoint; the image deformation model is used to process the image of the virtual viewpoint at the predetermined position to obtain a reconstructed image.
可选地,图14是根据本发明实施例的一种计算机终端的结构框图。如图14所示,该计算机终端A可以包括:一个或多个(图中仅示出一个)处理器142、存储器144、以及传输装置146。Optionally, FIG. 14 is a structural block diagram of a computer terminal according to an embodiment of the present invention. As shown in FIG. 14 , the computer terminal A may include: one or more (only one is shown in the figure) processor 142 , memory 144 , and transmission device 146 .
其中,存储器可用于存储软件程序以及模块,如本发明实施例中的重建图像的方法和装置对应的程序指令/模块,处理器通过运行存储在存储器内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的重建图像的方法。存储器可包括高速随机存储器,还可以包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器可进一步包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至计算机终端A。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory can be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for reconstructing an image in the embodiment of the present invention, and the processor executes various functions by running the software programs and modules stored in the memory. Application and data processing, that is, to realize the above-mentioned method of reconstructing an image. The memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include memory located remotely from the processor, and these remote memories may be connected to the computer terminal A through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
处理器可以通过传输装置调用存储器存储的信息及应用程序,以执行下述步骤:检测到操作界面上发生交互操作,获取虚拟视点在操作界面上发生位移后的目标位置;控制虚拟视点从目标位置过渡到预定位置,其中,预定位置为与虚拟视点的空间自由度位置重合的相机位置;使用图像变形模型处理虚拟视点位于预定位置上的图像,获取重建图像。The processor can call the information and application programs stored in the memory through the transmission device to perform the following steps: detecting that an interactive operation occurs on the operation interface, obtaining the target position after the virtual viewpoint is displaced on the operation interface; controlling the virtual viewpoint from the target position Transition to a predetermined position, where the predetermined position is the camera position coincident with the position of the spatial degree of freedom of the virtual viewpoint; use the image deformation model to process the image with the virtual viewpoint at the predetermined position to obtain a reconstructed image.
可选地,上述处理器还可以执行如下步骤的程序代码:如果检测到目标位置处的交互操作中断,则启动执行虚拟视点从目标位置过渡到预定位置的过渡操作。Optionally, the above-mentioned processor may further execute the program code of the following steps: if it is detected that the interaction operation at the target position is interrupted, start and execute a transition operation of transitioning the virtual viewpoint from the target position to the predetermined position.
可选地,上述处理器还可以执行如下步骤的程序代码:在控制虚拟视点从目标位置过渡到预定位置的过程中,使用DIBR虚拟视点插值算法,生成过渡图像帧的插值;基于过渡图像帧的插值,来重建过渡过程中的图像。Optionally, the above-mentioned processor can also execute the program code of the following steps: in the process of controlling the virtual viewpoint to transition from the target position to the predetermined position, use the DIBR virtual viewpoint interpolation algorithm to generate the interpolation of the transition image frame; Interpolate to reconstruct the image during transition.
可选地,上述处理器还可以执行如下步骤的程序代码:在控制虚拟视点从目标位置 过渡到预定位置之后,调用Warping图像变形算法,切换为使用图像变形模型来进行图像重建。Optionally, the above-mentioned processor can also execute the program code of the following steps: after controlling the virtual viewpoint to transition from the target position to the predetermined position, call the Warping image warping algorithm to switch to use the image warping model for image reconstruction.
可选地,上述处理器还可以执行如下步骤的程序代码:基于虚拟视点所处的预定位置,从相机上读取到对应的图像;根据虚拟视点所在的空间坐标系上的旋转自由度,使用图像变形模型来处理读取到的图像。Optionally, the above-mentioned processor can also execute the program code of the following steps: based on the predetermined position where the virtual viewpoint is located, read the corresponding image from the camera; Image warping model to process the read image.
可选地,上述处理器还可以执行如下步骤的程序代码:在控制虚拟视点从目标位置过渡到预定位置之前,获取虚拟视点当前所在的目标位置与预定位置之间的间距;如果间距超过阈值,则控制虚拟视点按照预设的相机优先级,从目标位置移动到优先级最高的相机所在的视点位置;如果间距未超过阈值,则执行虚拟视点从目标位置过渡到预定位置的步骤。Optionally, the above-mentioned processor can also execute the program code of the following steps: before controlling the virtual viewpoint to transition from the target position to the predetermined position, obtain the distance between the target position where the virtual viewpoint is currently located and the predetermined position; if the distance exceeds a threshold, Then control the virtual viewpoint to move from the target position to the viewpoint position where the camera with the highest priority is located according to the preset camera priority; if the distance does not exceed the threshold, execute the step of transitioning the virtual viewpoint from the target position to the predetermined position.
可选地,上述处理器还可以执行如下步骤的程序代码:在检测到操作界面上发生交互操作之后,弹出用于指示至少一个选择控件的提示信息;通过触发任意一个选择控件,选择重建图像的显示分辨率。Optionally, the above-mentioned processor can also execute the program code of the following steps: after detecting that an interactive operation occurs on the operation interface, pop up prompt information for indicating at least one selection control; by triggering any selection control, select the reconstructed image. display resolution.
作为一种可选的示例,处理器可以通过传输装置调用存储器存储的信息及应用程序,以执行下述步骤:检测到操作界面上发生控制虚拟视点从第一位置移动到第二位置的交互操作;控制虚拟视点从第二位置过渡到第三位置,其中,第三位置为部署有相机的真实视点的位置;读取位于第三位置的相机的图像;使用基于平面的图像变形模型处理图像,获取重建图像。As an optional example, the processor may call the information and the application program stored in the memory through the transmission device to perform the following steps: detecting that an interactive operation of controlling the virtual viewpoint to move from the first position to the second position occurs on the operation interface control the virtual viewpoint to transition from a second position to a third position, where the third position is the position of the real viewpoint where the camera is deployed; read the image of the camera at the third position; process the image using a plane-based image warping model, Acquire reconstructed images.
可选地,上述处理器还可以执行如下步骤的程序代码:选择距离第二位置最近的真实视点位置作为第三位置。Optionally, the above-mentioned processor may further execute the program code of the following steps: selecting the position of the real viewpoint closest to the second position as the third position.
作为一种可选的示例,处理器可以通过传输装置调用存储器存储的信息及应用程序,以执行下述步骤:感应到操作对象在操作界面上的交互操作;响应交互操作,显示虚拟视点基于交互操作在操作界面上发生的位移,其中,位移为从第一位置移动到第二位置;显示虚拟视点从第二位置过渡到第三位置,其中,第三位置为部署有相机的真实视点的位置;显示使用基于平面的图像变形模型处理目标图像而生成的重建图像,其中,目标图像为位于第三位置的相机捕获的图像。As an optional example, the processor may call the information and the application program stored in the memory through the transmission device to perform the following steps: sensing an interaction operation of the operation object on the operation interface; responding to the interaction operation, displaying the virtual viewpoint based on the interaction The displacement generated by the operation on the operation interface, wherein the displacement is the movement from the first position to the second position; the transition of the displayed virtual viewpoint from the second position to the third position, wherein the third position is the position of the real viewpoint where the camera is deployed ; displaying a reconstructed image generated by processing the target image using a plane-based image warping model, where the target image is an image captured by a camera located at a third position.
作为一种可选的示例,处理器可以通过传输装置调用存储器存储的信息及应用程序,以执行下述步骤:感应操作对象在操作界面上的移动操作;如果感应到移动操作中止,获取移动操作中止时操作对象在操作界面停留的停留位置;控制位于停留位置的虚拟视点过渡到预定位置,其中,预定位置为与虚拟视点的空间自由度位置重合的相机位置;使用基于平面的图像变形模型处理相机在预定位置的图像,获取重建图像。As an optional example, the processor may call the information and the application program stored in the memory through the transmission device to perform the following steps: sensing the movement operation of the operation object on the operation interface; if it senses that the movement operation is terminated, obtain the movement operation The stop position where the operation object stays on the operation interface when it is aborted; control the virtual viewpoint at the stop position to transition to a predetermined position, where the predetermined position is the camera position that coincides with the position of the spatial degrees of freedom of the virtual viewpoint; use a plane-based image deformation model to process The image of the camera at the predetermined position, and the reconstructed image is obtained.
作为一种可选的示例,处理器可以通过传输装置调用存储器存储的信息及应用程序,以执行下述步骤:感应操作对象在操作界面上的移动操作;如果感应到移动操作中止,获取移动操作中止时操作对象在操作界面停留的停留位置;控制位于停留位置的虚拟视 点过渡到预定位置,其中,预定位置为部署有相机的真实视点的位置;读取位于预定位置的相机的图像;使用基于平面的图像变形模型处理图像,获取重建图像。As an optional example, the processor may call the information and the application program stored in the memory through the transmission device to perform the following steps: sensing the movement operation of the operation object on the operation interface; if it senses that the movement operation is terminated, obtain the movement operation The stop position where the operation object stays on the operation interface when it is suspended; control the virtual viewpoint at the stop position to transition to a predetermined position, wherein the predetermined position is the position of the real viewpoint where the camera is deployed; read the image of the camera at the predetermined position; The planar image warping model processes the image to obtain a reconstructed image.
作为一种可选的示例,处理器可以通过传输装置调用存储器存储的信息及应用程序,以执行下述步骤:在直播过程中,检测到直播画面上接收到移动操作;获取虚拟视点在直播画面上发生位移后的目标位置;控制虚拟视点从目标位置移动到预定位置,其中,预定位置为与虚拟视点的空间自由度位置重合的相机位置;使用图像变形模型处理虚拟视点位于预定位置上的图像,获取重建图像。As an optional example, the processor may call the information and application programs stored in the memory through the transmission device to perform the following steps: during the live broadcast process, detecting that a moving operation is received on the live broadcast screen; obtaining a virtual viewpoint on the live broadcast screen control the virtual viewpoint to move from the target position to a predetermined position, wherein the predetermined position is the camera position that coincides with the position of the spatial degrees of freedom of the virtual viewpoint; use the image deformation model to process the image of the virtual viewpoint at the predetermined position , to obtain the reconstructed image.
采用本发明实施例,提供了一种重建图像的方法。通过检测到操作界面上发生交互操作,获取虚拟视点在操作界面上发生位移后的目标位置;控制虚拟视点从目标位置过渡到预定位置,其中,预定位置为与虚拟视点的空间自由度位置重合的相机位置;使用图像变形模型处理虚拟视点位于预定位置上的图像,获取重建图像。也就是说,获取虚拟视点在操作界面上发生位移后的目标位置,在虚拟视点从目标位置过渡到预定位置的情况下,可以使用图像变形模型处理虚拟视点位于预定位置上的图像,达到了获取重建图像的目的,由于图像变形模型的计算过程简单,计算速度块,且适应低端机的计算资源,从而解决了在虚拟视点重建图像时的时效性差的技术问题,达到了提高在虚拟视点重建图像时的时效性的技术效果。Using the embodiments of the present invention, a method for reconstructing an image is provided. By detecting the interactive operation on the operation interface, the target position after the virtual viewpoint is displaced on the operation interface is obtained; the virtual viewpoint is controlled to transition from the target position to a predetermined position, wherein the predetermined position is the position that coincides with the position of the spatial degrees of freedom of the virtual viewpoint Camera position; use the image deformation model to process the image with the virtual viewpoint at the predetermined position, and obtain the reconstructed image. That is to say, the target position after the virtual viewpoint is displaced on the operation interface is obtained. When the virtual viewpoint transitions from the target position to the predetermined position, the image deformation model can be used to process the image of the virtual viewpoint at the predetermined position, so as to obtain the The purpose of reconstructing the image, because the calculation process of the image deformation model is simple, the calculation speed is block, and it adapts to the computing resources of the low-end computer, so as to solve the technical problem of poor timeliness when reconstructing the image in the virtual viewpoint, and achieve the improvement of the reconstruction in the virtual viewpoint. Time-sensitive technical effects of images.
本领域普通技术人员可以理解,图14所示的结构仅为示意,计算机终端A也可以是智能手机(如Android手机、iOS手机等)、平板电脑、掌声电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备。图14其并不对上述计算机终端的结构造成限定。例如,计算机终端A还可包括比图14中所示更多或者更少的组件(如网络接口、显示装置等),或者具有与图14所示不同的配置。Those of ordinary skill in the art can understand that the structure shown in FIG. 14 is only a schematic diagram, and the computer terminal A can also be a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, an applause computer, and a mobile Internet device (Mobile Internet Devices, MID), PAD and other terminal equipment. FIG. 14 does not limit the structure of the above-mentioned computer terminal. For example, the computer terminal A may also include more or less components than those shown in FIG. 14 (eg, a network interface, a display device, etc.), or have a different configuration than that shown in FIG. 14 .
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令终端设备相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:闪存盘、只读存储器(Read-Only Memory,ROM)、随机存取器(Random Access Memory,RAM)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can Including: flash disk, read-only memory (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), magnetic disk or optical disk, etc.
实施例5Example 5
本发明的实施例还提供了一种计算机可读存储介质。可选地,在本实施例中,上述存储介质可以用于保存上述实施例一所提供的重建图像的方法所执行的程序代码。Embodiments of the present invention also provide a computer-readable storage medium. Optionally, in this embodiment, the above-mentioned storage medium may be used to store the program code executed by the method for reconstructing an image provided in the above-mentioned first embodiment.
可选地,在本实施例中,上述计算机可读存储介质可以位于计算机网络中计算机终端群中的任意一个计算机终端中,或者位于移动终端群中的任意一个移动终端中。Optionally, in this embodiment, the computer-readable storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.
可选地,在本实施例中,计算机可读存储介质被设置为存储用于执行以下步骤的程序代码:检测到操作界面上发生交互操作,获取虚拟视点在操作界面上发生位移后的目标位置;控制虚拟视点从目标位置过渡到预定位置,其中,预定位置为与虚拟视点的空间自由度位置重合的相机位置;使用图像变形模型处理虚拟视点位于预定位置上的图像, 获取重建图像。Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for performing the following steps: detecting that an interactive operation occurs on the operation interface, and acquiring the target position after the virtual viewpoint is displaced on the operation interface. ; Control the virtual viewpoint to transition from the target position to a predetermined position, wherein the predetermined position is the camera position coincident with the position of the spatial degrees of freedom of the virtual viewpoint; use the image deformation model to process the image of the virtual viewpoint at the predetermined position, and obtain the reconstructed image.
可选地,计算机可读存储介质还被设置为存储用于执行以下步骤的程序代码:如果检测到目标位置处的交互操作中断,则启动执行虚拟视点从目标位置过渡到预定位置的过渡操作。Optionally, the computer-readable storage medium is further configured to store program code for performing the steps of: initiating performing a transition operation of transitioning the virtual viewpoint from the target position to the predetermined position if an interruption of the interactive operation at the target position is detected.
可选地,计算机可读存储介质还被设置为存储用于执行以下步骤的程序代码:在控制虚拟视点从目标位置过渡到预定位置的过程中,使用DIBR虚拟视点插值算法,生成过渡图像帧的插值;基于过渡图像帧的插值,来重建过渡过程中的图像。Optionally, the computer-readable storage medium is further configured to store program code for performing the following steps: in the process of controlling the virtual viewpoint to transition from the target position to the predetermined position, use the DIBR virtual viewpoint interpolation algorithm to generate a transition image frame. Interpolation; based on the interpolation of the transition image frames, to reconstruct the image in the transition process.
可选地,计算机可读存储介质还被设置为存储用于执行以下步骤的程序代码:在控制虚拟视点从目标位置过渡到预定位置之后,调用Warping图像变形算法,切换为使用图像变形模型来进行图像重建。Optionally, the computer-readable storage medium is further configured to store program codes for executing the following steps: after controlling the virtual viewpoint to transition from the target position to the predetermined position, call the Warping image warping algorithm, and switch to use the image warping model to perform the transformation. Image reconstruction.
可选地,计算机可读存储介质还被设置为存储用于执行以下步骤的程序代码:基于虚拟视点所处的预定位置,从相机上读取到对应的图像;根据虚拟视点所在的空间坐标系上的旋转自由度,使用图像变形模型来处理读取到的图像。Optionally, the computer-readable storage medium is further configured to store program codes for performing the following steps: reading a corresponding image from the camera based on the predetermined position where the virtual viewpoint is located; according to the spatial coordinate system where the virtual viewpoint is located The rotational degrees of freedom on the image warping model are used to process the read image.
可选地,计算机可读存储介质还被设置为存储用于执行以下步骤的程序代码:在控制虚拟视点从目标位置过渡到预定位置之前,获取虚拟视点当前所在的目标位置与预定位置之间的间距;如果间距超过阈值,则控制虚拟视点按照预设的相机优先级,从目标位置移动到优先级最高的相机所在的视点位置;如果间距未超过阈值,则执行虚拟视点从目标位置过渡到预定位置的步骤。Optionally, the computer-readable storage medium is further configured to store program codes for executing the following steps: before controlling the virtual viewpoint to transition from the target position to the predetermined position, acquiring the distance between the target position where the virtual viewpoint is currently located and the predetermined position. Distance; if the distance exceeds the threshold, control the virtual viewpoint to move from the target position to the viewpoint position where the camera with the highest priority is located according to the preset camera priority; if the distance does not exceed the threshold, execute the virtual viewpoint transition from the target position to the predetermined location steps.
可选地,计算机可读存储介质还被设置为存储用于执行以下步骤的程序代码:在检测到操作界面上发生交互操作之后,弹出用于指示至少一个选择控件的提示信息;通过触发任意一个选择控件,选择重建图像的显示分辨率。Optionally, the computer-readable storage medium is further configured to store program codes for executing the following steps: after detecting that an interactive operation occurs on the operation interface, pop up prompt information for indicating at least one selection control; by triggering any one of the Select the control to choose the display resolution of the reconstructed image.
作为一种可选的示例,计算机可读存储介质被设置为存储用于执行以下步骤的程序代码:检测到操作界面上发生控制虚拟视点从第一位置移动到第二位置的交互操作;控制虚拟视点从第二位置过渡到第三位置,其中,第三位置为部署有相机的真实视点的位置;读取位于第三位置的相机的图像;使用基于平面的图像变形模型处理图像,获取重建图像。As an optional example, the computer-readable storage medium is configured to store program codes for performing the following steps: detecting that an interactive operation of controlling the virtual viewpoint to move from the first position to the second position occurs on the operation interface; controlling the virtual The viewpoint transitions from the second position to the third position, where the third position is the position of the real viewpoint where the camera is deployed; the image of the camera at the third position is read; the image is processed using a plane-based image warping model to obtain a reconstructed image .
可选地,计算机可读存储介质还被设置为存储用于执行以下步骤的程序代码:选择距离第二位置最近的真实视点位置作为第三位置。Optionally, the computer-readable storage medium is further configured to store program code for performing the steps of: selecting a real viewpoint position closest to the second position as the third position.
作为一种可选的示例,计算机可读存储介质被设置为存储用于执行以下步骤的程序代码:感应到操作对象在操作界面上的交互操作;响应交互操作,显示虚拟视点基于交互操作在操作界面上发生的位移,其中,位移为从第一位置移动到第二位置;显示虚拟视点从第二位置过渡到第三位置,其中,第三位置为部署有相机的真实视点的位置;显示使用基于平面的图像变形模型处理目标图像而生成的重建图像,其中,目标图像为位于第三位置的相机捕获的图像。As an optional example, the computer-readable storage medium is configured to store program codes for executing the following steps: sensing an interactive operation of the operating object on the operating interface; responding to the interactive operation, displaying that the virtual viewpoint is operating based on the interactive operation. The displacement that occurs on the interface, wherein the displacement is moving from the first position to the second position; the transition of the virtual viewpoint from the second position to the third position is displayed, wherein the third position is the position of the real viewpoint where the camera is deployed; the display uses A reconstructed image generated by processing a target image based on a plane-based image deformation model, wherein the target image is an image captured by a camera located at a third position.
作为一种可选的示例,计算机可读存储介质被设置为存储用于执行以下步骤的程序代码:感应操作对象在操作界面上的移动操作;如果感应到移动操作中止,获取移动操作中止时操作对象在操作界面停留的停留位置;控制位于停留位置的虚拟视点过渡到预定位置,其中,预定位置为与虚拟视点的空间自由度位置重合的相机位置;使用基于平面的图像变形模型处理相机在预定位置的图像,获取重建图像。As an optional example, the computer-readable storage medium is configured to store program codes for performing the following steps: sensing the movement operation of the operation object on the operation interface; if the suspension of the movement operation is sensed, obtaining the operation when the movement operation is stopped The stop position where the object stays on the operation interface; control the virtual viewpoint located at the stop position to transition to a predetermined position, where the predetermined position is the camera position that coincides with the position of the spatial degree of freedom of the virtual viewpoint; use the plane-based image deformation model to process the camera at the predetermined position. position of the image to obtain a reconstructed image.
作为一种可选的示例,计算机可读存储介质被设置为存储用于执行以下步骤的程序代码:感应操作对象在操作界面上的移动操作;如果感应到移动操作中止,获取移动操作中止时操作对象在操作界面停留的停留位置;控制位于停留位置的虚拟视点过渡到预定位置,其中,预定位置为部署有相机的真实视点的位置;读取位于预定位置的相机的图像;使用基于平面的图像变形模型处理图像,获取重建图像。As an optional example, the computer-readable storage medium is configured to store program codes for performing the following steps: sensing the movement operation of the operation object on the operation interface; if the suspension of the movement operation is sensed, obtaining the operation when the movement operation is stopped The stop position where the object stays on the operation interface; control the virtual viewpoint at the stop position to transition to a predetermined position, where the predetermined position is the position of the real viewpoint where the camera is deployed; read the image of the camera at the predetermined position; use the plane-based image The deformed model processes the image to obtain a reconstructed image.
作为一种可选的示例,计算机可读存储介质被设置为存储用于执行以下步骤的程序代码:在直播过程中,检测到直播画面上接收到移动操作;获取虚拟视点在直播画面上发生位移后的目标位置;控制虚拟视点从目标位置移动到预定位置,其中,预定位置为与虚拟视点的空间自由度位置重合的相机位置;使用图像变形模型处理虚拟视点位于预定位置上的图像,获取重建图像。As an optional example, the computer-readable storage medium is configured to store program codes for executing the following steps: during the live broadcast, it is detected that a movement operation is received on the live broadcast screen; the virtual viewpoint is obtained to shift on the live broadcast screen control the virtual viewpoint to move from the target position to a predetermined position, where the predetermined position is the camera position that coincides with the position of the spatial degrees of freedom of the virtual viewpoint; use the image deformation model to process the image with the virtual viewpoint at the predetermined position, and obtain the reconstruction image.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages or disadvantages of the embodiments.
在本发明的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的技术内容,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed technical content 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, and there may be other division methods in actual implementation, for example, multiple units or components may be combined or Integration into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of units or modules, and may be in electrical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式 体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or 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 for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes .
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above are only the preferred embodiments of the present invention. It should be pointed out that for those skilled in the art, without departing from the principles of the present invention, several improvements and modifications can be made. It should be regarded as the protection scope of the present invention.

Claims (21)

  1. 一种重建图像的方法,包括:A method of reconstructing an image, comprising:
    检测到操作界面上发生交互操作,获取虚拟视点在所述操作界面上发生位移后的目标位置;It is detected that an interactive operation occurs on the operation interface, and the target position after the virtual viewpoint is displaced on the operation interface is obtained;
    控制所述虚拟视点从所述目标位置过渡到预定位置,其中,所述预定位置为与所述虚拟视点的空间自由度位置重合的相机位置;controlling the virtual viewpoint to transition from the target position to a predetermined position, wherein the predetermined position is a camera position coincident with the position of the spatial degrees of freedom of the virtual viewpoint;
    使用图像变形模型处理所述虚拟视点位于所述预定位置上的图像,获取重建图像。Using an image deformation model to process the image where the virtual viewpoint is located at the predetermined position to obtain a reconstructed image.
  2. 根据权利要求1所述的方法,其中,如果检测到所述目标位置处的交互操作中断,则启动执行所述虚拟视点从所述目标位置过渡到所述预定位置的过渡操作。The method according to claim 1, wherein if the interruption of the interactive operation at the target position is detected, a transition operation for performing the transition of the virtual viewpoint from the target position to the predetermined position is initiated.
  3. 根据权利要求1所述的方法,其中,在控制所述虚拟视点从所述目标位置过渡到预定位置的过程中,所述方法还包括:The method according to claim 1, wherein, in the process of controlling the virtual viewpoint to transition from the target position to a predetermined position, the method further comprises:
    使用DIBR虚拟视点插值算法,生成过渡图像帧的插值;Use the DIBR virtual viewpoint interpolation algorithm to generate the interpolation of the transition image frame;
    基于所述过渡图像帧的插值,来重建过渡过程中的图像。An image in the transition process is reconstructed based on the interpolation of the transition image frames.
  4. 根据权利要求3所述的方法,其中,在控制所述虚拟视点从所述目标位置过渡到预定位置之后,调用Warping图像变形算法,切换为使用所述图像变形模型来进行图像重建。The method according to claim 3, wherein after controlling the virtual viewpoint to transition from the target position to a predetermined position, a Warping image warping algorithm is invoked to switch to use the image warping model for image reconstruction.
  5. 根据权利要求1至4中任意一项所述的方法,其中,使用图像变形模型处理虚拟视点位于所述预定位置上的图像,包括:The method according to any one of claims 1 to 4, wherein, using an image deformation model to process the image with the virtual viewpoint at the predetermined position, comprising:
    基于所述虚拟视点所处的预定位置,从所述相机上读取到对应的图像;Based on the predetermined position where the virtual viewpoint is located, a corresponding image is read from the camera;
    根据所述虚拟视点所在的空间坐标系上的旋转自由度,使用所述图像变形模型来处理所述读取到的图像。The read image is processed by using the image deformation model according to the rotational degrees of freedom on the space coordinate system where the virtual viewpoint is located.
  6. 根据权利要求5所述的方法,其中,所述空间自由度为所述虚拟视点位于所述空间坐标系上的坐标值,所述旋转自由度为围绕所述空间坐标系的坐标轴旋转的自由度。The method according to claim 5, wherein the spatial degree of freedom is the coordinate value of the virtual viewpoint on the spatial coordinate system, and the rotational degree of freedom is the freedom of rotation around the coordinate axis of the spatial coordinate system Spend.
  7. 根据权利要求1所述的方法,其中,在控制所述虚拟视点从所述目标位置过渡到预定位置之前,所述方法还包括:The method of claim 1, wherein before controlling the virtual viewpoint to transition from the target position to a predetermined position, the method further comprises:
    获取所述虚拟视点当前所在的所述目标位置与所述预定位置之间的间距;obtaining the distance between the target position where the virtual viewpoint is currently located and the predetermined position;
    如果所述间距超过阈值,则控制所述虚拟视点按照预设的相机优先级,从所述目标位置移动到优先级最高的相机所在的视点位置;If the distance exceeds the threshold, controlling the virtual viewpoint to move from the target position to the viewpoint position where the camera with the highest priority is located according to the preset camera priority;
    如果所述间距未超过所述阈值,则执行所述虚拟视点从所述目标位置过渡到预定位置的步骤。If the distance does not exceed the threshold, the step of transitioning the virtual viewpoint from the target position to a predetermined position is performed.
  8. 根据权利要求1所述的方法,其中,在检测到操作界面上发生交互操作之后,所述方法还包括:The method according to claim 1, wherein after detecting that an interactive operation occurs on the operation interface, the method further comprises:
    弹出用于指示至少一个选择控件的提示信息;pop up a prompt message indicating at least one selection control;
    通过触发任意一个选择控件,选择所述重建图像的显示分辨率。By triggering any one of the selection controls, the display resolution of the reconstructed image is selected.
  9. 一种重建图像的方法,包括:A method of reconstructing an image, comprising:
    在直播过程中,检测到直播画面上接收到移动操作;During the live broadcast, it is detected that a mobile operation is received on the live broadcast screen;
    获取虚拟视点在所述直播画面上发生位移后的目标位置;acquiring the target position after the virtual viewpoint is displaced on the live screen;
    控制所述虚拟视点从所述目标位置移动到预定位置,其中,所述预定位置为与所述虚拟视点的空间自由度位置重合的相机位置;controlling the virtual viewpoint to move from the target position to a predetermined position, wherein the predetermined position is a camera position coincident with the position of the spatial degree of freedom of the virtual viewpoint;
    使用图像变形模型处理所述虚拟视点位于所述预定位置上的图像,获取重建图像。Using an image deformation model to process the image where the virtual viewpoint is located at the predetermined position to obtain a reconstructed image.
  10. 一种重建图像的方法,其中,包括:A method of reconstructing an image, comprising:
    检测到操作界面上发生控制虚拟视点从第一位置移动到第二位置的交互操作;Detecting that an interactive operation of controlling the virtual viewpoint to move from the first position to the second position occurs on the operation interface;
    控制所述虚拟视点从所述第二位置过渡到第三位置,其中,所述第三位置为部署有相机的真实视点的位置;controlling the virtual viewpoint to transition from the second position to a third position, wherein the third position is the position of the real viewpoint where the camera is deployed;
    读取位于所述第三位置的相机的图像;reading the image of the camera located at the third position;
    使用基于平面的图像变形模型处理所述图像,获取重建图像。The image is processed using a plane-based image warping model to obtain a reconstructed image.
  11. 根据权利要求10所述的方法,其中,选择距离所述第二位置最近的真实视点位置作为所述第三位置。The method of claim 10, wherein a true viewpoint position closest to the second position is selected as the third position.
  12. 一种重建图像的方法,其中,包括:A method of reconstructing an image, comprising:
    感应到操作对象在操作界面上的交互操作;Sensing the interactive operation of the operation object on the operation interface;
    响应所述交互操作,显示虚拟视点基于所述交互操作在所述操作界面上发生的位移,其中,所述位移为从第一位置移动到第二位置;In response to the interactive operation, displaying the displacement of the virtual viewpoint on the operation interface based on the interactive operation, wherein the displacement is moving from a first position to a second position;
    显示所述虚拟视点从所述第二位置过渡到第三位置,其中,所述第三位置为部署有相机的真实视点的位置;displaying that the virtual viewpoint transitions from the second position to a third position, wherein the third position is the position of the real viewpoint where the camera is deployed;
    显示使用基于平面的图像变形模型处理目标图像而生成的重建图像,其中,所述目标图像为位于所述第三位置的相机捕获的图像。A reconstructed image generated by processing a target image using a plane-based image warping model is displayed, wherein the target image is an image captured by a camera located at the third position.
  13. 一种重建图像的方法,其中,包括:A method of reconstructing an image, comprising:
    感应操作对象在操作界面上的移动操作;Sensing the movement of the operation object on the operation interface;
    如果感应到所述移动操作中止,获取所述移动操作中止时所述操作对象在所述操作界面停留的停留位置;If it is sensed that the movement operation is suspended, obtain the stop position of the operation object on the operation interface when the movement operation is suspended;
    控制位于所述停留位置的虚拟视点过渡到预定位置,其中,所述预定位置为与所述虚拟视点的空间自由度位置重合的相机位置;controlling the virtual viewpoint located at the stop position to transition to a predetermined position, wherein the predetermined position is a camera position coincident with the position of the spatial degree of freedom of the virtual viewpoint;
    使用基于平面的图像变形模型处理所述相机在所述预定位置的图像,获取重建图像。The image of the camera at the predetermined position is processed using a plane-based image warping model to obtain a reconstructed image.
  14. 一种重建图像的方法,其中,包括:A method of reconstructing an image, comprising:
    感应操作对象在操作界面上的移动操作;Sensing the movement of the operation object on the operation interface;
    如果感应到所述移动操作中止,获取所述移动操作中止时所述操作对象在所述操作界面停留的停留位置;If it is sensed that the movement operation is suspended, obtain the stop position of the operation object on the operation interface when the movement operation is suspended;
    控制位于所述停留位置的虚拟视点过渡到预定位置,其中,所述预定位置为部署有相机的真实视点的位置;controlling the virtual viewpoint located at the stop position to transition to a predetermined position, wherein the predetermined position is the position of the real viewpoint where the camera is deployed;
    读取位于所述预定位置的相机的图像;reading the image of the camera located at the predetermined position;
    使用基于平面的图像变形模型处理所述图像,获取重建图像。The image is processed using a plane-based image warping model to obtain a reconstructed image.
  15. 一种重建图像的装置,其中,包括:A device for reconstructing an image, comprising:
    第一获取模块,用于检测到操作界面上发生交互操作,获取虚拟视点在所述操作界面上发生位移后的目标位置;a first acquisition module, configured to detect that an interactive operation occurs on the operation interface, and acquire the target position after the virtual viewpoint is displaced on the operation interface;
    第一控制模块,用于控制所述虚拟视点从所述目标位置过渡到预定位置,其中,所述预定位置为与所述虚拟视点的空间自由度位置重合的相机位置;a first control module, configured to control the virtual viewpoint to transition from the target position to a predetermined position, wherein the predetermined position is a camera position coincident with the position of the spatial degree of freedom of the virtual viewpoint;
    第二处理模块,用于使用图像变形模型处理所述虚拟视点位于所述预定位置上的图像,获取重建图像。The second processing module is configured to use an image deformation model to process the image where the virtual viewpoint is located at the predetermined position to obtain a reconstructed image.
  16. 一种重建图像的装置,其中,包括:A device for reconstructing an image, comprising:
    检测模块,用于检测到操作界面上发生控制虚拟视点从第一位置移动到第二位置的交互操作;a detection module, configured to detect that an interactive operation of controlling the virtual viewpoint to move from the first position to the second position occurs on the operation interface;
    第二控制模块,用于控制所述虚拟视点从所述第二位置过渡到第三位置,其中,所述第三位置为部署有相机的真实视点的位置;a second control module, configured to control the virtual viewpoint to transition from the second position to a third position, wherein the third position is the position of the real viewpoint where the camera is deployed;
    第一读取模块,用于读取位于所述第三位置的相机的图像;a first reading module for reading the image of the camera located at the third position;
    第二处理模块,用于使用基于平面的图像变形模型处理所述图像,获取重建图像。The second processing module is configured to process the image by using a plane-based image deformation model to obtain a reconstructed image.
  17. 一种重建图像的装置,其中,包括:A device for reconstructing an image, comprising:
    第一感应模块,用于感应操作对象在操作界面上的移动操作;The first sensing module is used for sensing the movement operation of the operation object on the operation interface;
    第二获取模块,用于如果感应到所述移动操作中止,获取所述移动操作中止时所述操作对象在所述操作界面停留的停留位置;a second obtaining module, configured to obtain the stop position of the operation object on the operation interface when the movement operation is stopped when it is sensed that the movement operation is stopped;
    第三控制模块,用于控制位于所述停留位置的虚拟视点过渡到预定位置,其中,所述预定位置为与所述虚拟视点的空间自由度位置重合的相机位置;a third control module, configured to control the virtual viewpoint located at the stop position to transition to a predetermined position, wherein the predetermined position is a camera position coincident with the position of the spatial degree of freedom of the virtual viewpoint;
    第三处理模块,用于使用基于平面的图像变形模型处理所述相机在所述预定位置的图像,获取重建图像。The third processing module is configured to process the image of the camera at the predetermined position by using a plane-based image deformation model to obtain a reconstructed image.
  18. 一种重建图像的装置,其中,包括:A device for reconstructing an image, comprising:
    第二感应模块,用于感应操作对象在操作界面上的移动操作;The second sensing module is used for sensing the movement operation of the operation object on the operation interface;
    第三获取模块,用于如果感应到所述移动操作中止,获取所述移动操作中止时所述操作对象在所述操作界面停留的停留位置;a third obtaining module, configured to obtain the stop position of the operation object on the operation interface when the movement operation is stopped if it is sensed that the movement operation is stopped;
    第四控制模块,用于控制位于所述停留位置的虚拟视点过渡到预定位置,其中,所述预定位置为部署有相机的真实视点的位置;a fourth control module, configured to control the virtual viewpoint located at the stay position to transition to a predetermined position, wherein the predetermined position is the position of the real viewpoint where the camera is deployed;
    第二读取模块,用于读取位于所述预定位置的相机的图像;a second reading module, configured to read the image of the camera located at the predetermined position;
    第四处理模块,用于使用基于平面的图像变形模型处理所述图像,获取重建图像。The fourth processing module is configured to process the image by using a plane-based image deformation model to obtain a reconstructed image.
  19. 一种计算机可读存储介质,其中,所述计算机可读存储介质包括存储的程序,其中,在所述程序被处理器运行时控制所述计算机可读存储介质所在设备执行权利要求1至14中任意一项所述的方法。A computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is run by a processor, a device where the computer-readable storage medium is located is controlled to execute the programs in claims 1 to 14 any of the methods described.
  20. 一种处理器,其中,所述处理器用于运行程序,其中,所述程序运行时执行权利要求1至14中任意一项所述的方法。A processor, wherein the processor is used to run a program, wherein the program executes the method of any one of claims 1 to 14 when the program is run.
  21. 一种重建图像的系统,其中,包括:A system for reconstructing an image, comprising:
    处理器;processor;
    存储器,与所述处理器相连接,用于为所述处理器提供处理以下处理步骤的指令:a memory, connected to the processor, for providing the processor with instructions for processing the following processing steps:
    检测到操作界面上发生交互操作,获取虚拟视点在所述操作界面上发生位移后的目标位置;控制所述虚拟视点从所述目标位置过渡到预定位置,其中,所述预定位置为与所述虚拟视点的空间自由度位置重合的相机位置;使用图像变形模型处理所述虚拟视点位于所述预定位置上的图像,获取重建图像。Detecting that an interactive operation occurs on the operation interface, and obtaining a target position after the virtual viewpoint is displaced on the operation interface; controlling the virtual viewpoint to transition from the target position to a predetermined position, wherein the predetermined position is the same as the target position. The position of the camera where the spatial degrees of freedom of the virtual viewpoint coincide; the image deformation model is used to process the image where the virtual viewpoint is located at the predetermined position to obtain a reconstructed image.
PCT/CN2021/113469 2020-08-24 2021-08-19 Image reconstruction method and apparatus, and computer readable storage medium, and processor WO2022042413A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010857911.1 2020-08-24
CN202010857911.1A CN114092315A (en) 2020-08-24 2020-08-24 Method, apparatus, computer-readable storage medium and processor for reconstructing an image

Publications (1)

Publication Number Publication Date
WO2022042413A1 true WO2022042413A1 (en) 2022-03-03

Family

ID=80295554

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/113469 WO2022042413A1 (en) 2020-08-24 2021-08-19 Image reconstruction method and apparatus, and computer readable storage medium, and processor

Country Status (2)

Country Link
CN (1) CN114092315A (en)
WO (1) WO2022042413A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6327381B1 (en) * 1994-12-29 2001-12-04 Worldscape, Llc Image transformation and synthesis methods
CN101754042A (en) * 2008-10-30 2010-06-23 华为终端有限公司 Image reconstruction method and image reconstruction system
CN102592275A (en) * 2011-12-16 2012-07-18 天津大学 Virtual viewpoint rendering method
JP2019067419A (en) * 2018-11-08 2019-04-25 キヤノン株式会社 Image processing device, image processing method, and program
CN109769109A (en) * 2019-03-05 2019-05-17 东北大学 Method and system based on virtual view synthesis drawing three-dimensional object

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6327381B1 (en) * 1994-12-29 2001-12-04 Worldscape, Llc Image transformation and synthesis methods
CN101754042A (en) * 2008-10-30 2010-06-23 华为终端有限公司 Image reconstruction method and image reconstruction system
CN102592275A (en) * 2011-12-16 2012-07-18 天津大学 Virtual viewpoint rendering method
JP2019067419A (en) * 2018-11-08 2019-04-25 キヤノン株式会社 Image processing device, image processing method, and program
CN109769109A (en) * 2019-03-05 2019-05-17 东北大学 Method and system based on virtual view synthesis drawing three-dimensional object

Also Published As

Publication number Publication date
CN114092315A (en) 2022-02-25

Similar Documents

Publication Publication Date Title
US20200286279A1 (en) Method, apparatus, medium, and device for processing multi-angle free-perspective image data
US11218649B2 (en) Photographing method, apparatus, and device
US10389938B2 (en) Device and method for panoramic image processing
US9965026B2 (en) Interactive video display method, device, and system
US9344758B2 (en) Video stream processing apparatus, method for displaying mirror video, and display device
US20150172643A1 (en) Electronic Device and Recording Medium
US20230008199A1 (en) Remote Assistance Method and System, and Electronic Device
TW201507413A (en) Hybrid visual communication
US11461942B2 (en) Generating and signaling transition between panoramic images
CN111669561B (en) Multi-angle free view image data processing method and device, medium and equipment
WO2019028855A1 (en) Virtual display device, intelligent interaction method, and cloud server
JP2024509069A (en) Game screen display methods and devices, electronic devices, and computer programs
JP2019512177A (en) Device and related method
CN110928509A (en) Display control method, display control device, storage medium, and communication terminal
WO2022042413A1 (en) Image reconstruction method and apparatus, and computer readable storage medium, and processor
CN113066189A (en) Augmented reality equipment and virtual and real object shielding display method
US20200043222A1 (en) Image processing method and image processing device
CN111669570B (en) Multi-angle free view video data processing method and device, medium and equipment
US20230091348A1 (en) Method and device for transmitting image content using edge computing service
US20120206568A1 (en) Computing device having multiple image capture devices and image modes
CN111669568B (en) Multi-angle free view angle interaction method and device, medium, terminal and equipment
CN113810734A (en) Video fusion method, device, equipment, system and computer readable storage medium
WO2022199299A1 (en) Display method and apparatus, and electronic device and storage medium
WO2018023216A1 (en) Method for controlling multi-viewing angle image and associated device
CN114283055A (en) Virtual reality equipment and picture display method

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: 21860251

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21860251

Country of ref document: EP

Kind code of ref document: A1