CN110633976A - Virtual resource transfer method and device - Google Patents

Virtual resource transfer method and device Download PDF

Info

Publication number
CN110633976A
CN110633976A CN201810663621.6A CN201810663621A CN110633976A CN 110633976 A CN110633976 A CN 110633976A CN 201810663621 A CN201810663621 A CN 201810663621A CN 110633976 A CN110633976 A CN 110633976A
Authority
CN
China
Prior art keywords
virtual resource
resource transfer
numerical value
value
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810663621.6A
Other languages
Chinese (zh)
Other versions
CN110633976B (en
Inventor
张波
郝学武
张�林
钱声鹏
程斌斌
马亚伟
杨虎
王树春
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN201810663621.6A priority Critical patent/CN110633976B/en
Publication of CN110633976A publication Critical patent/CN110633976A/en
Application granted granted Critical
Publication of CN110633976B publication Critical patent/CN110633976B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/327Short range or proximity payments by means of M-devices
    • G06Q20/3274Short range or proximity payments by means of M-devices using a pictured code, e.g. barcode or QR-code, being displayed on the M-device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/14Image acquisition
    • G06V30/148Segmentation of character regions
    • G06V30/153Segmentation of character regions using recognition of characters or words

Abstract

The disclosure provides a virtual resource transfer method and device. The virtual resource transfer method comprises the following steps: acquiring a configuration file for indicating a virtual resource transfer value acquisition mode from a first terminal; acquiring a virtual resource transfer value from the first terminal according to the configuration file; and calling a virtual resource transfer interface to transfer the virtual resource based on the virtual resource transfer value. The virtual resource transfer method provided by the disclosure can adapt to various ERP systems and code scanning guns by simple setting, and has better compatibility.

Description

Virtual resource transfer method and device
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a virtual resource transfer method and apparatus.
Background
With the popularization of mobile payment, hardware code scanning payment (code scanning box and code scanning gun) is widely applied due to the advantages of high code scanning efficiency, low dependence on a wireless network and the like.
In the related art, hardware code scanning payment is generally required to be realized by using payment management software. On one hand, the payment management software obtains the payment amount input by the cashier from an ERP (Enterprise Resource Planning) system of the merchant, and on the other hand, the payment management software obtains the payment code of the payer from various hardware code scanning devices, so that a payment interface is called to realize hardware code scanning payment according to the payment code and the payment amount.
In practical application, the ERP systems (e.g. ordering systems) of merchants are various, technical frameworks used for developing the systems are different, and payment management software needs to be set and modulated in a complex way before the ERP systems are docked to obtain payment amount, so that the efficiency is low, and the user experience is poor. In addition, the types and brands of code scanning equipment on the market are various, and various types or brands of equipment communication protocols adopt different protocols, so that the compatibility of payment management software is also greatly challenged.
Therefore, a general solution is needed to improve hardware code-scanning payment management software compatibility and ease-of-use.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The present disclosure is directed to a virtual resource transfer method and a virtual resource transfer apparatus, which are used to overcome, at least to some extent, the problems of complex configuration process, low compatibility, and the like of hardware code scanning payment management software due to the limitations and defects of the related art.
According to a first aspect of the embodiments of the present disclosure, a virtual resource transfer method is provided, including: acquiring a configuration file for indicating a virtual resource transfer value acquisition mode from a first terminal; acquiring a virtual resource transfer value from the first terminal according to the configuration file; and calling a virtual resource transfer interface to transfer the virtual resource based on the virtual resource transfer value.
In an exemplary embodiment of the present disclosure, the acquiring a virtual resource transfer value from the first terminal according to the configuration file includes:
when the configuration file indicates that the virtual resource transfer value acquisition mode is window capture, acquiring the virtual resource transfer value from a control to which a predetermined virtual resource transfer value belongs;
and when the configuration file indicates that the virtual resource transfer value acquisition mode is image recognition, performing image recognition on a predetermined virtual resource transfer value display area to acquire the virtual resource transfer value.
In an exemplary embodiment of the present disclosure, the method further comprises determining a control to which the virtual resource transfer value belongs:
acquiring display information of the first terminal, and determining at least one window according to the display information;
determining a numerical input form including a numerical input control in the at least one form;
and if the number of the numerical value input forms is one, recording the numerical value input forms and the numerical value input controls corresponding to the numerical value input forms.
In an exemplary embodiment of the present disclosure, the determining the control to which the virtual resource transfer value belongs further includes:
if the number of the numerical value input forms is multiple, displaying preset numerical value input prompt information on the first terminal;
and responding to the preset numerical value input message to determine and record a numerical value input control comprising a preset numerical value and a numerical value input form corresponding to the numerical value input control.
In an exemplary embodiment of the present disclosure, the determining the control to which the virtual resource transfer value belongs further includes:
and if the number of the numerical value input forms is multiple, determining and recording a numerical value input form with a prior sequence and a numerical value input control corresponding to the numerical value input form according to the form sequence of the numerical value input forms.
In an exemplary embodiment of the present disclosure, the method further comprises determining a virtual resource transfer value display area:
displaying virtual resource transfer value display area frame selection prompt information at the first terminal;
responding to the first area selection message to acquire the page position and the area range of the first area;
intercepting a screen image of the first terminal, and performing OCR recognition on the first area in the screen image according to the page position and the area range of the first area;
and when the OCR recognition result comprises a numerical value meeting a preset condition, recording the first area as the virtual resource transfer value display area.
In an exemplary embodiment of the present disclosure, the invoking a virtual resource transfer interface for virtual resource transfer based on the virtual resource transfer value includes:
acquiring virtual resource transfer information in response to an information input message from a second terminal;
analyzing the virtual resource transfer information according to a plurality of preset communication protocols to acquire virtual resource transfer authority information;
and calling a virtual resource transfer interface to transfer the virtual resource to an account corresponding to the first terminal according to the virtual resource transfer authority information and the virtual resource transfer value.
According to a third aspect of the present disclosure, there is provided a virtual resource transfer apparatus, including:
a configuration acquisition module configured to acquire a configuration file indicating a virtual resource transfer value acquisition mode from a first terminal;
the value determining module is set to acquire a virtual resource transfer value from the first terminal according to the configuration file;
and the transfer module is set to call a virtual resource transfer interface to transfer the virtual resource based on the virtual resource transfer value.
According to a third aspect of the present disclosure, there is provided an electronic device comprising: a memory; and a processor coupled to the memory, the processor configured to perform in one exemplary embodiment of the present disclosure based on instructions stored in the memory.
According to a fourth aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon a program which, when executed by a processor, implements a virtual resource transfer method as in any one of the above.
According to the virtual resource transfer method, window grabbing or OCR recognition is carried out on the display interface of the user EPR system in the equipment configuration stage, configuration for obtaining payment amount of different EPR systems can be rapidly completed, and usability and use efficiency of payment management software are greatly improved. In addition, the compatibility of payment management software is improved by pre-storing the communication protocol of each code scanning device and updating the communication protocol in real time, so that a merchant can use the whole set of hardware code scanning payment device without complicated setting.
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.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty.
Fig. 1 is a flowchart of a virtual resource transfer method in an exemplary embodiment of the present disclosure.
Fig. 2 is a sub-flowchart of a virtual resource transfer method in an exemplary embodiment of the present disclosure.
Fig. 3 is a sub-flowchart of a virtual resource transfer method in an exemplary embodiment of the present disclosure.
FIG. 4 is a sub-flowchart of a virtual resource transfer method in an exemplary embodiment of the present disclosure.
Fig. 5 is a sub-flowchart of a virtual resource transfer method in an exemplary embodiment of the present disclosure.
FIG. 6 is a sub-flowchart of a virtual resource transfer method in an exemplary embodiment of the present disclosure.
Fig. 7 is a flowchart of a virtual resource transfer method in an application scenario according to the present disclosure.
Fig. 8 is a block diagram of a virtual resource transfer apparatus in an exemplary embodiment of the disclosure.
FIG. 9 is a block diagram of an electronic device in an exemplary embodiment of the disclosure.
FIG. 10 is a schematic illustration of a computer-readable storage medium in an exemplary embodiment of the disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and the like. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Further, the drawings are merely schematic illustrations of the present disclosure, in which the same reference numerals denote the same or similar parts, and thus, a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The following detailed description of exemplary embodiments of the disclosure refers to the accompanying drawings.
Fig. 1 schematically shows a flowchart of a virtual resource transfer method in an exemplary embodiment of the present disclosure. Referring to fig. 1, a virtual resource transfer method 100 may include:
step S1, obtaining a configuration file for indicating a virtual resource transfer value obtaining mode from a first terminal;
step S2, obtaining a virtual resource transfer value from the first terminal according to the configuration file;
step S3, based on the virtual resource transfer value, calling a virtual resource transfer interface to transfer the virtual resource.
According to the virtual resource transfer method, window grabbing or OCR recognition is carried out on the display interface of the user EPR system in the equipment configuration stage, configuration for obtaining payment amount of different EPR systems can be rapidly completed, and usability and use efficiency of payment management software are greatly improved. In addition, the compatibility of payment management software is improved by pre-storing the communication protocol of each code scanning device and updating the communication protocol in real time, so that a merchant can use the whole set of hardware code scanning payment device without complicated setting.
The following describes each step of the virtual resource migration method 100 in detail.
In step S1, a configuration file indicating a virtual resource transfer value acquisition manner is acquired from the first terminal.
The method provided by the present disclosure may be applied to payment management software. In this embodiment of the disclosure, the first terminal may be, for example, an ERP system of a merchant, and the configuration file includes a file that records a manner of obtaining a virtual resource transfer value of the ERP system, where the manner of obtaining the virtual resource transfer value of the ERP system may be set by a user.
In the embodiment of the present disclosure, the manner of obtaining the virtual resource transfer value of the ERP system may include, but is not limited to, window capture, screen text recognition, and virtual serial port reading.
If the ERP system is connected with a user display, the virtual resource transfer value data can be obtained by analyzing the serial port communication data, and the serial port reading configuration record is recorded in the configuration file. However, this method requires a complicated configuration process and a certain knowledge threshold, and is not easily used by a common merchant, so that it can be used as an alternative configuration method and set a lower recommendation priority.
The window capture mode is to acquire and acquire the virtual resource transfer value data by reading window information of the EPR system. In the method, a user is prompted to open a window for displaying the virtual resource transfer value of the EPR system in the configuration process, preset characters are input on a control for displaying the virtual resource transfer value, so that configuration software can be accurately positioned to the control for displaying the virtual resource transfer value and the window where the control is located, and the access mode of the control is recorded in a configuration file.
The screen character recognition mode is a mode of acquiring virtual resource transfer value data by performing character recognition on a preset position in a screen of the user EPP system. In the method, a user is prompted to select an area with the virtual resource transfer value displayed in a screen and record the area in a configuration file in the configuration process, so that the area can be directly subjected to character recognition when the virtual resource transfer value is acquired.
According to the embodiment of the disclosure, a user can set which way to acquire the virtual resource transfer value data, and prompt the user to configure according to the selected way at the system configuration stage according to the user selection, and finally record the configured parameters in the configuration file for calling when acquiring the virtual resource transfer value data.
Step S2, obtaining a virtual resource transfer value from the first terminal according to the configuration file.
Fig. 2 is a sub-flow diagram of an embodiment of the disclosure.
Referring to fig. 2, in an exemplary embodiment of the present disclosure, step S2 may include:
step S21, when the configuration file indicates that the virtual resource transfer value acquisition mode is window capture, acquiring the virtual resource transfer value from a control to which a predetermined virtual resource transfer value belongs;
step S22, when the configuration file indicates that the virtual resource transfer value acquisition manner is image recognition, perform image recognition on a predetermined virtual resource transfer value display area to acquire the virtual resource transfer value.
Firstly, which way the virtual resource transfer value indicated by the configuration file is obtained can be judged, and then the virtual resource transfer value is obtained according to the way.
As described in step S1, when the virtual resource transfer value obtaining manner is window capture, the configuration file records a control for displaying the virtual resource transfer value, a window where the control is located, and a manner of accessing the window and the control. The virtual resource transfer value can be obtained by accessing a control to which a predetermined virtual resource transfer value belongs according to the information of the configuration file.
FIG. 3 is a process for determining a control to which a virtual resource transfer value belongs.
Referring to fig. 3, determining a control to which a virtual resource transfer value belongs may include:
step S11, obtaining the display information of the first terminal, and determining at least one window according to the display information;
step S12, determining a numerical value input form comprising numerical value input control in the at least one form;
and step S13, if the number of the numerical value input form is one, recording the numerical value input form and the corresponding numerical value input control.
The embodiment shown in fig. 3 may be applied in the process of generating the configuration file, and may also be applied in the process of using the configuration file (if the configuration file does not record the control access mode or records the control access mode failure).
In the embodiment shown in fig. 3, first, display information of the user ERP system may be obtained, and a numerical value input window may be determined according to the numerical value input control. All the main forms of the interface can be enumerated, each main window is taken as a starting point, the controls which accord with numerical value input characteristics are searched in a layer-by-layer traversing mode, and after the controls which accord with conditions are searched, the titles of the main windows, the class names of the main windows, the names of the main processes, the class names of the sub-controls and the enumeration sequence of the sub-controls are recorded in a configuration file. The above numerical value input features can be set by those skilled in the art according to the system configuration, and the disclosure is not limited thereto.
For example, for an ERP system developed based on a Windows system, in an application, the value input control can be accessed by reading a configuration file according to the title of a main window, the class name of the main window, the name of a main process, the class name of a sub-control, the enumeration order of the sub-control, and the like, and an independent thread is started to obtain a virtual resource transfer value through a Windows api.
Fig. 4 is a related embodiment to the embodiment shown in fig. 3.
Referring to fig. 4, if a plurality of numeric input forms are found, the following process is performed:
step S14, displaying preset numerical value input prompt information for the first terminal;
and step S15, responding to the preset value input message, determining and recording the value input control comprising the preset value and the corresponding value input form.
If a plurality of numerical value input forms are found or a plurality of numerical value input controls are found in one numerical value input form, a user can be prompted to input a preset numerical value in the control corresponding to the virtual resource transfer value, and therefore the numerical value input control and the numerical value input form are determined according to the position of the preset numerical value.
In some embodiments, in order to improve efficiency, a user may be directly prompted to input a preset numerical value in a control corresponding to the virtual resource transfer value, so that a numerical value input control and a numerical value input form are directly determined according to a position where the preset numerical value is located.
In addition, if a plurality of numerical value input forms are found, the numerical value input form with the prior sequence and the corresponding numerical value input control can be determined and recorded according to the form sequence of the numerical value input forms, namely, the current form in the plurality of forms can be determined as the numerical value input form.
When the virtual resource transfer value acquisition mode is image recognition, the configuration file records a preset display area of the virtual resource transfer value on the screen, as described in step S1. In step S2, the virtual resource transfer value may be obtained by performing text recognition on a preset display area on the screenshot according to the information of the configuration file.
Fig. 5 is a process of determining a virtual resource transfer value display area.
Referring to fig. 5, determining a virtual resource transfer value display area may include:
step S16, displaying virtual resource transfer value display area frame selection prompt information on the first terminal;
step S17, obtaining the page position and the area range of the first area in response to the first area selection message;
step S18, capturing a screen image of the first terminal, and performing OCR recognition on the first area in the screen image according to the page position and the area range of the first area;
and step S19, when the OCR recognition result includes a numerical value meeting a preset condition, recording the first area as the virtual resource transfer value display area.
Illustratively, the user may first be prompted to box the virtual resource transfer value display area, and after the user boxes, the location of the display area is recorded. The manner of recording the display area may record, for example, the offset of the upper left corner of the area relative to the upper left corner of the screenshot and the length and width of the area. The way of recording the virtual resource transfer value display area can be determined by a person skilled in the art, and the disclosure is not limited thereto.
Next, a screen may be captured, and the display area may be subjected to character recognition to verify whether the display area is a virtual resource transfer value display area. The method of recognizing characters in the display area may be, for example, storing the display area as a new picture, and transferring the new picture to a character module for recognition. The method of character recognition may be, for example, OCR recognition, and in some other embodiments, the picture may be subjected to character recognition in other manners.
In one embodiment, the user may be prompted to input a preset value in the virtual resource transfer value display area, so as to determine whether the display area framed by the user is correct according to whether the OCR recognition result is the preset value.
If the display area is judged to comprise the preset numerical value, the information of the display area can be recorded in the configuration file, so that the information of the display area is directly called when the virtual resource transfer value is obtained, or whether the user is prompted to modify the frame selection result is further judged according to whether other characters are contained in the OCR recognition result. If the display area does not contain the preset numerical value, the user can be directly prompted to modify the frame selection result or input the preset numerical value.
In other embodiments, the display area may also be recorded directly in the configuration file without verifying the area validity.
When the configuration file is called to obtain the virtual resource transfer value, a screen can be captured, the captured image can be stored in a png format, for example, then the virtual resource transfer value display area is captured again according to the record of the configuration file, a new image is generated, and the new image is transmitted to the OCR module for recognition.
For a virtual resource transfer value display area, as the background is generally single, a local self-adaptive binarization method can be adopted for image preliminary processing; because the adhesion between the characters is not obvious, the characters can be segmented by adopting projection strong segmentation, and character recognition is carried out based on a CNN-based single character recognition engine. In addition, after the characters are recognized, special characters can be processed, and compliance verification and the like can be conducted. There are various methods for performing OCR recognition, and the disclosure is not limited thereto.
Step S3, based on the virtual resource transfer value, calling a virtual resource transfer interface to transfer the virtual resource.
Fig. 6 is a sub-flow diagram of an embodiment of the disclosure.
Referring to fig. 6, in an exemplary embodiment of the present disclosure, step S3 may include:
step S31, acquiring virtual resource transfer information in response to the information input message from the second terminal;
step S32, analyzing the virtual resource transfer information according to a plurality of preset communication protocols to obtain virtual resource transfer authority information;
step S33, according to the virtual resource transfer authority information and the virtual resource transfer value, invoking a virtual resource transfer interface to transfer the virtual resource to an account corresponding to the first terminal.
Illustratively, the second terminal may be a hardware payment input device such as a code scanning gun, a code scanning box, or the like. The hardware payment equipment for scanning codes is an input equipment which is the same as a keyboard for a system, the code scanning input is similar to a signal input by the keyboard, and the codes can be written after the codes are scanned as long as the current focus can be written. Thus, keyboard hooks may be registered, keyboard input messages captured, and normal keyboard input and code swipe input distinguished by device number or characteristics of the write signal. Unlike normal keyboard entry, where the interval between code-scan input characters is short (typically within 20 ms) and the input speed is constant, a distinction between normal keyboard entry and code-scan entry can be made by this feature.
The input code scanning information needs to be analyzed next. The communication protocols of different code scanning devices usually have differences, for example, the end character of the character string may be 0x0d (enter), 0x0a (line feed) or some special characters. A plurality of communication protocols may be pre-stored to parse the code scanning information. These communication protocols may be stored in the form of tables in the information parsing configuration file. If the communication protocols in the table are used in sequence, the characters which accord with the preset rules cannot be analyzed from the code scanning information, the code scanning information can be uploaded to a server, a new communication protocol is written into an information analysis configuration file after the code scanning information is analyzed by a system developer, and the information analysis configuration file is updated.
The analyzed code scanning information can be checked. For example, the WeChat payment code is 18-bit pure numbers at the beginning of 10-15, the Paibao payment code is 16-24-bit pure numbers at the beginning of 25-30, and the payment code, namely the virtual resource transfer authority information, is successfully analyzed through verification.
And finally, calling a virtual resource transfer interface such as a network payment interface and the like to transfer the virtual resource to the account of the merchant according to the virtual resource transfer authority information and the virtual resource transfer value. For example, if the payment code of the payer is a WeChat payment code, calling a WeChat payment interface to complete the transfer from the payer WeChat account to the merchant WeChat account according to the payment amount; and if the payment code of the payer is the payment code of the payment treasure, calling a payment interface to complete the transfer from the payment account of the payer to the payment account of the merchant according to the payment amount.
The virtual resource transfer amount is obtained by using modes of window capture, image character recognition and the like, and the code scanning information is analyzed through a plurality of preset communication protocols, so that the method can be adapted to various ERP systems and hardware payment equipment, and the usability and compatibility of the equipment are effectively improved.
The method 100 is described in detail below with specific application scenarios.
FIG. 7 is a flow chart of an embodiment of an application scenario of the present disclosure.
Referring to fig. 7, taking convenience store code scanning payment as an example, the configuration process needs to be completed first:
at step S71, the user is prompted to select a payment amount acquisition method;
in step S72, it is determined whether the user has selected window selection or image character recognition, and if the user has selected window selection or image character recognition, the process proceeds to step S731, and if the user has selected image character recognition, the process proceeds to step S741;
in step S731, the user is prompted to open an ERP system window and input a preset amount;
in step S732, display information of the EPR system is acquired, and the window is enumerated;
in step S733, a control including the preset amount is searched in each window;
in step S734, the access sequence, handle and corresponding window handle of the control are recorded in a configuration file;
in step S741, prompting the user to open an ERP system window and input a preset amount;
in step S742, the user is prompted to select a preset amount display area;
in step S743, screenshot is performed on the preset amount display area and OCR recognition is performed;
in step S744, it is determined whether the identification result includes a preset amount, if so, step S745 is performed to record the relevant coordinates of the display area in the configuration file, otherwise, step S742 is performed;
then the using process is as follows:
at step S75, calling a configuration file in response to the payment amount input message;
in step S76, the payment amount obtaining mode is judged, if the window is captured, step S771 is carried out, and the payment amount is obtained according to the control access mode recorded by the configuration file; if the image is identified, the process proceeds to step S772, and performs screen capture and OCR recognition on the screen according to the display area recorded by the configuration file to obtain the payment amount;
in step S78, responding to the code scanning information input message, invoking a communication protocol to analyze the code scanning information to obtain a payment code;
at step 79, the payment interface is invoked to complete the transfer based on the payment code and the payment amount.
Corresponding to the above method embodiment, the present disclosure further provides a virtual resource transfer device, which may be used to execute the above method embodiment.
Fig. 8 is a block diagram schematically illustrating a virtual resource transfer apparatus according to an exemplary embodiment of the present disclosure.
Referring to fig. 8, the virtual resource transfer apparatus 800 may include:
a configuration acquisition module 81 configured to acquire a configuration file indicating a virtual resource transfer value acquisition manner from a first terminal;
a value determining module 82 configured to obtain a virtual resource transfer value from the first terminal according to the configuration file;
and the transfer module 83 is configured to call a virtual resource transfer interface to perform virtual resource transfer based on the virtual resource transfer value.
In an exemplary embodiment of the present disclosure, the virtual resource transfer value obtaining module 82 includes:
a window capture unit 821 configured to obtain the virtual resource transfer value from a control to which a predetermined virtual resource transfer value belongs when the configuration file indicates that the virtual resource transfer value obtaining manner is window capture;
an image recognition unit 822 configured to perform image recognition on a predetermined virtual resource transfer value display area to acquire the virtual resource transfer value when the configuration file indicates that the virtual resource transfer value acquisition manner is image recognition.
In an exemplary embodiment of the present disclosure, the configuration module 84 is further included, and includes a window capture configuration unit 841 and an image recognition configuration unit 842.
The window capture configuration unit 841 is configured to determine a control to which the virtual resource transfer value belongs, and includes:
a window information obtaining unit 8411, configured to obtain display information of the first terminal, and determine at least one window according to the display information;
a control determining unit 8412 configured to determine a numeric input form including a numeric input control in the at least one form;
and the information recording unit 8413 is configured to record the numerical value input form and the corresponding numerical value input control if the number of the numerical value input forms is one.
A message prompt unit 8414 configured to display preset numerical value input prompt information to the first terminal if the number of the numerical value input windows is multiple;
the auxiliary positioning unit 8415 is configured to determine and record a numerical value input control including a preset numerical value and a corresponding numerical value input window thereof in response to the preset numerical value input message.
In an exemplary embodiment of the present disclosure, the window capture configuration unit 841 further includes:
and the sequence determining unit 8416 is configured to determine and record a numerical value input form in a sequence prior to the numerical value input form and a numerical value input control corresponding to the numerical value input form according to the form sequence of the numerical value input form if the number of the numerical value input forms is multiple.
In an exemplary embodiment of the disclosure, the image recognition configuration unit 842 is configured to determine a virtual resource transfer value display area, including:
a framing prompt unit 8421 configured to display framing prompt information of a virtual resource transfer value display area at the first terminal;
an area recording unit 8422 configured to acquire a page position and an area range of the first area in response to the first area selection message;
an area recognition unit 8423, configured to intercept a screen image of the first terminal, and perform OCR recognition on the first area in the screen image according to a page position and an area range of the first area;
the area verifying unit 8424 is configured to record the first area as the virtual resource transfer value display area when the OCR recognition result includes a numerical value meeting a preset condition.
In an exemplary embodiment of the present disclosure, the transfer module 83 includes:
an information input unit 831 configured to acquire virtual resource transfer information in response to an information input message from the second terminal;
an information parsing unit 832 configured to parse the virtual resource transfer information according to a plurality of preset communication protocols to obtain virtual resource transfer authority information;
and the resource transfer unit 833 is configured to call a virtual resource transfer interface to transfer the virtual resource to the account corresponding to the first terminal according to the virtual resource transfer authority information and the virtual resource transfer value.
Since the functions of the apparatus 800 have been described in detail in the corresponding method embodiments, the disclosure is not repeated herein.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 900 according to this embodiment of the invention is described below with reference to fig. 9. The electronic device 900 shown in fig. 9 is only an example and should not bring any limitations to the function and scope of use of the embodiments of the present invention.
As shown in fig. 9, the electronic device 900 is embodied in the form of a general purpose computing device. Components of electronic device 900 may include, but are not limited to: the at least one processing unit 910, the at least one memory unit 920, and a bus 930 that couples various system components including the memory unit 920 and the processing unit 910.
Wherein the storage unit stores program code that is executable by the processing unit 910 to cause the processing unit 910 to perform steps according to various exemplary embodiments of the present invention described in the above section "exemplary methods" of the present specification. For example, the processing unit 910 may execute step S1 shown in fig. 1: acquiring a configuration file for indicating a virtual resource transfer value acquisition mode from a first terminal; step S2: acquiring a virtual resource transfer value from the first terminal according to the configuration file; step S3: and calling a virtual resource transfer interface to transfer the virtual resource based on the virtual resource transfer value.
The storage unit 920 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM)9201 and/or a cache memory unit 9202, and may further include a read only memory unit (ROM) 9203.
Storage unit 920 may also include a program/utility 9204 having a set (at least one) of program modules 9205, such program modules 9205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 930 can be any of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 900 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 900, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 900 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interface 950. Also, the electronic device 900 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet) via the network adapter 960. As shown, the network adapter 960 communicates with the other modules of the electronic device 900 via the bus 930. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the electronic device 900, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, aspects of the invention may also be implemented in the form of a program product comprising program code means for causing a terminal device to carry out the steps according to various exemplary embodiments of the invention described in the above section "exemplary methods" of the present description, when said program product is run on the terminal device.
Referring to fig. 10, a program product 1000 for implementing the above method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
Furthermore, the above-described figures are merely schematic illustrations of processes involved in methods according to exemplary embodiments of the invention, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
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.

