IP Library › Granted Patent US 12,301,992
Granted Patent B2
US 12,301,992 · App. 18/038,578 · Granted May 13, 2025

Image blur degree determining method and related device thereof

Inventors: Tiantian Zhang (Shenzhen, CN); Yu Wang (Shenzhen, CN); Zhiqi Li (Shenzhen, CN); Ning Wang (Shenzhen, CN); Congchao Zhu (Shenzhen, CN)
Assignee: Honor Device Co., Ltd.
H04N23/6811H04N23/6812H04N23/687
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,301,992
App. No.
18/038,578
Granted
May 13, 2025
Kind
B2
Abstract

This application provides an image blur degree determining method and a related device thereof, and relates to the field of image processing. The image blur degree determining method includes: obtaining an original image; determining a homography transformation matrix corresponding to each image block arranged in a column direction in the original image, where the column direction is perpendicular to a row direction in which an electronic device performs row-by-row exposure; and determining a blur degree of the original image based on each image block and the corresponding homography transformation matrix. This application can implement an objective of quickly calculating a blur degree of an image without being affected by image content.

Claims (71)

1. An image blur degree determining method, the method comprising:

obtaining, by an electronic device, an original image;

determining, by the electronic device, for each image block arranged in a column direction in the original image, a homography transformation matrix corresponding to the image block, wherein the column direction is perpendicular to a row direction in which the electronic device performs row-by-row exposure; and

determining, by the electronic device, a blur degree of the original image based on the homography transformation matrices corresponding to the image blocks, wherein the determining the blur degree of the original image comprises:

determining, for each image block, based on the image block and the corresponding homography transformation matrix, a blur degree corresponding to the image block; and

determining an average value of blur degrees corresponding to the image blocks, wherein the average value is the blur degree of the original image.

2. The image blur degree determining method according to claim 1 , wherein the electronic device comprises a gyro sensor and an optical image stabilization (OIS) controller, and the method further comprises:

obtaining original gyro data by using the gyro sensor;

determining, based on the original gyro data, first gyro data separately corresponding to each image block at an exposure start moment and an exposure end moment;

obtaining original OIS data by using the OIS controller; and

determining, based on the original OIS data, first OIS data separately corresponding to each image block at the exposure start moment and the exposure end moment.

3. The image blur degree determining method according to claim 2 , wherein the determining, for each image block arranged in the column direction in the original image, the homography transformation matrix corresponding to the image block comprises:

determining, for each image block based on the first gyro data separately corresponding to the image block at the exposure start moment and the exposure end moment and the first OIS data separately corresponding to the image block at the exposure start moment and the exposure end moment, the homography transformation matrix corresponding to the image block.

4. The image blur degree determining method according to claim 3 , wherein the determining, for each image block based on the first gyro data separately corresponding to the image block at the exposure start moment and the exposure end moment and the first OIS data separately corresponding to the image block at the exposure start moment and the exposure end moment, the homography transformation matrix corresponding to the image block comprises:

determining a rotation matrix for each image block based on the first gyro data separately corresponding to the image block at the exposure start moment and the exposure end moment;

determining a first camera intrinsic parameter matrix based on the first OIS data separately corresponding to the image block at the exposure start moment and the exposure end moment, wherein the first camera intrinsic parameter matrix is used to indicate a corresponding camera intrinsic parameter matrix used when the OIS controller is enabled; and

determining the homography transformation matrix based on the rotation matrix and the first camera intrinsic parameter matrix by using a formula H=KRK ois −1 ,

wherein H represents the homography transformation matrix, K represents a standard camera intrinsic parameter, R represents the rotation matrix, and K ois −1 represents an inverse of the first camera intrinsic parameter matrix.

5. The image blur degree determining method according to claim 1 , wherein the determining, for each image block, based on the image block and the corresponding homography transformation matrix, the blur degree corresponding to the image block comprises:

determining, for any target point in the image block, first coordinates of the target point in the image block;

transforming the first coordinates of the target point by using the homography transformation matrix corresponding to the image block, to determine second coordinates corresponding to the target point after transformation; and

determining, based on coordinate differences between the first coordinates and the second coordinates, the blur degree corresponding to the image block, wherein the coordinate differences comprise a coordinate difference in the row direction and a coordinate difference in the column direction.

6. An electronic device, comprising:

a camera configured to obtain an original image;

a processor; and

a memory configured to store a computer program that, when run on the processor, causes the electronic device to perform operations comprising:

determining, for each image block arranged in a column direction in the original image, a homography transformation matrix corresponding to the image block, wherein the column direction is perpendicular to a row direction in which the electronic device performs row-by-row exposure; and

determining a blur degree of the original image based on the homography transformation matrices corresponding to the image blocks, wherein the determining the blur degree of the original image comprises:

determining, for each image block, based on the image block and the corresponding homography transformation matrix, a blur degree corresponding to the image block; and

determining an average value of blur degrees corresponding to the image blocks, wherein the average value is the blur degree of the original image.

7. The electronic device according to claim 6 , further comprising:

a gyro sensor; and

an optical image stabilization (OIS) controller;

wherein the computer program, when run on the processor, further causes the electronic device to perform operations comprising:

obtaining original gyro data by using the gyro sensor;

determining, based on the original gyro data, first gyro data separately corresponding to each image block at an exposure start moment and an exposure end moment;

obtaining original OIS data by using the OIS controller; and

determining, based on the original OIS data, first OIS data separately corresponding to each image block at the exposure start moment and the exposure end moment.

8. The electronic device according to claim 7 , wherein the determining, for each image block arranged in the column direction in the original image, the homography transformation matrix corresponding to the image block comprises:

determining, for each image block based on the first gyro data separately corresponding to the image block at the exposure start moment and the exposure end moment and the first OIS data separately corresponding to the image block at the exposure start moment and the exposure end moment, the homography transformation matrix corresponding to the image block.

9. The electronic device according to claim 8 , wherein the determining, for each image block based on the first gyro data separately corresponding to the image block at the exposure start moment and the exposure end moment and the first OIS data separately corresponding to the image block at the exposure start moment and the exposure end moment, the homography transformation matrix corresponding to the image block comprises:

determining a rotation matrix for each image block based on the first gyro data separately corresponding to the image block at the exposure start moment and the exposure end moment;

determining a first camera intrinsic parameter matrix based on the first OIS data separately corresponding to the image block at the exposure start moment and the exposure end moment, wherein the first camera intrinsic parameter matrix is used to indicate a corresponding camera intrinsic parameter matrix used when the OIS controller is enabled; and

determining the homography transformation matrix based on the rotation matrix and the first camera intrinsic parameter matrix by using a formula H=KRK ois −1 ,

wherein H represents the homography transformation matrix, K represents a standard camera intrinsic parameter, R represents the rotation matrix, and K ois −1 represents an inverse of the first camera intrinsic parameter matrix.

10. The electronic device according to claim 6 , wherein the determining, for each image block, based on the image block and the corresponding homography transformation matrix, the blur degree corresponding to the image block comprises:

determining, for any target point in the image block, first coordinates of the target point in the image block;

transforming the first coordinates of the target point by using the homography transformation matrix corresponding to the image block, to determine second coordinates corresponding to the target point after transformation; and

determining, based on coordinate differences between the first coordinates and the second coordinates, the blur degree corresponding to the image block, wherein the coordinate differences comprise a coordinate difference in the row direction and a coordinate difference in the column direction.

11. A non-transitory computer-readable storage medium that stores a computer program, wherein the computer program comprises program instructions, and when the program instructions are executed by a processor of an electronic device, the processor is enabled to perform operations comprising:

obtaining an original image;

determining, for each image block arranged in a column direction in the original image, a homography transformation matrix corresponding to the image block, wherein the column direction is perpendicular to a row direction in which the electronic device performs row-by-row exposure; and

determining a blur degree of the original image based on the homography transformation matrices corresponding to the image blocks, wherein the determining the blur degree of the original image comprises:

determining, for each image block, based on the image block and the corresponding homography transformation matrix, a blur degree corresponding to the image block; and

determining an average value of blur degrees corresponding to the image blocks, wherein the average value is the blur degree of the original image.

12. The computer-readable storage medium according to claim 11 , wherein the electronic device comprises a gyro sensor and an optical image stabilization (OIS) controller, and the operations further comprise:

obtaining original gyro data by using the gyro sensor;

determining, based on the original gyro data, first gyro data separately corresponding to each image block at an exposure start moment and an exposure end moment;

obtaining original OIS data by using the OIS controller; and

determining, based on the original OIS data, first OIS data separately corresponding to each image block at the exposure start moment and the exposure end moment.

13. The computer-readable storage medium according to claim 12 , wherein the determining, for each image block arranged in the column direction in the original image, the homography transformation matrix corresponding to the image block comprises:

determining, for each image block based on the first gyro data separately corresponding to the image block at the exposure start moment and the exposure end moment and the first OIS data separately corresponding to the image block at the exposure start moment and the exposure end moment, the homography transformation matrix corresponding to the image block.

14. The computer-readable storage medium according to claim 13 , wherein the determining, for each image block based on the first gyro data separately corresponding to the image block at the exposure start moment and the exposure end moment and the first OIS data separately corresponding to the image block at the exposure start moment and the exposure end moment, the homography transformation matrix corresponding to the image block comprises:

determining a rotation matrix for each image block based on the first gyro data separately corresponding to the image block at the exposure start moment and the exposure end moment;

determining a first camera intrinsic parameter matrix based on the first OIS data separately corresponding to the image block at the exposure start moment and the exposure end moment, wherein the first camera intrinsic parameter matrix is used to indicate a corresponding camera intrinsic parameter matrix used when the OIS controller is enabled; and

determining the homography transformation matrix based on the rotation matrix and the first camera intrinsic parameter matrix by using a formula H=KRK ois −1 ,

wherein H represents the homography transformation matrix, K represents a standard camera intrinsic parameter, R represents the rotation matrix, and K ois −1 represents an inverse of the first camera intrinsic parameter matrix.

15. The computer-readable storage medium according to claim 11 , wherein the determining, for each image block, based on the image block and the corresponding homography transformation matrix, the blur degree corresponding to the image block comprises:

determining, for any target point in the image block, first coordinates of the target point in the image block;

transforming the first coordinates of the target point by using the homography transformation matrix corresponding to the image block, to determine second coordinates corresponding to the target point after transformation; and

determining, based on coordinate differences between the first coordinates and the second coordinates, the blur degree corresponding to the image block, wherein the coordinate differences comprise a coordinate difference in the row direction and a coordinate difference in the column direction.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 29, 2024
From: ZHANG, TIANTIAN; WANG, YU; LI, ZHIQI; WANG, NING; ZHU, CONGCHAO
To: HONOR DEVICE CO., LTD.
Reel/Frame 067258/0958 →
Priority Claims (1)
CN 202210334189.2 · Mar 31, 2022 · national
Continuity (1)
Related Publication 20240357234A1 · Oct 24, 2024
References Cited (20)
US 11190689B1 · Wang · 2021 [cited by examiner]
US 20070076977A1 · Chen et al. · 2007 [cited by applicant]
US 20120081558A1 · Ogura · 2012 [cited by applicant]
US 20160360111A1 · Thivent et al. · 2016 [cited by applicant]
US 20180336704A1 · Javan Roshtkhari et al. · 2018 [cited by applicant]
US 20200090351A1 · Safdarnejad · 2020 [cited by examiner]
US 20220116539A1 · Wang · 2022 [cited by examiner]
CN 105069753A · 2015 [cited by applicant]
CN 111275626A · 2020 [cited by applicant]
CN 113572993A · 2021 [cited by applicant]
CN 110678898B · 2022 [cited by applicant]
CN 114119678A · 2022 [cited by applicant]
WO 2018223381A1 · 2018 [cited by applicant]
Liu et al;CN116128761 Method for Facilitating Hybrid Homography Conversion Rolling Shutter Unigraph Correction in Portable Device E.g. Mobile Phone, Involves Mapping Image to Be Processed to Obtain Corrected Image Based… [cited by examiner]
Zhen et al., “Semi-blind Deblurring Images Captured with an Electronic Rolling Shutter Mechanism,” Visual Information Processing and Communication VI, vol. 9410, total 9 pages (Mar. 4, 2015). [cited by applicant]
Yang, Jiali et al., “Online Video Stabilization Algorithm on Lie Group Manifold,” Pattern Recognition and Artificial Intelligence, vol. 32, No. 4, 14 pages (Apr. 2019). [cited by applicant]
Pang, Shengli, “The Research on Image Blur Assessment,” Xi'an University of Electronic Science and Technology, 66 pages (Apr. 2010). [cited by applicant]
Wang, Lei et al., “Visual perception driven video motion blur detection method,” China Science Paper, vol. 12, No. 2, 6 pages (Jan. 2017). [cited by applicant]
Su et al., “Rolling Shutter Motion Deblurring,” 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Boston, MA, USA, pp. 1529-1537 (2015). [cited by applicant]
Zhong et al., “Towards Rolling Shutter Correction and Deblurring in Dynamic Scenes,” 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Nashville, TN, USA, pp. 9215-9224 (Apr. 2021). [cited by applicant]