Image processing method, device and equipment, computer readable storage medium and product

By performing distortion correction and processing on the image of the target object area in the virtual reality live broadcast, the problem of poor beautification effects caused by the distortion of the images captured by the binocular virtual reality camera is solved, achieving better beautification of the target object and improving processing efficiency.

CN118632038APending Publication Date: 2024-09-10BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310232924.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-07
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

During the virtual reality live broadcast, due to severe distortion in the images captured by the binocular virtual reality cameras, the beautification effect of the target objects was poor and the user experience was affected.

Method used

By obtaining the target image frame in the virtual reality live broadcast, the distortion correction of the target object area image is performed to obtain a distortion-free image, and the image is processed, and then the processed image is inversely transformed and corrected to replace the target in the target image frame. Object area to achieve high-quality target object beautification.

Benefits of technology

It improves the effect of target object processing, reduces the amount of calculation and rendering pressure, and ensures the real-time performance and user experience of image processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118632038A
    Figure CN118632038A
Patent Text Reader

Abstract

The embodiment of the invention provides an image processing method and device, equipment, a computer readable storage medium and a product. The method comprises the following steps: acquiring at least one target object region image in a target image frame corresponding to virtual reality live broadcast; performing distortion correction operation on the at least one target object region image to obtain at least one distortionless image; performing image processing operation based on the at least one distortionless image to obtain at least one processed image; performing inverse transformation operation of distortion correction operation on the at least one processed image to obtain at least one inverse transformation image; and replacing the at least one target object region image in the target image frame with the at least one inverse transformation image to obtain the target image frame. Therefore, image processing operation is carried out on the distortionless image, and a better processing effect can be obtained. The image processing for the target object is carried out based on the distortionless image, and the calculation amount in the target object processing process is effectively reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of virtual reality technology, and in particular to an image processing method, device, equipment, computer-readable storage medium, and product. Background Art

[0002] With the continuous advancement of virtual reality technology, virtual reality live broadcasting has gradually entered the lives of users. When users broadcast virtual reality content, they often have the need to beautify the live content. For example, users can trigger beautification requests such as beauty and makeup according to actual needs.

[0003] In actual applications, VR live broadcasts generally use binocular VR cameras to collect live content. However, since the target object in the picture taken by the binocular VR camera will be severely distorted, it is very different from the target object in the picture taken by an ordinary camera. Therefore, if the beautification operation of the target object is directly performed based on the picture taken by the binocular VR camera, the beautification effect often cannot meet the actual needs of the user, resulting in a poor user experience. Summary of the invention

[0004] The embodiments of the present disclosure provide an image processing method, apparatus, device, computer-readable storage medium, and product, which are used to solve the technical problem of poor target object processing effect in the existing virtual reality live broadcast process.

[0005] In a first aspect, an embodiment of the present disclosure provides an image processing method, including:

[0006] In response to a target object processing request triggered by a user during a virtual reality live broadcast, obtaining at least one target object area image in a target image frame corresponding to the virtual reality live broadcast;

[0007] Performing a distortion correction operation on the at least one target object area image to obtain at least one distortion-free image;

[0008] Performing an image processing operation based on the at least one distortion-free image to obtain at least one processed image;

[0009] Performing an inverse transformation operation of the distortion correction operation on the at least one processed image to obtain at least one inverse transformation image;

[0010] At least one target object area image in the target image frame is replaced by at least one inverse transformation image to obtain a processed target image frame.

[0011] In a second aspect, an embodiment of the present disclosure provides an image processing device, including:

[0012] An acquisition module, configured to respond to a target object processing request triggered by a user during a virtual reality live broadcast, and acquire at least one target object area image in a target image frame corresponding to the virtual reality live broadcast;

[0013] A correction module, used for performing a distortion correction operation on the at least one target object area image to obtain at least one distortion-free image;

[0014] A processing module, configured to perform an image processing operation based on the at least one distortion-free image to obtain at least one processed image;

[0015] an inverse transformation module, configured to perform an inverse transformation operation of the distortion correction operation on the at least one processed image to obtain at least one inverse transformation image;

[0016] The replacement module is used to replace at least one target object area image in the target image frame with at least one inverse transformation image to obtain a processed target image frame.

[0017] In a third aspect, an embodiment of the present disclosure provides an electronic device, including: a processor and a memory;

[0018] The memory stores computer-executable instructions;

[0019] The processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the image processing method described in the first aspect and various possible designs of the first aspect.

[0020] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the image processing method described in the first aspect and various possible designs of the first aspect is implemented.

[0021] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the image processing method as described in the first aspect and various possible designs of the first aspect.

[0022] The image processing method, device, equipment, computer-readable storage medium and product provided in this embodiment obtain at least one target object area image in the target image frame corresponding to the virtual reality live broadcast after obtaining the target object processing request triggered by the user during the virtual reality live broadcast, and perform a distortion correction operation on the target object area image to obtain a distortion-free image. Therefore, the subsequent target object processing operation on the distortion-free image can obtain a better processing effect. Further, the processed image can be subjected to an inverse transformation operation of the distortion correction operation, and the target object area image in the target image frame can be replaced based on the inverse transformed image after the inverse transformation to obtain the processed target image frame. The effect of target object processing can be effectively improved. In addition, by performing a distortion correction operation only on the inverse transformed image, a distortion-free image is obtained, and the size of the distortion-free image is much smaller than the size of the target image frame. Performing target object processing based on the distortion-free image effectively reduces the amount of calculation in the target object processing process, reduces the rendering pressure, and improves the efficiency of target object processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0024] Figure 1 A flowchart of an image processing method provided by an embodiment of the present disclosure;

[0025] Figure 2 A flowchart of an image processing method provided by another embodiment of the present disclosure;

[0026] Figure 3 A schematic diagram of a virtual camera provided in an embodiment of the present disclosure;

[0027] Figure 4 A flowchart of an image processing method provided by another embodiment of the present disclosure;

[0028] Figure 5 A flowchart of an image processing method provided by another embodiment of the present disclosure;

[0029] Figure 6 A flowchart of an image processing method provided by another embodiment of the present disclosure;

[0030] Figure 7 A schematic diagram of the structure of an image processing device provided by an embodiment of the present disclosure;

[0031] Figure 8A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0032] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0033] In order to solve the technical problem of poor target object processing effect in the existing virtual reality live broadcast process, the present disclosure provides an image processing method, device, equipment, computer-readable storage medium and product.

[0034] It should be noted that the image processing method, device, equipment, computer-readable storage medium and product provided by the present disclosure can be applied to any virtual reality image processing scenario.

[0035] Current virtual reality live broadcasts generally use binocular virtual reality cameras to capture virtual reality live broadcast content. However, the live image frames captured by binocular virtual reality cameras often have high resolutions. For example, the live image frames captured by binocular virtual reality cameras can be images with 8K resolution (3840*7680). Therefore, image beautification operations based on the large-resolution live image frames often require a large amount of calculation, and the real-time performance of image beautification cannot be guaranteed. In addition, since the target object part in the live image frame captured by the binocular virtual reality camera is severely distorted, directly performing image processing operations on the target object based on the live image frame captured by the binocular virtual reality camera will affect the accuracy of the target object key point detection and cannot guarantee the beautification effect of the target object.

[0036] In the process of solving the above technical problems, the inventors found through research that in order to ensure the beautification effect of the target object of the target image frame in the virtual reality live broadcast, after obtaining the target image frame in the virtual reality live broadcast, the target object part in the live broadcast image frame can be subjected to a distortion correction operation to obtain a non-distorted target object area image. Then, based on the non-distorted target object area image, an image processing operation for the target object is performed. The beautified target object area image is subjected to an inverse transformation operation of the distortion correction operation, and the target object part in the target image frame is replaced by the target object area image after the inverse transformation operation to achieve a high-quality target object beautification effect.

[0037] Furthermore, by performing distortion correction operations only on part of the target object and performing image processing operations on the target object based on the undistorted target object area image, the amount of calculation in the target object beautification process can be effectively reduced, the pressure on video memory and internal memory can be reduced, and the real-time beautification of the target object can be ensured.

[0038] The system architecture based on this embodiment includes at least a terminal device, a virtual reality device and a server. The server is connected to the terminal device and the virtual reality device in communication. The server can obtain the target image frame captured by the virtual reality device based on the target object processing request triggered by the user on the terminal device. The target object part in the target image frame is subjected to distortion correction operation to obtain an undistorted target object area image. Then, the target object processing operation is performed based on the undistorted target object area image.

[0039] Figure 1 A flowchart of an image processing method provided by an embodiment of the present disclosure is shown in FIG. Figure 1 As shown, the method includes:

[0040] Step 101: In response to a target object processing request triggered by a user during a virtual reality live broadcast, at least one target object area image in a target image frame corresponding to the virtual reality live broadcast is obtained.

[0041] The execution subject of this embodiment is an image processing device. The image processing device can be coupled to a server, and the server can be respectively connected to a terminal device and a virtual reality device in communication, so as to obtain a target object processing request based on a target object processing request triggered by a user on the terminal device, and obtain a target image frame collected by the virtual reality device for image processing operations. Alternatively, the image processing device can also be coupled to a terminal device or a virtual reality device. Thus, based on a target object processing request triggered by a user on the terminal device, the target image frame collected by the virtual reality device can be obtained for image processing operations.

[0042] In this embodiment, when a user is performing a virtual reality live broadcast, if a live broadcast image processing operation is required, a target object processing request can be initiated. For example, the target object processing request is a user-triggered beautification request, where the target object processing request for the live broadcast image includes but is not limited to beautification operations such as facial beautification, special effects processing, and adding filters.

[0043] Accordingly, the image processing device may respond to a target object processing request triggered by a user during the virtual reality live broadcast process to obtain a target image frame corresponding to the virtual reality live broadcast.

[0044] Furthermore, the target object processing request may be a beautification request for a preset target object. Continuing with the above example, if the target object processing request may be a beauty request, a makeup request, etc., the target object may be the user's facial area. Alternatively, if the target object processing request may be a special effect rendering request, the target object may be an object of special effect. For example, if the special effect is to wear virtual glasses on the face, the target object may be the user's eye area.

[0045] Therefore, in order to accurately implement the image processing operation for the target object, a target object region image in the target image frame may be acquired, wherein the number of the target object region image may be at least one.

[0046] For example, the target image frame is an image captured by a binocular virtual reality camera, and the target image frame can be composed of two images captured by left and right cameras, respectively. The target object area images in the two images can be extracted to obtain at least one target object area image.

[0047] It should be noted that the facial image is obtained after obtaining full authorization from the user.

[0048] Step 102: Perform a distortion correction operation on the at least one target object area image to obtain at least one distortion-free image.

[0049] In this embodiment, when the binocular virtual reality camera is used to collect virtual reality live content, the image collected by the binocular virtual reality camera often has serious distortion. Therefore, if the target object in the collected target image frame is directly processed, the image processing effect will be poor, resulting in a poor user experience.

[0050] Therefore, in order to ensure the processing effect of the target object of the virtual reality live broadcast content, after obtaining at least one target object area image, a distortion correction operation can be performed on the at least one target object area image to obtain at least one distortion-free image.

[0051] Step 103: Perform an image processing operation based on the at least one distortion-free image to obtain at least one processed image.

[0052] In this embodiment, after obtaining at least one distortion-free image, an image processing operation can be performed based on the at least one distortion-free image to obtain at least one processed image. Since the distortion-free image does not have distortion, performing an image processing operation based on the distortion-free image can obtain a high-quality image processing effect.

