CN113269917A - Magnetic medium identification method and device, electronic equipment and readable medium - Google Patents

Magnetic medium identification method and device, electronic equipment and readable medium Download PDF

Info

Publication number
CN113269917A
CN113269917A CN202110304503.8A CN202110304503A CN113269917A CN 113269917 A CN113269917 A CN 113269917A CN 202110304503 A CN202110304503 A CN 202110304503A CN 113269917 A CN113269917 A CN 113269917A
Authority
CN
China
Prior art keywords
magnetic
image
target
template
medium
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110304503.8A
Other languages
Chinese (zh)
Other versions
CN113269917B (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 Technology Co ltd
Shenzhen Yihua Computer Co Ltd
Shenzhen Yihua Time Technology Co Ltd
Original Assignee
Shenzhen Yihua Computer Technology Co ltd
Shenzhen Yihua Computer Co Ltd
Shenzhen Yihua Time Technology Co Ltd
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 Technology Co ltd, Shenzhen Yihua Computer Co Ltd, Shenzhen Yihua Time Technology Co Ltd filed Critical Shenzhen Yihua Computer Technology Co ltd
Priority to CN202110304503.8A priority Critical patent/CN113269917B/en
Publication of CN113269917A publication Critical patent/CN113269917A/en
Application granted granted Critical
Publication of CN113269917B publication Critical patent/CN113269917B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • 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/20Testing patterns thereon
    • G07D7/202Testing patterns thereon using pattern matching
    • G07D7/206Matching template patterns

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Inspection Of Paper Currency And Valuable Securities (AREA)

Abstract

The embodiment of the invention provides a method and a device for identifying a magnetic medium, electronic equipment and a readable medium, which are applied to the technical field of image processing, wherein the method comprises the following steps: presetting a magnetic image template; detecting magnetic distribution information of the magnetic medium, and generating a target magnetic image for the magnetic medium according to the magnetic distribution information; and generating a recognition result aiming at the magnetic medium according to the target magnetic image and the magnetic image template. The embodiment of the invention improves the accuracy of the identification result and also reduces the complexity of magnetic image detection.

Description

Magnetic medium identification method and device, electronic equipment and readable medium
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a method and an apparatus for identifying a magnetic medium, an electronic device, and a readable medium.
Background
Magnetic counterfeit detection is generally an important means for identifying counterfeit paper money, and under the data environment acquired by using a magnetic sensor, the counterfeit paper money can be identified according to the difference between the magnetic point of the detected paper money acquired by the magnetic sensor and the genuine paper money data.
The magnetic distribution of different versions of paper money is different, and can be mainly divided into magnetic safety lines and magnetic images. For magnetic images, due to the accuracy problem of the sensor, the collected magnetic points are all in block distribution, so that clear images cannot be obtained. For some banknotes without magnetic security threads, magnetic images are an important means for authenticating the banknote.
However, under the existing technology and algorithm, only the detection of magnetism can be done for some paper money, for example, a certain area on the paper money is judged to be magnetic when the number of magnetic points reaches a certain number. The counterfeit paper money discrimination accuracy is low, and the counterfeit discrimination result is unreliable.
Meanwhile, for the paper money with magnetism on the whole width, it is meaningless to detect the existence of magnetism only, so that the accuracy of magnetic false identification is low.
Disclosure of Invention
In view of the above problems, it is proposed to provide a method of identification of a magnetic medium and an apparatus for identification of a magnetic medium that overcome or at least partially solve the above problems, comprising:
in order to solve the above problem, an embodiment of the present invention discloses a method for identifying a magnetic medium, including:
presetting a magnetic image template;
detecting magnetic distribution information of the magnetic medium, and generating a target magnetic image for the magnetic medium according to the magnetic distribution information;
and generating a recognition result aiming at the magnetic medium according to the target magnetic image and the magnetic image template.
Optionally, the generating a recognition result for the magnetic medium according to the target magnetic image and the magnetic image template includes:
determining pixel matching information between the target magnetic image and the magnetic image template;
and generating an identification result aiming at the magnetic medium according to the pixel matching information.
Optionally, the determining pixel matching information between the target magnetic image and the magnetic image template includes:
selecting a first area image from the target magnetic image;
determining a second region image corresponding to the first region image from the magnetic image template;
determining pixel matching information between the first region image and the second region image.
Optionally, before the determining pixel matching information between the first region image and the second region image, further includes:
acquiring a preset image attribute value range;
and adjusting the image attribute of the target magnetic image according to the image attribute value range.
Optionally, before the determining pixel matching information between the first region image and the second region image, further includes:
and carrying out filtering processing on the target magnetic image.
Optionally, before the selecting the first region image from the target magnetic image, the method further includes:
and rotating the target magnetic image to a preset position.
Optionally, the magnetic medium is a medium with magnetic properties throughout its width.
The embodiment of the invention also discloses a device for identifying the magnetic medium, which comprises
The template presetting module is used for presetting a magnetic image template;
the target magnetic image generation module is used for detecting the magnetic distribution information of the magnetic medium and generating a target magnetic image aiming at the magnetic medium according to the magnetic distribution information;
and the identification result generation module is used for generating an identification result aiming at the magnetic medium according to the target magnetic image and the magnetic image template.
Optionally, the recognition result generating module includes:
a pixel matching information determination submodule for determining pixel matching information between the target magnetic image and the magnetic image template;
and the identification result generation submodule is used for generating an identification result aiming at the magnetic medium according to the pixel matching information.
Optionally, the pixel matching information determining sub-module includes:
a first region image selecting unit for selecting a first region image from the target magnetic image;
a second region image determining unit configured to determine a second region image corresponding to the first region image from the magnetic image template;
a pixel matching information determination unit for determining pixel matching information between the first area image and the second area image.
Optionally, the pixel matching information determining sub-module further includes:
an image attribute value range acquiring unit for acquiring a preset image attribute value range;
and the image attribute adjusting unit is used for adjusting the image attribute of the target magnetic image according to the image attribute value range.
Optionally, the pixel matching information determining sub-module further includes:
and the filtering processing unit is used for carrying out filtering processing on the target magnetic image.
Optionally, the pixel matching information determining sub-module further includes:
and the target magnetic image rotating unit is used for rotating the target magnetic image to a preset position.
Optionally, the magnetic medium is a medium with magnetic properties throughout its width.
The embodiment of the invention also discloses electronic equipment, which comprises a processor, a memory and a computer program which is stored on the memory and can run on the processor, wherein when the computer program is executed by the processor, the identification method of the magnetic medium is realized.
The embodiment of the invention also discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the identification method of the magnetic medium is realized.
The embodiment of the invention has the following advantages:
according to the identification method of the magnetic medium, when the magnetic medium is identified, the magnetic image template can be preset, the magnetic distribution information of the magnetic medium is detected, and the target magnetic image aiming at the magnetic medium is generated according to the magnetic distribution information, so that the identification result aiming at the magnetic medium can be generated according to the target magnetic image and the magnetic image template, the accuracy of the identification result is improved, and the complexity of magnetic image detection is reduced.
According to the identification device of the magnetic medium, when the magnetic medium is identified, the template presetting module is used for presetting the magnetic image template, the target magnetic image generating module is used for detecting the magnetic distribution information of the magnetic medium, the target magnetic image aiming at the magnetic medium is generated according to the magnetic distribution information, and the identification result generating module is used for generating the identification result aiming at the magnetic medium according to the target magnetic image and the magnetic image template, so that the accuracy of the identification result is improved, and the complexity of magnetic image detection is reduced.
According to an embodiment of the invention, an electronic device is employed, which comprises a computer program stored on the memory and executable on the processor, which when executed by the processor of the electronic device, causes the electronic device to execute the following instructions: when the magnetic medium is identified, a magnetic image template can be preset, the magnetic distribution information of the magnetic medium is detected, and a target magnetic image aiming at the magnetic medium is generated according to the magnetic distribution information, so that the identification result aiming at the magnetic medium can be generated according to the target magnetic image and the magnetic image template, the accuracy of the identification result is improved, and the complexity of magnetic image detection is reduced.
A computer-readable medium according to an embodiment of the present invention, with a computer program stored on the computer-readable storage medium, when executed by a processor in the computer-readable medium, may perform the following instructions: when the magnetic medium is identified, a magnetic image template can be preset, the magnetic distribution information of the magnetic medium is detected, and a target magnetic image aiming at the magnetic medium is generated according to the magnetic distribution information, so that the identification result aiming at the magnetic medium can be generated according to the target magnetic image and the magnetic image template, the accuracy of the identification result is improved, and the complexity of magnetic image detection is reduced.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the description of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1a is a flow chart illustrating steps of a method for identifying a magnetic medium according to an embodiment of the present invention;
FIG. 1b is a schematic diagram of a magnetic image of a magnetic medium according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating steps in another method for identifying magnetic media according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an identification apparatus for magnetic media according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The core concept of the embodiment of the invention is that in order to improve the accuracy of magnetic counterfeit identification, a target magnetic image can be generated after the magnetic distribution of a secondary magnetic medium is detected, and the identification result of the magnetic medium is generated by comparing the target magnetic image with a preset magnetic image template, so that the accuracy of the identification result is improved, and the complexity of magnetic image detection is reduced.
Referring to fig. 1a, a flowchart illustrating steps of a method for identifying a magnetic medium according to an embodiment of the present invention is shown, which may specifically include the following steps:
step 101, presetting a magnetic image template;
in practical application, the magnetic media are magnetic, while the magnetic distributions of different types of magnetic media are different, and when a certain magnetic medium needs to be subjected to counterfeit detection, magnetic image templates can be preset for different types of magnetic media.
In one example, the magnetic medium may be a banknote, ticket, or the like, particularly a banknote or ticket that is magnetic across its full width.
For example, in order to verify the authenticity of the banknote, magnetic detection may be performed on standard banknotes of different countries, different denominations, and different versions, respectively, to obtain a magnetic image thereof, and the magnetic image may be used as a magnetic image template for matching with the banknote to be detected, and determining whether the banknote to be detected is a genuine banknote.
102, detecting magnetic distribution information of the magnetic medium, and generating a target magnetic image aiming at the magnetic medium according to the magnetic distribution information;
after the template is preset, the magnetic distribution information of the magnetic medium to be detected can be detected, wherein the magnetic distribution information can include the distribution condition of magnetic points and the magnetic strength of each magnetic point, so that a target magnetic image of the magnetic medium to be detected can be generated according to the magnetic distribution condition.
In an example, the target magnetic image may be a gray scale map, as shown in fig. 1b, a gray scale distribution may be used to represent the distribution of the magnetic dots, and different gray scale values corresponding to different magnetic dots may be used to represent the magnetic strength of the magnetic dots.
In practical application, when the magnetic medium is identified, the magnetic detection is performed on the magnetic medium to be detected to obtain the distribution numerical value of the magnetic points of the magnetic medium to be detected and the magnetic strength numerical value of each magnetic point, and then the numerical values are compared with the numerical value of the standard magnetic medium to determine whether the magnetic medium to be detected is true or not.
In the invention, after the magnetic distribution is obtained, the magnetic image is generated through the magnetic distribution, the magnetic image can represent the characteristics of the magnetic medium on the whole, compared with the prior art that only numerical values are compared, the accuracy of magnetic counterfeit discrimination can be improved, and the counterfeit discrimination mode through the magnetic image is simpler and quicker because numerical values do not need to be compared one by one.
For example, when a magnetic medium is detected, magnetic powder is adhered to detection equipment, the detected magnetic distribution value is inaccurate, so that when the value of each magnetic point is compared, the magnetic medium is determined to be forged, and misjudgment is possibly caused.
Step 103, generating an identification result for the magnetic medium according to the target magnetic image and the magnetic image template.
After the target magnetic image is obtained, the target magnetic image may be compared to the magnetic image template, so that a recognition result for the magnetic medium may be generated.
In the embodiment of the invention, when the magnetic medium is identified, a magnetic image template can be preset, the magnetic distribution information of the magnetic medium is detected, and the target magnetic image aiming at the magnetic medium is generated according to the magnetic distribution information, so that the identification result aiming at the magnetic medium can be generated according to the target magnetic image and the magnetic image template, the accuracy of the identification result is improved, and the complexity of magnetic image detection is reduced.
Referring to fig. 2, a flowchart illustrating steps of another method for identifying a magnetic medium according to an embodiment of the present invention is shown, which may specifically include the following steps:
step 201, presetting a magnetic image template;
step 202, detecting magnetic distribution information of the magnetic medium, and generating a target magnetic image for the magnetic medium according to the magnetic distribution information;
step 203, determining pixel matching information between the target magnetic image and the magnetic image template;
after the target magnetic image is generated, each pixel point in the target magnetic image can be determined, so that the pixel points of the target magnetic image can be matched with the pixel points of the magnetic image template, and a pixel point matching result is obtained.
In an embodiment of the present invention, the determining pixel matching information between the target magnetic image and the magnetic image template includes:
s01, selecting a first area image from the target magnetic image;
in practical applications, the magnetic distributions of different magnetic media are different, and the existence of the characteristic region of the magnetic medium in the magnetic image can be used to quickly determine whether the magnetic medium is a real magnetic medium. Therefore, after the target magnetic medium is obtained, the first area image can be selected from the target magnetic image, so that the matching amount of the target magnetic image is reduced, and the detection process is further simplified.
S02, determining a second region image corresponding to the first region image from the magnetic image template;
meanwhile, from the magnetic image template, a second region image corresponding to the first region image can be determined.
For example, if the first region image is the central region of the target magnetic image, the region with the same size at the central region in the magnetic image template may be used as the second region image corresponding to the first region image.
Or, if the first region image is a lower right corner region of the target magnetic image, any one or more of the upper left corner, lower left corner, upper right corner and lower right corner regions in the magnetic image template may be used as the second region image corresponding to the first region image;
in addition, the area of the first region image may be smaller than the area of the second region image.
S03, determining pixel matching information between the first area image and the second area image.
After determining the first area image and the second area image, matching information between the first area image and the second area image may be determined.
In one example, after the target magnetic image is formed, the intensity of magnetism can be reflected on different gray scales, and the gray scales are respectively mapped on gray scales of 0 to 255, so that the target magnetic image has stereoscopic impression.
For the target magnetic image, SAD algorithm (Sum of Absolute Differences algorithm) can be used for matching.
The main process of the SAD algorithm includes:
1. in practical application, corresponding selection can be made according to actual time consumption of the SAD algorithm, the small window area selected when the convolution kernel of 3x3 is adopted is smaller than that when the convolution kernel of 5x5 is adopted, the time consumption of the SAD algorithm is longer, the matching process is finer, the area of the convolution kernel of 5x5 is larger, and the time consumption of the SAD algorithm is shorter.
2. Covering a target magnetic image to be detected by using a small window, acquiring all pixel points in the area covered by the window, and determining the gray scale value of each pixel point, wherein when the image is divided into a plurality of small checks, each small check can be represented as one pixel point of the image.
3. And covering the magnetic template image by using windows with the same size, acquiring pixel points of the covered area, and determining the gray scale value of each pixel point.
4. And subtracting the gray scale value of the pixel point corresponding to the coverage area of the magnetic image template from the gray scale value of the pixel point in the coverage area of the target magnetic image to obtain the gray scale difference value of all the pixel points, and further solving the sum of the absolute values of the gray scale difference values of all the pixel points.
5. And moving the small window of the magnetic image template, and repeating the actions 3 and 4, wherein the traversal region can be a full-width magnetic image, and a specific region can be selected for traversal according to different distributions of the magnetic images.
6. After traversing is completed, the sum of the multiple absolute values can be sequenced, a minimum value is obtained according to the sequencing, the small window of the magnetic image template corresponding to the minimum value is the best matching pixel block of the target magnetic image to be detected, and the minimum value can be used as the matching value of the best matching pixel block.
When the matching value of the best matching pixel block is determined to be within a preset matching value range, the target magnetic image can be determined to be matched with the magnetic image template, wherein the preset matching value range can be set with different standards according to different magnetic media, and when the magnetic counterfeit identification requirement of the magnetic media is strict, the preset matching value range can be set to be smaller.
The gray level images of the magnetic images can be directly matched through the algorithm, and compared with the numerical value of the magnetic point directly compared in the prior art, the identification accuracy of the magnetic image matching is high for the special stereo images such as the magnetic images.
In an embodiment of the present invention, before the determining the pixel matching information between the first area image and the second area image, the method further includes:
acquiring a preset image attribute value range; and adjusting the image attribute of the target magnetic image according to the image attribute value range.
In one example, the image attribute value range is a gray scale value range of the magnetic image pixel points.
Before determining the pixel matching information of the first region image and the second region image, a preset image attribute value range may be acquired, and image attribute adjustment may be performed on the target magnetic image according to the image attribute value range. The image attribute value range may be a gray scale value range of the magnetic image pixel.
By adjusting the range of the image attribute value, unnecessary features can be removed, so that the image features are more prominent, and the subsequent matching with a magnetic image template is facilitated.
For example: after obtaining the target magnetic image and before performing pixel matching, preprocessing may be performed on the target magnetic image, where the preprocessing may include upper limit suppression and lower limit suppression.
The upper limit suppression may suppress an extremely high value of the target magnetic image to an average value, wherein the extremely high value upper limit is suppressed by M or more. The lower limit suppression may suppress the extremely low value of the target magnetic image to an average value, and the extremely low value lower limit is suppressed to N or less. Where M is greater than N and M, N are both adjustable thresholds, which may be adjusted accordingly based on image quality.
By preprocessing the target magnetic image, unnecessary features in the image can be suppressed, and subsequent matching of the target magnetic image and the magnetic image template is facilitated.
In an embodiment of the present invention, before the determining the pixel matching information between the first area image and the second area image, the method further includes:
and carrying out filtering processing on the target magnetic image.
In practical application, before determining pixel matching information of the first area image and the second area image, filtering processing may be performed on the selected first area image, so as to improve the subsequent matching effect.
In the filtering process, different filtering modes can be selected according to different characteristics of the first region image, so that the first region image can be subjected to smoothing processing, noise generated by interference magnetic points can be removed, and the matching degree of the first region image and the second region image is improved.
In an example, the filtering processing mode may include mean filtering, median filtering, gaussian filtering, and when detecting the magnetic media, an appropriate filtering mode may be selected according to the requirements of different magnetic media.
In an embodiment of the present invention, before the extracting the first region image from the target magnetic image, the method further includes:
and rotating the target magnetic image to a preset position.
In practical application, when the target magnetic image is collected through the magnetic detection equipment, the target magnetic image can be inconsistent with a preset position, so that the target magnetic image can be rotated to the preset position by rotating the target magnetic image, and the first region image can be selected conveniently, wherein the preset position can be determined through the position of the magnetic image template.
And step 204, generating an identification result aiming at the magnetic medium according to the pixel matching information.
After the pixel matching information is determined, an identification mode for the magnetic medium can be generated according to the pixel matching information, and specifically, when the pixel matching information indicates that the target magnetic image is matched with the magnetic image template, the identification result of the magnetic medium can be determined to be that the authentication result of the magnetic medium is true; when the pixel matching information indicates that the target magnetic image does not match the magnetic image template, it may be determined that the identification result of the magnetic medium is false.
In the embodiment of the invention, when a magnetic medium is identified, a magnetic image template can be preset, magnetic distribution information of the magnetic medium is detected, pixel matching information between the target magnetic image and the magnetic image template is determined, and an identification result aiming at the magnetic medium is generated according to the pixel matching information, so that the identification result aiming at the magnetic medium can be generated according to the target magnetic image and the magnetic image template, the accuracy of the identification result is improved, and the complexity of magnetic image detection is reduced.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 3, a schematic structural diagram of an identification apparatus for magnetic media according to an embodiment of the present invention is shown, which may specifically include the following modules:
the template presetting module 301 is used for presetting a magnetic image template;
a target magnetic image generation module 302, configured to detect magnetic distribution information of the magnetic medium, and generate a target magnetic image for the magnetic medium according to the magnetic distribution information;
a recognition result generating module 303, configured to generate a recognition result for the magnetic medium according to the target magnetic image and the magnetic image template.
In an embodiment of the present invention, the recognition result generating module includes:
a pixel matching information determination submodule for determining pixel matching information between the target magnetic image and the magnetic image template;
and the identification result generation submodule is used for generating an identification result aiming at the magnetic medium according to the pixel matching information.
In an embodiment of the present invention, the pixel matching information determining sub-module includes:
a first region image selecting unit for selecting a first region image from the target magnetic image;
a second region image determining unit configured to determine a second region image corresponding to the first region image from the magnetic image template;
a pixel matching information determination unit for determining pixel matching information between the first area image and the second area image.
In an embodiment of the present invention, the pixel matching information determining sub-module further includes:
an image attribute value range acquiring unit for acquiring a preset image attribute value range;
and the image attribute adjusting unit is used for adjusting the image attribute of the target magnetic image according to the image attribute value range.
In an embodiment of the present invention, the pixel matching information determining sub-module further includes:
and the filtering processing unit is used for carrying out filtering processing on the target magnetic image.
In an embodiment of the present invention, the pixel matching information determining sub-module further includes:
and the target magnetic image rotating unit is used for rotating the target magnetic image to a preset position.
In an embodiment of the present invention, the magnetic medium is a medium with magnetism in the whole width.
In the embodiment of the invention, when the magnetic medium is identified, the template presetting module is used for presetting the magnetic image template, the target magnetic image generating module is used for detecting the magnetic distribution information of the magnetic medium and generating the target magnetic image aiming at the magnetic medium according to the magnetic distribution information, so that the identification result generating module is used for generating the identification result aiming at the magnetic medium according to the target magnetic image and the magnetic image template, thereby improving the accuracy of the identification result and reducing the complexity of magnetic image detection.
An embodiment of the present invention further provides an electronic device, which may include a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the method for identifying a magnetic medium as described above.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the above method for identifying a magnetic medium.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The method, the apparatus, the electronic device and the readable medium for identifying a magnetic medium are described in detail, and the principle and the implementation of the present invention are explained in detail by applying specific examples, and the description of the above examples is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method of identifying a magnetic medium, the method comprising:
presetting a magnetic image template;
detecting magnetic distribution information of the magnetic medium, and generating a target magnetic image for the magnetic medium according to the magnetic distribution information;
and generating a recognition result aiming at the magnetic medium according to the target magnetic image and the magnetic image template.
2. The method of claim 1, wherein generating the recognition result for the magnetic medium from the target magnetic image and the magnetic image template comprises:
determining pixel matching information between the target magnetic image and the magnetic image template;
and generating an identification result aiming at the magnetic medium according to the pixel matching information.
3. The method of claim 2, wherein determining pixel match information between the target magnetic image and the magnetic image template comprises:
selecting a first area image from the target magnetic image;
determining a second region image corresponding to the first region image from the magnetic image template;
determining pixel matching information between the first region image and the second region image.
4. The method of claim 3, further comprising, prior to said determining pixel matching information between said first region image and said second region image:
acquiring a preset image attribute value range;
and adjusting the image attribute of the target magnetic image according to the image attribute value range.
5. The method of claim 3, further comprising, prior to said determining pixel matching information between said first region image and said second region image:
and carrying out filtering processing on the target magnetic image.
6. The method of claim 3, further comprising, before said extracting the first region image from the target magnetic image:
and rotating the target magnetic image to a preset position.
7. The method of claim 1, wherein the magnetic media is a media with magnetic properties throughout its width.
8. An apparatus for identifying a magnetic medium, the apparatus comprising:
the template presetting module is used for presetting a magnetic image template;
the target magnetic image generation module is used for detecting the magnetic distribution information of the magnetic medium and generating a target magnetic image aiming at the magnetic medium according to the magnetic distribution information;
and the identification result generation module is used for generating an identification result aiming at the magnetic medium according to the target magnetic image and the magnetic image template.
9. An electronic device comprising a processor, a memory, and a computer program stored on the memory and capable of running on the processor, the computer program, when executed by the processor, implementing the method of identification of a magnetic medium according to any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out a method of identification of a magnetic medium according to any one of claims 1 to 7.
CN202110304503.8A 2021-03-22 2021-03-22 Magnetic medium identification method and device, electronic equipment and readable medium Active CN113269917B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110304503.8A CN113269917B (en) 2021-03-22 2021-03-22 Magnetic medium identification method and device, electronic equipment and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110304503.8A CN113269917B (en) 2021-03-22 2021-03-22 Magnetic medium identification method and device, electronic equipment and readable medium

Publications (2)

Publication Number Publication Date
CN113269917A true CN113269917A (en) 2021-08-17
CN113269917B CN113269917B (en) 2023-03-03

Family

ID=77228383

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110304503.8A Active CN113269917B (en) 2021-03-22 2021-03-22 Magnetic medium identification method and device, electronic equipment and readable medium

Country Status (1)

Country Link
CN (1) CN113269917B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101546451A (en) * 2008-03-28 2009-09-30 富士通先端科技株式会社 Sheet type distinguishing device and method
CN103038659A (en) * 2010-07-30 2013-04-10 三菱电机株式会社 Magnetic substance detection device
CN105261106A (en) * 2014-07-15 2016-01-20 山东新北洋信息技术股份有限公司 Magnetic data reading apparatus and magnetic data reading method
CN205788436U (en) * 2016-05-06 2016-12-07 广州市汇研微电子技术有限公司 Forge or true or paper money identification device based on magnetic distributed image
JP2017215724A (en) * 2016-05-31 2017-12-07 日立オムロンターミナルソリューションズ株式会社 Media identification device, automatic transaction machine
CN109559422A (en) * 2018-11-22 2019-04-02 威海华菱光电股份有限公司 Signal processing method, device, storage medium and the processor of magnetic image sensor
CN112509209A (en) * 2019-08-26 2021-03-16 深圳怡化电脑股份有限公司 Paper currency magnetic detection method and device, currency detection equipment and readable storage medium
CN112509211A (en) * 2019-08-26 2021-03-16 深圳怡化电脑股份有限公司 Banknote detection method and device, banknote detection equipment and readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101546451A (en) * 2008-03-28 2009-09-30 富士通先端科技株式会社 Sheet type distinguishing device and method
CN103038659A (en) * 2010-07-30 2013-04-10 三菱电机株式会社 Magnetic substance detection device
CN105261106A (en) * 2014-07-15 2016-01-20 山东新北洋信息技术股份有限公司 Magnetic data reading apparatus and magnetic data reading method
CN205788436U (en) * 2016-05-06 2016-12-07 广州市汇研微电子技术有限公司 Forge or true or paper money identification device based on magnetic distributed image
JP2017215724A (en) * 2016-05-31 2017-12-07 日立オムロンターミナルソリューションズ株式会社 Media identification device, automatic transaction machine
CN109559422A (en) * 2018-11-22 2019-04-02 威海华菱光电股份有限公司 Signal processing method, device, storage medium and the processor of magnetic image sensor
CN112509209A (en) * 2019-08-26 2021-03-16 深圳怡化电脑股份有限公司 Paper currency magnetic detection method and device, currency detection equipment and readable storage medium
CN112509211A (en) * 2019-08-26 2021-03-16 深圳怡化电脑股份有限公司 Banknote detection method and device, banknote detection equipment and readable storage medium

Also Published As

Publication number Publication date
CN113269917B (en) 2023-03-03

Similar Documents

Publication Publication Date Title
Kraetzer et al. Modeling attacks on photo-ID documents and applying media forensics for the detection of facial morphing
CN105046807B (en) A kind of counterfeit money recognition methods and system based on smart mobile phone
KR20180109171A (en) Liveness test method and apparatus for
EP0917113A2 (en) Seal detection system and method
CN106952393B (en) Paper money identification method and device, electronic equipment and storage medium
CN107103683B (en) Paper money identification method and device, electronic equipment and storage medium
WO2009130451A1 (en) Scale robust feature-based identifiers for image identification
CN112241929B (en) Watermark embedding method, watermark detecting method, watermark embedding device, watermark detecting device and electronic equipment
CN107610316B (en) Method and device for detecting defect of paper money and terminal equipment
RU2745098C2 (en) Method of determinig authorship of a painting
CN103886309A (en) Method for identifying dollar denominations through facial recognition
CN106599923B (en) Method and device for detecting seal anti-counterfeiting features
CN106934922A (en) A kind of paper currency detecting method and device
CN113205633B (en) Method and device for detecting red and blue fibers of bill, electronic equipment and storage medium
KR101781351B1 (en) Forgery passport inspection method and recording medium thereof
CN109767543B (en) Paper money detection method and system
CN113269917B (en) Magnetic medium identification method and device, electronic equipment and readable medium
US9499006B2 (en) Anti-counterfeiting feature generation method for valuable document and authentication method and device therefor
CN106447908B (en) Paper money counterfeit distinguishing method and device
Tralic et al. Copy-move forgery detection using cellular automata
CN113077355B (en) Insurance claim settlement method and device, electronic equipment and storage medium
CN110689659A (en) White watermark auxiliary authenticity identifying method and device based on template matching
CN108230538B (en) Paper money identification method, device, equipment and storage medium
CN108960222B (en) Image binarization method, device, equipment and storage medium
CN108320371B (en) Method and device for identifying counterfeit paper money

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