Coin counting system, coin counting program, and coin storage device
The coin counting system and program utilize image analysis to accurately count coins in coin storage cassettes by analyzing brightness differentials, addressing manual counting errors and enhancing operational efficiency.
Patent Information
- Application Number
- JP2022510055
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-03-24
- Filing Date
- 2021-03-18
- Publication Date
- 2025-01-20
- Estimated Expiration
- 2041-03-18
AI Technical Summary
Conventional coin dispensing devices rely on manual counting of coins, which leads to frequent counting errors.
A coin counting system and program that uses a camera to capture an image of the coin storage cassette, analyzes the striped pattern of stacked coins, and calculates the number of coins based on brightness differential values, with correction processes to enhance accuracy.
Accurately and quickly counts the number of coins, reducing manual errors and improving the efficiency of coin management in dispensing devices.
Smart Images

Figure 0007617650000001 
Figure 0007617650000002 
Figure 0007617650000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a coin counting system and a coin counting program that count the number of coins stored in a coin storage cassette of a coin dispensing device, and also to a coin storage device that is the target of this coin counting system. [Background technology]
[0002] 2. Description of the Related Art A coin dispensing device is a device that dispenses coins, and is often used by being connected to or mounted on a POS register, a vending machine, a currency exchange machine, a settlement machine, a ticket vending machine, a service device, or the like.
[0003] Patent Document 1 discloses an example of such a coin dispensing device. In the coin dispensing device of Patent Document 1, the coin storage portion of the coin dispensing device is configured as a coin storage cassette that is removable from the coin dispensing device main body for the convenience of replenishing and collecting coins. This coin storage cassette has multiple coin tubes that store coins in a stack according to their denomination.
[0004] Such a coin dispensing device is normally operated according to the following procedure. First, at the start of operation, coins are manually set in the coin storage cassette, and the number of set coins is recorded in a management system such as a POS register to which the coin dispensing device is connected. During subsequent operation, the management system receives coins dispensed from the coin storage cassette and updates the information on the number of coins recorded in the management system as needed. Then, during closing processing, the number of coins stored in the coin storage cassette is manually counted, and it is confirmed whether the manually counted number of coins matches the information on the number of coins recorded in the management system, and the closing processing is terminated.
[0005] Patent Document 2 discloses a method for counting the number of stacked sheets of plate-like members such as cards and coins using a one-dimensional image sensor. [Prior art documents] [Patent documents]
[0006] [Patent Document 1] JP 2019-191938 A [Patent Document 2] Japanese Patent Application Publication No. 6-52378 Summary of the Invention [Problem to be solved by the invention]
[0007] In the operation of a conventional coin dispensing device, the number of coins in the coin storage cassette is manually counted at the start of operation and at the closing process. However, manual counting has a problem in that counting errors occur quite frequently.
[0008] In view of the above, an object of the present invention is to provide a coin counting system and a coin counting program that accurately count the number of coins stored in a stack. [Means for solving the problem]
[0009] In order to solve the above problem, the coin counting system of the present invention is a coin counting system that counts the number of coins stored in a coin storage unit that loads and stores coins, and includes a camera that acquires a coin storage unit image that is an image of the coin storage unit taken from the front, and a counting processing unit that counts the number of coins stored in the coin storage unit based on the coin storage unit image, and the counting processing unit counts the number of coins from the number of stripes in a striped pattern of a stack of coins in the coin storage unit. In the coin counting system, the coin storage unit may be a coin storage cassette having a coin tube, and the coin storage unit image may be a cassette image that is an image of the coin storage cassette taken from the front.
[0010] The counting processing unit may set a reference line extending in a stacking direction of the stack of coins, calculate a differential value of the brightness of the coin storage section image along the reference line, and count the number of coins based on the differential value of the brightness. Furthermore, the coin counting system may further include a counting result storage unit that stores the coin storage section image.
[0011] The coin counting program of the present invention is a coin counting program for counting the number of coins stored in a coin storage unit that loads and stores coins, and causes an information processing device to execute a coin storage unit image acquisition step of acquiring a coin storage unit image that is an image of the coin storage unit photographed from the front, and a counting processing step of counting the number of coins stored in the coin storage unit based on the coin storage unit image, and the counting processing step counts the number of coins from the number of stripes in a striped pattern of a stack of coins in the coin storage unit. In the coin counting program, the coin storage unit may be a coin storage cassette having a coin tube, and the coin storage unit image may be a cassette image that is an image of the coin storage cassette photographed from the front.
[0012] The counting process step may include setting a reference line extending in a stacking direction of the stack of coins, calculating a differential value of brightness of the coin storage section image along the reference line, and counting the number of coins based on the differential value of brightness. The coin counting program may further cause an information processing device to execute a counting result storage step of storing the coin storage section image in a counting result storage unit.
[0013] The coin storage device of the present invention has a coin storage device main body, a coin storage cassette, an opening / closing cover, and a camera, the coin storage cassette is detachably attached to the front side of the coin storage device main body, the opening / closing cover is provided on the front side of the coin storage device main body, and can assume a closed state in which it covers the coin storage cassette and an open state in which it is retracted from the coin storage cassette, and the camera is disposed on the opening / closing cover so as to photograph the coin storage cassette and obtain an image of the coin storage cassette when the opening / closing cover is in the open state. The camera may be disposed so as to be located below a plane extending from a floor surface of the coin storage cassette when the opening / closing cover is in the open state. Effect of the Invention
[0014] According to the present invention, it is possible to provide a coin counting system and a coin counting program that accurately count the number of coins stored in a stack. [Brief description of the drawings]
[0015] [Figure 1] 1 is a block diagram showing a configuration of a coin counting system according to an embodiment of the present invention. [Figure 2A] 1 is a perspective view of a coin dispensing device with a coin storage cassette attached thereto; FIG. [Figure 2B] FIG. 2 is a perspective view of the coin dispensing device with the coin storage cassette removed; [Figure 3A] FIG. 2 is a perspective view of the coin storage cassette with the coin tube cover attached. [Figure 3B] FIG. 2 is a perspective view of the coin storage cassette with the coin tube cover removed. [Figure 3C] FIG. 1 is a perspective view of a coin storage cassette with a payout slide pulled out. [Figure 4] 1 is a diagram showing an example of an image of a coin storage cassette acquired by the coin counting system of the present embodiment. FIG. [Diagram 5] 10A and 10B are diagrams illustrating a method of counting the number of coins based on an image of a coin storage cassette in the coin counting system of the present embodiment. [Figure 6] 13A and 13B are diagrams illustrating a correction process in counting peaks of a luminance differential value. [Figure 7] 4 is a flowchart showing the flow of coin counting processing in the coin counting system of the present embodiment. FIG. [Figure 8] FIG. 13 shows camera lens distortion in an image of a coin cassette. [Figure 9] 1 is a block diagram showing a configuration of a coin counting system having a communication unit that communicates with an external system. [Figure 10A] FIG. 2 is a diagram showing the display of the coin counting system of the present embodiment, illustrating a menu screen. [Figure 10B] FIG. 13 is a diagram showing the display on the display of the coin counting system of the present embodiment, illustrating a photography and measurement screen. [Figure 10C] FIG. 13 is a diagram showing the display on the display of the coin counting system of the present embodiment, illustrating a photography and measurement screen. [Figure 10D] FIG. 13 is a diagram showing the display of the coin counting system of the present embodiment, illustrating a measurement result screen. [Figure 11] 13A and 13B are diagrams showing examples of marks arranged on a coin storage cassette and its surrounding area. [Figure 12] 13A and 13B are diagrams illustrating another example of a method for counting the number of coins based on an image of a coin storage cassette. [Figure 13A] FIG. 11 is a perspective view showing another example of a coin dispensing device with the opening / closing cover in a closed state. [Figure 13B] FIG. 11 is a perspective view showing another example of a coin dispensing device with the opening / closing cover open. [Figure 14] 1 is a perspective view showing an example of a coin storage section that stores coins in a stacked manner. FIG. [Figure 15] 1 is a perspective view showing an example of a coin storage section that stores coins in a stacked manner. FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0016] Hereinafter, an embodiment of the present invention (hereinafter, referred to as "this embodiment") will be described with reference to the drawings.
[0017] FIG. 1 is a block diagram showing the configuration of a coin counting system 10 of this embodiment.
[0018] The coin counting system 10 of this embodiment counts the number of coins C stacked in a coin storage cassette 30 having a plurality of coin tubes 33 arranged in parallel. This coin counting system 10 acquires an image of the coin storage cassette 30 by photographing the coin storage cassette 30 with a camera 14 in a state in which the coins C in the coin storage cassette 30 can be observed, and automatically counts the number of coins based on the image.
[0019] The coin counting system 10 includes a control unit 11, a display 12, an operation unit 13, a camera 14, a counting processing unit 15, a cassette information storage unit 16, and a counting result storage unit 17. The control unit 11 controls the coin counting system 10. The display 12 and the operation unit 13 function as a user interface for the coin counting system 10. The camera 14 photographs the coin storage cassette 30 and acquires an image of the coin storage cassette 30. The camera 14 is a device having a function of saving and outputting the photographed image as image data. The counting processing unit 15 automatically counts the number of coins based on the image of the coin storage cassette 30. The cassette information storage unit 16 stores information such as the configuration of the coin storage cassette 30 used in the processing by the counting processing unit 15. The counting result storage unit 17 stores the counting result counted by the coin counting system 10 and an image of the coin storage cassette 30.
[0020] First, the coin storage cassette 30 of the coin dispensing device 20 which is the subject of coin counting in the coin counting system 10 will be described.
[0021] 2A and 2B are perspective views of the coin dispensing device 20. Fig. 2A shows a state in which the coin storage cassette 30 is attached to the coin dispensing device main body 21, and Fig. 2B shows a state in which the coin storage cassette 30 is removed from the coin dispensing device main body 21.
[0022] The illustrated coin dispensing device 20 is an example of the coin dispensing device 20 targeted by the coin counting system 10 of this embodiment. As shown in Fig. 2B, this coin dispensing device 20 has a coin storage cassette 30 that is detachable from the coin dispensing device main body 21. This coin dispensing device 20 has a coin dispensing outlet on the lower surface of the coin dispensing device main body 21.
[0023] It should be noted that, although the illustrated coin dispensing device 20 only dispenses coins, the coin dispensing device that is the target of the coin counting system and coin counting program of the present invention is not limited to this and may be one that accepts and dispenses coins.
[0024] 3A, 3B, and 3C are perspective views of the coin storage cassette 30. Fig. 3A shows the coin tube cover 32 attached, Fig. 3B shows the coin tube cover 32 removed, and Fig. 3C shows the payout slide 34 pulled out.
[0025] The illustrated coin storage cassette 30 is an example of the coin storage cassette 30 targeted by the coin counting system 10 of this embodiment. This coin storage cassette 30 has a plurality of coin tubes 33 arranged in parallel. The coin tubes 33 store coins C in a stacked manner according to denomination. The illustrated coin storage cassette 30 has six coin tubes 33, 33F arranged in parallel in order from the left, including coin tubes 33, 33A for storing 100 yen coins, coin tubes 33, 33B for storing 5 yen coins, coin tubes 33, 33C for storing 1 yen coins, coin tubes 33, 33C for storing 500 yen coins, coin tubes 33, 33D for storing 50 yen coins, and coin tubes 33, 33E for storing 10 yen coins.
[0026] As shown in Fig. 3B, the coin storage cassette 30 has a coin tube cover 32 that is detachable from the coin storage cassette main body 31. Replenishing the coins C into the coin storage cassette 30 and collecting the coins C from the coin storage cassette 30 are performed by removing the coin tube cover 32 from the coin storage cassette main body 31. The coin tube cover 32 is made of a transparent material so that the coins C stored in each coin tube 33 can be observed when the coin tube cover 32 is attached to the coin storage cassette main body 31. In this specification, the surface on which the coins C stored in each coin tube 33 can be observed is defined as the front of the coin storage cassette 30.
[0027] 3C, the coin storage cassette 30 has, at its bottom, a payout slide 34 that can be pulled out from the coin storage cassette body 31. The payout slide 34 is a member for paying out coins C from the coin storage cassette 30. The payout slide 34 has a plurality of coin storage holes corresponding to each coin tube 33.
[0028] Each of the multiple coin storage holes 34a of the payout slide 34 stores one of the lowest coins C stored in the corresponding coin tube 33. When paying out coins, the payout slide 34 is pulled out from the coin storage cassette 30, and the coins C stored in the coin storage holes 34a are dropped from the coin storage holes 34a. At this time, for coins C of a denomination that is not the subject of payment, the lower part of the corresponding coin storage hole 34a is closed with a plate-shaped member or the like to prevent the coins C from falling from the coin storage hole 34a. This makes it possible to pay out coins C only from any coin tube 33.
[0029] Next, a method for counting the number of coins in the coin counting system 10 of this embodiment will be described.
[0030] One method for counting the number of coins is to calculate the number of coins from the height of the stack of coins C stacked in the coin tube 33. However, as a result of research by the inventors of the present invention, it was found that there is a risk of counting errors occurring when there are a large number of coins C stacked in the coin tube 33 due to variations in the thickness of the coins C. Therefore, the coin counting system 10 of this embodiment counts the number of coins from the number of stripes in the striped pattern of the stack of coins C stacked in the coin tube 33, rather than counting the number of coins from the height of the stack of coins C.
[0031] FIG. 4 is a diagram showing an example of an image of the coin storage cassette 30 acquired by the coin counting system 10 of the present embodiment.
[0032] In the image of the coin storage cassette 30, in the stack of coins C stacked in each coin tube 33, the coin C portion is relatively bright and the portion between the coins C is relatively dark. In other words, the stack of coins C in each coin tube 33 has a striped pattern in which relatively dark band areas and relatively bright band areas extending in the horizontal direction are alternately overlapped in the vertical direction. In the coin counting system 10 of this embodiment, the number of coins is counted by counting the number of stripes in this striped pattern.
[0033] FIG. 5 is a diagram for explaining a method of counting the number of coins based on an image of the coin storage cassette 30 in the coin counting system 10 of this embodiment.
[0034] In counting the number of coins based on the image of the coin storage cassette 30, the image of the coin storage cassette 30 is converted to grayscale, and then a reference line L extending in the stacking direction of the coins C in the coin tube 33 is set, as shown in the upper diagram of Fig. 5. Next, as shown in the lower diagram of Fig. 5, a differential value of the luminance of the image of the coin storage cassette 30 is calculated along the reference line L from the lower end to the upper end of the coin tube 33. The differential value of the luminance is calculated as the amount of change in the luminance value of each dot in the image of the coin storage cassette 30 (i.e., the difference value of luminance).
[0035] This differential brightness value has a peak p in the boundary region between the relatively dark band region and the relatively bright band region, that is, in the intermediate region between the boundary portion between the coins C and the center portion of the coin C. The number of peaks p in the differential brightness value corresponds to the number of coins in the stack of coins C. The coin counting system 10 of this embodiment counts the number of coins by counting the number of peaks p that exceed a predetermined threshold value Pth in the differential brightness value along the reference line L.
[0036] Moreover, the coin counting system 10 of this embodiment performs an averaging process when calculating the brightness differential value. Specifically, the coin counting system 10 of this embodiment uses the average brightness value of multiple dots (for example, the average brightness value of two adjacent dots) as the brightness value to be differentiated. Moreover, the coin counting system 10 of this embodiment sets multiple reference lines L (for example, sets three reference lines) extending in the stacking direction of the stack of coins C in the coin tube 33, adds up the brightness differential values calculated along each of the reference lines L, and then counts the number of peaks p of the brightness differential values.
[0037] Furthermore, the coin counting system 10 of this embodiment performs a correction process when counting the peaks p of the luminance differential value. Fig. 6 is a diagram for explaining the correction process in counting the peaks of the luminance differential value.
[0038] Specifically, the coin counting system 10 of this embodiment acquires in advance a predicted value D of the period (number of dots) of peaks p of the differential value of the luminance by Fourier transforming the luminance value along the reference line.
[0039] In the coin counting system 10 of this embodiment, each time it counts peaks p of the brightness differential value along the reference line L, a peak p that is within a certain range W (for example, ±20% of the predicted value of the period) from the position of the next peak p calculated from the predicted value D of the period of the peak p is counted as one count, and even if multiple peaks p exist within that range W, it does not count them multiple times.
[0040] In addition, in the coin counting system 10 of this embodiment, each time peaks p of the brightness differential value are counted along the reference line L, even if there is no peak p exceeding the threshold value Pth at the position of the next peak p calculated from the predicted value of the period of the peak p, if there is a peak p exceeding the threshold value Pth further ahead, the number of peaks p is counted as if a peak p exists.
[0041] FIG. 7 is a flow diagram showing the flow of coin counting processing in the coin counting system 10 of this embodiment.
[0042] First, the coin counting system 10 receives an input to the operation unit 13 and photographs the coin storage cassette 30 from the front with the camera 14 to obtain a cassette image, which is an image of the coin storage cassette 30 photographed from the front (S1).
[0043] Next, the coin counting system 10 performs pre-processing of the acquired cassette image (S2). In this pre-processing of the image, the coin counting system 10 sequentially performs grayscale conversion of the image, detection of the outline of the coin storage cassette 30, keystone correction of the outline of the coin storage cassette 30, and resizing to a predetermined size, thereby cutting out an image of only the coin storage cassette 30 observed from the front. The cut-out image of only the coin storage cassette 30 is corrected by keystone correction to an image of the coin storage cassette 30 observed from the front. In addition, the cut-out image of only the coin storage cassette 30 is resized so that the number of dots in the length and width of the outline of the coin storage cassette 30 becomes constant, making subsequent processing easier. In addition, in resizing the image, a process of stretching the image in the coin stacking direction may be performed. This process can improve the accuracy of counting the number of coins.
[0044] In addition to the above-mentioned processes, in this image pre-processing, the coin counting system 10 may also perform a process to correct distortion of the camera lens. When the coin storage cassette 30 is photographed from the front by the camera 14, as shown in FIG. 8, the coins in the upper part of the coin storage cassette 30 have an upward bow shape, the coins in the middle part have a rectangular shape, and the coins in the lower part have a downward bow shape. In the process to correct distortion of the camera lens, correction is performed so that all coins have a rectangular shape. This process can further improve the accuracy of coin counting.
[0045] In addition, in the pre-processing of the image, a process of removing the features of the coin storage cassette from the cassette image may be performed using an image of an empty coin storage cassette 30 in which no coins are stored. In this case, the image of the empty coin storage cassette 30 is stored in the cassette information storage unit 16 in advance.
[0046] Next, the coin counting system 10 sets a reference line L for calculating the above-mentioned brightness differential value for each coin tube 33 in the preprocessed image (S3). This reference line L is set based on the coordinate range of the coin tube 33. The coordinate range of the coin tube 33 is calculated from reference coordinates, which are the coordinates of a reference part (e.g., a payout slide or a specially provided marker). This reference coordinate is obtained by analyzing the preprocessed image. The acquisition of this reference coordinate and the calculation of the coordinate range of the coin tube 33 are performed using information on the configuration of the coin storage cassette 30 stored in the cassette information storage unit 16 (e.g., the position of each coin tube).
[0047] Next, the coin counting system 10 counts the number of coins for each coin tube 33 based on the differential value of the luminance along the set reference line L (S4). More specifically, the coin counting system 10 calculates the differential value of the luminance for each coin tube 33 along the set reference line L from the lower end to the upper end of the coin tube 33 and counts the peaks p, thereby counting the number of coins C. When counting the number of coins, the above-mentioned averaging process and correction process are also performed.
[0048] Furthermore, in counting the number of coins, when the coin counting system 10 finds doubt as to whether or not a coin is present in counting the peak p of the differential value of the luminance, it may perform a process of determining in detail whether or not a coin is present by image recognition such as template matching. In this case, image data for comparison required for image recognition is stored in advance in the cassette information storage unit 16. This process can further improve the accuracy of counting the number of coins.
[0049] Finally, the coin counting system 10 outputs and displays the count result on the display 12, and stores the count result together with the cassette image in the count result storage unit 17 (S5).
[0050] 9, the coin counting system 10 may have a communication unit 18 that communicates with an external system 90 such as a POS system of a POS register, and the result of counting the number of coins may be transmitted to the external system 90 via the communication unit 18. This allows the closing process and coin replenishment in the coin dispensing device to be performed more accurately and quickly.
[0051] Next, the operation of the coin counting system 10 of this embodiment will be described.
[0052] The coin counting system 10 of this embodiment is configured by a smartphone and an application installed on the smartphone. The camera 14 is built into the smartphone. The display 12 and the operation unit 13 of the coin counting system 10 of this embodiment are integrally configured as touch panel displays 12, 13.
[0053] 10A to 10D are diagrams showing displays on the touch panel displays 12 and 13 of the coin counting system 10 of this embodiment.
[0054] 10A shows the menu screen 41. This menu screen 41 is the screen that is displayed first when the coin counting system 10 is started up. In the illustrated example, a photographing & counting button section 411 and a counting result confirmation button section 412 are displayed as menu items. When counting the number of coins C stored in the coin storage cassette 30, the photographing & counting button section 411 is selected on the menu screen 41. The counting result confirmation button section 412 is an item that is selected when checking the counting result and an image of the coin storage cassette 30 that were acquired in a past coin count and stored in the counting result memory section 17.
[0055] 10B and 10C show the photographing & counting screen 42. This photographing & counting screen 42 is a screen that is displayed when the photographing & counting button section 411 is selected on the menu screen 41. The photographing & counting screen 42 has a camera image display section 421 that displays an image from the camera 14, a photographing button section 422 for instructing the coin counting system 10 to photograph the coin storage cassette 30, and a back button section 423 that is selected when returning to the menu screen 41.
[0056] The camera image display unit 421 displays a guide frame 421a having the same shape as the outer shape of the coin storage cassette 30. When acquiring an image of the coin storage cassette 30, as shown in Fig. 10C, the coin storage cassette 30 in the image of the camera 14 is aligned with the guide frame 421a and then the photographing button unit 422 is selected, so that the coin storage cassette 30 is photographed from the front. By acquiring an image of the coin storage cassette 30 by photographing using the guide frame 421a in this manner, it becomes easier to recognize the position of the outer shape of the coin storage cassette in the above-mentioned image pre-processing (S2).
[0057] When an instruction to photograph the coin storage cassette 30 is given on the photography & counting screen 42, the coin counting system 10 acquires a cassette image, which is an image of the coin storage cassette 30 photographed from the front. Next, the coin counting system 10 automatically counts the number of coins C based on the cassette image by the above-mentioned process. The coin counting system 10 also stores the coin counting result together with the acquired cassette image in the counting result storage unit 17. The counting result and cassette image stored in the counting result storage unit 17 can be confirmed by selecting the counting result confirmation button unit 412 on the menu screen 41.
[0058] 10D shows the counting result screen 43. This counting result screen 43 is displayed after an instruction to photograph the coin storage cassette 30 is given on the photographing & counting screen 42 and the number of coins is measured in the counting processing unit 15. The counting result screen 43 has a counting result display section 431, a cassette image display section 432, and a back button section 433 that is selected when returning to the menu screen 41. The counting result display section 431 displays the number of coins of each denomination and the total amount. The cassette image display section 432 displays the acquired cassette image.
[0059] As described above, the coin counting system 10 of this embodiment is a coin counting system that counts the number of coins stored in the coin storage cassette 30 having the coin tube 33, and includes a camera 14 that acquires a cassette image, which is an image of the coin storage cassette 30 taken from the front, and a counting processing unit 15 that counts the number of coins C stored in the coin storage cassette 30 based on the cassette image. This makes it possible to accurately and quickly count the number of coins in the coin storage cassette 30 when the coin dispensing device 20 starts operating and when closing out the transaction.
[0060] Furthermore, the coin counting system 10 of this embodiment counts the number of coins from the number of stripes in the striped pattern of the stack of coins stacked in the coin tube 33. This makes it possible to count the number of coins in the coin storage cassette 30 more accurately.
[0061] Furthermore, the coin counting system 10 of this embodiment has a counting result storage unit 17 that stores the counting results and cassette images. This makes it possible to reconfirm the number of coins C set in the coin storage cassette 30 when a discrepancy or other doubt arises in the closing process of the coin dispensing device 20. Note that the coin counting system 10 of the present invention may store only the cassette image in the counting result storage unit 17. In this case, it is preferable that the coin counting system 10 is configured to be able to count the number of coins based on the cassette image stored in the counting result storage unit 17.
[0062] Next, the coin counting program (or a storage medium storing the coin counting program) of this embodiment will be described.
[0063] The coin counting program of the present embodiment is a coin counting program that causes an information processing device to execute a process of counting the number of coins stored in the coin storage cassette 30 of the coin dispensing device 20.
[0064] The method of counting the number of coins in the coin counting program of this embodiment is basically the same as the method of counting the number of coins in the above-mentioned coin counting system 10, and is as follows.
[0065] First, this coin counting program causes the information processing device to execute a step of acquiring a cassette image, which is an image of the coin storage cassette 30 photographed from the front (S1).
[0066] Next, the coin counting program causes the information processing device to execute a step of performing pre-processing of the acquired cassette image (S2). In this image pre-processing, the coin counting program causes the information processing device to execute a step of cutting out an image of only the coin storage cassette 30 observed from the front by sequentially performing grayscale conversion of the image, detection of the outline of the coin storage cassette 30, keystone correction of the outline of the coin storage cassette 30, and resizing to a predetermined size.
[0067] In addition to the above-mentioned processes, in the pre-processing of the image, the coin counting program may cause the information processing device to perform a process of correcting the distortion of the camera lens. In addition, in the pre-processing of the image, the information processing device may perform a process of removing the features of the coin storage cassette from the cassette image by using an image of an empty coin storage cassette 30 in which no coins are stored.
[0068] Next, the coin counting program causes the information processing device to execute a step of setting a reference line L for calculating the above-mentioned brightness differential value for each coin tube 33 in the preprocessed image (S3). This reference line L is set based on the coordinate range of the coin tube 33. The coordinate range of the coin tube 33 is calculated from reference coordinates, which are the coordinates of a reference part (for example, a payout slide or a specially provided marker). This reference coordinate is obtained by analyzing the preprocessed image. The acquisition of this reference coordinate and the calculation of the coordinate range of the coin tube 33 are performed using information on the configuration of the coin storage cassette 30 that is given in advance.
[0069] Next, the coin counting program counts the number of coins for each coin tube 33 based on the differential value of the luminance along the set reference line L (S4). More specifically, the coin counting program causes the information processing device to execute a step of calculating, for each coin tube 33, a differential value of the luminance from the lower end to the upper end of the coin tube 33 along the set reference line L and counting the peaks p, thereby measuring the number of coins C. In measuring the number of coins, the above-mentioned averaging process and correction process are also performed.
[0070] In addition, when measuring the number of coins, if doubt arises as to whether or not a coin is present when counting the peak p of the brightness differential value, this coin counting program may cause the information processing device to perform a process of determining in detail whether or not a coin is present by image recognition such as template matching.
[0071] Finally, the coin counting program outputs the count result (S5). At this time, the program may further cause the information processing device to execute a step of storing the count result together with the cassette image in the count result storage unit 17.
[0072] As described above, the coin counting program of this embodiment is a coin counting program for counting the number of coins stored in the coin storage cassette 30 having the coin tube 33, and causes an information processing device to execute a cassette image acquisition step for acquiring a cassette image, which is an image of the coin storage cassette 30 taken from the front, and a counting processing step for counting the number of coins stored in the coin storage cassette 30 based on the cassette image. This makes it possible to accurately and quickly count the number of coins in the coin storage cassette 30 at the start of operation of the coin dispensing device 20 and at the time of closing processing.
[0073] Furthermore, the coin counting program of this embodiment counts the number of coins from the number of stripes in the striped pattern of the stack of coins stacked in the coin tube 33. This makes it possible to count the number of coins in the coin storage cassette 30 more accurately.
[0074] The coin counting program of this embodiment also causes the information processing device to execute a counting result storage step of storing the counting result and the cassette image in the counting result storage unit 17. This makes it possible to reconfirm the number of coins C set in the coin storage cassette 30 when a discrepancy or other doubt arises in the closing process of the coin dispensing device 20. The coin counting program of the present invention may also store only the cassette image in the counting result storage unit 17. In this case, it is preferable that the coin counting program is configured to be able to count the number of coins based on the cassette image stored in the counting result storage unit 17.
[0075] Next, an example of arranging the marks 36, 37 on the coin storage cassette 30 and its surrounding area will be described.
[0076] FIG. 11 is a diagram showing an example of marks 36, 37 arranged on such a coin storage cassette 30 and its surrounding area.
[0077] In the example shown in FIG. 11, an identification mark 36 is arranged on the front side of the coin storage cassette 30, and a cutout mark 37 is arranged in the peripheral area of the coin storage cassette 30.
[0078] The identification mark 36 is a mark for identifying the presence or absence and the type of the coin storage cassette 30. The coin counting system 10 detects the identification mark 36 arranged on the front side of the coin storage cassette 30 by template matching or the like from a preview image when acquiring a cassette image. At this time, the coin counting system 10 identifies the presence or absence of the coin storage cassette 30 from the presence or absence of the detection of the identification mark 36, and identifies the type of the coin storage cassette 30 from the detection coordinates of the detected identification mark 36.
[0079] The coin counting system 10 can perform the above-mentioned pre-processing (S2) of the cassette image according to the type of the coin storage cassette 30 identified in this manner. Furthermore, the coin counting system 10 can determine the denomination of the coins stored in each coin tube 33 from the type of the coin storage cassette 30 identified in this manner.
[0080] The coin counting system 10 may detect the identification mark 36 from the cassette image, not from a preview image when acquiring the cassette image. The coin counting system 10 may identify the type of the coin storage cassette 30 from the shape of the identification mark 36, not from the detection coordinates of the identification mark 36. The identification mark 36 may identify only the type of the coin storage cassette 30.
[0081] The cut-out marks 37 are marks for cutting out the area of the coin storage cassette 30 from the cassette image. In the illustrated example, four cut-out marks 37 are provided in the outer areas of the four corners of the coin storage cassette 30 in the coin dispensing device main body 21, respectively.
[0082] In the above-mentioned pre-processing of the cassette image (S2), the coin counting system 10 detects the cut-out mark 37 from the cassette image, and cuts out the outline of the outer shape of the coin storage cassette 30 based on the detection coordinates of the detected cut-out mark 37. The coin counting system 10 can also perform keystone correction based on the detection coordinates of the cut-out mark 37.
[0083] The cut-out marks 37 may be provided on the coin storage cassette 30, instead of on the coin dispensing device main body 21. The number and arrangement of the cut-out marks 37 are not limited to those shown in Fig. 11. For example, three cut-out marks 37 may be provided in the peripheral areas of three of the four corners of the coin storage cassette 30. Furthermore, five or more cut-out marks 37 may be provided. Furthermore, the cut-out marks 37 may be provided in the peripheral areas of the four sides of the coin storage cassette 30, instead of the four corners.
[0084] Next, another example of a method for counting the number of coins based on an image of the coin storage cassette 30 will be described.
[0085] FIG. 12 is a diagram for explaining another example of a method for counting the number of coins based on an image of the coin storage cassette 30. In FIG.
[0086] In this coin counting method, the number of coins is counted by counting points d where the brightness is at a minimum along a set reference line L for each coin tube 33. The points d where the brightness is at a minimum correspond to the gaps between coins.
[0087] The coin counting system 10 detects the bottom end position e1 and the top end position e2 of the coins stored in the coin tube 33, and counts the points where the brightness is at a minimum value, starting from the bottom end position e1 to the top end position e2. For example, the bottom end position e1 is detected as a rising edge of the brightness, and the top end position e2 is detected as a falling edge of the brightness.
[0088] The counting of points d where the luminance has a minimum value is performed based on the differential value of the luminance along the reference line L. Specifically, points c where the differential value of the luminance switches from negative to positive are counted as points d where the luminance has a minimum value.
[0089] In counting at this point d, the coin counting system 10 performs a correction process similar to the coin counting method of the present embodiment described above.
[0090] Specifically, the coin counting system 10 obtains a predicted value of the period (number of dots) of points d where the luminance is at a minimum value in advance by performing a Fourier transform on the luminance values along the reference line. Then, each time the coin counting system 10 counts a point d that is within a certain range (for example, ±20% of the predicted value of the period) from the position of the next point d calculated from the predicted value of the period of point d, it counts it as one point, and does not count multiple points d even if they exist within that range.
[0091] In addition, each time the coin counting system 10 counts a point d, even if a point d is not present at the position of the next point d calculated from the predicted value of the period of point d, if a point d exists further ahead, the coin counting system 10 counts the number of points d as if a point d exists.
[0092] Next, another example of a coin dispensing device that is a target of coin counting in the coin counting system 10 of this embodiment will be described.
[0093] 13A and 13B are perspective views showing another example of a coin dispensing device 50. This coin dispensing device 50 has an opening / closing cover 52, and Fig. 13A shows the opening / closing cover 52 in a closed state, and Fig. 13B shows the opening / closing cover 52 in an open state.
[0094] This coin dispensing device 50 has a coin dispensing device main body 51, a coin storage cassette 30, an opening / closing cover 52, and a camera 14. In addition, the coin dispensing device 50 has a coin dispensing opening (not shown) on the lower surface of the coin dispensing device main body 51.
[0095] In addition, the coin dispensing device 50 may have its camera 14 connected to an external device (not shown) that constitutes the coin counting system 10, or the coin dispensing device 50 itself may comprise all or part of the coin counting system 10.
[0096] The coin storage cassette 30 is detachably attached to the front side of the coin dispensing device main body 51. The configuration of this coin storage cassette 30 is the same as the configuration of the previously described coin storage cassette 30. In the example shown in FIG. 13B , the previously described identification mark 36 is arranged on the front side of the coin storage cassette 30, and the previously described cut-out mark 37 is arranged in the peripheral area of the coin storage cassette 30.
[0097] 13B, the coin storage cassette 30 is attached to the coin dispensing device main body 51 in a tilted state so as to fall backward. With this configuration, the coins stacked in the coin tube 33 can be aligned.
[0098] The openable cover 52 is provided on the front side of the coin dispensing device main body 51, and is in a closed state in which it covers the coin storage cassette 30, and in an open state in which it is retracted from the coin storage cassette 30.
[0099] In the example shown in Figures 13A and 13B, the open-close cover 52 is pivotally attached to the coin dispensing device main body 21, and the pivotal attachment part 52a is located at the lower end of the front side of the coin dispensing device main body 51 and also at the lower end of the open-close cover 52.
[0100] The camera 14 is disposed on the opening / closing cover 52 so as to photograph the coin storage cassette 30 and obtain an image of the coin storage cassette 30 when the opening / closing cover 52 is open. In the example shown in Fig. 13B, the camera 14 is disposed near the upper end of the inside of the opening / closing cover 52 (i.e., the side facing the coin dispensing device main body 51).
[0101] 13B, the camera 14 is disposed in a drawer section 53 provided near the upper end of the opening / closing cover 52. The drawer section 53 is a member disposed so as to be able to be drawn out from the upper end of the opening / closing cover 52. By disposing the camera 14 in the drawer section 53, it is possible to dispose the camera 14 at a position farther from the coin storage cassette 30 than the upper end of the opening / closing cover 52.
[0102] 13B, when the opening / closing cover 52 is open, the coin storage cassette 30 is tilted so as to fall backward, and the camera 14 is positioned below the extension of the floor surface of the coin storage cassette 30. This is to prevent the camera 14 from photographing the top surfaces of the coins stacked in the coin storage cassette 30. In this configuration, the accuracy of detecting the top end position e2 of the coins stored in the coin tube 33 described above is good.
[0103] In the coin dispensing device 50 having the above configuration, the positional relationship between the coin storage cassette 30 and the camera 14 is fixed, so it is possible to stably acquire cassette images suitable for counting the number of coins. In other words, in the coin counting system 10 having the coin dispensing device 50, the positional relationship between the coin storage cassette 30 and the camera 14 is fixed, so it is possible to stably acquire cassette images suitable for counting the number of coins.
[0104] The above-mentioned coin dispensing device 50 can also be configured as a coin storage device that does not have a mechanism for dispensing coins. The configuration of this coin storage device is the same as that of the coin dispensing device 50, except that it does not have a mechanism for dispensing coins. In other words, the above-mentioned explanation of the configuration of the coin dispensing device 50 applies to the configuration of the coin storage device. In this case, however, the "coin dispensing device 50" and the "coin dispensing device main body 51" should be read as the "coin storage device 50" and the "coin storage device main body 51", respectively. The coin dispensing device 50 is both a coin dispensing device and a coin storage device.
[0105] Although one embodiment of the present invention has been described above, the coin counting system and the coin counting program of the present invention are not limited to the above-described embodiment. The coin counting system and the coin counting program of the present invention can be embodied in various other forms, and various omissions, substitutions, changes, and additions can be made without departing from the gist of the invention.
[0106] For example, the coin counting system and coin counting program of the above-described embodiment count the number of coins stored in a coin storage cassette having multiple coin tubes 33, but the coin counting system and coin counting program of the present invention are not limited to this and may also count the number of coins stored in a coin storage cassette having one coin tube.
[0107] Furthermore, while the coin counting system and coin counting program of the above-described embodiment count the number of coins stored in a coin storage cassette having a coin tube 33, the coin counting system and coin counting program of the present invention are not limited to this and may count the number of coins stored in a coin storage unit 30 that stacks and stores coins. An example of such a coin storage unit 30 is a coin case as shown in Figures 14 and 15. In this case, the number of coins stored in the coin storage unit 30 is counted based on a coin storage unit image, which is an image of the coin storage unit 30 taken from the front. [Explanation of symbols]
[0108] 10 Coin counting system 11 Control section 12 Display 13 Control section 14 Camera 15 Counting Processing Section 16 Cassette information storage section 17 Counting result storage section 18 Communications Department 20 Coin dispensing device 21 Coin dispensing device main body 30 Coin storage cassette, coin storage unit 31 Coin storage cassette body 32 Coin tube cover 33 Coin Tube 34 Payout Slide 34a Coin storage hole 36 Identification Mark 37 Cutting mark 41 Menu screen 411 Shooting & Counting Buttons 412 Counting result confirmation button section 42 Shooting & Counting Screen 421 Camera image display unit 421a Guide frame 422 Shooting button 423 Back button 43 Counting result screen 431 Counting result display unit 432 Cassette image display unit 433 Back button part 50 Coin dispensing device, coin storage device 51 Coin dispensing device body, coin storage device body 52 Openable cover 52a Pivot joint 53 Drawer section 90 External Systems L reference line
Claims
1. A coin counting system that counts the number of coins stored in a coin storage unit that stores and stacks coins, comprising: a camera for acquiring a coin storage unit image, which is an image of the coin storage unit taken from the front; a counting processing unit that counts the number of coins stored in the coin storage unit based on the image of the coin storage unit, The counting processing unit counts the number of coins based on the number of stripes in the striped pattern of the stack of coins in the coin storage unit. Coin counting system.
2. 2. The coin counting system according to claim 1, the coin storage unit is a coin storage cassette having a coin tube, The coin storage unit image is a cassette image obtained by photographing the coin storage cassette from the front. Coin counting system.
3. 3. The coin counting system according to claim 1, The counting processing unit sets a reference line extending in the stacking direction of the coin stack, calculates a differential value of the brightness of the coin storage section image along the reference line, and counts the number of coins based on the differential value of the brightness.
4. A coin counting system according to any one of claims 1 to 3, The coin counting system further comprises a counting result storage unit that stores the image of the coin storage unit.
5. A coin counting program for causing an information processing device to execute a process of counting the number of coins stored in a coin storage unit that stacks and stores coins, a coin storage unit image acquiring step of acquiring a coin storage unit image which is an image obtained by photographing the coin storage unit from the front; a counting process step of counting the number of coins stored in the coin storage unit based on the image of the coin storage unit, The counting process step counts the number of coins based on the number of stripes in the striped pattern of the stack of coins in the coin storage unit. Coin counting program.
6. 6. The coin counting program according to claim 5, the coin storage unit is a coin storage cassette having a coin tube, The coin storage unit image is a cassette image obtained by photographing the coin storage cassette from the front. Coin counting program.
7. 7. The coin counting program according to claim 5, The counting processing step is a coin counting program in which a reference line extending in the stacking direction of the coin stack is set, a differential value of the brightness of the coin storage section image is calculated along the reference line, and the number of coins is counted based on the differential value of the brightness.
8. 8. The coin counting program according to claim 5, further comprising: Furthermore, the coin counting program causes an information processing device to execute a counting result storage step of storing the coin storage unit image in a counting result storage unit.
9. The coin storage device includes a main body, a coin storage cassette, an opening / closing cover, and a camera. The coin storage cassette is detachably attached to the front side of the coin storage device body, The openable cover is provided on the front side of the coin storage device body, and has a closed state in which it covers the coin storage cassette, and an open state in which it is retracted from the coin storage cassette, The camera is disposed on the opening / closing cover so as to photograph the coin storage cassette and obtain an image of the coin storage cassette when the opening / closing cover is in an open state. Coin storage device.
10. The coin storage device according to claim 9, The camera is disposed so as to be located below a plane that is an extension of a floor surface of the coin storage cassette when the opening / closing cover is in an open state.
Citation Information
Patent Citations
Automatic transactor
JP1985100292A
Stracking number counter
JP1994052378A
Counter for packed coins
JP1995172420A
Coin processor
JP2009193204A
Automatic teller machine
JP2010140177A