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 decreasing 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
[0084] The present invention provides a method for automatically performing rotation correction before the image is saved or browsed. In this method, after the image data is captured by a digital camera or scanned by a scanner, before the image data is saved or displayed for the user to browse, or after the saved image file is opened and the image data is read, the image will be read Before the data is displayed to the user for browsing, the image data is automatically rotated angle detection and automatic rotation correction, so as to ensure that the image that the user sees when browsing the image is rotated and corrected, and the user has to use image browsing tools for manual rotation Correction trouble.
[0085] 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 according to the rotation angle; then save or d...
Embodiment 2
[0121] The difference between this embodiment and the first embodiment is that in this embodiment, the step B includes the following steps:
[0122] B1. Rotate the original image several times;
[0123] B2. Calculate the reliability index of the image before rotation and the image after rotation in step B1;
[0124] B3. After the rotation angle with the highest reliability index is converted into an angle of [0°, 360°]:
[0125] If the converted angle is within the range of [0°, 45°] or [315°, 360°], the rotation angle needs to be set to 0°;
[0126] If the converted angle is within the range of (45°, 135°), the rotation angle needs to be set to 90°, and the required rotation direction is the rotation direction of step B1;
[0127] If the converted angle is within the range of [135°, 225°], the rotation angle needs to be set to 180°, and the required rotation direction is the rotation direction of step B1;
[0128] If the converted angle is within the range of (225°, 315°), the required r...
Embodiment 3
[0131] The difference between this embodiment and the first embodiment is that, in this embodiment, the image rotation correction method includes the following steps:
[0132] Step A: Read the original image data;
[0133] 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 and ends; otherwise, step B is executed;
[0134] Step B. Detect 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 rotation, and record the rotation angle with the highest reliability index as the angle to be rotated;
[0135] Step C: Perform rotation correction on the image according to the detected rotation angle.
[0136] Compared with the first embodiment, this embodiment adds step B'. First, a higher reliability index is set. If the reliability index before rotation reaches the set value, it is consi...
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