Transaction data processing method and device and electronic equipment
By using a camera on a terminal device to obtain payment codes and real-time images, performing multiple identification operations to form complete consumption retention evidence data, solving the problem of low accuracy in transaction data processing in the prior art and improving the accuracy of transaction data processing Sex and efficiency.
Patent Information
- Application Number
- CN202411513440.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-28
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2044-10-28
AI Technical Summary
The existing human resources system manages transaction data for employees to consume in canteens and other consumption places manually, which is prone to errors and takes a long time, resulting in low accuracy in transaction data processing.
By setting up a camera on the terminal device, in response to the payment code scanning operation, obtain the payment code image on the electronic payment collection device and the real-time image of the surrounding environment, perform QR code recognition, face recognition, device identification recognition and environment recognition, and obtain payment collection Personnel information, collection end information, consumption environment information and collection equipment information form complete consumption retention evidence data to verify consumption situation.
It improves the accuracy and efficiency of transaction data processing, ensures accurate recording of consumer transactions and convenient experience of employee consumers, and solves the problem of low accuracy of transaction data processing.
Smart Images

Figure CN119444229A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a transaction data processing method, device and electronic device. Background Art
[0002] At present, in the transaction data management method of the human resources system, there is no unified management of transaction data in most cases. For example, employees often set up canteens and other consumption places at their workplaces. The existing human resources system manages the transaction data of employees' consumption in these consumption places manually. For example, the creation, verification, update and deletion of transaction data all need to be completed manually by the staff of the human resources department. This transaction data processing method is prone to errors and takes a long time, resulting in low accuracy of the existing transaction data processing. Summary of the invention
[0003] The object of the present invention is to provide a transaction data processing method, device and electronic device to solve the technical problem of low accuracy in data processing of transaction data.
[0004] In a first aspect, the present application provides a transaction data processing method, which is applied to a terminal device, wherein an electronic payment device is arranged within a preset distance around the terminal device, and a camera is arranged on the terminal device; the method comprises:
[0005] In response to a payment code scanning operation on the terminal device, the camera is controlled according to the payment code scanning operation to obtain a payment code image of the electronic payment code on the electronic payment receiving device and a real-time image of the surrounding environment of the electronic payment code; wherein the real-time image includes images of the electronic payment receiving device and a payment receiving person corresponding to the electronic payment receiving device;
[0006] Perform payment processing based on the payment code image, and perform QR code recognition on the payment code image to obtain information of the payment receiving end corresponding to the payment code image;
[0007] Based on the information of the payment person determined by face recognition in the real-time image, the device identification of the electronic payment device in the real-time image is identified to obtain payment device information, and the surrounding environment of the electronic payment code in the real-time image is identified to obtain consumption environment information;
[0008] The information of the payment collector, the information of the payment terminal, the consumption environment information, the payment device information and the real-time image are determined as the first consumption retained evidence data corresponding to the current consumption of the scanning payment code operation, so as to verify the consumption situation of the current consumption through the first consumption retained evidence data.
[0009] In a possible implementation, the real-time image is in the form of a video, and the first video corresponding to the real-time image contains consumption communication process data between the cashier and the consumer corresponding to the terminal device; the method further includes:
[0010] Perform image analysis and voice analysis based on the consumption communication process data to obtain the consumption content, consumption quantity and consumer corresponding to the current consumption;
[0011] Analyze and determine the consumption type of the current consumption through the AI system according to the consumption content, the consumption amount and the consumer; wherein the consumption type includes any one or more of public consumption, private consumption and external consumption;
[0012] The consumption type, the consumption content, the consumption amount and the consumer are added to the first consumption retained evidence data to obtain the second consumption retained evidence data, so as to perform a second verification on the consumption situation of the current consumption through the second consumption retained evidence data including the consumption type, the consumption content, the consumption amount and the consumer.
[0013] In a possible implementation, the terminal device is further provided with a positioning device and a timing device; and the method further includes:
[0014] In response to a payment code scanning operation on the terminal device, the consumption time information of the current consumption is obtained through the timing device, and the consumption location information of the current consumption is obtained through the positioning device;
[0015] Determine the consumption location information corresponding to the current consumption according to the consumption location information and the consumption environment information;
[0016] The consumption time information, the consumption place information and the consumption location information are added to the second consumption retained evidence data to obtain the third consumption retained evidence data, so as to verify the consumption situation of the current consumption three times through the third consumption retained evidence data containing the consumption time information, the consumption place information and the consumption location information.
[0017] In a possible implementation, each consumption type corresponds to a respective consumption account, and the consumption account includes any one or more of a personal recharge account, a unit recharge account, and a reimbursement account; the method further includes:
[0018] Determine the identity of the payee corresponding to the current consumption according to the terminal device;
[0019] Determine the consumer identities of all the consumers by face recognition based on the real-time image;
[0020] According to the consumption type, the consumption location information, the identity of the payee and the identity of the consumer, the AI system analyzes and determines the target consumption account corresponding to the current consumption.
[0021] In one possible implementation, the method further includes:
[0022] According to the information of the cashier and the consumption place information, query the duty data of the cashier in the consumption place corresponding to the consumption place information;
[0023] The duty time in the duty data is compared with the consumption time information. If the duty time includes the consumption time corresponding to the consumption time information, it is determined that the consumption time information verification is passed, so as to perform four verifications on the consumption situation of the current consumption according to the duty time.
[0024] In one possible implementation, the method further includes:
[0025] In response to a successful connection between the target client and the wireless network device in the consumption scene corresponding to the consumption scene information, a security check and an authority check are performed on the target client to obtain a check result;
[0026] If the detection result is that the detection is passed, it is determined that the target client has the control authority of the monitoring device in the consumption occasion;
[0027] Control at least one of the monitoring devices in the consumption occasion based on the control authority, and control the monitoring device to track the location of the target client through the positioning device, NFC device and / or wireless device provided on the target client;
[0028] According to the position of the target client, the camera of the monitoring device is controlled to face the consumption position of the target client corresponding to the current consumption, and the video data of the consumption communication process data is obtained through the monitoring device.
[0029] In a possible implementation, after acquiring the video data of the consumer communication process data through the monitoring device, the method further includes:
[0030] Calling all second video data related to the current consumption in the video data of the consumption communication process data, and bundling the second video data with the third consumption retained evidence data;
[0031] The second video data and the third consumption retention evidence data after bundling processing are determined as historical consumption retention data, and the historical consumption retention data is stored in a designated consumption system.
[0032] In a second aspect, a transaction data processing device is provided, which is applied to a terminal device, wherein an electronic payment device is arranged within a preset distance around the terminal device, and a camera is arranged on the terminal device; the device comprises:
[0033] A control module, configured to respond to a payment code scanning operation on the terminal device, and control the camera to obtain a payment code image of the electronic payment code on the electronic payment receiving device and a real-time image of the surrounding environment of the electronic payment code according to the payment code scanning operation; wherein the real-time image includes images of the electronic payment receiving device and a payment receiving person corresponding to the electronic payment receiving device;
[0034] An identification module, used to process payment based on the payment code image, and perform QR code recognition on the payment code image to obtain information of the payment receiving end corresponding to the payment code image;
[0035] a determination module, configured to identify the information of the payment collector determined by face recognition based on the real-time image, identify the device identifier of the electronic payment collection device in the real-time image, obtain payment collection device information, and identify the surrounding environment of the electronic payment code in the real-time image, obtain consumption environment information;
[0036] The verification module is used to determine the information of the payment collector, the information of the payment terminal, the consumption environment information, the payment device information and the real-time image as the first consumption retained evidence data corresponding to the current consumption of the scanning payment code operation, and verify the consumption situation of the current consumption through the first consumption retained evidence data.
[0037] In a third aspect, the present application provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, and when the processor executes the computer program, the method described in the first aspect is implemented.
[0038] In a fourth aspect, the present application further provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to execute the method described in the first aspect.
[0039] The present application brings the following beneficial effects: a transaction data processing method, device and electronic device provided by the present application can respond to the scanning payment code operation acting on the terminal device, and control the camera to obtain the payment code image of the electronic payment code on the electronic payment device and the real-time image of the surrounding environment of the electronic payment code according to the scanning payment code operation; wherein the real-time image contains the image of the electronic payment device and the payment person corresponding to the electronic payment device; payment processing is performed based on the payment code image, and the payment code image is subjected to two-dimensional code recognition to obtain the information of the payment code image corresponding to the payment terminal; based on the information of the payment person determined by face recognition in the real-time image, the device identification of the electronic payment device in the real-time image is identified to obtain the payment device information, and the surrounding environment of the electronic payment code in the real-time image is identified to obtain the consumption environment information; the information of the payment person, the information of the payment terminal, the consumption environment information, the payment device information and the real-time image are determined as the first consumption retention evidence data corresponding to the current consumption of the scanning payment code operation, so as to verify the consumption situation of the current consumption through the first consumption retention evidence data. In this solution, when the terminal device performs a payment code scanning operation, the camera can be controlled according to the payment code scanning operation to not only obtain the payment code image of the electronic payment code on the electronic payment device, but also obtain the real-time image of the surrounding environment of the electronic payment code, so that the information of the payment collector can be determined by face recognition based on the real-time image, and the payment collector information can be obtained by identifying the device identification of the electronic payment collector in the real-time image. Furthermore, the consumption environment information can be obtained by performing environmental recognition on the surrounding environment of the electronic payment code in the real-time image, so that the consumption evidence data corresponding to the current consumption of the payment code scanning operation can include the information of these payment collectors, the information of the payment terminal, the consumption environment information, the payment collector information and the real-time image, so that the consumption situation of the current consumption can be more accurately verified through the consumption evidence data with more accurate and comprehensive data, thereby improving the accuracy of the transaction data verification result and solving the technical problem of low data processing accuracy of transaction data.
[0040] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0042] Figure 1 A flowchart of a transaction data processing method provided in an embodiment of the present application;
[0043] Figure 2 Another flowchart of the transaction data processing method provided in the embodiment of the present application;
[0044] Figure 3 A schematic diagram of the structure of a transaction data processing device provided in an embodiment of the present application;
[0045] Figure 4 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.
[0047] The terms "including" and "having" and any variations thereof mentioned in the embodiments of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.
[0048] At present, employees often have canteens and other consumption places at their workplaces. The existing human resources system manages the transaction data of employees' consumption at these consumption places manually. For example, the creation, verification, update and deletion of transaction data all need to be completed manually by the staff of the human resources department. This transaction data processing method is prone to errors and takes a long time, resulting in low accuracy of the existing transaction data processing. In addition, account information may be scattered in different databases or files without a unified management system. Due to the lack of a unified management platform, data may be scattered and inconsistent. Furthermore, paper records of transaction data are easily lost or tampered with, and there is a lack of effective security protection measures.
[0049] Based on this, the embodiments of the present application provide a transaction data processing method, device and electronic device, through which the technical problem of low accuracy in data processing of transaction data can be solved.
[0050] The embodiments of the present invention are further described below in conjunction with the accompanying drawings.
[0051] Figure 1 A flowchart of a transaction data processing method provided by an embodiment of the present application. The method can be applied to a terminal device, wherein an electronic payment device is arranged within a preset distance around the terminal device, and a camera is arranged on the terminal device. Figure 1 As shown, the method includes:
[0052] Step S110, in response to the payment code scanning operation on the terminal device, the camera is controlled according to the payment code scanning operation to obtain a payment code image of the electronic payment code on the electronic payment receiving device and a real-time image of the surrounding environment of the electronic payment code.
[0053] The real-time image includes the image of the electronic payment device and the payment person corresponding to the electronic payment device.
[0054] For the process of consumption corresponding to the scanning payment code operation, for example, when an employee consumer or a company account consumer consumes at a consumption place, the transaction is completed through a consumption machine or mobile payment. During the consumption process, when the client scans the QR code corresponding to the payment object on the electronic payment device, the client turns on several cameras installed on itself, such as the client turns on the wide-angle lens installed on itself, so that the client can obtain a real-time image of the environment around the QR code by taking a photo while scanning the QR code, and the real-time image includes images of the electronic payment device and the payment person.
[0055] As a possible implementation, the application at the front end is responsible for interacting with the user, displaying the interface and sending requests. The service backend processes the application logic from the front end and calls the relevant hardware interface or API. For the camera set on the terminal device, the software interface communicates with the operating system or directly with the hardware to capture the image. The captured image is processed by the image processing module, such as recognizing a QR code. In this step, first, the user triggers the scan payment code function. For example, a button or shortcut is provided in the application of the terminal device (such as a smartphone) to allow the user to start the scan payment code function. Then, the camera is automatically started. After the application detects the user's request to scan the payment code, it sends an instruction to the operating system to activate the camera. If necessary, the application may also need to request access to the camera. After that, the image is captured. After the camera is turned on, it starts to continuously shoot the video stream or capture static pictures regularly. For the demand for real-time images, keep the video stream open; if only photos at a specific moment are needed, snap at the right time.
[0056] For the real-time image acquisition process, you need to ensure that the camera is correctly configured and can stably capture clear payment code images. This is achieved by using the camera function of a mobile device or a dedicated scanning device to capture the payment code.
[0057] For the image processing captured by the camera, computer vision technology is used to locate and decode the QR code on the screen and analyze the image background information, which may involve edge detection, color segmentation and other technologies to better understand the entire consumption scenario. According to business needs, it may also be necessary to further process the image, for example, cropping the payment code area and saving it as a separate file. If the payment code information is successfully read, the data is returned to the user interface to display the result; if the payment code is not correctly identified, a corresponding prompt message can be given, and it is recommended to adjust the angle and try again.
[0058] The front end of the terminal device can use React Native or Flutter to quickly develop mobile applications across platforms. The back end can use Node.js, Python Flask / Django, etc., which are suitable for building lightweight web services. The image processing library can use OpenCV, which is a powerful open source computer vision library that supports multiple programming languages. QR code decoding can use ZXing ("Zebra Crossing"), which is a barcode image processing library that supports multiple types of barcodes and QR codes.
[0059] In an alternative implementation, Python can be used with the OpenCV library to implement basic QR code scanning functionality. It can open the default camera, continuously read the video stream, and try to decode any visible QR codes from it. When a QR code is found, the location is marked on the screen and the decoded data is printed.
[0060] Step S120, perform payment processing based on the payment code image, and perform QR code recognition on the payment code image to obtain information of the payment code image corresponding to the payment receiving end.
[0061] In practical applications, the collected transaction data may include the amount of consumption, time of consumption, type of consumption account, etc. In the process of QR code recognition, the existing QR code decoding library (such as ZXing, ZBar, etc.) is used to parse the QR code data in the image. First, the captured image is converted into a format suitable for processing (usually a grayscale image). Then, the QR code area in the image is located by the QR code decoding algorithm. Finally, the data in the area is decoded to obtain a string containing the payee's account information, amount and other details.
[0062] For the extraction and verification of transaction data, first, extract the content, that is, extract the payee's account ID, payment amount, and other information that may be needed from the decoded string. Then perform a security check to ensure that the read data conforms to the expected format and has not been tampered with. For example, the data integrity can be verified by a checksum or other security mechanism. Then initiate a payment request to construct a payment request based on the extracted information. This request should include but is not limited to the following parameters: payee identifier, transfer amount, transaction description, and client unique identifier. Then, send a request and submit this request to the server interface of the bank or third-party payment platform through the network API. After waiting for a response, the server will return a confirmation message indicating whether the transaction is successfully completed. If it fails, the error reason needs to be provided for the user's reference. Finally, feedback the result, that is, provide the user with a clear operation result prompt, whether it is successful or failed, a corresponding explanation should be given. If it is a successful transaction, the transaction details and electronic receipt can be displayed; if it is a failure, the user needs to be informed of the specific problem and suggested how to solve it. For example, the pyzbar library is used in the Python environment for QR code recognition.
[0063] Step S130, based on the information of the payee determined by face recognition in the real-time image, the device identification of the electronic payment device in the real-time image is identified to obtain the payment device information, and the surrounding environment of the electronic payment code in the real-time image is identified to obtain the consumption environment information.
[0064] The payee may be a payee whose information is determined by face recognition based on real-time images.
[0065] For the face recognition process, for example, existing facial recognition libraries (such as OpenCV, Dlib, FaceNet, etc.) are used for face detection and recognition. The processing flow may include: firstly, face detection is performed to detect all face areas from the real-time image; then, feature extraction is performed, that is, the key features of each face are extracted; then, feature matching is performed, that is, the extracted features are compared with the known face database to determine the identity of the payee; for security considerations, the accuracy and robustness of the face recognition system are ensured, and necessary privacy protection measures are taken; then, device identification recognition is performed, and OCR (optical character recognition) technology is used to recognize the text in the image.
[0066] For the identification process of the device identification, for example, image preprocessing is first performed, that is, grayscale and binarization are performed on the image to improve the recognition effect; then text positioning is performed to locate the text area containing the device identification in the image; then text recognition is performed, that is, the device identification is recognized using an OCR tool (such as Tesseract). For example, the recognition rate of a device identification in a specific format can be improved by training a specific OCR model.
[0067] For the environmental recognition process of the surrounding environment, for example, a deep learning model (such as a convolutional neural network (CNN)) is used for image classification. First, data set preparation is performed, that is, image data of different consumption environments are collected and labeled; then model training is performed, that is, an environmental classification model is trained using the labeled data set; then environmental recognition is performed, that is, real-time images are input into the trained model, and the consumption environment category corresponding to the image is output. Example scenarios include restaurants, supermarkets, convenience stores, etc.
[0068] Through the above steps, processes such as face recognition, device identification recognition and environment recognition based on real-time images can be realized. The application of these processes can greatly improve the security of the payment process and user experience.
[0069] Step S140, the information of the payment person, the payment terminal, the consumption environment information, the payment device information and the real-time image are determined as the first consumption retained evidence data corresponding to the current consumption of the scanning payment code operation, so as to verify the consumption situation of the current consumption through the first consumption retained evidence data.
[0070] As a possible implementation method, the real-time image is used as consumption evidence data. The consumption evidence data may include payment device information, payment personnel information, consumption process data, and consumption environment data. These consumption evidence data are used to verify the current consumption situation.
[0071] For the information of the payment collector, it may include the name, work number, photo, etc. of the payment collector. The photo can be obtained from the real-time image through face recognition technology. For the payment terminal information, it may include the merchant name, merchant ID, merchant address, etc., which can be obtained from the electronic payment device or the background system. For the consumption environment information, it may include the consumption place (such as restaurant, supermarket), time, geographical location, etc., which can be obtained from the real-time image through the environment recognition model, or the geographical location can be obtained through GPS positioning. For the payment device information, it may include the device model, device ID, device location, etc., and the device identification can be identified from the real-time image through OCR technology. For the real-time image, the image containing the payment collector, payment device, and consumption environment can be captured from the real-time image by the camera.
[0072] For the storage of transaction data, the above information can be stored in a structured manner, using a database (such as MySQL, MongoDB) or a file system (such as a JSON file). For data verification, in order to verify the current consumption, the following steps can be taken: First, perform a data integrity check, such as verifying fields to ensure that all key fields are correctly filled in, and checking the consistency of the logical relationships between the fields through data consistency, such as whether the photo of the cashier matches the facial recognition result.
[0073] Then perform image analysis. The face recognition process can be re-performed to confirm the identity of the cashier. For environmental recognition, the environmental recognition model can be run again to confirm the consumption environment. For device recognition, OCR recognition can be re-performed to confirm the payment device information.
[0074] For cross-system verification, you can compare with the merchant system, compare the collected data with the merchant backend system records to ensure the consistency of transaction information. You can also compare with the payment platform, compare the data with the transaction records of the payment platform to ensure that the payment amount, time and other information are consistent.
[0075] For storage and backup, you can use database storage to store structured data in the database for easy query and management. You can also perform logging to record the process and results of each verification for subsequent auditing. You can also perform regular backups, that is, back up the database regularly to prevent data loss. For security and privacy, you can encrypt and store the above data, such as encrypting and storing sensitive information (such as photos and personal identity information). You can also perform access control and set strict permission control so that only authorized personnel can access the data. For compliance, you need to ensure that the entire process complies with relevant laws and regulations and protect user privacy.
[0076] Through the above steps, the consumption information of scanning payment code operations can be effectively collected, stored and verified to ensure the security and reliability of transactions.
[0077] In the embodiment of the present application, when the terminal device performs a payment code scanning operation, the camera can be controlled according to the payment code scanning operation to not only obtain the payment code image of the electronic payment code on the electronic payment device, but also obtain the real-time image of the surrounding environment of the electronic payment code, so that the information of the payment collector can be determined by face recognition based on the real-time image, and the payment collection device information can be obtained by identifying the device identifier of the electronic payment device in the real-time image. Furthermore, the consumption environment information can be obtained by performing environmental recognition on the surrounding environment of the electronic payment code in the real-time image, so that the The consumption evidence data corresponding to the current consumption when scanning the payment code operation can include the information of these payment personnel, the information of the payment terminal, the consumption environment information, the payment device information and the real-time image, so that the consumption situation of the current consumption can be more accurately verified through more accurate and comprehensive consumption evidence data, improving the accuracy of the transaction data verification results, solving the technical problem of low accuracy of data processing of transaction data, and thus ensuring that all transaction records are accurate, so that when the transaction data verifies consumption anomalies, such as transaction failures, deduction errors, etc., they can be checked and processed in a timely manner. Through the above transaction data processing process, the accurate recording of consumption transactions is ensured, while providing employee consumers with clear consumption records and convenient consumption experience.
[0078] The above steps are described in detail below.
[0079] In some embodiments, the real-time image is in the form of a video, and the first video corresponding to the real-time image contains consumption communication process data between the cashier and the consumer corresponding to the terminal device; the method may also include the following steps:
[0080] Based on the data of the consumer communication process, image analysis and voice analysis are performed to obtain the consumption content, consumption quantity and consumer corresponding to the current consumption; based on the consumption content, consumption quantity and consumer, the AI system is used to analyze and determine the consumption type of the current consumption; the consumption type includes any one or more of public consumption, private consumption and external consumption;
[0081] The consumption type, consumption content, consumption quantity and consumer are added to the first consumption retained evidence data to obtain the second consumption retained evidence data, so as to perform a second verification on the consumption situation of the current consumption through the second consumption retained evidence data containing the consumption type, consumption content, consumption quantity and consumer.
[0082] As a possible implementation method, the above-mentioned real-time image can be in the form of a video, and the first video corresponding to the real-time image contains the consumption communication process data between the consumer and the cashier. Based on the consumption communication process data, the AI system performs video analysis to obtain consumption content, consumption quantity, consumer, public consumption or private consumption and other consumption conditions, and these data are also used as consumption evidence data. Through more complete and comprehensive consumption evidence data, the current consumption situation can be verified twice.
[0083] The consumption process includes consumption for business, personal, and external consumption. After receiving the transaction data, the company recharge system automatically calculates the amount to be deducted based on the account type and consumption location settings. For personal accounts, the system deducts the consumption amount from the personal account balance. For corporate account consumers, the system deducts the consumption amount from the corresponding corporate consumption account. If the employee consumer uses a corporate recharge account, the system deducts the consumption amount from the corporate recharge account and records the consumption details.
[0084] In the embodiment of the present application, by including more complete and comprehensive consumption evidence data including consumption type, consumption content, consumption quantity and data of consumers, a more accurate secondary verification of the current consumption situation can be performed.
[0085] In some embodiments, the terminal device is further provided with a positioning device and a timing device; the method may further include the following steps:
[0086] In response to the scanning payment code operation on the terminal device, the consumption time information of the current consumption is obtained through the timing device, and the consumption location information of the current consumption is obtained through the positioning device; the consumption location information corresponding to the current consumption is determined according to the consumption location information and the consumption environment information;
[0087] The consumption time information, consumption place information and consumption location information are added to the second consumption retained evidence data to obtain the third consumption retained evidence data, so as to verify the consumption situation of the current consumption three times through the third consumption retained evidence data containing the consumption time information, consumption place information and consumption location information.
[0088] During the consumption process, the location data of consumption is obtained through the positioning device installed on the client itself, and the time data of consumption is obtained through the timing device installed on the client itself, and the location data and time data of consumption are also used as the consumption evidence data. It can be seen that the consumption evidence data also includes the consumption time data, the location data of consumption and the occasion data of consumption.
[0089] By including more comprehensive and complete consumption evidence including consumption time information, consumption place information and consumption location information, the data can conduct a more accurate three-time verification of the current consumption, further improving the accuracy of transaction data.
[0090] In some embodiments, each consumption type corresponds to a respective consumption account, and the consumption account includes any one or more of a personal recharge account, a unit recharge account, and a reimbursement account; the method may further include the following steps:
[0091] Determine the identity of the payee corresponding to the current consumption based on the terminal device; determine the identities of all consumers through face recognition based on real-time images; and use the AI system to analyze and determine the target consumption account corresponding to the current consumption based on the consumption type, consumption location information, payee identity and consumer identity.
[0092] Regarding the process of determining the identities of all consumers through face recognition based on real-time images, illustratively, the personnel data related to the current consumption is determined based on the face recognition results of the people around the first client.
[0093] As an optional implementation method, the consumption type of the current consumption is determined to be public consumption, private consumption or external consumption based on multiple verification results of the current consumption. Different consumption types correspond to different consumption accounts, that is, public consumption, private consumption, external consumption and other consumption types each correspond to a different consumption account, and the consumption accounts include personal recharge accounts, unit recharge accounts, reimbursement accounts and other accounts.
[0094] The above-mentioned target consumption accounts may include personal accounts, company consumption accounts, and company recharge accounts, etc. Among them, for personal accounts, exemplarily, several company sub-accounts and one personal account are set up in the account. The balance queried by the employee during his / her employment is the total amount of each account. When the employee reports his / her resignation, the second-level administrator of the employee's company shall report the freezing process, and the remaining amount shall be consumed before leaving. If there is still a company balance when the account is destroyed, it shall be returned to the public recharge account of the recharge company. For company consumption accounts, exemplarily, each company has a fixed account for settlement of business activities, which only accepts recharges. When the company is destroyed, the balance can be returned to the recharge company (company bank), and cannot be returned to the company recharge account. For company recharge accounts, exemplarily, it is only used to store accounts frozen and returned by the company, and the balance can be used to recharge employee accounts, but not for external personnel accounts and company public consumption accounts.
[0095] In the embodiment of the present application, the consumption type, consumption location information, identity of the payee and identity of the consumer are used to analyze and determine the target consumption account corresponding to the current consumption through the AI system, thereby improving the accuracy of determining the target consumption account and avoiding the occurrence of erroneous situations in which the wrong consumption account is determined and the deduction account is caused.
[0096] In some embodiments, the method may further include the following steps: querying the duty data of the cashier in the consumption venue corresponding to the consumption venue information according to the cashier information and the consumption venue information;
[0097] The duty time in the duty data is compared with the consumption time information. If the duty time contains the consumption time corresponding to the consumption time information, it is determined that the consumption time information verification is passed, so as to perform four verifications on the consumption situation of the current consumption according to the duty time.
[0098] As an example, for the above-mentioned cashier information, the duty data of the cashier at the consumption occasion can also be queried based on the consumption occasion data, and the consumption time data can be verified according to the time information in the duty data. The duty time of the cashier at the consumption occasion is compared with the consumption time. If the duty time includes the consumption time, it is determined that the time data of the current consumption has been verified.
[0099] In the embodiment of the present application, by comparing the duty time in the duty data with the consumption time information, the verification of the consumption time information can be more accurate, so that the four verification data of the consumption situation of the current consumption through the duty time are more accurate, further improving the accuracy of the transaction data.
[0100] In some embodiments, Figure 2 As shown, the method may also include the following steps:
[0101] Step a), in response to the target client being successfully connected to the wireless network device in the consumption scene corresponding to the consumption scene information, performing security detection and authority detection on the target client to obtain detection results;
[0102] Step b), if the detection result is that the detection is passed, it is determined that the target client has the control authority of the monitoring device in the consumption occasion;
[0103] Step c), controlling at least one monitoring device in the consumption occasion based on the control authority, and controlling the monitoring device to track the location of the target client through a positioning device, an NFC device and / or a wireless device provided on the target client;
[0104] Step d), according to the position of the target client, the camera of the monitoring device is controlled to face the consumption position corresponding to the target client at the time of consumption, and the video data of the consumption communication process data is obtained through the monitoring device.
[0105] Exemplarily, when the first client in the consumption scene is successfully connected to the corresponding wireless device of the consumption scene, the first client is subjected to security check and permission check. If both checks pass, the first client can control at least one monitoring device in the consumption scene, and control the monitoring device to track the position of the first client through the positioning device, NFC data or wireless positioning data of the first client, and control the camera of the monitoring device to face the consumption position corresponding to the current consumption of the first client, and obtain the video data of the current consumption process through the monitoring device.
[0106] In an embodiment of the present application, a connection is successfully established between a target client and a wireless network device in a consumption scene corresponding to the consumption location information. The positioning device, NFC device and / or wireless device set on the target client with control authority controls the monitoring device to track the location of the target client. The camera of the monitoring device can be controlled to point toward the consumption location corresponding to the current consumption of the target client, and video data of the consumption communication process data is obtained through the monitoring device, so that the process of obtaining the video data of the consumption communication process is more efficient and no longer restricted by the scene. Moreover, the control has authority to ensure data security.
[0107] In some embodiments, after the above step of acquiring the video data of the consumer communication process data through the monitoring device, the method may further include the following steps:
[0108] Call all the second video data related to the current consumption in the video data of the consumption communication process data, and bundle the second video data with the third consumption retained evidence data; determine the bundled second video data and the third consumption retained evidence data as historical consumption retained data, and store the historical consumption retained data in the designated consumption system.
[0109] As an optional implementation, the client obtains the consumption site monitoring data of the consumption occasion, and calls the second video data related to the current consumption process in the consumption site monitoring data, and bundles and stores the second video data with the corresponding consumption evidence data of the current consumption process.
[0110] In an embodiment of the present application, all video data related to the current consumption in the video data of the consumer communication process data are called and the video data and the consumption retained evidence data are bundled and stored in a designated consumption system, so that the consumption retained evidence data and video data in the consumption system are easier to query, avoiding confusion of transaction data in the consumption system.
[0111] Figure 3A schematic diagram of the structure of a transaction data processing device is provided. The device can be applied to a terminal device, wherein an electronic payment device is arranged within a preset distance around the terminal device, and a camera is arranged on the terminal device. Figure 3 As shown, the transaction data processing device 300 includes:
[0112] The control module 301 is used to respond to the payment code scanning operation on the terminal device, and control the camera to obtain the payment code image of the electronic payment code on the electronic payment receiving device and the real-time image of the surrounding environment of the electronic payment code according to the payment code scanning operation; wherein the real-time image includes the image of the electronic payment receiving device and the payment receiving person corresponding to the electronic payment receiving device;
[0113] The recognition module 302 is used to process payment based on the payment code image and perform QR code recognition on the payment code image to obtain information of the payment receiving end corresponding to the payment code image;
[0114] The determination module 303 is used to identify the device identification of the electronic payment device in the real-time image based on the information of the payment person determined by face recognition in the real-time image to obtain payment device information, and to identify the surrounding environment of the electronic payment code in the real-time image to obtain consumption environment information;
[0115] The verification module 304 is used to determine the information of the payment collector, the information of the payment terminal, the consumption environment information, the payment device information and the real-time image as the first consumption retained evidence data corresponding to the scanning payment code operation for the current consumption, and verify the consumption situation of the current consumption through the first consumption retained evidence data.
[0116] The transaction data processing device provided in the embodiment of the present application has the same technical features as the transaction data processing method provided in the above embodiment, so it can also solve the same technical problems and achieve the same technical effects.
[0117] An electronic device provided in an embodiment of the present application is Figure 4 As shown, the electronic device 400 includes a processor 402 and a memory 401, wherein the memory stores a computer program that can be run on the processor, and the processor implements the steps of the method provided in the above embodiment when executing the computer program.
[0118] See also Figure 4 The electronic device further includes: a bus 403 and a communication interface 404, a processor 402, a communication interface 404 and a memory 401 are connected via the bus 403; the processor 402 is used to execute an executable module stored in the memory 401, such as a computer program.
[0119] The memory 401 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 404 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.
[0120] The bus 403 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0121] Among them, the memory 401 is used to store programs, and the processor 402 executes the program after receiving the execution instruction. The method executed by the device defined by the process disclosed in any embodiment of the present application can be applied to the processor 402 or implemented by the processor 402.
[0122] The processor 402 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 402. The above processor 402 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software modules in the decoding processor are combined to execute. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 401, and the processor 402 reads the information in the memory 401 and completes the steps of the above method in combination with its hardware.
[0123] Corresponding to the above-mentioned transaction data processing method, an embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to execute the steps of the above-mentioned transaction data processing method.
[0124] The transaction data processing device provided in the embodiment of the present application can be specific hardware on the device or software or firmware installed on the device. The device provided in the embodiment of the present application has the same implementation principle and technical effects as the aforementioned method embodiment. For the sake of brief description, the parts not mentioned in the device embodiment can refer to the corresponding contents in the aforementioned method embodiment. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can all refer to the corresponding processes in the aforementioned method embodiment, and will not be repeated here.
[0125] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0126] For another example, the flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the device, method and computer program product according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of the boxes in the block diagram and / or the flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0127] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0128] In addition, each functional unit in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0129] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the transaction data processing method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.
[0130] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.
[0131] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solution of the present application, rather than to limit it. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the aforementioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solution recorded in the aforementioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solution deviate from the scope of the technical solution of the embodiment of the present application. They should all be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A transaction data processing method, characterized in that: Applied to a terminal device, an electronic payment device is arranged within a preset distance around the terminal device, and a camera is arranged on the terminal device; the method comprises: In response to a payment code scanning operation on the terminal device, the camera is controlled according to the payment code scanning operation to obtain a payment code image of the electronic payment code on the electronic payment receiving device and a real-time image of the surrounding environment of the electronic payment code; wherein the real-time image includes images of the electronic payment receiving device and a payment receiving person corresponding to the electronic payment receiving device; Perform payment processing based on the payment code image, and perform QR code recognition on the payment code image to obtain information of the payment receiving end corresponding to the payment code image; Based on the information of the payment person determined by face recognition in the real-time image, the device identification of the electronic payment device in the real-time image is identified to obtain payment device information, and the surrounding environment of the electronic payment code in the real-time image is identified to obtain consumption environment information; The information of the payment collector, the information of the payment terminal, the consumption environment information, the payment device information and the real-time image are determined as the first consumption retained evidence data corresponding to the current consumption of the scanning payment code operation, so as to verify the consumption situation of the current consumption through the first consumption retained evidence data.
2. The method according to claim 1, characterized in that: The real-time image is in the form of a video, and the first video corresponding to the real-time image contains consumption communication process data between the cashier and the consumer corresponding to the terminal device; the method also includes: Perform image analysis and voice analysis based on the consumption communication process data to obtain the consumption content, consumption quantity and consumer corresponding to the current consumption; Analyze and determine the consumption type of the current consumption through the AI system according to the consumption content, the consumption amount and the consumer; wherein the consumption type includes any one or more of public consumption, private consumption and external consumption; The consumption type, the consumption content, the consumption amount and the consumer are added to the first consumption retained evidence data to obtain the second consumption retained evidence data, so as to perform a second verification on the consumption situation of the current consumption through the second consumption retained evidence data including the consumption type, the consumption content, the consumption amount and the consumer.
3. The method according to claim 2, characterized in that The terminal device is also provided with a positioning device and a timing device; the method further comprises: In response to a payment code scanning operation on the terminal device, the consumption time information of the current consumption is obtained through the timing device, and the consumption location information of the current consumption is obtained through the positioning device; Determine the consumption location information corresponding to the current consumption according to the consumption location information and the consumption environment information; The consumption time information, the consumption place information and the consumption location information are added to the second consumption retained evidence data to obtain the third consumption retained evidence data, so as to verify the consumption situation of the current consumption three times through the third consumption retained evidence data containing the consumption time information, the consumption place information and the consumption location information.
4. The method according to claim 3, characterized in that Each consumption type corresponds to a respective consumption account, and the consumption account includes any one or more of a personal recharge account, a unit recharge account, and a reimbursement account; the method further includes: Determine the identity of the payee corresponding to the current consumption according to the terminal device; Determine the consumer identities of all the consumers by face recognition based on the real-time image; According to the consumption type, the consumption location information, the identity of the payee and the identity of the consumer, the AI system analyzes and determines the target consumption account corresponding to the current consumption.
5. The method according to claim 3, characterized in that: The method further comprises: According to the information of the cashier and the consumption place information, query the duty data of the cashier in the consumption place corresponding to the consumption place information; The duty time in the duty data is compared with the consumption time information. If the duty time includes the consumption time corresponding to the consumption time information, it is determined that the consumption time information verification is passed, so as to perform four verifications on the consumption situation of the current consumption according to the duty time.
6. The method according to claim 3, characterized in that The method further comprises: In response to a successful connection between the target client and the wireless network device in the consumption scene corresponding to the consumption scene information, a security check and an authority check are performed on the target client to obtain a check result; If the detection result is that the detection is passed, it is determined that the target client has the control authority of the monitoring device in the consumption occasion; Control at least one of the monitoring devices in the consumption occasion based on the control authority, and control the monitoring device to track the location of the target client through the positioning device, NFC device and / or wireless device provided on the target client; According to the position of the target client, the camera of the monitoring device is controlled to face the consumption position of the target client corresponding to the current consumption, and the video data of the consumption communication process data is obtained through the monitoring device.
7. The method according to claim 6, characterized in that After obtaining the video data of the consumer communication process data through the monitoring device, the method further includes: Calling all second video data related to the current consumption in the video data of the consumption communication process data, and bundling the second video data with the third consumption retained evidence data; The second video data and the third consumption retention evidence data after bundling processing are determined as historical consumption retention data, and the historical consumption retention data is stored in a designated consumption system.
8. A transaction data processing device, characterized in that: Applied to a terminal device, wherein an electronic payment device is arranged within a preset distance around the terminal device, and a camera is arranged on the terminal device; including: A control module, configured to respond to a payment code scanning operation on the terminal device, and control the camera to obtain a payment code image of the electronic payment code on the electronic payment receiving device and a real-time image of the surrounding environment of the electronic payment code according to the payment code scanning operation; wherein the real-time image includes images of the electronic payment receiving device and a payment receiving person corresponding to the electronic payment receiving device; An identification module, used to process payment based on the payment code image, and perform QR code recognition on the payment code image to obtain information of the payment receiving end corresponding to the payment code image; a determination module, configured to identify the information of the payment collector determined by face recognition based on the real-time image, identify the device identifier of the electronic payment collection device in the real-time image, obtain payment collection device information, and identify the surrounding environment of the electronic payment code in the real-time image, obtain consumption environment information; The verification module is used to determine the information of the payment collector, the information of the payment terminal, the consumption environment information, the payment device information and the real-time image as the first consumption retained evidence data corresponding to the current consumption of the scanning payment code operation, and verify the consumption situation of the current consumption through the first consumption retained evidence data.
9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Flexible screen payment code display method and device and computer readable storage medium
CN108288153A
Anti-fraud mobile payment method and device
CN110400138A
Payment transaction method, payment terminal and computer readable storage medium
CN111008833A
Consumption payment method and device based on face recognition and storage medium.
CN112465508A
Payment environment monitoring method and system
CN112508569A