CN110570185B - Resource transfer method and device, storage medium and electronic equipment - Google Patents

Resource transfer method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN110570185B
CN110570185B CN201910826887.2A CN201910826887A CN110570185B CN 110570185 B CN110570185 B CN 110570185B CN 201910826887 A CN201910826887 A CN 201910826887A CN 110570185 B CN110570185 B CN 110570185B
Authority
CN
China
Prior art keywords
graphic code
target graphic
information
image
resource
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.)
Active
Application number
CN201910826887.2A
Other languages
Chinese (zh)
Other versions
CN110570185A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910826887.2A priority Critical patent/CN110570185B/en
Publication of CN110570185A publication Critical patent/CN110570185A/en
Application granted granted Critical
Publication of CN110570185B publication Critical patent/CN110570185B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • 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/3276Short range or proximity payments by means of M-devices using a pictured code, e.g. barcode or QR-code, being read by the M-device

Abstract

The embodiment of the invention discloses a resource transfer method, a device, a storage medium and electronic equipment, wherein the method comprises the following steps: when a target object is detected in an area, the distance between the target object and the image pickup device of which is smaller than a preset distance threshold value, the image pickup device is called to shoot the target object to obtain a preview image, if the preview image comprises a target graphic code, whether the target graphic code is located in an identification range of the identification operation is determined according to the preview image, if the target graphic code exceeds the identification range, prompt information is output, the prompt information is used for prompting that the target graphic code is adjusted to be in the identification range, the target graphic code in the identification range is identified to obtain resource information, and resource transfer operation is executed according to the resource information. The embodiment of the invention can improve the efficiency of resource transfer.

Description