[0053] In addition, after the distortion correction operation is performed on the target object area image, the resolution of the obtained distortion-free image is much smaller than the resolution of the target image frame. Therefore, performing image processing operations based on the distortion-free image can effectively reduce the amount of calculation in the image processing process, thereby ensuring the real-time performance of image processing during virtual live broadcast, and further improving the user experience.

[0054] Step 104: Perform an inverse transformation operation of the distortion correction operation on the at least one processed image to obtain at least one inverse transformation image.

[0055] In this embodiment, in order to ensure the viewing effect of the virtual reality live broadcast, at least one processed image can also be adjusted to the form of an image captured by a binocular virtual reality camera. Therefore, an inverse transformation operation of the distortion correction operation can be performed on at least one processed image to obtain at least one inverse transformation image.

[0056] Step 105: Replace at least one target object area image in the target image frame with at least one inverse transformation image to obtain a processed target image frame.

[0057] In this embodiment, at least one target object area image in the target image frame may be replaced by the at least one inverse transformation image to obtain a processed target image frame.

[0058] Taking practical applications as an example, the target object processing request may be a beautification request triggered by a user during a live broadcast. After acquiring the target image frame, at least one face area image in the target image frame may be acquired. A distortion correction operation is performed on at least one face area image to obtain a distortion-free image. Thus, a beautification operation is subsequently performed on the distortion-free image to obtain a better beautification effect.

[0059] The image processing method provided in this embodiment obtains at least one target object region image in the target image frame corresponding to the virtual reality live broadcast after obtaining the target object processing request triggered by the user during the virtual reality live broadcast, and performs a distortion correction operation on the target object region image to obtain a distortion-free image. Thus, the subsequent target object processing operation on the distortion-free image can obtain a better processing effect. Furthermore, the processed image can be subjected to an inverse transformation operation of the distortion correction operation, and the target object region image in the target image frame can be replaced based on the inverse transformed image after the inverse transformation to obtain the processed target image frame. The effect of target object processing can be effectively improved. In addition, by performing a distortion correction operation only on the inverse transformed image, a distortion-free image is obtained, and the size of the distortion-free image is much smaller than the size of the target image frame. Performing target object image processing based on the distortion-free image effectively reduces the amount of calculation in the target object processing process, reduces the rendering pressure, and improves the efficiency of target object processing.

[0060] Further, based on any of the above embodiments, step 101 includes:

[0061] In response to a target object processing request triggered by a user during a virtual reality live broadcast, a live video stream corresponding to the virtual reality live broadcast is obtained.

[0062] For each target image frame in the live video stream, a target object recognition operation is performed on the target image frame to determine position information of at least one target object in the target image frame.

[0063] The at least one target object area image is acquired according to the position information of the at least one target object.

[0064] In this embodiment, when the user is performing virtual reality live broadcast, if an image processing operation of the live broadcast image is required, a target object processing request may be initiated. For example, the user may trigger the target object processing request on the terminal device.

[0065] Accordingly, after obtaining the target object processing request, the live video stream corresponding to the virtual reality live broadcast can be obtained. The live video stream may include multiple target image frames. For each target image frame in the live video stream, a target object recognition operation is performed on the target image frame to determine the position information of at least one target object in the target image frame. At least one target object area image is obtained according to the position information of at least one target object.

[0066] For example, if the target object is a human face, a face recognition operation can be performed on the face in the target image frame by using a preset face recognition model to obtain a face frame corresponding to at least one face, and an image of at least one face frame area is taken out as at least one target object area image.

[0067] Further, based on any of the above embodiments, the performing a target object recognition operation on the target image frame to determine the position information of at least one target object in the target image frame includes:

[0068] The target image frame is scaled according to a preset scaling size to obtain a scaled target image frame.

[0069] A target object recognition operation is performed on the scaled target image frame to determine position information of at least one target object in the scaled target image frame.

[0070] In this embodiment, when performing a target object recognition operation, since the resolution of the image processed by the recognition algorithm may be different from the resolution of the live image frame, it is necessary to perform a scaling operation on the target object before performing target object recognition on the target image frame.

[0071] Optionally, the target image frame may be scaled according to a preset scaling size to obtain a scaled target image frame. The preset scaling size may be a scaling size corresponding to a currently used recognition algorithm. A target object recognition operation is performed on the scaled target image frame to determine position information of at least one target object in the scaled target image frame.

[0072] The image processing method provided in this embodiment can further reduce the amount of calculation in the image processing process and ensure the real-time performance of image processing during the live broadcast by scaling each target image frame in the live video stream after acquiring the live video stream corresponding to the virtual reality live broadcast, and performing a target object recognition operation based on the scaled target image frame.

[0073] Figure 2 A flowchart of an image processing method provided by another embodiment of the present disclosure is provided. Based on any of the above embodiments, Figure 2 As shown, step 102 includes:

[0074] Step 201: Create a virtual camera located at the origin of the world coordinate system.

[0075] Step 202: for each target object area image, convert the target object area image into an image under the perspective of the virtual camera to obtain the undistorted image.

[0076] In this embodiment, the target image frame corresponding to the virtual reality live broadcast is a distorted image frame, while the image viewed by the user through the virtual reality device is normal and undistorted. The target image frame corresponding to the virtual reality live broadcast can be displayed in the virtual reality device in the form of a hemispherical map. Therefore, a virtual camera located at the origin of the world coordinate system can be constructed, and the image viewed by the user through the virtual reality device can be simulated based on the virtual camera.

[0077] Therefore, after establishing a virtual camera located at the origin of the world coordinate system, for each target object area image, the target object area image can be converted into an image under the perspective of the virtual camera to obtain an undistorted image.

