CN112764659B - Information processing method and device, electronic device and storage medium - Google Patents

Information processing method and device, electronic device and storage medium Download PDF

Info

Publication number
CN112764659B
CN112764659B CN202110110969.4A CN202110110969A CN112764659B CN 112764659 B CN112764659 B CN 112764659B CN 202110110969 A CN202110110969 A CN 202110110969A CN 112764659 B CN112764659 B CN 112764659B
Authority
CN
China
Prior art keywords
area
image
preset
fingerprint
scanning
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110110969.4A
Other languages
Chinese (zh)
Other versions
CN112764659A (en
Inventor
彭聪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202110110969.4A priority Critical patent/CN112764659B/en
Publication of CN112764659A publication Critical patent/CN112764659A/en
Application granted granted Critical
Publication of CN112764659B publication Critical patent/CN112764659B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/12Fingerprints or palmprints
    • G06V40/13Sensors therefor
    • G06V40/1318Sensors therefor using electro-optical elements or layers, e.g. electroluminescent sensing

Abstract

The disclosure relates to an information processing method and apparatus, an electronic device, and a storage medium. The method is applied to the electronic equipment comprising the ambient light sensor and the display screen, and comprises the following steps: determining the ambient light brightness collected by the light sensor; if the ambient light brightness is larger than a preset brightness threshold, determining whether a first area acted by touch operation is at least a local area of a preset fingerprint scanning area when the touch operation is detected at a first moment; if the first area is at least a partial area of the preset fingerprint scanning area, scanning the preset fingerprint area to obtain a first image; when the touch operation is not detected at a second moment after the first moment, scanning the preset fingerprint scanning area to obtain a second image; and obtaining a fingerprint image for fingerprint identification according to the image difference between the first image and the second image. By the method, the fingerprint identification rate can be improved.

Description

Information processing method and device, electronic device and storage medium
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to an information processing method and apparatus, an electronic device, and a storage medium.
Background
Fingerprint identification technology is widely applied to terminal equipment. For example, a mobile phone, a tablet computer, a notebook computer, etc. can support fingerprint identification. Fingerprint identification technology mainly comprises capacitive fingerprint identification, optical fingerprint identification, ultrasonic fingerprint identification and the like.
The optical fingerprint identification is applied to the terminal equipment, and the fingerprint can be scanned through the screen without additionally arranging an identification area through holes, so that the attractiveness of the terminal electronic equipment is greatly improved. However, how to increase the recognition rate of optical fingerprint recognition is an urgent problem to be solved.
Disclosure of Invention
The disclosure provides an information processing method and apparatus, an electronic device, and a storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided an information processing method applied in an electronic device including a light sensor and a display screen, the method including:
determining the ambient light brightness collected by the light sensor;
if the ambient light brightness is larger than a preset brightness threshold, determining whether a first area acted by touch operation is at least a local area of a preset fingerprint scanning area when the touch operation is detected at a first moment;
if the first area is at least a partial area of the preset fingerprint scanning area, scanning the preset fingerprint area to obtain a first image; when the touch operation is not detected at a second moment after the first moment, scanning the preset fingerprint scanning area to obtain a second image;
and obtaining a fingerprint image for fingerprint identification according to the image difference between the first image and the second image.
Optionally, if the first area is at least a partial area of the preset fingerprint scanning area, scanning the preset fingerprint area to obtain a first image, including:
if the first area is a local area of the preset fingerprint scanning area, determining a second area, except the first area, in the preset fingerprint scanning area;
emitting light rays in the first area by using the display screen, and maintaining the display screen in the second area in a turned-off state;
and performing fingerprint scanning based on the light to obtain the first image.
Optionally, the obtaining a fingerprint image for fingerprint identification according to an image difference between the first image and the second image includes:
determining a target pixel point of which the pixel value difference of pixel points at the same position is smaller than a preset pixel difference threshold value in the first image and the second image;
in the first image, setting the pixel value of the target pixel point as the background color in the first image to obtain the fingerprint image; and the background color is the color of an area except the image area corresponding to the preset fingerprint scanning area in the first image.
Optionally, the method further includes:
if the ambient light brightness is smaller than the preset brightness threshold, determining the first image as the fingerprint image; or the like, or, alternatively,
and if the first area acted by the touch operation is the whole area of the preset fingerprint scanning area, determining the first image as the fingerprint image.
Optionally, the method further includes:
determining whether the area of the first region is larger than a preset area threshold value;
the scanning of the preset fingerprint area to obtain a first image comprises:
and if the area of the first area is larger than the preset area threshold value, scanning the preset fingerprint area to obtain the first image.
Optionally, the method further includes:
determining a touch duration of the touch operation;
determining whether the touch duration is greater than a preset duration threshold;
the scanning of the preset fingerprint area to obtain a first image comprises:
and if the touch duration is greater than the preset duration threshold, scanning the preset fingerprint area to obtain the first image.
According to a second aspect of the embodiments of the present disclosure, there is provided an information processing apparatus applied to an electronic device including a light sensor and a display screen, the apparatus including:
the first determination module is configured to determine the ambient light brightness collected by the light sensor;
the second determining module is configured to determine whether a first area acted by the touch operation is at least a local area of a preset fingerprint scanning area when the touch operation is detected at a first moment if the ambient light brightness is greater than a preset brightness threshold;
the scanning module is configured to scan the preset fingerprint area to obtain a first image if the first area is at least a partial area of the preset fingerprint scanning area; when the touch operation is not detected at a second moment after the first moment, scanning the preset fingerprint scanning area to obtain a second image;
and the obtaining module is configured to obtain a fingerprint image of fingerprint identification according to the image difference between the first image and the second image.
Optionally, the scanning module is specifically configured to determine a second area, excluding the first area, in the preset fingerprint scanning area if the first area is a local area of the preset fingerprint scanning area; emitting light rays in the first area by using the display screen, and maintaining the display screen in the second area in a turned-off state; and performing fingerprint scanning based on the light to obtain the first image.
Optionally, the obtaining module is specifically configured to determine a target pixel point in the first image and the second image, where a difference between pixel values of pixel points at the same position is smaller than a preset pixel difference threshold; in the first image, setting the pixel value of the target pixel point as the background color in the first image to obtain the fingerprint image; and the background color is the color of an area except the image area corresponding to the preset fingerprint scanning area in the first image.
Optionally, the apparatus further comprises:
a third determining module configured to determine the first image as the fingerprint image if the ambient light brightness is less than the preset brightness threshold; or if the first area acted by the touch operation is the whole area of the preset fingerprint scanning area, determining the first image as the fingerprint image.
Optionally, the apparatus further comprises:
a fourth determination module configured to determine whether an area of the first region is greater than a preset area threshold;
the scanning module is specifically configured to scan the preset fingerprint area to obtain the first image if the area of the first area is larger than the preset area threshold.
Optionally, the apparatus further comprises:
a fifth determining module configured to determine a touch duration of the touch operation; determining whether the touch duration is greater than a preset duration threshold;
the scanning module is specifically configured to scan the preset fingerprint area to obtain the first image if the touch duration is greater than the preset duration threshold.
According to a third aspect of an embodiment of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the information processing method as described in the first aspect above.
According to a fourth aspect of an embodiment of the present disclosure, there is provided a storage medium including:
the instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the information processing method as described in the above first aspect.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the embodiment of the disclosure, if the ambient light brightness is greater than the preset brightness threshold, after the touch operation is detected at the first moment, the preset fingerprint scanning area is scanned to obtain the first image, and after the touch operation is not detected at the second moment, the preset fingerprint scanning area is scanned to obtain the second image, so that the electronic equipment can reduce the influence of the ambient light brightness as much as possible according to the image difference between the first image and the second image, and the fingerprint image for fingerprint identification is obtained, thereby improving the success rate of fingerprint identification of the electronic equipment.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating an information processing method according to an embodiment of the disclosure.
Fig. 2 is a schematic diagram illustrating the operation of an optical fingerprint sensor according to an exemplary embodiment.
Fig. 3 is an exemplary diagram of a fingerprint scanning area in an embodiment of the disclosure.
FIG. 4 is an exemplary diagram of a regional light emission in an embodiment of the disclosure.
Fig. 5a is a diagram illustrating an example of a fingerprint image according to an embodiment of the present disclosure.
Fig. 5b is an exemplary diagram of a fingerprint image in an embodiment of the disclosure.
Fig. 6 is a diagram illustrating an information processing apparatus according to an example embodiment.
Fig. 7 is a block diagram of an electronic device shown in an embodiment of the disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings in which the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating an information processing method according to an embodiment of the present disclosure, and as shown in fig. 1, the information processing method applied to an electronic device including a display screen includes the following steps:
s11, determining the ambient light brightness collected by the light sensor;
s12, if the ambient light brightness is larger than a preset brightness threshold, when touch operation is detected at a first moment, determining whether a first area acted by the touch operation is at least a local area of a preset fingerprint scanning area;
s13, if the first area is at least a partial area of the preset fingerprint scanning area, scanning the preset fingerprint area to obtain a first image; when the touch operation is not detected at a second moment after the first moment, scanning the preset fingerprint scanning area to obtain a second image;
and S14, obtaining a fingerprint image of fingerprint identification according to the image difference between the first image and the second image.
In an embodiment of the present disclosure, an electronic device includes: a mobile phone, a tablet computer, or an intelligent home device, etc., which are not limited in the embodiments of the present disclosure.
The electronic equipment comprises a display screen and an optical fingerprint acquisition module. Wherein, optics fingerprint collection module can be optics fingerprint sensor for gather the fingerprint image.
Fig. 2 is a schematic diagram illustrating the operation of an optical fingerprint sensor according to an exemplary embodiment. As shown in fig. 2, an optical fingerprint sensor is disposed below a Light Emitting display device OLED (Organic Light Emitting Diode) of the screen, and the optical fingerprint sensor includes a Light sensing array, where the OLED is used as a Light Emitting source of the optical fingerprint sensor, and Light emitted from the OLED strikes an object touching the screen to generate reflected Light, and then the reflected Light is received by the Light sensing array. The optical fingerprint sensor is disposed below the designated area of the screen, and one or more optical fingerprint sensors may be mounted below the display screen of the electronic device.
In addition, the electronic equipment also comprises a light sensor, and the electronic equipment can obtain the ambient light brightness through the light sensor. In steps S11-S12, the electronic device determines the ambient light level collected by the light sensor, and further determines whether the first area acted by the touch operation is at least a partial area of the predetermined fingerprint scanning area when the ambient light level is greater than the predetermined brightness threshold and the touch operation is detected at the first moment.
As mentioned above, the optical fingerprint sensor is disposed below the designated area of the screen, which is the preset fingerprint scanning area. The preset fingerprint scanning area may be located at a position near the middle of one end of the electronic device. Fig. 3 is an exemplary diagram of a fingerprint scanning area according to an embodiment of the present disclosure, and as shown in fig. 3, an area indicated by L is a preset fingerprint scanning area.
The electronic device may detect a touch operation within a preset fingerprint scanning area, the touch operation including a contact-only operation and a pressing operation in which a pressure is applied while contacting. The electronic device may detect the touch operation by a touch sensor and/or a pressure sensor when the touch sensor and/or the pressure sensor are mounted in the electronic device.
After detecting the touch operation, the electronic device determines whether the first area acted by the touch operation is at least a partial area of the preset fingerprint scanning area, that is, determines whether the first area is the whole area or the partial area of the preset fingerprint scanning area.
It can be understood that, if the first area is the whole area of the preset fingerprint scanning area, the part of the display screen outside the preset fingerprint scanning area is transparent to the ambient light. When the ambient light brightness is greater than the preset brightness threshold, that is, under the condition of greater ambient light brightness, the transmitted ambient light is reflected or refracted in the display screen, so that the influence on the light in the preset fingerprint scanning area is easily caused, and the fingerprint image collected by the optical fingerprint sensor is influenced. And if first region is the local area of predetermineeing the fingerprint scanning area, then not only predetermine on the display screen that the part outside the fingerprint scanning area can see through ambient light, predetermine the fingerprint scanning area and also can pass through ambient light by the regional area that the finger covered, and in the same way, the fingerprint image that electronic equipment gathered also receives the influence of ambient light brightness easily.
In this regard, to reduce the influence of the ambient light brightness, in step S13, the preset fingerprint area is scanned to obtain a first image, when no touch operation is detected at a second time, the preset fingerprint scanning area is scanned to obtain a second image, and in step S14, a fingerprint image for fingerprint identification is obtained according to an image difference between the first image and the second image.
In the embodiment of the present disclosure, the time difference between the first time and the second time is within a predetermined time difference range, and the ambient light intensity does not change greatly within the predetermined time difference range, so that the first image and the second image can be substantially affected by the ambient light as much as possible. For example, the first time is when the finger touch of the user is detected, and the second time is when the finger touch of the user is detected to be removed (i.e., the current touch disappears).
In the embodiment of the disclosure, when a touch operation is performed in the preset fingerprint scanning area, the electronic device may utilize a light emitting display device of the display screen as a light source to emit light, and scan the reflected light to form the first image. It will be appreciated that the first image is an image formed by the combination of ambient light levels and the illumination of the light emitting source of the display. When the touch operation disappears, the light-emitting device of the display screen does not emit light any more, so that the second image obtained by scanning the preset fingerprint scanning area by the electronic equipment is an image formed after the ambient light brightness acts on the second image. Therefore, based on the image difference between the first image and the second image, the influence of the ambient light brightness can be reduced as much as possible, and the fingerprint image for fingerprint identification can be obtained.
It should be noted that, in the embodiment of the present disclosure, the preset brightness threshold may be obtained in an experimental environment, for example, different light intensities are adjusted in a laboratory environment, various light intensities are analyzed, for example, when all light rays are emitted to a preset fingerprint scanning area or only light rays are emitted to a local area, an identification rate of a collected fingerprint image is determined, and a light intensity value when the identification rate is significantly reduced is selected as the preset brightness threshold of the present disclosure. For example, the predetermined brightness threshold may be 8000 lux.
It can be understood that, in the embodiment of the present disclosure, if the ambient light brightness is greater than the preset brightness threshold, after the touch operation is detected at the first time, the preset fingerprint scanning area is scanned to obtain the first image, and after the touch operation is not detected at the second time, the preset fingerprint scanning area is scanned to obtain the second image, so that the electronic device can obtain the fingerprint image for fingerprint identification according to the image difference between the first image and the second image, so as to reduce the influence of the ambient light brightness as much as possible, thereby improving the success rate of fingerprint identification of the electronic device.
In one embodiment, the method further comprises:
if the ambient light brightness is smaller than the preset brightness threshold, determining the first image as the fingerprint image; or the like, or, alternatively,
and if the first area acted by the touch operation is all the preset fingerprint scanning area, determining the first image as the fingerprint image.
In this embodiment, if the ambient light brightness is less than the preset brightness threshold, it is indicated that the ambient light brightness may not greatly affect the fingerprint image capture, and therefore, the second image does not need to be captured at this time, and the first image may be directly determined as the fingerprint image for fingerprint identification.
In addition, if the first area acted by the touch operation is the whole area of the preset fingerprint scanning area, the influence of the partially transparent ambient light outside the preset fingerprint scanning area on the display screen on fingerprint collection is not too large, and in order to consider the speed of fingerprint identification, the influence can be ignored, the second image is not collected, and the first image is directly determined as the fingerprint image of the fingerprint identification.
In an embodiment, if the first area is at least a partial area of the preset fingerprint scanning area, scanning the preset fingerprint area to obtain a first image includes:
if the first area is a local area of the preset fingerprint scanning area, determining a second area, except the first area, in the preset fingerprint scanning area;
emitting light rays in the first area by using the display screen, and maintaining the display screen in the second area in a turned-off state;
and performing fingerprint scanning based on the light to obtain the first image.
In this embodiment, if the first area is a local area of the preset fingerprint scanning area, the electronic device further determines a second area excluding the first area, and the display screen emits light in the first area, but the second area does not emit light, so that the electronic device can perform fingerprint scanning based on light to obtain the first image.
In the embodiment of the disclosure, since the second region does not emit light, the light sensing array may not receive the reflected light formed by the light emitted from the light emitting display device of the second region, and only receives the ambient light. This way can be understood as adding a masking layer on the second area to filter out the influence of light emitted by the light emitting display device of the second area. In addition, it should be noted that the present disclosure may also add a cover layer to make the display screen display black in the second area, so as to reduce the influence of light emission of the light-emitting display device in the second area.
Fig. 4 is a diagram illustrating an example of light emission of an area according to an embodiment of the present disclosure, as shown in fig. 4, in the preset fingerprint scanning area denoted by L in fig. 3, an area denoted by L1 is a first area, and an area denoted by L2 is a second area. In fig. 4, light is emitted only to the L1 region, and light is not emitted to the L2 region.
It can be understood that, in this embodiment, when the ambient light brightness is greater than the preset brightness threshold, light is emitted only to the first area acted on by the finger in the preset fingerprint scanning area, and light is not emitted to the second area outside the first area in the preset fingerprint scanning area, on one hand, power consumption of the electronic device can be reduced, and the service life can be prolonged; on the other hand, the light is not emitted to the second area, so that the information of the image area corresponding to the second area on the first image is the effect after the action of the ambient light, and the influence of the ambient light can be removed based on the image difference between the first image and the second image acted by the ambient light, and the recognition rate of the obtained fingerprint image is improved.
In one embodiment, the obtaining a fingerprint image for fingerprint identification according to an image difference between the first image and the second image includes:
determining a target pixel point of which the pixel value difference of pixel points at the same position is smaller than a preset pixel difference threshold value in the first image and the second image;
in the first image, setting the pixel value of the target pixel point as the background color in the first image to obtain the fingerprint image; and the background color is the color of an area except the image area corresponding to the preset fingerprint scanning area in the first image.
In the embodiment of the present disclosure, since the first image is an image in which the ambient light and the light emitted from a part of the light emitting units of the display screen are combined, and the second image is an image in which only the ambient light is applied, the similar portion between the first image and the second image is a portion applied by the ambient light. Based on this, the present disclosure can compare the pixel value difference of the pixel points at the same position in the first image and the second image, and determine the pixel point with the pixel difference smaller than the preset pixel difference threshold as the target pixel point, which is also the pixel point mainly affected by the ambient light.
It should be noted that, in the embodiment of the present disclosure, the pixel value difference may refer to a ratio between pixel values, and may also be a difference between pixel values, which is not limited by the present disclosure.
After the pixel points acted by the ambient light are determined, in the first image, the pixel value of the target pixel point can be set to be the background color in the first image, and therefore the fingerprint image is obtained.
Fig. 5a is a diagram illustrating an example of a fingerprint image in an embodiment of the present disclosure, and fig. 5b is a diagram illustrating an example of a fingerprint image in an embodiment of the present disclosure. Fig. 5a shows a fingerprint image corresponding to the first area of the touch operation being the entire area of the preset fingerprint scanning area, except for the fingerprint portion corresponding to the preset fingerprint scanning area, where the background color is white. Fig. 5b is a fingerprint image corresponding to the first area of the touch operation being a partial area of the preset fingerprint scanning area, where the pixel value of the target pixel acted by the ambient light is assigned to a white background color.
In one embodiment, the method further comprises:
determining whether the area of the first region is larger than a preset area threshold value;
the scanning of the preset fingerprint area to obtain a first image comprises:
and if the area of the first area is larger than the preset area threshold, scanning the preset fingerprint area to obtain the first image.
In this embodiment, the captured fingerprint image is considered to contain sufficient information about the user's fingerprint only if the touch area is greater than the predetermined area threshold. For the condition that the touch area is smaller than the preset area threshold value, when the area of the first region is larger than the preset area threshold value, the preset fingerprint region is scanned again to obtain the first image, the integrity of fingerprint collection can be guaranteed, and therefore the success rate of fingerprint identification can be improved.
In one embodiment, the method further comprises:
determining a touch duration of the touch operation;
determining whether the touch duration is greater than a preset duration threshold;
scanning the preset fingerprint area to obtain a first image, including:
and if the touch duration is greater than the preset duration threshold, scanning the preset fingerprint area to obtain the first image.
In this embodiment, if the touch duration of the touch operation is short, the fingerprint information in the first image obtained by scanning the preset fingerprint area may be incomplete. In addition, under the condition that the preset time length threshold value is met, a plurality of first images can be obtained through scanning for multiple times, so that the electronic equipment can conveniently determine the first images with high definition and integrity as the images of subsequent processing, and the accuracy of fingerprint identification is improved.
It should be noted that, the obtaining of the touch duration of the touch operation may be that the electronic device starts to time when the touch operation is detected by the touch sensor or the pressure value is detected by the pressure sensor.
Fig. 6 is a diagram illustrating an information processing apparatus according to an exemplary embodiment. The device is applied to an electronic device including a light sensor and a display screen, and referring to fig. 6, the device includes:
a first determining module 101 configured to determine the ambient light brightness collected by the light sensor;
a second determining module 102, configured to determine, if the ambient light brightness is greater than a preset brightness threshold, whether a first area acted by a touch operation is at least a local area of a preset fingerprint scanning area when the touch operation is detected at a first time;
the scanning module 103 is configured to scan the preset fingerprint area to obtain a first image if the first area is at least a partial area of the preset fingerprint scanning area; when the touch operation is not detected at a second moment after the first moment, scanning the preset fingerprint scanning area to obtain a second image;
a obtaining module 104 configured to obtain a fingerprint image of fingerprint identification according to an image difference between the first image and the second image.
Optionally, the scanning module 103 is specifically configured to determine a second area, excluding the first area, in the preset fingerprint scanning area if the first area is a local area of the preset fingerprint scanning area; emitting light rays in the first area by using the display screen, and maintaining the display screen in the second area in a turned-off state; and performing fingerprint scanning based on the light to obtain the first image.
Optionally, the obtaining module 104 is specifically configured to determine a target pixel point in the first image and the second image, where a difference between pixel values of pixel points at the same position is smaller than a preset pixel difference threshold; in the first image, setting the pixel value of the target pixel point as the background color in the first image to obtain the fingerprint image; and the background color is the color of an area except the image area corresponding to the preset fingerprint scanning area in the first image.
Optionally, the apparatus further comprises:
a third determining module 105, configured to determine the first image as the fingerprint image if the ambient light brightness is less than the preset brightness threshold; or if the first area acted by the touch operation is the whole area of the preset fingerprint scanning area, determining the first image as the fingerprint image.
Optionally, the apparatus further comprises:
a fourth determining module 106 configured to determine whether the area of the first region is greater than a preset area threshold;
the scanning module 103 is specifically configured to scan the preset fingerprint region to obtain the first image if the area of the first region is greater than the preset area threshold.
Optionally, the apparatus further comprises:
a fifth determining module 107 configured to determine a touch duration of the touch operation; determining whether the touch duration is greater than a preset duration threshold;
the scanning module 103 is specifically configured to scan the preset fingerprint area to obtain the first image if the touch duration is greater than the preset duration threshold.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 7 is a block diagram illustrating an electronic device 800 in accordance with an example embodiment. For example, the device 800 may be a smartphone, tablet computer, or the like.
Referring to fig. 7, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A power supply component 806 provides power to the various components of the device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed state of the device 800, the relative positioning of components, such as a display and keypad of the apparatus 800, the sensor assembly 814 may also detect a change in position of the apparatus 800 or a component of the apparatus 800, the presence or absence of user contact with the apparatus 800, orientation or acceleration/deceleration of the apparatus 800, and a change in temperature of the apparatus 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as Wi-Fi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device including a light sensor and a display screen to perform a method of information processing, the method comprising:
determining the ambient light brightness collected by the light sensor;
if the ambient light brightness is larger than a preset brightness threshold, determining whether a first area acted by touch operation is at least a local area of a preset fingerprint scanning area when the touch operation is detected at a first moment;
if the first area is at least a partial area of the preset fingerprint scanning area, scanning the preset fingerprint area to obtain a first image; when the touch operation is not detected at a second moment after the first moment, scanning the preset fingerprint scanning area to obtain a second image;
and obtaining a fingerprint image for fingerprint identification according to the image difference between the first image and the second image.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (12)

1. An information processing method, applied to an electronic device including a light sensor and a display screen, the method comprising:
determining the ambient light brightness collected by the light sensor;
if the ambient light brightness is larger than a preset brightness threshold, determining whether a first area acted by touch operation is at least a local area of a preset fingerprint scanning area when the touch operation is detected at a first moment;
if the first area is at least a partial area of the preset fingerprint scanning area, scanning the preset fingerprint area to obtain a first image; when the touch operation is not detected at a second moment after the first moment, scanning the preset fingerprint scanning area to obtain a second image;
determining a target pixel point of which the pixel value difference of pixel points at the same position is smaller than a preset pixel difference threshold value in the first image and the second image;
in the first image, setting the pixel value of the target pixel point as the background color in the first image to obtain the fingerprint image; and the background color is the color of an area except the image area corresponding to the preset fingerprint scanning area in the first image.
2. The method of claim 1, wherein scanning the predetermined fingerprint area to obtain the first image if the first area is at least a partial area of the predetermined fingerprint scanning area comprises:
if the first area is a local area of the preset fingerprint scanning area, determining a second area, except the first area, in the preset fingerprint scanning area;
emitting light rays in the first area by using the display screen, and maintaining the display screen in the second area in a turned-off state;
and performing fingerprint scanning based on the light to obtain the first image.
3. The method of claim 1, further comprising:
if the ambient light brightness is smaller than the preset brightness threshold, determining the first image as the fingerprint image; or the like, or a combination thereof,
and if the first area acted by the touch operation is the whole area of the preset fingerprint scanning area, determining the first image as the fingerprint image.
4. The method of claim 1, further comprising:
determining whether the area of the first region is larger than a preset area threshold value;
the scanning of the preset fingerprint area to obtain a first image comprises:
and if the area of the first area is larger than the preset area threshold value, scanning the preset fingerprint area to obtain the first image.
5. The method of claim 1, further comprising:
determining the touch duration of the touch operation;
determining whether the touch duration is greater than a preset duration threshold;
scanning the preset fingerprint area to obtain a first image, including:
and if the touch duration is greater than the preset duration threshold, scanning the preset fingerprint area to obtain the first image.
6. An information processing apparatus applied to an electronic device including a light sensor and a display screen, the apparatus comprising:
the first determination module is configured to determine the ambient light brightness collected by the light sensor;
the second determining module is configured to determine whether a first area acted by the touch operation is at least a local area of a preset fingerprint scanning area when the touch operation is detected at a first moment if the ambient light brightness is larger than a preset brightness threshold;
the scanning module is configured to scan the preset fingerprint area to obtain a first image if the first area is at least a partial area of the preset fingerprint scanning area; when the touch operation is not detected at a second moment after the first moment, scanning the preset fingerprint scanning area to obtain a second image;
an obtaining module configured to determine a target pixel point in the first image and the second image, where a difference between pixel values of pixel points at the same position is smaller than a preset pixel difference threshold; in the first image, setting the pixel value of the target pixel point as the background color in the first image to obtain the fingerprint image; and the background color is the color of the area except the image area corresponding to the preset fingerprint scanning area in the first image.
7. The apparatus of claim 6,
the scanning module is specifically configured to determine a second area, which is inside the preset fingerprint scanning area and is not the first area, if the first area is a local area of the preset fingerprint scanning area; emitting light rays in the first area by using the display screen, and maintaining the display screen in the second area in a turned-off state; and performing fingerprint scanning based on the light to obtain the first image.
8. The apparatus of claim 6, further comprising:
a third determining module, configured to determine the first image as the fingerprint image if the ambient light brightness is less than the preset brightness threshold; or if the first area acted by the touch operation is all the preset fingerprint scanning area, determining the first image as the fingerprint image.
9. The apparatus of claim 6, further comprising:
a fourth determination module configured to determine whether an area of the first region is greater than a preset area threshold;
the scanning module is specifically configured to scan the preset fingerprint area to obtain the first image if the area of the first area is larger than the preset area threshold.
10. The apparatus of claim 6, further comprising:
a fifth determining module configured to determine a touch duration of the touch operation; determining whether the touch duration is greater than a preset duration threshold;
the scanning module is specifically configured to scan the preset fingerprint area to obtain the first image if the touch duration is greater than the preset duration threshold.
11. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to execute the information processing method according to any one of claims 1 to 5.
12. A non-transitory computer-readable storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the information processing method of any one of claims 1 to 5.
CN202110110969.4A 2021-01-27 2021-01-27 Information processing method and device, electronic device and storage medium Active CN112764659B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110110969.4A CN112764659B (en) 2021-01-27 2021-01-27 Information processing method and device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110110969.4A CN112764659B (en) 2021-01-27 2021-01-27 Information processing method and device, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN112764659A CN112764659A (en) 2021-05-07
CN112764659B true CN112764659B (en) 2022-07-22

Family

ID=75706082

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110110969.4A Active CN112764659B (en) 2021-01-27 2021-01-27 Information processing method and device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN112764659B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113365259B (en) * 2021-07-26 2022-12-27 北京小米移动软件有限公司 Method for establishing communication connection, method, device, equipment and storage medium for controlling connection function
CN116034646A (en) * 2021-08-24 2023-04-28 京东方科技集团股份有限公司 Display substrate, display device and fingerprint identification method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006031322A (en) * 2004-07-15 2006-02-02 Mitsubishi Electric Corp Fingerprint collation device
CN104598899A (en) * 2015-02-16 2015-05-06 上海箩箕技术有限公司 Fingerprint imaging method and system
CN107680988B (en) * 2017-09-15 2020-03-13 上海天马微电子有限公司 Display panel and electronic equipment
CN107527048B (en) * 2017-09-29 2020-09-01 Oppo广东移动通信有限公司 Fingerprint identification method and device, storage medium and mobile terminal
CN108256415A (en) * 2017-11-30 2018-07-06 北京集创北方科技股份有限公司 Fingerprint identification method, device and system, electronic equipment
CN110705517B (en) * 2019-10-18 2022-09-06 深圳市汇顶科技股份有限公司 Method for fingerprint identification and electronic equipment

Also Published As

Publication number Publication date
CN112764659A (en) 2021-05-07

Similar Documents

Publication Publication Date Title
EP3410491B1 (en) Oled panel, oled module, fingerprint identification method and device thereof
KR101712529B1 (en) Method, device, terminal, program and computer-readable recording medium for controlling flash
CN108334769B (en) Fingerprint unlocking method and device
US20200043427A1 (en) Backlight adjusting method and backlight adjusting device
CN107256391B (en) LCD panel, LCM, fingerprint identification method, fingerprint identification device and storage medium
CN108595935B (en) Fingerprint unlocking method and device
KR102508108B1 (en) Image acquisition module, electronic equipment, image acquisition method and storage medium
CN112764659B (en) Information processing method and device, electronic device and storage medium
US10936707B2 (en) Fingerprint circuit, force touch control method and device and computer-readable storage medium
US11574415B2 (en) Method and apparatus for determining an icon position
CN108040213B (en) Method and apparatus for photographing image and computer-readable storage medium
US10885298B2 (en) Method and device for optical fingerprint recognition, and computer-readable storage medium
CN112116670A (en) Information processing method and device, electronic device and storage medium
US10930217B2 (en) Method and apparatus for compensating operating parameter of display circuit
CN108898126B (en) Fingerprint identification method and device
CN111460869B (en) Fingerprint acquisition method and device
CN108847199B (en) Brightness determination method and device
CN108319899B (en) Fingerprint identification method and device
CN110765813B (en) Fingerprint identification method and device
CN108681716B (en) Fingerprint unlocking method and device
CN107153448B (en) Display module, control method thereof, electronic device and computer-readable storage medium
CN110968155A (en) Full-screen terminal, operation execution method and device based on full-screen terminal
CN112689047B (en) Display control method and device and electronic equipment
CN111382406B (en) Fingerprint unlocking method and device
CN107506630B (en) Equipment with iris recognition function and iris recognition method

Legal Events

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