Resource transfer method and device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of security technologies, and in particular, to a resource transfer method, a resource transfer device, a computer storage medium, and an electronic apparatus.
Background
In daily life, different places can provide different services for users, for example, restaurants can provide dining services for users, movie theatres can provide viewing services for users, parking places can provide parking services for users, and so on. Typically, after the user experiences or purchases these services, a payment terminal is used to transfer a certain amount of resources to the charging terminal to complete the payment. Here, the payment terminal refers to a terminal used by a user to perform a resource transfer operation, and the charging terminal refers to a terminal used by a manager of a place to perform a resource acquisition operation. In practice, it is found that the resource acquisition modes corresponding to different charging terminals are slightly different, and when the user is unfamiliar with the resource acquisition modes of the charging terminals, the resource transfer can be completed only after a long time, so that the efficiency of the resource transfer is lower, and the expectation of the user cannot be met.
Disclosure of Invention
The technical problem to be solved by the embodiment of the invention is to provide a resource transfer method, a device, a storage medium and electronic equipment, which can improve the efficiency of resource transfer.
In one aspect, an embodiment of the present invention provides a resource transfer method, where the method includes:
When a target object is detected in a region with the distance between the imaging device and the imaging device being smaller than a preset distance threshold value, the imaging device is called to shoot the target object to obtain a preview image;
if the preview image comprises a target graphic code, determining whether the target graphic code is positioned in the identification range of the identification operation according to the preview image;
if the target graphic code exceeds the identification range, outputting prompt information, wherein the prompt information is used for prompting the adjustment of the target graphic code to be within the identification range;
and identifying the target graphic code in the identification range to obtain resource information, and executing resource transfer operation according to the resource information.
In one aspect, an embodiment of the present invention provides a resource transfer device, including:
the shooting unit is used for calling the image pickup device to shoot the target object to obtain a preview image when the target object is detected in the area, the distance between the shooting device and the target object is smaller than the preset distance threshold value;
a determining unit, configured to determine, if the preview image includes a target graphic code, whether the target graphic code is located within an identification range of the identification operation according to the preview image;
The output unit is used for outputting prompt information if the target graphic code exceeds the identification range, wherein the prompt information is used for prompting the adjustment of the target graphic code into the identification range;
and the execution unit is used for identifying the target graphic code in the identification range to obtain resource information and executing resource transfer operation according to the resource information.
In yet another aspect, an embodiment of the present invention provides an electronic device, including an input device and an output device, further including:
a processor adapted to implement one or more instructions; the method comprises the steps of,
a computer storage medium storing one or more instructions adapted to be loaded by the processor and to perform the steps of:
when a target object is detected in a region with the distance between the imaging device and the imaging device being smaller than a preset distance threshold value, the imaging device is called to shoot the target object to obtain a preview image;
if the preview image comprises a target graphic code, determining whether the target graphic code is positioned in the identification range of the identification operation according to the preview image;
if the target graphic code exceeds the identification range, outputting prompt information, wherein the prompt information is used for prompting the adjustment of the target graphic code to be within the identification range;
And identifying the target graphic code in the identification range to obtain resource information, and executing resource transfer operation according to the resource information.
In yet another aspect, embodiments of the present invention provide a computer storage medium storing one or more instructions adapted to be loaded by a processor and to perform the steps of:
when a target object is detected in a region with the distance between the imaging device and the imaging device being smaller than a preset distance threshold value, the imaging device is called to shoot the target object to obtain a preview image;
if the preview image comprises a target graphic code, determining whether the target graphic code is positioned in the identification range of the identification operation according to the preview image;
if the target graphic code exceeds the identification range, outputting prompt information, wherein the prompt information is used for prompting the adjustment of the target graphic code to be within the identification range;
and identifying the target graphic code in the identification range to obtain resource information, and executing resource transfer operation according to the resource information.
In the embodiment of the invention, when the identification operation of the target graphic code is detected, the camera device is called to shoot the target graphic code to obtain the preview image, and whether the target graphic code is positioned in the identification range of the identification operation can be determined according to the preview image; when the target graphic code exceeds the recognition range, the user can be prompted to quickly adjust the target graphic code to the recognition range by outputting prompt information, so that the recognition efficiency of the target graphic code is improved, and the success probability of the recognition operation of the target graphic code is improved. Further, when the target graphic code is adjusted to be within the identification range, the resource information is obtained by identifying the target graphic code within the identification range, and the resource transfer operation is performed according to the resource information, so that the efficiency of the resource transfer can be improved, and the success probability of the resource transfer can be improved. Through guidance of the prompt information, the automatic completion of resource transfer of the consumer can be realized, the communication time between the merchant and the consumer is reduced, and the resource transfer experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a block diagram of a resource transfer system according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a resource transfer method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating another resource transfer method according to an embodiment of the present invention;
FIG. 4 is a flowchart of another resource transfer method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a resource transfer device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the application, the collection and processing of related data (such as face images) should be strictly according to the requirements of relevant national laws and regulations when the examples are applied, so as to obtain the informed consent or independent consent of a personal information body (such as a user corresponding to the face images), and develop subsequent data use and processing behaviors within the authorized range of the laws and regulations and the personal information body.
Resources refer to resources that exist in electronic accounts, rely on electronic commerce, and are capable of circulation over the internet, including but not limited to electronic money, electronic coupons, and the like. The electronic account herein may include, but is not limited to: electronic bank cards, internet banking, internet payment accounts, and the like. Resource transfer refers to the process by which a user (i.e., consumer) transfers resources from a first electronic account (commonly known as the consumer's electronic account) to a second electronic account (commonly known as the merchant's electronic account) after purchasing or experiencing a service provided by the merchant. The services described above may refer to virtual services or physical services, including but not limited to: game gear, advisory services, home services, etc., entity services including, but not limited to: clothing, electronic products, etc. The process of resource transfer generally includes three phases: (1) a resource transfer request phase; (2) a generation stage of resource information; (3) a resource transfer phase. The above stages will be described in detail with reference to fig. 1 and 2.
Referring to the resource transfer system shown in fig. 1, the system may include a first terminal, a server, and a second terminal; wherein: the first terminal and the second terminal are both user-oriented terminals, and the first terminal may be a terminal oriented to a user (referred to as a consumer) who performs the resource transfer operation, that is, the first terminal specifically refers to a terminal used by the consumer to perform the resource transfer operation. The second terminal may be a terminal directed to a user performing the resource retrieval operation (referred to as a merchant), i.e. the second terminal specifically refers to a terminal used by the merchant for performing the resource retrieval operation. The first terminal may be a smart device such as a smart phone, a tablet computer, a portable personal computer, a smart watch, a bracelet, and a smart television, and the second terminal may be a smart payment terminal, such as a point of sale (POS).
The server may be a stand-alone server, or a server cluster composed of several servers, or a cloud computing center. The server can provide a resource transfer service for the first terminal and the second terminal. In one implementation, the server may be a background server of the application, such as: the server can be a background server of the payment application program, and the first terminal and the second terminal can interact with the server through the application program, so that a resource transfer flow is realized. In another implementation manner, the server may be a dedicated server with resource transfer capability, and the first terminal and the second terminal may interact with the server in a wired or wireless manner, so as to implement a resource transfer procedure.
Based on the system shown in fig. 1, please refer to the resource transfer flow shown in fig. 2, which includes the following steps S1-S8:
s1, a first terminal generates a resource transfer request.
S2, the first terminal sends a resource transfer request to the server.
Steps S1-S2 belong to the resource transfer request phase. In this stage, if the consumer experiences or purchases the service provided by the merchant, the resources need to be transferred to the merchant. The first terminal may output an interface for the resource transfer operation in various types of user interfaces, where the user interfaces may include, but are not limited to: a service page of the application, such as a payment interface of the payment application; or a web page interface such as a forum space, etc. The interface may be a key or an option, the consumer may call up the parameter configuration interface by operating the interface (e.g. pressing the key or selecting the option), and set a parameter for transferring resources in the parameter configuration interface, and the first terminal may obtain the parameter set by the consumer from the parameter configuration interface. Such parameters typically include: an identification of the consumer, etc., wherein the identification of the consumer is used to find the consumer's electronic account; the identification may include a user identification (e.g., a user account in instant messaging software, a registered user account in payment software, a user account for a general application, or a user account for a web page, etc.), a device identification used by the user (e.g., a cell phone number, a serial number of a cell phone, etc.), or an electronic account identification (e.g., an electronic bank card number, an online banking account, an internet payment account, etc.). After obtaining the parameters configured by the consumer in the parameter configuration interface, the first terminal generates a resource transfer request and sends the resource transfer request to the server, wherein the parameter can be carried in the resource transfer request.
S3, the server generates resource information according to the resource transfer request.
And S4, the server sends the resource information to the first terminal.
Steps S3-S4 belong to the generation phase of the resource information. In this stage, when the server receives the resource transfer request, resource information is generated, and the resource information is returned to the first terminal. The resource information may include a resource transfer code, a valid period of the resource transfer, and the like, the resource transfer code may refer to a number of the current resource transfer, and the resource transfer code is associated with an electronic account of the consumer; the valid period of resource transfer refers to a period of time when a resource transfer code is in a valid state, that is, during the valid period of time of resource transfer, the resource transfer code is valid, that is, the resource transfer code can be used to transfer resources; outside of the resource transfer valid period, the resource transfer code is invalidated, i.e., the resource code cannot be used to transfer resources.
S5, the first terminal generates a graphic code according to the resource information.
S6, the second terminal performs identification operation on the graphic code in the first terminal to obtain resource information.
And S7, the second terminal generates a resource acquisition request according to the resource information and the resource acquisition parameters.
S8, the second terminal sends a resource acquisition request to the server.
S9, the server executes response processing on the resource acquisition request.
Steps S5-S9 belong to the resource transfer phase, in which the first terminal may generate a graphics code from the resource information, i.e. by means of which the resource transfer code may be comprised. The graphic code is a geometric figure of graphic record data with black and white intervals distributed on a plane (such as a two-dimensional direction) according to a certain rule. The second terminal recognizes the graphic code in the first terminal to obtain the resource information. Meanwhile, the second terminal may output an interface for resource retrieval operation in various user interfaces, where the user interfaces may include, but are not limited to: a service page of the application, such as a checkout interface of the payment application; or a web page interface such as a forum space, etc. The interface may be a key or an option, the merchant may call up the parameter configuration interface by operating the interface (e.g. pressing the key or selecting the option), and set a parameter for resource retrieval in the parameter configuration interface, and the second terminal may obtain the resource retrieval parameter set by the merchant from the parameter configuration interface. Such resource retrieval parameters typically include: the method comprises the steps of identifying a merchant, target resource amount, resource transfer reason and the like, wherein the identification of the merchant is used for searching an electronic account of the merchant; the identification may include a user identification (e.g., a user account in instant messaging software, a registered user account in payment software, a user account for a general application, or a user account for a web page, etc.), a device identification used by the user (e.g., a cell phone number, a serial number of a cell phone, etc.), or an electronic account identification (e.g., an electronic bank card number, an online banking account, an internet payment account, etc.). The target amount of resources in the resource retrieval parameter refers to the total amount of resources that the server needs to deduct from the consumer's electronic account, for example: the target resource amount in the resource pickup parameter is 10-yuan electronic money, and then the server needs to deduct 10-yuan electronic money from the electronic account of the consumer. The resource transfer reason refers to explaining why resources need to be transferred from the consumer's electronic account, such as purchasing XX clothing, etc. Further, the second terminal may generate a resource retrieval request, where the resource retrieval request carries resource information and a resource retrieval parameter, and send the resource retrieval request to the server; the server performs the following processing in response to the resource retrieval request: (1) Judging whether the resource transfer condition is satisfied according to the resource acquisition request, specifically may include: judging whether the current time is in the effective time period of resource transfer, if not, the server sends prompt information to the first terminal and the second terminal, wherein the prompt information is used for prompting resource transfer failure. If the target resource amount included in the resource acquisition parameter is greater than a preset threshold, the preset threshold may be the remaining total amount of resources in the electronic account of the consumer, or the maximum amount of resources allowed to be transferred in one resource transfer operation set by the server; if the resource transfer condition is not met, the server sends prompt information to the first terminal and the second terminal, and the prompt information is used for prompting failure of resource transfer; if the resource transfer condition is not greater than the preset value, determining that the resource transfer condition is met; then entering (2) the server to determine the electronic account of the consumer according to the resource transfer code, deducting the resources equivalent to the target resource amount contained in the resource acquisition parameter from the electronic account of the consumer; and adding the deducted resources to the electronic account corresponding to the identification of the merchant to complete the resource transfer. After the resource transfer is completed, the server may return a transfer result to the first terminal and the second terminal.
In order to improve the efficiency of resource transfer, the embodiment of the invention provides a new resource transfer method, which makes the following improvements to the basic processing flow shown in the above steps S1 to S9: and introducing a verification operation for judging whether the graphic code is positioned in the identification range of the identification operation in the resource transfer stage, and outputting prompt information when the graphic code exceeds the identification range so as to prompt the graphic code to be adjusted to be in the identification range. Through the improvement, the embodiment of the invention can rapidly complete the resource transfer and improve the efficiency of the resource transfer. And the consumer can finish the resource transfer independently through the guidance of the prompt information. Communication time between the merchant and the consumer is reduced, and resource transfer experience is improved.
Fig. 3 is a schematic flow chart of a resource transfer method according to an embodiment of the present application, where the resource transfer method may be applied to an electronic device. The electronic device may refer to the second terminal in fig. 1, and the method may include the following steps S101 to S104.
S101, when a target object is detected in a region with the distance between the imaging device and the imaging device being smaller than a preset distance threshold, the imaging device is called to shoot the target object to obtain a preview image. When the consumer needs to transfer the resource to the merchant, the consumer can display a target graphic code through the first terminal, wherein the target graphic code comprises resource information, the resource information can comprise a resource transfer code and a valid time period of resource transfer, and the target graphic code is allowed to be identified so as to acquire the resource information contained in the target identification code. Accordingly, the electronic device may include an image pickup device, which may be configured to detect the front, that is, the image pickup device may detect a distance between the front object and the image pickup device, so as to determine whether the object is near the image pickup device. When the distance between the target object and the camera device is smaller than the preset distance threshold, the consumer usually indicates that the consumer wants to complete the resource transfer in a code scanning mode. Therefore, when the target object is detected in the area, the distance between the electronic device and the image pickup device is smaller than the preset distance threshold, the electronic device can call the image pickup device to pick up the target object to obtain a preview image, and therefore resources of the image pickup device can be saved. The target object may refer to any object whose distance from the image capturing device is smaller than a preset distance threshold, or the target object may refer to an object carrying a target graphic code, such as a first terminal, where the image capturing device may include, but is not limited to: multispectral imagers, hyperspectral imagers, visible light cameras, infrared cameras, 3D cameras, and the like. Optionally, the electronic device may be configured in a plurality of resource transfer modes, including a face recognition mode and a graphic code recognition mode, where the face recognition mode is to obtain the identification of the consumer according to the face recognition mode, so as to complete the resource transfer according to the identification of the consumer. The pattern code identification mode is to acquire resource information in a pattern code identification mode and complete resource transfer according to the resource information. Optionally, when the electronic device is in the face recognition mode, the face is photographed to obtain a face image, and whether the face in the face image has integrity is judged. If the integrity is provided, the consumer hopes to adopt a face recognition mode to carry out resource transfer, the face is recognized, and face characteristic information is obtained. And determining the user identification associated with the face feature information, and executing the resource transfer operation according to the associated user identification. If the integrity is not present, it indicates that the face is blocked by an object (such as a smart phone), that is, the consumer wants to use the pattern recognition mode to transfer resources, the process can be switched to the pattern recognition mode, and step S101 is performed. The flexible switching between the resource transfer modes can be realized, the manual switching of a user is not needed, and the convenience of resource transfer is improved.
S102, if the preview image comprises the target graphic code, determining whether the target graphic code is located in the recognition range of the recognition operation according to the preview image.
In order to improve the resource transfer efficiency, the electronic device may determine whether the preview image includes the target graphics code according to feature information of the target graphics code, where the feature information includes information such as a shape and a color of the target graphics code. If the preview image does not include the target graphic code, the electronic device can end the current flow; if the preview image includes the target graphic code, it may be determined whether the target graphic code is located in the recognition range of the recognition operation according to the preview image, and if the target graphic code is located in the recognition range, it indicates that the probability that the electronic device successfully recognizes the target graphic code is relatively high, step S104 is executed. If the target graphic code exceeds the recognition range, which indicates that the probability of the electronic device being successful in the target graphic code recognition operation is low or the electronic device cannot be successful in the target graphic code recognition operation, step S103 may be executed. The target graphic code being located in the recognition range may mean that the image information of the graphic code satisfies the recognition condition, and the image information includes, but is not limited to, at least one of the following: the size and the position of the target graphic code in the preview image and the distance between the target graphic code and the camera device; the fact that the target graphic code exceeds the recognition range means that the image information of the target graphic code does not meet the recognition condition. The successful identification operation means that the target graphic code can be identified, and complete resource information in the target graphic code is obtained; failure in the identification operation means that the target graphic code cannot be identified, or that the target graphic code can be identified, but only part of the resource information in the target graphic code can be obtained.
And S103, if the target graphic code exceeds the identification range, outputting prompt information, wherein the prompt information is used for prompting that the target graphic code is adjusted to be within the identification range.
If the target graphic code exceeds the recognition range, the electronic device may output a prompt message for prompting the adjustment of the target graphic code to the recognition range, where the prompt message may include, but is not limited to: speech, text, images. Adjustment of the target graphic code may refer to adjusting the position, size, etc. of the target graphic code.
S104, identifying the target graphic code in the identification range to obtain resource information to be transferred, and executing transfer operation according to the resource information.
After the target graphic code is adjusted to be within the identification range, the electronic equipment can identify the target graphic code within the identification range to obtain resource information, and execute transfer operation according to the resource information.
In the embodiment of the invention, when the identification operation of the target graphic code is detected, the camera device is called to shoot the target graphic code to obtain the preview image, and whether the target graphic code is positioned in the identification range of the identification operation can be determined according to the preview image; when the target graphic code exceeds the recognition range, the user can be prompted to quickly adjust the target graphic code to the recognition range by outputting prompt information, so that the recognition efficiency of the target graphic code is improved, and the success probability of the recognition operation of the target graphic code is improved. Further, when the target graphic code is adjusted to be within the identification range, the resource information is obtained by identifying the target graphic code within the identification range, and the resource transfer operation is performed according to the resource information, so that the efficiency of the resource transfer can be improved, and the success probability of the resource transfer can be improved. Through guidance of the prompt information, the automatic completion of resource transfer of the consumer can be realized, the communication time between the merchant and the consumer is reduced, and the resource transfer experience is improved.
In one embodiment, step S102 includes the following steps S11 and S12.
s11, acquiring image information of the target graphic code according to the preview image, wherein the image information comprises one or more of the following: the position of the target graphic code in the preview image, the distance between the target graphic code and the camera device, and the size of the target graphic code in the preview image.
And s12, determining whether the target graphic code is positioned in the identification range according to the image information.
In steps s11 and s12, when the distance between the target graphic code and the image capturing device is too large or too small, or the target graphic code deviates from the image capturing device, or the target graphic code is too large or too small in the middle size of the preview image, the probability that the electronic device successfully recognizes the target graphic code is relatively small. I.e. the identification range is related to the image information of the target graphic code, the electronic device can obtain the image information of the target graphic code from the preview image, and determine whether the target graphic code is located within the identification range or not from the image information.
In this embodiment, the image information includes a distance between the target graphic code and the image pickup device, and the preview image includes a first image and a second image; step s11 includes the following steps s21-s23.
And s21, acquiring the two-dimensional coordinate information of the first feature point of the target graphic code from the first image.
And s22, acquiring depth information of a second feature point of the target graphic code from the second image, wherein the second feature point is matched with the first feature point.
In steps s21-s22, the first image may refer to a color image, the second image may refer to a depth image, and the color image may refer to an image including two-dimensional pixel coordinate information of the target graphic code, and the depth image may refer to an image including depth information of the target graphic code, that is, the depth image may be used to reflect a distance between the target graphic code and the image capturing device. The electronic device may acquire two-dimensional coordinate information of a first feature point of the target graphics code from the first image, where the two-dimensional coordinate information may refer to two-dimensional pixel coordinate information, and the first feature point may refer to any feature point of the target graphics code, or the first feature point may refer to a feature point at a central position of the target graphics code. Further, the electronic device may obtain depth information of the second feature point of the target graphics code from the second image. The second feature point is matched with the first feature point, that is, the second feature point is identical to the first feature point in position in the target graphic code, and the depth information may include a distance between the target graphic code and the image capturing device in a camera coordinate system.
And s23, determining the distance between the target graphic code and the image pickup device according to the two-dimensional coordinate information of the first feature point and the depth information of the second feature point.
When the first feature point is a feature point at the center position of the target graphic code, the electronic device may determine a distance between the target graphic code and the image capturing device according to the two-dimensional coordinate information of the first feature point and the depth information of the second feature point. When the first feature point refers to any feature point of the target graphic code, the electronic device may calculate an average two-dimensional pixel coordinate of the feature point of the target graphic code in the first image, calculate an average depth of the feature point of the target graphic code in the second image, and determine a distance between the target graphic code and the image capturing device according to the average two-dimensional pixel coordinate and the average depth.
In this embodiment, step s23 includes the following steps s31-s34.
s31, acquiring shooting parameters when the image capturing device shoots the target graphic code and position information of the image capturing device.
And s32, determining three-dimensional coordinate information of the target graphic code under a camera coordinate system according to the two-dimensional coordinate information of the first feature point and the depth information of the second feature point.
And s33, determining the three-dimensional coordinate information of the target graphic code in the world coordinate system according to the shooting parameters and the three-dimensional coordinate information of the target graphic code in the camera coordinate system.
And s34, determining the distance between the target graphic code and the image pickup device by using the position information of the image pickup device and the three-dimensional coordinate information of the target graphic code in a world coordinate system.
In steps s31-s34, the electronic device may acquire the shooting parameters when the image capturing device shoots the target graphic code, and the position information of the image capturing device. The shooting parameters include a focal length, the number of pixels per unit distance in the x-axis and y-axis directions being mx and my, respectively, the optical center position, and a distortion parameter γ between the x-axis and the y-axis. The position information of the image pickup device is three-dimensional coordinate information of the image pickup device in a world coordinate system, and the three-dimensional coordinate information in the world coordinate system includes longitude, latitude, and altitude. Further, the three-dimensional coordinate information of the target graphic code in the world coordinate system is determined according to the shooting parameters and the three-dimensional coordinate information of the target graphic code in the camera coordinate system. Then, the distance between the target graphic code and the image pickup device is determined by using the position information of the image pickup device and the three-dimensional coordinate information of the target graphic code in the world coordinate system.
In this embodiment, the image information includes a distance between the target graphic code and the image capturing apparatus, S102, including: the recognition range may be [ first distance threshold, second distance threshold ], that is, if the distance between the target graphic code and the image capturing device is greater than or equal to the first distance threshold and less than or equal to the second distance threshold, then the target graphic code is considered to be within the recognition range; at the moment, the distance between the target graphic code and the camera device is indicated to be suitable for the identification operation of the target graphic code, namely the success probability of the identification operation of the target graphic code is high. If the distance between the target graphic code and the camera is smaller than a first distance threshold, the target graphic code is indicated to be too close to the camera; if the distance between the target graphic code and the camera device is greater than the second distance threshold, the target graphic code is far away from the camera device; either too close or too far out of the recognition range of the recognition operation may result in a reduced probability of success of the recognition operation on the target graphic code, which is then considered to be out of the recognition range. The first distance threshold is smaller than the second distance threshold, and the first distance threshold and the second distance threshold may be manually set by a user or default values in the electronic device, for example, the first distance threshold may be 5cm, and the second distance threshold may be 20cm.
Optionally, the image information includes a size of the target graphic code in the preview image; step s11 includes the following steps s41-s42.
And s41, identifying the region where the target graphic code is located in the preview image.
s42, determining the size of the area where the target graphic code is located, and determining the size of the area where the target graphic code is located as the size of the target graphic code in the preview image.
In steps s41-s42, the electronic device may identify the preview image to obtain at least one closed region in the preview image, and screen the region in which the target graphic code is located from the at least one closed region according to the shape of the target graphic code. Wherein the target graphic code is generally square in shape and convex in shape. And calculating the size (i.e. the area) of the area where the target graphic code is located, and determining the size of the area where the target graphic code is located as the size of the target graphic code in the preview image.
In this embodiment, the image information includes a size of the target graphic code in the preview image; the size of the target graphic code in the preview image is proportional to the distance between the camera and the target graphic code. I.e. the closer the distance, the larger the size of the target graphic code in the preview image, i.e. the further the distance, the smaller the size of the target graphic code in the preview image. Step S102 includes: the recognition range may be [ first size threshold, second size threshold ], that is, if the size of the target graphic code in the preview image is greater than or equal to the first size threshold while being less than or equal to the second size threshold, then the target graphic code is considered to be within the recognition range; at the moment, the distance between the target graphic code and the camera device is indicated to be suitable for the identification operation of the target graphic code, namely the success probability of the identification operation of the target graphic code is high. If the size of the target graphic code in the preview image is smaller than a first size threshold, indicating that the distance between the target graphic code and the camera device is too far; if the size of the target graphic code in the preview image is larger than a second size threshold, the distance between the target graphic code and the camera device is too short; either too close or too far out of the recognition range of the recognition operation may result in a reduced probability of success of the recognition operation on the target graphic code, and then the target graphic code is considered to be within the recognition range. Then the image information is considered to be within the identification range; if the size of the target graphic code in the preview image is larger than the first size threshold or smaller than the second size threshold, the distance between the target graphic code and the camera device is too short or too long, and the success probability of the identification operation of the target graphic code is relatively low, so that the target graphic code is determined to be beyond the identification range of the identification operation. Wherein the first size threshold is less than the second size threshold.
Optionally, the position of the target graphic code in the preview image; step s11 includes: the electronic device may identify an area in which the target graphic code is located in the preview image, obtain position information of each pixel of the preview where the target graphic code is located, determine a position of the target graphic code in the preview image according to the position information of each pixel, for example, determine a position of the target graphic code in the preview image according to the position information of a pixel at a center position of the area where the target graphic code is located, or calculate an average position of each pixel, and determine a position of the target graphic code in the preview image according to the average position of each pixel.
In this embodiment, the location of the target graphic code in the preview image; step S102 includes: the recognition range may be a preset image area, which may refer to an area where the electronic device scans the graphic code. If the position of the target graphic code in the preview image is not in the preset area, the target graphic code is indicated to deviate from the identification range, namely, the target graphic code is determined to exceed the identification range of the identification operation. If the position of the target graphic code in the preview image is in the preset area, indicating that the target graphic code is not deviated from the identification range, namely determining that the target graphic code is beyond the identification range of the operation.
In one embodiment, step S103 includes the following steps S51 and S52.
And s51, outputting a resource transfer interface, wherein the resource transfer interface comprises a preview frame.
s52, displaying the preview image in the preview frame to prompt the target graphic code to be adjusted to be within the recognition range according to the preview frame.
In steps s51 and s52, if the target graphic code exceeds the recognition range, a resource transfer interface may be output, where the resource transfer interface includes a preview frame, and the resource transfer interface may be displayed on a display screen of the electronic device, where the display screen faces the consumer; the preview frame is used for indicating an identification range for executing an identification operation on the target graphic code, namely if the preview image is in the preview frame and the size of the preview image is not greatly different from the size of the preview frame, the target graphic code is indicated to be in the identification range; if the preview image deviates from the preview frame or the preview image is within the preview frame, the size of the preview image differs greatly from the size of the preview frame, indicating that the target graphic code is beyond the recognition range. Further, the preview graph is displayed in a preview frame so as to prompt a user to quickly adjust the target graph code to be within the identification range according to the preview frame. Here, adjusting the target graphic code may include moving the target graphic code left and right or back and forth. Through the guiding of the preview frame, the consumer can finish the resource transfer autonomously, the communication time between the merchant and the consumer is reduced, and the resource transfer experience is improved.
In one embodiment, step S103 is preceded by: if the target graphic code exceeds the identification range and the target graphic code is successfully identified, step S104 is executed. When the target graphic code exceeds the identification range, but the target graphic code is successfully identified, the electronic equipment can close the camera device, acquire the identified resource information and execute the resource transfer operation according to the resource information.
The resource transfer method of the embodiment of the present invention is described below by taking an application of the embodiment of the present invention to a payment application as an example. The payment application is installed in the first terminal and the second terminal, and comprises a resource transfer function and a resource acquisition function, wherein the resource transfer function is used for transferring resources to other terminals, and the resource acquisition function is used for acquiring the resources transferred by the other terminals. The resource transfer method shown in fig. 4 can be implemented by the payment application, and includes the following steps 1-5.
1. And displaying the target graphic code. When a consumer needs to transfer resources to a merchant, the consumer can execute starting operation on the resource transfer function of the payment application program of the first terminal, and when the first terminal detects the starting operation on the resource transfer function, the target graphic code of the current resource transfer is obtained and displayed on the display screen of the first terminal.
2. The distance between the image pick-up device and the target graphic code is acquired. The scanning merchant can execute starting operation on the resource acquisition function of the payment application program of the second terminal, the second terminal detects the starting operation on the resource acquisition function of the payment application program, the camera is started, the target graphic code in the first terminal is executed with identification operation through the camera, and in the identification process, the target graphic code can be shot through the camera to obtain a preview image. And acquiring the distance between the image pickup device and the target graphic code according to the preview image.
3. And judging whether the target graphic code is positioned in the identification range of the identification operation or not, namely judging whether the target graphic code is positioned in the identification range of the identification operation or not according to the distance between the image pickup device and the target graphic code.
4. And outputting prompt information. If the distance between the camera device and the target graphic code is greater than 20cm, the second terminal determines that the target graphic code exceeds the recognition range, outputs the preview frame 12, displays the preview image 13 in the preview frame 12, prompts the consumer to approach the target graphic code to the camera device, adjusts the target graphic code into the preview frame 12, and prompts the target graphic code to be adjusted within the recognition range. If the distance between the camera device and the target graphic code is smaller than 5cm, the second terminal determines that the target graphic code exceeds the recognition range, outputs the preview frame 12, displays the preview image 13 in the preview frame 12, prompts the user to keep the target graphic code away from the camera device, adjusts the target graphic code into the preview frame 12, and prompts the target graphic code to be adjusted within the recognition range. If the distance between the camera and the target graphic code is between [5, 20] cm, the electronic device can determine that the target graphic code is within the recognition range.
5. And executing the resource transfer operation. The second terminal identifies the target graphic code in the identification range to obtain resource information, wherein the resource information comprises a resource transfer code, and the second terminal sends the identification of the consumer, the identification of the merchant, the target resource amount, the resource transfer reason and the like to the server. And deducting the resources of the target resource amount from the electronic account associated with the identification of the consumer by the server, and transferring the deducted resources to the electronic account associated with the identification of the merchant to complete the resource transfer. After completing the resource transfer, the server may return the resource transfer result to the first terminal and the second terminal, where the resource transfer result may include successful resource transfer and failed resource transfer. If the resource transfer is successful, the resource transfer interface of the first terminal can display the information of successful resource transfer and resource transfer details, wherein the resource transfer details comprise transfer time, transferred resource quantity, resource transfer reasons, user identification for acquiring resources and the like; the resource transfer interface of the second terminal can display the success of resource acquisition and the resource acquisition detail, wherein the resource acquisition detail comprises the time of resource acquisition and the acquired resource quantity. Here the resource transfer failure may be due to network reasons, insufficient resources in the consumer's electronic account, etc.
An embodiment of the present invention provides a resource transfer device, which may be disposed in a terminal, please refer to fig. 5, and the device includes:
a shooting unit 501, configured to invoke, when a target object is detected in an area where a distance between the shooting unit and the imaging device is smaller than a preset distance threshold, the imaging unit to shoot the target object to obtain a preview image;
and the determining unit 502 is configured to determine whether the target graphic code is located within the recognition range of the recognition operation according to the preview image if the target graphic code is included in the preview image.
And the output unit 503 is configured to output a prompt message if the target graphic code exceeds the recognition range, where the prompt message is used to prompt adjustment of the target graphic code to be within the recognition range.
And the execution unit 504 is configured to identify the target graphic code within the identification range to obtain resource information, and execute a resource transfer operation according to the resource information.
Optionally, the output unit 503 is specifically configured to output a resource transfer interface, where the resource transfer interface includes a preview frame; and displaying the preview image in the preview frame so as to prompt the target graphic code to be adjusted to be within the identification range according to the preview frame.
Optionally, the determining unit 502 is specifically configured to obtain, according to the preview image, image information of the target graphic code, where the image information includes one or more of the following: the position of the target graphic code in the preview image, the distance between the target graphic code and the camera device and the size of the target graphic code in the preview image; and determining whether the target graphic code is positioned in the identification range according to the image information.
Optionally, the image information includes a distance between the target graphic code and the image capturing device, and the preview image includes a first image and a second image; a determining unit 502, configured to obtain two-dimensional coordinate information of a first feature point of the target graphic code from the first image; acquiring depth information of a second feature point of the target graphic code from the second image, wherein the second feature point is matched with the first feature point; and determining the distance between the target graphic code and the image pickup device according to the two-dimensional coordinate information of the first feature point and the depth information of the second feature point.
Optionally, the determining unit 502 is specifically configured to obtain a shooting parameter when the image capturing device shoots the target graphic code, and position information of the image capturing device; determining three-dimensional coordinate information of the target graphic code under a camera coordinate system according to the two-dimensional coordinate information of the first feature point and the depth information of the second feature point; determining three-dimensional coordinate information of the target graphic code under a world coordinate system according to the shooting parameters and the three-dimensional coordinate information of the target graphic code under a camera coordinate system; and determining the distance between the target graphic code and the image pickup device by adopting the position information of the image pickup device and the three-dimensional coordinate information of the target graphic code under a world coordinate system. Optionally, the image information includes a size of the target graphic code in the preview image; a determining unit 502, configured to specifically identify, in the preview image, an area where the target graphic code is located; and determining the size of the area where the target graphic code is located, and determining the size of the area where the target graphic code is located as the size of the target graphic code in the preview image.
Optionally, the executing unit 504 is specifically configured to execute the step of identifying the target graphic code within the identification range to obtain the resource information to be transferred if the target graphic code exceeds the identification range and the target graphic code is successfully identified, and execute the transferring operation on the resource information.
In the embodiment of the invention, when the identification operation of the target graphic code is detected, the camera device is called to shoot the target graphic code to obtain the preview image, and whether the target graphic code is positioned in the identification range of the identification operation can be determined according to the preview image; when the target graphic code exceeds the recognition range, the user can be prompted to quickly adjust the target graphic code to the recognition range by outputting prompt information, so that the recognition efficiency of the target graphic code is improved, and the success probability of the recognition operation of the target graphic code is improved. Further, when the target graphic code is adjusted to be within the identification range, the resource information is obtained by identifying the target graphic code within the identification range, and the resource transfer operation is performed according to the resource information, so that the efficiency of the resource transfer can be improved, and the success probability of the resource transfer can be improved. Through guidance of the prompt information, the automatic completion of resource transfer of the consumer can be realized, the communication time between the merchant and the consumer is reduced, and the resource transfer experience is improved.
The embodiment of the invention provides an electronic device, and please refer to fig. 6. The electronic device includes: the processor 151, the user interface 152, the network interface 154, and the storage device 155 are connected via the bus 153.
A user interface 152 for enabling human-machine interaction, which may include a display screen or keyboard, etc. A network interface 154 for communication connection with external devices. A storage device 155 is coupled to the processor 151 for storing various software programs and/or sets of instructions. In particular implementations, storage 155 may include high-speed random access memory, and may also include non-volatile memory, such as one or more disk storage devices, flash memory devices, or other non-volatile solid state storage devices. The storage 155 may store an operating system (hereinafter referred to as a system), such as ANDROID, IOS, WINDOWS, or an embedded operating system, such as LINUX. The storage 155 may also store a network communication program that may be used to communicate with one or more additional devices, one or more application servers, and one or more network devices. The storage 155 may also store a user interface program that can vividly display the content image of the application program through a graphical operation interface, and receive control operations of the application program from a user through input controls such as menus, dialog boxes, buttons, and the like. The storage 155 may also store video data or the like.
In one embodiment, the storage 155 may be used to store one or more instructions; the processor 151 may implement a resource transfer method when the one or more instructions are called, specifically, the processor 151 calls the one or more instructions to execute the following steps:
when a target object is detected in a region with the distance between the imaging device and the imaging device being smaller than a preset distance threshold value, the imaging device is called to shoot the target object to obtain a preview image;
if the preview image comprises a target graphic code, determining whether the target graphic code is positioned in the identification range of the identification operation according to the preview image;
if the target graphic code exceeds the identification range, outputting prompt information, wherein the prompt information is used for prompting the adjustment of the target graphic code to be within the identification range;
and identifying the target graphic code in the identification range to obtain resource information, and executing resource transfer operation according to the resource information.
Optionally, the processor invokes an instruction to execute the following steps:
outputting a resource transfer interface, wherein the resource transfer interface comprises a preview frame;
And displaying the preview image in the preview frame so as to prompt the target graphic code to be adjusted to be within the identification range according to the preview frame. Optionally, the processor invokes an instruction to execute the following steps:
acquiring image information of the target graphic code according to the preview image, wherein the image information comprises one or more of the following: the position of the target graphic code in the preview image, the distance between the target graphic code and the camera device and the size of the target graphic code in the preview image;
and determining whether the target graphic code is positioned in the identification range according to the image information.
Optionally, the processor invokes an instruction to execute the following steps:
acquiring two-dimensional coordinate information of a first feature point of the target graphic code from the first image;
acquiring depth information of a second feature point of the target graphic code from the second image, wherein the second feature point is matched with the first feature point;
and determining the distance between the target graphic code and the image pickup device according to the two-dimensional coordinate information of the first feature point and the depth information of the second feature point.
Optionally, the processor invokes an instruction to execute the following steps:
acquiring shooting parameters when the image pickup device shoots the target graphic code and position information of the image pickup device;
determining three-dimensional coordinate information of the target graphic code under a camera coordinate system according to the two-dimensional coordinate information of the first feature point and the depth information of the second feature point;
determining three-dimensional coordinate information of the target graphic code under a world coordinate system according to the shooting parameters and the three-dimensional coordinate information of the target graphic code under a camera coordinate system;
and determining the distance between the target graphic code and the image pickup device by adopting the position information of the image pickup device and the three-dimensional coordinate information of the target graphic code under a world coordinate system.
Optionally, the processor invokes an instruction to execute the following steps:
identifying the region where the target graphic code is located in the preview image;
and determining the size of the area where the target graphic code is located, and determining the size of the area where the target graphic code is located as the size of the target graphic code in the preview image.
Optionally, the processor invokes an instruction to execute the following steps:
And if the target graphic code exceeds the identification range and the target graphic code is successfully identified, executing the step of identifying the target graphic code in the identification range to obtain the resource information to be transferred and executing the transfer operation on the resource information.
In the embodiment of the invention, when the identification operation of the target graphic code is detected, the camera device is called to shoot the target graphic code to obtain the preview image, and whether the target graphic code is positioned in the identification range of the identification operation can be determined according to the preview image; when the target graphic code exceeds the recognition range, the user can be prompted to quickly adjust the target graphic code to the recognition range by outputting prompt information, so that the recognition efficiency of the target graphic code is improved, and the success probability of the recognition operation of the target graphic code is improved. Further, when the target graphic code is adjusted to be within the identification range, the resource information is obtained by identifying the target graphic code within the identification range, and the resource transfer operation is performed according to the resource information, so that the efficiency of the resource transfer can be improved, and the success probability of the resource transfer can be improved. Through guidance of the prompt information, the automatic completion of resource transfer of the consumer can be realized, the communication time between the merchant and the consumer is reduced, and the resource transfer experience is improved.
The embodiment of the present invention further provides a computer readable storage medium, on which a computer program is stored, and the implementation and beneficial effects of the solution to the problem of the program can be referred to the implementation and beneficial effects of a resource transfer method described in fig. 3, and the repetition is omitted.
The above disclosure is illustrative only of some embodiments of the invention and is not intended to limit the scope of the invention, which is defined by the claims and their equivalents.

Claims (7)

1. A method of resource transfer, the method comprising:
when the second terminal is in a face recognition mode, shooting a face to obtain a face image, and if the face in the face image has integrity, recognizing the face to obtain face feature information, and performing resource transfer operation according to the face feature;
if the face in the face image does not have the integrity, switching to a pattern code recognition mode, and calling the camera to shoot the target to obtain a preview image when the target is detected in a region with the distance between the camera and the camera being smaller than a preset distance threshold;
If the preview image comprises a target graphic code, acquiring image information of the target graphic code according to the preview image, and determining whether the target graphic code is positioned in an identification range according to the image information, wherein the image information comprises the position of the target graphic code in the preview image or the size of the target graphic code in the preview image; the target graphic code is generated by the first terminal according to resource information returned by the server, wherein the resource information comprises a resource transfer code associated with an electronic account of a consumer corresponding to the first terminal and an effective time period of resource transfer; the image information further comprises a distance between the target graphic code and the image pickup device, and the preview image comprises a first image and a second image; the obtaining the image information of the target graphic code according to the preview image comprises the following steps: acquiring two-dimensional coordinate information of a first feature point of the target graphic code from the first image; acquiring depth information of a second feature point of the target graphic code from the second image, wherein the second feature point is matched with the first feature point; acquiring shooting parameters when the image pickup device shoots the target graphic code and position information of the image pickup device; determining three-dimensional coordinate information of the target graphic code under a camera coordinate system according to the two-dimensional coordinate information of the first feature point and the depth information of the second feature point; determining three-dimensional coordinate information of the target graphic code under a world coordinate system according to the shooting parameters and the three-dimensional coordinate information of the target graphic code under a camera coordinate system; determining the distance between the target graphic code and the camera by adopting the position information of the camera and the three-dimensional coordinate information of the target graphic code under a world coordinate system;
If the target graphic code exceeds the identification range, outputting prompt information, wherein the prompt information is used for prompting the adjustment of the target graphic code to be within the identification range; the target graphic code exceeding the identification range means that the position of the target graphic code in the preview image is not in a preset image area, and the preset image area means an area where the second terminal scans; or the target graphic code exceeding the recognition range means that the size of the target graphic code in the preview image is smaller than a first size threshold value or the size of the target graphic code in the preview image is larger than a second size threshold value, and the first size threshold value is smaller than the second size threshold value;
identifying the target graphic code in the identification range to obtain resource information, generating a resource acquisition request carrying the resource information and resource acquisition parameters, and sending the resource acquisition request to the server; and the server is used for transferring the resources of the target resource quantity from the electronic account associated with the resource transfer code to the electronic account of the merchant when the current time is determined to be in the effective time period carried in the resource retrieval request and the target resource quantity in the resource retrieval parameter is determined to be smaller than a preset threshold value.
2. The method of claim 1, wherein outputting the hint information comprises:
outputting a resource transfer interface, wherein the resource transfer interface comprises a preview frame;
and displaying the preview image in the preview frame so as to prompt the target graphic code to be adjusted to be within the identification range according to the preview frame.
3. The method of claim 1, wherein the image information includes a size of the target graphic code in the preview image;
the acquiring the image information of the target graphic code according to the preview image comprises the following steps:
identifying the region where the target graphic code is located in the preview image;
and determining the size of the area where the target graphic code is located, and determining the size of the area where the target graphic code is located as the size of the target graphic code in the preview image.
4. A method as claimed in any one of claims 1 to 3, comprising, prior to said outputting of the alert information:
and if the target graphic code exceeds the identification range and the target graphic code is successfully identified, executing the step of identifying the target graphic code in the identification range to obtain the resource information to be transferred and executing the transfer operation on the resource information.
5. A resource transfer device, the device comprising:
the shooting unit is used for shooting the face to obtain a face image when the second terminal is in a face recognition mode, and if the face in the face image has integrity, the face is identified to obtain face characteristic information, and resource transfer operation is carried out according to the face characteristic; if the face in the face image does not have the integrity, switching to a pattern code recognition mode, and calling the camera to shoot the target to obtain a preview image when the target is detected in a region with the distance between the camera and the camera being smaller than a preset distance threshold;
a determining unit, configured to, if the preview image includes a target graphic code, obtain image information of the target graphic code according to the preview image, determine whether the target graphic code is located within an identification range according to the image information, where the image information includes a position of the target graphic code in the preview image, or a size of the target graphic code in the preview image; the target graphic code is generated by the first terminal according to resource information returned by the server, wherein the resource information comprises a resource transfer code associated with an electronic account of a consumer corresponding to the first terminal and an effective time period of resource transfer; the image information further comprises a distance between the target graphic code and the image pickup device, and the preview image comprises a first image and a second image; the obtaining the image information of the target graphic code according to the preview image comprises the following steps: acquiring two-dimensional coordinate information of a first feature point of the target graphic code from the first image; acquiring depth information of a second feature point of the target graphic code from the second image, wherein the second feature point is matched with the first feature point; acquiring shooting parameters when the image pickup device shoots the target graphic code and position information of the image pickup device; determining three-dimensional coordinate information of the target graphic code under a camera coordinate system according to the two-dimensional coordinate information of the first feature point and the depth information of the second feature point; determining three-dimensional coordinate information of the target graphic code under a world coordinate system according to the shooting parameters and the three-dimensional coordinate information of the target graphic code under a camera coordinate system; determining the distance between the target graphic code and the camera by adopting the position information of the camera and the three-dimensional coordinate information of the target graphic code under a world coordinate system;
The output unit is used for outputting prompt information if the target graphic code exceeds the identification range, wherein the prompt information is used for prompting the adjustment of the target graphic code into the identification range; the target graphic code exceeding the identification range means that the position of the target graphic code in the preview image is not in a preset image area, and the preset image area means an area where the second terminal scans; or the target graphic code exceeding the recognition range means that the size of the target graphic code in the preview image is smaller than a first size threshold value or the size of the target graphic code in the preview image is larger than a second size threshold value, and the first size threshold value is smaller than the second size threshold value;
the execution unit is used for identifying the target graphic code in the identification range to obtain resource information, generating a resource acquisition request carrying the resource information and resource acquisition parameters, and sending the resource acquisition request to the server; and the server is used for transferring the resources of the target resource quantity from the electronic account associated with the resource transfer code to the electronic account of the merchant when the current time is determined to be in the effective time period carried in the resource retrieval request and the target resource quantity in the resource retrieval parameter is determined to be smaller than a preset threshold value.
6. An electronic device comprising an input device and an output device, further comprising:
a processor adapted to implement one or more instructions; the method comprises the steps of,
a computer storage medium storing one or more instructions adapted to be loaded by the processor and to perform the method of any one of claims 1-4.
7. A computer storage medium storing computer program instructions which, when executed, implement the method of any one of claims 1-4.
CN201910826887.2A 2019-09-03 2019-09-03 Resource transfer method and device, storage medium and electronic equipment Active CN110570185B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910826887.2A CN110570185B (en) 2019-09-03 2019-09-03 Resource transfer method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910826887.2A CN110570185B (en) 2019-09-03 2019-09-03 Resource transfer method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN110570185A CN110570185A (en) 2019-12-13
CN110570185B true CN110570185B (en) 2024-03-26