Claims (10)

1. A virtual resource transfer method, comprising:
acquiring a configuration file for indicating a virtual resource transfer value acquisition mode from a first terminal;
acquiring a virtual resource transfer value from the first terminal according to the configuration file;
and calling a virtual resource transfer interface to transfer the virtual resource based on the virtual resource transfer value.
2. The method of claim 1, wherein the obtaining a virtual resource transfer value from the first terminal according to the configuration file comprises:
when the configuration file indicates that the virtual resource transfer value acquisition mode is window capture, acquiring the virtual resource transfer value from a control to which a predetermined virtual resource transfer value belongs;
and when the configuration file indicates that the virtual resource transfer value acquisition mode is image recognition, performing image recognition on a predetermined virtual resource transfer value display area to acquire the virtual resource transfer value.
3. The method of claim 2, further comprising determining a control to which a virtual resource transfer value belongs:
acquiring display information of the first terminal, and determining at least one window according to the display information;
determining a numerical input form including a numerical input control in the at least one form;
and if the number of the numerical value input forms is one, recording the numerical value input forms and the numerical value input controls corresponding to the numerical value input forms.
4. The method of claim 3, wherein the determining a control to which a virtual resource transfer value belongs further comprises:
if the number of the numerical value input forms is multiple, displaying preset numerical value input prompt information on the first terminal;
and responding to the preset numerical value input message to determine and record a numerical value input control comprising a preset numerical value and a numerical value input form corresponding to the numerical value input control.
5. The method of claim 3, wherein the determining a control to which a virtual resource transfer value belongs further comprises:
and if the number of the numerical value input forms is multiple, determining and recording a numerical value input form with a prior sequence and a numerical value input control corresponding to the numerical value input form according to the form sequence of the numerical value input forms.
6. The method of claim 2, further comprising determining a virtual resource transfer value display area:
displaying virtual resource transfer value display area frame selection prompt information at the first terminal;
responding to the first area selection message to acquire the page position and the area range of the first area;
intercepting a screen image of the first terminal, and performing OCR recognition on the first area in the screen image according to the page position and the area range of the first area;
and when the OCR recognition result comprises a numerical value meeting a preset condition, recording the first area as the virtual resource transfer value display area.
7. The method of claim 1, wherein said invoking a virtual resource transfer interface for virtual resource transfer based on the virtual resource transfer value comprises:
acquiring virtual resource transfer information in response to an information input message from a second terminal;
analyzing the virtual resource transfer information according to a plurality of preset communication protocols to acquire virtual resource transfer authority information;
and calling a virtual resource transfer interface to transfer the virtual resource to an account corresponding to the first terminal according to the virtual resource transfer authority information and the virtual resource transfer value.
8. A virtual resource transfer apparatus, comprising:
a configuration acquisition module configured to acquire a configuration file indicating a virtual resource transfer value acquisition mode from a first terminal;
the value determining module is set to acquire a virtual resource transfer value from the first terminal according to the configuration file;
and the transfer module is set to call a virtual resource transfer interface to transfer the virtual resource based on the virtual resource transfer value.
9. An electronic device, comprising:
a memory; and
a processor coupled to the memory, the processor configured to perform the virtual resource transfer method of any of claims 1-7 based on instructions stored in the memory.
10. A computer-readable storage medium on which a program is stored, which program, when executed by a processor, implements the virtual resource transfer method according to any one of claims 1 to 7.
CN201810663621.6A 2018-06-25 2018-06-25 Virtual resource transfer method and device Active CN110633976B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810663621.6A CN110633976B (en) 2018-06-25 2018-06-25 Virtual resource transfer method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810663621.6A CN110633976B (en) 2018-06-25 2018-06-25 Virtual resource transfer method and device

