Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a terminal payment processing method and apparatus.
According to a first aspect of the embodiments of the present disclosure, there is provided a terminal payment processing method, including:
collecting an image through a camera;
determining whether a card swiping device exists in the image;
and when the card swiping equipment exists, controlling the opening of the payment page.
Optionally, the controlling the opening of the payment page includes:
determining the type of the card swiping equipment;
and controlling the opening of a payment page corresponding to the card swiping equipment according to the type of the card swiping equipment.
Optionally, the controlling, according to the type of the card swiping device, the opening of the payment page corresponding to the card swiping device includes:
when the type of the card swiping equipment is a bus gate or a subway gate, controlling the opening of a bus card payment page;
or when the card swiping equipment is of a POS machine at the point of sale, controlling the opening of the payment page of the bank card.
Optionally, the determining the type of the card swiping device includes:
determining the similarity between the image of the card swiping equipment and a reference image of preset card swiping equipment;
and determining the type of the card swiping equipment according to the similarity.
Optionally, the determining the type of the card swiping device includes:
acquiring characteristic information of the card swiping equipment in the image;
and determining the type of the card swiping equipment according to the characteristic information of the card swiping equipment.
Optionally, the controlling the opening of the payment page includes;
displaying an identifier for indicating to open a payment page;
acquiring a payment opening instruction input by a user based on the identification;
and opening the payment page according to the payment opening instruction.
According to a second aspect of the embodiments of the present disclosure, there is provided a terminal payment processing apparatus, including:
an acquisition module configured to acquire an image through a camera;
a determination module configured to determine whether a card swiping device is present in the image;
the control module is configured to control the opening of the payment page when the determination module determines that the card swiping device exists.
Optionally, the control module includes: a determination submodule and a control submodule;
the determination submodule is configured to determine the type of the card swiping device;
the control sub-module is configured to control the opening of a payment page corresponding to the card swiping device according to the type of the card swiping device.
Optionally, the control module comprises: a first processing submodule and a second processing submodule;
the first processing submodule is configured to control the bus card payment page to be opened when the type of the card swiping equipment is a gate of a bus or a gate of a subway;
the second processing sub-module is configured to control the opening of a bank card payment page when the card swiping device is of a point of sale POS machine type.
Optionally, the determining sub-module includes: a similarity determination submodule and a first type determination submodule;
the similarity determination submodule is configured to determine the similarity between the image of the card swiping device and a reference image of a preset card swiping device;
the first type determination submodule is configured to determine the type of the card swiping equipment according to the similarity.
Optionally, the determining sub-module includes: a first obtaining submodule and a second type determining submodule;
the first obtaining sub-module is configured to obtain characteristic information of the card swiping equipment in the image;
the second type determination submodule is configured to determine the type of the card swiping device according to the characteristic information of the card swiping device.
Optionally, the control module comprises: the display submodule, the second acquisition submodule and the opening submodule;
the display sub-module is configured to display an identifier for indicating to open a payment page;
the second obtaining submodule is configured to obtain a payment opening instruction input by a user based on the identification;
the opening sub-module is configured to open the payment page according to the payment opening instruction.
According to a third aspect of the embodiments of the present disclosure, there is provided a terminal payment processing apparatus, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
collecting an image through a camera;
determining whether a card swiping device exists in the image;
and when the card swiping equipment exists, controlling the opening of the payment page.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: collecting an image through a camera; determining whether a card swiping device exists in the image; and when the card swiping equipment exists, controlling the opening of the payment page. This embodiment is when gathering the equipment of punching the card through the camera, the quick control payment page open, improves payment efficiency.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a terminal payment processing method according to an exemplary embodiment, where the terminal payment processing method is used in a terminal as shown in fig. 1, and includes the following steps.
In step S11, an image is captured by the camera.
In step S12, it is determined whether a card swiping device is present in the image.
In step S13, when the card swiping device exists, the opening of the payment page is controlled.
In this embodiment, the camera of the terminal can shoot images, and therefore, the image that the user needs to shoot is collected through the camera in this embodiment. One way is as follows: the user can input a camera opening instruction to the terminal, for example: a user performs a contact operation on a camera icon displayed in a display interface of the terminal, or when the terminal is in a screen lock state, the user contacts a camera identifier and slides upwards to input a camera opening instruction to the terminal. After the terminal acquires the camera opening instruction, the camera is opened according to the camera opening instruction, and after the camera is opened, the camera can collect images. Then, whether a card swiping device exists in the acquired image is determined, when the card swiping device exists in the image which the user needs to acquire, the present embodiment controls the opening of the payment page, the user can perform payment processing based on the payment page, and when the card swiping device does not exist in the image which the user needs to acquire, the present embodiment may not execute S13, for example, it may be considered that the user needs to shoot an image at present.
In summary, in the terminal payment processing method provided by the embodiment, the camera is used for collecting the image; determining whether a card swiping device exists in the image; and when the card swiping equipment exists, controlling the opening of the payment page. This embodiment is when gathering the equipment of punching the card through the camera, the quick control payment page open, improves payment efficiency.
Fig. 2 is a flowchart illustrating a terminal payment processing method according to another exemplary embodiment, where the terminal payment processing method is used in a terminal as shown in fig. 2, and includes the following steps.
In step S21, an image is captured by the camera.
In step S22, it is determined whether a card swiping device is present in the image.
In this embodiment, for specific implementation processes of S21 and S22, reference may be made to the related description of the embodiment shown in fig. 1, and details are not repeated here.
In step S23, when a card swiping device exists, the type of the card swiping device is determined.
In step S24, according to the type of the card swiping device, opening of a payment page corresponding to the card swiping device is controlled.
In this embodiment, when the card swiping device exists in the captured image, the present embodiment may determine the type of the card swiping device in the image, and when the card swiping device does not exist in the image that the user needs to capture, the present embodiment may not perform S23 and S24, for example, it may be considered that the user needs to capture an image at present. After the type of the card swiping device in the image is determined, according to the type of the card swiping device, a payment page corresponding to the type of the card swiping device is determined, and then the opening of the payment page is controlled.
Optionally, one possible implementation manner of determining the type of the card swiping device is as follows: determining the similarity between the image of the card swiping equipment and a reference image of preset card swiping equipment; and determining the type of the card swiping equipment according to the similarity. In this embodiment, the terminal may store a reference image of at least one type of card swiping device in advance, where the at least one type of card swiping device may be referred to as a preset card swiping device, and the terminal compares the image of the card swiping device with the reference image of the preset card swiping device, for example, may obtain a similarity between the image of the card swiping device and the reference image of the preset card swiping device, and when the similarity is greater than a preset value, it may be determined that the type of the card swiping device is the type of the preset card swiping device, and then S24 is executed. When the similarity is smaller than the preset value, the type of the card swiping device is not considered to be the type of the preset card swiping device, and then the operation is finished.
Optionally, one possible implementation manner of determining the type of the card swiping device is as follows: acquiring characteristic information of the card swiping equipment in the image; and determining the type of the card swiping equipment according to the characteristic information of the card swiping equipment. In this embodiment, after acquiring the image, the terminal acquires feature information of the card swiping device in the image, and if the type of the card swiping device is a POS machine, the acquired feature information of the card swiping device includes, for example, characters of "union pay", which is not limited to this example. If the type of the card swiping device is a gate of a bus or a gate of a subway, the acquired feature information of the card swiping device includes, for example, a pattern of a bus card. And then the terminal determines the type of the card swiping equipment according to the obtained characteristic information of the card swiping equipment.
It should be noted that the implementation manner for determining the type of the card swiping device is not limited to the above two implementation manners.
Optionally, if the type of the card swiping device is a gate of a bus, one implementation manner of S24 is: and controlling the opening of a bus card payment page in the terminal according to the type of the card swiping equipment, namely the gate of the bus. Therefore, the terminal has the service function of the bus card.
Optionally, if the type of the card swiping device is a gate of a subway, one implementation manner of S24 is: and controlling the opening of a bus card payment page in the terminal according to the type of the card swiping equipment, namely the gate of the subway. Therefore, the terminal has the service function of the bus card.
Optionally, if the type of the card swiping device is a POS machine, one implementation manner of S24 is: and starting a bank card payment page in the terminal according to the type of the card swiping equipment, namely the POS machine. Therefore, the terminal has the service function of the bank card.
It should be noted that the type of the card swiping device of the present embodiment is not limited to the above example.
In summary, in the terminal payment processing method provided by the embodiment, the camera is used for collecting the image; when a card swiping device exists in the image, determining the type of the card swiping device; and controlling the opening of a payment page corresponding to the card swiping equipment according to the type of the card swiping equipment. When the card swiping device is collected through the camera, the opening of the payment page corresponding to the type of the card swiping device is controlled rapidly, and the payment efficiency and accuracy are improved.
Fig. 3 is a flowchart illustrating a terminal payment processing method according to another exemplary embodiment, and the terminal payment processing method is used in a terminal as shown in fig. 3, and includes the following steps.
In step S31, an image is captured by the camera.
In step S32, it is determined whether a card swiping device is present in the image.
In this embodiment, the specific implementation processes of S31 and S32 may refer to the related descriptions in the embodiment shown in fig. 1, and are not described herein again.
In step S33, when the card swiping device exists, an identifier indicating opening of the payment page is displayed.
In step S34, a payment opening instruction input by the user is acquired based on the identification.
In step S35, a payment page is opened according to the payment opening instruction.
In this embodiment, after it is determined that the card swiping device exists in the image, or after the image is collected by the camera, an identifier for indicating to open a payment page is displayed on a display interface of the terminal, where the identifier may be, for example, a virtual button, and this embodiment is not limited thereto. When the user needs to perform payment processing, the user may perform a touch operation or a sliding operation on the identifier, and in this embodiment, the touch operation or the sliding operation may be detected in the area where the identifier for instructing to open the payment page is located, and the payment opening instruction may be obtained according to the touch operation or the sliding operation. After the payment opening instruction is acquired, the embodiment can determine that the user needs to perform payment processing, and then open the payment page. If the payment opening instruction input by the user is not obtained after the identifier for indicating the opening of the payment is displayed, it can be determined that the user does not need to perform payment processing, and the payment page corresponding to the card swiping device is not opened, so that inconvenience caused by the fact that the payment page is still opened when the user needs to shoot the card swiping device can be avoided.
Optionally, in an alternative, controlling the opening of the payment page may include: when the card swiping device is present, the payment page is directly opened without performing the display of the flag indicating the opening of the payment page in S33 and the above step S34. In this arrangement the payment efficiency can be further improved. If the user does not need to open the payment page by shooting the image, the user can operate the terminal, so that the terminal does not execute the scheme of the invention.
Optionally, before the payment page is opened in step S35, the type of the card swiping device may also be determined in this embodiment, and a specific implementation process may refer to related description in the embodiment shown in fig. 2, which is not described herein again. Accordingly, one way to open a payment page is to: and opening a payment page corresponding to the card swiping equipment according to the type of the card swiping equipment.
In summary, in the terminal payment processing method provided by the embodiment, the camera is used for collecting the image; when the card swiping equipment exists, displaying an identifier for indicating to start payment; acquiring a payment opening instruction input by a user based on the identification; and opening a payment page according to the payment opening instruction. This embodiment is through when gathering the equipment of punching the card at the camera, opens the payment page fast, improves payment efficiency, has still avoided still opening the inconvenience that the payment page and cause when the user needs shoot the equipment of punching the card.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
Fig. 4 is a block diagram illustrating a terminal payment processing arrangement according to an example embodiment. The terminal payment processing device can be realized by software, hardware or a combination of the two into a part or a whole of an electronic device comprising a touch display screen. Referring to fig. 4, the apparatus includes an acquisition module 40, a determination module 50, and a control module 60.
And the acquisition module 40 is configured to acquire an image through the camera according to the camera opening instruction.
A determination module 50 configured to determine whether a card swiping device is present in the image.
A control module 60 configured to control the opening of the payment page when the determination module determines that the card swiping device exists.
With regard to the apparatus in the above-described embodiment, the specific manner and technical effects of the operations performed by the respective modules have been described in detail in the embodiment related to the method, and will not be elaborated herein.
Fig. 5 is a block diagram illustrating a terminal payment processing arrangement according to another exemplary embodiment. The terminal payment processing device can be realized by software, hardware or a combination of the two into a part or a whole of an electronic device comprising a touch display screen. Referring to fig. 5, the apparatus of this embodiment is based on the embodiment of the apparatus shown in fig. 4, and the control module 60 includes: a determination submodule 61 and a control submodule 62.
The determination submodule 61 is configured to determine the type of the card swiping device.
The control sub-module 62 is configured to control opening of a payment page corresponding to the card swiping device according to the type of the card swiping device.
With regard to the apparatus in the above-described embodiment, the specific manner and technical effects of the operations performed by the respective modules have been described in detail in the embodiment related to the method, and will not be elaborated herein.
Fig. 6 is a block diagram illustrating a terminal payment processing arrangement according to another exemplary embodiment. The terminal payment processing device can be realized by software, hardware or a combination of the two into a part or a whole of an electronic device comprising a touch display screen. Referring to fig. 6, the apparatus of this embodiment is based on the embodiment of the apparatus shown in fig. 5, and the control sub-module 62 includes: a first processing submodule 62a and a second processing submodule 62 b.
The first processing submodule 62a is configured to control the opening of the bus card payment page when the type of the card swiping device is a gate of a bus or a gate of a subway.
The second processing sub-module 62b is configured to control the opening of the bank card payment page when the card swiping device is of the POS device type.
With regard to the apparatus in the above-described embodiment, the specific manner and technical effects of the operations performed by the respective modules have been described in detail in the embodiment related to the method, and will not be elaborated herein.
Fig. 7 is a block diagram illustrating a terminal payment processing arrangement according to another exemplary embodiment. The terminal payment processing device can be realized by software, hardware or a combination of the two into a part or a whole of an electronic device comprising a touch display screen. Referring to fig. 7, the apparatus of this embodiment is based on the embodiment of the apparatus shown in fig. 5, and the determining submodule 61 includes: a phase similarity determination submodule 61a and a first type determination submodule 61 b.
The similarity determining submodule 61a is configured to determine similarity between the image of the card swiping device and a reference image of a preset card swiping device.
The first type determining submodule 61b is configured to determine the type of the card swiping device according to the similarity.
With regard to the apparatus in the above-described embodiment, the specific manner and technical effects of the operations performed by the respective modules have been described in detail in the embodiment related to the method, and will not be elaborated herein.
Fig. 8 is a block diagram illustrating a terminal payment processing arrangement according to another exemplary embodiment. The terminal payment processing device can be realized by software, hardware or a combination of the two into a part or a whole of an electronic device comprising a touch display screen. Referring to fig. 8, the apparatus of this embodiment is based on the embodiment of the apparatus shown in fig. 5, and the determining submodule 61 includes: a first acquisition submodule 61c and a second type determination submodule 61 d.
The first obtaining sub-module 61c is configured to obtain feature information of the card swiping device in the image.
The second type determining submodule 61d is configured to determine the type of the card swiping device according to the feature information of the card swiping device.
With regard to the apparatus in the above-described embodiment, the specific manner and technical effects of the operations performed by the respective modules have been described in detail in the embodiment related to the method, and will not be elaborated herein.
Fig. 9 is a block diagram illustrating a terminal payment processing arrangement according to another exemplary embodiment. The terminal payment processing device can be realized by software, hardware or a combination of the two into a part or a whole of an electronic device comprising a touch display screen. Referring to fig. 9, in the apparatus of this embodiment, based on the embodiment of the apparatus shown in any one of fig. 4 to 8, the control module 60 includes: a display submodule 63, a second acquisition submodule 64 and an opening submodule 65.
The display submodule 63 is configured to display an identifier indicating that payment is opened.
The second obtaining sub-module 64 is configured to obtain a payment opening instruction input by the user based on the identification.
The opening sub-module 65 is configured to open the payment page according to the payment opening instruction.
With regard to the apparatus in the above-described embodiment, the specific manner and technical effects of the operations performed by the respective modules have been described in detail in the embodiment related to the method, and will not be elaborated herein.
Fig. 10 is a block diagram illustrating a terminal payment processing arrangement 800 according to an example embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 10, the apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power component 806 provides power to the various components of device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed status of the device 800, the relative positioning of components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration/deceleration of the device 800, and a change in the temperature of the device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of the apparatus 800, enable the apparatus 800 to perform the terminal payment processing method described above.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.