Image processing method and apparatus, and device, computer-readable storage medium and product
Abstract
Provided in the embodiments of the present disclosure are an image processing method and apparatus, and a device, a computer-readable storage medium and a product. The method comprises: acquiring at least one target object area image in a target image frame corresponding to a virtual-reality live broadcast; performing a distortion correction operation on the at least one target object area image, so as to obtain at least one distortion-free image; performing an image processing operation on the basis of the at least one distortion-free image, so as to obtain at least one processed image; performing an inverse transformation operation of the distortion correction operation on the at least one processed image, so as to obtain at least one inversely transformed image; and replacing the at least one target object area image in the target image frame with the at least one inversely transformed image, so as to obtain a target image frame.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 11 · Forward citations: 0.
Claims (20 — 3 Independent, 17 Dependent)
- Claim 1Independent Claim
An image processing method, comprising: acquiring at least one target object area image in a target image frame corresponding to virtual reality live streaming in response to a target object processing request triggered by a user in the virtual reality live streaming process; performing a distortion correction operation on the at least one target object area image to obtain at least one distortion-free image; performing an image processing operation based on the at least one distortion-free image to obtain at least one processed image; performing an inverse transformation operation of the distortion correction operation on the at least one processed image to obtain at least one inversely transformed image; and replacing the at least one target object area image in the target image frame with the at least one inversely transformed image to obtain a processed target image frame.
- Claim 2Depends on #1
The method according to claim 1, wherein the acquiring at least one target object area image in a target image frame corresponding to the virtual reality live streaming in response to a target object processing request triggered by a user in the virtual reality live streaming process comprises: acquiring a live video stream corresponding to the virtual reality live streaming in response to the target object processing request triggered by the user in the virtual reality live streaming process; for each target image frame in the live video stream, performing a target object recognition operation on the target image frame to determine position information of at least one target object in the target image frame; acquiring the at least one target object area image according to the position information of the at least one target object.
- Claim 3Depends on #2
The method according to claim 2, wherein the performing a target object recognition operation on the target image frame to determine position information of at least one target object in the target image frame comprises: performing a scaling operation on the target image frame according to a preset scale size to obtain a scaled target image frame; performing a target object recognition operation on the scaled target image frame to determine the position information of the at least one target object in the scaled target image frame.
- Claim 4Depends on #1
The method according to claim 1, wherein the performing a distortion correction operation on the at least one target object area image to obtain at least one distortion-free image comprises: establishing a virtual camera located at an origin of a world coordinate system; for each target object area image, converting the target object area image into an image from the perspective of the virtual camera to obtain the distortion-free image.
- Claim 5Depends on #4
The method according to claim 4, wherein, for each target object area image, the converting the target object area image into an image from the perspective of the virtual camera to obtain the distortion-free image comprises: for each first pixel point in each target object area image from the perspective of the virtual camera, performing a matrix projection operation on the first pixel point according to an observation matrix and a projection matrix corresponding to the virtual camera to obtain a first three-dimensional space coordinate; determining first latitude and longitude information of each first pixel point in a spherical coordinate system where the target object area image is located according to the first three-dimensional space coordinate corresponding to each first pixel point; determining a first texture mapping coordinate corresponding to the first latitude and longitude information according to a mapping relationship between the latitude and longitude and a texture mapping coordinate system corresponding to the target object area image; performing a combination operation on the first texture mapping coordinate corresponding to each first pixel point to obtain the distortion-free image.
- Claim 6Depends on #1
The method according to claim 1, wherein the performing an image processing operation based on the at least one distortion-free image to obtain at least one processed image comprises: performing a target object key point recognition operation on the at least one distortion-free image to obtain target object key point information corresponding to the at least one distortion-free image; performing an image processing operation on a target object in the at least one distortion-free image according to the target object key point information corresponding to the at least one distortion-free image to obtain the at least one processed image.
- Claim 7Depends on #1
The method according to claim 1, wherein the performing an inverse transformation operation of the distortion correction operation on the at least one processed image to obtain at least one inversely transformed image comprises: for each second pixel point in each target object area image, determining that a second texture mapping coordinate corresponding to the second pixel point is converted into second latitude and longitude information according to a mapping relationship between a texture mapping coordinate system corresponding to the target object area image and the latitude and longitude; determining a second three-dimensional space coordinate corresponding to the second pixel point according to the second latitude and longitude information; detecting whether the second three-dimensional space coordinate is in a visible range of the virtual camera located at the origin of the world coordinate system; processing the second three-dimensional space coordinate according to a detection result to obtain the inversely transformed image.
- Claim 8Depends on #7
The method according to claim 7, wherein the processing the second three-dimensional space coordinate according to a detection result to obtain the inversely transformed image comprises: if the second three-dimensional space coordinate is in the visible range of the virtual camera, performing a matrix projection operation on the second three-dimensional space coordinate according to an observation matrix and a projection matrix corresponding to an image acquisition apparatus that acquires the target object area image to obtain a third pixel point of the second three-dimensional space coordinate from the perspective of the image acquisition apparatus, and replacing the corresponding second pixel point with the third pixel point; if the second three-dimensional space coordinate is not in the visible range of the virtual camera, not processing the second pixel point corresponding to the second three-dimensional space coordinate; generating the inversely transformed image according to the third pixel point located in the visible range of the virtual camera and the second pixel point not in the visible range of the virtual camera.
- Claim 9Depends on #1
The method according to claim 1, wherein the replacing the at least one target object area image in the target image frame with the at least one inversely transformed image to obtain a processed target image frame comprises: for each target object area image, determining a display position of the target object area image in the target image frame; replacing the target object area image with the inversely transformed image according to the display position to obtain the processed target image frame.
- Claim 10Independent Claim
An electronic device, comprising: a processor and a memory; wherein the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the processor executes an image processing method, comprising: acquiring at least one target object area image in a target image frame corresponding to virtual reality live streaming in response to a target object processing request triggered by a user in the virtual reality live streaming process; performing a distortion correction operation on the at least one target object area image to obtain at least one distortion-free image; performing an image processing operation based on the at least one distortion-free image to obtain at least one processed image; performing an inverse transformation operation of the distortion correction operation on the at least one processed image to obtain at least one inversely transformed image; and replacing the at least one target object area image in the target image frame with the at least one inversely transformed image to obtain a processed target image frame.
- Claim 11Independent Claim
A non-transitory computer-readable storage medium, wherein the computer-readable storage medium stores therein computer-executable instructions, which when executed by a processor, implements an image processing comprising: acquiring at least one target object area image in a target image frame corresponding to virtual reality live streaming in response to a target object processing request triggered by a user in the virtual reality live streaming process; performing a distortion correction operation on the at least one target object area image to obtain at least one distortion-free image; performing an image processing operation based on the at least one distortion-free image to obtain at least one processed image; performing an inverse transformation operation of the distortion correction operation on the at least one processed image to obtain at least one inversely transformed image; and replacing the at least one target object area image in the target image frame with the at least one inversely transformed image to obtain a processed target image frame.
- Claim 12Depends on #10
The electronic device according to claim 10, wherein the acquiring at least one target object area image in a target image frame corresponding to the virtual reality live streaming in response to a target object processing request triggered by a user in the virtual reality live streaming process comprises: acquiring a live video stream corresponding to the virtual reality live streaming in response to the target object processing request triggered by the user in the virtual reality live streaming process; for each target image frame in the live video stream, performing a target object recognition operation on the target image frame to determine position information of at least one target object in the target image frame; acquiring the at least one target object area image according to the position information of the at least one target object.
- Claim 13Depends on #12
The electronic device according to claim 12, wherein the performing a target object recognition operation on the target image frame to determine position information of at least one target object in the target image frame comprises: performing a scaling operation on the target image frame according to a preset scale size to obtain a scaled target image frame; performing a target object recognition operation on the scaled target image frame to determine the position information of the at least one target object in the scaled target image frame.
- Claim 14Depends on #10
The electronic device according to claim 10, wherein the performing a distortion correction operation on the at least one target object area image to obtain at least one distortion-free image comprises: establishing a virtual camera located at an origin of a world coordinate system; for each target object area image, converting the target object area image into an image from the perspective of the virtual camera to obtain the distortion-free image.
- Claim 15Depends on #14
The electronic device according to claim 14, wherein, for each target object area image, the converting the target object area image into an image from the perspective of the virtual camera to obtain the distortion-free image comprises: for each first pixel point in each target object area image from the perspective of the virtual camera, performing a matrix projection operation on the first pixel point according to an observation matrix and a projection matrix corresponding to the virtual camera to obtain a first three-dimensional space coordinate; determining first latitude and longitude information of each first pixel point in a spherical coordinate system where the target object area image is located according to the first three-dimensional space coordinate corresponding to each first pixel point; determining a first texture mapping coordinate corresponding to the first latitude and longitude information according to a mapping relationship between the latitude and longitude and a texture mapping coordinate system corresponding to the target object area image; performing a combination operation on the first texture mapping coordinate corresponding to each first pixel point to obtain the distortion-free image.
- Claim 16Depends on #10
The electronic device according to claim 10, wherein the performing an image processing operation based on the at least one distortion-free image to obtain at least one processed image comprises: performing a target object key point recognition operation on the at least one distortion-free image to obtain target object key point information corresponding to the at least one distortion-free image; performing an image processing operation on a target object in the at least one distortion-free image according to the target object key point information corresponding to the at least one distortion-free image to obtain the at least one processed image.
- Claim 17Depends on #11
The non-transitory computer-readable storage medium according to claim 11, wherein the acquiring at least one target object area image in a target image frame corresponding to the virtual reality live streaming in response to a target object processing request triggered by a user in the virtual reality live streaming process comprises: acquiring a live video stream corresponding to the virtual reality live streaming in response to the target object processing request triggered by the user in the virtual reality live streaming process; for each target image frame in the live video stream, performing a target object recognition operation on the target image frame to determine position information of at least one target object in the target image frame; acquiring the at least one target object area image according to the position information of the at least one target object.
- Claim 18Depends on #17
The non-transitory computer-readable storage medium according to claim 17, wherein the performing a target object recognition operation on the target image frame to determine position information of at least one target object in the target image frame comprises: performing a scaling operation on the target image frame according to a preset scale size to obtain a scaled target image frame; performing a target object recognition operation on the scaled target image frame to determine the position information of the at least one target object in the scaled target image frame.
- Claim 19Depends on #11
The non-transitory computer-readable storage medium according to claim 11, wherein the performing a distortion correction operation on the at least one target object area image to obtain at least one distortion-free image comprises: establishing a virtual camera located at an origin of a world coordinate system; for each target object area image, converting the target object area image into an image from the perspective of the virtual camera to obtain the distortion-free image.
- Claim 20Depends on #19
The non-transitory computer-readable storage medium according to claim 19, wherein, for each target object area image, the converting the target object area image into an image from the perspective of the virtual camera to obtain the distortion-free image comprises: for each first pixel point in each target object area image from the perspective of the virtual camera, performing a matrix projection operation on the first pixel point according to an observation matrix and a projection matrix corresponding to the virtual camera to obtain a first three-dimensional space coordinate; determining first latitude and longitude information of each first pixel point in a spherical coordinate system where the target object area image is located according to the first three-dimensional space coordinate corresponding to each first pixel point; determining a first texture mapping coordinate corresponding to the first latitude and longitude information according to a mapping relationship between the latitude and longitude and a texture mapping coordinate system corresponding to the target object area image; performing a combination operation on the first texture mapping coordinate corresponding to each first pixel point to obtain the distortion-free image.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS The present application is a national phase application of the International Application No. PCT/CN2024/079929, filed on Mar. 4, 2024, which is based on and claims priority to Chinese Application No. 202310232924.3 filed on Mar. 7, 2023, the disclosures of both applications are incorporated herein by reference in their entireties. TECHNICAL FIELD Embodiments of the present disclosure relate to the technical field of virtual reality, and in particular an image processing method and apparatus, a device, a computer-readable storage medium, and a product. BACKGROUND With the continuous progress of virtual reality technologies, virtual reality live streaming has gradually entered users' lives. When users perform virtual reality live streaming, there is often a need to beautify the live content. For example, users can trigger beautification requests such as beauty and beauty makeup according to actual needs. In practical applications, binocular virtual reality cameras are generally used to acquire live streaming contents in virtual reality live streaming. However, because a target object in images shot by the binocular virtual reality camera will have serious distortion, it is very different from the target object in the images shot by an ordinary camera. Therefore, if a beautification operation is directly performed on the target object based on the images shot by the binocular virtual reality camera, the beautification effect often cannot meet the actual needs of users, resulting in poor user experience. SUMMARY Embodiments of the present disclosure provide an image processing method and apparatus, a device, a computer-readable storage medium, and a product for the solution of the existing technical problem of a poor target object processing effect in a virtual reality live streaming process. According to a first aspect, an embodiment of the present disclosure provides an image processing method, comprising: acquiring at least one
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (11)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (1)
- International Patent Application No. PCT/CN2024/079929; Int'l Written Opinion and Search Report; dated May 30, 2024; 7 pages.