Publications (2)

Publication Number Publication Date
CN110633976A true CN110633976A (en) 2019-12-31
CN110633976B CN110633976B (en) 2021-06-11

Family

ID=68968224

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810663621.6A Active CN110633976B (en) 2018-06-25 2018-06-25 Virtual resource transfer method and device

Country Status (1)

Country Link
CN (1) CN110633976B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113468068A (en) * 2021-07-21 2021-10-01 腾讯科技(深圳)有限公司 Virtual resource testing method and device, storage medium and electronic equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080035723A1 (en) * 1999-10-26 2008-02-14 The Western Union Company Money transfer systems and methods for travelers
CN105955743A (en) * 2016-04-29 2016-09-21 腾讯科技(深圳)有限公司 Resource data transfer request generating method, device and system
CN106156108A (en) * 2015-04-05 2016-11-23 腾讯科技(深圳)有限公司 The transfer method of a kind of virtual resource, device and system
CN106886586A (en) * 2017-02-16 2017-06-23 北京大地图科技有限公司 A kind of Internet map application development platform based on open source projects
CN106920092A (en) * 2016-12-23 2017-07-04 阿里巴巴集团控股有限公司 A kind of virtual resource allocation method, client and server
KR20170099342A (en) * 2016-02-23 2017-08-31 최건 System and method for processing fund transaction of face to face meeting between individual
CN107220895A (en) * 2017-05-31 2017-09-29 腾讯科技(深圳)有限公司 The transfer numerical statistic method and device of virtual resource
US20170330186A1 (en) * 2016-05-11 2017-11-16 Gk Software Usa, Inc. Decision Engine for Payments
CN107451800A (en) * 2017-08-23 2017-12-08 北京三快在线科技有限公司 A kind of virtual resource transfer method and device, electronic equipment
CN107679861A (en) * 2017-08-30 2018-02-09 阿里巴巴集团控股有限公司 Resource transfers method, payment funding method, apparatus and electronic equipment
CN110210842A (en) * 2018-05-08 2019-09-06 腾讯科技(深圳)有限公司 Resource transfers method, system, device, storage medium and computer equipment

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080035723A1 (en) * 1999-10-26 2008-02-14 The Western Union Company Money transfer systems and methods for travelers
CN106156108A (en) * 2015-04-05 2016-11-23 腾讯科技(深圳)有限公司 The transfer method of a kind of virtual resource, device and system
KR20170099342A (en) * 2016-02-23 2017-08-31 최건 System and method for processing fund transaction of face to face meeting between individual
CN105955743A (en) * 2016-04-29 2016-09-21 腾讯科技(深圳)有限公司 Resource data transfer request generating method, device and system
US20170330186A1 (en) * 2016-05-11 2017-11-16 Gk Software Usa, Inc. Decision Engine for Payments
CN106920092A (en) * 2016-12-23 2017-07-04 阿里巴巴集团控股有限公司 A kind of virtual resource allocation method, client and server
CN106886586A (en) * 2017-02-16 2017-06-23 北京大地图科技有限公司 A kind of Internet map application development platform based on open source projects
CN107220895A (en) * 2017-05-31 2017-09-29 腾讯科技(深圳)有限公司 The transfer numerical statistic method and device of virtual resource
CN107451800A (en) * 2017-08-23 2017-12-08 北京三快在线科技有限公司 A kind of virtual resource transfer method and device, electronic equipment
CN107679861A (en) * 2017-08-30 2018-02-09 阿里巴巴集团控股有限公司 Resource transfers method, payment funding method, apparatus and electronic equipment
CN110210842A (en) * 2018-05-08 2019-09-06 腾讯科技(深圳)有限公司 Resource transfers method, system, device, storage medium and computer equipment

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
SAN YEUNG等: "A Flexible Real-Time Ridesharing System Considering Current Road Conditions", 《2016 17TH IEEE INTERNATIONAL CONFERENCE ON MOBILE DATA MANAGEMENT (MDM)》 *
任家禛: "民间借贷风险性与货币政策分析", 《中国优秀硕士学位论文全文数据库 经济与管理科学辑》 *
周和荣 等: "虚拟资源观:企业资源利用方式的根本变革", 《管理世界》 *
张健毅: "大规模反钓鱼识别引擎关键技术研究", 《中国博士学位论文全文数据库 信息科技辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113468068A (en) * 2021-07-21 2021-10-01 腾讯科技(深圳)有限公司 Virtual resource testing method and device, storage medium and electronic equipment
CN113468068B (en) * 2021-07-21 2023-08-25 腾讯科技(深圳)有限公司 Virtual resource testing method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN110633976B (en) 2021-06-11

