CN109801428A - Detection method, detection device and the terminal of bank note edge line - Google Patents
Detection method, detection device and the terminal of bank note edge line Download PDFInfo
- Publication number
- CN109801428A CN109801428A CN201811564263.XA CN201811564263A CN109801428A CN 109801428 A CN109801428 A CN 109801428A CN 201811564263 A CN201811564263 A CN 201811564263A CN 109801428 A CN109801428 A CN 109801428A
- Authority
- CN
- China
- Prior art keywords
- bank note
- straight line
- pixel point
- note edge
- edge pixel
- 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
Links
Landscapes
- Image Analysis (AREA)
Abstract
The present invention is suitable for technical field of image processing, provides detection method, detection device, terminal and the computer readable storage medium of a kind of bank note edge line, the detection method includes: the bank note edge pixel point in detection image;The bank note edge pixel point is mapped to the straight line parameter space of specified size using linear equation, wherein each bank note edge pixel point is mapped as straight line in the straight line parameter space;The most linear intersections of the straight line passed through in the straight line parameter space are detected, and determine the bank note edge line in described image based on the corresponding straight line parameter of the linear intersections, wherein the straight line parameter includes slope and intercept.The present invention advantageously reduces the calculation amount and computational complexity when carrying out the detection of bank note edge line.
Description
Technical field
The invention belongs to technical field of image processing more particularly to a kind of detection methods of bank note edge line, detection dress
It sets, terminal and computer readable storage medium.
Background technique
When detecting to bank note, first choice needs to obtain the original image of bank note, and the bank note original image obtained is logical
Often there is certain tilt angle, needs the paper money recognition and paper money discrimination after its rotational correction, after just can be carried out.If
Rotational correction is carried out to bank note original image, it is necessary to which straight-line detection is carried out to the edge of bank note.
In the conventional technology, general using Hough transformation by the way of, by polar coordinate space traversal from 0 to 360 °
Polar angle value carries out the detection of straight line, and calculating process is complicated, computationally intensive.
Summary of the invention
In view of this, the present invention provides detection method, detection device, terminal and the computers of a kind of bank note edge line
Readable storage medium storing program for executing, to solve the calculating process complexity when carrying out bank note edge detection in the prior art, computationally intensive problem.
The first aspect of the embodiment of the present invention provides a kind of detection method of bank note edge line, the detection method packet
It includes:
Bank note edge pixel point in detection image;
The bank note edge pixel point is mapped to the straight line parameter space of specified size using linear equation, wherein every
A bank note edge pixel point is mapped as straight line in the straight line parameter space;
The most linear intersections of the straight line passed through in the straight line parameter space are detected, and are based on the linear intersections
Corresponding straight line parameter determines the bank note edge line in described image, wherein the straight line parameter includes slope and intercept.
The second aspect of the embodiment of the present invention provides a kind of detection device of bank note edge line, the detection device packet
It includes:
Bank note edge pixel point detection unit, the bank note edge pixel point in detection image;
Bank note edge pixel point map unit, for being examined the bank note edge pixel point detection unit using linear equation
The bank note edge pixel point measured is mapped to the straight line parameter space of specified size, wherein each bank note edge pixel point is in institute
It states in straight line parameter space and is mapped as straight line;
Straight-line detection unit, for detecting the most linear intersections of the straight line that passes through in the straight line parameter space, and
The bank note edge line in described image is determined based on the corresponding straight line parameter of the linear intersections, wherein the straight line ginseng
Number includes slope and intercept.
The third aspect of the embodiment of the present invention provides a kind of terminal, including memory, processor and is stored in described
In memory and the computer program that can run on the processor, the processor are realized when executing the computer program
As described in any one the step of the detection method of bank note edge line.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage
Media storage has computer program, and the bank note edge line as described in any one is realized when the computer program is executed by processor
Detection method the step of.
Existing beneficial effect is the present invention compared with prior art:
The present invention utilizes linear equation by the bank note edge pixel by the bank note edge pixel point in detection image
Point is mapped to the straight line parameter space of specified size, passes through the most straight line of the straight line passed through in the detection straight line parameter space
Crosspoint determines the bank note edge line on image;Since tilt of paper money angle is usually not too large on image, therefore can root
The size in straight line parameter space is specified according to its possible maximum tilt angle, so as to reduce calculation amount;In addition, straight
Line equation calculating process for polar equation also greatly simplifies, therefore, the present invention, which advantageously reduces, carries out bank note edge
Calculation amount and computational complexity when straight-line detection.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is the implementation flow chart of the detection method of bank note edge line provided in an embodiment of the present invention;
Fig. 2 is the structural schematic diagram of the detection device of bank note edge line provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific
The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, in case unnecessary details interferes description of the invention.
To make the object, technical solutions and advantages of the present invention clearer, pass through specific embodiment below in conjunction with attached drawing
To be illustrated.
Referring to Fig. 1, it illustrates the implementation flow chart of the detection method of bank note edge line provided in an embodiment of the present invention,
Details are as follows:
In a step 101, the bank note edge pixel point in detection image.
In embodiments of the present invention, the image of bank note, the figure can be acquired by the detection terminal with imaging sensor
As generally including two pixel regions: the background area that a pixel region is made of background pixel point, one other pixel area
The foreground area (non-background area) that domain is made of the corresponding pixel of collected banknote prints.
In embodiments of the present invention, above-mentioned bank note edge pixel point refers to background area and non-background area on image
The corresponding pixel in boundary, specifically, the bank note edge pixel point can be the borderline background pixel point in background area,
It can be with the borderline non-background pixel point in right and wrong background area, in the present embodiment with the borderline non-background picture in non-background area
Vegetarian refreshments is as bank note edge pixel point.
In one implementation, two-value processing can be carried out to image, so that background area is the black (picture of pixel
Element value is 0), non-background area is white (pixel value of pixel is 255).It in this way can be preferably to background pixel point and non-
Background pixel point distinguishes.
Optionally, above-mentioned steps 101 may include:
Bank note top edge pixel in detection image, wherein bank note top edge pixel indicates and continuous first
Adjacent and adjacent under the non-background pixel point of continuous second specified quantity pixel in the background pixel point of specified quantity.
In embodiments of the present invention, bank note edge pixel point to be detected can be bank note top edge pixel, for example,
Bank note is generally rectangular, and bank note top edge pixel refers to " side " corresponding pixel of the top of the rectangle.
In embodiments of the present invention, the inspection of bank note top edge pixel can be realized by way of detecting neighbor pixel
It surveys, for bank note top edge pixel, since it is where the boundary of background pixel point and non-background pixel point, therefore picture where it
Several pixels of continuous adjacent above it should be background pixel point on element column, where it is continuous thereunder on pixel column
Adjacent several pixels should be non-background pixel point.
In embodiments of the present invention, it is upper it is adjacent refer to positioned at the top of certain pixel and adjacent with the pixel, under it is adjacent
It is to being located at the lower section of certain pixel and adjacent with the pixel.First specified quantity and the second specified quantity are preassigned
Numerical value, the usually desirable integer greater than 2.Illustratively, the first above-mentioned specified quantity and the second specified quantity can be with value
5.That is, can by detection image in same row pixel it is adjacent in continuous 5 background pixel points, and, with continuous 5
Adjacent target pixel points under non-background pixel point, and it is regarded as bank note top edge pixel.
It should be noted that the "upper" "lower" in the embodiment of the present invention be for pixel absolute position on the image and
Speech, above-mentioned the first specified quantity and the second specified quantity may be the same or different, and be not limited thereto.
Optionally, above-mentioned steps 101 may include:
Bank note lower edge pixel in detection image, wherein the bank note lower edge pixel indicates and continuous third
Adjacent and adjacent in the non-background pixel point of continuous 4th specified quantity pixel under the background pixel point of specified quantity.
In embodiments of the present invention, bank note edge pixel point to be detected can be bank note lower edge pixel, for example,
Bank note is generally rectangular, and bank note lower edge pixel refers to " side " corresponding pixel of the lower section of the rectangle.
In embodiments of the present invention, the inspection of bank note lower edge pixel can be realized by way of detecting neighbor pixel
It surveys, for bank note lower edge pixel, since it is where the boundary of background pixel point and non-background pixel point, therefore picture where it
Several pixels of continuous adjacent thereunder should be background pixel point on element column, where it is continuous above it on pixel column
Adjacent several pixels should be non-background pixel point.
In embodiments of the present invention, it is upper it is adjacent refer to positioned at the top of certain pixel and adjacent with the pixel, under it is adjacent
It is to being located at the lower section of certain pixel and adjacent with the pixel.Illustratively, third specified quantity and the 4th specified quantity can
With value for 5.That is, can by detection image in same row pixel it is adjacent under continuous 5 background pixel points, and,
The adjacent target pixel points in continuous 5 non-background pixel points, and it is regarded as bank note lower edge pixel.
It should be noted that the "upper" "lower" in the embodiment of the present invention be for pixel absolute position on the image and
Speech, above-mentioned third specified quantity and the 4th specified quantity may be the same or different, and be not limited thereto.
In a step 102, the bank note edge pixel point is mapped to the straight line parameter of specified size using linear equation
Space, wherein each bank note edge pixel point is mapped as straight line in the straight line parameter space.
Straight line usually has and can use this in embodiments of the present invention there are two parameter, the slope of straight line and the intercept of straight line
The value of two parameters is coordinate, establishes straight line parameter space, the coordinate that each pair of point in the straight line parameter space is answered can be with table
Show the slope and intercept of the straight line in the plane space where banknote image.
Specifically, any one point thereon can have a plurality of straight line to pass through for the plane space where banknote image
It crosses, and any straight line for passing through the point has corresponded to a point in straight line parameter space, for example, the slope of the straight line is k,
Intercept is b, then it corresponds to the point that the coordinate in straight line parameter space is (k, b).So, by a target point in plane space
Multiple points for being mapped in straight line parameter space of a plurality of straight line will form the straight line in straight line parameter space (on the straight line
Any point corresponding flat space in pass through target point straight line).
Optionally, the linear equation can be described as: y=kx+b, wherein flat where (x, y) expression banknote image
The coordinate (can through the above steps 101 detection obtain) of bank note edge pixel point in space of planes, k indicate slope, 0≤k≤1, b
Indicate intercept, k and b respectively indicate the transverse and longitudinal coordinate in the straight line parameter space.
In embodiments of the present invention, the size in straight line parameter space is related to the value range of k and b, and the present invention is applied to
Terminal is detected, detects terminal before acquiring banknote image, it will usually be extracted, and passed through one by one to the bank note of image to be collected
Bank note Transfer pipe is transmitted to the acquisition that imaging sensor carries out image, and the modes of emplacement of bank note has been usually in transmit process
It is fixed, for example, for by the Transfer pipe of bank note cross drive, the bank note sent out will not usually become vertically, that is, logical
The tilt angle of bank note will not be very big in normal situation, but limits in a certain range.Based on this it is found that bank note edge line pair
The slope answered usually is not more than certain value, then can be to the big of straight line parameter space according to the restriction range of the slope
It is small to be defined.For example, if the tilt angle maximum of banknote image does not exceed positive and negative 45 °, then the value range of slope
Between -1 and 1.
Optionally, the above-mentioned straight line parameter that the bank note edge pixel point is mapped to specified size using linear equation is empty
Between may include:
For each bank note edge pixel point, the value of all k is traversed according to preset precision, is obtained with each k's
The value of the corresponding b of value generates the bank note edge pixel with the value of each k and the value of corresponding b for a coordinate points
Straight line of the point in the straight line parameter space.
It in embodiments of the present invention, can be according to preassigned precision, k's for each bank note edge pixel point
Within value range, the value of all k is traversed, to calculate the value of b corresponding with the value of each k, and with the value of each k
Value with corresponding b is a coordinate points, obtains the straight line in straight line parameter space.It by this way can be by step
The bank note edge pixel point detected in 101 both maps to straight line parameter space.
In order to further increase calculating speed, in one alternate embodiment, intersection can be utilized according to preset precision
The mode of arrangement traverses the value of all k, obtains the value of b corresponding with the value of each k.
In step 103, the most linear intersections of the straight line passed through in the straight line parameter space are detected, and are based on institute
It states the corresponding straight line parameter of linear intersections and determines bank note edge line in described image, wherein the straight line parameter includes
Slope and intercept.
In embodiments of the present invention, bank note edge line is made of multiple bank note edge pixel points, in the straight line
It is corresponding in parameter space to be mapped as a point, then the point should be in straight line parameter space for by multiple bank note edge pixels
The crosspoint for the straight line that point mapping obtains.
In embodiments of the present invention, defect detection can be carried out to bank note before carrying out bank note edge detection, pass through defect
The bank note of detection is complete bank note or incomplete smaller negligible bank note, then, most bank note edge pixels
The point that should be on bank note edge line of point, correspondingly, these bank note edge pixel points mapped in straight line parameter space it is straight
The crosspoint of line is then mapping point of the bank note edge line in straight line parameter space.
Optionally, described to determine that the bank note edge in described image is straight based on the corresponding straight line parameter of the linear intersections
Line includes:
Using the coordinate of the linear intersections as the slope of straight line and intercept, the bank note edge line is obtained
In embodiments of the present invention, intersected by detecting the most straight line of the straight line passed through in the straight line parameter space
Point, and then the coordinate in the available crosspoint have then also determined that the slope and intercept of bank note edge line.
In embodiments of the present invention, by detecting bank note top edge pixel, finally the coordinate in determining crosspoint is paper
The slope and intercept of coin top edge line correspondences.By detecting bank note lower edge pixel, the coordinate in the crosspoint finally determined
For the slope and intercept of bank note lower edge line correspondences.
From the foregoing, it will be observed that the present invention is by the bank note edge pixel point in detection image, and using linear equation by the paper
Coin edge pixel point is mapped to the straight line parameter space of specified size, by detecting the straight line passed through in the straight line parameter space
Most linear intersections determine the bank note edge line on image;Since tilt of paper money angle usually will not be too on image
Greatly, therefore the size in straight line parameter space can be specified according to its possible maximum tilt angle, so as to reduce meter
Calculation amount;In addition, linear equation calculating process for polar equation also greatly simplifies, therefore, the present invention advantageously reduces
Carry out the calculation amount and computational complexity when the detection of bank note edge line.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit
It is fixed.
The following are the device of the invention embodiments can refer to above-mentioned corresponding the details of wherein not detailed description
Embodiment of the method.
Fig. 2 shows the structural schematic diagrams of the detection device of bank note edge line provided in an embodiment of the present invention, in order to just
In explanation, only parts related to embodiments of the present invention are shown, and details are as follows:
As shown in Fig. 2, the detection device 2 of bank note edge line includes: bank note edge pixel point detection unit 21, bank note side
Edge pixel map unit 22 and straight-line detection unit 23.
Bank note edge pixel point detection unit 21, the bank note edge pixel point in detection image;
Bank note edge pixel point map unit 22, for being examined bank note edge pixel point detection unit 21 using linear equation
The bank note edge pixel point measured is mapped to the straight line parameter space of specified size, wherein each bank note edge pixel point is in institute
It states in straight line parameter space and is mapped as straight line;
Straight-line detection unit 23, for detecting the most linear intersections of the straight line that passes through in the straight line parameter space,
And the bank note edge line in described image is determined based on the corresponding straight line parameter of the linear intersections, wherein the straight line
Parameter includes slope and intercept.
Optionally, the linear equation are as follows: y=kx+b, wherein (x, y) indicates the coordinate of the bank note edge pixel point,
K indicates that slope, 0≤k≤1, b indicate intercept, and k and b respectively indicate the transverse and longitudinal coordinate in the straight line parameter space.
Optionally, bank note edge pixel point map unit 22 is specifically used for, for each bank note edge pixel point, according to pre-
If precision traverse the value of all k, the value of b corresponding with the value of each k is obtained, with the value of each k and right with it
The value of the b answered is a coordinate points, generates the bank note edge pixel point in the straight line in the straight line parameter space.
Optionally, the value that all k are traversed according to preset precision obtains b's corresponding with the value of each k
Value includes:
The value for traversing all k in the way of cross arrangement according to preset precision obtains the value pair with each k
The value of the b answered.
Optionally, bank note edge pixel point detection unit 21 is specifically used for, the bank note top edge pixel in detection image,
Wherein, bank note top edge pixel indicates adjacent in the background pixel point of continuous first specified quantity and with continuous second
Adjacent pixel under the non-background pixel point of specified quantity.
Optionally, bank note edge pixel point detection unit 21 is specifically used for, the bank note lower edge pixel in detection image,
Wherein, the bank note lower edge pixel indicates adjacent under the background pixel point with continuous third specified quantity and with the continuous 4
Adjacent pixel in the non-background pixel point of specified quantity.
Optionally, straight-line detection unit 23 is specifically used for, using the coordinate of the linear intersections as the slope of straight line and
Intercept obtains the bank note edge line.
From the foregoing, it will be observed that the present invention is by the bank note edge pixel point in detection image, and using linear equation by the paper
Coin edge pixel point is mapped to the straight line parameter space of specified size, by detecting the straight line passed through in the straight line parameter space
Most linear intersections determine the bank note edge line on image;Since tilt of paper money angle usually will not be too on image
Greatly, therefore the size in straight line parameter space can be specified according to its possible maximum tilt angle, so as to reduce meter
Calculation amount;In addition, linear equation calculating process for polar equation also greatly simplifies, therefore, the present invention advantageously reduces
Carry out the calculation amount and computational complexity when the detection of bank note edge line.
Fig. 3 is the schematic diagram for the terminal that one embodiment of the invention provides.As shown in figure 3, the terminal 3 of the embodiment includes:
Processor 30, memory 31 and it is stored in the computer program that can be run in the memory 31 and on the processor 30
32.The processor 30 realizes the detection method embodiment of above-mentioned each bank note edge line when executing the computer program 32
In step, such as step 101 shown in FIG. 1 is to step 103.Alternatively, the processor 30 executes the computer program 32
The function of each module/unit in the above-mentioned each Installation practice of Shi Shixian, such as the function of unit 21 to 23 shown in Fig. 2.
Illustratively, the computer program 32 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 31, and are executed by the processor 30, to complete the present invention.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for
Implementation procedure of the computer program 32 in the terminal 3 is described.For example, the computer program 32 can be divided into
Bank note edge pixel point detection unit, bank note edge pixel point map unit and straight-line detection unit, each unit concrete function is such as
Under:
Bank note edge pixel point detection unit, the bank note edge pixel point in detection image;
Bank note edge pixel point map unit, for being examined the bank note edge pixel point detection unit using linear equation
The bank note edge pixel point measured is mapped to the straight line parameter space of specified size, wherein each bank note edge pixel point is in institute
It states in straight line parameter space and is mapped as straight line;
Straight-line detection unit, for detecting the most linear intersections of the straight line that passes through in the straight line parameter space, and
The bank note edge line in described image is determined based on the corresponding straight line parameter of the linear intersections, wherein the straight line ginseng
Number includes slope and intercept.
The terminal 3 can be desktop PC, notebook, palm PC and cloud server etc. and calculate equipment.Institute
Stating terminal may include, but be not limited only to, processor 30, memory 31.It will be understood by those skilled in the art that Fig. 3 is only eventually
The example at end 3, the not restriction of structure paired terminal 3 may include than illustrating more or fewer components, or the certain portions of combination
Part or different components, such as the terminal can also include input-output equipment, network access equipment, bus etc..
Alleged processor 30 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 31 can be the internal storage unit of the terminal 3, such as the hard disk or memory of terminal 3.It is described
Memory 31 is also possible to the External memory equipment of the terminal 3, such as the plug-in type hard disk being equipped in the terminal 3, intelligence
Storage card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card)
Deng.Further, the memory 31 can also both include the internal storage unit of the terminal 3 or set including external storage
It is standby.The memory 31 is for other programs and data needed for storing the computer program and the terminal.It is described to deposit
Reservoir 31 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing
The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list
Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal and method can pass through
Other modes are realized.For example, device/terminal embodiment described above is only schematical, for example, the module or
The division of unit, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units
Or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, institute
Display or the mutual coupling or direct-coupling or communication connection discussed can be through some interfaces, device or unit
INDIRECT COUPLING or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation
All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium
It may include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic that can carry the computer program code
Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described
The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice
Subtract, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier signal and
Telecommunication signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (10)
1. a kind of detection method of bank note edge line, which is characterized in that the detection method includes:
Bank note edge pixel point in detection image;
The bank note edge pixel point is mapped to the straight line parameter space of specified size using linear equation, wherein Mei Gezhi
Coin edge pixel point is mapped as straight line in the straight line parameter space;
The most linear intersections of the straight line passed through in the straight line parameter space are detected, and corresponding based on the linear intersections
Straight line parameter determine the bank note edge line in described image, wherein the straight line parameter includes slope and intercept.
2. the detection method of bank note edge line according to claim 1, which is characterized in that the linear equation are as follows: y=
Kx+b, wherein (x, y) indicates that the coordinate of the bank note edge pixel point, k indicate that slope, -1≤k≤1, b indicate intercept, k and b
Respectively indicate the transverse and longitudinal coordinate in the straight line parameter space.
3. the detection method of bank note edge line according to claim 2, which is characterized in that described to utilize linear equation
The straight line parameter space that the bank note edge pixel point is mapped to specified size includes:
For each bank note edge pixel point, the value of all k is traversed according to preset precision, obtains the value with each k
The value of corresponding b generates the bank note edge pixel point and exists with the value of each k and the value of corresponding b for a coordinate points
The straight line in the straight line parameter space.
4. the detection method of bank note edge line according to claim 3, which is characterized in that described according to preset precision
The value for traversing all k, the value for obtaining b corresponding with the value of each k include:
The value for being traversed all k in the way of cross arrangement according to preset precision is obtained corresponding with the value of each k
The value of b.
5. the detection method of bank note edge line according to any one of claim 1 to 4, which is characterized in that the inspection
Bank note edge pixel point on altimetric image includes:
Bank note top edge pixel in detection image, wherein bank note top edge pixel indicates to specify with continuous first
Adjacent and adjacent under the non-background pixel point of continuous second specified quantity pixel in the background pixel point of quantity.
6. the detection method of bank note edge line according to any one of claim 1 to 4, which is characterized in that the inspection
Bank note edge pixel point on altimetric image includes:
Bank note lower edge pixel in detection image, wherein the bank note lower edge pixel indicates specified with continuous third
Adjacent and adjacent in the non-background pixel point of continuous 4th specified quantity pixel under the background pixel point of quantity.
7. the detection method of bank note edge line according to any one of claim 1 to 4, which is characterized in that the base
Determine that the bank note edge line in described image includes: in the corresponding straight line parameter of the linear intersections
Using the coordinate of the linear intersections as the slope of straight line and intercept, the bank note edge line is obtained.
8. a kind of detection device of bank note edge line, which is characterized in that the detection device includes:
Bank note edge pixel point detection unit, the bank note edge pixel point in detection image;
Bank note edge pixel point map unit, for being detected the bank note edge pixel point detection unit using linear equation
Bank note edge pixel point be mapped to the straight line parameter space of specified size, wherein each bank note edge pixel point is described straight
Straight line is mapped as in line parameter space;
Straight-line detection unit for detecting the most linear intersections of the straight line that passes through in the straight line parameter space, and is based on
The corresponding straight line parameter of the linear intersections determines the bank note edge line in described image, wherein the straight line parameter packet
Include slope and intercept.
9. a kind of terminal, including memory, processor and storage can be run in the memory and on the processor
Computer program, which is characterized in that the processor realizes claim 1 to 7 as above when executing the computer program
Any one of described in bank note edge line detection method the step of.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In the computer program realizes bank note edge line described in any one of claims 1 to 7 as above when being executed by processor
Detection method the step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811564263.XA CN109801428B (en) | 2018-12-20 | 2018-12-20 | Method and device for detecting edge straight line of paper money and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811564263.XA CN109801428B (en) | 2018-12-20 | 2018-12-20 | Method and device for detecting edge straight line of paper money and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109801428A true CN109801428A (en) | 2019-05-24 |
CN109801428B CN109801428B (en) | 2021-05-11 |
Family
ID=66557303
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811564263.XA Active CN109801428B (en) | 2018-12-20 | 2018-12-20 | Method and device for detecting edge straight line of paper money and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109801428B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111830036A (en) * | 2020-07-01 | 2020-10-27 | 湖北省纤维检验局 | Fabric density analysis method and system |
CN112733854A (en) * | 2021-03-30 | 2021-04-30 | 恒银金融科技股份有限公司 | Method for calculating deflection angle of bank note |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106875539A (en) * | 2017-01-11 | 2017-06-20 | 深圳怡化电脑股份有限公司 | The detection method and device of bank note |
CN107067382A (en) * | 2017-05-11 | 2017-08-18 | 南宁市正祥科技有限公司 | A kind of improved method for detecting image edge |
CN107798683A (en) * | 2017-11-10 | 2018-03-13 | 珠海格力智能装备有限公司 | Product specific region edge detection method, device and terminal |
CN107886615A (en) * | 2017-12-15 | 2018-04-06 | 深圳怡化电脑股份有限公司 | Edge detection method and currency examination equipment |
CN107967689A (en) * | 2017-12-05 | 2018-04-27 | 锐捷网络股份有限公司 | A kind of image boundary detection method and equipment |
CN108492446A (en) * | 2018-02-07 | 2018-09-04 | 深圳怡化电脑股份有限公司 | A kind of bank note edge finding method and system |
US10107594B1 (en) * | 2017-11-24 | 2018-10-23 | Huntercraft Limited | Analysis method of electronic spotting scope for automatically analyzing shooting accuracy |
CN108759661A (en) * | 2018-03-27 | 2018-11-06 | 松下电子部品(江门)有限公司 | The straight line offset method of edge detection vision system |
CN108805806A (en) * | 2017-04-28 | 2018-11-13 | 华为技术有限公司 | Image processing method and device |
KR101922387B1 (en) * | 2018-08-17 | 2018-11-26 | 고영만 | Paper shopping bag automatic manufacturing method and paper shopping bag manufactured by the method |
-
2018
- 2018-12-20 CN CN201811564263.XA patent/CN109801428B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106875539A (en) * | 2017-01-11 | 2017-06-20 | 深圳怡化电脑股份有限公司 | The detection method and device of bank note |
CN106875539B (en) * | 2017-01-11 | 2019-04-26 | 深圳怡化电脑股份有限公司 | The detection method and device of bank note |
CN108805806A (en) * | 2017-04-28 | 2018-11-13 | 华为技术有限公司 | Image processing method and device |
CN107067382A (en) * | 2017-05-11 | 2017-08-18 | 南宁市正祥科技有限公司 | A kind of improved method for detecting image edge |
CN107798683A (en) * | 2017-11-10 | 2018-03-13 | 珠海格力智能装备有限公司 | Product specific region edge detection method, device and terminal |
US10107594B1 (en) * | 2017-11-24 | 2018-10-23 | Huntercraft Limited | Analysis method of electronic spotting scope for automatically analyzing shooting accuracy |
CN107967689A (en) * | 2017-12-05 | 2018-04-27 | 锐捷网络股份有限公司 | A kind of image boundary detection method and equipment |
CN107886615A (en) * | 2017-12-15 | 2018-04-06 | 深圳怡化电脑股份有限公司 | Edge detection method and currency examination equipment |
CN108492446A (en) * | 2018-02-07 | 2018-09-04 | 深圳怡化电脑股份有限公司 | A kind of bank note edge finding method and system |
CN108759661A (en) * | 2018-03-27 | 2018-11-06 | 松下电子部品(江门)有限公司 | The straight line offset method of edge detection vision system |
KR101922387B1 (en) * | 2018-08-17 | 2018-11-26 | 고영만 | Paper shopping bag automatic manufacturing method and paper shopping bag manufactured by the method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111830036A (en) * | 2020-07-01 | 2020-10-27 | 湖北省纤维检验局 | Fabric density analysis method and system |
CN112733854A (en) * | 2021-03-30 | 2021-04-30 | 恒银金融科技股份有限公司 | Method for calculating deflection angle of bank note |
Also Published As
Publication number | Publication date |
---|---|
CN109801428B (en) | 2021-05-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110781885A (en) | Text detection method, device, medium and electronic equipment based on image processing | |
CN108230321A (en) | Defect inspection method and device | |
US20180165511A1 (en) | Three-dimensional facial recognition method and system | |
CN113298169B (en) | Rotating target detection method and device based on convolutional neural network | |
CN108399386A (en) | Information extracting method in pie chart and device | |
CN108573279A (en) | Image labeling method and terminal device | |
CN110175502A (en) | A kind of backbone Cobb angle measuring method, device, readable storage medium storing program for executing and terminal device | |
CN109146855A (en) | A kind of image mole marks detection method, terminal device and storage medium | |
CN107492091A (en) | Label look detection method and terminal device based on machine vision | |
CN109934181A (en) | Text recognition method, device, equipment and computer-readable medium | |
CN106203326B (en) | A kind of image processing method, device and mobile terminal | |
CN107688824A (en) | Picture match method and terminal device | |
CN110232318A (en) | Acupuncture point recognition methods, device, electronic equipment and storage medium | |
CN109348731A (en) | A kind of method and device of images match | |
CN110910445B (en) | Object size detection method, device, detection equipment and storage medium | |
CN110490839A (en) | The method, apparatus and computer equipment of failure area in a kind of detection highway | |
CN112132812B (en) | Certificate verification method and device, electronic equipment and medium | |
CN111191582A (en) | Three-dimensional target detection method, detection device, terminal device and computer-readable storage medium | |
CN108334879A (en) | A kind of method for extracting region, system and terminal device | |
CN111583381A (en) | Rendering method and device of game resource map and electronic equipment | |
CN107492187B (en) | A kind of recognition methods, device, terminal device and storage medium splicing paper money | |
CN114239508A (en) | Form restoration method and device, storage medium and electronic equipment | |
CN109801428A (en) | Detection method, detection device and the terminal of bank note edge line | |
CN107527418B (en) | A kind of Heisui River lettering position method, apparatus, terminal device and readable storage medium storing program for executing | |
CN104424475B (en) | The recognition methods of fringe area in image and device |
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 |