Payment processing method, apparatus, and device
By integrating cameras and near-field communication modules into the POS device, automatic detection and switching of payment modes can be achieved, solving the problem of insufficient compatibility of the POS device and improving the convenience of user payments and the application range of the device.
Patent Information
- Application Number
- CN202511960667.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-24
- Publication Date
- 2026-06-26
- Estimated Expiration
- 2045-12-24
AI Technical Summary
Existing point-of-sale (POS) devices lack operational convenience when compatible with multiple payment methods, leading to a complicated payment process for users.
By integrating a camera and a near-field communication module into the POS device, it can achieve environmental image acquisition, payment code detection, mobile phone and IC card detection, and automatically switch working modes to support QR code payment, near-field communication tag mode and near-field communication card reader mode, and adaptively select the payment method according to the user's intention.
It improves the compatibility and ease of use of POS devices with multiple payment methods, simplifies the user payment process, and enhances the payment experience.
Smart Images

Figure CN121391253B_ABST
Abstract
Description
Technical Field
[0001] This specification relates to the field of payment technology, and in particular to payment processing methods, apparatus and equipment. Background Technology
[0002] Near Field Communication (NFC) is a short-range, high-frequency radio technology that evolved from contactless Radio Frequency Identification (RFID) and interconnection technologies. It operates at a frequency of 13.56MHz within a distance of 20 centimeters, providing a very secure and fast communication method for various electronic products.
[0003] Currently, in the payment field, in order to improve payment convenience, some payment service providers have launched POS devices that support near-field communication (NFC). Users can tap their NFC-enabled mobile phones against the POS device to make payments based on near-field sensing interaction.
[0004] However, there are still many other payment methods available. For users, the compatibility of current POS devices with multiple payment methods needs improvement; otherwise, it may bring additional operational burdens to some users' payment process.
[0005] Therefore, a near-field communication payment solution with better compatibility and ease of operation is needed. Summary of the Invention
[0006] This specification provides one or more embodiments of payment processing methods, apparatus, devices, and storage media to solve the following technical problem: the need for a near-field communication payment solution with better compatibility and ease of operation.
[0007] To solve the above-mentioned technical problems, one or more embodiments of this specification are implemented as follows:
[0008] This specification provides one or more embodiments of a payment processing method applied to a cash register device, the method comprising:
[0009] Collect images of the surrounding environment;
[0010] Detect whether the environmental image contains a payment code;
[0011] If so, the cash register is controlled to operate in QR code payment mode, and the payment process is advanced by scanning and parsing the payment code;
[0012] If not, then the environmental image is further checked to see if it contains a mobile phone or IC card, and a re-detection result is obtained;
[0013] If the re-detection result indicates that the environmental image contains a mobile phone, then the cash register is controlled to operate in near-field communication tag mode so that the mobile phone can read the cash register and advance the payment process;
[0014] If the re-detection result indicates that the environmental image contains an IC card, then the POS device is controlled to operate in near-field communication card reader mode so as to advance the payment process by reading the IC card through the POS device.
[0015] This specification provides one or more embodiments of a payment processing device, applied to a cash register device, the device comprising:
[0016] The image acquisition module captures images of the surrounding environment;
[0017] The code detection module detects whether the environmental image contains a payment code;
[0018] If the QR code switching module is present, it controls the POS device to operate in QR code payment mode and advances the payment process by scanning and parsing the payment code.
[0019] If not, the re-detection module will then detect whether the environmental image contains a mobile phone or an IC card to obtain a re-detection result.
[0020] The tag mode switching module controls the POS device to operate in near-field communication tag mode if the re-detection result indicates that the environmental image contains a mobile phone, so that the mobile phone can read the POS device and advance the payment process.
[0021] The card reader mode switching module controls the POS device to operate in near-field communication card reader mode if the re-detection result reflects that the environmental image contains an IC card, so as to advance the payment process by reading the IC card through the POS device.
[0022] This specification provides one or more embodiments of a payment processing device applied to a cash register. The payment processing device includes: a camera, a QR code payment module, a near-field communication tag module, a near-field communication card reader module, and a working mode switching module.
[0023] The camera captures images of the surrounding environment;
[0024] The working mode switching module detects whether the environmental image contains a payment code.
[0025] If so, the QR code payment module will be invoked to scan and parse the payment code to advance the payment process;
[0026] If not, then the environmental image is further checked to see if it contains a mobile phone or IC card, and a re-detection result is obtained;
[0027] If the re-detection result indicates that the environmental image contains a mobile phone, then the near-field communication tag module is activated so that the mobile phone can read the cash register device and advance the payment process;
[0028] If the re-detection result indicates that the environmental image contains an IC card, then the near-field communication card reader module is activated to enable the payment process to proceed by reading the IC card through the POS device.
[0029] This specification provides one or more embodiments of a payment processing device, applied to a cash register device, the payment processing device comprising:
[0030] At least one processor; and,
[0031] A memory communicatively connected to the at least one processor; wherein,
[0032] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform:
[0033] Collect images of the surrounding environment;
[0034] Detect whether the environmental image contains a payment code;
[0035] If so, the cash register is controlled to operate in QR code payment mode, and the payment process is advanced by scanning and parsing the payment code;
[0036] If not, then the environmental image is further checked to see if it contains a mobile phone or IC card, and a re-detection result is obtained;
[0037] If the re-detection result indicates that the environmental image contains a mobile phone, then the cash register is controlled to operate in near-field communication tag mode so that the mobile phone can read the cash register and advance the payment process;
[0038] If the re-detection result indicates that the environmental image contains an IC card, then the POS device is controlled to operate in near-field communication card reader mode so as to advance the payment process by reading the IC card through the POS device.
[0039] This specification provides one or more embodiments of a non-volatile computer storage medium for use in a point-of-sale (POS) device. The storage medium stores computer-executable instructions configured as follows:
[0040] Collect images of the surrounding environment;
[0041] Detect whether the environmental image contains a payment code;
[0042] If so, the cash register is controlled to operate in QR code payment mode, and the payment process is advanced by scanning and parsing the payment code;
[0043] If not, then the environmental image is further checked to see if it contains a mobile phone or IC card, and a re-detection result is obtained;
[0044] If the re-detection result indicates that the environmental image contains a mobile phone, then the cash register is controlled to operate in near-field communication tag mode so that the mobile phone can read the cash register and advance the payment process;
[0045] If the re-detection result indicates that the environmental image contains an IC card, then the POS device is controlled to operate in near-field communication card reader mode so as to advance the payment process by reading the IC card through the POS device.
[0046] The above-mentioned at least one technical solution adopted in one or more embodiments of this specification can achieve the following beneficial effects: Based on the real-time acquisition of surrounding environmental images by the camera, a two-stage detection is performed to intelligently and finely infer the user's intention to choose a payment method, thereby adaptively supporting the automatic switching of multiple working modes provided by the cash register to accurately meet the user's intention without the need for the user or store clerk to manually select the working mode provided by the cash register. At least based on the first stage of detection, it can determine whether to switch to the QR code payment mode. If not, it can further determine whether to switch to the near-field communication tag mode or the near-field communication card reader mode based on the second stage of detection. In this way, it can support users to freely use mobile phone QR code scanning, mobile phone near-field communication or IC card payment methods, thereby improving the compatibility of cash registers that can support near-field communication payment, helping to ensure operational convenience, helping to increase the user's enthusiasm for using such cash registers, and thus obtaining a better payment experience. Attached Figure Description
[0047] To more clearly illustrate the technical solutions in the embodiments or prior art of this specification, the drawings used in the description of the embodiments or prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0048] Figure 1 A flowchart illustrating a payment processing method provided for one or more embodiments of this specification;
[0049] Figure 2 A schematic diagram of the surface area distribution of a cash register device provided for one or more embodiments of this specification;
[0050] Figure 3 A schematic diagram of a payment processing flow for a cash register device provided for one or more embodiments of this specification;
[0051] Figure 4 A flowchart illustrating a working mode control scheme for a cash register based on photosensitivity detection, provided for one or more embodiments of this specification;
[0052] Figure 5 A flowchart illustrating a working mode control scheme for a point-of-sale (POS) device using IC cards and mobile phones, provided for one or more embodiments of this specification.
[0053] Figure 6 A schematic diagram of the structure of a payment processing device provided in one or more embodiments of this specification;
[0054] Figure 7 This is a schematic diagram of the structure of a payment processing device provided for one or more embodiments of this specification. Detailed Implementation
[0055] This specification provides payment processing methods, apparatus, devices, storage media, and computer program products through its embodiments.
[0056] To enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this specification, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this application.
[0057] The solution proposed in this application is applied to a POS device, which has at least three operating modes: QR code payment mode, near-field communication tag mode (i.e., near-field communication card emulation mode), and near-field communication card reader mode. Based on a similar approach, it can also have more operating modes.
[0058] This application provides a solution that enables POS devices to better and more conveniently accommodate these three working modes. As a result, users can pay by scanning a code, using their mobile phones as near-field communication card readers to touch the POS device, or using IC cards such as bank cards and membership cards to be read and paid for on the POS device based on near-field communication. This helps to improve the overall user experience, expand the application scope of the POS device, increase the enthusiasm of users and merchants to use it, and also help to simplify the equipment scale at the merchant's cashier and reduce labor and material costs.
[0059] Based on this general introduction, the following detailed description of the scheme in this application will be provided.
[0060] Figure 1 This is a flowchart illustrating a payment processing method provided in one or more embodiments of this specification, applied to a cash register device. The method can be primarily executed by the cash register device, for example, entirely by the cash register device, or executed by the cash register device with the assistance of a server (e.g., providing auxiliary computing power) or additional external devices (e.g., providing auxiliary sensor capabilities).
[0061] Figure 1 The process includes the following steps:
[0062] S102: Acquire images of the surrounding environment.
[0063] The POS device can be deployed at the checkout counter and can capture environmental images from one or more directions around the counter using its own camera or an external image acquisition device. For cameras with a fixed viewing angle, it can especially capture environmental images in front of the checkout counter. If a user approaches, they will appear in the environmental image. Such users are highly likely to come to the checkout counter to pay, which is the user of interest in this application. The aim is to support user payments through the aforementioned POS device.
[0064] The environmental image acquisition range can be controlled according to actual needs to avoid acquiring environmental images from too far away, so as not to attract irrelevant users and waste processing resources.
[0065] S104: Detect whether the environmental image contains a payment code.
[0066] Currently, QR code payment is a common payment method, which is divided into two specific methods: active scanning and passive scanning. From the user's perspective, active scanning usually refers to the user using their mobile phone to scan the merchant's payment code, while passive scanning usually refers to the user presenting their payment code for the merchant to scan. Larger merchants often use passive scanning, as this eliminates the need for users to manually enter the payment amount, offering better convenience and security. However, this requires the merchant to provide the corresponding QR code payment equipment.
[0067] Based on this, this application believes that many users may prioritize using QR code payment methods, and that these are the methods that are scanned by the user. Therefore, we will first try to rule out or confirm this situation.
[0068] The first stage of detection is to check whether the environmental image contains a payment code. If the user wants to make a payment by scanning a QR code, they will bring up their payment code on their user terminal device, such as a mobile phone or smartwatch, and show it towards the cashier, especially towards the scanning camera of the cashier device (which may be the same camera as the camera that captures the environmental image, or it may be a different camera). As a result, the payment code is likely to be captured when the environmental image is captured, and thus the payment code is detected in the environmental image.
[0069] Conversely, if a user does not want to use the scan-to-pay method, or even does not want to use the QR code payment method at all, the user will not show the payment code, and there is a high probability that the environment image will not contain the payment code.
[0070] In one or more embodiments of this specification, the payment code can be a code in the form of a barcode or QR code. If such a code is detected, it can simply be regarded as a payment code. Of course, more reliably, during detection, the type information contained in the code can be used to more clearly confirm whether the detected code is a payment code. Following this line of thought, step S104 can specifically refer to detecting whether the environmental image contains a code that is suspected to be a payment code.
[0071] S106: If so, control the cash register to work in QR code payment mode, and advance the payment process by scanning and parsing the payment code.
[0072] If so, to cater to users' needs for QR code payments, the system should automatically switch to QR code payment mode (user's terminal device is scanned, and the POS device initiates the scan) or automatically switch from other operating modes to QR code payment mode, without requiring manual control of the operating mode by the user or cashier. In this case, the second stage of testing can be discontinued.
[0073] In QR code payment mode, the camera on the POS device attempts to scan the payment code presented by the user, and then parses the corresponding payment information from the payment code. Based on this, the payment process is triggered to deduct the payment from the user's corresponding payment account, thus helping the user complete the payment. After the process ends, the device continues to collect and detect images of the surrounding environment in preparation for serving the next user.
[0074] In one or more embodiments of this specification, if necessary, a QR code payment mode in which the user terminal device scans the code and the cash register device is scanned can also be provided to the user. For example, a display screen is provided on the cash register device to display the merchant's QR code, so that the user can use a mobile phone to scan and parse the QR code to complete the payment.
[0075] Additionally, if a payment code is detected in the environmental image, the near-field communication function will not be needed this time. Therefore, the near-field communication function of the cash register can be temporarily turned off to save resources. At the same time, it also helps to prevent user terminal devices that want to use the QR code payment method from accidentally entering the near-field communication state.
[0076] S108: If not, then detect whether the environmental image contains a mobile phone or IC card, and obtain the re-detection result.
[0077] If, when a user approaches, the environmental image does not contain a payment code within the expected time (the estimated time required for a normal user to approach and present a payment code), it is highly likely that the user does not intend to use the QR code payment method. This application assumes that the user may use the near-field communication payment method in this situation. Therefore, a second stage of detection can be performed on the environmental image.
[0078] The POS device in this application has near-field communication (NFC) functionality. It at least supports NFC-based payment where the user's mobile phone reads the POS device to complete the payment; and it also at least supports NFC-based payment where the POS device reads the user's IC card to complete the payment. Since these two NFC payment methods require different NFC operating modes for the POS device, involving mode switching, in the second stage of detection, the detection distinguishes between mobile phones or IC cards that may be present in the environmental image, obtaining a re-detection result (referred to as re-detection here because a preliminary detection of the payment code has already been performed), to determine which NFC operating mode to use in this instance.
[0079] S110: If the re-detection result reflects that the environmental image contains a mobile phone, then control the cash register to work in near-field communication tag mode so that the mobile phone can read the cash register and advance the payment process.
[0080] In one or more embodiments of this specification, assuming a user wants to use their mobile phone to "tap" the payment device for near-field communication (NFC) payment, the mobile phone can be considered as an NFC card reader, and the payment device itself as the NFC tag being read. This offers good flexibility, better security for the mobile phone, and facilitates expanding the usage scenarios for corresponding payment applications on the mobile phone. Based on this, if the detection results indicate that the environmental image contains a mobile phone (and the payment code has been determined not to be included in the first stage of detection), it can be inferred that the user wants to use their mobile phone to "tap" the payment device for NFC payment. Accordingly, the payment device is actively controlled to switch to NFC tag mode.
[0081] In near-field communication tag mode, the user's mobile phone reads the near-payment device to obtain payment-related information such as the payment amount. This can activate the corresponding payment application on the mobile phone, complete the payment through the payment application, end the process, and continue to collect and detect the surrounding environment to prepare for serving the next user.
[0082] As mentioned earlier, optionally, a display screen can be provided on the POS device to show the merchant's QR code, supporting a QR code payment mode where the user's terminal device initiates the scan and the POS device is scanned. The QR code can be displayed more intelligently based on additional environmental image content detection, including: after detecting a mobile phone in the environmental image, detecting whether the phone is facing away; if so, this may also be the user's scanning posture, and the QR code can be displayed on the screen. Users can then more flexibly choose to pay by scanning the QR code or ignore it and use near-field communication (NFC) payment; otherwise, if the user is more likely to use NFC payment, the QR code can be left undisplayed, helping users more clearly understand the current working mode of the POS device and avoiding confusion.
[0083] Furthermore, displaying the payment code on the screen can include: extracting scene feature information corresponding to the mobile phone based on the detection process; generating a dedicated payment code corresponding to the mobile phone based on the scene feature information, and displaying the dedicated payment code on the screen. The dedicated payment code can be used only for this payment, or only for payments within this scenario. This helps prevent the payment code from being maliciously replaced and improves user privacy. Compared to regular, periodically updated dynamic codes, it helps reduce resource waste and avoids dynamic codes automatically updating at inappropriate times (such as during scanning focus adjustments), which could lead to errors.
[0084] S112: If the re-detection result reflects that the environmental image contains an IC card, then control the cash register to work in near-field communication card reader mode so as to advance the payment process by reading the IC card by the cash register.
[0085] In one or more embodiments of this specification, based on the near-field communication (NFC) card reader mode of the POS device, it also supports reading the user's IC card through the POS device for NFC payment. The IC card can be a bank card, membership card, transportation card, or other card that supports NFC tag functionality, mainly referring to physical cards. This application also provides additional solutions, optionally supporting virtual IC cards, which will be described later.
[0086] If the detection results indicate that the environmental image contains an IC card, there is a high probability that the user is holding the IC card and swiping it on the POS device using near-field communication. Therefore, the POS device should be proactively switched to near-field communication card reader mode.
[0087] In near-field communication card reader mode, the POS device reads the user's IC card and obtains the corresponding payment information (such as card number or payment authorization data). Based on this, it triggers the payment process to deduct money from the user's corresponding payment account, thus helping the user complete the payment. After the process ends, it continues to collect and detect the surrounding environment to prepare for serving the next user.
[0088] As mentioned earlier, the payment method desired by the user is inferred based on environmental image content detection, and the cash register is then adaptively switched to the corresponding working mode. In practical applications, if there is no expected response or processing error after switching working modes, it may be due to an error in the inference. In this case, the working mode can be switched again in time to try to provide payment services to the user normally.
[0089] pass Figure 1 This method, based on real-time image capture of the surrounding environment by a camera, performs two-stage detection to intelligently and finely infer the user's intention to choose a payment method. It then adaptively supports automatic switching between various operating modes offered by the POS device to accurately meet the user's intent without requiring manual selection by the user or staff. At least based on the first stage of detection, it can determine whether to switch to QR code payment mode. If not, it further determines whether to switch to near-field communication (NFC) tag mode or NFC card reader mode based on the second stage of detection. This allows users to freely use mobile phone QR code scanning, mobile NFC, or IC card payment methods, thereby improving the compatibility of POS devices that support NFC payments, ensuring operational convenience, and increasing user engagement with these devices, resulting in a better payment experience.
[0090] based on Figure 1 In addition to the method described herein, this specification also provides some specific implementation schemes and extension schemes of this method, which will be further explained below.
[0091] In one or more embodiments of this specification, based on Figure 1 This application further considers a more centralized deployment of the camera and near-field sensing area on the POS device. The near-field sensing area is used to support near-field sensing interaction (i.e., the area for "tap-to-connect" near-field communication) in near-field communication tag mode and near-field communication reader mode. The reason is that, prior to this method, to avoid accidental triggering of near-field communication, the applicant actively deployed the camera and near-field sensing area separately, at a sufficient distance (e.g., a few centimeters or even more). Based on this method, the camera can be deployed within the near-field sensing area of the POS device, which supports near-field sensing interaction in the near-field communication tag mode and the near-field communication reader mode.
[0092] Based on the foregoing description, one or more embodiments of this specification also provide a payment processing device, which can be used as a cash register, including: a camera, a QR code payment module, a near-field communication tag module, a near-field communication card reader module, a working mode switching module, etc. The near-field communication tag module and the near-field communication card reader module include near-field sensing areas deployed on the cash register; the camera is deployed on the near-field sensing area of the cash register.
[0093] Figure 2 This is a schematic diagram of the surface area distribution of a cash register device provided for one or more embodiments of this specification.
[0094] exist Figure 2 In order to facilitate user interaction and improve device integration, the near-field communication sensing area and camera are centrally deployed on the surface of the POS device without being separated (because this effectively reduces the risk of users accidentally triggering near-field communication when they want to scan a code to pay). For example, the camera is deployed on the left side. It can be used to capture environmental images and scan codes. This also makes it easier for the camera to correctly perceive the user's near-field communication payment intention. The reason is that such users will bring the terminal or IC card close to the near-field sensing area, and the camera is in the near-field sensing area. Therefore, the position is very correct and it is easy to detect and identify more accurately.
[0095] In addition, a touch screen is deployed on the right side as an example, which can be used to display the payment code, provide prompts to the user, and perform operations such as setting or user confirmation via touch.
[0096] This POS machine primarily offers three payment methods:
[0097] Mobile phone near-field communication card reader payment based on near-field communication tag mode: When the user's phone is unlocked, the user can touch the near-field communication sensing area of the POS device with the near-field communication antenna area of the phone. The phone acts as a card reader and the POS device acts as an analog card to establish near-field communication, which can then activate the corresponding payment application on the phone. After the user confirms, the payment is completed.
[0098] QR code payment: A QR code for receiving payment can be displayed on the touch screen. Users can choose to use the corresponding payment application to scan the QR code to make payment; users can also provide a payment QR code generated by the payment application, which can be scanned by the camera of the cashier device to complete the payment.
[0099] IC card payment based on near-field communication reader mode: Users can use IC cards to complete payments by swiping them on the near-field communication sensing area of the cash register.
[0100] The POS device addresses the following compatibility issues: Near-field communication (NFC) reader mode and tag mode are incompatible, as both operate at 13.56MHz. If both modes are enabled simultaneously, they will interfere with each other, risking payment failure regardless of whether the user is using an IC card or a mobile NFC reader. Furthermore, QR code payment is incompatible with NFC reader payment. When a user uses QR code payment, if the mobile phone's NFC antenna is too close to the POS device's NFC sensing area, it may accidentally trigger the NFC service page of the payment application, causing inconvenience for users intending to use QR code payment.
[0101] The aforementioned problems can also be solved manually, for example, by having the cashier operate the POS device to decide whether to use barcode scanning, near-field communication card reading, or IC card payment. This avoids compatibility issues, but increases the cashier's operational complexity, may lead to errors, and could potentially increase user waiting time. The POS device and corresponding processing flow provided in this application ensure compatibility while avoiding the problems inherent in this manual operation solution.
[0102] for Figure 2 The POS device includes a camera that captures images of the surrounding environment. A working mode switching module detects whether the environmental image contains a payment code. If so, the QR code payment module is invoked to scan and parse the payment code, thus advancing the payment process. If not, the environmental image is further detected to see if it contains a mobile phone or IC card. If the re-detection result indicates that the environmental image contains a mobile phone, the near-field communication tag module is invoked to allow the mobile phone to read the POS device, thus advancing the payment process. If the re-detection result indicates that the environmental image contains an IC card, the near-field communication card reader module is invoked to allow the POS device to read the IC card, thus advancing the payment process.
[0103] Intuitively, Figure 3 This is a schematic diagram of the payment processing flow of the cash register device provided in one or more embodiments of this specification.
[0104] The process mainly includes the following steps:
[0105] When the camera of the POS device captures a video stream and uses the images contained therein as the aforementioned environment images, the code detection algorithm is first run to detect the environment images. If no code is detected (such as a suspected payment code in the form of a barcode or QR code), the next step is executed. If a code is detected, the system automatically switches to the QR code payment mode to complete the payment.
[0106] If no code is detected, the system will further attempt to detect the mobile phone and IC card in the environment image. If the IC card is detected, the cash register will automatically switch to near-field communication card reader mode to read the card information and complete the payment; if the mobile phone is detected, the system will continue to the next step.
[0107] If a mobile phone is detected but no code is detected, the POS device will automatically switch to near-field communication tag mode.
[0108] In near-field communication (NFC) reader mode or NFC tag mode, additional enhanced interactive processing can optionally be performed. For example, based on the image ranging capabilities of a monocular or binocular camera, the proximity of the mobile phone or IC card can be determined. If the mobile phone or IC card is close to the cash register with the intention of being touched, special signals can be sent to enhance signal strength, thereby improving the sensing speed and success rate and optimizing the interactive experience.
[0109] The previously mentioned solution allows for a more concentrated deployment of cameras and near-field sensing areas without causing false triggering of near-field communication. Further improvements are proposed to achieve additional technical benefits. See [link to relevant documentation]. Figure 4 , Figure 4 This is a flowchart illustrating a working mode control scheme for a cash register device based on photosensitivity detection, provided for one or more embodiments of this specification.
[0110] exist Figure 4 In such scenarios, the camera is deployed within the near-field sensing area of the POS device, particularly in the center of that area. Furthermore, the near-field sensing area can be made smaller, resulting in higher integration and improved performance. Figure 4 The effectiveness of the plan.
[0111] Figure 4 The process includes the following steps:
[0112] S402: Acquire the light sensitivity change data of the camera.
[0113] Generally, the more abundant the light around a camera, the higher its light sensitivity. POS machines are often located indoors, where lighting is typically relatively constant, so the camera's light sensitivity is usually relatively stable when it's on. However, in this scenario, where the camera is exemplarily deployed in the near-field sensing area of the POS machine, an additional factor affecting light sensitivity might arise. Specifically, when a user swipes their phone or IC card near the near-field sensing area, they might inadvertently block the camera, causing a sudden and abrupt decrease in the camera's light sensitivity.
[0114] Additionally, when a user approaches and stands in front of the POS device, or displays their payment code on their phone or scans a merchant's QR code, the amount of light detected by the camera may also change. However, since the degree of obstruction is significantly weaker, the degree of change will be relatively weaker.
[0115] S404: Based on the light sensitivity change data, determine whether the instantaneous light sensitivity decrease rate of the camera is higher than a first set threshold or whether the instantaneous light sensitivity is lower than a second set threshold.
[0116] If so, it can be assumed that it is caused by the user swiping their phone or IC card in the near-field sensing area. However, considering that swiping a phone is more common in actual applications, it can be assumed that swiping a phone is the cause.
[0117] S406: If so, control the cash register to operate in near-field communication tag mode.
[0118] Therefore, the POS device should be controlled to operate in near-field communication (NFC) tag mode so that the mobile phone can read it. Otherwise, if the camera is not immediately or sufficiently blocked, it can be assumed that no mobile phone or IC card is nearby at the moment, and therefore, it is not necessary to switch to NFC-related operating modes for the time being.
[0119] Furthermore, after controlling the POS device to operate in near-field communication (NFC) tag mode, it's possible to determine whether the duration for which the camera's instantaneous light sensitivity decreases above a first set threshold or the duration for which the instantaneous light sensitivity is below a second set threshold exceeds a third set threshold. If so, it can be assumed that NFC is not functioning correctly, and the user may not be swiping their phone but rather an IC card. Therefore, the current NFC tag mode may be incompatible, leading to this situation. Thus, it's advisable to switch the POS device from NFC tag mode to NFC card reader mode and then attempt to read the IC card. In practical applications, this two-mode switching process is completed very quickly. Therefore, regardless of whether the user is actually swiping their phone or an IC card, the process will ultimately be completed normally, and the user will experience virtually no disturbance, resulting in a good user experience.
[0120] Regarding IC card swiping, in addition to common physical IC cards, this application also considers the possibility of virtual IC cards. In this case, the mobile phone is more likely to operate in card emulation mode. To better adapt to and accommodate both scenarios, one or more embodiments of this specification provide a control scheme for the operating mode of a POS device for IC cards and mobile phones. See [link to relevant documentation]. Figure 5 , Figure 5 This is a flowchart illustrating the scheme.
[0121] Figure 5 The process includes the following steps:
[0122] S502: After re-detecting whether the environmental image contains a mobile phone or an IC card, if the re-detection result reflects that the environmental image contains both a mobile phone and an IC card, then the camera deployed on the cash register device dynamically measures and compares the distances of the mobile phone and the IC card, so as to control the near-field communication working mode of the cash register device according to the distance.
[0123] Based on the dynamic ranging results, when the mobile phone is closer to the cash register, it is assumed that the user wants to swipe the phone, and the cash register can be controlled to work in near-field communication tag mode. When the IC card is closer to the cash register, it is assumed that the user wants to swipe the IC card, and the cash register can be controlled to work in near-field communication card reader mode.
[0124] S504: After re-detecting whether the environmental image contains a mobile phone or an IC card, if the re-detection result reflects that the environmental image contains both a mobile phone and an IC card, then it is determined whether the IC card is an IC card image displayed on the screen of the mobile phone.
[0125] In this scheme, if a user wants to swipe a virtual IC card, they can retrieve the IC card (usually in the wallet of their phone) on their phone and then show it to the POS device.
[0126] In this situation, step S502 will most likely detect that the distances corresponding to the mobile phone and the IC card are the same. Steps S502 and S504 can also be executed independently of each other, and their order is not necessarily limited; they can also be executed selectively.
[0127] S506: If (i.e., it is determined that the IC card is an IC card image displayed on the mobile phone screen), then it is determined that the mobile phone is currently working in near-field communication card emulation mode, and the cash register is controlled to work in near-field communication card reader mode, so as to advance the payment process by reading the IC card currently emulated by the mobile phone through the cash register.
[0128] In this way, it can be conveniently compatible with and support swiping physical IC cards, virtual IC cards, and mobile phones.
[0129] In one or more embodiments of this specification, after detecting whether the environmental image contains a payment code, if the environmental image contains at least a portion of the specified payment page but does not yet contain the payment code, it may be because the payment code has not yet been displayed. To prevent abnormal or no response from requiring the user to perform cumbersome operations again (e.g., turning the phone around to manually refresh the payment code), auxiliary measures can be provided to improve fault tolerance. These measures include, for example: first controlling the POS device to operate in near-field communication (NFC) card reader mode, and in NFC card reader mode, broadcasting a refresh stimulus signal to the surroundings so that the payment page responds to the refresh stimulus signal and attempts to refresh the payment code; then controlling the POS device to operate in QR code payment mode, waiting to scan and parse the payment code corresponding to the payment page. Of course, it is also possible to assume that the user wants to use the QR code payment method when the environmental image contains at least a portion of the specified payment page, and then simply control the POS device to operate in QR code payment mode.
[0130] The above-mentioned solutions in this application can effectively improve the compatibility and adaptability of cash registers to various payment methods, providing convenience for users and store staff.
[0131] Based on the same idea, one or more embodiments of this specification also provide apparatus and devices corresponding to the above methods, such as... Figure 6 , Figure 7 As shown. The apparatus and equipment are capable of performing the above methods and related alternatives accordingly.
[0132] Figure 6 This is a schematic diagram of the structure of a payment processing device provided in one or more embodiments of this specification, applied to a cash register device, the device comprising:
[0133] Image acquisition module 602 acquires images of the surrounding environment;
[0134] The code detection module 604 detects whether the environmental image contains a payment code;
[0135] If the QR code switching module 606 is used, it controls the cash register to work in QR code payment mode and advances the payment process by scanning and parsing the payment code.
[0136] If not, the re-detection module 608 will re-detect whether the environmental image contains a mobile phone or an IC card to obtain a re-detection result.
[0137] The tag mode switching module 610 controls the cash register to work in near-field communication tag mode if the re-detection result reflects that the environmental image contains a mobile phone, so that the cash register can be read by the mobile phone to advance the payment process.
[0138] The card reader mode switching module 612 controls the cash register to operate in near-field communication card reader mode if the re-detection result reflects that the environmental image contains an IC card, so as to advance the payment process by reading the IC card by the cash register.
[0139] Optionally, the image acquisition module 602 acquires images of the surrounding environment through a camera deployed on the POS device;
[0140] The camera is deployed in the near-field sensing area of the POS device, and the near-field sensing area is used to support near-field sensing interaction in the near-field communication tag mode and the near-field communication card reader mode.
[0141] Optionally, the code detection module 604 acquires the light sensitivity change data of the camera;
[0142] Based on the light sensitivity change data, determine whether the instantaneous light sensitivity decrease rate of the camera is higher than a first set threshold or whether the instantaneous light sensitivity is lower than a second set threshold.
[0143] If so, the cash register is controlled to operate in near-field communication tag mode.
[0144] Optionally, the code detection module 604, if the condition is met, controls the cash register to work in near-field communication tag mode, and then determines whether the duration for which the instantaneous light sensitivity decrease rate of the camera is higher than a first set threshold or the duration for which the instantaneous light sensitivity is lower than a second set threshold is higher than a third set threshold.
[0145] If so, control the POS device to switch from NFC tag mode to NFC reader mode.
[0146] Optionally, after re-detecting whether the environmental image contains a mobile phone or an IC card, the device further includes:
[0147] If the re-detection result reflects that the environmental image contains both a mobile phone and an IC card, then the distance between the mobile phone and the IC card is dynamically measured and compared using the camera deployed on the cash register device.
[0148] Based on the dynamic ranging results, when the mobile phone is closer to the cash register, the cash register is controlled to operate in near-field communication tag mode; when the IC card is closer to the cash register, the cash register is controlled to operate in near-field communication card reader mode.
[0149] Optionally, after re-detecting whether the environmental image contains a mobile phone or an IC card, if the re-detection result reflects that the environmental image contains both a mobile phone and an IC card, the re-detection module 608 determines whether the IC card is an IC card image displayed on the screen of the mobile phone.
[0150] If the card reader mode switching module 612 is in the near-field communication card simulation mode, it determines that the mobile phone is currently working in the near-field communication card reader mode and controls the cash register to work in the near-field communication card reader mode so as to advance the payment process by reading the IC card currently simulated by the mobile phone through the cash register.
[0151] Optionally, after detecting whether the environmental image contains a payment code, the device further includes:
[0152] If the environmental image is detected to contain at least a portion of the specified payment page, but does not yet contain a payment code, then execute:
[0153] The card reader mode switching module 612 first controls the cash register to work in near-field communication card reader mode, and in the near-field communication card reader mode, broadcasts a refresh incentive signal to the surroundings so that the payment page responds to the refresh incentive signal and attempts to refresh the payment code;
[0154] The scanning switching module 606 then controls the cashier device to work in scanning payment mode, waiting to scan and parse the payment code corresponding to the payment page.
[0155] Optionally, the POS device has a display screen;
[0156] The code detection module 604, after detecting that the environmental image contains a mobile phone, detects whether the mobile phone is in a back-facing posture.
[0157] If so, the payment code will be displayed on the screen.
[0158] Optionally, the code detection module 604 extracts scene feature information corresponding to the mobile phone according to the detection process;
[0159] Based on the scene feature information, a dedicated payment code corresponding to the mobile phone is generated and displayed on the display screen.
[0160] Optionally, after detecting whether the environmental image contains a payment code, the code detection module 604 controls the near-field communication function of the cash register to be temporarily turned off if it does.
[0161] Figure 7This specification provides a schematic diagram of the structure of a payment processing device according to one or more embodiments, applied to a cash register device. The payment processing device includes:
[0162] At least one processor; and,
[0163] A memory communicatively connected to the at least one processor; wherein,
[0164] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform:
[0165] Collect images of the surrounding environment;
[0166] Detect whether the environmental image contains a payment code;
[0167] If so, the cash register is controlled to operate in QR code payment mode, and the payment process is advanced by scanning and parsing the payment code;
[0168] If not, then the environmental image is further checked to see if it contains a mobile phone or IC card, and a re-detection result is obtained;
[0169] If the re-detection result indicates that the environmental image contains a mobile phone, then the cash register is controlled to operate in near-field communication tag mode so that the mobile phone can read the cash register and advance the payment process;
[0170] If the re-detection result indicates that the environmental image contains an IC card, then the POS device is controlled to operate in near-field communication card reader mode so as to advance the payment process by reading the IC card through the POS device.
[0171] Based on the same idea, one or more embodiments of this specification also provide a payment processing device for use in a cash register, the payment processing device including: a camera, a QR code payment module, a near-field communication tag module, a near-field communication card reader module, and a working mode switching module;
[0172] The camera captures images of the surrounding environment;
[0173] The working mode switching module detects whether the environmental image contains a payment code.
[0174] If so, the QR code payment module will be invoked to scan and parse the payment code to advance the payment process;
[0175] If not, then the environmental image is further checked to see if it contains a mobile phone or IC card, and a re-detection result is obtained;
[0176] If the re-detection result indicates that the environmental image contains a mobile phone, then the near-field communication tag module is activated so that the mobile phone can read the cash register device and advance the payment process;
[0177] If the re-detection result indicates that the environmental image contains an IC card, then the near-field communication card reader module is activated to enable the payment process to proceed by reading the IC card through the POS device.
[0178] Based on the same idea, one or more embodiments of this specification also provide a non-volatile computer storage medium for use in a point-of-sale (POS) device, wherein the medium stores computer-executable instructions configured as follows:
[0179] Collect images of the surrounding environment;
[0180] Detect whether the environmental image contains a payment code;
[0181] If so, the cash register is controlled to operate in QR code payment mode, and the payment process is advanced by scanning and parsing the payment code;
[0182] If not, then the environmental image is further checked to see if it contains a mobile phone or IC card, and a re-detection result is obtained;
[0183] If the re-detection result indicates that the environmental image contains a mobile phone, then the cash register is controlled to operate in near-field communication tag mode so that the mobile phone can read the cash register and advance the payment process;
[0184] If the re-detection result indicates that the environmental image contains an IC card, then the POS device is controlled to operate in near-field communication card reader mode so as to advance the payment process by reading the IC card through the POS device.
[0185] Following the same line of thought, one or more embodiments of this specification also provide a computer program product for use in a point-of-sale (POS) device, comprising at least one computer-readable storage medium having computer-readable program instructions stored therein, the computer-readable program instructions including:
[0186] Collect images of the surrounding environment;
[0187] Detect whether the environmental image contains a payment code;
[0188] If so, the cash register is controlled to operate in QR code payment mode, and the payment process is advanced by scanning and parsing the payment code;
[0189] If not, then the environmental image is further checked to see if it contains a mobile phone or IC card, and a re-detection result is obtained;
[0190] If the re-detection result indicates that the environmental image contains a mobile phone, then the cash register is controlled to operate in near-field communication tag mode so that the mobile phone can read the cash register and advance the payment process;
[0191] If the re-detection result indicates that the environmental image contains an IC card, then the POS device is controlled to operate in near-field communication card reader mode so as to advance the payment process by reading the IC card through the POS device.
[0192] In the 1990s, improvements to a technology could be clearly distinguished as either hardware improvements (e.g., improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the methodology). However, with technological advancements, many methodological improvements today can be considered direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved methodology into the hardware circuit. Therefore, it cannot be said that a methodological improvement cannot be implemented using hardware physical modules. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is such an integrated circuit whose logic function is determined by the customer's programming of the device. Designers can program a digital system themselves to "integrate" it onto a PLD, without needing chip manufacturers to design and manufacture dedicated integrated circuit chips. Furthermore, nowadays, instead of manually manufacturing integrated circuit chips, this programming is mostly implemented using "logic compiler" software. Similar to the software compiler used in program development, the original code before compilation must also be written in a specific programming language, called a Hardware Description Language (HDL). There are many HDLs, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, and RHDL (Ruby Hardware Description Language). Currently, the most commonly used are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also understand that by simply performing some logic programming on the method flow using one of these hardware description languages and programming it into an integrated circuit, the hardware circuit implementing the logical method flow can be easily obtained.
[0193] The controller can be implemented in any suitable manner. For example, it can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicon Labs C8051F320. A memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also recognize that, in addition to implementing the controller in purely computer-readable program code form, the same functionality can be achieved by logically programming the method steps to make the controller take the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers. Therefore, such a controller can be considered a hardware component, and the means included therein for implementing various functions can also be considered as structures within the hardware component. Alternatively, the means for implementing various functions can be considered as both software modules implementing the method and structures within the hardware component.
[0194] The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, a computer can be, for example, a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or any combination of these devices.
[0195] For ease of description, the above devices are described in terms of function, divided into various units. Of course, in implementing this specification, the functions of each unit can be implemented in one or more software and / or hardware components.
[0196] Those skilled in the art will understand that the embodiments of this specification can be provided as methods, systems, or computer program products. Therefore, the embodiments of this specification can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the embodiments of this specification can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0197] This specification is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this specification. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0198] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0199] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0200] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0201] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0202] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0203] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0204] This specification can be described in the general context of computer-executable instructions that are executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform a specific task or implement a specific abstract data type. This specification can also be practiced in distributed computing environments, where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.
[0205] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the embodiments of apparatus, devices, and non-volatile computer storage media are basically similar to the method embodiments, so the descriptions are relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0206] The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.
[0207] The above description is merely one or more embodiments of this specification and is not intended to limit this specification. Various modifications and variations can be made to the one or more embodiments of this specification by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principle of one or more embodiments of this specification should be included within the scope of the claims of this specification.
Claims
1. A payment processing method applied to a cash register device, the method comprising: Collect images of the surrounding environment; Detect whether the environmental image contains a payment code; If so, the cash register is controlled to operate in QR code payment mode, and the payment process is advanced by scanning and parsing the payment code; If not, then the environmental image is further checked to see if it contains a mobile phone or IC card, and a re-detection result is obtained; If the re-detection result indicates that the environmental image contains a mobile phone, then the cash register is controlled to operate in near-field communication tag mode so that the mobile phone can read the cash register and advance the payment process; If the re-detection result indicates that the environmental image contains an IC card, then the POS device is controlled to operate in near-field communication card reader mode so as to advance the payment process by reading the IC card through the POS device.
2. The method as described in claim 1, wherein acquiring the surrounding environmental image specifically includes: The camera deployed on the POS device captures images of the surrounding environment; The camera is deployed in the near-field sensing area of the POS device, and the near-field sensing area is used to support near-field sensing interaction in the near-field communication tag mode and the near-field communication card reader mode.
3. The method of claim 2, further comprising: Acquire the light sensitivity change data of the camera; Based on the light sensitivity change data, determine whether the instantaneous light sensitivity decrease rate of the camera is higher than a first set threshold or whether the instantaneous light sensitivity is lower than a second set threshold. If so, the cash register is controlled to operate in near-field communication tag mode.
4. The method of claim 3, wherein if so, after controlling the cash register to operate in near-field communication tag mode, the method further includes: Determine whether the duration for which the instantaneous light sensitivity decrease rate of the camera is higher than a first preset threshold or the duration for which the instantaneous light sensitivity is lower than a second preset threshold is higher than a third preset threshold; If so, control the POS device to switch from NFC tag mode to NFC reader mode.
5. The method as described in claim 1, wherein after further detecting whether the environmental image contains a mobile phone or an IC card, the method further includes: If the re-detection result reflects that the environmental image contains both a mobile phone and an IC card, then the distance between the mobile phone and the IC card is dynamically measured and compared using the camera deployed on the cash register device. Based on the dynamic ranging results, when the mobile phone is closer to the cash register, the cash register is controlled to operate in near-field communication tag mode; when the IC card is closer to the cash register, the cash register is controlled to operate in near-field communication card reader mode.
6. The method of claim 1, wherein after further detecting whether the environmental image contains a mobile phone or an IC card, the method further comprises: If the re-detection result reflects that the environmental image contains both a mobile phone and an IC card, then it is determined whether the IC card is the IC card image displayed on the screen of the mobile phone; If so, it is determined that the mobile phone is currently working in near-field communication card emulation mode, and the cash register is controlled to work in near-field communication card reader mode, so as to advance the payment process by reading the IC card currently emulated by the mobile phone through the cash register.
7. The method of claim 1, wherein after detecting whether the environmental image contains a payment code, the method further comprises: If the environmental image is detected to contain at least a portion of the specified payment page, but does not yet contain a payment code, then execute: First, control the POS device to work in near-field communication card reader mode, and in the near-field communication card reader mode, broadcast a refresh incentive signal to the surroundings so that the payment page responds to the refresh incentive signal and attempts to refresh the payment code; Then, control the POS device to operate in QR code payment mode, and wait to scan and parse the payment code corresponding to the payment page.
8. The method of claim 1, wherein the cash register device has a display screen; After detecting that the environmental image contains a mobile phone, the method further includes: Detect whether the phone is in a back-to-back position; If so, the payment code will be displayed on the screen.
9. The method of claim 8, wherein displaying the payment code on the display screen specifically includes: Based on the detection process, scene feature information corresponding to the mobile phone is extracted; Based on the scene feature information, a dedicated payment code corresponding to the mobile phone is generated and displayed on the display screen.
10. The method of claim 1, wherein after detecting whether the environmental image contains a payment code, the method further comprises: If so, the near-field communication function of the cash register will be temporarily disabled.
11. A payment processing device for use in a cash register, the device comprising: The image acquisition module captures images of the surrounding environment; The code detection module detects whether the environmental image contains a payment code; If the QR code switching module is present, it controls the POS device to operate in QR code payment mode and advances the payment process by scanning and parsing the payment code. If not, the re-detection module will then detect whether the environmental image contains a mobile phone or an IC card to obtain a re-detection result. The tag mode switching module controls the POS device to operate in near-field communication tag mode if the re-detection result indicates that the environmental image contains a mobile phone, so that the mobile phone can read the POS device and advance the payment process. The card reader mode switching module controls the POS device to operate in near-field communication card reader mode if the re-detection result reflects that the environmental image contains an IC card, so as to advance the payment process by reading the IC card through the POS device.
12. The apparatus of claim 11, wherein the image acquisition module acquires images of the surrounding environment via a camera deployed on the POS device; in, The camera is deployed in the near-field sensing area of the POS device, and the near-field sensing area is used to support near-field sensing interaction in the near-field communication tag mode and the near-field communication card reader mode.
13. The apparatus of claim 12, wherein the code detection module acquires the light sensitivity change data of the camera; Based on the light sensitivity change data, determine whether the instantaneous light sensitivity decrease rate of the camera is higher than a first set threshold or whether the instantaneous light sensitivity is lower than a second set threshold. If so, the cash register is controlled to operate in near-field communication tag mode.
14. The apparatus of claim 13, wherein the code detection module, after controlling the cash register to operate in near-field communication tag mode if so, determines whether the duration for which the instantaneous light sensitivity decrease rate of the camera is higher than a first preset threshold or the duration for which the instantaneous light sensitivity is lower than a second preset threshold is higher than a third preset threshold. If so, control the POS device to switch from NFC tag mode to NFC reader mode.
15. The apparatus of claim 11, wherein after re-detecting whether the environmental image contains a mobile phone or an IC card, the apparatus further comprises: If the re-detection result reflects that the environmental image contains both a mobile phone and an IC card, then the distance between the mobile phone and the IC card is dynamically measured and compared using the camera deployed on the cash register device. Based on the dynamic ranging results, when the mobile phone is closer to the cash register, the cash register is controlled to operate in near-field communication tag mode; when the IC card is closer to the cash register, the cash register is controlled to operate in near-field communication card reader mode.
16. The apparatus of claim 11, wherein after re-detecting whether the environmental image contains a mobile phone or an IC card, if the re-detection result reflects that the environmental image contains both a mobile phone and an IC card, the re-detection module determines whether the IC card is an IC card image displayed on the screen of the mobile phone; If the card reader mode switching module is in the near-field communication card simulation mode, it determines that the mobile phone is currently working in near-field communication card reader mode and controls the cash register to work in near-field communication card reader mode so as to advance the payment process by reading the IC card currently simulated by the mobile phone through the cash register.
17. The apparatus of claim 11, wherein after detecting whether the environmental image contains a payment code, the apparatus further comprises: If the environmental image is detected to contain at least a portion of the specified payment page, but does not yet contain a payment code, then execute: The card reader mode switching module first controls the cash register to work in near-field communication card reader mode, and in the near-field communication card reader mode, broadcasts a refresh incentive signal to the surroundings so that the payment page responds to the refresh incentive signal and attempts to refresh the payment code; The scanning switching module then controls the POS device to work in scanning payment mode, waiting to scan and parse the payment code corresponding to the payment page.
18. The apparatus of claim 11, wherein the cash register has a display screen; The code detection module, after detecting that the environmental image contains a mobile phone, detects whether the mobile phone is in a back-to-back posture. If so, the payment code will be displayed on the screen.
19. The apparatus of claim 18, wherein the code detection module extracts scene feature information corresponding to the mobile phone according to the detection process; Based on the scene feature information, a dedicated payment code corresponding to the mobile phone is generated and displayed on the display screen.
20. The apparatus of claim 11, wherein after detecting whether the environmental image contains a payment code, the code detection module controls the near-field communication function of the cash register to be temporarily disabled if the code is present.
21. A payment processing device, applied to a cash register, the payment processing device comprising: Camera, QR code payment module, near-field communication tag module, near-field communication card reader module, working mode switching module; The camera captures images of the surrounding environment; The working mode switching module detects whether the environmental image contains a payment code. If so, the QR code payment module will be invoked to scan and parse the payment code to advance the payment process; If not, then the environmental image is further checked to see if it contains a mobile phone or IC card, and a re-detection result is obtained; If the re-detection result indicates that the environmental image contains a mobile phone, then the near-field communication tag module is activated so that the mobile phone can read the cash register device and advance the payment process; If the re-detection result indicates that the environmental image contains an IC card, then the near-field communication card reader module is activated to enable the payment process to proceed by reading the IC card through the POS device.
22. The payment processing device of claim 21, wherein the near-field communication tag module and the near-field communication card reader module include a near-field sensing area deployed on the cash register device; The camera is deployed in the near-field sensing area of the POS device.
23. A payment processing device for use in a cash register, the payment processing device comprising: At least one processor; as well as, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform: Collect images of the surrounding environment; Detect whether the environmental image contains a payment code; If so, the cash register is controlled to operate in QR code payment mode, and the payment process is advanced by scanning and parsing the payment code; If not, then the environmental image is further checked to see if it contains a mobile phone or IC card, and a re-detection result is obtained; If the re-detection result indicates that the environmental image contains a mobile phone, then the cash register is controlled to operate in near-field communication tag mode so that the mobile phone can read the cash register and advance the payment process; If the re-detection result indicates that the environmental image contains an IC card, then the POS device is controlled to operate in near-field communication card reader mode so as to advance the payment process by reading the IC card through the POS device.
Citation Information
Patent Citations
Near field communication and two-dimensional code compatible device and method
CN110232297A
Payment method and device and storage medium
CN118608144A
Code scanning gun device and switching control method for non-contact acceptance and code scanning reading
WO2020024758A1
