hottub.patents
US 12,346,494 B2#2226599 Most CitedActiveUnited States (USPTO)Utility

Image gaze correction method, apparatus, electronic device, computer-readable storage medium, and computer program product

1Forward Citations (#2226599 Global)
1.0/yrCitation Velocity (#2226599 Global)
0.17Citation PageRank (#2226599 Global)
18Prior Art Cited
20Claims (3 Indep. · 17 Dep.)
7Drawings / Sheets

Abstract

An image gaze correction method, apparatus, electronic device, computer-readable storage medium, and computer program product. The image gaze correction method includes: acquiring a to-be-corrected eye image from a to-be-corrected image, generating, based on the to-be-corrected eye image, an eye motion flow field and an eye contour mask, the eye motion flow field being used for adjusting a pixel position in the to-be-corrected eye image, and the eye contour mask being used for indicating a probability that the pixel position in the to-be-corrected eye image belongs to an eye region, performing, based on the eye motion flow field and the eye contour mask, gaze correction processing on the to-be-corrected eye image to obtain a corrected eye image, and generating a gaze corrected image based on the corrected eye image.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 18 · Forward citations: 1.

Claims (20 — 3 Independent, 17 Dependent)

  1. Claim 1Independent Claim

    A method comprising: acquiring, by a computing device, a to-be-corrected eye image from a to-be-corrected image; generating, by the computing device and based on the to-be-corrected eye image, an eye motion flow field comprising a first plurality of pixels and an eye contour mask comprising a second plurality of pixels, wherein each of the first plurality of pixels comprises a horizontal displacement and a vertical displacement and each of the second plurality of pixels indicates a probability that a corresponding pixel in the to-be-corrected eye image belongs to an eye region; performing, by the computing device and based on the eye motion flow field and the eye contour mask, gaze correction processing on the to-be-corrected eye image to obtain a corrected eye image, the gaze correction processing comprising: performing, using the eye motion flow field, transformation processing on the to-be-corrected eye image to obtain an initially corrected eye image; performing, using the eye contour mask, adjustment processing on the initially corrected eye image to obtain a further corrected eye image, wherein the adjustment processing comprises fusing pixel values of corresponding positions in the eye contour mask and the initially corrected eye image to obtain a first intermediate image; and generating, by the computing device, a gaze corrected image based on the corrected eye image.

  2. Claim 2Depends on #1

    The method according to claim 1, wherein the gaze correction processing further comprises: determining the further corrected eye image as the corrected eye image.

  3. Claim 3Depends on #2

    The method according to claim 2, wherein the adjustment processing further comprises: fusing pixel values of corresponding positions in a mapped image corresponding to the eye contour mask and the to-be-corrected eye image to obtain a second intermediate image; and integrating pixel values of corresponding positions in the first intermediate image and the second intermediate image to obtain the further corrected eye image.

  4. Claim 4Depends on #1

    The method according to claim 1, further comprising: performing down-sampling processing on the to-be-corrected eye image to generate a down-sampled image; and performing up-sampling processing on the down-sampled image to obtain the eye motion flow field and the eye contour mask, wherein during the up-sampling processing, a feature map generated by the up-sampling processing and a feature map of a same size generated during the down-sampling processing are cascaded and then used as an input image of a next up-sampling operation.

  5. Claim 5Depends on #4

    The method according to claim 4, wherein the down-sampling processing and the up-sampling processing are implemented by a gaze correction model, the eye motion flow field is data of a first channel and a second channel output data of the gaze correction model, and the eye contour mask is data of a third channel in the output data.

  6. Claim 6Depends on #1

    The method according to claim 1, wherein the acquiring comprises: recognizing contour key points of eyes from the to-be-corrected image; determining a minimum circumscribed rectangle based on the contour key points; specifying a multiple for extension of the minimum circumscribed rectangle to obtain an image capture frame; and capturing, based on the image capture frame, the to-be-corrected eye image from the to-be-corrected image.

  7. Claim 7Depends on #1

    The method according to claim 1, wherein the generating the gaze corrected image comprises: integrating the corrected eye image into an image capture frame position of the to-be-corrected image to obtain an integrated image, wherein the image capture frame position is a position of the to-be-corrected eye image in the to-be-corrected image; and performing image harmonization processing at the image capture frame position in the integrated image to obtain the gaze corrected image, wherein the image harmonization processing is used for eliminating boundary traces at the image capture frame position.

  8. Claim 8Depends on #7

    The method according to claim 7, wherein the performing image harmonization processing at the image capture frame position in the integrated image comprises: generating an initialized mask image of a same size as the to-be-corrected image, wherein a pixel value of the initialized mask image at the image capture frame position is a first specified value, pixel values of remaining positions are a second specified value different from the first specified value, and the remaining positions are positions in the initialized mask image except the image capture frame position; performing noise processing on the initialized mask image to obtain a processed mask image; fusing pixel values of corresponding positions in the processed mask image and the integrated image to obtain a first generated image; fusing pixel values of corresponding positions in a mapped image corresponding to the processed mask image and the to-be-corrected image to obtain a second generated image; and integrating pixel values of corresponding positions in the first generated image and the second generated image to obtain the gaze corrected image.

  9. Claim 9Independent Claim

    An apparatus comprising: one or more processors; and memory storing computer-readable instructions that when executed by the one or more processors, cause the apparatus to: acquire a to-be-corrected eye image from a to-be-corrected image; generate, based on the to-be-corrected eye image, an eye motion flow field comprising a first plurality of pixels and an eye contour mask comprising a second plurality of pixels, wherein each of the first plurality of pixels comprises a horizontal displacement and a vertical displacement, and each of the second plurality of pixels indicates a probability that a corresponding pixel in the to-be-corrected eye image belongs to an eye region; perform, based on the eye motion flow field and the eye contour mask, gaze correction processing on the to-be-corrected eye image to obtain a corrected eye image, the gaze correction processing comprising: performing, using the eye motion flow field, transformation processing on the to-be-corrected eye image to obtain an initially corrected eye image; performing, using the eye contour mask, adjustment processing on the initially corrected eye image to obtain a further corrected eye image, wherein the adjustment processing comprises fusing pixel values of corresponding positions in the eye contour mask and the initially corrected eye image to obtain a first intermediate image; and generate a gaze corrected image based on the corrected eye image.

  10. Claim 10Depends on #9

    The apparatus according to claim 9, wherein the gaze correction processing further comprises: determining the further corrected eye image as the corrected eye image.

  11. Claim 11Depends on #10

    The apparatus according to claim 10, wherein the adjustment processing further comprises: fusing pixel values of corresponding positions in a mapped image corresponding to the eye contour mask and the to-be-corrected eye image to obtain a second intermediate image; and integrating pixel values of corresponding positions in the first intermediate image and the second intermediate image to obtain the further corrected eye image.

  12. Claim 12Depends on #9

    The apparatus according to claim 9, the memory storing computer-readable instructions that when executed by the one or more processors, further cause the apparatus to: perform down-sampling processing on the to-be-corrected eye image to generate a down-sampled image; and perform up-sampling processing on the down-sampled image to obtain the eye motion flow field and the eye contour mask, wherein during the up-sampling processing, a feature map generated by the up-sampling processing and a feature map of a same size generated during the down-sampling processing are cascaded and then used as an input image of a next up-sampling operation.

  13. Claim 13Depends on #12

    The apparatus according to claim 12, wherein the down-sampling processing and the up-sampling processing are implemented by a gaze correction model, the eye motion flow field is data of a first channel and a second channel in output data of the gaze correction model, and the eye contour mask is data of a third channel in the output data.

  14. Claim 14Depends on #9

    The apparatus according to claim 9, the memory storing computer-readable instructions that when executed by the one or more processors, further cause the apparatus to: recognize contour key points of eyes from the to-be-corrected image; determine a minimum circumscribed rectangle based on the contour key points; specify a multiple for extension of the minimum circumscribed rectangle to obtain an image capture frame; and capture, based on the image capture frame, the to-be-corrected eye image from the to-be-corrected image.

  15. Claim 15Depends on #9

    The apparatus according to claim 9, the memory storing computer-readable instructions that when executed by the one or more processors, further cause the apparatus to: integrate the corrected eye image into an image capture frame position of the to-be-corrected image to obtain an integrated image, wherein the image capture frame position is a position of the to-be-corrected eye image in the to-be-corrected image; and perform image harmonization processing at the image capture frame position in the integrated image to obtain the gaze corrected image, wherein the image harmonization processing is used for eliminating boundary traces at the image capture frame position.

  16. Claim 16Depends on #15

    The apparatus according to claim 15, wherein the performing image harmonization processing at the image capture frame position in the integrated image comprises: generating an initialized mask image of a same size as the to-be-corrected image, wherein a pixel value of the initialized mask image at the image capture frame position is a first specified value, pixel values of remaining positions are a second specified value different from the first specified value, and the remaining positions are positions in the initialized mask image except the image capture frame position; performing noise processing on the initialized mask image to obtain a processed mask image; fusing pixel values of corresponding positions in the processed mask image and the integrated image to obtain a first generated image; fusing pixel values of corresponding positions in a mapped image corresponding to the processed mask image and the to-be-corrected image to obtain a second generated image; and integrating pixel values of corresponding positions in the first generated image and the second generated image to obtain the gaze corrected image.

  17. Claim 17Independent Claim

    A non-transitory computer-readable storage medium, storing computer-readable instructions that when executed by at least one processor causes the at least one processor to: acquire a to-be-corrected eye image from a to-be-corrected image; generate, based on the to-be-corrected eye image, an eye motion flow field comprising a first plurality of pixels and an eye contour mask comprising a second plurality of pixels, wherein each of the first plurality of pixels comprises a horizontal displacement and a vertical displacement, and each of the second plurality of pixels indicates a probability that a corresponding pixel in the to-be-corrected eye image belongs to an eye region; perform, based on the eye motion flow field and the eye contour mask, gaze correction processing on the to-be-corrected eye image to obtain a corrected eye image, the gaze correction processing comprising: performing, using the eye motion flow field, transformation processing on the to-be-corrected eye image to obtain an initially corrected eye image; performing, using the eye contour mask, adjustment processing on the initially corrected eye image to obtain a further corrected eye image, wherein the adjustment processing comprises fusing pixel values of corresponding positions in the eye contour mask and the initially corrected eye image to obtain a first intermediate image; and generate a gaze corrected image based on the corrected eye image.

  18. Claim 18Depends on #17

    The non-transitory computer-readable storage medium according to claim 17, wherein the gaze correction processing further comprises: determining the further corrected eye image as the corrected eye image.

  19. Claim 19Depends on #18

    The non-transitory computer-readable storage medium according to claim 18, wherein the adjustment processing further comprises: fusing pixel values of corresponding positions in a mapped image corresponding to the eye contour mask and the to-be-corrected eye image to obtain a second intermediate image; and integrating pixel values of corresponding positions in the first intermediate image and the second intermediate image to obtain the further corrected eye image.

  20. Claim 20Depends on #17

    The non-transitory computer-readable storage medium according to claim 17, further storing computer-readable instructions that when executed by at least one processor causes the at least one processor to: perform down-sampling processing on the to-be-corrected eye image to generate a down-sampled image; and perform up-sampling processing on the down-sampled image to obtain the eye motion flow field and the eye contour mask, wherein during the up-sampling processing, a feature map generated by the up-sampling and a feature map of a same size generated during the down-sampling processing are cascaded and then used as an input image of a next up-sampling operation.

Technical Overview & Description

CROSS-REFERENCE RELATED APPLICATION(S) This application is a continuation application of International Application No. PCT/CN2022/072315, filed on Jan. 17, 2022, which claims priority to Chinese Patent Application No. 202110089871.5 filed with the China National Intellectual Property Administration on Jan. 22, 2021, the disclosures of which are incorporated by reference in their entireties. FIELD The disclosure relates to the field of artificial intelligence technologies, and relates to an image gaze correction method, apparatus, electronic device, computer-readable storage medium, and computer program product. BACKGROUND Gaze correction of an image object such as a person and an animal is a typical application of artificial intelligence in graph and image processing, and has various application scenarios. Generally speaking, in order to achieve gaze correction, a head pose angle is usually estimated first, so as to obtain a head offset direction, and then an included angle between the head offset direction and a gaze of facing a camera is used for estimating a degree of a gaze that needs to be corrected, and correcting an eyeball position according to the degree, thereby achieving the gaze correction. However, the above process of achieving gaze correction includes sequential calculation of a plurality of parameters, and there will be an error in parameter calculation of each operation. The errors will be accumulated and magnified in the entire gaze correction process, resulting in a low accuracy of the gaze correction. SUMMARY The disclosure may provide an image gaze correction method, apparatus, electronic device, computer-readable storage medium, and computer program product, which can improve the accuracy of gaze correction. An image gaze correction method may be provided in some embodiments, the method is performed by an electronic device, and the method includes: acquiring a to-be-corrected eye image from a to-be-corrected image; generating, based on the to-b

Cited By — Indexed Forward Citations (1 of 1 total)

References Cited — Backward Prior Art (18)

PatentTitleYearCitations

Non-Patent Literature (2)

  • International Search Report for PCT/CN2022/072315 dated, Apr. 7, 2022 (PCT/ISA/210).
  • Written Opinion of the International Search Report for PCT/CN2022/072315 dated, Apr. 7, 2022 (PCT/ISA/210).