Similar Documents

Publication Publication Date Title
CN110110320B (en) Automatic contract checking method, device, medium and electronic equipment
CN110659210A (en) Information acquisition method and device, electronic equipment and storage medium
CN110908922A (en) Application program testing method and device
CN110688111A (en) Configuration method, device, server and storage medium of business process
CN111881054A (en) User interface automation test method, system, equipment and storage medium
CN110633976B (en) Virtual resource transfer method and device
CN111507698A (en) Processing method and device for transferring accounts, computing equipment and medium
CN108376333B (en) File approval method, medium, device and computing equipment
CN112861033B (en) Method and device for executing service
CN114218110A (en) Account checking test method and device for financial data, computer equipment and storage medium
CN113961836A (en) Page jump method and device, electronic equipment and storage medium
CN115022201B (en) Data processing function test method, device, equipment and storage medium
CN113590564B (en) Data storage method, device, electronic equipment and storage medium
US10346251B2 (en) Information processing apparatus, non-transitory computer readable medium, and information processing method
CN109816462A (en) A kind of recognition methods of invoice information and device
CN115080433A (en) Testing method and device based on flow playback
US11436713B2 (en) Application error analysis from screenshot
CN110443202B (en) System, method and storage medium for real-time analysis of paper font regularity
CN114115628A (en) U shield display information acquisition method, device, equipment, medium and program product applied to U shield test
CN114090514A (en) Log retrieval method and device for distributed system
CN113656301A (en) Interface testing method, device, equipment and storage medium
CN110083807B (en) Contract modification influence automatic prediction method, device, medium and electronic equipment
CN113296912A (en) Task processing method, device and system, storage medium and electronic equipment
CN111061625A (en) Automatic testing method and device applied to out-of-order password keyboard
US11790110B2 (en) System and method for preventing sensitive information from being recorded

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant