CN108717708A - The computational methods and device of the edge slope of regular image - Google Patents

The computational methods and device of the edge slope of regular image Download PDF

Info

Publication number
CN108717708A
CN108717708A CN201810276939.9A CN201810276939A CN108717708A CN 108717708 A CN108717708 A CN 108717708A CN 201810276939 A CN201810276939 A CN 201810276939A CN 108717708 A CN108717708 A CN 108717708A
Authority
CN
China
Prior art keywords
image
edge slope
longitudinal direction
transverse direction
light 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.)
Granted
Application number
CN201810276939.9A
Other languages
Chinese (zh)
Other versions
CN108717708B (en
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.)
Shenzhen Yihua Computer Co Ltd
Shenzhen Yihua Time Technology Co Ltd
Shenzhen Yihua Financial Intelligent Research Institute
Original Assignee
Shenzhen Yihua Computer Co Ltd
Shenzhen Yihua Time Technology Co Ltd
Shenzhen Yihua Financial Intelligent Research Institute
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 Shenzhen Yihua Computer Co Ltd, Shenzhen Yihua Time Technology Co Ltd, Shenzhen Yihua Financial Intelligent Research Institute filed Critical Shenzhen Yihua Computer Co Ltd
Priority to CN201810276939.9A priority Critical patent/CN108717708B/en
Publication of CN108717708A publication Critical patent/CN108717708A/en
Application granted granted Critical
Publication of CN108717708B publication Critical patent/CN108717708B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Geometry (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

The embodiment of the invention discloses a kind of computational methods of the edge slope of regular image, including:The target image of the rectangular regular image of the target object acquired by CIS imaging sensors is obtained, CIS imaging sensors include at least first light source, and target image includes the first image corresponding with the first light source;The first edge slope of the first image is obtained, which is the transverse direction edge slope or longitudinal direction edge slope of the first image;Obtain the transverse direction DPI parameters and longitudinal direction DPI parameters of first light source;According to preset edge slope reduction formula, the second edge slope of the first image is calculated with the first edge slope of the transverse direction DPI parameters of first light source and longitudinal direction DPI parameters, the first image, which is the longitudinal direction edge slope or transverse direction edge slope of the first image.Using the present invention, the computational efficiency of the edge slope under multiple light sources difference transverse and longitudinal DPI under transverse and longitudinal direction can be improved.

Description

The computational methods and device of the edge slope of regular image
Technical field
The present invention relates to the computational methods of technical field of image processing more particularly to a kind of edge slope of regular image and Device.
Background technology
CIS imaging sensors (Contact Image Sensor, contact-type image sensor) are acquiring rectangular regular mesh When target image, image is on transverse direction and longitudinal direction, the angle of image edge and reference axis and the DPI for acquiring the image (Dots Per Inch, dots per inch) parameter is related, in general, at some DPI, it is known its in transverse direction In the case of image edge slope, it can derive it under longitudinal direction according to the transverse and longitudinal side mutually orthogonal relationship of image Image edge slope.
It but in general, can be according to not in order to improve the resolution ratio of acquisition image and the precision of subsequent image processing Same Image Acquisition demand uses different DPI to the spectrum of different-waveband, and in this case, under different DPI Image, it is necessary to calculate separately the image edge slope under each DPI.Which results in there are multiple light sources and each light In the case of the transverse and longitudinal DPI parameter differences in source, needed according to different light source types during calculating image edge slope Calculate separately transverse and longitudinal slope, it is computationally intensive and time-consuming.
Invention content
Based on this, for solve traditional technology in using CIS acquire direction regular image during for multiple light sources Different transverse and longitudinal DPI need computationally intensive the technical issues of time-consuming caused by calculating separately the edge slope under transverse and longitudinal direction, Spy proposes a kind of computational methods of the edge slope of regular image.
A kind of computational methods of the edge slope of regular image, including:
The target image of the target object acquired by CIS imaging sensors is obtained, the target image is rectangular rule Image, the CIS imaging sensors include at least first light source, and the target image includes corresponding with the first light source the One image;
The first edge slope of described first image is obtained, which is that the transverse direction edge of the first image is oblique Rate or longitudinal direction edge slope;
Obtain the transverse direction DPI parameters and longitudinal direction DPI parameters of the first light source;It is converted according to preset edge slope Formula is oblique with the first edge of the transverse direction DPI parameters of the first light source and longitudinal direction DPI parameters, described first image Rate is independent variable, calculates the second edge slope of described first image, which is the longitudinal direction side of the first image Along slope or transverse direction edge slope.
Optionally, described according to preset edge slope reduction formula in one of the embodiments, with first light The transverse direction DPI parameters and longitudinal direction DPI parameters in source, the first edge slope of described first image are independent variable, calculate institute The second edge slope for stating the first image further includes:
In the case where the first edge slope of described first image is transverse direction edge slope, according to formula
Calculate the longitudinal direction edge slope of described first image;
Or,
In the case where the first edge slope of described first image is longitudinal direction edge slope, according to formula
Calculate the transverse direction edge slope of described first image;
Wherein, A1For the transverse direction DPI parameters of first light source, B1For the longitudinal direction DPI parameters of first light source, kh1It is first The transverse direction edge slope of image, kz1For the longitudinal direction edge slope of the first image.
Optionally, the CIS imaging sensors further include second light source in one of the embodiments, first light The transverse direction DPI parameters in source are identical as the transverse direction DPI parameters of the second light source;
The target image further includes the second image corresponding with second light source;
The method further includes:
According to the transverse direction edge slope and longitudinal direction edge slope of described first image, the cross of second image is determined Direction edge slope and longitudinal direction edge slope.
Optionally, the method further includes in one of the embodiments,:
According to the transverse direction edge slope and longitudinal direction edge slope of described first image, calculate and described first image pair The target rotation angle answered;
The target image is rotated according to the target rotation angle, obtains rotation figure corresponding with target image Picture.
In addition, also, in the present invention, it is proposed that a kind of computing device of the edge slope of regular image.
A kind of computing device of the edge slope of regular image, including:
Image collection module, the target image for obtaining the target object acquired by CIS imaging sensors, the mesh Logo image be rectangular regular image, the CIS imaging sensors include at least first light source, the target image include with it is described Corresponding first image of first light source;
First edge slope acquisition module, the first edge slope for obtaining described first image, first edge are oblique Rate is the transverse direction edge slope or longitudinal direction edge slope of the first image;
DPI parameter acquisition modules, the transverse direction DPI parameters for obtaining the first light source and longitudinal direction DPI parameters;The Two edge slope computing modules, for according to preset edge slope reduction formula, being joined with the transverse direction DPI of the first light source Number and the first edge slope of longitudinal direction DPI parameters, described first image are independent variable, calculate the second of described first image Edge slope, second edge slope are the longitudinal direction edge slope or transverse direction edge slope of the first image.
Optionally, the second edge slope computing module is additionally operable in first figure in one of the embodiments, In the case that first edge slope of picture is transverse direction edge slope, according to formula
Calculate the longitudinal direction edge slope of described first image;
Or,
In the case where the first edge slope of described first image is longitudinal direction edge slope, according to formula
Calculate the transverse direction edge slope of described first image;
Wherein, A1For the transverse direction DPI parameters of first light source, B1For the longitudinal direction DPI parameters of first light source, kh1It is first The transverse direction edge slope of image, kz1For the longitudinal direction edge slope of the first image.
Optionally, the CIS imaging sensors further include second light source in one of the embodiments, first light The transverse direction DPI parameters in source are identical as the transverse direction DPI parameters of the second light source;
The target image further includes the second image corresponding with second light source;
Described device further includes the second image edge slope determining module, for the transverse direction side according to described first image Along slope and longitudinal direction edge slope, the transverse direction edge slope and longitudinal direction edge slope of second image are determined.
Optionally, described device further includes image rotation module in one of the embodiments, for according to described first The transverse direction edge slope and longitudinal direction edge slope of image calculate target rotation angle corresponding with described first image;Root The target image is rotated according to the target rotation angle, obtains rotation image corresponding with target image.
Implement the embodiment of the present invention, will have the advantages that:
After the computational methods and the device that use the edge slope of above-mentioned regular image, multiple light sources are contained in calculating CIS imaging sensors multiple target images transverse direction edge slope and longitudinal direction edge slope during, only need Calculate one of edge slope, you can according to the DPI parameters in the transverse and longitudinal direction of light source and the known edge slope, come Another edge slope is calculated, need not compute repeatedly, can improve according to the computational methods of edge slope in the prior art The computational efficiency of edge slope, calculates image procossing and what is calculated takes.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Obtain other attached drawings according to these attached drawings.
Wherein:
Fig. 1 is a kind of flow diagram of the computational methods of the edge slope of regular image in one embodiment;
Fig. 2 is the image schematic diagram of regular image in one embodiment;
Fig. 3 is a kind of structural schematic diagram of the computing device of the edge slope of regular image in one embodiment;
Fig. 4 is the knot of the computer equipment of the computational methods of the edge slope of operation aforementioned rule image in one embodiment Structure schematic diagram.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts Embodiment shall fall within the protection scope of the present invention.
For the difference cross for solving in traditional technology during acquiring direction regular image using CIS for multiple light sources Vertical DPI needs computationally intensive the technical issues of time-consuming caused by calculating separately the edge slope under transverse and longitudinal direction, in this implementation In example, spy proposes a kind of computational methods of the edge slope of regular image, and the realization of this method can be dependent on computer program, The computer program can run on the computer system based on von Neumann system, which can be based on The application program of the image procossing of CIS imaging sensors.
It should be noted that in the present embodiment, the execution of the computational methods of the edge slope of above-mentioned regular image can be with It is the application program of the image procossing for the target image that target object is acquired based on CIS imaging sensors, also, target object Target image be rectangular regular image, for example, be rectangular or square image, wherein target object can be bank note, banknote, The regular objects such as paper.In a specific embodiment, above-mentioned CIS imaging sensors can also be sets mounted on self-service finance Image collecting device in standby upper currency checking module or module for recognizing paper money, executes the meter of the edge slope of above-mentioned regular image The computer system of calculation method can be the processor in the financial self-service equipment.
Specifically, as shown in Figure 1, the computational methods of the edge slope of above-mentioned regular image include the following steps S102- S108:
Step S102:The target image of the target object acquired by CIS imaging sensors is obtained, the target image is Rectangular regular image, the CIS imaging sensors include at least first light source, and the target image includes and the first light source Corresponding first image.
CIS imaging sensors (Contact Image Sensor, contact-type image sensor) can be arranged in self-service gold In the channel for melting equipment, the image of the medium (such as bank note) passed through is acquired, for example, passing through the infrared of infrared transmission light collection medium Image.In general, in order to meet for bank note or other target images identification multiple demand, in the present embodiment, CIS Multiple light sources are contained in imaging sensor, and each light source has corresponded to different spectrum, for example, red visible, indigo plant A kind of light source in color visible light, green visible, red transmission light, infrared external reflection light, ultraviolet light or various light sources.
It should be noted that different light sources, acquires a corresponding image, for example, being contained in CIS sensors respectively In the case of first light source, second light source, the image of corresponding acquisition include the first image corresponding with first light source and with Corresponding second image of second light source.In the case where containing N number of light source, also the corresponding N that contains opens images to target image, and Respectively at corresponding light source be corresponding.
Further, in the present embodiment, when calculating transverse and longitudinal slope, it is contemplated that the incidence relation between transverse and longitudinal slope, In the present embodiment, it is rectangular regular image to need target image corresponding with target object, that is to say, that above-mentioned first image And second image etc. be rectangular regular image, i.e., be vertical between transverse and longitudinal side.
Step S104:The first edge slope of described first image is obtained, which is the cross of the first image Direction edge slope or longitudinal direction edge slope;
Step S106:Obtain the transverse direction DPI parameters and longitudinal direction DPI parameters of the first light source;
Step S108:According to preset edge slope reduction formula, with the transverse direction DPI parameters of the first light source and Longitudinal direction DPI parameters, described first image the first edge slope be independent variable, the second edge for calculating described first image is oblique Rate, second edge slope are the longitudinal direction edge slope or transverse direction edge slope of the first image.
In the present embodiment, it when calculating the transverse direction edge slope and longitudinal direction edge slope of target image, only needs One of them is calculated, then can calculate another edge slope according to incidence relation between the two.
The first edge slope obtained in step S104 is either transverse direction edge slope, can also be longitudinal direction side Along slope, the second edge slope in step S108 is another edge slope.That is, being cross in the first edge slope In the case of the edge slope of direction, corresponding second edge slope is longitudinal direction edge slope;It is vertical side in the first edge slope In the case of edge slope, corresponding second edge slope is transverse direction edge slope.
It should be noted that in the present embodiment, being associated between transverse direction edge slope and longitudinal direction edge slope DPI parameter (Dots Per Inch, per English of the imaging sensor of system with the acquisition target image on transverse direction and longitudinal direction Very little points) it is related, that is to say, that between the edge slope of target image in the transverse direction and the edge slope on longitudinal direction The not direct product of correspondence be 1, need to consider DPI parameter of the sensor on transverse direction and longitudinal direction.
Therefore, when calculating the second edge slope, the corresponding cross side of acquisition light source corresponding with target image first is needed To DPI parameters and longitudinal direction DPI parameters, then according to preset edge slope reduction formula, with transverse direction DPI parameters and Longitudinal direction DPI parameters, the first edge slope are independent variable, calculate the second edge slope.
As shown in Fig. 2, Fig. 2 illustrates regular image by taking banknote image as an example, cross, the longitudinal direction DPI of banknote image are differed In the case of, the angle α of the angle theta of image transverse direction and reference axis horizontal axis, image longitudinal direction and the reference axis longitudinal axis is, Wherein, kh1For image transverse direction slope, kz1For image longitudinal direction slope.
By taking schematic diagram shown in Fig. 2 as an example, the angle theta of image transverse direction and reference axis horizontal axis, image longitudinal direction and coordinate The angle α of the axis longitudinal axis;Transverse direction dpi is A, and longitudinal direction dpi is B, the proportionate relationship r of transverse direction and longitudinal direction;
Proportionate relationship r can be pushed away to obtain:
Known transverse direction slope k _ h, it is as follows to push away longitudinal direction slope k _ z:
Conversely, known longitudinal direction slope k _ z, it is as follows to push away transverse direction slope k _ h:
K_h=r*k_z.
That is, when calculating the second edge slope of corresponding first image of first light source, you can according to the first side It is calculated along slope, transverse direction DPI parameters and longitudinal direction DPI parameters.
Specifically, A1For the transverse direction DPI parameters of first light source, B1For the longitudinal direction DPI parameters of first light source, kh1It is The transverse direction edge slope of one image, kz1For the longitudinal direction edge slope of the first image, at the first edge of described first image In the case that slope is transverse direction edge slope, according to formula
Calculate the longitudinal direction edge slope of described first image;
Or,
In the case where the first edge slope of described first image is longitudinal direction edge slope, according to formula
Calculate the transverse direction edge slope of described first image.
Further, in the present embodiment, the edge slope and of the first image in the transverse direction is being calculated After edge slope of one image on longitudinal direction, you can calculate the angle of the first image and abscissa line and the longitudinal axis, i.e., it is above-mentioned Angle α and angle theta.
It should be noted that the corresponding transverse direction DPI ginsengs of the N number of light source for including in the present embodiment, in CIS imaging sensors In number and longitudinal direction DPI parameters, the transverse direction DPI parameters of all light sources are the same, for example, being 100DPI.For example, In one specific embodiment, in the case where CIS imaging sensors contain 6 light sources, the corresponding longitudinal direction of 6 light sources DPI parameters can be different, but its corresponding DPI parameter on longitudinal direction is 100DPI.
Also, it, can direct basis when calculating the transverse direction edge slope and longitudinal direction edge slope of the second image The transverse direction edge slope and longitudinal direction edge slope of first image calculates.That is, after above-mentioned steps S108, also Including:According to the transverse direction edge slope and longitudinal direction edge slope of described first image, the cross side of second image is determined To edge slope and longitudinal direction edge slope.
In a specific embodiment, the transverse direction edge slope of the second image is equal to the transverse direction edge of the first image Slope, the longitudinal direction edge slope of the second image are equal to the longitudinal direction edge slope of the first image.So as to extrapolate target The transverse direction edge slope and longitudinal direction edge slope for the N number of partial image for including in image, you can to release all light sources Longitudinal edge slope.
As previously mentioned, the first image edge slope in the transverse direction and the first image has been calculated in longitudinal direction On edge slope after, you can calculate the angle of the first image and abscissa line and the longitudinal axis, i.e., above-mentioned angle α and angle theta.Example Such as, above-mentioned angle α and angle theta can be calculated by antitrigonometric function, to know target image horizontal edge and longitudinal edge with Angle between reference axis.
In general, when the image to bank note is analyzed, it is desirable that the forward direction of bank note and reversed image, and And when analyzing the features such as safety line, the image of bank note should be regular, and should be positive, be not it is askew to, that is, incline Rake angle is 0.Therefore, it in the case where the image inclination angle of bank note is not 0, needs to rotate target image, with The angle of inclination of image after to rotation is 0, convenient for further analysis.
Specifically, after above-mentioned steps S108, the above method further includes:According to the transverse direction edge of described first image Slope and longitudinal direction edge slope calculate target rotation angle corresponding with described first image;According to the target rotation angle Degree rotates the target image, obtains rotation image corresponding with target image.
For example, as shown in Fig. 2, the angle of banknote image and abscissa line is θ, by the target image up time of corresponding bank note Needle rotation θ degree can be obtained rotation image corresponding with target image.
In addition, in another embodiment of the present invention, it is also proposed that a kind of calculating dress of the edge slope of regular image It sets.
Specifically, as shown in figure 3, the computing device of the edge slope of above-mentioned regular image include image collection module 102, First edge slope acquisition module 104 and DPI parameter acquisition modules 106, the second edge slope computing module 108, wherein:
Image collection module 102, the target image for obtaining the target object acquired by CIS imaging sensors, institute State target image be rectangular regular image, the CIS imaging sensors include at least first light source, the target image include with Corresponding first image of the first light source;
First edge slope acquisition module 104, the first edge slope for obtaining described first image, first edge Slope is the transverse direction edge slope or longitudinal direction edge slope of the first image;
DPI parameter acquisition modules 106, the transverse direction DPI parameters for obtaining the first light source and longitudinal direction DPI ginsengs Number;
Second edge slope computing module 108 is used for according to preset edge slope reduction formula, with the first light source Transverse direction DPI parameters and the first edge slope of longitudinal direction DPI parameters, described first image be independent variable, described in calculating Second edge slope of the first image, second edge slope are oblique for the longitudinal direction edge slope or transverse direction edge of the first image Rate.
Optionally, in one embodiment, the second edge slope computing module 108 is additionally operable to the of described first image In the case that one edge slope is transverse direction edge slope, according to formula
Calculate the longitudinal direction edge slope of described first image;
Or,
In the case where the first edge slope of described first image is longitudinal direction edge slope, according to formula
Calculate the transverse direction edge slope of described first image;
Wherein, A1For the transverse direction DPI parameters of first light source, B1For the longitudinal direction DPI parameters of first light source, kh1It is first The transverse direction edge slope of image, kz1For the longitudinal direction edge slope of the first image.
Optionally, in one embodiment, CIS imaging sensors further include second light source, the cross side of the first light source It is identical as the transverse direction DPI parameters of the second light source to DPI parameters;The target image further includes corresponding with second light source Second image;As shown in figure 3, above-mentioned apparatus further includes the second image edge slope determining module 110, for according to described first The transverse direction edge slope and longitudinal direction edge slope of image determine the transverse direction edge slope and longitudinal direction of second image Edge slope.
Optionally, in one embodiment, as shown in figure 3, above-mentioned apparatus further includes image rotation module 112, it is used for root According to the transverse direction edge slope and longitudinal direction edge slope of described first image, target rotation corresponding with described first image is calculated Gyration;The target image is rotated according to the target rotation angle, obtains rotation figure corresponding with target image Picture.
Implement the embodiment of the present invention, will have the advantages that:
After the computational methods and the device that use the edge slope of above-mentioned regular image, multiple light sources are contained in calculating CIS imaging sensors multiple target images transverse direction edge slope and longitudinal direction edge slope during, only need Calculate one of edge slope, you can according to the DPI parameters in the transverse and longitudinal direction of light source and the known edge slope, come Another edge slope is calculated, need not compute repeatedly, can improve according to the computational methods of edge slope in the prior art The computational efficiency of edge slope, calculates image procossing and what is calculated takes.
In the above-described embodiments, all or part of reality can be come by software, hardware, firmware or its arbitrary combination It is existing.When being realized using software program, can entirely or partly realize in the form of a computer program product.The computer Program product includes one or more computer instructions.When loading on computers and executing the computer program instructions, entirely Portion is partly generated according to the flow or function described in the embodiment of the present invention.The computer can be all-purpose computer, specially With computer, computer network or other programmable devices.The computer instruction can be stored in computer-readable storage In medium, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the meter The instruction of calculation machine can pass through wired (such as coaxial cable, light from a web-site, computer, server or data center Fine, Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, clothes Business device or data center are transmitted.It is any available can be that computer can access for the computer readable storage medium Medium is either comprising data storage devices such as one or more usable mediums integrated server, data centers.It is described to use Medium can be magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as it is solid State hard disk Solid State Disk (SSD)) etc..
In one embodiment, as shown in figure 4, Fig. 4 illustrates a kind of meter of the edge slope of the above-mentioned regular image of operation The terminal of the computer system based on von Neumann system of calculation method.The computer system can be smart mobile phone, tablet electricity The terminal devices such as brain, palm PC, laptop or PC.Specifically, may include connecting by system bus outer Portion's input interface 1001, processor 1002, memory 1003 and output interface 1004.Wherein, outer input interface 1001 is optional Include at least network interface 10012.Memory 1003 may include external memory 10032 (such as hard disk, CD or floppy disk Deng) and built-in storage 10034.Output interface 1004 can include at least the equipment such as display screen 10042.
In the present embodiment, the operation of this method is based on computer program, and the program file of the computer program is stored in In the external memory 10032 of the aforementioned computer system based on von Neumann system, it is loaded into built-in storage at runtime It in 10034, is then compiled as being transferred in processor 1002 after machine code executing, so that being based on von Neumann system Computer system in form each virtual module in logic.And the computational methods of the edge slope in above-mentioned regular image are held During row, the parameter of input is received by outer input interface 1001, and is transferred in memory 1003 and is cached, then defeated Entering into processor 1002 and is handled, the result data of processing or be cached in memory 1003 is subsequently handled, or Output interface 1004 is passed to be exported.
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.

Claims (10)

1. a kind of computational methods of the edge slope of regular image, which is characterized in that including:
The target image of the target object acquired by CIS imaging sensors is obtained, the target image is rectangular regular image, The CIS imaging sensors include at least first light source, and the target image includes the first figure corresponding with the first light source Picture;
The first edge slope of described first image is obtained, first edge slope is the transverse direction edge of described first image Slope or longitudinal direction edge slope;
Obtain the transverse direction DPI parameters and longitudinal direction DPI parameters of the first light source;
According to preset edge slope reduction formula, with the transverse direction DPI parameters of the first light source and longitudinal direction DPI ginsengs Several, described first image the first edge slope is independent variable, calculates the second edge slope of described first image, second side Along the longitudinal direction edge slope or transverse direction edge slope that slope is described first image.
2. according to the method described in claim 1, it is characterized in that, described according to preset edge slope reduction formula, with institute First edge slope of the transverse direction DPI parameters and longitudinal direction DPI parameters, described first image of stating first light source is from change Amount, calculates the second edge slope of described first image, further includes:
In the case where the first edge slope of described first image is transverse direction edge slope, according to formula
Calculate the longitudinal direction edge slope of described first image;
Or,
In the case where the first edge slope of described first image is longitudinal direction edge slope, according to formula
Calculate the transverse direction edge slope of described first image;
Wherein, A1For the transverse direction DPI parameters of first light source, B1For the longitudinal direction DPI parameters of first light source, kh1For the first image Transverse direction edge slope, kz1For the longitudinal direction edge slope of the first image.
3. described according to the method described in claim 1, it is characterized in that, the CIS imaging sensors further include second light source The transverse direction DPI parameters of first light source are identical as the transverse direction DPI parameters of the second light source;
The target image further includes the second image corresponding with the second light source;
The method further includes:
According to the transverse direction edge slope and longitudinal direction edge slope of described first image, the transverse direction of second image is determined Edge slope and longitudinal direction edge slope.
4. method according to claim 1 or 3, which is characterized in that the method further includes:
According to the transverse direction edge slope and longitudinal direction edge slope of described first image, calculate corresponding with described first image Target rotation angle;
The target image is rotated according to the target rotation angle, obtains rotation figure corresponding with the target image Picture.
5. a kind of computing device of the edge slope of regular image, which is characterized in that including:
Image collection module, the target image for obtaining the target object acquired by CIS imaging sensors, the target figure Picture is rectangular regular image, and the CIS imaging sensors include at least first light source, and the target image includes and described first Corresponding first image of light source;
First edge slope acquisition module, the first edge slope for obtaining described first image, first edge slope For the transverse direction edge slope or longitudinal direction edge slope of described first image;
DPI parameter acquisition modules, the transverse direction DPI parameters for obtaining the first light source and longitudinal direction DPI parameters;
Second edge slope computing module is used for according to preset edge slope reduction formula, with the cross side of the first light source The first edge slope to DPI parameters and longitudinal direction DPI parameters, described first image is independent variable, calculates first figure Second edge slope of picture, second edge slope are oblique for the longitudinal direction edge slope or transverse direction edge of described first image Rate.
6. device according to claim 5, which is characterized in that the second edge slope computing module is additionally operable to described In the case that first edge slope of the first image is transverse direction edge slope, according to formula
Calculate the longitudinal direction edge slope of described first image;
Or,
In the case where the first edge slope of described first image is longitudinal direction edge slope, according to formula
Calculate the transverse direction edge slope of described first image;
Wherein, A1For the transverse direction DPI parameters of first light source, B1For the longitudinal direction DPI parameters of first light source, kh1For the first image Transverse direction edge slope, kz1For the longitudinal direction edge slope of the first image.
7. device according to claim 5, which is characterized in that the CIS imaging sensors further include second light source, described The transverse direction DPI parameters of first light source are identical as the transverse direction DPI parameters of the second light source;
The target image further includes the second image corresponding with the second light source;
Described device further includes the second image edge slope determining module, for oblique according to the transverse direction edge of described first image Rate and longitudinal direction edge slope determine the transverse direction edge slope and longitudinal direction edge slope of second image.
8. the device according to claim 5 or 7, which is characterized in that described device further includes image rotation module, is used for root According to the transverse direction edge slope and longitudinal direction edge slope of described first image, target rotation corresponding with described first image is calculated Gyration;The target image is rotated according to the target rotation angle, obtains rotation figure corresponding with target image Picture.
9. a kind of financial self-service equipment includes the side of CIS imaging sensors and the regular image as described in claim 5-8 Along the computing device of slope.
10. a kind of computer readable storage medium, including computer instruction, when the computer instruction is run on computers When so that computer executes the method as described in claim 1-4.
CN201810276939.9A 2018-03-30 2018-03-30 Method and device for calculating edge slope of regular image Active CN108717708B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810276939.9A CN108717708B (en) 2018-03-30 2018-03-30 Method and device for calculating edge slope of regular image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810276939.9A CN108717708B (en) 2018-03-30 2018-03-30 Method and device for calculating edge slope of regular image

Publications (2)

Publication Number Publication Date
CN108717708A true CN108717708A (en) 2018-10-30
CN108717708B CN108717708B (en) 2021-04-13

Family

ID=63898695

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810276939.9A Active CN108717708B (en) 2018-03-30 2018-03-30 Method and device for calculating edge slope of regular image

Country Status (1)

Country Link
CN (1) CN108717708B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113256550A (en) * 2020-12-18 2021-08-13 深圳市怡化时代科技有限公司 Image defect detection method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE3930031A1 (en) * 1988-12-17 1990-06-28 Samsung Electronics Co Ltd LIGHT-EMITTING DEVICE
CN105957238A (en) * 2016-05-20 2016-09-21 聚龙股份有限公司 Banknote management method and system
CN106056751A (en) * 2016-05-20 2016-10-26 聚龙股份有限公司 Prefix number identification method and system
CN107331031A (en) * 2017-07-04 2017-11-07 深圳怡化电脑股份有限公司 A kind of recognition methods of note denomination, device, equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE3930031A1 (en) * 1988-12-17 1990-06-28 Samsung Electronics Co Ltd LIGHT-EMITTING DEVICE
CN105957238A (en) * 2016-05-20 2016-09-21 聚龙股份有限公司 Banknote management method and system
CN106056751A (en) * 2016-05-20 2016-10-26 聚龙股份有限公司 Prefix number identification method and system
CN107331031A (en) * 2017-07-04 2017-11-07 深圳怡化电脑股份有限公司 A kind of recognition methods of note denomination, device, equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
WOJCIECH BIENIECKI 等: "Image Preprocessing for Improving OCR Accuracy", 《2007 INTERNATIONAL CONFERENCE ON PERSPECTIVE TECHNOLOGIES AND METHODS IN MEMS DESIGN》 *
刘习文 等: "纸币接触式传感器图像模糊增强与边界检测", 《科学技术与工程》 *
周春然: "纸币多光谱高分辨率图像采集系统的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113256550A (en) * 2020-12-18 2021-08-13 深圳市怡化时代科技有限公司 Image defect detection method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN108717708B (en) 2021-04-13

Similar Documents

Publication Publication Date Title
CN110427917B (en) Method and device for detecting key points
US11151397B2 (en) Liveness testing methods and apparatuses and image processing methods and apparatuses
US20190311190A1 (en) Methods and apparatuses for determining hand three-dimensional data
US12051258B2 (en) Image processing to detect a rectangular object
US20180014003A1 (en) Measuring Accuracy of Image Based Depth Sensing Systems
CN106845331B (en) A kind of image processing method and terminal
CN105928598A (en) Method and system for measuring object mass based on photographing
CN111626163B (en) Human face living body detection method and device and computer equipment
CN108564082A (en) Image processing method, device, server and medium
EP3135033B1 (en) Structured stereo
CN111414879B (en) Face shielding degree identification method and device, electronic equipment and readable storage medium
CN108961183B (en) Image processing method, terminal device and computer-readable storage medium
CN108664364A (en) A kind of terminal test method and device
US11727707B2 (en) Automatic image capture system based on a determination and verification of a physical object size in a captured image
US9058655B2 (en) Region of interest based image registration
CN108280455A (en) Human body critical point detection method and apparatus, electronic equipment, program and medium
CN112149583A (en) Smoke detection method, terminal device and storage medium
CN109948521A (en) Image correcting error method and device, equipment and storage medium
CN108717708A (en) The computational methods and device of the edge slope of regular image
US20210150612A1 (en) Apparatus, system and method for providing customized clothing recommendation service
CN108665605A (en) Paper Currency Identification and device
WO2021000495A1 (en) Image processing method and device
CN109919902A (en) For reducing the complementary aperture of diffraction effect
CN111402177A (en) Definition detection method, system, device and medium
JP6565252B2 (en) Information processing apparatus, information processing method, and program

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
GR01 Patent grant
GR01 Patent grant