CN106327663B - A kind of safety line localization method and device - Google Patents

A kind of safety line localization method and device Download PDF

Info

Publication number
CN106327663B
CN106327663B CN201610645272.6A CN201610645272A CN106327663B CN 106327663 B CN106327663 B CN 106327663B CN 201610645272 A CN201610645272 A CN 201610645272A CN 106327663 B CN106327663 B CN 106327663B
Authority
CN
China
Prior art keywords
region
magnetic
pixel
dimensional
safety line
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.)
Active
Application number
CN201610645272.6A
Other languages
Chinese (zh)
Other versions
CN106327663A (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 CN201610645272.6A priority Critical patent/CN106327663B/en
Publication of CN106327663A publication Critical patent/CN106327663A/en
Application granted granted Critical
Publication of CN106327663B publication Critical patent/CN106327663B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07DHANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
    • G07D7/00Testing specially adapted to determine the identity or genuineness of valuable papers or for segregating those which are unacceptable, e.g. banknotes that are alien to a currency
    • G07D7/04Testing magnetic properties of the materials thereof, e.g. by detection of magnetic imprint

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Image Analysis (AREA)
  • Credit Cards Or The Like (AREA)

Abstract

The invention belongs to field of anti-counterfeit technology, a kind of safety line localization method and device are provided, this method comprises: positioning crown word number region, the great hall region and safety line region, in the magnetic three-dimensional figure of bank note to obtain the location data in above three region;According to the location data in above three region, first area and the second area for meeting preset condition are obtained in magnetic three-dimensional figure;Count be located in first area in each channel and magnetic amplitude greater than the pixel of preset threshold quantity, using the pixel quantity as the first pixel quantity of corresponding channel;The quantity for being located at the pixel that the interior and magnetic amplitude of second area is greater than preset threshold in each channel is counted, using the pixel quantity as the second pixel quantity of corresponding channel;According to first pixel quantity and the second pixel quantity in all channels, position of the positioning security line in magnetic three-dimensional figure.Improve locating accuracy of the safety line in magnetic three-dimensional figure.

Description

A kind of safety line localization method and device
Technical field
The invention belongs to field of anti-counterfeit technology more particularly to a kind of safety line localization methods and device.
Background technique
The safety line of bank note is to examine the important evidence of forge or true or paper money, and the magnetic characteristic detection of safety line affects entire paper The discrimination of coin.Peace could be further only detected behind the position in the magnetic three-dimensional figure of bank note being properly positioned safety line The magnetic characteristic of all fronts.
Safety line region in bank note is obtained generally according to empirical statistics in the prior art, directly the safety line region exists Position of the position as safety line in magnetic three-dimensional figure in the magnetic three-dimensional figure of bank note, causes safety line in magnetic three-dimensional figure In locating accuracy it is not high.
Therefore, it is necessary to propose a kind of new technical solution, to solve the above technical problems.
Summary of the invention
In consideration of it, the embodiment of the present invention provides a kind of safety line localization method and device, to improve safety line in magnetism three Tie up the locating accuracy in figure.
The embodiment of the present invention in a first aspect, providing a kind of safety line localization method, which comprises
Obtain the magnetic amplitude of each pixel in bank note;
According to the position of the magnetic amplitude of each pixel and each pixel in the bank note, obtain The magnetic three-dimensional figure of the bank note, and the magnetic three-dimensional figure is divided into N number of channel on the column direction of the magnetic three-dimensional figure, Wherein, N is the integer greater than zero;
Crown word number region, the great hall region and safety line region are positioned in the magnetic three-dimensional figure, described in obtaining The location data of the location data in crown word number region, the location data in the great hall region and the safety line region;
According to the location data in the crown word number region, the location data in the great hall region and the safety line area The location data in domain obtains first area and the second area for meeting preset condition in the magnetic three-dimensional figure;
Count be located in the first area in each channel and magnetic amplitude greater than the pixel of preset threshold quantity, And using the pixel quantity as the first pixel quantity of corresponding channel;It is located at the second area in each channel with counting Interior and magnetic amplitude is greater than the quantity of the pixel of the preset threshold, and using the pixel quantity as the second of corresponding channel Pixel quantity;
According to first pixel quantity and second pixel quantity in all channels, positions the safety line and exist Position in the magnetic three-dimensional figure.
The second aspect of the embodiment of the present invention, provides a kind of safety line positioning device, and described device includes:
First obtains module, for obtaining the magnetic amplitude of each pixel in bank note;
Module is obtained, for the magnetic amplitude and each pixel according to each pixel in the bank note In position, obtain the magnetic three-dimensional figure of the bank note, and by the magnetic three-dimensional on the column direction of the magnetic three-dimensional figure Figure is divided into N number of channel, wherein N is the integer greater than zero;
First locating module, for positioning crown word number region, the great hall region and safety in the magnetic three-dimensional figure Line region, to obtain the location data in the crown word number region, the location data and the safety line in the great hall region The location data in region;
Second obtains module, for the positioning number according to the location data in the crown word number region, the great hall region Accordingly and the location data in the safety line region, obtained in the magnetic three-dimensional figure first area for meeting preset condition and Second area;
Statistical module is located in the first area and magnetic amplitude is greater than preset threshold for counting in each channel The quantity of pixel, and using the pixel quantity as the first pixel quantity of corresponding channel;With position in each channel of statistics In in the second area and magnetic amplitude is greater than the quantity of the pixel of the preset threshold, and using pixel quantity as pair Answer second pixel quantity in channel;
Second locating module, for according to all channels first pixel quantity and second pixel number Amount, positions position of the safety line in the magnetic three-dimensional figure.
Existing beneficial effect is the embodiment of the present invention compared with prior art: the embodiment of the present invention is by obtaining bank note Magnetic three-dimensional figure positions crown word number region, the great hall region and safety line region, in the magnetic three-dimensional figure to be positioned The location data of the location data in crown word number region, the location data in the great hall region and safety line region, according to above-mentioned three The location data in a region, obtains first area and the second area for meeting preset condition in magnetic three-dimensional figure, and statistics is each Be located in first area in channel and magnetic amplitude greater than the pixel of preset threshold quantity, and using the pixel quantity as First pixel quantity of corresponding channel counts and is located at the interior and magnetic amplitude of second area in each channel greater than preset threshold The quantity of pixel, and using the pixel quantity as the second pixel quantity of corresponding channel, according to the first of all channels Pixel quantity and the second pixel quantity, position of the positioning security line in magnetic three-dimensional figure.The embodiment of the present invention is preliminary It positions in bank note on the basis of safety line region, according to first pixel quantity in all channels and the second pixel quantity to Further positioning is done in the safety line region oriented, and improves locating accuracy of the safety line in magnetic three-dimensional figure, in order to The detection of safety line magnetic feature improves the discrimination of bank note.
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 for the safety line localization method that the embodiment of the present invention one provides;
Fig. 2 a is the front elevation of 1999 editions 100 yuans of magnetic three-dimensional figure;Fig. 2 b is 1999 editions 100 yuans The top view of magnetic three-dimensional figure;
Fig. 3 a is the front elevation of 2005 editions 100 yuans of magnetic three-dimensional figure;Fig. 3 b is 2005 editions 100 yuans The top view of magnetic three-dimensional figure;
Fig. 4 is the implementation flow chart of safety line localization method provided by Embodiment 2 of the present invention;
Fig. 5 is the composition schematic diagram for the safety line positioning device that the embodiment of the present invention three provides.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Embodiment one:
Fig. 1 shows the implementation process of the safety line localization method of the offer of the embodiment of the present invention one, and the implementation process is detailed It states as follows:
In step s101, the magnetic amplitude of each pixel in bank note is obtained.
In embodiments of the present invention, the magnetic amplitude of each pixel in bank note can be obtained by magnetic sensor.
In step s 102, according to the magnetic amplitude of each pixel and each pixel in the bank note In position, obtain the magnetic three-dimensional figure of the bank note, and by the magnetic three-dimensional on the column direction of the magnetic three-dimensional figure Figure is divided into N number of channel, wherein N is the integer greater than zero.
In embodiments of the present invention, can according to step S101 obtain bank note in each pixel magnetic amplitude and Position of each pixel in the bank note, obtains the magnetic three-dimensional figure of the bank note, the X in the magnetic three-dimensional figure Axis indicates that the column coordinate of pixel, Y-axis indicate that the row coordinate of pixel, Z axis indicate the magnetic amplitude of pixel, and in the magnetic The magnetic three-dimensional figure is divided into N number of channel on the column direction of property three-dimensional figure.Preferably, N is 18.
It should be noted that the magnetic amplitude for the pixel that Z axis indicates in the magnetic three-dimensional figure is by repeatedly amplifying It is obtained after conversion, indicates the size of the relative magnetism amplitude between pixel.
In order to better understand the present invention, it is illustrated by taking 1999 editions and 2005 editions 100 yuans as an example, at 1999 editions Safety line and crown word number are magnetic in 100 yuans, and the great hall is without magnetism.Pacify in 2005 editions 100 yuans Completely, crown word number and the great hall are magnetic.If Fig. 2 a is the front elevation of 1999 editions 100 yuans of magnetic three-dimensional figure, such as Fig. 2 b is the top view of 1999 editions 100 yuans of magnetic three-dimensional figure, if Fig. 3 a is 2005 editions 100 yuans of magnetism three The front elevation for tieing up figure, if Fig. 3 b is the top view of 2005 editions 100 yuans of magnetic three-dimensional figure.
In step s 103, crown word number region, the great hall region and safety line area are positioned in the magnetic three-dimensional figure Domain, to obtain the location data, the location data in the great hall region and the safety line region in the crown word number region Location data.
In embodiments of the present invention, crown word number region, conference in the magnetic three-dimensional figure rule of thumb can substantially be positioned Hall region and safety line region, it is accurate further according to the crown word number region, the great hall region and safety line region substantially positioned Position of the positioning security line in magnetic three-dimensional figure.
It should be noted that due to magnetism no at 1999 editions 100 yuans of the great hall, for the ease of united analysis 1999 editions 100 yuans of magnetic characteristic and 2005 editions 100 yuans of magnetic characteristic, it is also desirable in 1999 editions 100 members The great hall region is substantially positioned in the magnetic three-dimensional figure of RMB.
In step S104, according to the location data in the crown word number region, the location data in the great hall region with And the location data in the safety line region, the first area and second for meeting preset condition is obtained in the magnetic three-dimensional figure Region.
In embodiments of the present invention, in order to reduce the region that detection positions the safety line, locating speed is improved, according to institute The location data of the location data in crown word number region, the location data in the great hall region and the safety line region is stated, First area and the second area for meeting preset condition are obtained in the magnetic three-dimensional figure.
In step s105, it counts and is located in the first area in each channel and magnetic amplitude is greater than preset threshold The quantity of pixel, and using the pixel quantity as the first pixel quantity of corresponding channel;With position in each channel of statistics In in the second area and magnetic amplitude is greater than the quantity of the pixel of the preset threshold, and using the pixel quantity as Second pixel quantity of corresponding channel.
In the present invention is implemented, setting preset threshold is to filter the shadow that ambient noise positions safety line in bank note It rings, first preset threshold can be according to the requirement self-defining to positioning accuracy, it is not limited here.
Illustratively, magnetic three-dimensional figure is divided into 18 channels, counts in first channel and is located in the first area And magnetic amplitude is greater than the quantity of the pixel of preset threshold, and using the pixel quantity as the first pixel of first passage Quantity;Be located in the second area in statistics first passage and magnetic amplitude is greater than the number of the pixel of the preset threshold Amount, and using the pixel quantity as the second pixel quantity of first passage;Second channel is counted according to the above method First pixel quantity and the second pixel quantity;First pixel quantity and the in third channel is counted according to the above method Two pixel quantities, and so on, the first pixel quantity and the second pixel quantity until counting on the 18th channel, i.e., 18 channels of magnetic three-dimensional figure are traversed.
In step s 106, fixed according to first pixel quantity and second pixel quantity in all channels Position of the position safety line in the magnetic three-dimensional figure.
In embodiments of the present invention, according to first pixel quantity in channel each in all channels and described second Pixel quantity does further positioning to the safety line region in the magnetic three-dimensional figure.
It should be noted that safety line generally only accounts for a channel in the magnetic three-dimensional figure of the bank note, if in safety Tilt of paper money before line positioning, then need to carry out safety line positioning again after aligning bank note.
The embodiment of the present invention by obtain bank note magnetic three-dimensional figure, in the magnetic three-dimensional figure position crown word number region, The great hall region and safety line region, to obtain location data, the location data in the great hall region in positioning crown word number region And the location data in safety line region, according to the location data in above three region, acquisition meets pre- in magnetic three-dimensional figure If first area and the second area of condition, counts and be located in first area in each channel and magnetic amplitude is greater than preset threshold The quantity of pixel count position in each channel and using the pixel quantity as the first pixel quantity of corresponding channel In in second area and magnetic amplitude is greater than the quantity of the pixel of preset threshold, and using the pixel quantity as corresponding channel The second pixel quantity, according to first pixel quantity and the second pixel quantity in all channels, positioning security line is in magnetic Position in property three-dimensional figure.The embodiment of the present invention is in Primary Location bank note on the basis of safety line region, according to all channels The first pixel quantity and the second pixel quantity further positioning is done to the safety line region oriented, improve safety Locating accuracy of the line in magnetic three-dimensional figure improves the discrimination of bank note in order to the detection of safety line magnetic feature.
Embodiment two:
Fig. 4 shows the implementation process of safety line localization method provided by Embodiment 2 of the present invention, and the implementation process is detailed It states as follows:
In step S401, the magnetic amplitude of each pixel in bank note is obtained.
In embodiments of the present invention, the magnetic amplitude of each pixel in bank note can be obtained by magnetic sensor.
In step S402, according to the magnetic amplitude of each pixel and each pixel in the bank note In position, obtain the magnetic three-dimensional figure of the bank note, and by the magnetic three-dimensional on the column direction of the magnetic three-dimensional figure Figure is divided into N number of channel, wherein N is the integer greater than zero.
In embodiments of the present invention, can according to step S401 obtain bank note in each pixel magnetic amplitude and Position of each pixel in the bank note, obtains the magnetic three-dimensional figure of the bank note, the X in the magnetic three-dimensional figure Axis indicates that the column coordinate of pixel, Y-axis indicate that the row coordinate of pixel, Z axis indicate the magnetic amplitude of pixel, and in the magnetic The magnetic three-dimensional figure is divided into N number of channel on the column direction of property three-dimensional figure.Preferably, N is 18.
It should be noted that the magnetic amplitude for the pixel that Z axis indicates in the magnetic three-dimensional figure is by multiple conversions It obtains afterwards, indicates the size of the relative magnetism amplitude between pixel.
In order to better understand the present invention, it is illustrated by taking 1999 editions and 2005 editions 100 yuans as an example, at 1999 editions Safety line and crown word number are magnetic in 100 yuans, and the great hall is without magnetism.Pacify in 2005 editions 100 yuans Completely, crown word number and the great hall are magnetic.If Fig. 2 a is the front elevation of 1999 editions 100 yuans of magnetic three-dimensional figure, such as Fig. 2 b is the top view of 1999 editions 100 yuans of magnetic three-dimensional figure, if Fig. 3 a is 2005 editions 100 yuans of magnetism three The front elevation for tieing up figure, if Fig. 3 b is the top view of 2005 editions 100 yuans of magnetic three-dimensional figure.
In step S403, crown word number region, the great hall region and safety line area are positioned in the magnetic three-dimensional figure Domain, to obtain starting row and end line of the crown word number region on the line direction of the magnetic three-dimensional figure, the great hall Starting row and end line and the safety line region of the region on the line direction of the magnetic three-dimensional figure are described magnetic three Tie up the starting row and end line on the line direction of figure.
In embodiments of the present invention, crown word number region, conference in the magnetic three-dimensional figure rule of thumb can substantially be positioned Hall region and safety line region, obtain starting row and knot of the crown word number region on the line direction of the magnetic three-dimensional figure The starting row and end line and the safety line area of Shu Hang, the great hall region on the line direction of the magnetic three-dimensional figure Starting row and end line of the domain on the line direction of the magnetic three-dimensional figure, further according to opening for the above three region substantially positioned It begins and is accurately positioned position of the safety line in magnetic three-dimensional figure with end line.
It should be noted that due to magnetism no at 1999 editions 100 yuans of the great hall, for the ease of united analysis 1999 editions 100 yuans of magnetic characteristic and 2005 editions 100 yuans of magnetic characteristic, it is also desirable at 1999 editions 100 yuan The great hall region is substantially positioned in the magnetic three-dimensional figure of RMB.
In step s 404, the starting row of the starting row in the crown word number region and the great hall region, will be compared with Small value is used as the first starting row, and determines that the region between first starting row and the starting row in the safety line region is institute State first area;Compare the end line in the crown word number region and the end line in the great hall region, using the larger value as One end line, and determine that the region between first end line and the end line in the safety line region is secondth area Domain.
In step S405, counts and be located in the first area in each channel and magnetic amplitude is greater than preset threshold The quantity of pixel, and using the pixel quantity as the first pixel quantity of corresponding channel;With position in each channel of statistics In in the second area and magnetic amplitude is greater than the quantity of the pixel of the preset threshold, and using the pixel quantity as Second pixel quantity of corresponding channel.
In the present invention is implemented, setting preset threshold is to filter the shadow that ambient noise positions safety line in bank note It rings, first preset threshold can be according to the requirement self-defining to positioning accuracy, it is not limited here.
Illustratively, magnetic three-dimensional figure is divided into 18 channels, counts in first channel and is located in the first area And magnetic amplitude is greater than the quantity of the pixel of preset threshold, and using the pixel quantity as the first pixel of first passage Quantity;Be located in the second area in statistics first passage and magnetic amplitude is greater than the number of the pixel of the preset threshold Amount, and using the pixel quantity as the second pixel quantity of first passage;Second channel is counted according to the above method First pixel quantity and the second pixel quantity;First pixel quantity and the in third channel is counted according to the above method Two pixel quantities, and so on, the first pixel quantity and the second pixel quantity until counting on the 18th channel, i.e., 18 channels of magnetic three-dimensional figure are traversed.
In step S406, first pixel quantity in each channel is added with second pixel quantity, Third pixel quantity of the value after being added as corresponding channel.
Illustratively, by second pixel number of first pixel quantity in first channel and first passage Amount is added, third pixel quantity of the value as first passage after will add up.
In step S 407, maximum value is selected from the third pixel quantity in all channels, determines the maximum Being worth corresponding channel is channel where the safety line.
In embodiments of the present invention, according to the third pixel quantity in channel each in all channels, lead to from all Maximum value is selected in the third pixel quantity in road, the safety line region in the magnetic three-dimensional figure is done into one Step positioning determines that the corresponding channel of the maximum value is channel where the safety line.
Illustratively, the magnetic three-dimensional figure is divided into 18 channels on the column direction of magnetic three-dimensional figure, obtained each logical The third pixel quantity in road, if the third pixel quantity in the 11st channel is maximum, it is determined that the 11st channel is safety line Place channel.
It should be noted that safety line generally only accounts for a channel in the magnetic three-dimensional figure of the bank note, if in safety Tilt of paper money before line positioning, then need to carry out safety line positioning again after aligning bank note.
The embodiment of the present invention by obtain bank note magnetic three-dimensional figure, in the magnetic three-dimensional figure position crown word number region, The great hall region and safety line region, with obtain starting row of the positioning crown word number region on the line direction of magnetic three-dimensional figure and The starting row and end line and safety line region of end line, the great hall region on the line direction of magnetic three-dimensional figure are in magnetism three The starting row and end line on the line direction of figure are tieed up, according to the starting row and end line in above three region, in magnetic three-dimensional figure Middle obtain meets first area and the second area of preset condition, counts and is located in first area in each channel and magnetism amplitude Greater than the quantity of the pixel of preset threshold, and using the pixel quantity as the first pixel quantity of corresponding channel, statistics It is located in second area in each channel and magnetic amplitude is greater than the quantity of the pixel of preset threshold, and by the pixel quantity As the second pixel quantity of corresponding channel, by first pixel quantity in each channel and second pixel number Amount is added, third pixel quantity of the value after being added as corresponding channel, the third pixel quantity from all channels In select maximum value, determine that the corresponding channel of the maximum value is channel where the safety line.The embodiment of the present invention is preliminary It positions in bank note on the basis of safety line region, according to first pixel quantity and the second pixel in channel each in all channels The sum of point quantity does further positioning to the safety line region oriented, and improves positioning of the safety line in magnetic three-dimensional figure Accuracy rate improves the discrimination of bank note in order to the detection of safety line magnetic feature.
Embodiment three:
Fig. 5 shows the composition schematic diagram of the safety line positioning device of the offer of the embodiment of the present invention three, for ease of description, Only parts related to embodiments of the present invention are shown, and details are as follows:
The safety line positioning device may include: the first acquisition module 51, obtain module 52, the first locating module 53, Second obtains module 54, statistical module 55 and the second locating module 56.
Described first obtains module 51, for obtaining the magnetic amplitude of each pixel in bank note;
The acquisition module 52, for the magnetic amplitude and each pixel according to each pixel in institute The position in bank note is stated, obtains the magnetic three-dimensional figure of the bank note, and by the magnetic on the column direction of the magnetic three-dimensional figure Property three-dimensional figure be divided into N number of channel, wherein N is integer greater than zero;
First locating module 53, in the magnetic three-dimensional figure position crown word number region, the great hall region with And safety line region, to obtain the location data in the crown word number region, the location data in the great hall region and described The location data in safety line region;
Described second obtain module 54, for according to the location data in the crown word number region, the great hall region Location data and the location data in the safety line region obtain in the magnetic three-dimensional figure and meet the first of preset condition Region and second area;
The statistical module 55, for count be located in the first area in each channel and magnetic amplitude be greater than it is default The quantity of the pixel of threshold value, and using the pixel quantity as the first pixel quantity of corresponding channel;It is each logical with statistics It is located in the second area in road and magnetic amplitude is greater than the quantity of the pixel of the preset threshold, and by pixel quantity The second pixel quantity as corresponding channel;
Second locating module 56, for first pixel quantity and second pixel according to all channels Point quantity, positions position of the safety line in the magnetic three-dimensional figure.
Further, the location data in the crown word number region, the location data and the peace in the great hall region The location data in all fronts region includes:
Starting row and end line of the crown word number region on the line direction of the magnetic three-dimensional figure, the great hall area Starting row and end line and the safety line region of the domain on the line direction of the magnetic three-dimensional figure are in the magnetic three-dimensional Starting row and end line on the line direction of figure.
Further, the second acquisition module 54 includes:
First comparing unit 541, for the starting row in the crown word number region and the beginning in the great hall region Row using smaller value as the first starting row, and determines between first starting row and the starting row in the safety line region Region is the first area;
Second comparing unit 542, for the end line in the crown word number region and the end in the great hall region Row using the larger value as the first end line, and determines between first end line and the end line in the safety line region Region is the second area.
Further, second locating module 56 includes:
Addition unit 561, for by first pixel quantity in each channel and the second pixel quantity phase Add, third pixel quantity of the value after being added as corresponding channel;
Selection unit 562 determines the maximum for choosing maximum value from the third pixel quantity in all channels Being worth corresponding channel is channel where the safety line.
Safety line positioning device provided in an embodiment of the present invention can be used in aforementioned corresponding embodiment of the method one and reality It applies in example two, details are referring to the description of above-described embodiment one and embodiment two, and details are not described herein.
The technical staff in the field can be understood that, for convenience and simplicity of description, only with above-mentioned each function The division progress of module can according to need and for example, in practical application by above-mentioned function distribution by different function moulds Block is completed, i.e. the internal structure of described device is divided into different functional modules, and above-mentioned functional module both can be using hardware Form is realized, can also be realized in the form of software.In addition, the specific name of each functional module is also only to facilitate mutually Difference, the protection scope being not intended to limit this application.
In conclusion magnetic three-dimensional figure of the embodiment of the present invention by acquisition bank note, positions hat in the magnetic three-dimensional figure Font size region, the great hall region and safety line region, to obtain positioning crown word number region on the line direction of magnetic three-dimensional figure Starting row and end line and safety line area on the line direction of magnetic three-dimensional figure of starting row and end line, the great hall region Starting row and end line of the domain on the line direction of magnetic three-dimensional figure, according to the starting row and end line in above three region, First area and the second area for meeting preset condition are obtained in magnetic three-dimensional figure, are counted in each channel and are located in first area And magnetic amplitude is greater than the quantity of the pixel of preset threshold, and using the pixel quantity as the first pixel of corresponding channel Quantity counts the quantity for being located at the pixel that the interior and magnetic amplitude of second area is greater than preset threshold in each channel, and should Second pixel quantity of the pixel quantity as corresponding channel, by first pixel quantity in each channel and described the Two pixel quantities are added, third pixel quantity of the value after being added as corresponding channel, the third from all channels Maximum value is chosen in pixel quantity, determines that the corresponding channel of the maximum value is channel where the safety line.The present invention is implemented Example in Primary Location bank note on the basis of safety line region, according to first pixel quantity in channel each in all channels and The sum of second pixel quantity does further positioning to the safety line region oriented, and improves safety line in magnetic three-dimensional figure In locating accuracy improve the discrimination of bank note in order to the detection of safety line magnetic feature.
Those of ordinary skill in the art be further appreciated that implement the method for the above embodiments be can It is completed with instructing relevant hardware by program, the program can be stored in a computer-readable storage medium In, described storage medium, including ROM/RAM, disk, CD etc..
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.

Claims (4)

1. a kind of safety line localization method, which is characterized in that the described method includes:
Obtain the magnetic amplitude of each pixel in bank note;
According to the position of the magnetic amplitude of each pixel and each pixel in the bank note, described in acquisition The magnetic three-dimensional figure of bank note, and the magnetic three-dimensional figure is divided into N number of channel on the column direction of the magnetic three-dimensional figure, In, N is the integer greater than zero;
Crown word number region, the great hall region and safety line region are positioned, in the magnetic three-dimensional figure to obtain the prefix The location data of number location data in region, the location data in the great hall region and the safety line region;
According to the location data in the crown word number region, the location data in the great hall region and the safety line region Location data obtains first area and the second area for meeting preset condition in the magnetic three-dimensional figure;
It counts and is located in the first area in each channel and magnetic amplitude is greater than the quantity of the pixel of preset threshold, and general First pixel quantity of the pixel quantity as corresponding channel;With count be located in the second area in each channel and Magnetic amplitude is greater than the quantity of the pixel of the preset threshold, and using the pixel quantity as the second pixel of corresponding channel Point quantity;
According to first pixel quantity and second pixel quantity in all channels, the safety line is positioned described Position in magnetic three-dimensional figure;
The positioning of the location data in the crown word number region, the location data in the great hall region and the safety line region Data include:
Starting row and end line of the crown word number region on the line direction of the magnetic three-dimensional figure, the great hall region exist Starting row and end line and the safety line region on the line direction of the magnetic three-dimensional figure is in the magnetic three-dimensional figure Starting row and end line on line direction;
It is described according to the location data in the crown word number region, the location data in the great hall region and the safety line area The location data in domain obtains the first area for meeting preset condition in the magnetic three-dimensional figure and second area includes:
Compare the starting row in the crown word number region and the starting row in the great hall region, starts smaller value as first Row, and determine that the region between first starting row and the starting row in the safety line region is the first area;
Compare the end line in the crown word number region and the end line in the great hall region, terminates the larger value as first Row, and determine that the region between first end line and the end line in the safety line region is the second area.
2. the method according to claim 1, wherein first pixel quantity according to all channels With second pixel quantity, positioning the safety line includes:
First pixel quantity in each channel is added with second pixel quantity, value after being added is as correspondence The third pixel quantity in channel;
Maximum value is selected from the third pixel quantity in all channels, determines that the corresponding channel of the maximum value is described Channel where safety line.
3. a kind of safety line positioning device, which is characterized in that described device includes:
First obtains module, for obtaining the magnetic amplitude of each pixel in bank note;
Module is obtained, for the magnetic amplitude and each pixel according to each pixel in the bank note Position obtains the magnetic three-dimensional figure of the bank note, and by the magnetic three-dimensional figure point on the column direction of the magnetic three-dimensional figure For N number of channel, wherein N is the integer greater than zero;
First locating module, for positioning crown word number region, the great hall region and safety line area in the magnetic three-dimensional figure Domain, to obtain the location data, the location data in the great hall region and the safety line region in the crown word number region Location data;
Second obtains module, for according to the location data in the crown word number region, the location data in the great hall region with And the location data in the safety line region, the first area and second for meeting preset condition is obtained in the magnetic three-dimensional figure Region;
Statistical module is located in the first area and magnetic amplitude is greater than the pixel of preset threshold for counting in each channel The quantity of point, and using the pixel quantity as the first pixel quantity of corresponding channel;It is located at institute in each channel with counting It states in second area and magnetic amplitude is greater than the quantity of the pixel of the preset threshold, and using pixel quantity as corresponding logical Second pixel quantity in road;
Second locating module, it is fixed for first pixel quantity and second pixel quantity according to all channels Position of the position safety line in the magnetic three-dimensional figure;
The positioning of the location data in the crown word number region, the location data in the great hall region and the safety line region Data include:
Starting row and end line of the crown word number region on the line direction of the magnetic three-dimensional figure, the great hall region exist Starting row and end line and the safety line region on the line direction of the magnetic three-dimensional figure is in the magnetic three-dimensional figure Starting row and end line on line direction;
Described second, which obtains module, includes:
First comparing unit will be compared with for the starting row in the crown word number region and the starting row in the great hall region Small value is used as the first starting row, and determines that the region between first starting row and the starting row in the safety line region is institute State first area;
Second comparing unit will be compared with for the end line in the crown word number region and the end line in the great hall region Big value is used as the first end line, and determines that the region between first end line and the end line in the safety line region is institute State second area.
4. device according to claim 3, which is characterized in that second locating module includes:
Addition unit is added for first pixel quantity in each channel to be added with second pixel quantity Third pixel quantity of the value afterwards as corresponding channel;
Selection unit determines the maximum value pair for selecting maximum value from the third pixel quantity in all channels The channel answered is channel where the safety line.
CN201610645272.6A 2016-08-09 2016-08-09 A kind of safety line localization method and device Active CN106327663B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610645272.6A CN106327663B (en) 2016-08-09 2016-08-09 A kind of safety line localization method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610645272.6A CN106327663B (en) 2016-08-09 2016-08-09 A kind of safety line localization method and device

Publications (2)

Publication Number Publication Date
CN106327663A CN106327663A (en) 2017-01-11
CN106327663B true CN106327663B (en) 2019-03-12

Family

ID=57739638

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610645272.6A Active CN106327663B (en) 2016-08-09 2016-08-09 A kind of safety line localization method and device

Country Status (1)

Country Link
CN (1) CN106327663B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107464333A (en) * 2017-07-12 2017-12-12 深圳怡化电脑股份有限公司 Paper Currency Identification, device and terminal device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104346858A (en) * 2014-10-10 2015-02-11 新达通科技股份有限公司 Paper currency face value identification method and device based on magnetic image
CN103440701B (en) * 2013-09-11 2015-09-23 广州广电运通金融电子股份有限公司 A kind of magnetic signal detection method of banknote and device
CN105184954A (en) * 2015-08-14 2015-12-23 深圳怡化电脑股份有限公司 Banknote detecting method and banknote detecting device
CN105184953A (en) * 2015-08-03 2015-12-23 深圳怡化电脑股份有限公司 Banknote processing method and apparatus

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050169511A1 (en) * 2004-01-30 2005-08-04 Cummins-Allison Corp. Document processing system using primary and secondary pictorial image comparison
US9230382B2 (en) * 2013-08-26 2016-01-05 Vertifi Software, LLC Document image capturing and processing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103440701B (en) * 2013-09-11 2015-09-23 广州广电运通金融电子股份有限公司 A kind of magnetic signal detection method of banknote and device
CN104346858A (en) * 2014-10-10 2015-02-11 新达通科技股份有限公司 Paper currency face value identification method and device based on magnetic image
CN105184953A (en) * 2015-08-03 2015-12-23 深圳怡化电脑股份有限公司 Banknote processing method and apparatus
CN105184954A (en) * 2015-08-14 2015-12-23 深圳怡化电脑股份有限公司 Banknote detecting method and banknote detecting device

Also Published As

Publication number Publication date
CN106327663A (en) 2017-01-11

Similar Documents

Publication Publication Date Title
CN105303676B (en) A kind of version recognition methods of bank note and system
CN103473537B (en) A kind of target image contour feature method for expressing and device
US20120194444A1 (en) Method of Tracing Touch Paths for a Multi-Touch Panel
CN106327663B (en) A kind of safety line localization method and device
CN103295227B (en) A kind of circle detection method based on gradient direction segmentation
CN107331031B (en) A kind of recognition methods of note denomination, device, equipment and storage medium
CN106530310A (en) Pedestrian counting method and device based on human head top recognition
CN105427446A (en) Authentic identification method for paper money based on magnetic signal
CN106447898A (en) Safe line positioning method and device
CN104636764A (en) Image steganography analysis method and device
CN106558143A (en) A kind of recognition methodss of 100 yuans of splicings bank note and device
CN107339938A (en) A kind of special-shaped calibrating block and scaling method for single eye stereo vision self-calibration
CN106911927A (en) Assess method, device and the DPI equipment of Internet video user experience quality
CN112883768B (en) Object counting method and device, equipment and storage medium
KR20120010404A (en) Multi-view display system and method using color consistent selective sub-pixel rendering
CN110060266B (en) Lane line extraction method and apparatus, server, and computer-readable medium
CN106023280B (en) A kind of method for drafting of data trend curve graph
CN103218837A (en) Unequal class interval histogram rendering method based on empirical distribution function
CN103971443B (en) The method and apparatus that Security element is detected
CN106202110A (en) The method and apparatus of data quality checking
CN106127755A (en) The image matching method of feature based and device
CN107038792A (en) Bank note towards recognition methods and system
CN106204616A (en) The recognition methods of a kind of Iran note denomination and device
CN105138979A (en) Method for detecting the head of moving human body based on stereo visual sense
CN103020651B (en) Method for detecting sensitive information of microblog pictures

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant