CN108734472A - Method of payment, device, electronic device and storage medium - Google Patents
Method of payment, device, electronic device and storage medium Download PDFInfo
- Publication number
- CN108734472A CN108734472A CN201810475466.5A CN201810475466A CN108734472A CN 108734472 A CN108734472 A CN 108734472A CN 201810475466 A CN201810475466 A CN 201810475466A CN 108734472 A CN108734472 A CN 108734472A
- Authority
- CN
- China
- Prior art keywords
- facial image
- electronic device
- payment
- camera
- target
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/40—Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
- G06Q20/401—Transaction verification
- G06Q20/4014—Identity check for transactions
- G06Q20/40145—Biometric identity checks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/30—Payment architectures, schemes or protocols characterised by the use of specific devices or networks
- G06Q20/32—Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
- G06Q20/322—Aspects of commerce using mobile devices [M-devices]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/172—Classification, e.g. identification
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Accounting & Taxation (AREA)
- Physics & Mathematics (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Finance (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Oral & Maxillofacial Surgery (AREA)
- Human Computer Interaction (AREA)
- Multimedia (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the present application discloses a kind of method of payment, device, electronic device and storage medium, is related to technical field of electronic device.The method of payment is applied to electronic device, which is provided with rotatable camera, the method includes:When detecting that the payment application in electronic device starts, control camera rotation obtains target facial image and caches the target facial image, when getting the payment request of payment application, target facial image is matched with the facial image that prestores, when target facial image and prestore facial image successful match when, complete payment.Method of payment, device, electronic device and storage medium provided by the embodiments of the present application, facial image is acquired in advance by the camera of setting on the electronic device to be stored, and directly facial image is verified after user confirms payment, payment verification speed is accelerated, user experience is promoted.
Description
Technical field
This application involves technical field of electronic device, more particularly, to a kind of method of payment, device, electronic device with
And storage medium.
Background technology
With the development of electronic device and popularizing for mobile payment, more and more users are by way of mobile payment
Carry out the payment of various expenses.Current mobile payment mode is usually after user confirms payment, to the password of user setting
It is verified, and completes payment after being proved to be successful, but verification process is slow, causes user experience bad.
Invention content
In view of the above problems, present applicant proposes a kind of method of payment, device, electronic device and storage medium, pass through
The camera for being arranged on the electronic device acquires facial image and is stored in advance, and directly to face after user confirms payment
Image is verified, and payment verification speed is accelerated, and promotes user experience.
In a first aspect, the embodiment of the present application provides a kind of method of payment, it is applied to electronic device, the electronic device is set
It is equipped with rotatable camera, the method includes:When detecting that the payment application in the electronic device starts, control
The camera rotation is made to obtain target facial image and cache the target facial image;Journey is applied when getting the payment
When the payment request of sequence, the target facial image is matched with the facial image that prestores;When the target facial image with
It is described prestore facial image successful match when, complete payment.
Second aspect, the embodiment of the present application provide a kind of payment mechanism, are applied to electronic device, and the electronic device is set
It is equipped with rotatable camera, described device includes:Target facial image acquisition module detects the electronic device for working as
In payment application when starting, control camera rotation and obtain target facial image and cache the target face figure
Picture;Target facial image matching module, for when getting the payment request of the payment application, by the target person
Face image is matched with the facial image that prestores;Payment module, for working as the target facial image and the face figure that prestores
When as successful match, payment is completed.
The third aspect, the embodiment of the present application provide a kind of electronic device, including touch screen, memory and processor,
The touch screen is couple to the processor, the memory store instruction, when described instruction is by described with the memory
It manages processor when device executes and executes the above method.
Fourth aspect, the embodiment of the present application provide it is a kind of with processor can perform program code it is computer-readable
Take storage medium, said program code that the processor is made to execute the above method.
5th aspect, the embodiment of the present application provide a kind of electronic device, including:Rotatable camera;Circuit, with institute
Camera connection is stated, the circuit includes detection circuit, driving circuit and processing circuit, and the detection circuit is for detecting
Whether starting to the payment application in electronic device, the driving circuit is used for when the payment application starts,
It controls camera rotation and obtains target facial image and caching of target facial image, the processing circuit is used for described when getting
When the payment request of payment application, target facial image is matched with the facial image that prestores, and in successful match,
Complete payment.
A kind of method of payment, device, electronic device and storage medium provided by the embodiments of the present application, when detecting electronics
When payment application in device starts, control camera rotation obtains target facial image and caches the target face figure
Target facial image is matched with the facial image that prestores when getting the payment request of payment application, works as mesh by picture
Mark facial image and prestore facial image successful match when, payment is completed, with pre- by the way that camera on the electronic device is arranged
First acquisition facial image is stored, and is directly verified to facial image after user confirms payment, is accelerated payment and is tested
Speed is demonstrate,proved, user experience is promoted.
These aspects or other aspects of the application can more straightforward in the following description.
Description of the drawings
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present application, for
For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 shows the structural schematic diagram of the first electronic device provided by the embodiments of the present application;
Fig. 2 shows the structural schematic diagrams of second of electronic device provided by the embodiments of the present application;
Fig. 3 shows the structural schematic diagram of the third electronic device provided by the embodiments of the present application;
Fig. 4 shows the flow diagram for the method for payment that the application first embodiment provides;
Fig. 5 shows the flow diagram for the method for payment that the application second embodiment provides;
Fig. 6 shows the flow diagram of the step S230 for the method for payment that the application second embodiment provides;
Fig. 7 shows the flow diagram for the method for payment that the application 3rd embodiment provides;
Fig. 8 shows the flow diagram for the method for payment that the application fourth embodiment provides;
Fig. 9 shows a kind of module frame chart for the payment mechanism that the 5th embodiment of the application provides;
Figure 10 shows another module frame chart for the payment mechanism that the 5th embodiment of the application provides;
Figure 11 shows a kind of block diagram for electronic device that the application sixth embodiment provides;
Figure 12 shows a kind of front schematic view of electronic device provided by the embodiments of the present application;
Figure 13 shows the block diagram of the electronic device for executing the method for payment according to the embodiment of the present application.
Specific implementation mode
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on
Embodiment in the application, those of ordinary skill in the art are obtained all other without creative efforts
Embodiment shall fall in the protection scope of this application.
Display screen usually act as showing played in the electronic devices such as mobile phone, tablet computer, wearable electronic equipment
Show the contents such as text, picture, icon or video.Requirement with user to the clarity and fineness of displayed content is got over
Come higher, more electronic devices use larger-size touching display screen, to realize the display effect shielded comprehensively.But
During larger-size display screen is set, find front camera set by electronic device front end, close to optical sensor,
The function elements such as projecting subassembly, receiver can influence the region that touching display screen can expand to.
Usual electronic device includes front panel, rear cover and frame.In front plate include upper frontal region, middle part screen area and under
Portion key zone.In general, upper frontal region is provided with the function elements such as receiver sound outlet hole and front camera, middle part screen area is provided with
Touching display screen, lower part key zone are provided with one to three physical buttons.And with the development of technology, lower part key zone is gradual
Cancel, the physical button in lower part key zone is set originally and is substituted by the virtual key in touching display screen.
And the function elements such as receiver sound outlet hole and front camera set by upper frontal region support the function of mobile phone
It is more important, it is not easy easily to cancel, so the display area of touching display screen is extended to the upper frontal region of covering with larger
Difficulty.After a series of researchs, inventor has found can be by work(such as projecting subassembly, receiver, camera, structure optical assemblies
Energy device hides the inside of the terminal body of setting electronic device or the back side of terminal body, is reconfigured slide assemblies and/or turns
Dynamic component reveals at the top of the terminal body, to realize by the upper frontal region of script be extended to touching display screen can
Display area, with increase can display area area, to realize the effect shielded comprehensively.
Illustratively, referring to Fig. 1, Fig. 1 shows the first knot for the electronic device 100 that can be used for the embodiment of the present application
Structure schematic diagram.Electronic device includes terminal body 130, camera 150 and runner assembly 140, and camera 150 is mounted on rotating group
On part 140, in addition, other function elements of electronic device can also be arranged on runner assembly 140, wherein other effectors
Part is in addition to may include close to optical sensor, receiver, range sensor, ambient light sensor, temperature sensor, pressure sensor
Equal devices.
Runner assembly 140 is rotatablely connected with terminal body 130, and in some implementations, camera 150 is in runner assembly 140
Drive under, can in the horizontal direction with vertical direction rotate.In the embodiment of the present application, electronic device is provided with driving group
Part, the drive component can be motors, and runner assembly 140 can be driven to rotate.Then the rotation direction of runner assembly 140 can be
It is two-dimensional, can also be three-dimensional.
Wherein, the rotation that two-dimensional rotation can be horizontally oriented, as shown in Figure 1, drive component drives runner assembly 140
Rotate in the horizontal direction, wherein horizontal direction be when electronic device vertical display, the rotational plane of runner assembly 140 with
The top side of electronic device is parallel, and specifically, which may include shaft and installation part, then one end of shaft
Mounted on the top of electronic device, the other end is connect with installation part, then on mountings, shaft can for above-mentioned function element installation
Installation part is driven to horizontally rotate.As an implementation, runner assembly 140 can move up and down, i.e., filled along far from electronics
The top set and the direction movement close to the top of electronic device so that runner assembly can be contained in inside electronics
Or the back side, for example, runner assembly is slidably arranged on inside terminal body 130, and the open top of terminal body 130, turn
Dynamic component 140 can be stretched out by open top.Alternatively, runner assembly 140 can be placed in the back side of terminal body 130, example
Such as, one groove is set at the top at the back side of terminal body 130, then runner assembly 140 is arranged in groove, and can be
It stretches out or retracts in groove.
In addition, two-dimensional rotation can also be the rotation on vertical direction, as shown in Fig. 2, drive component drives rotating group
Part 140 rotates in the vertical direction, wherein horizontal direction is when electronic device vertical display, and the rotation of runner assembly 140 is flat
Face is vertical with the top side of terminal body 130, and specifically, which may include holder and installation part, then holder
Mounted on the top of terminal body 130, and installation part is connect with holder pivots, as shown in Fig. 2, the quantity of holder is two,
Mounted on the top of terminal body 130, and installation part is installed in rotation on two holders, specifically, can be turned by one
Axis is installed on two holders, and under the action of shaft, installation part can rotate in the vertical direction.In addition, shown in Fig. 2
Runner assembly can also be contained in the inside of terminal body 130 or the back side, and specific ground structure can refer to aforementioned, and details are not described herein.
Furthermore the rotation on three-dimensional may include the rotation in horizontal direction and vertical direction, as shown in figure 3,
Drive component drives runner assembly 140 in vertically and horizontally upper rotation, and specifically, which can wrap
Holder and installation part are included, then holder is mounted on the top of terminal body 130, and installation part is connect with holder pivots, and holder
Also it can rotate, rotation direction is horizontal direction, the rotation being achieved that as a result, on the three-dimensional of runner assembly.
Therefore, at present by electronic device carry out mobile payment when payment verification process it is slow, cause user experience
Bad problem inventors herein proposes method of payment, device, electronic device and storage medium provided by the embodiments of the present application,
Facial image is acquired in advance by the camera of setting on the electronic device to be stored, and directly right after user confirms payment
Facial image is verified, and payment verification speed is accelerated, and promotes user experience.The application is specifically described below in conjunction with attached drawing
In each embodiment.
First embodiment
Referring to Fig. 4, Fig. 4 shows the flow diagram for the method for payment that the application first embodiment provides.The branch
The method of paying is used to acquire facial image in advance by the camera of setting on the electronic device and be stored, and confirms branch in user
Directly facial image is verified after paying, accelerates payment verification speed, promotes user experience.In the particular embodiment,
The method of payment is applied to payment mechanism 200 as shown in Figure 9 and the electronic device configured with the payment mechanism 200
100 (Figure 12) will illustrate the detailed process of the present embodiment by taking electronic device as an example below, it will of course be understood that, this implementation
The electronic device that example is applied can be smart mobile phone, tablet computer, wearable electronic equipment etc., not do specific limit herein
It is fixed.It will be explained in detail below for flow shown in Fig. 4, the method for payment can specifically include following steps:
Step S110:When detecting that the payment application in the electronic device starts, controls the camera and turn
It is dynamic to obtain target facial image and cache the target facial image.
In the present embodiment, if carrying out payment verification by face in payment, camera is needed to acquire facial image,
Therefore, camera needs are revealed from terminal body, wherein camera can be pulled by external force from terminal body
It reveals, can also reveal from terminal body under the drive of the electric control gear in terminal body, not limit herein
It is fixed.A kind of state as mode, the payment application to being installed in electronic device is detected, and according to the result of detection
Camera rotation is controlled, specifically, the electronic device is equipped with multiple using journey including payment application in advance
Sequence, wherein the payment application can be the native applications program of electronic apparatus system, or what user voluntarily installed
Third party application does not limit herein.It, can be by detecting whether the payment application is foreground as a kind of mode
Using, or judge whether by the current display page of detection electronic installation to show that the corresponding page info of payment application is sentenced
Whether the payment application of breaking starts, wherein the payment application can at least may include Taobao, Jingdone district, Alipay
Deng.Further, if detect the payment application startup in electronic device, electronic device controls camera in response
Rotation obtains target facial image and caches the target facial image, wherein the target facial image corresponds to the people of validated user
Face image changes in addition, due to during camera rotates relative to the position of electronic device and angle, because
This, the angle of the target facial image of acquisition changes, so as to be obtained in optimum photographing position by the rotation of camera
Take the target facial image.
In addition, after obtaining the target facial image, which is cached to electronic device, to carry out
When payment verification operates, the target facial image is directly obtained from caching, can shorten the time for obtaining facial image, is accelerated
Verifying speed.
Step S120:When getting the payment request of the payment application, by the target facial image and in advance
Facial image is deposited to be matched.
Further, electronic device is monitored to whether the payment application carries out delivery operation, wherein works as electronics
When device receives the payment request of payment application, it is possible to determine that the payment application is carrying out delivery operation, works as electricity
When sub-device detects the touch control operation on the payment control for acting on payment application, the payment application journey can also be judged
Sequence can also judge whether payment application is propped up otherwise in the present embodiment certainly in progress delivery operation
Operation is paid, this will not be repeated here.As a kind of mode, when electronic device gets the payment request of payment application, make
Target facial image is matched with the facial image that prestores for response, specifically, acquires and is stored in advance in electronic device
The facial image of validated user as the facial image that prestores, this prestore facial image for the judgement as target facial image according to
According to therefore, in the present embodiment, target facial image being matched with the facial image that prestores, with to the target facial image
The identity of corresponding user judges.
Step S130:When the target facial image with it is described prestore facial image successful match when, complete payment.
It should be understood that when target facial image and prestore facial image successful match when, characterize the target facial image
Corresponding user is validated user, i.e. the delivery operation is what validated user was initiated, then completes to pay.
The method of payment that the application first embodiment provides, when detecting that payment application in electronic device starts
When, control camera rotation obtains target facial image and simultaneously caches the target facial image, when getting payment application
When payment request, target facial image is matched with the facial image that prestores, when target facial image and the facial image that prestores
When successful match, payment is completed, is stored with acquiring facial image in advance by the camera of setting on the electronic device, and
Directly facial image is verified after user confirms payment, accelerates payment verification speed, promotes user experience.
Second embodiment
Referring to Fig. 5, Fig. 5 shows the flow diagram for the method for payment that the application second embodiment provides.Below will
It is explained in detail for flow shown in fig. 5, the method can specifically include following steps:
Step S210:When detecting that the payment application in the electronic device starts, present preview image is obtained.
In the present embodiment, when detecting that the payment application in electronic device starts, camera acquisition is called to work as
The preview image of front position.
Step S220:Obtain the facial image in the present preview image, and judge the facial image whether be
Whole facial image.
Further, in the present embodiment, electronic device can carry out feature extraction to preview image, obtain preview image
In facial image, then by identify the facial image whether be located at preview image marginal position whether judge the facial image
Completely, or by carrying out feature extraction to facial image judge that whether the facial image is complete etc., does not do specifically defined herein.
Step S230:When the facial image is not complete facial image, the camera rotation is controlled until obtaining
To complete facial image and cache the complete facial image.
Wherein, when it is not complete facial image to judge the facial image, electronic device obtains facial image current pre-
Look at the position in image, it is possible to understand that, which can be located at the lower edge region in present preview image, can be with
Upper edge region in present preview image, the left part fringe region that can be located in present preview image, can also
Right edge region in present preview image etc. is further determining the facial image in present preview image
Position after, according to the position control camera rotation until getting complete facial image, as target face figure
Picture simultaneously caches.
Referring to Fig. 6, Fig. 6 shows the flow signal of the step S230 for the method for payment that the application second embodiment provides
Figure.It will be explained in detail below for flow shown in fig. 6, the method can specifically include following steps:
Step S231:When the facial image is not complete facial image, obtain the facial image with it is described current
The position relationship of preview image.
Further, when the facial image is not complete facial image, electronic device is based on the facial image current
The position relationship of the position acquisition facial image and present preview image in preview image, as a kind of mode, with current pre-
It lookes at position reference point of the midpoint as present preview image of image, joins using the midpoint of facial image as the position of facial image
Examination point obtains the facial image and current pre- by the position reference point of facial image and the position reference point of present preview image
The position relationship look between image.
Step S232:Rotation angle and the direction of rotation of the camera are calculated based on the position relationship.
In addition, after obtaining the position relationship of facial image and present preview image, the people is obtained based on the position relationship
Relative distance between face image and present preview image and relative angle, and based on the facial image and present preview image it
Between relative distance and relative angle calculate camera rotation angle and direction of rotation, it is possible to understand that, be based on the rotation angle
Degree and direction of rotation, on the one hand, camera can turn to commitment positions to obtain complete facial image, on the other hand, image
Head can turn to commitment positions with shortest distance and shortest time, save camera rotation time and reduce camera turn
Dynamic required power consumption.
Step S233:The camera is controlled according to the rotation angle and the direction of rotation to rotate, until getting
The complete facial image simultaneously caches the complete facial image.
In addition, in the present embodiment, when left area of the facial image in present preview image, the face is characterized
The corresponding user of image is located at opposing electronic device position to the left, in the case where electronic device does not move, can control
Camera is rotated towards the left side of opposing electronic device, until getting complete facial image and caching the complete facial image;
When right area of the facial image in present preview image, characterizes the corresponding user of the facial image and be located at opposing electronic device
At position to the right, in the case where electronic device does not move, camera can be controlled and turned towards the right of opposing electronic device
It is dynamic, until getting complete facial image and caching the complete facial image.
Step S240:When getting the payment request of the payment application, by the target facial image and in advance
Facial image is deposited to be matched.
Step S250:When the target facial image with it is described prestore facial image successful match when, complete payment.
Step S260:When the target facial image matches unsuccessful with the facial image that prestores, caching is deleted
The target facial image, and show the prompt message of authentication failed.
Wherein, in the present embodiment, it since the memory capacity of the memory headroom of electronic device is smaller, and needs to provide each
Therefore kind running space when target facial image matches unsuccessful with the facial image that prestores, deletes the target face figure of caching
Picture, to save memory headroom.In addition, when matching unsuccessful, in the prompt of the display screen display authentication failed of electronic device
Information, it is such as close to prompt user to control camera acquisition facial image again or other verification modes is selected to carry out payment verification
Code verification or fingerprint authentication etc..
The method of payment that the application second embodiment provides, when detecting that payment application in electronic device starts
When, present preview image is obtained, obtains the facial image in present preview image, and judge whether the facial image is whole person
Face image, when facial image is not complete facial image, control camera rotation is until getting complete facial image and delaying
The complete facial image is deposited, when getting the payment request of the payment application, by target facial image and the face that prestores
Image is matched, when target facial image and prestore facial image successful match when, complete payment, when target facial image with
When the facial image that prestores matching is unsuccessful, deletes the target facial image of caching and show the prompt message of authentication failed, with
Complete facial image is acquired in advance by the camera of setting on the electronic device to be stored, and straight after user confirms payment
It connects and facial image is verified, accelerate payment verification speed, promote user experience.
3rd embodiment
Referring to Fig. 7, Fig. 7 shows the flow diagram for the method for payment that the application 3rd embodiment provides.Below will
It is explained in detail for flow shown in Fig. 7, the method can specifically include following steps:
Step S310:When detecting that the payment application of the electronic device starts, the court of the camera is detected
To.
Wherein, may be there is no towards user's direction in the initial towards position of camera, it can in coverage
It can be there is no facial image.Therefore, optionally, in this embodiment, can first judge within the scope of current shooting whether someone
Face image, if so, then obtaining the facial image.If showing camera without facial image in the coverage of camera
Direction may be incorrect, can control camera rotation to find facial image.For example, user when using electronic device, is led to
Chang Chaoxiang screens, therefore camera can be rotated to screen direction.In addition, camera can also be in the direction of screen direction
On again yawing rotation or pitching movement rotated, obtain facial image.The specific rotation mode of camera does not limit, can
Scanning range to be increase camera is advisable with the facial image for obtaining needs as far as possible.
Optionally, camera can may also get facial image, i.e., when not towards the validated user of electronic device
The facial image got may not be the image of the user got towards user.Since user is when using electronic device,
Be generally directed toward screen, therefore, on the direction of screen direction get facial image it is more likely that validated user image.At this
In embodiment, obtaining facial image by the camera may include:Judge the camera whether towards the electronics
The direction of device screen direction;If so, by the camera obtain facial image, if it is not, control the camera rotate to
Towards after the direction of the screen of electronic device direction, obtains target facial image and store the target facial image.
Step S320:Judge whether the direction of the camera is identical as the direction of the screen of the electronic device.
Step S330:When the direction of the camera and the direction of the screen differ, controls the camera and turn
It moves to position identical with the direction of the screen of the electronic device, obtain the target facial image and caches the target person
Face image.
Step S340:When getting the payment request of the payment application, by the target facial image and in advance
Facial image is deposited to be matched.
Step S350:When the target facial image with it is described prestore facial image successful match when, complete payment.
The method of payment that the application 3rd embodiment provides, when detecting that the payment application of electronic device starts,
The direction for detecting camera, judges whether the direction of the camera is identical as the direction of the screen of electronic device, when camera
When being differed towards the direction with screen, control camera turns to position identical with the direction of the screen of electronic device, obtains
It takes target facial image and caches the target facial image, when getting the payment request of the payment application, by target
Facial image is matched with the facial image that prestores, when target facial image and prestore facial image successful match when, complete branch
It pays, the facial image to acquire user in advance by the way that camera on the electronic device is arranged stores, and confirms in user
Directly facial image is verified after payment, accelerates payment verification speed, promotes user experience.
Fourth embodiment
Referring to Fig. 8, Fig. 8 shows the flow diagram for the method for payment that the application fourth embodiment provides.Below will
It is explained in detail for flow shown in Fig. 8, the method can specifically include following steps:
Step S410:When detecting that the payment application in the electronic device starts, controls the camera and turn
It is dynamic to obtain the image that multiple include partial target face.
There may be face distortion when in the present embodiment, due to one facial image of acquisition, causing face, it fails to match
The problem of, therefore, in the present embodiment, during camera rotates, multiple images for including partial target face are obtained,
The partial target face is the parts of images in complete object face, it is possible to understand that, which can account for
Half, a quarter of complete object facial image etc., do not limit herein.
Step S420:By it is described multiple include that the image of partial target face synthesizes, obtain the target face figure
Picture simultaneously caches the target facial image.
Further, the image that several are included at least to partial target face synthesizes, as a kind of mode, Ke Yitong
The mode for crossing map overlay carries out image synthesis, specifically, several is included at least the image superposition of partial target image to one
It rises, then by going background, scratching the operations such as figure, masking-out, channel, transparent, translucent, local transparent, to obtain target facial image
And it caches to electronic device.
Step S430:When getting the payment request of the payment application, by the target facial image and in advance
Facial image is deposited to be matched.
Step S440:When the target facial image with it is described prestore facial image successful match when, complete payment.
The method of payment that the application fourth embodiment provides, when detecting that payment application in electronic device starts
When, control camera rotation obtains the image that multiple include partial target face, and the image that multiple include part face is carried out
Synthesis obtains target facial image and caches the target facial image, when getting the payment request of the payment application,
Target facial image is matched with the facial image that prestores, when target facial image and prestore facial image successful match when,
Payment is completed, is stored with acquiring complete facial image in advance by the camera of setting on the electronic device, and in user
Directly facial image is verified after confirming payment, accelerates payment verification speed, promotes user experience.
5th embodiment
Referring to Fig. 9, Fig. 9 shows the module frame chart for the payment mechanism 200 that the 5th embodiment of the application provides.The branch
It pays device 200 and is applied to electronic device, which is provided with rotatable camera, will be directed to frame shown in Fig. 9 below
Figure is illustrated, and the payment mechanism 200 includes:Target facial image acquisition module 210, target facial image matching module
220 and payment module 230, wherein:
Target facial image acquisition module 210 starts for working as the payment application detected in the electronic device
When, it controls the camera rotation and obtains target facial image and cache the target facial image.Referring to Fig. 10, further
Ground, the target facial image acquisition module 210 include:Present preview image acquisition submodule 211, facial image judge submodule
Block 212, complete facial image acquisition submodule 213, towards detection sub-module 214, towards judging submodule 215, target face
Image acquisition submodule 216, partial target facial image acquisition submodule 217 and target facial image synthon module 218,
Wherein:
Present preview image acquisition submodule 211 detects that the payment application in the electronic device opens for working as
When dynamic, present preview image is obtained.
Facial image judging submodule 212, for obtaining the facial image in the present preview image, and described in judgement
Whether facial image is complete facial image.
Complete facial image acquisition submodule 213, for when the facial image is not complete facial image, controlling institute
Camera rotation is stated until getting complete facial image and caching the complete facial image.Further, the whole person
Face image acquisition submodule 213 includes:Position relationship acquiring unit, position relationship computing unit and complete facial image obtain
Unit, wherein:
Position relationship acquiring unit, for when the facial image is not complete facial image, obtaining the face figure
As the position relationship with the present preview image.
Position relationship computing unit, the rotation angle for calculating the camera based on the position relationship and rotation side
To.
Complete facial image acquiring unit, for controlling the camera according to the rotation angle and the direction of rotation
Rotation, until getting the complete facial image and caching the complete facial image.Further, the complete face figure
As acquiring unit includes:First complete facial image obtains subelement and the second complete facial image obtains subelement, wherein:
First complete facial image obtains subelement, for when the facial image is on the left side of the present preview image
When region, controls the camera and rotated towards relative to the left side of the electronic device, until getting the complete facial image
And cache the complete facial image.
Second complete face obtains subelement, for when the facial image is in the right area of the present preview image
When, it controls the camera and is rotated towards relative to the right of the electronic device, until getting the complete facial image and delaying
Deposit the complete facial image.
Towards detection sub-module 214, for when detecting that the payment application of the electronic device starts, detecting institute
State the direction of camera.
Towards judging submodule 215, for judge the camera direction whether with the screen of the electronic device
Towards identical.
Target facial image acquisition submodule 216, direction for direction and the screen when the camera not phase
Meanwhile controlling the camera and turning to position identical with the direction of the screen of the electronic device, obtain the target person
Face image simultaneously caches the target facial image.
Part facial image acquisition submodule 217 detects that the payment application in the electronic device opens for working as
When dynamic, control the camera rotation and obtain the image that multiple include partial target face.
Target facial image synthon module 218, for by it is described multiple include that the image of partial target face closes
At obtaining the target facial image and cache the target facial image.
Target facial image matching module 220, for when getting the payment request of the payment application, by institute
Target facial image is stated to be matched with the facial image that prestores.
Payment module 230, for when the target facial image with it is described prestore facial image successful match when, complete branch
It pays.
Further, the payment mechanism 200 can also include:Prompt message display module 240, wherein:
Prompt message display module 240 can not match for working as the target facial image with the facial image that prestores
When work(, the target facial image of caching, and the prompt message of display authentication failed are deleted.
Sixth embodiment
Please refer to Fig.1 the block diagram for the electronic device 300 that 1, Figure 11 shows that the application sixth embodiment provides.Below by needle
Block diagram shown in Figure 11 is illustrated, the electronic device 300 includes:The camera 310 and circuit 320 of interconnection,
In, circuit 320 includes detection circuit 321, driving circuit 322 and processing circuit 323, wherein:
The camera 320 is for obtaining target facial image;The detection circuit 321 is for detecting electronic device
Whether the payment application in 300 starts, and the driving circuit 322 is used for when the payment application starts, control
The rotation of camera 310 obtains target facial image and caching of target facial image, and the processing circuit 323, which is used to work as, gets institute
When stating the payment request of payment application, target facial image is matched with the facial image that prestores, and in successful match
When, complete payment.
In conclusion a kind of method of payment, device, electronic device and storage medium provided by the embodiments of the present application, when
When detecting that the payment application in electronic device starts, control camera rotation obtains target facial image and caches the mesh
Facial image is marked, when getting the payment request of payment application, target facial image and the facial image that prestores are carried out
Matching, when target facial image and prestore facial image successful match when, payment is completed, with by being arranged on the electronic device
Camera acquires facial image and is stored in advance, and is directly verified to facial image after user confirms payment, accelerates
Payment verification speed promotes user experience.
It should be noted that each embodiment in this specification is described in a progressive manner, each embodiment weight
What point illustrated is all the difference with other embodiments, and the same or similar parts between the embodiments can be referred to each other.
For device class embodiment, since it is basically similar to the method embodiment, so fairly simple, the related place ginseng of description
See the part explanation of embodiment of the method.For arbitrary processing mode described in embodiment of the method, in device reality
It applies in example and no longer can be one by one repeated in device embodiment by corresponding processing modules implement.
Referring to Figure 12, based on above-mentioned method of payment, device, the embodiment of the present application also provides a kind of electronic device
100。
Illustratively, electronic device 100 can be various types of calculating that are mobile or portable and executing wireless communication
Any one of machine system equipment (only illustratively shows a kind of form) in Figure 12.Specifically, electronic device 100 can be with
For mobile phone or smart phone (for example, being based on iPhone TM, the phone based on Android TM), portable gaming device
(such as Nintendo DS TM, PlayStation Portable TM, Gameboy Advance TM, iPhone TM), knee
Laptop, PDA, portable Internet appliance, music player and data storage device, other handheld devices and such as
Wrist-watch, earphone, pendant, earphone etc., electronic device 100 can also be other wearable devices (for example, such as electronic glasses,
Electronics clothes, electronics bracelet, electronics necklace, electronics tatoo, the headset equipment (HMD) of electronic equipment or smartwatch).
Electronic device 100 can also be that any one of multiple electronic equipments, multiple electronic equipments include but not limited to
Cellular phone, smart phone, other wireless telecom equipments, personal digital assistant, audio player, other media players, sound
Happy logger, video recorder, camera, other medium recorders, radio, Medical Devices, vehicle transport instrument, calculator, can
Program remote controler, pager, laptop computer, desktop computer, printer, netbook computer, personal digital assistant
(PDA), portable media player (PMP), Motion Picture Experts Group's (MPEG-1 or MPEG-2) audio layer 3 (MP3) play
Device, portable medical device and digital camera and combinations thereof.
In some cases, electronic device 100 can execute multiple functions and (for example, playing music, show video, storage
Picture and send and receive call).If desired, electronic device 100 can be such as cellular phone, media play
The portable device of device, other handheld devices, watch equipment, pendant equipment, receiver device or other compact portable equipment.
Electronic device 100 as shown in figure 12 include electronic body portion 10, the electronic body portion 10 include shell 12 and
The main display 120 being arranged on the shell 12.Metal can be used in the shell 12, such as steel, aluminium alloy are made.This implementation
In example, the main display 120 generally includes display panel 111, may also comprise and is carried out to the display panel 111 for responding
The circuit etc. of touch control operation.The display panel 111 can be a liquid crystal display panel (Liquid Crystal
Display, LCD), in some embodiments, the display panel 111 is a touch screen 109 simultaneously.
Please refer to Figure 13, in actual application scenarios, the electronic device 100 can be used as intelligent mobile phone terminal into
It exercises and uses, the electronic body portion 10 also typically includes one or more (only showing one in figure) processors in this case
102, memory 104, RF (Radio Frequency, radio frequency) module 106, voicefrequency circuit 110, sensor 114, input module
118, power module 122.It will appreciated by the skilled person that structure shown in Figure 13 is only to illustrate, not to institute
The structure for stating electronic body portion 10 causes to limit.For example, the electronic body portion 10 may also include it is more than shown in Figure 13 or
The less component of person, or with the configuration different from shown in Figure 13.
It will appreciated by the skilled person that for the processor 102, all other component belongs to
It is coupled by multiple Peripheral Interfaces 124 between peripheral hardware, the processor 102 and these peripheral hardwares.The Peripheral Interface 124 can
Based on following standard implementation:Universal Asynchronous Receive/sending device (Universal Asynchronous Receiver/
Transmitter, UART), universal input/output (General Purpose Input Output, GPIO), serial peripheral connect
Mouthful (Serial Peripheral Interface, SPI), internal integrated circuit (Inter-Integrated Circuit,
I2C), but it is not limited to above-mentioned standard.In some instances, the Peripheral Interface 124 can only include bus;In other examples
In, the Peripheral Interface 124 may also include other elements, such as one or more controller, such as connecting the display
The display controller of panel 111 or storage control for connecting memory.In addition, these controllers can also be from described
Detached in Peripheral Interface 124, and be integrated in the processor 102 or corresponding peripheral hardware in.
The memory 104 can be used for storing software program and module, and the processor 102 is stored in institute by operation
The software program and module in memory 104 are stated, to perform various functions application and data processing.The memory
104 may include high speed random access memory, may also include nonvolatile memory, and such as one or more magnetic storage device dodges
It deposits or other non-volatile solid state memories.In some instances, the memory 104 can further comprise relative to institute
The remotely located memory of processor 102 is stated, these remote memories can pass through network connection to the electronic body portion 10
Or the main display 120.The example of above-mentioned network includes but not limited to internet, intranet, LAN, mobile communication
Net and combinations thereof.
The RF modules 106 are used to receive and transmit electromagnetic wave, realize the mutual conversion of electromagnetic wave and electric signal, to
It is communicated with communication network or miscellaneous equipment.The RF modules 106 may include various existing for executing these functions
Circuit element, for example, antenna, RF transceiver, digital signal processor, encryption/deciphering chip, subscriber identity module
(SIM) card, memory etc..The RF modules 106 can be carried out with various networks such as internet, intranet, wireless network
Communication is communicated by wireless network and miscellaneous equipment.Above-mentioned wireless network may include cellular telephone networks, wireless
LAN or Metropolitan Area Network (MAN).Above-mentioned wireless network can use various communication standards, agreement and technology, including but not limited to
Global system for mobile communications (Global System for Mobile Communication, GSM), enhanced mobile communication skill
Art (Enhanced Data GSM Environment, EDGE), Wideband CDMA Technology (wideband code
Division multiple access, W-CDMA), Code Division Multiple Access (Code division access, CDMA), time-division
Multiple access technology (time division multiple access, TDMA), adopting wireless fidelity technology (Wireless, Fidelity,
WiFi) (such as American Institute of Electrical and Electronics Engineers's standard IEEE 802.10A, IEEE 802.11b, IEEE802.11g and/
Or IEEE 802.11n), the networking telephone (Voice over internet protocal, VoIP), worldwide interoperability for microwave accesses
It is (Worldwide Interoperability for Microwave Access, Wi-Max), other for mail, Instant Messenger
Agreement and any other suitable communications protocol of news and short message, or even may include that those are not developed currently yet
Agreement.
Voicefrequency circuit 110, receiver 101, sound jack 103, microphone 105 provide user and the electronic body portion jointly
Audio interface between 10 or described main displays 120.Specifically, the voicefrequency circuit 110 receives from the processor 102
Voice data is converted to electric signal by voice data, by electric signal transmission to the receiver 101.The receiver 101 is by electric signal
Be converted to the sound wave that human ear can be heard.The voicefrequency circuit 110 receives electric signal also from the microphone 105, by electric signal
Voice data is converted to, and gives the processor 102 to be further processed data transmission in network telephony.Audio data can be with
It is obtained from the memory 104 or by the RF modules 106.In addition, audio data can also be stored to the storage
It is sent in device 104 or by the RF modules 106.
The setting of the sensor 114 is in the electronic body portion 10 or in the main display 120, the sensor
114 example includes but is not limited to:Optical sensor, operation sensor, pressure sensor, gravity accelerometer and
Other sensors.Specifically, the sensor 114 may include light sensor 114F, pressure sensor 114G.Wherein, pressure
Sensor 114G can detect the sensor by pressing the pressure generated in electronic device 100.That is, pressure sensor 114G detections
By the pressure of contact or pressing generation between user and electronic device, such as by connecing between the ear and electronic device of user
Touch or press the pressure generated.Therefore, pressure sensor 114G may be used to determine between user and electronic device 100 whether
It is contacted or is pressed and the size of pressure.
Referring to Figure 13, specifically in the embodiment shown in fig. 13, the light sensor 114F and the pressure
Force snesor 114G is arranged adjacent to the display panel 111.The light sensor 114F can have object aobvious close to the master
When display screen 120, such as when the electronic body portion 10 is moved in one's ear, the processor 102 closes display output.As movement
One kind of sensor, gravity accelerometer can detect in all directions the size of (generally three axis) acceleration, when static
Size and the direction that can detect that gravity, can be used to identify 100 posture of the electronic device application (such as horizontal/vertical screen switching,
Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc..In addition, the electronics sheet
Body portion 10 can also configure other sensors such as gyroscope, barometer, hygrometer, thermometer, and details are not described herein,
In the present embodiment, the input module 118 may include being arranged the touch screen on the main display 120
109, the touch screen 109 collect user on it or neighbouring touch operation (for example user is any using finger, stylus etc.
Operation of the suitable object or attachment on the touch screen 109 or near the touch screen 109), and according to presetting
The corresponding attachment device of driven by program.Optionally, the touch screen 109 may include touch detecting apparatus and touch controller.
Wherein, the touch orientation of the touch detecting apparatus detection user, and the signal that touch operation is brought is detected, it transmits a signal to
The touch controller;The touch controller receives touch information from the touch detecting apparatus, and by the touch information
It is converted into contact coordinate, then gives the processor 102, and order that the processor 102 is sent can be received and executed.
Furthermore, it is possible to realize touching for the touch screen 109 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves
Touch detection function.In addition to the touch screen 109, in other change embodiments, the input module 118 can also include it
Its input equipment, such as button 107.The button 107 for example may include the character keys for inputting character, and for triggering
The control button of control function.The example of the control button includes " returning to main screen " button, on/off button etc..
The information and the electronics that the main display 120 is used to show information input by user, is supplied to user
The various graphical user interface of body part 10, these graphical user interface can by figure, text, icon, number, video and its
Arbitrary to combine to constitute, in an example, the touch screen 109 may be disposed on the display panel 111 thus with described
Display panel 111 constitutes an entirety.
The power module 122 is used to provide supply of electric power to the processor 102 and other each components.Specifically,
The power module 122 may include power-supply management system, one or more power supply (such as battery or alternating current), charging circuit,
Power-fail detection circuit, inverter, indicator of the power supply status and it is other arbitrarily with the electronic body portion 10 or the master
The generation, management of electric power and the relevant component of distribution in display screen 120.
The electronic device 100 further includes locator 119, and the locator 119 is for determining 100 institute of the electronic device
The physical location at place.In the present embodiment, the locator 119 realizes the positioning of the electronic device 100 using positioning service,
The positioning service, it should be understood that the location information of the electronic device 100 is obtained by specific location technology (as passed through
Latitude coordinate), it is marked on the electronic map by the technology of the position of positioning object or service.
It should be understood that above-mentioned electronic device 100 is not limited to intelligent mobile phone terminal, should refer to can move
The computer equipment used in dynamic.Specifically, electronic device 100, refers to the mobile computer for being equipped with intelligent operating system
Equipment, electronic device 100 include but not limited to smart mobile phone, smartwatch, tablet computer, etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is contained at least one embodiment or example of the application.In the present specification, schematic expression of the above terms are not
It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office
It can be combined in any suitable manner in one or more embodiments or example.In addition, without conflicting with each other, the skill of this field
Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples
It closes and combines.
In addition, term " first ", " second " are used for description purposes only, it is not understood to indicate or imply relative importance
Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or
Implicitly include at least one this feature.In the description of the present application, the meaning of " plurality " is at least two, such as two, three
It is a etc., unless otherwise specifically defined.
Any process or the method description described in other ways in flow chart or herein is construed as, and expression includes
It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the application includes other realization, wherein can not press shown or discuss suitable
Sequence, include according to involved function by it is basic simultaneously in the way of or in the opposite order, to execute function, this should be by the application
Embodiment person of ordinary skill in the field understood.
The logic and/or step for indicating or describing in other ways herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
(system of such as computer based system including processor other can be held from instruction for instruction execution system, device or equipment
The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicating, propagating or passing
Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment
It sets.The more specific example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring
Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other suitable
Medium, because can be for example by carrying out optical scanner to paper or other media, then into edlin, interpretation or when necessary with it
Its suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the application can be realized with hardware, software, firmware or combination thereof.Above-mentioned
In embodiment, software that multiple steps or method can in memory and by suitable instruction execution system be executed with storage
Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware
Any one of row technology or their combination are realized:With the logic gates for realizing logic function to data-signal
Discrete logic, with suitable combinational logic gate circuit application-specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that realize all or part of step that above-described embodiment method carries
Suddenly it is that relevant hardware can be instructed to complete by program, the program can be stored in a kind of computer-readable storage medium
In matter, which includes the steps that one or a combination set of embodiment of the method when being executed.In addition, in each embodiment of the application
In each functional unit can be integrated in a processing module, can also be that each unit physically exists alone, can also two
A or more than two units are integrated in a module.The form that hardware had both may be used in above-mentioned integrated module is realized, also may be used
It is realized in the form of using software function module.If the integrated module realized in the form of software function module and as
Independent product sale in use, can also be stored in a computer read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above
Embodiments herein is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as the limit to the application
System, those skilled in the art can be changed above-described embodiment, change, replace and become within the scope of application
Type.
Finally it should be noted that:Above example is only to illustrate the technical solution of the application, rather than its limitations;Although
The application is described in detail with reference to the foregoing embodiments, those skilled in the art are when understanding:It still can be with
Technical scheme described in the above embodiments is modified or equivalent replacement of some of the technical features;And
These modifications or replacements, do not drive corresponding technical solution essence be detached from each embodiment technical solution of the application spirit and
Range.
Claims (11)
1. a kind of method of payment, which is characterized in that be applied to electronic device, the electronic device is provided with rotatable camera shooting
Head, the method includes:
When detecting that the payment application in the electronic device starts, controls the camera rotation and obtain target face
Image simultaneously caches the target facial image;
When getting the payment request of the payment application, the target facial image and the facial image that prestores are carried out
Matching;
When the target facial image with it is described prestore facial image successful match when, complete payment.
2. according to the method described in claim 1, it is characterized in that, described work as the payment application detected in the electronic device
When program starts, controls the camera rotation and obtain target facial image and cache the target facial image, including:
When detecting that the payment application in the electronic device starts, present preview image is obtained;
The facial image in the present preview image is obtained, and judges whether the facial image is complete facial image;
When the facial image is not complete facial image, the camera rotation is controlled until getting complete facial image
And cache the complete facial image.
3. according to the method described in claim 2, it is characterized in that, described when the facial image is not complete facial image
When, camera rotation is controlled until getting complete facial image and cache the complete facial image, including:
When the facial image is not complete facial image, the position of the facial image and the present preview image is obtained
Relationship;
Rotation angle and the direction of rotation of the camera are calculated based on the position relationship;
The camera is controlled according to the rotation angle and the direction of rotation to rotate, until getting the complete face figure
Picture simultaneously caches the complete facial image.
4. according to the method described in claim 3, it is characterized in that, described control according to the rotation angle and the direction of rotation
Camera rotation is made, until getting the complete facial image and cache the complete facial image, including:
When left area of the facial image in the present preview image, the camera is controlled towards the relatively described electronics
The left side of device rotates, until getting the complete facial image and caching the complete facial image;Or
When the facial image is in the right area of the present preview image, the camera is controlled towards the relatively described electronics
The right of device rotates, until getting the complete facial image and caching the complete facial image.
5. according to the method described in claim 1, it is characterized in that, described when the payment application journey for detecting the electronic device
When sequence starts, controls the camera rotation and obtain target facial image and cache the target facial image, including:
When detecting that the payment application of the electronic device starts, the direction of the camera is detected;
Judge whether the direction of the camera is identical as the direction of the screen of the electronic device;
When the direction of the camera and the direction of the screen differ, controls the camera and turn to and the electronics
The identical position of direction of the screen of device obtains the target facial image and caches the target facial image.
6. according to the method described in claim 1, it is characterized in that, the method, further includes:
When the target facial image matches unsuccessful with the facial image that prestores, the target face figure of caching is deleted
Picture, and show the prompt message of authentication failed.
7. according to the method described in claim 1, it is characterized in that, described work as the payment application detected in the electronic device
When program starts, controls the camera rotation and obtain target facial image and cache the target facial image, including:
When detecting that the payment application in the electronic device starts, controlling the camera rotation acquisition, multiple include
The image of partial target face;
By it is described multiple include that the image of partial target face synthesizes, obtain the target facial image and cache the mesh
Mark facial image.
8. a kind of payment mechanism, which is characterized in that be applied to electronic device, the electronic device is provided with rotatable camera shooting
Head, described device include:
Target facial image acquisition module, for when detecting that the payment application in the electronic device starts, controlling
The camera rotation obtains target facial image and caches the target facial image;
Target facial image matching module, for when getting the payment request of the payment application, by the target
Facial image is matched with the facial image that prestores;
Payment module, for when the target facial image with it is described prestore facial image successful match when, complete payment.
9. a kind of electronic device, which is characterized in that including touch screen, memory and processor, the touch screen is deposited with described
Reservoir is couple to the processor, the memory store instruction, the when executed by the processor processing
Device executes such as claim 1-7 any one of them methods.
10. a kind of computer read/write memory medium for the program code that can perform with processor, which is characterized in that the journey
Sequence code makes the processor execute such as claim 1-7 any one of them methods.
11. a kind of electronic device, which is characterized in that including:
Rotatable camera, the camera is for obtaining target facial image;
Circuit is connect with the camera, and the circuit includes detection circuit, driving circuit and processing circuit, the detection
Whether payment application of the circuit in detecting electronic device starts, and the driving circuit in the payment for answering
When being started with program, control camera rotation obtains target facial image and caching of target facial image, and the processing circuit is used
In when getting the payment request of the payment application, target facial image is matched with the facial image that prestores,
And in successful match, payment is completed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810475466.5A CN108734472A (en) | 2018-05-17 | 2018-05-17 | Method of payment, device, electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810475466.5A CN108734472A (en) | 2018-05-17 | 2018-05-17 | Method of payment, device, electronic device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108734472A true CN108734472A (en) | 2018-11-02 |
Family
ID=63938587
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810475466.5A Pending CN108734472A (en) | 2018-05-17 | 2018-05-17 | Method of payment, device, electronic device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108734472A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109903474A (en) * | 2019-01-17 | 2019-06-18 | 平安科技(深圳)有限公司 | A kind of intelligence based on recognition of face opens cabinet method and device |
CN110460772A (en) * | 2019-08-14 | 2019-11-15 | 广州织点智能科技有限公司 | Camera Automatic adjustment method, device, equipment and storage medium |
CN110533015A (en) * | 2019-08-30 | 2019-12-03 | Oppo广东移动通信有限公司 | Verification method and verifying device, electronic equipment, computer readable storage medium |
CN110826435A (en) * | 2019-10-23 | 2020-02-21 | 上海能塔智能科技有限公司 | Method and device for identifying and verifying face in driving, vehicle-mounted equipment and storage medium |
CN111027982A (en) * | 2019-12-26 | 2020-04-17 | 北京意锐新创科技有限公司 | Non-inductive payment method and device suitable for full-screen |
CN111405175A (en) * | 2020-03-03 | 2020-07-10 | 腾讯科技(深圳)有限公司 | Camera control method and device, computer equipment and storage medium |
CN111757084A (en) * | 2020-07-30 | 2020-10-09 | 北京博清科技有限公司 | Acquisition method and acquisition device for three-dimensional image and readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103475849A (en) * | 2013-09-22 | 2013-12-25 | 广东欧珀移动通信有限公司 | Method and device for adjusting shooting angle of camera during video call |
CN105049686A (en) * | 2015-06-30 | 2015-11-11 | 广东欧珀移动通信有限公司 | Double-camera mobile terminal |
CN106060398A (en) * | 2016-06-30 | 2016-10-26 | 维沃移动通信有限公司 | Method for automatically adjusting camera and mobile terminal |
CN107657222A (en) * | 2017-09-12 | 2018-02-02 | 广东欧珀移动通信有限公司 | Face identification method and Related product |
CN107682634A (en) * | 2017-10-18 | 2018-02-09 | 维沃移动通信有限公司 | A kind of facial image acquisition methods and mobile terminal |
-
2018
- 2018-05-17 CN CN201810475466.5A patent/CN108734472A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103475849A (en) * | 2013-09-22 | 2013-12-25 | 广东欧珀移动通信有限公司 | Method and device for adjusting shooting angle of camera during video call |
CN105049686A (en) * | 2015-06-30 | 2015-11-11 | 广东欧珀移动通信有限公司 | Double-camera mobile terminal |
CN106060398A (en) * | 2016-06-30 | 2016-10-26 | 维沃移动通信有限公司 | Method for automatically adjusting camera and mobile terminal |
CN107657222A (en) * | 2017-09-12 | 2018-02-02 | 广东欧珀移动通信有限公司 | Face identification method and Related product |
CN107682634A (en) * | 2017-10-18 | 2018-02-09 | 维沃移动通信有限公司 | A kind of facial image acquisition methods and mobile terminal |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109903474A (en) * | 2019-01-17 | 2019-06-18 | 平安科技(深圳)有限公司 | A kind of intelligence based on recognition of face opens cabinet method and device |
CN110460772A (en) * | 2019-08-14 | 2019-11-15 | 广州织点智能科技有限公司 | Camera Automatic adjustment method, device, equipment and storage medium |
CN110533015A (en) * | 2019-08-30 | 2019-12-03 | Oppo广东移动通信有限公司 | Verification method and verifying device, electronic equipment, computer readable storage medium |
CN110826435A (en) * | 2019-10-23 | 2020-02-21 | 上海能塔智能科技有限公司 | Method and device for identifying and verifying face in driving, vehicle-mounted equipment and storage medium |
CN111027982A (en) * | 2019-12-26 | 2020-04-17 | 北京意锐新创科技有限公司 | Non-inductive payment method and device suitable for full-screen |
CN111405175A (en) * | 2020-03-03 | 2020-07-10 | 腾讯科技(深圳)有限公司 | Camera control method and device, computer equipment and storage medium |
CN111405175B (en) * | 2020-03-03 | 2023-09-15 | 腾讯科技(深圳)有限公司 | Camera control method, device, computer equipment and storage medium |
CN111757084A (en) * | 2020-07-30 | 2020-10-09 | 北京博清科技有限公司 | Acquisition method and acquisition device for three-dimensional image and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108769514A (en) | Camera control method, device, electronic device and storage medium | |
CN108734472A (en) | Method of payment, device, electronic device and storage medium | |
CN108401124B (en) | Video recording method and device | |
CN108495045B (en) | Image capturing method, image capturing apparatus, electronic apparatus, and storage medium | |
CN110674022A (en) | Behavior data acquisition method and device and storage medium | |
CN108391058A (en) | Image capturing method, device, electronic device and storage medium | |
CN109922356B (en) | Video recommendation method and device and computer-readable storage medium | |
CN111061405B (en) | Method, device and equipment for recording song audio and storage medium | |
CN108712602A (en) | Camera control method, device, mobile terminal and storage medium | |
CN109120841A (en) | Camera control method, device, mobile terminal and storage medium | |
CN108255674A (en) | multi-process browser process log collecting method, device and mobile terminal | |
CN109189362A (en) | Sounding control method, device, electronic equipment and storage medium | |
CN109085985A (en) | Sounding control method, device, electronic device and storage medium | |
CN109086023A (en) | Sounding control method, device, electronic equipment and storage medium | |
CN110263525B (en) | Equipment configuration method and device | |
CN110290191B (en) | Resource transfer result processing method, device, server, terminal and storage medium | |
CN110286839B (en) | Message sending method, device, terminal and storage medium | |
CN109062533A (en) | Sounding control method, device, electronic device and storage medium | |
CN111881423A (en) | Method, device and system for limiting function use authorization | |
CN110134902A (en) | Data information generation method, device and storage medium | |
CN109062534A (en) | Sounding control method, device, electronic device and storage medium | |
CN108958578A (en) | Document control method, apparatus and electronic device | |
CN109144459A (en) | Sounding control method, device, electronic device and storage medium | |
CN110971692B (en) | Method and device for opening service and computer storage medium | |
CN111158780B (en) | Method, device, electronic equipment and medium for storing application data |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181102 |