CN110233947A - The method and its image processing system of image angle detection - Google Patents

The method and its image processing system of image angle detection Download PDF

Info

Publication number
CN110233947A
CN110233947A CN201810179380.8A CN201810179380A CN110233947A CN 110233947 A CN110233947 A CN 110233947A CN 201810179380 A CN201810179380 A CN 201810179380A CN 110233947 A CN110233947 A CN 110233947A
Authority
CN
China
Prior art keywords
image
source image
compression
eigenvalue
source
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810179380.8A
Other languages
Chinese (zh)
Inventor
陈政忠
施证浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lite On Electronics Guangzhou Co Ltd
Lite On Technology Corp
Original Assignee
Lite On Electronics Guangzhou Co Ltd
Lite On Technology Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lite On Electronics Guangzhou Co Ltd, Lite On Technology Corp filed Critical Lite On Electronics Guangzhou Co Ltd
Priority to CN201810179380.8A priority Critical patent/CN110233947A/en
Publication of CN110233947A publication Critical patent/CN110233947A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/00681Detecting the presence, position or size of a sheet or correcting its position before scanning
    • H04N1/00684Object of the detection
    • H04N1/00718Skew
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/00681Detecting the presence, position or size of a sheet or correcting its position before scanning
    • H04N1/00763Action taken as a result of detection
    • H04N1/00774Adjusting or controlling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/387Composing, repositioning or otherwise geometrically modifying originals
    • H04N1/3877Image rotation
    • H04N1/3878Skew detection or correction

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

A kind of method and its image processing system of image angle detection, the method is suitable for image processing system and including obtaining source image, and during carrying out compression of images or image decompressor for source image, obtain multiple the First Eigenvalues corresponding to source image, feature detection is carried out using above-mentioned the First Eigenvalue, further according to feature detection as a result, calculating the angle excursion of source image.

Description

The method and its image processing system of image angle detection
Technical field
At a kind of method and its image detected the present invention relates to a kind of technology of image procossing more particularly to image angle Reason system.
Background technique
Image analyzer is mainly divided the objects such as photograph, printed text, manual documentation in a manner of optical scanner Digital picture is analysed and is converted into, and during the scanning process often because the factor of artificial or device itself will be so that be swept The image described generates deflection.The method of general correction image deflection is often only capable of after obtaining complete scan image, ability Operation is carried out to whole image by algorithm.If image is larger, just it is able in addition to needing that image data is waited to obtain completely Start to be corrected outside, also needs more operation times and computing resource, therefore the solution of image angle correction is simultaneously It is not widely used in the printer or scanner of general low order middle on the market.
Summary of the invention
In view of this, the present invention provides the method and its image processing system of a kind of image angle detection, it can be smaller Data volume, system operations resource and time complete image angle detection.
In one embodiment of this invention, above-mentioned method is suitable for image processing system and including obtaining source figure Picture, and during carrying out compression of images or image decompressor for source image, it obtains corresponding to source image Multiple the First Eigenvalues carry out feature detection using above-mentioned the First Eigenvalue, and according to feature detection as a result, calculating source The angle excursion of image.
In one embodiment of this invention, above-mentioned image processing system includes memory and processor, wherein storing Device is coupled to processor.Memory is to store image and data.Processor comes to obtain source image, and being directed to During source images carry out compression of images or image decompressor, multiple the First Eigenvalues corresponding to source image are obtained, Feature detection is carried out using above-mentioned the First Eigenvalue, and according to feature detection as a result, calculating the angle excursion of source image.
To make the foregoing features and advantages of the present invention clearer and more comprehensible, special embodiment below, and it is detailed to cooperate attached drawing to make Carefully it is described as follows.
Detailed description of the invention
Fig. 1 is the block diagram of image processing system shown in an embodiment according to the present invention.
Fig. 2 is the method flow diagram of the detection of image angle shown in an embodiment according to the present invention.
Fig. 3 is the application situation flow chart of the method for the detection of image angle shown in an embodiment according to the present invention.
Fig. 4 is the application situation flow chart of the method for the detection of image angle shown in another embodiment according to the present invention.
Symbol description:
100: image processing system;
110: memory;
120: processor;
S202、S210、S212、S214、S216、S310、S312、S314、S316、S320、S322、S410、S412、 S414, S416: step;
Img30, Img31, Img32, Img33, Img40, Img41, Img42: image.
Specific embodiment
Next section Example of the invention will cooperate attached drawing to be described in detail, element cited in description below Symbol will be regarded as the same or similar element when identical component symbol occur in different attached drawings.These embodiments are the present invention A part, do not disclose all embodiments of the invention.More precisely, these embodiments are right of the invention The example of method and system in it is required that.
Fig. 1 is the block diagram of image processing system shown in an embodiment according to the present invention, but this theory merely for convenience It is bright, it is not intended to limit the invention.Fig. 1 first first introduces all components and configuration relation in image processing system, in detail Function will cooperate Fig. 2 to disclose together.
Fig. 1 is please referred to, image processing system 100 includes memory 110 and processor 120, and wherein memory 110 couples To processor 120.In one embodiment, image processing system 100 can be PC, laptop, tablet computer, work It stands, the computer system with image processing function such as servo computer, giant brain, industrial computer.In another embodiment, Image processing system 100 may include above-mentioned computer system and with its scanner or simultaneous that is wired or being wirelessly connected Electronic equipments, the present invention such as scanning system, printer, the multifunctional paper feeding machine of tool scanning and image processing function are not set herein Limit.
Memory 110 may, for example, be the fixed or removable of any pattern to store the data such as image, procedure code Dynamic formula random access memory (random access memory, RAM), read-only memory (read-only memory, ROM), flash memory (flash memory), hard disk or other similar device, integrated circuit and combinations thereof.
Actuation between component of the processor 120 to control image processing system 100, may, for example, be central processing Micro- place of the general service or specific use of unit (central processing unit, CPU) or other programmables Manage device (microprocessor), digital signal processor (digital signal processor, DSP), graphics processor (graphic processing unit, GPU), programmable controller, special application integrated circuit (application Specific integrated circuits, ASIC), programmable logic device (programmable logic Device, PLD), the combination of other similar device or above-mentioned apparatus.
Fig. 2 is the method flow diagram of the detection of image angle shown in an embodiment according to the present invention, and in the present embodiment Method flow can be realized with each element of image processing system 100.
Referring to Fig. 1 and Fig. 2, firstly, the processor 120 of image processing system 100 (walks receipt source image Rapid S202), and for source image progress compression of images or the process (step S210) of image decompressor.Here, processing Device 120 determines the type of basis source image to carry out compression of images or image decompressor.As an example it is assumed that source figure Seem original map file (raw image) caused by scanner, generally requires to be compressed into for example based on its biggish data volume It is the compression image of jpeg format, to save the storage space of memory 110.Assuming that source image is connect via network transmission The compression image received then needs to decompress to be presented in screen (not shown).
When processor 120 is while carrying out compression of images or image decompressor for source image, it will obtain and Multiple the First Eigenvalues (step S212) corresponding to source images.The First Eigenvalue in this is that processor 120 is carrying out image About generated broker data is converted between spatial domain and frequency domain during compression or image decompressor, because herein Reason device 120 is not required to by additional operation, and this broker data can represent the most characteristics of image of source image.
For general compression of images, can program Jing Guo band separation, by the high frequency value and low frequency value in image It separates and achievees the purpose that high compression rate, wherein the First Eigenvalue employed in the present embodiment is low frequency value.In the present embodiment In, processor 120 can be when carrying out compression of images for source image is first divided into multiple same sizes and not Multiple square blocks (such as 8 × 8,16 × 16) of overlapping, then discrete cosine transform (discrete is carried out for each block Cosine transform, DCT), and each block will generate a DCT coefficient matrix respectively.With one 8 × 8 block For, DCT coefficient matrix will have a DC coefficient (DC value) that 1 represents low frequency and 63 ac coefficients for representing high frequency (AC value).Here, all DC values corresponding to source image will constitute a low-frequency image, and this low-frequency image is enough to describe to come The most characteristics of image of source images.Therefore, processor 120 will obtain the DC value of each block as above-mentioned " first Characteristic value ".It should be noted that in other embodiments, processor 120, which can be, converts (discrete using discrete wavelet Wavelet transform), other modes that can be used for band separation such as Fourier transform (Fourier transform) come The First Eigenvalue is obtained, the present invention does not limit herein.Those skilled in the art should be apparent that processor 120 is in segmentation source Image be multiple blocks before can first carry out color conversion (color transformation), sampling (sampling).In addition, Processor 120 is after having carried out DCT conversion for each block, it will is persistently quantified (quantization), entropy coding Programs such as (entropy encoding), and step S212 can't influence image compression process.
On the other hand, for general image decompressor, in the present embodiment, processor 120 be can be first for next Source images carry out the programs such as entropy decoding (entropy decoding), inverse quantization (inverse quantization) and obtain each The DC value of a block is as " the First Eigenvalue " above-mentioned.Similarly, it is anti-will to be continued for discrete cosine for processor 120 Conversion (inverse discrete cosine transform, IDCT), anti-sampling (unsampling), color inversion are changed Programs such as (inverse color transformation), and step S212 will not influence image uncompressed streams journey.
Processor 120 is after obtaining the First Eigenvalue, it will feature detection (step S214) is carried out using the First Eigenvalue, And according to feature detection as a result, calculating the angle excursion (step S216) of source image.In other words, processor 120 can With using source image carry out compression of images either during image decompressor generated broker data carry out feature Detection, therefrom to obtain the angle excursion of source image.Here, processor 120, which can be, utilizes Hough transformation algorithm (Hough transform), Radon transform (Radon transform), regression analysis (regression analysis) etc. are straight Line detects algorithm (line detection algorithm) to detect in the mediation image being made of the First Eigenvalue Linear feature.In the present embodiment, processor 120 carries out straight-line detection using the low-frequency image being made of DC value, then Relative to horizontal direction or the angle of vertical direction by detected straight-line segment, it can obtain the deflection of source image Angle.Therefore, processor 120 is finished without waiting for compression of images or image decompressor, it can the lesser low frequency of data volume Image calculates the angle excursions of source images.It is illustrated for convenience, the application situation of following embodiment explanatory diagram in future 2.
Fig. 3 is the application situation flow chart of the method for the detection of image angle shown in an embodiment according to the present invention.This reality Applying the method flow in example can be realized with each element of image processing system 100, and herein will be caused by scanner Scan image is illustrated as source image.
Referring to Fig. 1 and Fig. 3, firstly, the processor 120 of image processing system 100 will be directed to scan image Img30 carries out compression of images (step S310), to be compressed into e.g. gradual (progressive) jpeg format or standard type (baseline) the compression image of jpeg format.During carrying out compression of images, processor 120 will acquire DCT conversion institute The DC value (step S312) of generation, to carry out straight-line detection (step S314), to obtain the angle excursion of scan image Img30 (step S316), wherein the detailed description of step S310, S312, S314, S316 please refers to previous embodiment, no longer superfluous in this It states.Additionally, it when scan image is archive files, is largely arranged in a linear based on every row text, and file Interior table and image has straight line frame, therefore the angle excursion of scan image can be precisely calculated in processor 120.
Then, after processor 120 has compressed scan image, the relevant information of angle excursion can be written to compression image, To generate the compression image Img31 with angle information.For the EXIF information of jpeg image, processor 120 can be such as It is the UserComment label (tag number 0x9286) being written into angle excursion to store user's note.Then, locate Image decompressor (step S320) will be carried out for compression image Img31 by managing device 120, to generate decompressing image Img32.Together When, processor 120 will can read the angle information (step S322) in compression image Img31, to be directed to according to angle information Decompressing image Img32 carries out skew correction (deskew), and generates the decompressing image Img33 corrected.In other words, step S320 and step S322 can be regarded as carrying out simultaneously, without just connecting and being walked after step S320 completes image decompressor The reading angular information of rapid S322.
Since the processor 120 of the present embodiment is synchronized during carrying out compression of images for scan image Img30 Scan image Img30 deviation angle is estimated on ground using low-frequency image corresponding to scan image Img30, therefore in addition to can be compared with Small data volume reach with complete image does deviation angle analysis accuracy, can also reduce system operations resource consumption and Time.Further, since angle excursion has been written into compression image Img31, therefore processor 120 opens compression image every time When Img31, no longer need to recalculate its deviation angle.
It is noted that assuming that scan image Img30 is the original RGB image of pure words file, resolution has 300dpi (2480 × 3508 pixel), and the low-frequency image that its DC value is constituted is (310 × 439 pixel).With 64 bits (x64) For the operating system of the Windows 7 of version, according to Intel Core i7-3520M 2.9GHz as processor 120 When, general existing requirements of process is after the time of 672ms obtains to complete decompressing image, using the time of 33ms Deviation angle could be obtained by carrying out straight-line detection, and only need 156ms to obtain deviation angle with the process of Fig. 3.Therefore, image Processing system 100 can be implemented as the machines such as copying machines, printer, scanner or the multifunctional paper feeding machine of middle or low price, to provide school The option of just existing document, and then reduce the cost for duplicating flaw file paper and ink.
Image processing system 100 is other than recoverable scan image above-mentioned, it may also be used for correction general pattern, with convenient Subsequent applications.Specifically, Fig. 4 is the application situation process of the method for the detection of image angle shown in an embodiment according to the present invention Figure.Method flow in the present embodiment can realize with each element of image processing system 100, and herein will be with from network institute The compression image received is illustrated as source image, that is to say, that herein it can reasonably be assumed that this compresses image not With angle information.
Referring to Fig. 1 and Fig. 4, firstly, the processor 120 of image processing system 100 will be for without angle The compression image Img40 of information carries out image decompressor (step S410).During carrying out compression of images, processor 120 DC value (step S412) will be obtained (i.e. before IDCT conversion) after carrying out inverse quantization processing, to carry out straight-line detection (step S414), to obtain the angle excursion (step S416) of compression image Img40.Here, step S410, S412, S414, S416 Detailed description please refer to previous embodiment, repeated no more in this.It, will after processor 120 has decompressed compression image Img40 Decompressing image Img41 can be generated, and carries out skew correction further according to angle excursion to be directed to decompressing image Img41, and The decompressing image Img42 corrected is generated, to increase the comfort that user more reads.
In conclusion method and its image processing system that image angle proposed by the invention detects, are to be directed to During source image carries out compression of images or image decompressor, the spy that can represent the most image of source image is utilized It levies and carries out image angle detection about generated broker data is converted between spatial domain and frequency domain.Base this, this The image processing system of invention is not required to by additional operation, the essence in addition to that can reach deviation angle analysis with lesser data volume Exactness, can also reduce consumption and the time of system operations resource, therefore can be implemented into the Related product of senior middle school's low order on the market, It is experienced with promoting consumer more preferably user.
Although the present invention is disclosed as above with embodiment, however, it is not to limit the invention, any technical field Middle technical staff, without departing from the spirit and scope of the present invention, when can make a little change and retouching, therefore protection of the invention Range is subject to view the attached claims institute defender.

Claims (15)

1. a kind of method of image angle detection, which is characterized in that be suitable for image processing system, which comprises
Obtain source image;And
During carrying out compression of images or image decompressor for the source image:
Obtain multiple the First Eigenvalues corresponding to the source image;
Feature detection is carried out using the multiple the First Eigenvalue;And
According to feature detection as a result, calculating the angle excursion of the source image.
2. the method according to claim 1, wherein the multiple the First Eigenvalue is associated with the source image Low frequency signal.
3. the method according to claim 1, wherein the source image is scan image.
4. according to the method described in claim 3, it is characterized in that, carrying out described image compression for the source image In the process, the step of obtaining the multiple the First Eigenvalue corresponding to the source image include:
Obtain and carry out multiple low frequency values caused by transform coding of the spatial domain to frequency domain for the source image, using as The multiple the First Eigenvalue.
5. according to the method described in claim 4, it is characterized in that, the transform coding is discrete cosine transform, and each institute Stating low frequency value is DC coefficient.
6. according to the method described in claim 4, it is characterized in that, when carrying out described image compression for the source image In the process, include: using the step of the multiple the First Eigenvalue progress feature detection
Straight-line detection is carried out using the multiple the First Eigenvalue, detects the line segment in the source image accordingly.
7. according to the method described in claim 3, it is characterized in that, carrying out described image compression for the source image After process, the method also includes:
Generate the compression image of the source image;And
The relevant information of the angle excursion is written in the compression image.
8. the method according to the description of claim 7 is characterized in that further include:
When carrying out image decompressor for the compression image, the relevant information of the angle excursion is read;And
When having carried out image decompressor for the compression image and having generated decompressing image, according to the institute of the angle excursion It states relevant information and corrects the decompressing image, to generate the decompressing image corrected.
9. the method according to claim 1, wherein the source image is compression image.
10. according to the method described in claim 9, it is characterized in that, carrying out described image decompression for the source image During contracting, the step of obtaining the multiple the First Eigenvalue of the source image, includes:
The multiple low frequency values for obtaining the compression image, using as the multiple the First Eigenvalue.
11. according to the method described in claim 10, it is characterized in that, each low frequency value is DC coefficient.
12. according to the method described in claim 10, it is characterized in that, when carrying out described image decompression for the source image During contracting, feature detection is carried out according to the multiple the First Eigenvalue, to generate testing result the step of includes:
Straight-line detection is carried out using the multiple the First Eigenvalue, detects the line segment in the source image accordingly.
13. according to the method described in claim 9, it is characterized in that, having carried out described image solution for the source image After the process of compression, the method also includes:
Generate the decompressing image of the source image;And
The decompressing image is corrected according to the angle excursion, to generate the decompressing image corrected.
14. the method according to claim 1, wherein described image compression process be JPEG compression handle, and The process of described image decompression is jpeg decompression contracting processing.
15. a kind of image processing system characterized by comprising
Memory, to store image and data;
Processor couples the memory, carries out compression of images to obtain source image, and being directed to the source image Or during image decompressor, to obtain multiple the First Eigenvalues corresponding to the source image, using described more A the First Eigenvalue carries out feature detection, and according to feature detection as a result, calculating the angle of deviation of the source image Degree.
CN201810179380.8A 2018-03-05 2018-03-05 The method and its image processing system of image angle detection Pending CN110233947A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810179380.8A CN110233947A (en) 2018-03-05 2018-03-05 The method and its image processing system of image angle detection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810179380.8A CN110233947A (en) 2018-03-05 2018-03-05 The method and its image processing system of image angle detection

