Image rotation correction method and system and electronic device
A technology of image rotation and correction method, which is applied in the field of image processing and can solve the problems of declining reliability index and failing to detect faces.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0082] The present invention proposes a method for automatically performing rotation correction before image saving or viewing. In this method, after the image data is obtained by shooting with a digital camera or scanned by a scanner, before saving the image data or displaying the image data for the user to browse, or after opening the saved image file and reading the image data, the read image Before the data is displayed to the user for browsing, automatic rotation angle detection and automatic rotation correction are performed on the image data, so as to ensure that the image that the user sees when browsing the image has been rotated and corrected, reducing the need for the user to manually rotate with the image browsing tool Calibration hassle.
[0083] see image 3 The image rotation correction method disclosed in the present invention can detect the rotation angle of the image data before saving or browsing the image, and perform rotation correction on the image data ...
Embodiment 2
[0119] The difference between this embodiment and Embodiment 1 is that in this embodiment, the step B includes the following steps:
[0120] B1. Rotate the original image several times respectively;
[0121] B2. Calculate the reliability index of the image before rotation and each image after rotation in step B1;
[0122] B3. After the rotation angle with the highest reliability index is converted into an angle of [0°, 360°]:
[0123] If the converted angle is within the range of [0°, 45°] or [315°, 360°], the rotation angle needs to be set to 0°;
[0124] If the converted angle is within the range of (45°, 135°), the required rotation angle is set to 90°, and the required rotation direction is the rotation direction of step B1;
[0125] If the converted angle is within the range of [135°, 225°], the required rotation angle is set to 180°, and the required rotation direction is the rotation direction of step B1;
[0126] If the converted angle is within the range of (225°, ...
Embodiment 3
[0129] The difference between this embodiment and Embodiment 1 is that in this embodiment, the image rotation correction method includes the following steps:
[0130] Step A, read the original image data;
[0131] Step B', calculate the reliability index before rotation, if the reliability index reaches the set value, it is considered that the image does not need to be rotated, end; otherwise, execute step B;
[0132] Step B, detecting the rotation angle of the image data: rotate the image multiple times, calculate the reliability index of the image before rotation and the image after each rotation, and record the rotation angle with the highest reliability index as the angle to be rotated;
[0133] Step C, perform rotation correction on the image according to the detected rotation angle.
[0134] Compared with Embodiment 1, this embodiment adds step B', first setting a higher value of the reliability index, if the reliability index before rotation reaches the set value, it is ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com