[0078] Figure 3 A schematic diagram of a virtual camera provided in an embodiment of the present disclosure, such as Figure 3 As shown, the target image frame 31 can be presented to the audience in the form of a hemispherical map. A virtual camera 32 located at the origin of the world coordinate system can be established to convert the target object area image to an image under the perspective of the virtual camera, that is, an undistorted image.

[0079] Further, based on any of the above embodiments, step 202 includes:

[0080] For each first pixel point in each target object area image under the perspective of the virtual camera, a matrix projection operation is performed 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.

[0081] The first longitude and latitude information of each first pixel point in the spherical coordinate system where the target object area image is located is determined according to the first three-dimensional space coordinates corresponding to each first pixel point.

[0082] According to the mapping relationship between the longitude and latitude and the texture mapping coordinate system corresponding to the target object area image, the first texture mapping coordinate corresponding to the first longitude and latitude information is determined.

[0083] A combination operation is performed on the first texture map coordinates corresponding to each first pixel point to obtain the undistorted image.

[0084] In this embodiment, after the virtual camera is established, the observation matrix and projection matrix corresponding to the virtual camera can also be determined. Assume that the image under the perspective of the virtual camera is F iFor each first pixel point in each target object area image under the perspective of the virtual camera, a matrix projection operation can be performed on the first pixel point according to the observation matrix and projection matrix corresponding to the virtual camera to obtain the first three-dimensional space coordinates. After obtaining the first three-dimensional space coordinates, the first longitude and latitude information of each first pixel point in the spherical coordinate system where the target object area image is located can also be reversely determined according to the first three-dimensional space coordinates.

[0085] Furthermore, the mapping relationship between the longitude and latitude and the texture map coordinate system corresponding to the target object area image can be determined. The mapping relationship can be shown in Formula 1-2:

[0086] Latitude∈[0, π]→u∈[0, 1] (1)

[0087] Longtitude∈[0, π]→v∈[0, 1] (2)

[0088] Based on the mapping relationship, the first texture mapping coordinates corresponding to the first longitude and latitude information can be determined. Each first texture mapping coordinate is assigned to F i A combination operation is performed according to the first texture map coordinates corresponding to each pixel to generate the undistorted image.

[0089] The image processing method provided in this embodiment constructs a virtual camera located at the origin of the world coordinate system and converts the target object area image into an image under the perspective of the virtual camera, thereby effectively realizing the distortion correction operation of the target object area image and ensuring the accuracy of image processing.

[0090] Figure 4 A flowchart of an image processing method provided by another embodiment of the present disclosure is provided. Based on any of the above embodiments, Figure 4 As shown, step 103 includes:

[0091] Step 401: Perform a target object key point recognition operation on at least one of the distortion-free images to obtain target object key point information corresponding to at least one of the distortion-free images.

[0092] Step 402: Perform an image processing operation on the target object in at least one of the undistorted images according to the key point information of the target object corresponding to at least one of the undistorted images to obtain the at least one processed image.

[0093] In this embodiment, after the undistorted image is obtained, since there is no distortion in the undistorted image, a more accurate recognition result can be obtained by performing a recognition operation of the target object based on the undistorted image.

[0094] Optionally, a target object key point recognition operation may be performed on at least one undistorted image to obtain target object key point information corresponding to at least one undistorted image. Further, an image processing operation may be performed on the target object in at least one undistorted image according to the target object key point information corresponding to at least one undistorted image to obtain at least one processed image.

[0095] For example, if the target object processing request is to render eyeglass special effects on a human face, key point information of the eye can be identified in the undistorted image, and the eyeglass special effects rendering operation can be performed on the eye according to the key point information.

[0096] For example, if the target object processing request is a beautification request, the key point information of the user's facial features can be identified in the undistorted image, and then a beautification operation can be performed based on the key point information of the facial features.

[0097] The image processing method provided in this embodiment can accurately determine the key points of the target object in the undistorted image by performing a target object key point recognition operation on the undistorted image again after acquiring the undistorted image, and then can accurately perform image processing based on the target object key points, thereby improving the accuracy of image processing.

[0098] Figure 5 A flowchart of an image processing method provided by another embodiment of the present disclosure is provided. Based on any of the above embodiments, Figure 5 As shown, step 104 includes:

[0099] Step 501: for each second pixel point in each target object area image, determine the second texture coordinate corresponding to the second pixel point and convert it into second longitude and latitude information according to the mapping relationship between the texture coordinate system corresponding to the target object area image and the longitude and latitude.

[0100] Step 502: Determine the second three-dimensional space coordinates corresponding to the second pixel point according to the second longitude and latitude information.

[0101] Step 503: Detect whether the second three-dimensional space coordinate is within the visible range of the virtual camera located at the origin of the world coordinate system.

[0102] Step 504: Process the second three-dimensional space coordinates according to the detection result to obtain the inverse transformation image.

[0103] In this embodiment, since the live image frame viewed in the virtual reality device is normal and undistorted, if the undistorted image after image processing is directly sent to the virtual reality device for display, the user may view a distorted image in the virtual reality device. Therefore, it is also necessary to perform an inverse transformation operation of the distortion correction operation on the processed image.

[0104] Optionally, for each second pixel point in each target object area image, the second texture coordinate corresponding to the second pixel point is determined to be converted into second longitude and latitude information according to a mapping relationship between a texture coordinate system corresponding to the target object area image and longitude and latitude, and the second three-dimensional space coordinate corresponding to the second pixel point is determined according to the second longitude and latitude information.

[0105] Furthermore, since some pixels in the target object area image fall within the visible range of the virtual camera located at the origin of the world coordinate system, and some fall outside the visible range of the virtual camera. Therefore, after determining the second three-dimensional space coordinate corresponding to the second pixel point, it is necessary to detect whether the second three-dimensional space coordinate is within the visible range of the virtual camera located at the origin of the world coordinate system. According to the detection result, the second three-dimensional space coordinate is processed in a processing method that matches the detection result to obtain an inverse transformation image.