Publications (1)

Publication Number Publication Date
CN110233947A true CN110233947A (en) 2019-09-13

Family

ID=67861684

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810179380.8A Pending CN110233947A (en) 2018-03-05 2018-03-05 The method and its image processing system of image angle detection

Country Status (1)

Country Link
CN (1) CN110233947A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113820329A (en) * 2020-06-16 2021-12-21 光宝电子(广州)有限公司 Flaw detection system and flaw detection method of product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1074940A2 (en) * 1999-08-05 2001-02-07 Matsushita Electric Industrial Co., Ltd. Image analyzing apparatus and image analyzing method
US6408105B1 (en) * 1998-05-12 2002-06-18 Advantest Corporation Method for detecting slope of image data utilizing hough-transform
JP2004227406A (en) * 2003-01-24 2004-08-12 Ricoh Co Ltd Image processor, program and storage medium
JP2004288219A (en) * 2004-06-16 2004-10-14 Sharp Corp Stripe detector
JP2007310466A (en) * 2006-05-16 2007-11-29 Fuji Xerox Co Ltd Image tilt detection device and image tilt detection processing program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6408105B1 (en) * 1998-05-12 2002-06-18 Advantest Corporation Method for detecting slope of image data utilizing hough-transform
EP1074940A2 (en) * 1999-08-05 2001-02-07 Matsushita Electric Industrial Co., Ltd. Image analyzing apparatus and image analyzing method
JP2004227406A (en) * 2003-01-24 2004-08-12 Ricoh Co Ltd Image processor, program and storage medium
JP2004288219A (en) * 2004-06-16 2004-10-14 Sharp Corp Stripe detector
JP3618742B2 (en) * 2004-06-16 2005-02-09 シャープ株式会社 Fringe detector
JP2007310466A (en) * 2006-05-16 2007-11-29 Fuji Xerox Co Ltd Image tilt detection device and image tilt detection processing program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113820329A (en) * 2020-06-16 2021-12-21 光宝电子(广州)有限公司 Flaw detection system and flaw detection method of product

Similar Documents

Publication Publication Date Title
US10839564B2 (en) Leveraging JPEG discrete cosine transform coefficients in neural networks
US8774534B2 (en) System and method for image compression
US7856147B2 (en) Method and apparatus for processing a compressed image in an order other than the order of which it was compressed
JP3848443B2 (en) Compressed digital data processing method
US9390354B2 (en) Method for printing an upscaled image
EP1176832A2 (en) Lossy JPEG compression/reconstruction using principal components transformation
CN102223463A (en) Multifunction printer
US7050656B2 (en) Image scaling in the compressed domain
CN110233947A (en) The method and its image processing system of image angle detection
TWI657410B (en) Method and image processing system of image angle detection
JP2006313984A (en) Image processing apparatus
US7099523B2 (en) Method and system for scaling a signal sample rate
JP2007049312A (en) Image decoding device and control method thereof, computer program, and computer readable storage medium
Patel et al. An analytical study on comparison of different image compression formats
JP5757904B2 (en) Image compression device
US9723310B2 (en) Image processing device, image processing method, and non-transitory computer-readable medium
JP2020088694A5 (en)
KR102401373B1 (en) Method and apparatus for compressing point cloud in image processing system
JP2006340338A (en) Image processor
US20210303946A1 (en) Image processing apparatus, image processing method, and storage medium
JP7150487B2 (en) Information processing device, information processing method, and program
KR20170046279A (en) Decoding apparatus, electronic apparatus and the controlling method thereof
JP6171536B2 (en) Image processing apparatus and image processing method
JP2006313985A (en) Image processing apparatus
JPH10108202A (en) Method for compressing image data and print data or the like

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190913