WO2012000296A1 - Image tilt correction method and apparatus - Google Patents
Image tilt correction method and apparatus Download PDFInfo
- Publication number
- WO2012000296A1 WO2012000296A1 PCT/CN2010/080304 CN2010080304W WO2012000296A1 WO 2012000296 A1 WO2012000296 A1 WO 2012000296A1 CN 2010080304 W CN2010080304 W CN 2010080304W WO 2012000296 A1 WO2012000296 A1 WO 2012000296A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- image
- grayscale image
- projection
- grayscale
- black
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformation in the plane of the image
Definitions
- the present invention relates to the field of image processing technologies, and in particular, to an image tilt correction method and apparatus. Background technique
- image processing technology is widely used in intelligent transportation systems.
- the image recognition technology is usually used to image the license plate of the vehicle, thereby realizing the automatic acquisition of the license plate number of the vehicle.
- the prior art license plate image recognition system needs to perform image correction processing on the license plates of all the detected vehicles, so that the image of the license plate can facilitate the image recognition system to recognize the license plate number.
- the image correction processing method in the prior art performs correction processing on all detected images, and performs image correction processing on vehicles that have not tilted, which greatly increases the burden of image correction processing and affects the license plate.
- the speed at which the tilted vehicle performs image correction processing reduces the correction efficiency of the image correction processing. Therefore, the processing method of the prior art method is low in efficiency.
- the present invention provides an image tilt correction method and apparatus for solving the defect of low efficiency of the image tilt correction method in the prior art, and improving the correction efficiency of the image tilt correction method.
- the step of performing a projection process on the grayscale image to determine whether the grayscale image is tilted specifically:
- Whether the grayscale image is tilted is determined based on the comparison result.
- An embodiment of the present invention further provides an image tilt correction apparatus, including:
- a grayscale processing module configured to perform grayscale processing on the acquired image to obtain a grayscale image
- a projection processing module configured to perform a projection process on the grayscale image to determine whether the grayscale image is tilted; : performing binarization processing on the grayscale image to obtain a binarized image; performing vertical projection on the binarized image to obtain a projection length of the binarized image; and using the projection length and the pre-projection length Setting a projection length threshold for comparison; determining whether the grayscale image is tilted according to a comparison result;
- a correction processing module configured to perform a tilt correction process on the grayscale image if the grayscale image is tilted.
- the image tilt correction method and apparatus determines whether the grayscale image is tilted by performing projection processing on the grayscale image, and performs tilt correction processing on the grayscale image if the grayscale image is in an oblique state, and The oblique grayscale image is not subjected to the tilt correction processing, and the correction efficiency of the image tilt correction method is improved.
- FIG. 1 is a flow chart of an embodiment of an image tilt correction method according to the present invention.
- FIG. 2 is a specific flowchart of step 102 in the image tilt correction method embodiment of the present invention
- FIG. 3 is a specific flowchart of step 103 in the image tilt correction method embodiment of the present invention
- 4 is a schematic structural view of an embodiment of an image tilt correction device according to the present invention
- FIG. 5 is a schematic structural diagram of a projection processing module in an embodiment of an image tilt correction apparatus according to the present invention.
- Fig. 6 is a schematic view showing the detailed structure of a correction processing module in the embodiment of the image tilt correction device of the present invention. detailed description
- FIG. 1 is a flow chart of an embodiment of an image tilt correction method of the present invention. As shown in FIG. 1, the image tilt correction method of this embodiment includes:
- Step 101 Perform grayscale processing on the acquired image to obtain a grayscale image.
- step 101 in the present embodiment processes the acquired image information so that the processed image becomes a grayscale image.
- the vehicle license plate is detected in the intelligent transportation system as an example.
- the image information of the vehicle license plate on the road is obtained by the image acquisition device such as the camera provided on the road, and then the image information of the license plate is obtained through step 101.
- Grayscale processing is performed to obtain a grayscale image of the license plate image.
- Step 102 Perform a projection process on the grayscale image to determine whether the grayscale image is tilted.
- the obtained grayscale image is subjected to projection processing by step 102, and it is determined whether the grayscale image is tilted based on the image information obtained by the projection.
- Step 103 If the grayscale image is tilted, the grayscale image is subjected to tilt correction processing.
- the grayscale image is obtained as a tilted image.
- the grayscale image is subjected to tilt correction processing in step 103.
- step 102 after it is known in step 102 that the obtained grayscale image of the license plate is in an inclined state, it can be determined that the detected license plate of the vehicle is inclined, and it is necessary to perform tilt correction processing on the grayscale image of the inclined license plate, and then step through 103 corrects the grayscale image of the license plate to obtain a grayscale image of the license plate without the oblique angle, so that the subsequent program obtains the license plate number according to the grayscale image without the oblique angle.
- the image tilt correction method of the present embodiment can be applied to the license plate recognition system of the intelligent transportation system, and can also be used for other occasions where the image is subjected to the tilt correction processing.
- the grayscale image is subjected to projection processing to determine whether the grayscale image is tilted, and if the grayscale image is in an oblique state, the grayscale image is subjected to tilt correction processing, and for the grayscale without tilting
- the degree image is not subjected to the tilt correction processing, and the correction efficiency of the image tilt correction method is improved.
- the image tilt correction method of the embodiment performs the tilt correction processing only on the image in the tilt state, and the tilt-free image does not need to perform the tilt correction processing, thereby effectively avoiding image information loss in the non-tilted image, which is beneficial to improving the entire image. The efficiency of the process.
- step 102 in this embodiment is shown in FIG. 2, and specifically includes the following steps:
- Step 1021 Perform a binarization process on the grayscale image to obtain a binarized image.
- the grayscale image obtained in step 101 is binarized to convert the grayscale image into a binarized image.
- the license plate number will turn white and the background will turn black, thus forming a black and white binarized image.
- Step 1022 Perform vertical projection on the binarized image to obtain a projection length of the binarized image.
- a binarized image of the grayscale image is obtained by step 1021, and a binarized image is vertically projected by step 1022, so that the projection length of the binarized image can be obtained.
- a black and white spaced projection is formed in the X-axis direction, and the projection length can be the total length of the white projection of the white license plate number on the X-axis, or X. The total length of the black projection between the white projections on the axis.
- Step 1023 Compare the projection length with a preset projection length threshold. Specifically, by step After the vertical projection of the binarized image, the length of the white projection area of the binarized image and the length of the black projection area are obtained (in the case of the license plate, for example, the white license plate number is white on the X-axis). The total length of the projection and the total length of the black projection between the white projections on the X-axis). Since the projection of the binarized image of black and white includes two parts of black and white, the projection length threshold also includes a black length threshold and a white length threshold.
- the black length threshold is the length value of the black projection length obtained on the X-axis after the vertical projection processing of the black-and-white binary image in the non-tilted state
- the white length value is the black and white in the non-tilted state.
- the white projection length on the X-axis of the currently processed binarized image is compared to the white length threshold; the black projection length on the X-axis of the currently processed binarized image is compared to the black length threshold.
- Step 1024 If the black projection length of the currently processed binarized image on the X axis is less than the black length threshold, determine that the grayscale image is in a tilt state; or, if the white projection length of the binarized image is greater than the white length threshold, Then, it is determined that the grayscale image is in an inclined state. Specifically, the projection length obtained on the X-axis after the vertical projection of the black-and-white binary image of the license plate is described. In the binarized image of the license plate, the image of the license plate number is white, and the image of the background is black.
- the white projection length of the license plate number on the X axis will increase, and the background area between the license plate numbers is on the X axis.
- the black projection length on the upper side is correspondingly shortened, so that when the black projection length of the black and white binarized image of the license plate on the X axis is smaller than the black length threshold, it is determined that the grayscale image is in an inclined state, thereby determining that the license plate is inclined.
- the white projection length of the black and white binarized image of the license plate on the X-axis is greater than the white length threshold, it is determined that the grayscale image is tilted, thereby determining that the license plate is tilted.
- the white length threshold and the black length threshold may be set according to specific application scenarios.
- the license plate number is a white character
- the background area between the license plate numbers is black.
- the black length threshold described above is an empirical value that can be predetermined based on the number of license plate characters and the interval between characters. For white lengths, in black and white The valued image is a small value without any inclination. Therefore, a reasonable empirical value can be set as the white length threshold according to the allowable tilt, when the black and white binarized image of the license plate is at
- the image tilt correction method disclosed in the above embodiment is specifically described as an example of a license plate applied to a smart transportation system. In practice, it can also be used in other situations where it is necessary to perform tilt correction processing on an image.
- the image tilt correction method of the present embodiment knows the projection length of the grayscale image by performing projection processing on the grayscale image, and then compares the projection length with the preset length threshold, so that it can be conveniently obtained according to the projection length. Whether or not the grayscale image is oblique is more advantageous for improving the correction efficiency of the image tilt correction method of the present embodiment.
- step 103 in this embodiment specifically includes the following steps:
- Step 1031 Acquire edge information of the grayscale image. Specifically, after the gray image is tilted by step 102, the tilt correction process needs to be performed in step 103. Step 1031 processes the grayscale image to obtain edge information of the grayscale image. In order to obtain the edge information of the grayscale image more reliably, the step 1031 in this embodiment can obtain the edge information of the grayscale image by using the Canny operator, and the Canny operator can increase the applicable range of the edge detection in a larger range, thereby further Conducive to accurate and reliable edge information of grayscale images.
- Step 1032 Calculate a tilt angle of the grayscale image according to the edge information. Specifically, after obtaining the edge information of the gray image by step 1031, the tilt angle of the gray image is calculated according to the edge information by step 1032.
- step 1032 in this embodiment may perform the contrast processing on the edge information of both sides of the grayscale image by Hough transform to calculate the level of the grayscale image. slope. For example: For the edge information corresponding to the inclined license plate, the effective edge information of the upper and lower parts of the license plate is extracted by Hough transform, and the comparison processing is performed, which can quickly and accurately calculate the horizontal inclination of the license plate, effectively avoiding the middle of the license plate, etc. Image The influence of the information interference line improves the calculated correct rate of the license plate inclination.
- Step 1033 Rotate the grayscale image according to the tilt angle to output the grayscale image without the tilt angle. Specifically, after the tilt angle corresponding to the gray image is calculated in step 1032, the gray image may be rotated according to the tilt angle in step 1033 to output the gray image without the tilt angle.
- step 1033 in this embodiment may perform rotation correction on the grayscale image by the bilinear interpolation algorithm according to the tilt angle. After the gray image is rotated by the bilinear interpolation algorithm, the gray image without tilt angle can be obtained, which can facilitate the subsequent image processing.
- the edge information of the gray image is obtained, and the tilt angle is calculated according to the edge information. Finally, the gray image is rotated according to the tilt angle to obtain the gray image without the tilt angle, which can be quickly and effectively
- the grayscale image that requires the tilt correction processing is processed, which is more advantageous for improving the correction efficiency of the image tilt correction method of the present embodiment.
- the image tilt correction apparatus of the present embodiment includes: a gradation processing module 1, a projection processing module 2, and a correction processing module 3.
- the gradation processing module 1 is configured to perform gradation processing on the acquired image to obtain a grayscale image; the projection processing module 2 is configured to perform projection processing on the grayscale image to determine whether the gradation image is tilted; and the correction processing module 3 is configured to If the grayscale image is tilted, the grayscale image is subjected to tilt correction processing.
- the grayscale processing module 1 in this embodiment performs grayscale processing on the acquired image; then, the projection processing module 2 performs projection processing on the grayscale image generated by the grayscale processing module 1 to determine gray. Whether the degree image is tilted; Finally, the correction processing module 3 performs a correction process on the tilted grayscale image to obtain a normal state non-tilted grayscale image.
- the specific processing procedure of the image tilting correction apparatus of this embodiment can be referred to the description of the embodiment of the image tilt correction method of the present invention, and details are not described herein again.
- the grayscale image is subjected to projection processing to determine whether the grayscale image is tilted, and if the grayscale image is in an oblique state, the grayscale image is tilt corrected.
- the tilt correction processing is not performed on the grayscale image without tilt, and the correction efficiency of the image tilt correction method is improved.
- the image tilt correction method of the embodiment performs the tilt correction processing only on the image in the tilt state, and the tilt-free image does not need to perform the tilt correction processing, thereby effectively avoiding image information loss in the non-tilted image, which is beneficial to improving the entire image. The efficiency of the process.
- the projection processing module 2 in this embodiment includes: a projection sub-module 21, a judging sub-module 22, a first determining sub-module 23, and a second determining sub-module.
- the projection sub-module 21 is configured to project a grayscale image to obtain a projection length of the grayscale image; the determining sub-module 22 is configured to compare the projection length with a preset length threshold; the first determining sub-module 23 is configured to compare As a result, the grayscale image is determined to be in a tilted state; the second determining sub-module 24 is configured to determine that the grayscale image is in a normal state based on the comparison result.
- the projection sub-module 21 is specifically configured to: perform binarization processing on the grayscale image to obtain a binary image of black and white, wherein black represents the background color of the image; and vertically project the binary image of black and white, Obtain a black projection length or a white projection length on the X-axis;
- the determining sub-module 22 is specifically configured to: compare the black projection length with a preset black length threshold, or compare the white projection length with a preset white length threshold;
- the first determining sub-module 23 is specifically configured to: if the comparison result is that the black projection length is less than the black length threshold, determine that the grayscale image is in a tilt state; or, if the white projection length is greater than the white length threshold, determine that the grayscale image is tilted State
- the second determining sub-module 24 is specifically configured to: if the black projection length is not less than the black length threshold, determine that the grayscale image is in a normal state; or, if the white projection length is not greater than the white length threshold, determine that the grayscale image is in a normal state.
- the projection length of the grayscale image is obtained by performing projection processing on the grayscale image, and then the projection length is compared with a preset length threshold, so that the gray can be conveniently obtained according to the projection length. Whether the degree image is oblique or not is more advantageous for improving the correction efficiency of the image tilt correction method of the present embodiment.
- the correction processing module 3 in this embodiment includes: an acquisition sub-module 31, a calculation sub-module 32, and a rotation sub-module 33.
- the obtaining sub-module 31 is configured to acquire edge information of the grayscale image if the grayscale image is tilted; the calculation sub-module 32 is configured to calculate a tilt angle of the grayscale image according to the edge information; and the rotation sub-module 33 And for rotating the grayscale image according to the tilt angle to output the grayscale image without an oblique angle.
- the obtaining sub-module 31 in this embodiment is also used to obtain the edge information of the grayscale image by the Canny operator; in order to obtain the tilt of the grayscale image more accurately and effectively
- the calculation sub-module 32 is further configured to perform edge processing on the edge information of the gray image by Hough transform to calculate the horizontal tilt angle of the gray image; and to rotate the gray image quickly and reliably, and reduce The information loss of the grayscale image during the small rotation, the rotation sub-module 33 is also used to perform rotation correction on the grayscale image by the bilinear interpolation algorithm according to the tilt angle.
- the image tilt correction device of the embodiment obtains the edge information of the gray image and calculates the tilt angle according to the edge information. Finally, the gray image is rotated according to the tilt angle to obtain the gray image without the tilt angle, which can be quickly and effectively The grayscale image that requires the tilt correction processing is processed, which is more advantageous for improving the correction efficiency of the image tilt correction method of the present embodiment.
- embodiments of the present invention can be provided as a method, system, or computer program product.
- the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware.
- the present invention may employ a computer usable storage medium (including but not limited to disk storage, in one or more of which contains computer usable program code.
- the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
- the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
- These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
- the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
Abstract
Description
Claims
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010221775 CN101923710A (en) | 2010-06-30 | 2010-06-30 | Image tilt correction method and device |
CN201010221775.3 | 2010-06-30 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2012000296A1 true WO2012000296A1 (en) | 2012-01-05 |
Family
ID=43338620
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2010/080304 WO2012000296A1 (en) | 2010-06-30 | 2010-12-27 | Image tilt correction method and apparatus |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN101923710A (en) |
WO (1) | WO2012000296A1 (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101923710A (en) * | 2010-06-30 | 2010-12-22 | 青岛海信网络科技股份有限公司 | Image tilt correction method and device |
CN103279924B (en) * | 2013-05-24 | 2015-11-25 | 中南大学 | A kind of bearing calibration of the patent certificate image to arbitrary inclination |
JP5598576B1 (en) * | 2013-06-24 | 2014-10-01 | 富士ゼロックス株式会社 | MFP and reader |
CN104573655B (en) * | 2015-01-09 | 2018-03-20 | 安徽清新互联信息科技有限公司 | A kind of sidewalk for visually impaired people direction detection method based on video |
CN105335760A (en) * | 2015-11-16 | 2016-02-17 | 南京邮电大学 | Image number character recognition method |
CN106791736B (en) * | 2015-11-25 | 2020-05-15 | 中兴通讯股份有限公司 | Trapezoidal correction method and projector |
CN106951896B (en) * | 2017-02-22 | 2020-01-03 | 武汉黄丫智能科技发展有限公司 | License plate image tilt correction method |
CN108052936B (en) * | 2017-11-03 | 2021-06-29 | 中国科学院计算技术研究所 | Automatic inclination correction method and system for Braille image |
CN110849326B (en) * | 2019-12-25 | 2022-06-07 | 深圳供电局有限公司 | Telegraph pole monitoring method and monitoring equipment |
CN112001238A (en) * | 2020-07-14 | 2020-11-27 | 浙江大华技术股份有限公司 | Terminal block wiring state recognition method, recognition device, and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020028027A1 (en) * | 2000-09-07 | 2002-03-07 | Fuji Xerox Co., Ltd. | Image processing device, image processing method, and recording medium storing image processing program |
US6493470B1 (en) * | 1995-06-20 | 2002-12-10 | Canon Kabushiki Kaisha | Image processing method and apparatus for detecting the tilt amount of input image data |
CN101118596A (en) * | 2007-09-04 | 2008-02-06 | 西安理工大学 | License plate sloped correcting method based on supporting vector machines |
CN101923710A (en) * | 2010-06-30 | 2010-12-22 | 青岛海信网络科技股份有限公司 | Image tilt correction method and device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100487723C (en) * | 2006-04-29 | 2009-05-13 | 北大方正集团有限公司 | Method for recognizing print form italic character |
CN101625760A (en) * | 2009-07-28 | 2010-01-13 | 谭洪舟 | Method for correcting certificate image inclination |
-
2010
- 2010-06-30 CN CN 201010221775 patent/CN101923710A/en active Pending
- 2010-12-27 WO PCT/CN2010/080304 patent/WO2012000296A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6493470B1 (en) * | 1995-06-20 | 2002-12-10 | Canon Kabushiki Kaisha | Image processing method and apparatus for detecting the tilt amount of input image data |
US20020028027A1 (en) * | 2000-09-07 | 2002-03-07 | Fuji Xerox Co., Ltd. | Image processing device, image processing method, and recording medium storing image processing program |
CN101118596A (en) * | 2007-09-04 | 2008-02-06 | 西安理工大学 | License plate sloped correcting method based on supporting vector machines |
CN101923710A (en) * | 2010-06-30 | 2010-12-22 | 青岛海信网络科技股份有限公司 | Image tilt correction method and device |
Also Published As
Publication number | Publication date |
---|---|
CN101923710A (en) | 2010-12-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2012000296A1 (en) | Image tilt correction method and apparatus | |
WO2018219054A1 (en) | Method, device, and system for license plate recognition | |
WO2016192494A1 (en) | Image processing method and device | |
JP4488543B2 (en) | Search and match embedded images | |
CN110348264B (en) | QR two-dimensional code image correction method and system | |
US20110299761A1 (en) | Image Processing Apparatus, Image Processing Method, and Program | |
US8428361B2 (en) | Image processing apparatus for detecting a face | |
CN105488501A (en) | Method for correcting license plate slant based on rotating projection | |
US9087253B2 (en) | Method and system for determining edge line in QR code binary image | |
TWI425444B (en) | Method and device for detecting and correcting skewed image data | |
WO2017206444A1 (en) | Method and device for detecting imaging difference, and computer storage medium | |
JP2003051017A (en) | White line detector | |
JP2013025319A (en) | Binarization threshold determination device, method, and program | |
CN112733703A (en) | Vehicle parking state detection method and system | |
US9077926B2 (en) | Image processing method and image processing apparatus | |
CN115272199A (en) | PCB carrier plate defect detection method and system, electronic equipment and medium | |
US20200242391A1 (en) | Object detection apparatus, object detection method, and computer-readable recording medium | |
KR20120009591A (en) | Vehicle Collision Alarm System and Method | |
WO2024002396A2 (en) | Vehicle charging port recognition method and related device | |
JP3659426B2 (en) | Edge detection method and edge detection apparatus | |
JP6772059B2 (en) | Electronic control devices, electronic control systems and electronic control methods | |
US10223583B2 (en) | Object detection apparatus | |
TW201311000A (en) | Imaging apparatus and method for positioning thereof | |
TW202129540A (en) | Method and device for recognizing character and storage medium | |
TW201619577A (en) | Image monitoring system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 10853999 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 10853999 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 19.07.2013) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 10853999 Country of ref document: EP Kind code of ref document: A1 |