CN111429646B - Banknote counter, banknote counting method, device, system and medium - Google Patents

Banknote counter, banknote counting method, device, system and medium Download PDF

Info

Publication number
CN111429646B
CN111429646B CN202010379587.7A CN202010379587A CN111429646B CN 111429646 B CN111429646 B CN 111429646B CN 202010379587 A CN202010379587 A CN 202010379587A CN 111429646 B CN111429646 B CN 111429646B
Authority
CN
China
Prior art keywords
banknotes
banknote
information
image
side edge
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
CN202010379587.7A
Other languages
Chinese (zh)
Other versions
CN111429646A (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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202010379587.7A priority Critical patent/CN111429646B/en
Publication of CN111429646A publication Critical patent/CN111429646A/en
Application granted granted Critical
Publication of CN111429646B publication Critical patent/CN111429646B/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
    • G07D11/00Devices accepting coins; Devices accepting, dispensing, sorting or counting valuable papers
    • G07D11/50Sorting or counting valuable papers
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/02Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness
    • G01B11/06Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness for measuring thickness ; e.g. of sheet material
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06MCOUNTING MECHANISMS; COUNTING OF OBJECTS NOT OTHERWISE PROVIDED FOR
    • G06M7/00Counting of objects carried by a conveyor
    • G06M7/02Counting of objects carried by a conveyor wherein objects ahead of the sensing element are separated to produce a distinct gap between successive objects
    • G06M7/06Counting of flat articles, e.g. of sheets of paper
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30242Counting objects in image

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Geometry (AREA)
  • Quality & Reliability (AREA)
  • Length Measuring Devices By Optical Means (AREA)
  • Inspection Of Paper Currency And Valuable Securities (AREA)

Abstract

The present disclosure provides a banknote counting method. The method comprises the following steps: controlling a light projection device to project first light rays to lateral edges of a plurality of banknotes, wherein the light projection device is located at a first position; controlling an image acquisition device to acquire a side edge image obtained by reflecting the first light rays by the side edges of the plurality of banknotes, wherein the image acquisition device is positioned at a second position; acquiring information of the first position and information of the second position; and obtaining the number of first banknotes for representing the number of banknotes in the plurality of banknotes based on the information of the first position, the information of the second position and the side edge image by combining a laser triangulation principle. The disclosure also provides a banknote counting device, a banknote counting system and a banknote counting medium.

Description

Banknote counter, banknote counting method, device, system and medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a banknote counter, a banknote counting method, a banknote counting apparatus, a banknote counting system, and a banknote counting medium.
Background
The currency counting is a frequent occurrence in life, and even along with the continuous popularization and spread of transaction modes such as mobile terminal payment and card swiping transaction, cash transaction is still one of indispensable important transaction means in the modern times. Once a cash transaction or access scenario occurs, counting currency is an indispensable habit for everyone. However, the existing cash counter is usually applied to special mechanisms such as a bank counter or a cash register, and is generally large and not easy to carry. If the user needs to count the money, the user either needs to go to a special mechanism provided with a money counting machine or only needs to count the money manually. Therefore, in the prior art, the money counting is quite complicated and wastes time.
Disclosure of Invention
In view of the above, the disclosed embodiments provide a banknote counting method, device, system and medium using non-contact counting.
In one aspect of the disclosed embodiments, a banknote counting method is provided. The method comprises the following steps: controlling a light projection device to project first light rays to lateral edges of a plurality of banknotes, wherein the light projection device is located at a first position; controlling an image acquisition device to acquire a side edge image obtained by reflecting the first light rays by the side edges of the plurality of banknotes, wherein the image acquisition device is positioned at a second position; acquiring information of the first position and information of the second position; and obtaining the number of first banknotes for representing the number of banknotes in the plurality of banknotes based on the information of the first position, the information of the second position and the side edge image by combining a laser triangulation principle.
According to an embodiment of the present disclosure, the obtaining the first banknote number based on the information of the first position, the information of the second position, and the side edge image includes: obtaining a measured thickness of the banknote corresponding to each banknote image in the side edge images based on the information of the first position, the information of the second position and the side edge images according to the principle of laser triangulation; summing all of the measured thicknesses obtained based on the lateral edge images to obtain a total measured thickness; calculating the total number of the measured thicknesses obtained based on the lateral edge images to obtain the number of the measured thicknesses; calculating an average thickness of individual banknotes in the plurality of banknotes using the total measured thickness and the number of thickness measurements; and when the average thickness meets a preset condition, determining that the number of the first banknotes is equal to the number of the thickness measurements.
According to an embodiment of the present disclosure, the method further comprises: and when the average thickness does not meet the preset condition, taking the measured thickness number as an initial value of the first banknote number i, and circularly executing the following operations: updating the first banknote number i to i + 1; recalculating the average thickness using the total measured thickness and the updated first banknote number; determining whether the recalculated average thickness meets the preset condition, and if so, stopping circulation; if not, updating the first banknote number i again.
According to an embodiment of the present disclosure, the preset condition includes: PZ-lambda P 'Z' is less than or equal to 0, wherein: PZ is the measured thickness of the banknote corresponding to any one of the side edge images, P 'Z' is the average thickness, and λ is a weighting coefficient.
According to an embodiment of the present disclosure, λ -2/3.
According to an embodiment of the present disclosure, the method further comprises: obtaining a second banknote number for representing the banknote number in the plurality of banknotes by performing image processing on the side edge image; and determining a final number of banknotes of the plurality of banknotes based on a comparison of the first number of banknotes and the second number of banknotes.
According to an embodiment of the present disclosure, the determining a final number of banknotes of the plurality of banknotes based on the comparison of the first number of banknotes and the second number of banknotes includes: when the number of the first banknotes is consistent with that of the second banknotes, determining that the final number of the plurality of banknotes is the first number of banknotes or the second number of banknotes; or when the number of the first banknotes is inconsistent with the number of the second banknotes, determining that the final number of the plurality of banknotes is the number of the first banknotes; or when the number of the first banknotes is inconsistent with the number of the second banknotes, prompting a user to untwist the side edges of the plurality of banknotes again, and re-acquiring the side edge images to recalculate the number of the first banknotes and the number of the second banknotes until the number of the first banknotes is consistent with the number of the second banknotes, and determining that the final number of the plurality of banknotes is the number of the first banknotes or the number of the second banknotes.
In another aspect of the disclosed embodiments, a banknote counting device is provided. The device comprises a first control module, a second control module, an acquisition module and a first statistic module. The first control module is used for controlling the light projection device to project first light rays to the lateral edges of the plurality of banknotes. The second control module is used for controlling the image acquisition device to acquire a side edge image obtained by reflecting the first light rays by the side edges of the plurality of banknotes. The acquisition module is used for acquiring the information of the first position and the information of the second position. The first statistic module is used for obtaining a first banknote number used for representing the number of banknotes in the plurality of banknotes based on the information of the first position, the information of the second position and the side edge image by combining a laser trigonometry principle.
According to an embodiment of the present disclosure, the apparatus further includes a second statistics module and a determination module. The second counting module is used for obtaining the number of second bank notes for representing the number of bank notes in the plurality of bank notes by carrying out image processing on the side edge images. The determination module is configured to determine a final number of banknotes of the plurality of banknotes based on a comparison of the first number of banknotes and the second number of banknotes.
In another aspect of the disclosed embodiments, a banknote counting system is provided. The system includes one or more memories, and one or more processors. The memory has stored thereon computer-executable instructions. The processor executes the instructions to implement the method as described above.
In another aspect of the disclosed embodiments, a computer-readable storage medium is provided, having executable instructions stored thereon, which when executed by a processor, cause the processor to perform the method as described above.
According to the embodiment of the disclosure, the side edge image of the side edge formed by overlapping a plurality of banknotes can be collected through the light projection device and the image acquisition device, the number of the banknotes in the plurality of banknotes can be obtained by combining the laser triangulation principle, and more convenient and accurate banknote counting can be realized.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments of the present disclosure with reference to the accompanying drawings, in which:
fig. 1 schematically shows an application scenario of a banknote counting method according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a block diagram of a currency counter according to an embodiment of the present disclosure;
FIG. 3 schematically shows a flow chart of a banknote counting method according to an embodiment of the present disclosure;
fig. 4 schematically shows a flow chart of a method for obtaining a first banknote count in a banknote counting method according to the present disclosure;
FIG. 5 schematically illustrates a schematic view of a lateral edge image according to an embodiment of the disclosure;
FIG. 6 schematically illustrates a schematic diagram of calculating a measured thickness of a banknote corresponding to each banknote image according to the principles of laser triangulation, in accordance with an embodiment of the present disclosure;
FIG. 7 schematically illustrates a control flow for auto-focusing of an image capturing device according to an embodiment of the present disclosure;
FIG. 8 schematically shows a flow chart of a banknote counting method according to another embodiment of the present disclosure;
FIG. 9 schematically shows a block diagram of a banknote counting device according to an embodiment of the present disclosure;
FIG. 10 schematically illustrates a block diagram of a computer system suitable for implementing banknote counting in accordance with an embodiment of the present disclosure;
fig. 11A and 11B schematically illustrate a structural diagram of a bill counter according to an embodiment of the present disclosure;
fig. 12A and 12B schematically show a structural diagram of a bill counter according to another embodiment of the present disclosure;
fig. 13A to 13C schematically show structural diagrams of a bill counter according to still another embodiment of the present disclosure;
fig. 14A and 14B schematically show structural diagrams of a bill counter according to still another embodiment of the present disclosure; and
fig. 15A and 15B schematically show a structural diagram of a bill counter according to still another embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a convention analogous to "A, B or at least one of C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B or C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
The embodiment of the disclosure provides a cash register, and a method, a device, a system and a medium for counting bills applied to the cash register.
The disclosed embodiment provides a portable currency count machine. The cash counter comprises a light projection device, an image acquisition device and a main body. The light projection device is arranged at the first position, wherein the light projection device projects first light, and the space occupied by the first light is a first space. The image acquisition device is arranged at the second position. Wherein the acquisition range of the image acquisition device comprises a second space; wherein the first space and the second space have an intersection. The main body is internally provided with a processing unit. Wherein, the processing unit is electrically connected with the light projection device and the image acquisition device. The cash counter according to the embodiment of the disclosure has a simple structure and can be conveniently carried. In some embodiments, the cash register can be combined with a mobile terminal (such as a mobile phone), so that the cash counting requirement of a user at any time and any place is greatly facilitated.
The embodiment of the disclosure also provides a non-contact banknote counting method, a device, a system and a medium which are combined with the projection technology, and the method, the device, the system and the medium can be applied to the processing unit of the banknote counter. Specifically, the method comprises controlling a light projection device to project first light rays to lateral edges of a plurality of banknotes; controlling an image acquisition device to acquire side edge images obtained by reflecting first light rays by side edges of a plurality of banknotes; acquiring information of a first position and information of a second position; and obtaining the first number of banknotes for representing the number of banknotes in the plurality of banknotes based on the information of the first position, the information of the second position and the side edge image by combining the laser triangulation principle.
According to the embodiment of the disclosure, when the cash counter is utilized, the light projection device and the image acquisition device can be used for acquiring the side edge images of the side edges formed by overlapping a plurality of banknotes, and based on the positions of the light projection device and the image acquisition device and the triangles formed by the side edges of the plurality of banknotes, the number of the banknotes in the plurality of banknotes can be obtained according to the laser triangulation method principle, so that more scientific, convenient and accurate cash counting can be realized.
Fig. 1 schematically shows an application scenario 100 of a banknote counting method according to an embodiment of the present disclosure.
As shown in fig. 1, the application scenario 100 may include a light projection device 101, an image acquisition device 102, and a plurality of banknotes 1 (e.g., a wad of banknotes as illustrated). The user can twist the plurality of banknotes 1 apart to form the side edges 11 as shown in fig. 1, wherein the plurality of banknotes are separated from each other in the side edges 11 in a stepwise manner.
The light projection device 101 may project a first light to the lateral edge 11, and the image collection device 102 may collect a lateral edge image formed by the lateral edge 11 reflecting the first light. Wherein the light projection means 101 and the image acquisition means 102 are combined to form structured light. For example, in one embodiment, the light projection device 101, which may be, for example, an auxiliary projection lamp or an infrared emitter of a mobile terminal, may project infrared structured light onto the side edges 11 of the plurality of banknotes 1. The image capturing device 102 may be a camera of a mobile phone or other mobile terminal, and captures an image of a pattern with structured light, which is presented by the side edge 11 reflecting the first light, by the camera to obtain an image of the side edge.
The viewing angles of the light projection device 101 and the image capture device 102 intersect, i.e., the first light projected by the light projection device 101 can enter or pass through the capture area of the image capture device 102. When the side edges 11 of the plurality of banknotes 1 are placed in the area where the first light projected by the light projection device 101 coincides with the collection range of the image collection device 102, the image collection device 102 collects the side edge image formed by the reflection of the first light by the side edges 11.
According to the method of the embodiment of the present disclosure, the number of banknotes (i.e., the first number of banknotes herein) in the plurality of banknotes 1 can be obtained based on the side edge image, and the position information of the light projection device 101 and the position information of the image capture device 102, in combination with the laser triangulation method.
In some embodiments, a plurality of light projection devices 101 may be arranged to respectively project the first light (for example, three light projection devices 101 may be used in fig. 1), so as to respectively calculate the number of banknotes in the plurality of banknotes 1 for the light projection devices 101 arranged at different positions, and compare and mutually authenticate the calculation results, so as to improve the accuracy of the calculation results.
In other embodiments, the number of banknotes in the plurality of banknotes 1 (i.e. here the second number of banknotes) is also obtained by image processing means, such as filtering, segmentation and feature extraction of the edge images. Then, the correct number of banknotes can be obtained by checking and verifying the number of the first banknotes and the number of the second banknotes. In this way, through the check-up with the bank note quantity of statistics under two kinds of different modes, can realize more accurate counting currency, improve the rate of accuracy of bank note statistics.
It should be noted that fig. 1 is only an example of an application scenario in which the method of the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, and does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
Fig. 2 schematically illustrates a block diagram of a bill counter 20 according to an embodiment of the present disclosure.
As shown in fig. 2, the bill counter 20 may include a light projection device 21, an image pickup device 22, and a main body 23. The light projection device 101 and the image capture device 102 in fig. 1 are specific embodiments of the light projection device 21 and the image capture device 22, respectively.
The light projection device 21 may be, for example, a light fixture or other device that projects lines or patterns that project collimated light. In order to avoid damage to the human eye by the light projected by the light projection device 21, light invisible to the human eye such as visible light or infrared light may be used.
The image capturing device 22 may be, for example, a device for capturing an image, such as a camera, including a photosensitive device such as a cmos or CCD.
The light projection device 21 is disposed at a first position and configured to project a first light, wherein a space occupied by the first light is a first space. The image capturing device 22 is disposed in a second position capturing range including a second space. Wherein the first space and the second space have an intersection.
The light projection device 21 may project collimated light so that the first space is related to the position of the light projection device 22 and the direction of the projected light. The acquisition range of the image acquisition device 22 is related to the acquisition field of view FOV and the acquisition direction. The first space and the second space intersect with each other, and for example, the first light projected by the light projection device 101 may enter or pass through the collection area of the image collection device 102. Based on this, when designing the light projection direction of the light projection device 21 and the image capture direction of the image capture device 22, it should be satisfied that when a plurality of banknotes 1 are located in some regions, the first light can be irradiated to the side edges 11 of the plurality of banknotes 1 and be captured by the image capture device 22 after being reflected by the plurality of banknotes 1, so that the light paths of the light projection device 21 and the image capture device 22 form a triangle.
The main body 23 is provided therein with a processing unit 231. Wherein, the processing unit 231 is electrically connected with the light projection device 21 and the image acquisition device 22. The processing unit 231 may be configured to control the light projecting device 21 to project the first light to the side edges 11 of the plurality of banknotes 1, and control the image collecting device 22 to collect side edge images obtained by reflecting the first light by the side edges 11 of the plurality of banknotes, and then obtain information of the first position and information of the second position, and then obtain the first number of banknotes indicating the number of the plurality of banknotes 1 based on the information of the first position, the information of the second position, and the side edge images in combination with the principle of laser triangulation. The specific implementation of the processing unit 231 and the banknote counting method applied to the processing unit 231 can refer to the following description related to fig. 3 to 10.
The bill counter 20 may be of a unitary or split construction according to embodiments of the present disclosure. According to other embodiments of the present disclosure, the banknote counter 20 may also be disposed in the mobile terminal, for example, the implementation of the banknote counting method is integrated into the mobile phone by means of an app or an applet, so that the camera of the mobile phone accessory can be directly used during counting the banknote, and the light projection device 21 can also be used by means of an accessory (for example, infrared projection or the like or an auxiliary projection lamp is embedded in the mobile phone, or is assembled in the mobile phone by means of a detachable light accessory). Specifically, examples of various structures of the bill counter 20 can be referred to the description of fig. 11A to 15B below.
Fig. 3 schematically shows a flow chart of a banknote counting method according to an embodiment of the present disclosure.
As shown in fig. 3, the banknote counting method according to the embodiment of the present disclosure may be applied to the processing unit 231 of the banknote counter 20, and the method may include operations S310 to S340.
In operation S310, the light projection device 21 is controlled to project a first light to the side edges 11 of the plurality of bills 1.
In operation S320, the image pickup device 22 is controlled to pick up a side edge image obtained by reflecting the first light from the side edges 11 of the plurality of bills 1.
In operation S330, information of the first location and information of the second location are acquired.
The manner of obtaining the information at the first location and the information at the second location may vary depending on the specific configuration of the bill counter 20. For example, the light projection device 21 and the image pickup device 22 are respectively provided on the main body 23 in an integral structure. Here, the first position and the second position may be preset on the main body 23, so that the information of the first position and the information of the second position may be stored in a specific position (for example, a storage portion having a storage function in the processing unit 231) in advance. And then acquires the information of the first location and the information of the second location from the storage part in operation S330.
For another example, the light projection device 21 and/or the image capture device 22 may be separate from the body 23 or may be detachable in a split configuration. With the detachable structure, the first position and the second position may be predetermined, for example, according to the assembled relationship of the light projection device 21 and/or the image pickup device 22 with the main body 23. Accordingly, the information of the first position and the information of the second position may be stored in advance in, for example, a storage portion having a storage function in the processing unit 231. The first location information and the information of the second location are then acquired from the storage part in operation S330.
For another example, for the case that the light projection device 21 and/or the image capture device 22 are used separately from the main body 23 in the split structure, in operation S330, the information of the first position and the information of the second position may also be acquired in real time by a certain instrument measurement or the like during the use of the banknote counter 20, and the specific acquisition manner is not limited, and may be determined according to the actual use situation.
In operation S340, a first number of banknotes indicating the number of banknotes among the plurality of banknotes 1 is obtained based on the information of the first position, the information of the second position, and the side edge image in conjunction with the laser triangulation principle. Specifically, the laser triangulation principle can be combined, based on the positions of the light projection device 21 and the image acquisition device 22 and the side edge images, the measured thickness of the banknote corresponding to each banknote image in the side edge images is measured, then the average thickness of all banknote images in the side edge images is obtained, and whether a banknote which is not measured in hiding exists is judged based on the difference between the average thickness and the measured thickness of each banknote, so that the situation that some banknotes are not untwisted and hidden in other banknotes to cause omission in the process of acquiring the side edge images of the plurality of banknotes 1 is avoided, the counted first banknote number is high in reliability and accurate, and faster, more convenient and accurate banknote counting is achieved.
Fig. 4 schematically shows a flowchart of a method for obtaining the number of first banknotes in operation S340 in the banknote counting method according to the present disclosure.
As shown in fig. 4, operation S340 may include a loop of operations S341 to S345, and operations S346 to S349.
In operation S341, a measured thickness of the bill corresponding to each bill image in the side edge images is obtained based on the information of the first position, the information of the second position, and the side edge images according to the laser triangulation principle. Specifically, the measured thickness may be obtained by a direct laser triangulation method or an oblique laser triangulation method.
Fig. 5 schematically illustrates a schematic view of a lateral edge image 50 according to an embodiment of the present disclosure.
As shown in fig. 5, each horizontal stub in the side edge image 50 represents the length of each of the plurality of banknotes 1 that is twisted open, more precisely, the length of the boundary line at the boundary between each banknote and the adjacent banknote. As shown in the figure, the vertical distance "PZ" between two adjacent horizontal stubs corresponds to the actual distance value among the plural banknotes 1 located in the space, i.e., the measured thickness PZ. It will be appreciated that the side edge image 50 is shown in an enlarged view, wherein the illustration of the blank between two adjacent horizontal stubs is merely to distinguish the boundary lines of different banknotes, in which case adjacent banknotes are stacked together with no or only negligible gap between them.
An example of the calculation of the measured thickness PZ can be found in fig. 6 and 7 below.
In operation S342, all the measured thicknesses PZ obtained based on the lateral edge images are summed up to obtain a total measured thickness.
In operation S343, the total number of measured thicknesses obtained based on the lateral edge image is calculated to obtain the number of thickness measurements.
In operation S344, the average thickness of the individual banknotes in the plurality of banknotes 1 is calculated using the total measured thickness and the number of thickness measurements, as shown in equation (1):
Figure BDA0002480314950000101
in the formula, PjZjThe jth thickness was measured, J is the number of thickness measurements, and P 'Z' is the average thickness.
In operation S345, the initial value of the first banknote number i is set to the thickness measurement number.
In operation S346, it is determined whether the average thickness satisfies a preset condition. The preset condition may be set as a condition to measure a difference between the average thickness and each measured thickness, for example, to determine whether there is a banknote that is hidden and not measured in the side edges 11, so as to avoid missing due to a part of banknotes not being twisted apart and being hidden in other banknotes during the process of acquiring the side edge images of the plurality of banknotes 1.
If the judgment result of operation S346 is yes, operation S349 is directly performed to output that the first number of banknotes is equal to the thickness measurement number. If the determination result of operation S346 is no, operation S347 and operation S348 are cyclically performed until the determination result of operation S346 is yes, and the current value of the first banknote number is output in operation S349. Wherein, in operation S347, when the average thickness does not satisfy the preset condition, the first banknote number i is updated to i + 1. The average thickness is then recalculated in operation S348 using the total measured thickness and the updated first banknote count.
According to one embodiment of the present disclosure, the preset conditions include: PZ-lambda P 'Z' is less than or equal to 0. Wherein PZ is the calculated thickness measurement thickness of the banknote corresponding to any one of the banknotes in the side edge image; p 'Z' is the average thickness; λ is a weight coefficient. Specifically, the thickness P is measured at each of the measured thicknesses P0Z0、P1Z1、...、PjZj、...PJZJThe value of PZ is obtained, and the difference is made with P 'Z', if the values of PZ-lambdap 'Z' are all less than or equal to 0, it is determined whether the average thickness meets the preset condition in operation S346.
The value of the weight coefficient λ may be obtained through machine learning or through experiments. According to one embodiment of the present disclosure, λ -2/3. According to practical engineering experience, when two objects with the same characteristics are blocked or overlapped, the formed characteristics exceed 1/3 of the characteristics of a single object, and the influence caused by the blocking or overlapping can be obviously sensed. Thus, if any of the measured thicknesses PZ and the average thickness P 'Z' satisfy PZ-2/3P 'Z' ≦ 0, it may be assumed that there is little folding or concealment of the banknote.
Figure 6 schematically illustrates a schematic diagram of calculating a measured thickness of a banknote corresponding to each banknote image according to the principles of laser triangulation, in accordance with an embodiment of the present disclosure.
Specifically, fig. 6 illustrates a schematic diagram of obtaining a measured thickness according to the direct laser triangulation method in which the beam of the first light is collinear with the normal to the side edges 11 of the plurality of banknotes 1, i.e., the first light is incident perpendicularly to the side edges 11 of the plurality of banknotes 1. The first light ray may be a collimated light ray corrected by the collimating lens L.
As shown in fig. 6, PZ corresponds to the measured thickness of the banknote in the banknote image of fig. 5 for the vertical distance "PZ", M is the imaging lens in image capture device 22, and AOB is on the imaging plane (e.g., the imaging plane of a CCD) in image capture device 22, where point a is the image point corresponding to object point Z and point B is the image point corresponding to object point P. u is the object distance, v is the image distance, and OQ is the central axis of the imaging lens. According to the geometrical relationship in the figure, the relationship between the banknote thickness PZ and the image plane imaging AB can be obtained according to the similar triangles, and the relationship is as the following formula (2):
Figure BDA0002480314950000121
in the formula, θ is an angle between incident light and reflected light, and ψ is an angle between reflected light and a CCD imaging plane. In FIG. 6 θ is illustrated as ≧ XZA, and the corresponding ψ is illustrated as ≦ ZAB. In other cases, θ can also be denoted as ≈ XPB, and the corresponding ψ can also be denoted as ≈ PBA. In practice, since the thickness of a banknote is thin, the thickness of one banknote is about 100um, and therefore, the difference in the magnitude of θ and ψ measured at any position corresponding to the PZ can be considered negligible.
The value of PZ can be obtained from the above formula (2), and the expression is as follows (3):
Figure BDA0002480314950000122
in the formula, AB is height information of imaging and can be measured according to the imaging size in the CCD; MA is approximately the image distance v, ZM is approximately the object distance u; the values θ and ψ can be determined from the triangle formed by the first position where the light projection device 21 is located, the second position where the pattern collection device 22 is located, and the spatial position corresponding to the measured thickness PZ in the side edge 11. As previously mentioned, the information of the first position and the information of the second position may be determined according to the structural arrangement of the bill counter 20. The position information of the measured thickness PZ in space in the side edge 11 can be determined by a method of structured light ranging by the light projection device 21 and the pattern collection device 22, for example, a pulse method, a phase method, and the like widely used in engineering. In other embodiments, this may be obtained from the object-image relationship of the imaging process of image capture device 22.
The following describes a process of acquiring parameters such as the image distance v and the object distance u in equation (3) by taking the auto-focusing of the image pickup device 22 as an example with reference to fig. 7.
Fig. 7 schematically illustrates a control flow of auto-focusing of the image capturing apparatus 22 according to an embodiment of the present disclosure.
The auto-focusing system of the image capturing device 22 may include a lens group (including a plurality of lenses, at least one convex lens and one concave lens), a motor driving chip, and a photosensitive chip (e.g., a CCD). The lens and the photosensitive chip are main optical components, and the motor driving chip are auxiliary components or drive components, and mainly provide power for a focusing process.
The focal length f, the object distance u and the image distance v of the lens group satisfy the Gaussian formula, which is as follows (4):
Figure BDA0002480314950000131
according to the gaussian formula, when the object is in the distant view and the near view respectively, i.e. the object distance u of the object is changed, in order to keep the equation (4) true, it is necessary to change the image distance v or the focal distance f accordingly. To solve this problem, two lenses, a fixed focus lens and a zoom lens, are now on the market, and the zoom lens is exemplified in this example.
The zoom lens changes the focal length as its name suggests, so that the image distance v is constant in the gaussian equation, and the focal length f and the object distance u are conjugate to each other. When the object distance u changes, the corresponding focal length f changes accordingly. The image distance v, which we also refer to as the back intercept, is determined at the optical design stage, by the combined design of the zoom range of the lens group and the size of the device. The image distance v is a known quantity in the zoom lens system.
The automatic focusing process of the image capturing device 22 is a process of driving the motor to change the focal length of the lens group based on the determination of the sharpness by the photo sensor chip, and the control flow chart is shown in fig. 7.
The photosensitive chip sends a signal to drive through the judgment of the definition, and then further controls the motor condition lens group to achieve the zooming process. Therefore, for the overall structure of the image capturing device 22, the independent variable is the object distance u, and the dependent variable is the focal length f of the lens group.
In addition, the width d of a banknote (i.e. the width of a banknote) at the side edge 11 can be taken as the size of the object, and the width (i.e. the size of the image) of a banknote image can be measured as d' according to the imaging on the CCD, so that the proportional relationship between the object images in the image acquisition device 22 can be obtained:
Figure BDA0002480314950000141
and (4) and (5) are combined to obtain the focal length f and the object distance u of the lens group at a certain measuring moment.
Thus, the object distance u can already be obtained from the object-image relationship, and further, in the direct laser triangulation method, since the first light is directly emitted to the side edges 11 of the plurality of banknotes 1, the spatial position information corresponding to the measured thickness PZ to be measured can be determined from the information of the first position where the light projection device 21 is located. In this way, based on the information on the first position where the light projection device 21 is located, the information on the second position where the pattern collection device 22 is located, and the positional information on the space corresponding to the measured thickness PZ, the values of θ and ψ in equation (3) can be obtained. Meanwhile, in equation (3), the height information of the image is obtained by measuring the size of the image, and the image distance v is known, and the object distance u is also obtained, so that the value of the measured thickness PZ can be obtained by equation (3).
In addition, the oblique laser triangulation method in which the beam of the first light is inclined at an angle of less than 90 ° with respect to the normal to the side edges 11 of the plurality of banknotes 1, that is, the first light is obliquely incident to the side edges 11 of the plurality of banknotes 1, wherein the principle of obtaining the measured thickness of the banknote corresponding to each banknote image in the side edge images is substantially similar to that according to the direct laser triangulation method and will not be described in detail.
Fig. 8 schematically shows a flow chart of a banknote counting method according to another embodiment of the present disclosure.
As shown in fig. 8, the banknote counting method may be applied to the processing unit 231 of the banknote counter 20, including operations S310 to S340, and operations S850 to S860. Operations S310 to S340 are the same as those described above, and are not described again.
In operation S850, a second number of bills representing 1 number of plural bills is obtained by image-processing the side edge images. This second banknote count is counted, for example, by filtering, segmentation and feature extraction of the side edge image, such as counting horizontal stubs in the side edge image 50.
In operation S860, a final number of banknotes of the plurality of banknotes 1 is determined based on a comparison of the first number of banknotes and the second number of banknotes. For example, when the first banknote number is identical to the second banknote number, the final banknote number of the plurality of banknotes 1 is determined to be the first banknote number or the second banknote number. Or, for example, when the number of first banknotes is not identical to the number of second banknotes, the final number of banknotes of the plurality of banknotes 1 is determined to be the first number of banknotes. Or when the number of the first banknotes is inconsistent with the number of the second banknotes, prompting an error, or prompting a user to untwist the side edges 11 of the plurality of banknotes 1 again, and acquiring the side edge images again to recalculate the number of the first banknotes and the number of the second banknotes, and determining that the final number of the plurality of banknotes 1 is the number of the first banknotes or the number of the second banknotes until the number of the first banknotes is consistent with the number of the second banknotes.
According to the embodiment of the disclosure, through the comparison of the number of the first banknotes and the number of the second banknotes, the number of the banknotes obtained through statistics in the two modes is checked and verified, so that the banknote statistics can achieve a more accurate effect.
Compared with a mode of counting the number of banknotes by image processing alone, the method of the embodiment of the present disclosure can effectively avoid the problem of internal hiding or an unobvious dividing line in a plurality of banknotes 1. For example, in daily life, the boundary between many banknotes in the side edges formed by a wad of banknotes (especially new banknotes) is not particularly obvious. After the images are collected, great difficulty exists in the image processing process, and the accuracy of the counted number of the banknotes can be further reduced. In this case, after the number of banknotes is counted by image processing alone, the reliability of the obtained number of banknotes cannot be verified. For another example, a wad of banknotes (especially old banknotes), the side edges 11 often have a non-uniformity, which, like some banknotes have penetrated into the banknotes, also leads to a reduction in the accuracy of the detection of the number of banknotes by image processing alone.
In contrast, according to the method provided by the embodiment of the disclosure, the number of banknotes obtained by combining the laser triangulation method and the number of banknotes obtained by image processing can be compared and mutually verified, so that on one hand, the reliability and accuracy of banknote statistical results can be improved, and on the other hand, the results of two modes are compared, so that more information can be provided, for example, data analysis can be conveniently performed to judge the advantages and disadvantages of the two modes, or the accuracy of results obtained by people in daily life through the two modes is analyzed, and the like.
Fig. 9 schematically shows a block diagram of a banknote counting device 900 according to an embodiment of the present disclosure.
As shown in fig. 9, the banknote counting device 900 may be provided in the processing unit 231 of the banknote counter 20. According to one embodiment of the present disclosure, the banknote counting device 900 may include a first control module 910, a second control module 920, an acquisition module 930, and a first counting module 940. According to another embodiment of the present disclosure, the banknote counting device 900 may further include a second counting module 950 and a determination module 960. The banknote counting device 900 may be used to perform the banknote counting method described with reference to fig. 2 to 8.
The first control module 910 may perform operation S310, for example, for controlling the light projection device 21 to project a first light to the side edges 11 of the plurality of bills 1.
The second control module 920 may perform operation S320, for example, to control the image capture device 22 to capture a side edge image obtained by reflecting the first light from the side edges 11 of the plurality of banknotes 1.
The obtaining module 930 may perform operation S330, for example, to obtain information of the first location and information of the second location.
The first statistical module 940 may perform operation S340 for obtaining a first number of banknotes indicating the number of the plurality of banknotes 1 based on the information of the first position, the information of the second position, and the side edge image in conjunction with the principle of laser triangulation, for example.
The second statistical module 950 may perform operation S850, for example, for obtaining a second number of banknotes representing the number of banknotes in the plurality of banknotes 1 by image processing the side edge image.
The determination module 960 may for example perform operation S860 for comparing the first banknote number and the second banknote number, determining the final banknote number of the plurality of banknotes 1.
Any number of modules, sub-modules, units, sub-units, or at least part of the functionality of any number thereof according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, and sub-units according to the embodiments of the present disclosure may be implemented by being split into a plurality of modules. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in any other reasonable manner of hardware or firmware by integrating or packaging a circuit, or in any one of or a suitable combination of software, hardware, and firmware implementations. Alternatively, one or more of the modules, sub-modules, units, sub-units according to embodiments of the disclosure may be at least partially implemented as a computer program module, which when executed may perform the corresponding functions.
For example, any number of the first control module 910, the second control module 920, the obtaining module 930, the first statistics module 940, the second statistics module 950, and the determining module 960 may be combined in one module to be implemented, or any one of the modules may be split into multiple modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the disclosure, at least one of the first control module 910, the second control module 920, the obtaining module 930, the first statistical module 940, the second statistical module 950 and the determining module 960 may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or in any one of three manners of software, hardware and firmware, or in any suitable combination of any of them. Alternatively, at least one of the first control module 910, the second control module 920, the obtaining module 930, the first statistics module 940, the second statistics module 950, and the determining module 960 may be implemented at least in part as a computer program module that, when executed, may perform corresponding functions.
Fig. 10 schematically illustrates a block diagram of a computer system 1000 suitable for implementing banknote counting in accordance with an embodiment of the present disclosure. The computer system 1000 shown in fig. 10 is only an example and should not bring any limitations to the functionality or scope of use of the embodiments of the present disclosure. The computer system 1000 may be provided in the processing unit 231 of the bill counter 20.
As shown in fig. 10, a computer system 1000 according to an embodiment of the present disclosure may include a processor 1001 that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)1002 or a program loaded from a storage section 1008 into a Random Access Memory (RAM) 1003. Processor 1001 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 1001 may also include onboard memory for caching purposes. The processor 1001 may include a single processing unit or multiple processing units for performing different actions of a method flow according to embodiments of the present disclosure.
In the RAM 1003, various programs and data necessary for the operation of the computer system 1000 are stored. The processor 1001, ROM 1002, and RAM 1003 are connected to each other by a bus 1004. The processor 1001 performs various operations of the method flow according to the embodiments of the present disclosure by executing programs in the ROM 1002 and/or the RAM 1003. Note that the program may also be stored in one or more memories other than the ROM 1002 and the RAM 1003. The processor 1001 may also perform various operations of method flows according to embodiments of the present disclosure by executing programs stored in one or more memories.
Computer system 1000 may also include an input/output (I/O) interface 1005, the input/output (I/O) interface 1005 also being connected to bus 1004, according to an embodiment of the present disclosure. The system 1000 may also include one or more of the following components connected to the I/O interface 1005: an input section 1006 including a keyboard, a mouse, and the like; an output section 1007 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 1008 including a hard disk and the like; and a communication section 1009 including a network interface card such as a LAN card, a modem, or the like. The communication section 1009 performs communication processing via a network such as the internet. The driver 1010 is also connected to the I/O interface 1005 as necessary. A removable medium 1011 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 1010 as necessary, so that a computer program read out therefrom is mounted into the storage section 1008 as necessary.
According to embodiments of the present disclosure, method flows according to embodiments of the present disclosure may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication part 1009 and/or installed from the removable medium 1011. The computer program performs the above-described functions defined in the system of the embodiment of the present disclosure when executed by the processor 1001. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, a computer-readable storage medium may include the ROM 1002 and/or the RAM 1003 described above and/or one or more memories other than the ROM 1002 and the RAM 1003.
The following describes schematically the structure of various specific implementations of the banknote counter 20 according to the embodiment of the present disclosure with reference to fig. 11A to fig. 15B, so as to help those skilled in the art to realize perceptual knowledge of the state structure of the banknote counter according to the embodiment of the present disclosure in practical applications.
Fig. 11A and 11B schematically illustrate a structural diagram of a bill counter 110 according to an embodiment of the present disclosure.
As shown in fig. 11A and 11B, the bill counter 110 is a unitary structure, and is an embodiment of the bill counter 20. The bill counter 110 includes a light projection device 111, an image pickup device 112, and a main body 113. The main body 113 includes a first plane 1131, wherein the light projection device 111 and the image capture device 112 are respectively disposed on the first plane 1131. The light projection device 111 and the image capture device 112 are installed in the same direction and in the same plane, with a certain distance therebetween, and it is necessary to design so that the viewing angles of the two intersect (i.e. the aforementioned first space intersects with the second space).
In the bill counter 110, the respective installation positions (i.e., the first position and the second position) of the light projection device 111 and the image capture device 112 may be predetermined and have corresponding position information stored. So that the processing unit 231 directly acquires the pre-stored information of the first location and the information of the second location in operation S330.
Fig. 12A and 12B schematically show a structural diagram of a bill counter 120 according to another embodiment of the present disclosure.
As shown in fig. 12A and 12B, the bill counter 120 is a unitary structure, which is one embodiment of the bill counter 20. The bill counter 120 includes a light projection device 121, an image pickup device 122, and a main body 123. The body 123 includes a second plane 1231 and a third plane 1232, the second plane 1231 being inclined with respect to the third plane 1232. The light projection device 121 is disposed on the second plane 1231, and the image pickup device 122 is disposed on the third plane 1232.
The light projection device 121 and the image capture device 122 in the bill counter 120 are mounted in two planes having an included angle. There is an angle between the light projection device 121 and the image capture device 122, and there is an intersection between the two viewing angles (i.e. the aforementioned first space and the second space) when the design is needed.
Similarly, in the bill counter 120, the respective installation positions (i.e., the first position and the second position) of the light projection device 121 and the image capture device 122 may be predetermined and the corresponding position information may be stored. So that the processing unit 231 directly acquires the pre-stored information of the first location and the information of the second location in operation S330.
Fig. 13A to 13C schematically show structural diagrams of a bill counter according to still another embodiment of the present disclosure.
As shown in fig. 13A to 13C, the bill counters 130A, 130B, and 130C are three embodiments of the bill counter 20. In the cash registers 130A, 130B, and 130C, the main body 23 may be a mobile terminal 133 (e.g., a mobile phone), and the image capturing device 22 may be a camera 132 disposed inside the mobile terminal 133. The camera 132 may be a front camera or a rear camera. The light projection device 131 may be embedded in the mobile terminal 133, and may be an auxiliary illumination lamp of the mobile terminal 133, or an infrared lamp provided to the mobile terminal 133, for example.
Specifically, in the bill counter 130A, 130B, the light projection device 131 is embedded in the back of the mobile terminal 133, and accordingly the camera 132 is a rear camera of the mobile terminal 133. The light projection device 131 is located below the camera 132 in the bill counter 130A. The light projection device 131 is located opposite the horizontal position of the camera 132 in the counter/counter 130B. Specifically, the relative positional relationship of the light projection device 131 and the camera 132 may be set as needed.
In the bill counter 130C, a light projection device 131 is provided on the front surface of the mobile terminal 133. Accordingly, the camera 132 is a front camera of the mobile terminal 133.
The bill counters 130A, 130B, and 130C are all of unitary construction. Accordingly, information of the positions of the camera 132 and the light projection device 131 (i.e., information of the first position and information of the second position) forming the structured light may be predetermined and stored in the mobile terminal 133. So that the processing unit 231 may acquire the pre-stored information of the first location and the information of the second location in operation S330.
Fig. 14A and 14B schematically show a structural diagram of a bill counter 140 according to still another embodiment of the present disclosure.
As shown in fig. 14A and 14B, the banknote counter 140 is an embodiment of the banknote counter 20, wherein the main body 23 may specifically be a mobile terminal 143 (e.g., a mobile phone), and the image capture device 22 may specifically be a rear camera 142 disposed on the mobile terminal 143.
In accordance with an embodiment of the present disclosure, bill counter 140 further includes a protective shell 144. The protective case 144 detachably covers a part of the surface of the mobile terminal 143 from the rear surface of the mobile terminal 143. In fig. 14A, the protective case 144 is fitted over the mobile terminal 143, and in fig. 14B, the protective case 144 is detached and shown separately.
The light projection device 141 is disposed on the protective case 144. The protective shell 144 is further provided with a through hole 145 for the rear camera 142 to transmit light.
Since the rear camera 142 is provided inside the mobile terminal 143, the position information (i.e., the information of the second position) of the rear camera 142 can be acquired from the mobile terminal 143. The position information of the light projection device 141 is related to the position of the protective case 144 installed at the rear of the mobile terminal 143. The protective shell 144 may, for example, have a particular model and the position of the light projecting device 141 may be predetermined for that particular signal. In one embodiment, the processing unit 231 may acquire information of the structure and the like of the protective case 144 by acquiring the model of the protective case 144, and further acquire position information (i.e., information of the first position) of the light projection device 141 in operation S330.
The protective case 144 can be installed on the mobile terminal 143 for a long time, which is convenient for the user to use at any time when the user needs to count money, and is convenient and fast.
It is to be understood that the structure of the protective case 144 in fig. 14A and 14B is merely exemplary, and the protective case 144 may be replaced with any wearable accessory that may be used for the mobile terminal 143.
Fig. 15A and 15B schematically show a structural diagram of a bill counter 150 according to still another embodiment of the present disclosure.
As shown in fig. 15A and 15B, according to the embodiment of the present disclosure, the banknote counter 150 is an embodiment of the banknote counter 20, wherein the main body 23 may specifically be a mobile terminal 153 (e.g., a mobile phone), and the image capture device 22 may specifically be a rear camera 152 disposed on the mobile terminal 153. The light projection device 21 may be specifically the light projection device 151.
Specifically, the bill counter 150 further includes a holder 154. The clamping member 154 is detachably clamped at a predetermined position of the mobile terminal 153, wherein the light projection device 151 may be disposed on the clamping member 154.
The preset position may be, for example, a position for holding positioning provided on the mobile terminal 153. For example, a positioning structure is provided on the mobile terminal 153 so that the holding member 154 can be held to the specific positioning structure. Thus, the position information (i.e., the information of the first position) of the light projection device 151 can be determined by the positioning structure and the position of the light projection device 151 in the holder 154.
Accordingly, since the rear camera 152 is disposed inside the mobile terminal 153, the position information (i.e., the information of the second position) of the rear camera 152 can be acquired from the mobile terminal 153.
According to one embodiment of the present disclosure, the mobile terminal 153 may include a plurality of cameras including at least a first camera and a second camera. Among other things, the first camera (e.g., the rear camera 152) may be used as the image capturing device. The holder 154 is disposed at a preset position so that the light projection device 151 can be directed to the second camera. The light projection device 151 projects the first light outward and projects the second light toward the second camera. In this way, the position information (i.e., the information of the second position) of the light projection device 151 can be accurately acquired through the information of the second light collected by the second camera during the use of the bill counter 150.
The clip 154 may be installed at any time and removed at its disposal. The shape of the clamp 154 is not limited, and the clamping manner is not limited, and for example, the spring clamp may be a screw.
The block diagrams, flowcharts, and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (10)