[0106] Further, based on any of the above embodiments, step 504 includes:

[0107] If the second three-dimensional space coordinate is within the visible range of the virtual camera, a matrix projection operation is performed on the second three-dimensional space coordinate according to the observation matrix and projection matrix corresponding to the image acquisition device that acquires the image of the target object area, so as to obtain the third pixel point of the second three-dimensional space coordinate under the perspective of the image acquisition device, and replace the corresponding second pixel point with the third pixel point.

[0108] If the second three-dimensional space coordinate is not within the visible range of the virtual camera, the second pixel point corresponding to the second three-dimensional space coordinate is not processed.

[0109] The inverse transformation image is generated according to a third pixel point located within the visible range of the virtual camera and a second pixel point not within the visible range of the virtual camera.

[0110] In this embodiment, if the second three-dimensional space coordinate is within the visible range of the virtual camera, it is necessary to convert it into a pixel point under the perspective of the image acquisition device. Therefore, the second three-dimensional space coordinate can be subjected to a matrix projection operation according to the observation matrix and projection matrix corresponding to the image acquisition device for acquiring the target object area image, and the third pixel point of the second three-dimensional space coordinate under the perspective of the image acquisition device can be obtained, and the corresponding second pixel point can be replaced by the third pixel point.

[0111] On the contrary, if the second three-dimensional space coordinate is not within the visible range of the virtual camera, the second pixel point corresponding to the second three-dimensional space coordinate may not be processed. Thus, an inverse transformation image may be generated based on the third pixel point within the visible range of the virtual camera and the second pixel point not within the visible range of the virtual camera. Thus, the viewing experience of the user can be guaranteed.

[0112] The image processing method provided in this embodiment can present the live content to the audience in the form of a hemispherical map during the virtual reality live broadcast. Therefore, after obtaining the distortion-free image, in order to ensure the user's viewing experience of the virtual reality live broadcast, the distortion-free image can also be converted into an inversely transformed image in the form of a hemispherical map. Thus, on the basis of ensuring the real-time performance of image processing during the virtual reality live broadcast, the live broadcast effect of the virtual reality live broadcast can also be ensured.

[0113] Figure 6 A flowchart of an image processing method provided by another embodiment of the present disclosure is provided. Based on any of the above embodiments, Figure 6 As shown, step 105 includes:

[0114] Step 601: For each target object region image, determine a display position of the target object region image in the target image frame.

[0115] Step 602: Inversely transform the target object area image according to the display position to obtain the processed target image frame.

[0116] In this embodiment, in order to implement the replacement operation of the target object area image in the live image frame, the display position of each target object area image in the target image frame can be determined first. The display position can be obtained during the target object recognition process. After the display position is obtained, the target object area image can be inversely transformed according to the display position to obtain a processed target image frame.

[0117] The image processing method provided in this embodiment can accurately implement the replacement operation of the inverse transformation image based on the display position by determining the display position of the target object area image in the target image frame, thereby ensuring the real-time performance of image processing during the virtual reality live broadcast and also ensuring the live broadcast effect of the virtual reality live broadcast.

[0118] Figure 7 A schematic diagram of the structure of an image processing device provided by an embodiment of the present disclosure is shown in FIG. Figure 7As shown, the device includes: an acquisition module 71, a correction module 72, a processing module 73, an inverse transformation module 74 and a replacement module 75. Among them, the acquisition module 71 is used to respond to a target object processing request triggered by a user during the virtual reality live broadcast process, and obtain at least one target object area image in the target image frame corresponding to the virtual reality live broadcast. The correction module 72 is used to perform a distortion correction operation on the at least one target object area image to obtain at least one distortion-free image. The processing module 73 is used to perform an image processing operation based on the at least one distortion-free image to obtain at least one processed image. The inverse transformation module 74 is used to perform an inverse transformation operation of the distortion correction operation on the at least one processed image to obtain at least one inverse transformation image. The replacement module 75 is used to replace at least one target object area image in the target image frame with at least one inverse transformation image to obtain a processed target image frame.

[0119] Further, based on any of the above embodiments, the acquisition module is used to: in response to a target object processing request triggered by a user during a virtual reality live broadcast, acquire a live video stream corresponding to the virtual reality live broadcast. For each target image frame in the live video stream, perform a target object recognition operation on the target image frame to determine the position information of at least one target object in the target image frame. Acquire the at least one target object area image according to the position information of the at least one target object.

[0120] Further, based on any of the above embodiments, the acquisition module is used to: perform a scaling operation on the target image frame according to a preset scaling size to obtain a scaled target image frame, and perform a target object recognition operation on the scaled target image frame to determine the position information of at least one target object in the scaled target image frame.

[0121] Further, based on any of the above embodiments, the correction module is used to: establish a virtual camera located at the origin of the world coordinate system, and for each target object area image, convert the target object area image into an image under the perspective of the virtual camera to obtain the undistorted image.

[0122] Further, based on any of the above embodiments, the correction module is used to: for each first pixel point in each target object area image under the perspective of the virtual camera, perform a matrix projection operation on the first pixel point according to the observation matrix and projection matrix corresponding to the virtual camera to obtain a first three-dimensional space coordinate. Determine the first longitude and latitude information of each first pixel point in the 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. Determine the first texture mapping coordinates corresponding to the first longitude and latitude information according to the mapping relationship between the longitude and latitude and the texture mapping coordinate system corresponding to the target object area image. Perform a combination operation on the first texture mapping coordinates corresponding to each first pixel point to obtain the distortion-free image.

[0123] Further, based on any of the above embodiments, the processing module is used to: perform a target object key point recognition operation on at least one of the distortion-free images to obtain target object key point information corresponding to at least one of the distortion-free images. Perform an image processing operation on the target object in at least one of the distortion-free images according to the target object key point information corresponding to at least one of the distortion-free images to obtain the at least one processed image.

