Disclosure of Invention
The present application aims to solve at least one of the technical problems in the related art to some extent.
Therefore, the application aims to provide a synchronous acquisition method, a device, an electronic device and a readable medium for contact finger images and true values of finger states, which can synchronously acquire a non-contact image sequence of a finger while acquiring the contact finger images by using a mobile phone sensor, and acquire true value data of the finger states according to the non-contact image sequence, so as to be used for optimizing a finger state measurement technology based on the contact images.
In order to achieve the above objective, an embodiment of a first aspect of the present application provides a method for synchronously collecting a contact finger image and a true value of a finger state, including:
Collecting contact finger images through a first device with a fingerprint or a touch sensor, and synchronously collecting a non-contact image sequence of the finger based on a specular reflection principle or an additional second device with a shooting function;
using a plurality of visual algorithms, and calculating to obtain truth value data of the finger state according to the non-contact acquired finger image sequence;
And optimizing the contact type finger state measurement technology according to the true value data of the finger state.
Optionally, the capturing a contact finger image by the first device with a fingerprint or a touch sensor and synchronously capturing a non-contact image sequence of the finger based on a specular reflection principle includes:
placing the first device front side up on a desktop or otherwise securing a position;
fixing a reflector on an upper area of the front surface of the first device, wherein the mirror surface of the reflector is opposite to the screen of the first device;
When a user places a finger on a fingerprint or a touch sensor of the first device to collect contact finger images, a front camera of the first device is used to synchronously collect a non-contact image sequence of the finger through reflection of a mirror surface.
Optionally, the capturing a contact finger image by a device with a fingerprint or a touch sensor and synchronously capturing a non-contact image sequence of the finger based on an additional second device with a shooting function includes:
placing the first device front side up on a desktop or otherwise securing a position;
fixing the second device to an upper region of the front face of the first device;
And when the user places the finger on the fingerprint or the touch sensor of the first device and collects the contact finger image, synchronously collecting a non-contact image sequence of the finger by using the second device.
Optionally, the method further comprises:
when a non-contact image sequence of the finger is acquired, a supplementary light source is used for auxiliary illumination according to actual conditions.
Optionally, the truth data of the finger state includes a finger position, a three-dimensional gesture, a force, and other data associated with information contained in the contact finger image, where the three-dimensional gesture of the finger refers to a three-dimensional gesture of the first finger segment of the finger.
Optionally, the calculating, using a plurality of visual algorithms, the truth value data of the finger state according to the non-contact collected finger image sequence includes:
Constructing a visual recognition model by using a deep learning method, and recognizing the finger position of the finger;
and according to the spatial position relation and the parameters of the camera, resolving to obtain the three-dimensional gesture of the finger.
And estimating the force of the finger according to the morphological change condition of the finger nail cover by using a deep learning method.
Optionally, the contact finger state measurement technique includes:
the three-dimensional gesture, force and finger position of the finger are measured from the contact finger image by a deep learning method.
In order to achieve the above object, an embodiment of a second aspect of the present application provides a synchronous acquisition device for a contact finger image and a true value of a finger state, including:
the acquisition module is used for acquiring contact finger images through a first device with a fingerprint or a touch sensor and synchronously acquiring a non-contact image sequence of the finger based on a specular reflection principle or an additional second device with a shooting function;
The calculation module is used for calculating true value data of the finger state according to the non-contact acquired finger image sequence by using various visual algorithms;
And the optimizing module is used for optimizing the contact type finger state measuring technology according to the true value data of the finger state.
To achieve the above object, an embodiment of a third aspect of the present application provides an electronic device, including a processor, and a memory communicatively connected to the processor;
The memory stores computer-executable instructions;
the processor executes computer-executable instructions stored by the memory to implement the method of any one of the first aspects above.
To achieve the above object, an embodiment of a fourth aspect of the present application proposes a computer-readable storage medium having stored therein computer-executable instructions for implementing the method according to any of the above first aspects when being executed by a processor.
The technical scheme provided by the embodiment of the application at least has the following beneficial effects:
Through proposing two types of acquisition schemes, namely through the equipment with shooting function based on the principle of specular reflection or additionally, in the process that a user acquires contact finger images by using a contact sensor (comprising a fingerprint sensor and a touch sensor) of consumer electronic equipment such as a mobile phone, a tablet computer, a smart watch and the like, synchronously and non-contact acquisition of an image sequence of a finger (which can comprise an adjacent hand area) can be realized, various truth value data of the finger state can be further obtained from the non-contact image through a visual algorithm, and the contact finger state measurement technology is optimized by utilizing the truth value data.
Additional aspects and advantages of the application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the application.
Detailed Description
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative and intended to explain the present application and should not be construed as limiting the application.
The following describes a method and a device for synchronously acquiring a contact finger image and a true finger state value according to an embodiment of the present application with reference to the accompanying drawings.
Fig. 1 is a flowchart of a method for synchronously collecting a contact finger image and a true value of a finger state according to an embodiment of the present application, as shown in fig. 1, the method includes the following steps:
Step 101, acquiring a contact finger image by a first device with a fingerprint or a touch sensor, and synchronously acquiring a non-contact image sequence of the finger based on a specular reflection principle or an additional second device with a shooting function.
The prior art has the technical problems that the current mainstream technology for collecting the true value of the finger state, such as the optical tracking technology, is very complex, and requires expensive equipment and complicated operation procedures. This technique is difficult to use to collect the current user's finger state truth data and thus difficult to use for personalized fine-tuning of pre-trained deep networks.
Therefore, in order to solve the above problems, the present application proposes two types of acquisition schemes, that is, acquiring a non-contact image sequence of a finger based on a specular reflection principle or an additional device with a photographing function, and then calculating true value data of the finger state by using various visual algorithms.
In the embodiment of the application, the first device may be a consumer electronic device such as a mobile phone, a tablet computer, a smart watch and the like including a fingerprint sensor or a touch sensor, and the second device may be a mobile phone, a camera, a smart glasses, other wearable devices and the like having a shooting function, which is not limited in the application.
In a possible embodiment, a schematic diagram of acquiring finger data using specular reflection is shown in fig. 2, and a schematic diagram of acquiring finger data using an additional photographing device is shown in fig. 3. In this embodiment, the first device is a mobile phone with a fingerprint sensor or a touch sensor, and the second device is a mobile phone with a photographing function or other photographing devices.
FIG. 4 is a flow chart illustrating the collection of finger data using specular reflection, including:
in step 201, the first device is placed on a desktop face up or otherwise fixed in position.
If the first device is a mobile phone with a fingerprint sensor or a touch sensor, as shown in fig. 2, the mobile phone is placed on a desktop with its front side facing upwards, or the position is fixed in other ways.
It will be appreciated that there are a number of ways to fix the position of the handset, and the application is not limited in this regard.
And 202, fixing a reflector on an upper area of the front surface of the first device, wherein the mirror surface of the reflector is opposite to the screen of the first device.
As shown in fig. 2, the mirror is fixed to the upper area of the front of the mobile phone, with the mirror facing the screen of the mobile phone.
It will be appreciated that there are a number of ways to fix the position of the mirror, and the application is not limited in this regard.
In one possible embodiment, a special bracket may be used to secure the mirror to the upper region of the front of the handset.
Step 203, when a user places a finger on a fingerprint or a touch sensor of a first device to collect a contact finger image, a front camera of the first device is used to synchronously collect a non-contact image sequence of the finger through reflection of a mirror surface.
As shown in fig. 2, when a user places a finger on a fingerprint or a touch sensor of a mobile phone to collect images of the finger in contact, a front camera of the same mobile phone can be used to synchronously collect a non-contact image sequence of the finger through reflection of a mirror surface.
That is, the front camera of the same mobile phone is used to synchronously acquire a non-contact image sequence of the finger while the mobile phone sensor is used to acquire the contact finger image.
Fig. 5 is a flowchart illustrating the acquisition of finger data using an additional photographing apparatus according to an embodiment of the present application, including:
Step 301, placing the first device face up on a desktop or otherwise performing a position fix.
Similar to the above procedure, the handset is placed face up on a desktop or otherwise fixed in position.
It will be appreciated that there are a number of ways to fix the position of the handset, and the application is not limited in this regard.
Step 302, fixing the second device on the upper area of the front surface of the first device.
It will be appreciated that there are various ways of fixing the position of a device having a photographing function, and the present application is not limited thereto.
In one possible embodiment, another mobile phone or other photographing device with photographing function is fixed on the upper area of the front surface of the mobile phone by using a special bracket.
Step 303, when a user places a finger on a fingerprint or a touch sensor of a first device to collect images of the finger in contact, a non-contact image sequence of the finger is synchronously collected by using a second device.
As shown in fig. 3, when a user places a finger on a fingerprint or a touch sensor of a mobile phone to collect images of the finger in contact, a front camera of another mobile phone or other photographing devices can be used to synchronously collect a non-contact image sequence of the finger.
That is, while the contact finger image is acquired using the cell phone sensor, a non-contact image sequence of the finger is synchronously acquired using a front camera of another cell phone or other photographing device.
In addition, for the methods shown in fig. 4 and 5, in order to achieve better image capturing quality, a supplementary light source may be used to perform auxiliary illumination when acquiring a non-contact image sequence of a finger according to actual situations.
Step 102, calculating to obtain truth value data of the finger state according to the non-contact acquired finger image sequence by using a plurality of visual algorithms.
In the embodiment of the application, the truth value data of the finger state includes the finger position (such as the index finger of the right hand), the three-dimensional gesture, the force (normal force and shearing force) and other data related to the information contained in the contact finger image, wherein the three-dimensional gesture of the finger refers to the three-dimensional gesture of the first finger segment of the finger.
It can be appreciated that using reasonable visual algorithms, the truth data (or data very close to the truth) of the finger state can be derived from the image sequence of the finger. In the application, the adopted visual algorithm is not particularly limited, namely any visual algorithm capable of realizing calculation and acquisition of the true value data of the finger state can be adopted.
The following list of several algorithm schemes that can be referred to, but not as a limitation of the application, is as follows:
(1) And constructing a visual recognition model by using a deep learning method, and recognizing the finger position of the finger. Or when the fingerprint is acquired, the distinction is realized by designating the acquired finger position.
As one possible implementation, the position and identity of the finger (e.g., right index finger) may be automatically identified by training a deep learning model. This may be achieved by Convolutional Neural Networks (CNNs) or other deep learning architecture.
Or when the fingerprint is acquired, the distinction is realized by designating the acquired finger position. For example, the user may designate in advance which finger is placed on the sensor, thereby achieving differentiation.
(2) And according to the spatial position relation and the parameters of the camera, resolving to obtain the three-dimensional gesture of the finger.
As one possible implementation, the pose of the finger in three-dimensional space is calculated by multi-view geometric reconstruction techniques using spatial geometry and camera parameters (e.g., focal length, pixel size, etc.). This may be achieved by structured light, stereoscopic or multi-view geometry methods.
(3) And estimating the force of the finger according to the morphological change condition of the finger nail cover by using a deep learning method.
As one possible implementation, the morphology change of the finger nail cover is analyzed through a deep learning model, and the forces (including normal force and shear force) to which the finger is subjected are estimated. Such a method may be based on convolutional neural networks or other deep learning models, through training to identify changes in force.
In the embodiment of the application, more accurate data synchronization can be further realized by using methods such as interpolation and the like for the collected contact finger image and finger state truth value data. And (3) designing reasonable data storage and presentation formats according to actual requirements, and storing the contact finger image and the finger state truth value data, so that the follow-up use of the data is convenient.
In addition, in order to improve the accuracy and convenience of acquisition, an intuitive user interface and interaction flow can be designed to guide a user to accurately perform operations such as finger placement. The acquisition system can be designed to calculate the true value of the finger state in real time, so as to provide real-time feedback, such as acquisition state prompt, image acquisition quality prompt and the like, and help the user to know the state of the current operation.
And 103, optimizing the contact type finger state measurement technology according to the true value data of the finger state.
Finally, the truth value data of the finger state obtained through the steps are used for optimizing the contact finger state measurement technology.
It should be noted that the touch finger state measurement technique referred to herein includes, but is not limited to, measuring three-dimensional gestures, forces, finger positions, and the like of a finger from a fingerprint or a touch image by a deep learning method.
In order to realize the embodiment, the application also provides a synchronous acquisition device for the contact finger image and the true finger state.
Fig. 6 is a block diagram of a synchronous acquisition device 10 for contact finger images and finger state truth values, according to an embodiment of the present application, comprising:
The acquisition module 100 is used for acquiring contact finger images through a first device with a fingerprint or a touch sensor and synchronously acquiring a non-contact image sequence of the finger based on a specular reflection principle or an additional second device with a shooting function;
The calculating module 200 is configured to calculate, according to the non-contact collected finger image sequence, true value data of the finger state by using multiple visual algorithms;
The optimizing module 300 is configured to optimize the contact finger state measurement technique according to the truth value data of the finger state.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
In order to realize the embodiment, the application also provides electronic equipment, which comprises a processor and a memory in communication connection with the processor, wherein the memory stores computer-executable instructions, and the processor executes the computer-executable instructions stored in the memory so as to realize the method for executing the embodiment.
In order to implement the above-described embodiments, the present application also proposes a computer-readable storage medium having stored therein computer-executable instructions that, when executed by a processor, are adapted to implement the methods provided by the foregoing embodiments.
In the foregoing description of embodiments, reference has been made to the terms "one embodiment," "some embodiments," "example," "a particular example," or "some examples," etc., meaning that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present application, the meaning of "plurality" means at least two, for example, two, three, etc., unless specifically defined otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and additional implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order from that shown or discussed, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present application.
Logic and/or steps represented in the flowcharts or otherwise described herein, e.g., a ordered listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include an electrical connection (an electronic device) having one or more wires, a portable computer diskette (a magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). In addition, the computer readable medium may even be paper or other suitable medium on which the program is printed, as the program may be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory.
It is to be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. If implemented in hardware as in another embodiment, may be implemented using any one or combination of techniques known in the art, discrete logic circuits with logic gates for implementing logic functions on data signals, application specific integrated circuits with appropriate combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), etc.
Those of ordinary skill in the art will appreciate that all or a portion of the steps carried out in the method of the above-described embodiments may be implemented by a program to instruct related hardware, where the program may be stored in a computer readable storage medium, and where the program, when executed, includes one or a combination of the steps of the method embodiments.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules may also be stored in a computer readable storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product.
The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, or the like. While embodiments of the present application have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the application, and that variations, modifications, alternatives and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the application.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present application may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present application are achieved, and the present application is not limited herein.
The above embodiments do not limit the scope of the present application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application should be included in the scope of the present application.