1. A banknote counting method, characterized in that the method comprises:
controlling a light projection device to project first light rays to lateral edges of a plurality of banknotes, wherein the light projection device is located at a first position;
controlling an image acquisition device to acquire a side edge image obtained by reflecting the first light rays by the side edges of the plurality of banknotes, wherein the image acquisition device is positioned at a second position;
acquiring information of the first position and information of the second position; and
obtaining a first banknote number for representing the number of banknotes in the plurality of banknotes based on the information of the first position, the information of the second position, and the side edge image by combining a laser triangulation principle, including:
obtaining a measured thickness of the banknote corresponding to each banknote image in the side edge images based on the information of the first position, the information of the second position and the side edge images according to the principle of laser triangulation;
summing all of the measured thicknesses obtained based on the lateral edge images to obtain a total measured thickness;
calculating the total number of the measured thicknesses obtained based on the lateral edge images to obtain the number of the measured thicknesses;
calculating an average thickness of individual banknotes in the plurality of banknotes using the total measured thickness and the number of thickness measurements; and
and when the average thickness meets a preset condition, determining that the number of the first banknotes is equal to the number of the thickness measurements.
2. The method of claim 1, further comprising:
and when the average thickness does not meet the preset condition, taking the measured thickness number as an initial value of the first banknote number i, and circularly executing the following operations:
updating the first banknote number i to i + 1;
recalculating the average thickness using the total measured thickness and the updated first banknote number;
determining whether the recalculated average thickness meets the preset condition, and if so, stopping circulation; if not, updating the first banknote number i again and entering the next round of circulation.
3. The method according to claim 1, wherein the preset condition comprises:
PZ-λP′Z′≤0
wherein,
PZ is the measured thickness of the bank note corresponding to any one bank note image in the side edge images;
p 'Z' is the average thickness;
λ is a weight coefficient.
4. A method according to claim 3, wherein λ -2/3.
5. The method of claim 1, further comprising:
obtaining a second banknote number for representing the banknote number in the plurality of banknotes by performing image processing on the side edge image; and
determining a final number of banknotes of the plurality of banknotes based on a comparison of the first number of banknotes and the second number of banknotes.
6. The method of claim 5, wherein said determining a final number of banknotes of said plurality of banknotes based on a comparison of said first number of banknotes and said second number of banknotes comprises:
when the number of the first banknotes is consistent with that of the second banknotes, determining that the final number of the plurality of banknotes is the first number of banknotes or the second number of banknotes; or
When the number of the first banknotes is inconsistent with the number of the second banknotes, determining that the final number of the plurality of banknotes is the number of the first banknotes; or
And when the number of the first banknotes is inconsistent with the number of the second banknotes, prompting a user to untwist the side edges of the plurality of banknotes again, and re-acquiring the side edge images to recalculate the number of the first banknotes and the number of the second banknotes until the number of the first banknotes is consistent with the number of the second banknotes, and determining that the final number of the plurality of banknotes is the number of the first banknotes or the number of the second banknotes.
7. A banknote counting device, characterized in that it comprises:
the first control module is used for controlling the light projection device to project first light rays to the lateral edges of the plurality of banknotes, wherein the light projection device is located at a first position;
the second control module is used for controlling the image acquisition device to acquire a side edge image obtained by reflecting the first light rays by the side edges of the plurality of banknotes, wherein the image acquisition device is positioned at a second position;
an obtaining module, configured to obtain information of the first location and information of the second location; and
a first statistical module, configured to obtain, based on the information of the first position, the information of the second position, and the side edge image, a first number of banknotes that indicates a number of banknotes in the plurality of banknotes, in accordance with an optical trigonometry principle, including:
obtaining a measured thickness of the banknote corresponding to each banknote image in the side edge images based on the information of the first position, the information of the second position and the side edge images according to the principle of laser triangulation;
summing all of the measured thicknesses obtained based on the lateral edge images to obtain a total measured thickness;
calculating the total number of the measured thicknesses obtained based on the lateral edge images to obtain the number of the measured thicknesses;
calculating an average thickness of individual banknotes in the plurality of banknotes using the total measured thickness and the number of thickness measurements; and
and when the average thickness meets a preset condition, determining that the number of the first banknotes is equal to the number of the thickness measurements.
8. The apparatus of claim 7, further comprising:
the second counting module is used for carrying out image processing on the side edge image to obtain the number of second banknotes for representing the number of banknotes in the plurality of banknotes; and
a determination module for determining a final number of banknotes of the plurality of banknotes based on a comparison of the first number of banknotes and the second number of banknotes.
9. A banknote counting system comprising:
a light projection device;
an image acquisition device;
one or more memories having stored thereon computer-executable instructions; and
one or more processors executing the instructions to implement the method of any one of claims 1-6.
10. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 6.
CN202010379587.7A 2020-05-07 2020-05-07 Banknote counter, banknote counting method, device, system and medium Active CN111429646B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010379587.7A CN111429646B (en) 2020-05-07 2020-05-07 Banknote counter, banknote counting method, device, system and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010379587.7A CN111429646B (en) 2020-05-07 2020-05-07 Banknote counter, banknote counting method, device, system and medium

Publications (2)

Publication Number Publication Date
CN111429646A CN111429646A (en) 2020-07-17
CN111429646B true CN111429646B (en) 2021-12-03

Family

ID=71551443

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010379587.7A Active CN111429646B (en) 2020-05-07 2020-05-07 Banknote counter, banknote counting method, device, system and medium

Country Status (1)

Country Link
CN (1) CN111429646B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114944032A (en) * 2022-05-30 2022-08-26 中国银行股份有限公司 Bank cash counting method and system, electronic equipment and storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0383415B1 (en) * 1989-02-13 1994-11-30 Comar, Inc. Image analysis counting system
CN2519968Y (en) * 2001-12-24 2002-11-06 严军 Palm type note counter
CN1710605A (en) * 2005-06-24 2005-12-21 清华大学 Bank-note counting method based on picture treatment
CN1710606A (en) * 2004-06-18 2005-12-21 上海印钞厂 Non-contact vision paper-counting method and machine thereof
CN2819326Y (en) * 2005-06-29 2006-09-20 中国印钞造币总公司 Non-contacting counter
CN1993704A (en) * 2004-08-03 2007-07-04 卡巴-乔利有限公司 Counting stacked documents
WO2011036441A1 (en) * 2009-09-22 2011-03-31 Cashmaster International Limited Banknote counting method and apparatus
CN103136583A (en) * 2013-03-07 2013-06-05 中国工商银行股份有限公司 Equipment and system of on-line counting
CN104316541A (en) * 2014-11-12 2015-01-28 京东方科技集团股份有限公司 Defect detection device and polaroid attaching equipment
CN105115431A (en) * 2015-06-02 2015-12-02 绵阳东福高科技有限公司 Novel CCD laser displacement sensor paper sheet thickness meter
CN108645870A (en) * 2018-06-23 2018-10-12 昆山瑞琪信息科技有限公司 A kind of module measured for paper
CN109214496A (en) * 2018-11-15 2019-01-15 天津市辰仪电子科技有限公司 Contactless tablet checks counting device and method
CN109658586A (en) * 2018-11-20 2019-04-19 广州广电运通金融电子股份有限公司 Quantity calibration method, device and the computer equipment of the stackable object of sheet

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB0003720D0 (en) * 2000-02-17 2000-04-05 Rue De Int Ltd Document counter
ES2566557T3 (en) * 2010-06-25 2016-04-13 Kba-Notasys Sa Method and system for counting stacked substrates without contact, especially bundles of banknotes

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0383415B1 (en) * 1989-02-13 1994-11-30 Comar, Inc. Image analysis counting system
CN2519968Y (en) * 2001-12-24 2002-11-06 严军 Palm type note counter
CN1710606A (en) * 2004-06-18 2005-12-21 上海印钞厂 Non-contact vision paper-counting method and machine thereof
CN1993704A (en) * 2004-08-03 2007-07-04 卡巴-乔利有限公司 Counting stacked documents
CN1710605A (en) * 2005-06-24 2005-12-21 清华大学 Bank-note counting method based on picture treatment
CN2819326Y (en) * 2005-06-29 2006-09-20 中国印钞造币总公司 Non-contacting counter
WO2011036441A1 (en) * 2009-09-22 2011-03-31 Cashmaster International Limited Banknote counting method and apparatus
CN103136583A (en) * 2013-03-07 2013-06-05 中国工商银行股份有限公司 Equipment and system of on-line counting
CN104316541A (en) * 2014-11-12 2015-01-28 京东方科技集团股份有限公司 Defect detection device and polaroid attaching equipment
CN105115431A (en) * 2015-06-02 2015-12-02 绵阳东福高科技有限公司 Novel CCD laser displacement sensor paper sheet thickness meter
CN108645870A (en) * 2018-06-23 2018-10-12 昆山瑞琪信息科技有限公司 A kind of module measured for paper
CN109214496A (en) * 2018-11-15 2019-01-15 天津市辰仪电子科技有限公司 Contactless tablet checks counting device and method
CN109658586A (en) * 2018-11-20 2019-04-19 广州广电运通金融电子股份有限公司 Quantity calibration method, device and the computer equipment of the stackable object of sheet

Also Published As

Publication number Publication date
CN111429646A (en) 2020-07-17

Similar Documents

Publication Publication Date Title
US9307140B2 (en) Distance detection apparatus, image sensing apparatus, program, recording medium, and distance detection method
EP2651118B1 (en) Light receiving device, focus detection device and imaging device
US6271918B2 (en) Virtual multiple aperture 3-D range sensor
US20060232830A1 (en) Coordinate input apparatus, control method therefore, and program
EP2426457A2 (en) Inspection device for defect inspection
WO2012058954A1 (en) Method and apparatus for detecting multi-angle optical feature
TW201400800A (en) Inspection device and inspection method of filter patterned retarder
JP5440903B2 (en) Imaging device, stereo camera device, and vehicle exterior monitoring device
CN111429646B (en) Banknote counter, banknote counting method, device, system and medium
US20160014405A1 (en) Method and apparatus for calibrating a camera
CN109307929A (en) Optical system with plane of refraction and reflecting surface and image capturing device and projection arrangement
US20080273789A1 (en) Acceptor Device for Sheet Objects
CN211827318U (en) Paper money counter
WO2012119409A1 (en) Paper currency discrimination detector
EP2913659B1 (en) Optical system and apparatus for measuring optical quality of a surface
WO2019196536A1 (en) Method, device and system for testing angle of view of projection display device
JPS5962811A (en) Focus detecting device
JP2016177389A (en) Vehicle recognition device
JP4252252B2 (en) Imaging device
JP2012083964A (en) Coin processor and coin processing method
JP5964093B2 (en) Vehicle size measuring device, vehicle size measuring method, and program
JP7170401B2 (en) Light source angle measurement device, light source position detection device, and artificial satellite
KR102682204B1 (en) Method and apparatus for determining whether identification card is spoofing
TWI403697B (en) Distance measuring system by single image capture apparatus and method thereof
JPH0914914A (en) Laser light projection method and apparatus therefor in device measuring for moving value by laser speckle pattern

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