[0124] Further, based on any of the above embodiments, the inverse transformation module is used to: for each second pixel point in each target object area image, determine the second texture coordinate corresponding to the second pixel point and convert it into second longitude and latitude information according to the mapping relationship between the texture coordinate system corresponding to the target object area image and the longitude and latitude. Determine the second three-dimensional space coordinate corresponding to the second pixel point according to the second longitude and latitude information. Detect whether the second three-dimensional space coordinate is within the visible range of the virtual camera located at the origin of the world coordinate system. Process the second three-dimensional space coordinate according to the detection result to obtain the inverse transformation image.

[0125] Further, based on any of the above embodiments, the inverse transformation module is used to: if the second three-dimensional space coordinate is within the visible range of the virtual camera, perform a matrix projection operation on the second three-dimensional space coordinate according to the observation matrix and projection matrix corresponding to the image acquisition device that acquires the target object area image, obtain the third pixel point of the second three-dimensional space coordinate under the viewing angle of the image acquisition device, and replace the corresponding second pixel point with the third pixel point. If the second three-dimensional space coordinate is not within the visible range of the virtual camera, the second pixel point corresponding to the second three-dimensional space coordinate is not processed. The inverse transformation image is generated according to the third pixel point within the visible range of the virtual camera and the second pixel point not within the visible range of the virtual camera.

[0126] Further, based on any of the above embodiments, the replacement module is used to: for each target object area image, determine the display position of the target object area image in the target image frame, and inverse transform the target object area image according to the display position to obtain the processed target image frame.

[0127] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.

[0128] In order to implement the above embodiment, the present disclosure also provides an electronic device, including: a processor and a memory;

[0129] The memory stores computer-executable instructions;

[0130] The processor executes the computer-executable instructions stored in the memory, so that the processor performs the image processing method as described in any of the above embodiments.

[0131] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure, such as Figure 8 As shown, the electronic device 800 may be a terminal device or a server. The terminal device may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (Portable Media Players, PMPs), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0132] like Figure 8 As shown, the electronic device 800 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 808 to a random access memory (RAM) 803. Various programs and data required for the operation of the electronic device 800 are also stored in the RAM 803. The processing device 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0133] Typically, the following devices may be connected to the I / O interface 805: input devices 806 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 808 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 809. The communication device 809 may allow the electronic device 800 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 8 The electronic device 800 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0134] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 809, or installed from a storage device 808, or installed from a ROM 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0135] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0136] In order to implement the above embodiments, the embodiments of the present disclosure further provide a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the image processing method described in any of the above embodiments is implemented.

[0137] In order to implement the above embodiments, the embodiments of the present disclosure further provide a computer program product, including a computer program, which implements the image processing method as described in any of the above embodiments when executed by a processor.

[0138] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device.

[0139] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.

[0140] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0141] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0142] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".

[0143] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

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

[0145] In a first aspect, according to one or more embodiments of the present disclosure, there is provided an image processing method, comprising:

[0146] In response to a target object processing request triggered by a user during a virtual reality live broadcast, obtaining at least one target object area image in a target image frame corresponding to the virtual reality live broadcast;

[0147] Performing a distortion correction operation on the at least one target object area image to obtain at least one distortion-free image;

[0148] Performing an image processing operation based on the at least one distortion-free image to obtain at least one processed image;

[0149] Performing an inverse transformation operation of the distortion correction operation on the at least one processed image to obtain at least one inverse transformation image;

[0150] At least one target object area image in the target image frame is replaced by at least one inverse transformation image to obtain a processed target image frame.

[0151] According to one or more embodiments of the present disclosure, in response to a target object processing request triggered by a user during a virtual reality live broadcast, obtaining at least one target object area image in a target image frame corresponding to the virtual reality live broadcast includes:

[0152] In response to a target object processing request triggered by a user during a virtual reality live broadcast, a live video stream corresponding to the virtual reality live broadcast is obtained;

[0153] 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;

[0154] The at least one target object area image is acquired according to the position information of the at least one target object.

[0155] According to one or more embodiments of the present disclosure, 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 includes:

[0156] Scaling the target image frame according to a preset scaling size to obtain a scaled target image frame;

[0157] A target object recognition operation is performed on the scaled target image frame to determine position information of at least one target object in the scaled target image frame.

[0158] According to one or more embodiments of the present disclosure, performing a distortion correction operation on the at least one target object area image to obtain at least one distortion-free image includes:

[0159] Establish a virtual camera located at the origin of the world coordinate system;

[0160] For each target object area image, the target object area image is converted into an image under the viewing angle of the virtual camera to obtain the undistorted image.

[0161] According to one or more embodiments of the present disclosure, for each target object area image, converting the target object area image into an image under the perspective of the virtual camera to obtain the undistorted image includes:

[0162] For each first pixel point in each target object area image under the perspective of the virtual camera, a matrix projection operation is performed 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;

[0163] Determine first longitude and latitude information of each first pixel point in the 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;

[0164] Determining first texture mapping coordinates corresponding to the first longitude and latitude information according to a mapping relationship between the longitude and latitude and a texture mapping coordinate system corresponding to the target object area image;

[0165] A combination operation is performed on the first texture map coordinates corresponding to each first pixel point to obtain the undistorted image.

[0166] According to one or more embodiments of the present disclosure, performing an image processing operation based on the at least one distortion-free image to obtain at least one processed image includes:

[0167] Performing a target object key point recognition operation on at least one of the undistorted images to obtain target object key point information corresponding to at least one of the undistorted images;

[0168] An image processing operation is performed on the target object in at least one of the undistorted images according to the key point information of the target object corresponding to at least one of the undistorted images to obtain the at least one processed image.