Family

ID=68777524

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910826887.2A Active CN110570185B (en) 2019-09-03 2019-09-03 Resource transfer method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN110570185B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111428594A (en) * 2020-03-13 2020-07-17 北京三快在线科技有限公司 Identity authentication method and device, electronic equipment and storage medium
CN113053043A (en) * 2021-03-24 2021-06-29 厦门富捷迅软件科技有限公司 Payment equipment
WO2023236801A1 (en) * 2022-06-07 2023-12-14 华为技术有限公司 Graphic code recognition method and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105389569A (en) * 2015-11-17 2016-03-09 北京工业大学 Human body posture estimation method
CN106826815A (en) * 2016-12-21 2017-06-13 江苏物联网研究发展中心 Target object method of the identification with positioning based on coloured image and depth image
CN107688933A (en) * 2017-08-29 2018-02-13 腾讯科技(深圳)有限公司 Resource transfers method, apparatus and storage medium
CN107978022A (en) * 2017-11-03 2018-05-01 阿里巴巴集团控股有限公司 A kind of Cash collecting equipment of public transport
CN109598515A (en) * 2018-11-29 2019-04-09 阿里巴巴集团控股有限公司 A kind of method of payment, payment mechanism and terminal device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105389569A (en) * 2015-11-17 2016-03-09 北京工业大学 Human body posture estimation method
CN106826815A (en) * 2016-12-21 2017-06-13 江苏物联网研究发展中心 Target object method of the identification with positioning based on coloured image and depth image
CN107688933A (en) * 2017-08-29 2018-02-13 腾讯科技(深圳)有限公司 Resource transfers method, apparatus and storage medium
CN107978022A (en) * 2017-11-03 2018-05-01 阿里巴巴集团控股有限公司 A kind of Cash collecting equipment of public transport
CN109598515A (en) * 2018-11-29 2019-04-09 阿里巴巴集团控股有限公司 A kind of method of payment, payment mechanism and terminal device

