CN109345462A - Image processing method, device and computer readable storage medium - Google Patents
Image processing method, device and computer readable storage medium Download PDFInfo
- Publication number
- CN109345462A CN109345462A CN201811440933.7A CN201811440933A CN109345462A CN 109345462 A CN109345462 A CN 109345462A CN 201811440933 A CN201811440933 A CN 201811440933A CN 109345462 A CN109345462 A CN 109345462A
- Authority
- CN
- China
- Prior art keywords
- character
- pixel point
- correction
- scanning direction
- image
- 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
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 21
- 238000003860 storage Methods 0.000 title claims abstract description 13
- 238000006243 chemical reaction Methods 0.000 claims description 7
- 238000004590 computer program Methods 0.000 claims description 5
- 238000000034 method Methods 0.000 abstract description 13
- 238000005516 engineering process Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 13
- 238000001514 detection method Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 239000011159 matrix material Substances 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000009466 transformation Effects 0.000 description 3
- 239000000729 antidote Substances 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 238000003702 image correction Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000010408 sweeping Methods 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/60—Rotation of whole images or parts thereof
- G06T3/608—Rotation of whole images or parts thereof by skew deformation, e.g. two-pass or three-pass rotation
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Character Input (AREA)
Abstract
This disclosure relates to which a kind of image processing method, device and computer readable storage medium, are related to field of computer technology.Disclosed method includes: the foreground pixel for obtaining character in image;Along scanning direction, the boundary pixel point of one group of character is determined, the target of scanning direction and character makes correction for direction orthogonal;According to the projection information of boundary pixel point in a scanning direction, by character by making correction for direction when front direction is corrected for target.The disclosure obtains the foreground pixel of character in image, and then the boundary pixel point of one group of character is determined along the mutually perpendicular scanning direction that makes correction for direction of the target with character, according to boundary pixel point in projection information in a scanning direction, by character by making correction for direction when front direction is corrected for target.The scheme of the disclosure in the picture without rectangular shaped rim in the case where, also can be realized and the character in image corrected.
Description
Technical field
This disclosure relates to field of computer technology, in particular to a kind of image processing method, device and computer-readable deposit
Storage media.
Background technique
During carrying out image procossing, for the problem that the image of user's shooting is generally needed due to shooting angle etc.
Image is corrected.
Corrected at present for the character in image, it is known that common method be using line detection algorithm (LSD,
Line Segment Detector) detect square boundary in image.Then using the vertex of feature modeling rectangle in picture
In position and rectangle true the ratio of width to height, find out transformation matrix, finally image be corrected using transformation matrix.
As shown in 1A figure, the literal line in figure is corrected.The two of banner or more are detected firstly the need of with line detection algorithm
Straight line.Further, as shown in 1B figure, 4 vertex are obtained using banner lower edges.Further, it as shown in 1C figure, utilizes
Banner, the result after being corrected are corrected in perspective transform.
Summary of the invention
Inventor's discovery: above-mentioned image correction method, the premise of implementation are that have rectangular shaped rim in image, pass through straight-line detection
Locating rectangle frame, then perspective transformation matrix is solved by rectangular shaped rim.Once therefore there is no rectangular shaped rim in image, it is above
Scheme will not work.
A disclosure technical problem to be solved is: how in the picture without rectangular shaped rim in the case where, to figure
Character as in is corrected.
According to some embodiments of the present disclosure, a kind of image processing method for providing, comprising: obtain in image before character
Scene element;Along scanning direction, the boundary pixel point of one group of character is determined, the target of scanning direction and character makes correction for direction mutually
Vertically;According to the projection information of boundary pixel point in a scanning direction, by character by making correction for direction when front direction is corrected for target.
In some embodiments, the foreground pixel for obtaining character in image includes: that image is carried out binary conversion treatment, from figure
The foreground pixel of character is determined in the binarization result of picture.
In some embodiments, along scanning direction, determine that the boundary pixel point of one group of character includes: for comprising one group
Along each row's pixel of scanning direction in the image-region of character, before first scanned according to preset scan orders
Scene vegetarian refreshments is as boundary pixel point.
In some embodiments, the projection information according to boundary pixel point in a scanning direction, by character by working as front direction
Correction is in the case that target makes correction for direction and includes: the foreground pixel different rotation angle according to character, and boundary pixel point is being swept
It retouches the coordinate projected on direction and is overlapped situation, by character by making correction for direction when front direction is corrected for target.
In some embodiments, in the case where according to the foreground pixel different rotation angle of character, boundary pixel point is being swept
Retouch the coordinate that projects on direction and be overlapped situation, by character by when front direction correct make correction for direction for target include: will be before character
Scene element rotates predetermined angle, and the projection coordinate's value of statistical boundary pixel in a scanning direction determines corresponding boundary pixel
It is corresponding as the predetermined angle to be worth corresponding boundary pixel point quantity by the most projection coordinate's value of point quantity for the projection coordinate
Project registration;In the case where character foreground pixel different rotation angle, the comparison result of corresponding projection registration will most
The big corresponding angle of registration that projects is as correction angle;The foreground pixel of character is rotated, according to correction angle so as to by character
It is made correction for direction by being corrected when front direction for target.
According to other embodiments of the disclosure, a kind of image processing apparatus for providing, comprising: prospect determining module is used
In the foreground pixel for obtaining character in image;Boundary determining module, for determining the boundary picture of one group of character along scanning direction
The target of vegetarian refreshments, scanning direction and character makes correction for direction orthogonal;Character rectification module, for being swept according to boundary pixel point
The projection information on direction is retouched, by character by making correction for direction when front direction is corrected for target.
In some embodiments, prospect determining module is used to image carrying out binary conversion treatment, from the binaryzation knot of image
The foreground pixel of character is determined in fruit.
In some embodiments, boundary determining module is used to be directed in the image-region comprising one group of character along scanning side
To each row's pixel, using the first foreground pixel point scanned according to preset scan orders as boundary pixel point.
In some embodiments, character rectification module is used for the case where foreground pixel different rotation angle according to character
Under, the coordinate that boundary pixel point projects in a scanning direction is overlapped situation, by character by correcting when front direction as target correction side
To.
In some embodiments, character rectification module is used to the foreground pixel of character rotating predetermined angle, statistical boundary
The projection coordinate's value of pixel in a scanning direction determines the most projection coordinate's value of corresponding boundary pixel point quantity, by this
Projection coordinate is worth corresponding boundary pixel point quantity as the corresponding projection registration of the predetermined angle;According to character foreground pixel
In the case where different rotation angle, the comparison result of corresponding projection registration, using the corresponding angle of maximal projection registration as
Correction angle;The foreground pixel of character is rotated, according to correction angle to be corrected character by working as front direction for target correction side
To.
According to the other embodiment of the disclosure, a kind of image processing apparatus for providing, comprising: memory;And coupling
To the processor of memory, processor is configured as executing such as aforementioned any embodiment based on instruction stored in memory
Image processing method.
According to the still other embodiments of the disclosure, a kind of computer readable storage medium provided is stored thereon with calculating
Machine program, wherein the program realizes the step of image processing method of aforementioned any embodiment when being executed by processor.
The disclosure obtains the foreground pixel of character in image, and then it is mutually perpendicular to make correction for direction along the target with character
Scanning direction determines the boundary pixel point of one group of character, according to boundary pixel point in projection information in a scanning direction, by word
Symbol is made correction for direction by correcting when front direction for target.The scheme of the disclosure in the picture without rectangular shaped rim in the case where, also can
Enough realize corrects the character in image.
By the detailed description referring to the drawings to the exemplary embodiment of the disclosure, the other feature of the disclosure and its
Advantage will become apparent.
Detailed description of the invention
In order to illustrate more clearly of the embodiment of the present disclosure or technical solution in the prior art, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Disclosed some embodiments for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Figure 1A, 1B, 1C show the schematic diagram of the antidote of character in the image of the prior art.
Fig. 2 shows the flow diagrams of the image processing method of some embodiments of the present disclosure.
Fig. 3 A shows the schematic diagram of the boundary pixel point of character in the image of some embodiments of the present disclosure.
Fig. 3 B and 3C show the perspective view of the boundary pixel point of character in the image of some embodiments of the present disclosure.
Fig. 4 shows the flow diagram of the image processing method of other embodiments of the disclosure.
Fig. 5 shows the structural schematic diagram of the image processing apparatus of some embodiments of the present disclosure.
Fig. 6 shows the structural schematic diagram of the image processing apparatus of other embodiments of the disclosure.
Fig. 7 shows the structural schematic diagram of the image processing apparatus of the other embodiment of the disclosure.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present disclosure, the technical solution in the embodiment of the present disclosure is carried out clear, complete
Site preparation description, it is clear that described embodiment is only disclosure a part of the embodiment, instead of all the embodiments.Below
Description only actually at least one exemplary embodiment be it is illustrative, never as to the disclosure and its application or making
Any restrictions.Based on the embodiment in the disclosure, those of ordinary skill in the art are not making creative work premise
Under every other embodiment obtained, belong to the disclosure protection range.
The case where for the problem that rectangular shaped rim is not present in image, how the character in image is corrected, is proposed
This programme.Some embodiments of disclosure image processing method are described below with reference to Fig. 2.
Fig. 2 is the flow chart of some embodiments of disclosure image processing method.As shown in Fig. 2, the method packet of the embodiment
It includes: step S202~S206.
In step S202, the foreground pixel of character in image is obtained.
In some embodiments, image is subjected to binary conversion treatment, before determining character in the binarization result of image
Scene element.For example, black pixel point indicates that foreground pixel, white pixel point indicate background after image is carried out binary conversion treatment
Pixel;Alternatively, opposite, white pixel point indicates that foreground pixel, black pixel point indicate background pixel.
In step S204, along scanning direction, the boundary pixel point of one group of character is determined.
The target of scanning direction and character makes correction for direction orthogonal.According to the universal reading habit of user and general character
Orientation, the target of character makes correction for direction for example, horizontal direction or vertical direction etc..It can be according to actual needs
A direction is determined as target to make correction for direction, and then subsequent correct character makes correction for direction for the target.One group of character includes
At least one character can be using multiple characters as one group of character in order to improve the accuracy of correction.Further, one group of character
It may include complete typesetting symbol in image.
In some embodiments, for each row's pixel in the image-region comprising one group of character along scanning direction
Point, using the first foreground pixel point scanned according to preset scan orders as boundary pixel point.
For example, in the case where the target of character makes correction for direction as horizontal direction, along vertical direction from top to bottom or
From bottom to top, determine first foreground pixel point in each column pixel as boundary pixel point;Or the target in character
In the case where making correction for direction as vertical direction, along horizontal direction by it is left-to-right or by the right side to left, determine every a line pixel
In first foreground pixel point as boundary pixel point.
As shown in Figure 3A, it is corrected for the inclined character of a line, target makes correction for direction as horizontal direction.By column to picture
Element is scanned from top to bottom, and obtaining first foreground pixel point is exactly coboundary point.The point of character " people " above in such as Fig. 3
It can be used as coboundary point.Since coboundary point is very more, so being only schematically labelled with a small amount of boundary point in figure, entirely
Any column comprising foreground pixel point have a coboundary point in image.Coboundary point might not be really the top of character
Point.
In step S206, according to the projection information of boundary pixel point in a scanning direction, by character by being rectified when front direction
Just make correction for direction for target.
For example, in the case where the target of character makes correction for direction as horizontal direction, in the vertical direction by boundary pixel point
It is projected;Or in the case where the target of character makes correction for direction as vertical direction, in the horizontal direction by boundary pixel point
It is projected.
In some embodiments, in the case where according to the foreground pixel different rotation angle of character, boundary pixel point is being swept
It retouches the coordinate projected on direction and is overlapped situation, by character by making correction for direction when front direction is corrected for target.For example, foreground pixel is made
It is rotated by origin of center for an entirety, different rotation angle obtains different boundary pixel points in a scanning direction
Project situation.
As shown in Figure 3B, before character correction, boundary pixel point may have different projection coordinate's values, example in a scanning direction
Such as y1, y2, y3 etc., the projection coordinate's value of some boundary pixel points in a scanning direction may also be overlapped.Foreground pixel is carried out
Rotation, as shown in Figure 3 C, after rotating by a certain angle, the corresponding boundary pixel point of some coordinate value such as y4 can increase, i.e., more
Projection coordinate's value of more boundary pixel points can overlap on coordinate y4.Character can then be corrected according to this characteristic.
Further, the foreground pixel of character is rotated into predetermined angle, the projection of statistical boundary pixel in a scanning direction
Coordinate value determines the most projection coordinate's value of corresponding boundary pixel point quantity, which is worth corresponding boundary pixel
Point quantity is as the corresponding projection registration of the predetermined angle.The case where rotating different predetermined angles according to character foreground pixel
Under, the comparison result of corresponding projection registration, using the corresponding predetermined angle of maximal projection registration as correction angle.According to strong
Positive-angle rotates the foreground pixel of character, to be corrected character by working as front direction for target direction.
It when there is multiple rows of character in image, can be corrected respectively for each typesetting symbol, alternatively, when image is whole
When inclination, the antidote of a part of character can use, realize the correction to character in whole image, i.e., all words in image
The foreground pixel of symbol is rotated according to correction angle.
The foreground pixel of character in image is obtained in the method for above-described embodiment, and then along the target correction side with character
The boundary pixel point that one group of character is determined to mutually perpendicular scanning direction, according to boundary pixel point in throwing in a scanning direction
Shadow information, by character by making correction for direction when front direction is corrected for target.The scheme of above-described embodiment is in the picture without rectangular edges
In the case where frame, it also can be realized and the character in image corrected.
Other embodiments of disclosure image processing method are described below with reference to Fig. 4.
Fig. 4 is the flow chart of other embodiments of disclosure image processing method.As shown in figure 4, the method for the embodiment
It include: step S402~S416.
In step S402, the foreground pixel of character in image is obtained.
In step s 404, along scanning direction, the boundary pixel point of one group of character is determined.
In step S406, the projection coordinate's value of statistical boundary pixel in a scanning direction determines corresponding boundary picture
It is corresponding as initial angle to be worth corresponding boundary pixel point quantity by the most projection coordinate's value of vegetarian refreshments quantity for the projection coordinate
Project registration.
It can make correction for direction along scanning direction and target using the center of image as origin and construct coordinate value, form coordinate
System.It will be projected in the reference axis of boundary pixel point in a scanning direction, obtain projection coordinate's value.It can be for each throwing
The quantity of the corresponding boundary pixel point of shadow coordinate Data-Statistics, such as the quantity of boundary pixel point can be indicated with histogram, according to
Histogram can intuitively compare the quantity that each projection coordinate is worth corresponding boundary pixel point.Determine corresponding boundary pixel points
Most projection coordinate's values is measured, which is worth corresponding boundary pixel point quantity as the corresponding projection weight of current angular
It is right.
In step S408, the foreground pixel of character is rotated according to angle step value.
Angle step value is, for example, 1 degree.Image can be rotated using the center of image as origin.
In step S410, the projection coordinate's value of statistical boundary pixel in a scanning direction determines corresponding boundary picture
It is corresponding as current angular to be worth corresponding boundary pixel point quantity by the most projection coordinate's value of vegetarian refreshments quantity for the projection coordinate
Project registration.
Projection registration is for example denoted as Countθ, the difference of θ expression current angular and initial angle.
In step S412, judge whether the angle that foreground pixel is rotated by initial angle reaches threshold value, if it is, holding
Row step S414, otherwise return step S408 starts to execute.
Threshold value is, for example, 180 degree.
In step S414 according to character foreground pixel different rotation angle in the case where, the ratio of corresponding projection registration
Pair as a result, using the corresponding angle of maximal projection registration as correction angle.
For example, angle step value is, for example, 1 degree, threshold value is 180 degree, by rotating foreground pixel, can obtain rotation not
The corresponding projection registration Count with angle0,Count1,Count2,…,Count180.The angle θ corresponding to maximum Count value
Degree is exactly correct correction angle.
In step S416, the foreground pixel of character is rotated according to correction angle, to correct character by working as front direction
It makes correction for direction for target.
The method of above-described embodiment carries out the rotation of different angle to the foreground pixel of character in image, according to boundary picture
The projection of vegetarian refreshments is overlapped situation, determines making correction for direction for character.The thinner of angular divisions is rotated, the precision of obtained character correction
It is higher.Through the foregoing embodiment, can in the picture without rectangle frame in the case where, the correction of simple and convenient realization character.
The project plan comparison of the disclosure is suitable for character within front direction makes correction for direction relative to target and is rotated by 90 °
Situation.
The disclosure also provides a kind of image processing apparatus, is described below with reference to Fig. 5.
Fig. 5 is the structure chart of some embodiments of disclosure image processing apparatus.As shown in figure 5, the device of the embodiment
50 include: prospect determining module 502, boundary determining module 504, character rectification module 506.
Prospect determining module 502 is used to obtain the foreground pixel of character in image.
In some embodiments, prospect determining module 502 is used to image carrying out binary conversion treatment, from the binaryzation of image
As a result the foreground pixel of character is determined in.
Boundary determining module 504 is used to determine the boundary pixel point of one group of character, scanning direction and word along scanning direction
The target of symbol makes correction for direction orthogonal.
In some embodiments, boundary determining module 504 be used for in the image-region comprising one group of character along sweeping
The each row's pixel for retouching direction, using the first foreground pixel point scanned according to preset scan orders as boundary pixel
Point.
Character rectification module 506 is for the projection information according to boundary pixel point in a scanning direction, by character by current
Direction correction makes correction for direction for target.
In some embodiments, character rectification module 506 is used for the feelings of the foreground pixel different rotation angle according to character
Under condition, the coordinate that boundary pixel point projects in a scanning direction is overlapped situation, by character by correcting when front direction as target correction
Direction.
Further, character rectification module 506 is used to the foreground pixel of character rotating predetermined angle, statistical boundary pixel
Projection coordinate's value in a scanning direction determines the most projection coordinate's value of corresponding boundary pixel point quantity, which is sat
The corresponding boundary pixel point quantity of scale value is as the corresponding projection registration of the predetermined angle;Not according to the rotation of character foreground pixel
In the case where angle, the comparison result of corresponding projection registration, using the corresponding angle of maximal projection registration as correction angle
Degree;The foreground pixel of character is rotated according to correction angle, so as to by character by correcting and making correction for direction for target when front direction.
Image processing apparatus in embodiment of the disclosure can realize respectively by various calculating equipment or computer system, under
Face combines Fig. 6 and Fig. 7 to be described.
Fig. 6 is the structure chart of some embodiments of disclosure image processing apparatus.As shown in fig. 6, the device of the embodiment
60 include: memory 610 and the processor 620 for being coupled to the memory 610, and processor 620 is configured as being based on being stored in
Instruction in memory 610 executes the image processing method in the disclosure in any some embodiments.
Wherein, memory 610 is such as may include system storage, fixed non-volatile memory medium.System storage
Device is for example stored with operating system, application program, Boot loader (Boot Loader), database and other programs etc..
Fig. 7 is the structure chart of other embodiments of disclosure image processing apparatus.As shown in fig. 7, the dress of the embodiment
Setting 70 includes: memory 710 and processor 720, similar with memory 610 and processor 620 respectively.It can also include defeated
Enter output interface 730, network interface 740, memory interface 750 etc..These interfaces 730,740,750 and memory 710 and place
It can for example be connected by bus 760 between reason device 720.Wherein, input/output interface 730 is display, mouse, keyboard, touching
It touches the input-output equipment such as screen and connecting interface is provided.Network interface 740 provides connecting interface for various networked devices, such as can be with
It is connected to database server or cloud storage server etc..Memory interface 750 is that the external storages such as SD card, USB flash disk mention
For connecting interface.
Those skilled in the art should be understood that embodiment of the disclosure can provide as method, system or computer journey
Sequence product.Therefore, complete hardware embodiment, complete software embodiment or combining software and hardware aspects can be used in the disclosure
The form of embodiment.Moreover, it wherein includes the calculating of computer usable program code that the disclosure, which can be used in one or more,
Machine can use the meter implemented in non-transient storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of calculation machine program product.
The disclosure is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present disclosure
Figure and/or block diagram describe.It is interpreted as to be realized by computer program instructions each in flowchart and/or the block diagram
The combination of process and/or box in process and/or box and flowchart and/or the block diagram.It can provide these computer journeys
Sequence instruct to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices processor with
A machine is generated, so that the instruction generation executed by computer or the processor of other programmable data processing devices is used for
Realize the dress for the function of specifying in one or more flows of the flowchart and/or one or more blocks of the block diagram
It sets.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
The foregoing is merely the preferred embodiments of the disclosure, not to limit the disclosure, all spirit in the disclosure and
Within principle, any modification, equivalent replacement, improvement and so on be should be included within the protection scope of the disclosure.
Claims (12)
1. a kind of image processing method, comprising:
Obtain the foreground pixel of character in image;
Along scanning direction, the boundary pixel point of one group of character is determined, the target of the scanning direction and character makes correction for direction mutually
It is perpendicular;
According to the projection information of the boundary pixel point in a scanning direction, by the character by correcting when front direction as the mesh
Mark makes correction for direction.
2. image processing method according to claim 1, wherein
The foreground pixel of character includes: in the acquisition image
Described image is subjected to binary conversion treatment, the foreground pixel of character is determined from the binarization result of described image.
3. image processing method according to claim 1, wherein
It is described along scanning direction, determine that the boundary pixel point of one group of character includes:
It, will be according to default scanning for each row's pixel in the image-region comprising one group of character along scanning direction
First foreground pixel point that sequential scan arrives is as boundary pixel point.
4. image processing method according to claim 1, wherein
The projection information according to the boundary pixel point in a scanning direction, by the character by correcting when front direction as institute
It states target and makes correction for direction and include:
In the case where according to the foreground pixel different rotation angle of the character, the boundary pixel point is on the scanning direction
The coordinate of projection is overlapped situation, by the character by making correction for direction when front direction is corrected for the target.
5. image processing method according to claim 4, wherein
In the case where the foreground pixel different rotation angle according to the character, the boundary pixel point is in the scanning side
The coordinate projected upwards is overlapped situation, by the character by including: when front direction corrects to make correction for direction for the target
The foreground pixel of the character is rotated into predetermined angle, counts projection of the boundary pixel point on the scanning direction
Coordinate value determines the most projection coordinate's value of corresponding boundary pixel point quantity, which is worth corresponding boundary pixel
Point quantity is as the corresponding projection registration of the predetermined angle;
In the case where the character foreground pixel different rotation angle, the comparison result of corresponding projection registration will be maximum
The corresponding angle of registration is projected as correction angle;
The foreground pixel of the character is rotated according to the correction angle, so as to by the character by when front direction correction be described
Target makes correction for direction.
6. a kind of image processing apparatus, comprising:
Prospect determining module, for obtaining the foreground pixel of character in image;
Boundary determining module, for determining the boundary pixel point of one group of character, the scanning direction and character along scanning direction
Target make correction for direction it is orthogonal;
Character rectification module, for the projection information according to the boundary pixel point in a scanning direction, by the character by working as
Front direction correction is that the target makes correction for direction.
7. image processing apparatus according to claim 6, wherein
The prospect determining module is used to described image carrying out binary conversion treatment, determines from the binarization result of described image
The foreground pixel of character.
8. image processing apparatus according to claim 6, wherein
The boundary determining module is used for for each row in the image-region comprising one group of character along scanning direction
Pixel, using the first foreground pixel point scanned according to preset scan orders as boundary pixel point.
9. image processing apparatus according to claim 6, wherein
In the case that the character rectification module is for the foreground pixel different rotation angle according to the character, the boundary picture
The coordinate that vegetarian refreshments projects on the scanning direction is overlapped situation, by the character by correcting when front direction as target correction
Direction.
10. image processing apparatus according to claim 9, wherein
The character rectification module is used to the foreground pixel of the character rotating predetermined angle, counts the boundary pixel point and exists
Projection coordinate's value on the scanning direction determines the most projection coordinate's value of corresponding boundary pixel point quantity, by the projection
The corresponding boundary pixel point quantity of coordinate value is as the corresponding projection registration of the predetermined angle;According to the character foreground pixel
In the case where different rotation angle, the comparison result of corresponding projection registration, using the corresponding angle of maximal projection registration as
Correction angle;The foreground pixel of the character is rotated, according to the correction angle to correct the character by working as front direction
It makes correction for direction for the target.
11. a kind of image processing apparatus, comprising:
Memory;And
It is coupled to the processor of the memory, the processor is configured to the instruction based on storage in the memory,
Execute image processing method as described in any one in claim 1-5.
12. a kind of computer readable storage medium, is stored thereon with computer program, wherein when the program is executed by processor
The step of realizing any one of claim 1-5 described image processing method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811440933.7A CN109345462A (en) | 2018-11-29 | 2018-11-29 | Image processing method, device and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811440933.7A CN109345462A (en) | 2018-11-29 | 2018-11-29 | Image processing method, device and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109345462A true CN109345462A (en) | 2019-02-15 |
Family
ID=65319153
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811440933.7A Pending CN109345462A (en) | 2018-11-29 | 2018-11-29 | Image processing method, device and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109345462A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110991451A (en) * | 2019-11-01 | 2020-04-10 | 珠海奔图电子有限公司 | Method and device for correcting card area image of scanned image |
CN112016341A (en) * | 2019-05-28 | 2020-12-01 | 珠海金山办公软件有限公司 | Text picture correction method and device |
CN112686919A (en) * | 2020-12-29 | 2021-04-20 | 上海闻泰信息技术有限公司 | Object boundary line determining method and device, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013063820A1 (en) * | 2011-11-01 | 2013-05-10 | 青岛海信网络科技股份有限公司 | Method and device for positioning license plate image |
CN105426887A (en) * | 2015-10-30 | 2016-03-23 | 北京奇艺世纪科技有限公司 | Method and device for text image correction |
CN105989366A (en) * | 2015-01-30 | 2016-10-05 | 深圳市思路飞扬信息技术有限责任公司 | Inclination angle correcting method of text image, page layout analysis method of text image, vision assistant device and vision assistant system |
CN106446896A (en) * | 2015-08-04 | 2017-02-22 | 阿里巴巴集团控股有限公司 | Character segmentation method and device and electronic equipment |
CN108681729A (en) * | 2018-05-08 | 2018-10-19 | 腾讯科技(深圳)有限公司 | Text image antidote, device, storage medium and equipment |
-
2018
- 2018-11-29 CN CN201811440933.7A patent/CN109345462A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013063820A1 (en) * | 2011-11-01 | 2013-05-10 | 青岛海信网络科技股份有限公司 | Method and device for positioning license plate image |
CN105989366A (en) * | 2015-01-30 | 2016-10-05 | 深圳市思路飞扬信息技术有限责任公司 | Inclination angle correcting method of text image, page layout analysis method of text image, vision assistant device and vision assistant system |
CN106446896A (en) * | 2015-08-04 | 2017-02-22 | 阿里巴巴集团控股有限公司 | Character segmentation method and device and electronic equipment |
CN105426887A (en) * | 2015-10-30 | 2016-03-23 | 北京奇艺世纪科技有限公司 | Method and device for text image correction |
CN108681729A (en) * | 2018-05-08 | 2018-10-19 | 腾讯科技(深圳)有限公司 | Text image antidote, device, storage medium and equipment |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112016341A (en) * | 2019-05-28 | 2020-12-01 | 珠海金山办公软件有限公司 | Text picture correction method and device |
CN110991451A (en) * | 2019-11-01 | 2020-04-10 | 珠海奔图电子有限公司 | Method and device for correcting card area image of scanned image |
CN110991451B (en) * | 2019-11-01 | 2024-05-07 | 珠海奔图电子有限公司 | Correction method and device for card area image of scanned image |
CN112686919A (en) * | 2020-12-29 | 2021-04-20 | 上海闻泰信息技术有限公司 | Object boundary line determining method and device, electronic equipment and storage medium |
CN112686919B (en) * | 2020-12-29 | 2022-10-21 | 上海闻泰信息技术有限公司 | Object boundary line determining method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11842438B2 (en) | Method and terminal device for determining occluded area of virtual object | |
US20210319588A1 (en) | Method and Apparatus for Calibrating External Parameters of Image Acquisition Device, Device and Storage Medium | |
CN107993263B (en) | Automatic calibration method for panoramic system, automobile, calibration device and storage medium | |
CN102591531B (en) | Electronic whiteboard, coordinate mapping method for same, device | |
CN103383773B (en) | The remote sensing satellite image of a kind of dynamic extraction Image Control Point is the most just penetrating framework and the method for correction | |
CN109345462A (en) | Image processing method, device and computer readable storage medium | |
US10573040B2 (en) | Image modification using detected symmetry | |
CN107911680A (en) | Projector equipment bearing calibration, device and projector equipment | |
CN111815707A (en) | Point cloud determining method, point cloud screening device and computer equipment | |
US20190392595A1 (en) | Hole-based 3d point data alignment | |
CN106444846A (en) | Unmanned aerial vehicle and method and device for positioning and controlling mobile terminal | |
CN110648363A (en) | Camera posture determining method and device, storage medium and electronic equipment | |
CN110517209A (en) | Data processing method, device, system and computer readable storage medium | |
CN105118086A (en) | 3D point cloud data registering method and system in 3D-AOI device | |
Zhou et al. | Building occlusion detection from ghost images | |
CN107517366A (en) | Projector's image information method for automatic measurement based on RGBD | |
CN107797648A (en) | Virtual touch system and image recognition localization method, computer-readable recording medium | |
CN112016341A (en) | Text picture correction method and device | |
CN110110697A (en) | More fingerprint segmentation extracting methods, system, equipment and medium based on direction correction | |
JP6011885B2 (en) | Code reading apparatus and code reading method | |
CN108280425A (en) | A kind of quick survey light implementation method based on screen following formula optical fingerprint sensor | |
CN103034998A (en) | Detection method capable of detecting center and rotation angle of rotational symmetry figure and device thereof | |
AU2018203392B2 (en) | Placemat: a ui for 2d/3d composition | |
CN116645275A (en) | Method, device, projector and storage medium for correcting projection image | |
US9842402B1 (en) | Detecting foreground regions in panoramic video frames |
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 |