[0169] According to one or more embodiments of the present disclosure, performing an inverse transformation operation of the distortion correction operation on the at least one processed image to obtain at least one inverse transformed image includes:

[0170] For each second pixel point in each target object area image, determine the conversion of the second texture coordinates corresponding to the second pixel point into second longitude and latitude information according to the mapping relationship between the texture coordinate system corresponding to the target object area image and the longitude and latitude;

[0171] Determine a second three-dimensional space coordinate corresponding to the second pixel point according to the second longitude and latitude information;

[0172] Detecting whether the second three-dimensional space coordinate is within the visible range of the virtual camera located at the origin of the world coordinate system;

[0173] The second three-dimensional space coordinates are processed according to the detection result to obtain the inverse transformation image.

[0174] According to one or more embodiments of the present disclosure, the processing of the second three-dimensional space coordinates according to the detection result to obtain the inverse transformation image includes:

[0175] If the second three-dimensional space coordinate is within the visible range of the virtual camera, a matrix projection operation is performed on the second three-dimensional space coordinate according to an observation matrix and a projection matrix corresponding to an image acquisition device that acquires the target object area image, to obtain a third pixel point of the second three-dimensional space coordinate under the viewing angle of the image acquisition device, and the corresponding second pixel point is replaced by the third pixel point;

[0176] If the second three-dimensional space coordinate is not within the visible range of the virtual camera, then the second pixel point corresponding to the second three-dimensional space coordinate is not processed;

[0177] The inverse transformation image is generated according to a third pixel point located within the visible range of the virtual camera and a second pixel point not within the visible range of the virtual camera.

[0178] According to one or more embodiments of the present disclosure, the step of replacing at least one target object region image in the target image frame with at least one inverse transformation image to obtain a processed target image frame includes:

[0179] For each target object area image, determining a display position of the target object area image in the target image frame;

[0180] The target object area image is inversely transformed according to the display position to obtain the processed target image frame.

[0181] In a second aspect, according to one or more embodiments of the present disclosure, there is provided an image processing apparatus, comprising:

[0182] An acquisition module, configured to respond to a target object processing request triggered by a user during a virtual reality live broadcast, and acquire at least one target object area image in a target image frame corresponding to the virtual reality live broadcast;

[0183] A correction module, used for performing a distortion correction operation on the at least one target object area image to obtain at least one distortion-free image;

[0184] A processing module, configured to perform an image processing operation based on the at least one distortion-free image to obtain at least one processed image;

[0185] an inverse transformation module, configured to perform an inverse transformation operation of the distortion correction operation on the at least one processed image to obtain at least one inverse transformation image;

[0186] The replacement module is used to replace at least one target object area image in the target image frame with at least one inverse transformation image to obtain a processed target image frame.

[0187] According to one or more embodiments of the present disclosure, the acquisition module is used to:

[0188] In response to a target object processing request triggered by a user during a virtual reality live broadcast, a live video stream corresponding to the virtual reality live broadcast is obtained;

[0189] 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;

[0190] The at least one target object area image is acquired according to the position information of the at least one target object.

[0191] According to one or more embodiments of the present disclosure, the acquisition module is used to:

[0192] Scaling the target image frame according to a preset scaling size to obtain a scaled target image frame;

[0193] A target object recognition operation is performed on the scaled target image frame to determine position information of at least one target object in the scaled target image frame.

[0194] According to one or more embodiments of the present disclosure, the correction module is used to:

[0195] Establish a virtual camera located at the origin of the world coordinate system;

[0196] For each target object area image, the target object area image is converted into an image under the viewing angle of the virtual camera to obtain the undistorted image.

[0197] According to one or more embodiments of the present disclosure, the correction module is used to:

[0198] For each first pixel point in each target object area image under the perspective of the virtual camera, a matrix projection operation is performed 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;

[0199] Determine first longitude and latitude information of each first pixel point in the 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;

[0200] Determining first texture mapping coordinates corresponding to the first longitude and latitude information according to a mapping relationship between the longitude and latitude and a texture mapping coordinate system corresponding to the target object area image;

[0201] A combination operation is performed on the first texture map coordinates corresponding to each first pixel point to obtain the undistorted image.

[0202] According to one or more embodiments of the present disclosure, the processing module is used to:

[0203] Performing a target object key point recognition operation on at least one of the undistorted images to obtain target object key point information corresponding to at least one of the undistorted images;

[0204] An image processing operation is performed on the target object in at least one of the undistorted images according to the key point information of the target object corresponding to at least one of the undistorted images to obtain the at least one processed image.

[0205] According to one or more embodiments of the present disclosure, the inverse transformation module is used to:

[0206] For each second pixel point in each target object area image, determine the conversion of the second texture coordinates corresponding to the second pixel point into second longitude and latitude information according to the mapping relationship between the texture coordinate system corresponding to the target object area image and the longitude and latitude;

[0207] Determine a second three-dimensional space coordinate corresponding to the second pixel point according to the second longitude and latitude information;

[0208] Detecting whether the second three-dimensional space coordinate is within the visible range of the virtual camera located at the origin of the world coordinate system;

[0209] The second three-dimensional space coordinates are processed according to the detection result to obtain the inverse transformation image.

[0210] According to one or more embodiments of the present disclosure, the inverse transformation module is used to:

[0211] If the second three-dimensional space coordinate is within the visible range of the virtual camera, a matrix projection operation is performed on the second three-dimensional space coordinate according to an observation matrix and a projection matrix corresponding to an image acquisition device that acquires the target object area image, to obtain a third pixel point of the second three-dimensional space coordinate under the viewing angle of the image acquisition device, and the corresponding second pixel point is replaced by the third pixel point;

[0212] If the second three-dimensional space coordinate is not within the visible range of the virtual camera, then the second pixel point corresponding to the second three-dimensional space coordinate is not processed;

[0213] The inverse transformation image is generated according to a third pixel point located within the visible range of the virtual camera and a second pixel point not within the visible range of the virtual camera.

[0214] According to one or more embodiments of the present disclosure, the replacement module is used to:

[0215] For each target object area image, determining a display position of the target object area image in the target image frame;

[0216] The target object area image is inversely transformed according to the display position to obtain the processed target image frame.

[0217] In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: at least one processor and a memory;

[0218] The memory stores computer-executable instructions;

[0219] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the image processing method described in the first aspect and various possible designs of the first aspect.

[0220] In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer execution instructions. When a processor executes the computer execution instructions, the image processing method described in the first aspect and various possible designs of the first aspect is implemented.

[0221] In a fifth aspect, according to one or more embodiments of the present disclosure, a computer program product is provided, including a computer program, which, when executed by a processor, implements the image processing method described in the first aspect and various possible designs of the first aspect.

[0222] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0223] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0224] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. An image processing method, It is characterized in that include: In response to a target object processing request triggered by a user during a virtual reality live broadcast, obtaining at least one target object area image in a target image frame corresponding to the virtual reality live broadcast; 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 inverse transformation image; At least one target object area image in the target image frame is replaced by at least one inverse transformation image to obtain a processed target image frame.

2. The method according to claim 1, It is characterized in that The step of responding to a target object processing request triggered by a user during a virtual reality live broadcast and obtaining at least one target object area image in a target image frame corresponding to the virtual reality live broadcast includes: In response to a target object processing request triggered by a user during a virtual reality live broadcast, a live video stream corresponding to the virtual reality live broadcast is obtained; 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; The at least one target object area image is acquired according to the position information of the at least one target object.

3. The method according to claim 2, It is characterized in that 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 includes: Scaling the target image frame according to a preset scaling size to obtain a scaled target image frame; A target object recognition operation is performed on the scaled target image frame to determine position information of at least one target object in the scaled target image frame.

4. The method according to claim 1, It is characterized in that The step of performing a distortion correction operation on the at least one target object area image to obtain at least one distortion-free image includes: Establish a virtual camera located at the origin of the world coordinate system; For each target object area image, the target object area image is converted into an image under the viewing angle of the virtual camera to obtain the undistorted image.

5. The method according to claim 4, It is characterized in that The step of converting each target object area image into an image under the perspective of the virtual camera to obtain the undistorted image includes: For each first pixel point in each target object area image under the perspective of the virtual camera, a matrix projection operation is performed 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; Determine first longitude and latitude information of each first pixel point in the 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 first texture mapping coordinates corresponding to the first longitude and latitude information according to a mapping relationship between the longitude and latitude and a texture mapping coordinate system corresponding to the target object area image; A combination operation is performed on the first texture map coordinates corresponding to each first pixel point to obtain the undistorted image.

6. The method according to any one of claims 1 to 5, It is characterized in that 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 at least one of the undistorted images to obtain target object key point information corresponding to at least one of the undistorted images; An image processing operation is performed on the target object in at least one of the undistorted images according to the key point information of the target object corresponding to at least one of the undistorted images to obtain the at least one processed image.

7. The method according to any one of claims 1 to 5, It is characterized in that The step of performing an inverse transformation operation of the distortion correction operation on the at least one processed image to obtain at least one inverse transformed image comprises: For each second pixel point in each target object area image, determine the conversion of the second texture coordinates corresponding to the second pixel point into second longitude and latitude information according to the mapping relationship between the texture coordinate system corresponding to the target object area image and the longitude and latitude; Determine a second three-dimensional space coordinate corresponding to the second pixel point according to the second longitude and latitude information; Detecting whether the second three-dimensional space coordinate is within the visible range of the virtual camera located at the origin of the world coordinate system; The second three-dimensional space coordinates are processed according to the detection result to obtain the inverse transformation image.

8. The method according to claim 7, It is characterized in that The processing of the second three-dimensional space coordinates according to the detection result to obtain the inverse transformation image includes: If the second three-dimensional space coordinate is within the visible range of the virtual camera, a matrix projection operation is performed on the second three-dimensional space coordinate according to an observation matrix and a projection matrix corresponding to an image acquisition device that acquires the target object area image, to obtain a third pixel point of the second three-dimensional space coordinate under the viewing angle of the image acquisition device, and the corresponding second pixel point is replaced by the third pixel point; If the second three-dimensional space coordinate is not within the visible range of the virtual camera, then the second pixel point corresponding to the second three-dimensional space coordinate is not processed; The inverse transformation image is generated according to a third pixel point located within the visible range of the virtual camera and a second pixel point not within the visible range of the virtual camera.

9. The method according to any one of claims 1 to 5, It is characterized in that The step of replacing at least one target object region image in the target image frame with at least one inverse transformation 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; The target object area image is inversely transformed according to the display position to obtain the processed target image frame.

10. An image processing device, It is characterized in that include: An acquisition module, configured to respond to a target object processing request triggered by a user during a virtual reality live broadcast, and acquire at least one target object area image in a target image frame corresponding to the virtual reality live broadcast; A correction module, used for performing a distortion correction operation on the at least one target object area image to obtain at least one distortion-free image; A processing module, configured to perform an image processing operation based on the at least one distortion-free image to obtain at least one processed image; an inverse transformation module, configured to perform an inverse transformation operation of the distortion correction operation on the at least one processed image to obtain at least one inverse transformation image; The replacement module is used to replace at least one target object area image in the target image frame with at least one inverse transformation image to obtain a processed target image frame.

11. An electronic device, It is characterized in that include: Processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the image processing method according to any one of claims 1 to 9.

12. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the image processing method according to any one of claims 1 to 9 is implemented.

13. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the image processing method according to any one of claims 1 to 9 is implemented.

Citation Information

Cited By

  • Image processing method and apparatus, and device, computer-readable storage medium and product

    EP4679841A1