Also Published As

Publication number Publication date
CN110570185A (en) 2019-12-13

Similar Documents

Publication Publication Date Title
KR102597680B1 (en) Electronic device for providing customized quality image and method for controlling thereof
CN110570185B (en) Resource transfer method and device, storage medium and electronic equipment
US10817705B2 (en) Method, apparatus, and system for resource transfer
KR102298793B1 (en) Virtual reality scene-based business verification method and device
JP7118244B2 (en) Graphic code recognition method and device, terminal and program
US11321575B2 (en) Method, apparatus and system for liveness detection, electronic device, and storage medium
CN111368578A (en) Information processing method and electronic equipment
KR20180014624A (en) System and Method for Iris Authentication
KR20180013208A (en) Apparatus and Method for Processing Differential Beauty Effect
US20120030104A1 (en) Processing images associated with the remote capture of multiple deposit items
CN110717750A (en) Two-dimensional code display method, two-dimensional code display device and mobile terminal
CN107577973B (en) image display method, image identification method and equipment
US11373052B2 (en) Data interaction method and device, storage medium, and mobile terminal
TWI744962B (en) Information processing device, information processing system, information processing method, and program product
CN113066237A (en) Face living body detection and identification method for automatic teller machine and automatic teller machine
CN111930641A (en) Image data processing method and intelligent equipment
US20120030118A1 (en) Remote capture of multiple deposit items using a grid
CN114333185A (en) Payment method and device, electronic equipment and storage medium
CN111539742B (en) Information processing method, information processing device, electronic equipment and storage medium
CN114549013A (en) Face brushing payment method and device and face brushing equipment
CN112052706B (en) Electronic device and face recognition method
CN112163436A (en) Information identification system, method and device
CN112200553A (en) Payment processing method and device
CN111935439A (en) Identification method and device and electronic equipment
US11429182B2 (en) Augmented reality virtual number generation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40018884

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant