Method and device for reducing card swiping conflict and card swiping equipment
By using the front camera and posture detection model in the financial POS terminal to determine the user's card swipe intention, the problem of card swipe conflict is solved, the user experience is improved and the device's appearance design and card reading performance are maintained.
Patent Information
- Application Number
- CN202411234504.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-04
- Publication Date
- 2024-11-22
AI Technical Summary
In financial POS terminals, when the magnetic stripe card/IC card swiping slot and the contactless card reading area are close, it is easy to cause card swiping conflicts and affect user experience. The existing solutions affect product appearance design or card reading performance.
By using the front camera in the card swiping device to collect videos of the user's card swiping action, use the posture detection model to determine the user's card swiping intention. If it is determined that it is a contact card swiping card, the non-contact reading module will be turned off to avoid card swiping conflicts.
Without changing the structure of the card swipe device, it reduces card swipe conflicts, improves user experience, and retains the original appearance design and card reading performance of the device.
Smart Images

Figure CN119007353A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing, and in particular to a method and device for reducing card swiping conflicts, and a card swiping device. Background Art
[0002] At present, financial POS terminals usually support magnetic stripe contact card swiping, contactless card swiping and IC contact card swiping at the same time, and most bank cards currently use the combination of magnetic stripe card, contactless card and IC card. Therefore, when the magnetic stripe card swiping slot and the contactless card reading area are close to each other, the contactless card swiping will be sensed in advance by the POS terminal during the process of the user swiping the magnetic stripe card, causing the POS terminal software to enter the contactless card swiping transaction processing flow in advance. However, the user does not realize that the bank card has been sensed and identified in a contactless manner at this time, and the user will still swipe the magnetic stripe card. At this time, the software has already entered the contactless card swiping transaction processing flow in advance and will not respond to the user's magnetic stripe card swiping action. Although a transaction can be completed in a contactless manner, the final card swiping method is inconsistent with the user's original card swiping intention, causing confusion in user use and affecting the user's experience.
[0003] Similar problems may occur when the IC card slot and the contactless card reading area are close to each other.
[0004] In order to avoid the above problems, one method is to modify the structure of the POS machine, and keep the magnetic stripe card / IC card swiping slot as far away from the contactless card reading area as possible, so as to avoid the contactless card swiping being sensed in advance when the magnetic stripe card / IC card is swiped, but this will affect the appearance design of the POS machine and it will not be possible to obtain a unique and beautiful product appearance. Another method is to reduce the card reading field strength of the contactless chip of the device and reduce the contactless card reading distance, but this will affect the card reading performance and user experience of the product.
[0005] Therefore, how to reduce the card swiping conflicts that occur when the magnetic stripe card / IC card swiping slot and the contactless card reading area of the smart POS terminal are close to each other is a technical problem that needs to be solved urgently. Summary of the invention
[0006] One of the purposes of the present invention is to overcome the deficiencies in the prior art and to provide a method and device for reducing card swiping conflicts and a card swiping device.
[0007] The technical solution provided by the present invention is as follows:
[0008] A method for reducing card swiping conflicts, comprising: when a card swiping device prompts a user to swipe a card, capturing a first image or a first video containing a user's card swiping action;
[0009] determining, based on the first image or the first video, whether the user intends to swipe a card using a contact card;
[0010] If it is determined that the user intends to use a contact card to swipe the card, the contactless card reading module of the card swiping device is turned off.
[0011] In some embodiments, if it is determined that the user intends to use a contact card to swipe the card, the contactless card reader module of the card swiping device is turned off and a timer is started at the same time;
[0012] If the timer times out, the contactless card reading module of the card swiping device is started.
[0013] In some embodiments, it also includes:
[0014] If the timer has not timed out and it is detected that there is a bank card in the contact card swiping slot of the card swiping device, the corresponding contact card swiping transaction process is entered.
[0015] In some embodiments, it also includes:
[0016] If it cannot be determined that the user intends to swipe the card using a contact card, and a contactless card swiping method is not detected, the first image or the first video continues to be captured.
[0017] In some embodiments, if it cannot be determined that the user intends to use a contact card to swipe the card, and a contactless card swiping method is detected, the card swiping transaction process corresponding to the swiping method is entered, and the collection of the first image or the first video is stopped.
[0018] The present invention also provides a device for reducing card swiping conflicts, comprising:
[0019] An image acquisition module, used for acquiring a first image or a first video including a user's card swiping action when the card swiping device prompts the user to swipe the card;
[0020] an intention recognition module, used for determining whether the user intends to swipe a card using a contact card according to the first image or the first video;
[0021] The card reading control module is used to turn off the contactless card reading module of the card swiping device if it is determined that the user intends to swipe the card using a contact card.
[0022] In some embodiments, the card reading control module is also used to turn off the contactless card reading module of the card swiping device and start a timer if it is determined that the user intends to use a contact card to swipe the card; if the timer times out, start the contactless card reading module of the card swiping device.
[0023] In some embodiments, it also includes:
[0024] The card swiping transaction module is used to enter the corresponding contact card swiping transaction process if the timer has not timed out and a bank card is detected in the contact card swiping slot of the card swiping device.
[0025] In some embodiments, the image acquisition module is further used to continue acquiring the first image or the first video if it cannot be determined that the user intends to swipe the card using a contact card and a contactless card swiping method is not detected.
[0026] The present invention also provides a card swiping device, comprising:
[0027] A camera, used to capture a first image or a first video including a user's card swiping action;
[0028] Memory, used to store programs;
[0029] A processor is used to implement the method for reducing card swiping conflicts described in any of the aforementioned embodiments when running the program.
[0030] The method, device and card swiping device for reducing card swiping conflicts provided by the present invention can at least bring the following beneficial effects:
[0031] The present invention utilizes the front camera of the card swiping device to collect a video or image of the user's action posture of holding the bank card, and determines the user's card swiping method in advance by analyzing the user's action posture in the image or video. When the user's card swiping method is to swipe the card using a contact card, the contactless card reading module is turned off, thereby reducing the card swiping conflict that is likely to occur when the contact card swiping slot and the contactless card reading area are close without changing the structure of the card swiping device, thereby improving the user's card swiping experience and retaining the original appearance design of the card swiping device. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The following will explain the preferred implementation mode in a clear and understandable manner with reference to the accompanying drawings, and further explain the above-mentioned characteristics, technical features, advantages and implementation methods of a method and apparatus for reducing card swiping conflicts, and a card swiping device.
[0033] Figure 1 is a flow chart of an embodiment of a method for reducing card swiping conflicts of the present invention;
[0034] Figure 2 is a flow chart of another embodiment of a method for reducing card swiping conflicts of the present invention;
[0035] Figure 3 It is a structural schematic diagram of an embodiment of a device for reducing card swiping conflicts of the present invention;
[0036] Figure 4 It is a structural schematic diagram of an embodiment of a card swiping device of the present invention;
[0037] Figure 5 It is a schematic diagram of the appearance of an existing card swiping device;
[0038] Figure 6 It is a typical card swiping action using a contactless card;
[0039] Figure 7 It is a typical card swiping action using a contact card.
[0040] Description of Figure Numbers:
[0041] 100. Image acquisition module, 200. Intention recognition module, 300. Card reading control module, 400. Card swiping transaction module, 10. Memory, 20. Program, 30. Processor, 40. Camera. DETAILED DESCRIPTION
[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the specific implementation methods of the present invention will be described below with reference to the accompanying drawings. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings and other implementation methods can be obtained based on these drawings without creative work.
[0043] In order to simplify the drawings, only the parts related to the present invention are schematically shown in each figure, and they do not represent the actual structure of the product. In addition, in order to simplify the drawings and facilitate understanding, in some figures, only one of the parts with the same structure or function is schematically drawn or marked. In this article, "one" not only means "only one", but also means "more than one".
[0044] One embodiment of the present invention, as Figure 1 As shown, a method for reducing card swiping conflicts is used in a card swiping device, comprising:
[0045] Step S100: When the card swiping device prompts the user to swipe the card, a first image or a first video including the user's card swiping action is captured;
[0046] Step S200 determines whether the user intends to use a contact card to swipe the card based on the first image or the first video; if it is determined that the user intends to use a contact card to swipe the card, execute step S300; otherwise, execute step S400;
[0047] Step S300: turn off the contactless card reading module of the card swiping device, stop collecting the first image or the first video, and jump to step S600;
[0048] Step S400 determines whether the card swiping is detected in the traditional method; if the card swiping is not detected in the traditional method, jump to step S100 and continue to capture the first image or the first video; otherwise, execute step S500;
[0049] Step S500 enters the card swiping transaction process corresponding to the card swiping method, and stops collecting the first image or the first video;
[0050] If it is detected in step S600 that there is a bank card in the contact card swiping slot of the card swiping device, the corresponding contact card swiping transaction process is entered.
[0051] Specifically, a card swiping device, such as a smart POS machine, such as Figure 5 As shown, on the front of the card swiping device, a front camera is provided below the magnetic stripe card swiping slot. The front camera is located in the upper area of the device. The camera adopts a variable-focus, wide-angle configuration with a depth of field range of 5cm to 40cm. Figure 5 This is only one example of a card swiping device. The card swiping device may also adopt other structural forms. As long as the action of the user inserting the bank card into the contact card swiping slot can be covered by the camera's field of view, the front camera may be set near the contact card swiping slot.
[0052] The camera of the card swiping device collects an image or video of the user's card swiping action, and the obtained image or video is called the first image or the first video. Because the collection starts when the user is prompted to swipe the card, the user's action posture of moving the bank card to the card swiping area can be obtained. The user's action posture in the first image or the first video is analyzed, and the user's intention to swipe the card with a contact card is identified in advance based on the action posture. Contact cards include magnetic stripe cards and IC cards.
[0053] like Figure 6 , Figure 7 As shown in the figure, the gesture of swiping a contactless card is significantly different from that of swiping a contact card. Therefore, the user's intention can be identified in advance at a long distance before the bank card enters the card swiping conflict area based on the user's card swiping gesture. The card swiping conflict area refers to the area where the contact card swiping area and the contactless card swiping area overlap. When the contact card swiping slot is close to the contactless card swiping area, a card swiping conflict area is likely to exist, causing a card swiping conflict.
[0054] When the user is prompted to swipe the card, the card swiping device calls the camera to capture the user's card swiping action and posture to obtain a first image or a first video; then the card swiping device uses the built-in posture detection model to identify the user's action in the first image or the first video, and determines whether the user intends to use a contact card to swipe the card based on the user's action posture.
[0055] The gesture detection model can be based on a machine learning algorithm and is used to process input image or video data to infer the type of user gesture or its probability, etc. The types of gestures include gestures of swiping a contactless card and gestures of swiping a contact card.
[0056] The gesture detection model can be obtained in advance through training on the server. For example, training data can be collected, that is, image samples of user card swiping actions under various card swiping methods are collected, and the types of gestures are annotated. The types of gestures include contact card swiping gestures and contactless card swiping gestures. The machine learning algorithm is trained with annotated image samples. When the machine learning algorithm can successfully identify the type of gesture, the corresponding gesture detection model is obtained, and then the gesture detection model is built into the card swiping device. Using the gesture detection model to recognize the input image or video can improve the accuracy of action recognition.
[0057] When it is determined that the user intends to swipe the card using a contact card, the contactless card reader module of the card swiping device is turned off, which can reduce the occurrence of card swiping conflicts. Even if the user enters the card swiping conflict area, it will not cause a card swiping conflict.
[0058] When it is not possible to determine whether the user intends to swipe the card using a contact card, determine whether the card swiping is detected by the traditional method. The so-called traditional method includes whether the contactless card reader module detects the card swiping and whether the bank card is detected in the contact card swiping slot. If the card swiping is not detected, continue to capture the first image or the first video, and determine whether the user intends to swipe the card using a contact card based on the new first image or the first video. If the traditional method detects the card swiping, such as detecting the contactless card swiping, the contactless card swiping transaction process is entered; for example, if a bank card is present in the magnetic stripe card swiping slot, the magnetic stripe card swiping transaction process is entered.
[0059] In this embodiment, by collecting images or videos of the user's card swiping action, it is determined whether the user intends to use a contact card to swipe the card based on the user's action posture in the image or video. The user's card swiping method can be identified in advance at a long distance. When the user's card swiping method is to use a contact card to swipe the card, the contactless card reader module is turned off, thereby avoiding card swiping conflicts caused by the contactless card swiping method being activated in advance when the contact card swiping method is used when the contact card swiping slot is close to the contactless card reading area without changing the structure of the card swiping device.
[0060] Another embodiment of the present invention, as Figure 2 As shown, a method for reducing card swiping conflicts is used in a card swiping device, comprising:
[0061] Step S110: When the card swiping device prompts the user to swipe the card, a first image or a first video including the user's card swiping action is captured;
[0062] Step S210 determines whether the user intends to use a contact card to swipe the card based on the first image or the first video; if it is determined that the user intends to use a contact card to swipe the card, execute step S310; otherwise, execute step S410;
[0063] Step S310: turn off the contactless card reading module of the card swiping device, stop collecting the first image or the first video, start a timer, and jump to step S610;
[0064] Step S410 determines whether the card swiping is detected in the traditional method; if the card swiping is not detected in the traditional method, jump to step S110 and continue to capture the first image or the first video; otherwise, execute step S510;
[0065] Step S510 enters the card swiping transaction process corresponding to the card swiping method, and stops collecting the first image or the first video;
[0066] Step S610 determines whether the timer has timed out; if the timer has timed out, execute step S710; otherwise, execute step S810;
[0067] Step S710 starts the contactless card reading module of the card swiping device;
[0068] If it is detected in step S810 that there is a bank card in the contact card swiping slot of the card swiping device, the corresponding contact card swiping transaction process is entered.
[0069] Specifically, most of the steps of this embodiment are the same as those of the previous embodiment and will not be repeated here. The difference is that when it is determined that the user intends to use a contact card to swipe the card, not only is the contactless card reader module of the card swiping device turned off, but a timer is also started at the same time (see step S310). The duration of the timer is set based on experience. Generally speaking, after the user is identified to use a contact card to swipe the card based on the user's action posture, the presence of a bank card in the contact card swiping slot should be detected before the timer times out. In order to prevent recognition errors, the contactless card reader module is turned on after the timer times out. If a bank card is detected in the contact card swiping slot after the timer times out, the contact card swiping transaction process is entered; if a contactless card swiping is detected, the contactless card swiping transaction process is entered.
[0070] One embodiment of the present invention, as Figure 3 As shown, a device for reducing card swiping conflicts includes:
[0071] The image acquisition module 100 is used to acquire a first image or a first video including the user's card swiping action when the card swiping device prompts the user to swipe the card;
[0072] The intention recognition module 200 is used to determine whether the user intends to swipe the card using a contact card according to the first image or the first video;
[0073] The card reading control module 300 is used to turn off the contactless card reading module of the card swiping device and stop collecting the first image or the first video if it is determined that the user intends to swipe the card using a contact card.
[0074] A judgment module, used to judge whether the traditional method detects the card swiping; if the traditional method does not detect the card swiping, the image acquisition module is notified to continue to collect the first image or the first video; otherwise, the card swiping transaction module is notified to execute the corresponding card swiping transaction process;
[0075] The card swiping transaction module 400 is used to enter the contactless card swiping transaction process if a contactless card swiping method is detected; enter the corresponding contact card swiping transaction process if a bank card is detected in the contact card swiping slot of the card swiping device; and notify the image acquisition module to stop acquiring the first image or the first video.
[0076] In this embodiment, by collecting images or videos of the user's card swiping action, it is determined whether the user intends to use a contact card to swipe the card based on the user's action posture in the image or video. The user's card swiping method can be identified in advance at a long distance. When the user's card swiping method is to use a contact card to swipe the card, the contactless card reader module is turned off, thereby avoiding card swiping conflicts caused by the contactless card swiping method being activated in advance when the contact card swiping method is used when the contact card swiping slot is close to the contactless card reading area without changing the structure of the card swiping device.
[0077] In one embodiment, the card reading control module is also used to turn off the contactless card reading module of the card swiping device and start a timer if it is determined that the user intends to use a contact card to swipe the card; if the timer times out, the contactless card reading module of the card swiping device is started.
[0078] It should be noted that the embodiment of the device for reducing card swipe conflicts provided by the present invention and the embodiment of the method for reducing card swipe conflicts provided above are based on the same inventive concept and can achieve the same technical effect. Therefore, other specific contents of the embodiment of the device for reducing card swipe conflicts can refer to the contents of the embodiment of the method for reducing card swipe conflicts provided above.
[0079] One embodiment of the present invention, as Figure 4 As shown, a card swiping device includes:
[0080] Camera 40, used to capture a first image or a first video including a user's card swiping action;
[0081] A memory 10, used for storing a program 20;
[0082] The processor 30 is used to implement the method for reducing card swiping conflicts of any of the aforementioned embodiments when running the program 20.
[0083] The memory 10 may be any internal storage unit and / or external storage device capable of storing data and programs. For example, the memory 10 may be a plug-in hard disk, a smart memory card (SMC), a secure digital (SD) card, or a flash memory card.
[0084] As needed, the processor 30 can be a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), a general-purpose processor or other logic devices, etc.
[0085] One embodiment of the present invention is a readable storage medium having a computer program stored thereon, which, when executed by a processor, can implement a method for reducing card swiping conflicts as described in the aforementioned embodiment. That is, when part or all of the technical solutions that contribute to the prior art in the aforementioned embodiment of the present invention are embodied in the form of a computer software product, the aforementioned computer software product is stored in a computer-readable storage medium. The computer-readable storage medium can be any physical device or equipment that can carry computer program codes. For example, a USB flash drive, a mobile disk, a magnetic disk, an optical disk, a computer memory, a read-only memory, a random access memory, etc.
[0086] It should be noted that the above embodiments can be freely combined as needed. The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered as the protection scope of the present invention.
Claims
1. A method to reduce card swiping conflicts, It is characterized in that include: When the card swiping device prompts the user to swipe the card, a first image or a first video including the user's card swiping action is captured; determining, based on the first image or the first video, whether the user intends to swipe a card using a contact card; If it is determined that the user intends to use a contact card to swipe the card, the contactless card reading module of the card swiping device is turned off.
2. The method for reducing card swiping conflicts according to claim 1, It is characterized in that If it is determined that the user intends to use a contact card to swipe the card, the contactless card reader module of the card swiping device is turned off and a timer is started at the same time; If the timer times out, the contactless card reading module of the card swiping device is started.
3. The method for reducing card swiping conflicts according to claim 2, It is characterized in that Also includes: If the timer has not timed out and it is detected that there is a bank card in the contact card swiping slot of the card swiping device, the corresponding contact card swiping transaction process is entered.
4. The method for reducing card swiping conflicts according to claim 1, It is characterized in that Also includes: If it cannot be determined that the user intends to swipe the card using a contact card, and a contactless card swiping method is not detected, the first image or the first video continues to be captured.
5. The method for reducing card swiping conflicts according to claim 1, It is characterized in that If it cannot be determined that the user intends to use a contact card to swipe the card, and a contactless card swiping method is detected, the card swiping transaction process corresponding to the card swiping method is entered, and the collection of the first image or the first video is stopped.
6. A device for reducing card swiping conflicts, It is characterized in that include: An image acquisition module, used for acquiring a first image or a first video including a user's card swiping action when the card swiping device prompts the user to swipe the card; an intention recognition module, used for determining whether the user intends to swipe a card using a contact card according to the first image or the first video; The card reading control module is used to turn off the contactless card reading module of the card swiping device if it is determined that the user intends to swipe the card using a contact card.
7. The device for reducing card swiping conflicts according to claim 6, It is characterized in that The card reading control module is also used to turn off the contactless card reading module of the card swiping device and start a timer if it is determined that the user intends to use a contact card to swipe the card; if the timer times out, start the contactless card reading module of the card swiping device.
8. The device for reducing card swiping conflicts according to claim 6, It is characterized in that Also includes: The card swiping transaction module is used to enter the corresponding contact card swiping transaction process if the timer has not timed out and a bank card is detected in the contact card swiping slot of the card swiping device.
9. The device for reducing card swiping conflicts according to claim 6, It is characterized in that The image acquisition module is further configured to continue acquiring the first image or the first video if it cannot be determined that the user intends to swipe the card using a contact card and a contactless card swiping method is not detected.
10. A card swiping device, It is characterized in that include: A camera, used to capture a first image or a first video including a user's card swiping action; Memory, used to store programs; A processor, configured to implement the method for reducing card swiping conflicts as described in any one of claims 1 to 5 when running the program.
