CN110889102A - Image unlocking method and device, computer readable storage medium and terminal - Google Patents

Image unlocking method and device, computer readable storage medium and terminal Download PDF

Info

Publication number
CN110889102A
CN110889102A CN201911185187.6A CN201911185187A CN110889102A CN 110889102 A CN110889102 A CN 110889102A CN 201911185187 A CN201911185187 A CN 201911185187A CN 110889102 A CN110889102 A CN 110889102A
Authority
CN
China
Prior art keywords
image
processed
target
pixel
pixel row
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911185187.6A
Other languages
Chinese (zh)
Other versions
CN110889102B (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.)
JRD Communication Shenzhen Ltd
Original Assignee
JRD Communication Shenzhen 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 JRD Communication Shenzhen Ltd filed Critical JRD Communication Shenzhen Ltd
Priority to CN201911185187.6A priority Critical patent/CN110889102B/en
Publication of CN110889102A publication Critical patent/CN110889102A/en
Application granted granted Critical
Publication of CN110889102B publication Critical patent/CN110889102B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/36User authentication by graphic or iconic representation

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Image Analysis (AREA)
  • Collating Specific Patterns (AREA)

Abstract

The embodiment of the application discloses an image unlocking method, an image unlocking device, a computer readable storage medium and a terminal, when a face image is detected, an unlocking instruction is triggered, and an image to be processed is acquired according to the unlocking instruction, wherein the image to be processed comprises a plurality of pixel lines, and the pixel lines comprise a plurality of image data; determining pixel row identification to be processed and target sequencing information corresponding to the pixel row identification to be processed; sorting the image data according to the target sorting information and the pixel row identifier to be processed to obtain a target image; matching the target image with a preset sample image to obtain a matching result; and if the matching is successful, executing unlocking operation based on the target image. The embodiment can improve the effectiveness of unlocking the terminal image.

Description

Image unlocking method and device, computer readable storage medium and terminal
Technical Field
The application relates to the field of mobile terminal application, in particular to an image unlocking method and device, a computer readable storage medium and a terminal.
Background
At present, a camera is commonly used in a mobile terminal for photographing, and as the popularity of photographing of the mobile terminal increases, the mobile terminal applies a face recognition unlocking function to an image obtained by photographing. Especially, video monitoring is rapidly popularized, and a rapid identity recognition technology under a remote and user-uncoordinated state is urgently needed for numerous video monitoring applications so as to confirm the identity of personnel remotely and rapidly and realize intelligent early warning. The face recognition technology is undoubtedly the best choice, and the rapid face recognition technology can be adopted to search faces from the monitoring video images in real time and compare the faces with a face database in real time, so that identity recognition is rapidly realized.
In the related art, a camera directly transmits a collected face image to a controller, and the controller performs an unlocking operation according to the received face image. If data of the face image is lost, the obtained face image is an invalid image, and unlocking cannot be performed.
Disclosure of Invention
The embodiment of the application provides an image unlocking method and device, a computer readable storage medium and a terminal, which can improve the effectiveness of image unlocking.
The embodiment of the application provides an image unlocking method, which comprises the following steps:
when a face image is detected, triggering an unlocking instruction and acquiring an image to be processed according to the unlocking instruction, wherein the image to be processed comprises a plurality of pixel lines, and the pixel lines comprise a plurality of image data;
determining pixel row identification to be processed and target sequencing information corresponding to the pixel row identification to be processed;
sorting the image data according to the target sorting information and the pixel row identifier to be processed to obtain a target image;
matching the target image with a preset sample image to obtain a matching result;
and if the matching is successful, executing unlocking operation based on the target image.
Correspondingly, the embodiment of the present application further provides an image unlocking device, including:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for triggering an unlocking instruction and acquiring an image to be processed according to the unlocking instruction when a face image is detected, the image to be processed comprises a plurality of pixel lines, and the pixel lines comprise a plurality of image data;
the device comprises a determining unit, a processing unit and a processing unit, wherein the determining unit is used for determining pixel row identification to be processed and target sequencing information corresponding to the pixel row identification to be processed;
the sorting unit is used for sorting the image data according to the target sorting information and the pixel row identifier to be processed to obtain a target image;
the matching unit is used for matching the target image with a preset sample image to obtain a matching result;
and the operation unit is used for executing unlocking operation based on the target image if the matching is successful.
Accordingly, the present application further provides a computer-readable storage medium, which stores a plurality of instructions, where the instructions are suitable for being loaded by a processor to perform the steps in the image unlocking method as described above.
Correspondingly, an embodiment of the present application further provides a terminal, which includes a processor and a memory, where the memory stores a plurality of instructions, and the processor loads the instructions to execute the steps in the image unlocking method described above.
According to the scheme, when a face image is detected, an unlocking instruction is triggered, and an image to be processed is acquired according to the unlocking instruction, wherein the image to be processed comprises a plurality of pixel lines, and the pixel lines comprise a plurality of image data; determining pixel row identification to be processed and target sequencing information corresponding to the pixel row identification to be processed; sorting the image data according to the target sorting information and the pixel row identifier to be processed to obtain a target image; matching the target image with a preset sample image to obtain a matching result; and if the matching is successful, executing unlocking operation based on the target image. The embodiment can improve the effectiveness of unlocking the terminal image.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a first image unlocking method according to an embodiment of the present application.
Fig. 2 is a schematic pixel row diagram of an image unlocking method according to an embodiment of the present application.
Fig. 3 is a schematic diagram of image data arrangement according to a first image unlocking method provided in the embodiment of the present application.
Fig. 4 is a schematic diagram of image data arrangement according to a second image unlocking method provided in the embodiment of the present application.
Fig. 5 is a flowchart illustrating a second image unlocking method according to an embodiment of the present application.
Fig. 6 is a display diagram of an application interface of an image unlocking method according to an embodiment of the present application.
Fig. 7 is a block diagram of a first image unlocking device according to an embodiment of the present application.
Fig. 8 is a block diagram of a second image unlocking device according to an embodiment of the present application.
Fig. 9 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Based on the above problems, embodiments of the present application provide a first image unlocking method, an apparatus, a computer-readable storage medium, and a terminal, which can improve efficiency of unlocking a terminal image. The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating an image unlocking method according to an embodiment of the present disclosure. The image unlocking method may be applied to mobile terminals such as mobile phones, tablet computers, notebook computers, palmtop computers, Portable Media Players (PMPs), and fixed terminals such as desktop computers. The specific flow of the image unlocking method can be as follows:
101. when the face image is detected, an unlocking instruction is triggered, and an image to be processed is acquired according to the unlocking instruction, wherein the image to be processed comprises a plurality of pixel lines, and the pixel lines comprise a plurality of image data.
Specifically, the detection of the face image can be executed through the camera, the camera can detect the face image in a preset distance range when detecting the face image, for example, the preset distance range can be within 0.5 m, and the unlocking operation of the terminal after the camera faces the face by the misoperation of a user can be avoided. After the face image is detected, an unlocking instruction can be triggered to start unlocking operation.
In some embodiments, the step of "triggering an unlocking instruction and acquiring an image to be processed according to the unlocking instruction" may include the following processes:
starting a camera according to the unlocking instruction and monitoring an image picture in real time;
acquiring a plurality of frames of images in the image frame within a preset time period;
and determining an image to be processed from the multi-frame image.
Specifically, the terminal camera can be opened according to the unlocking instruction, and the camera can be a front camera. In order to obtain a correct face image, a camera is started and an image picture is monitored in real time, and a plurality of frames of face images can be obtained within a preset time period. For example, the frame rate of the image acquired by the camera may be 30 frames per second, that is, 30 frames of face images are acquired within one second; the preset time period may be 2 seconds, and the camera may acquire 60 frames of face images within the preset time period.
After the multiple frames of face images are obtained, the correct face images can be screened from the multiple frames of face images, wherein the correct face images comprise complete face image information and can be used for face unlocking.
In some embodiments, the step "determining an image to be processed from a plurality of frames" may include the following procedures:
acquiring image information of each frame of image, wherein the image information comprises image pixels;
matching the image pixels with preset image pixels to obtain a matching result;
and determining the image to be processed based on the image corresponding to the image pixel matched successfully.
Specifically, image information of each frame image is acquired, wherein the image information may include pixel information. The pixel information may include image width and height, for example, the width of the acquired image may be 1920 pixels (pixel), the height may be 1080 pixels, and the pixels of the acquired image may be 1920 × 1080 pixels.
When the camera collects an image, pixel information of a certain frame of image may be lost, so that the obtained image is an abnormal image, the abnormal image cannot be used for image unlocking, a normal frame of image can be determined from multiple frames of images through the obtained multiple frames of images, and then the next operation is carried out.
Specifically, the image pixels are matched with preset image pixels. For example, the preset image pixel may be 1280x800 pixels, the acquired image pixel may be 1280x800 pixels or 1270x800 pixels, and the like, and if the acquired image pixel is 1280x800 pixels, it may be determined that the image acquired by the frame is a normal image; if the pixel of the acquired image is 1270x800 pixels, the image acquired by the frame can be determined to be an abnormal image.
After normal images are screened from the acquired multi-frame images through image information matching, one of the normal images can be randomly selected as an image to be processed.
102. And determining the pixel row identification to be processed and the target sequencing information corresponding to the pixel row identification to be processed.
Specifically, the image to be processed may include a plurality of pixel rows and a plurality of pixel columns, where each pixel row may include a plurality of pixel points. For example, referring to fig. 2, fig. 2 and fig. 2 are schematic pixel row diagrams of an image unlocking method according to an embodiment of the present disclosure. Fig. 2 may represent a pixel row X pixel column of an image to be processed, which includes 16 pixel rows, 27 pixel columns, and 16X27 pixel points.
Specifically, the pixel row identifier to be processed may be a row number of the pixel row to be processed, for example, the image to be processed may include 1280 rows, and the pixel row to be processed may be row 1, row 2, row 3, or 1280, and if the pixel row to be processed is row 1 and the row number corresponding to the first row is 1, the pixel row identifier to be processed is 1.
Specifically, the pixel line identifier to be processed may correspond to image data included in the pixel line to be processed, and the target sorting information refers to an arrangement order of the image data.
In some embodiments, the step of "determining the pixel row identifier to be processed and the target sorting information corresponding to the pixel row identifier" may include the following processes:
randomly determining pixel row identifiers to be processed from a plurality of sample pixel identifiers in a data information base;
and randomly determining target sorting information from a plurality of sample sorting information corresponding to the pixel row identification to be processed.
Specifically, the pixel row identifier to be processed determined from the data information base can be randomly selected from the sample pixel identifiers in the data information base. The data information base may include a plurality of sample pixel identifications, and may further include a plurality of sample sorting information corresponding to each sample pixel identification, and different sample pixel rows may correspond to different sample sorting information.
And when a sample pixel identifier is randomly selected from the data information base as a pixel row identifier to be processed. One sample sorting information may be randomly selected from the plurality of sample sorting information as the target sorting information according to the plurality of sample sorting information corresponding to the sample pixel identification.
For example, the data information base may include a sample pixel row identifier corresponding to the complete image, the total row number of the image pixel rows may be 1280 rows, and the corresponding sample pixel row identifier may be 1 to 1280. Each pixel row may include a plurality of pixels, for example, 100 pixels, 200 pixels, and so on, and one pixel may include one image data.
For example, when the sample pixel row may be 1, the sample pixel row 1 may include 10 pixel points, that is, 10 image data, and the sample pixel row 1 may include multiple sorts, where each sort may be named to represent a different sort, for example, 1-1 may represent a first sort corresponding to the pixel row 1, 1-2 may represent a second sort corresponding to the pixel row 1, and so on. The naming marks of the 10 pixel points can be 1-10 respectively, 1-1 can represent the first sort, and the 10 image data of the 10 pixel points can be arranged according to the sequence of 10, 9, 8, 7, 6, 5, 4, 3, 2 and 1.
103. And sequencing the image data according to the target sequencing information and the pixel row identifier to be processed to obtain a target image.
Specifically, the image data may be all image data included in the image to be processed, the image data to be processed may be obtained from all image data according to the target sorting information and the pixel row identifier to be processed, the image data to be processed is further sorted, and after it is determined that the image data to be processed is sorted, the target image may be obtained.
In some embodiments, the step of "performing sorting processing on the image data according to the target sorting information and the pixel row identifier to be processed" may include the following processes:
determining image data to be processed from the image data based on the pixel row identification to be processed;
sequentially arranging the image data to be processed according to the target ordering information to obtain a first arrangement result;
and determining a target image according to the first arrangement result.
Specifically, the image data to be processed is determined from the image data based on the pixel line identifier to be processed, a corresponding pixel line to be processed may be determined according to the pixel line identifier to be processed, and the image data included in the pixel line to be processed is determined as the image data to be processed.
For example, the to-be-processed pixel row identifier may be 2, and then the to-be-processed pixel row 2 is the 2 nd row, and the plurality of image data included in the to-be-processed pixel row 2 may be determined as the to-be-processed image data, for example, the number of image data included in the to-be-processed pixel row 2 may be 10, please refer to fig. 3, and fig. 3 is an image data arrangement diagram of the first image unlocking method provided in the embodiment of the present application. Fig. 3 includes a plurality of image data of a pixel row 1, a pixel row 2, and a pixel row 3, and an arrangement order, where the pixel row 1 may include image data 1 to image data 10, the arrangement order may be 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, and the pixel row 2 and the pixel row 3 may be the same as the arrangement order of the image data of the pixel row 1.
Specifically, the image data to be processed is sequentially arranged according to the target ordering information, and the image data to be processed may be sequentially arranged by the randomly obtained target ordering information. The target sorting information comprises a plurality of image data and sorting positions corresponding to the image data.
For example, the pixel row identifier to be processed may be 2, the number of the image data to be processed corresponding to the pixel row 2 to be processed may be 10, the target ordering information may be 2-1 (i.e., the first ordering of the target pixel row 2), and the target ordering 2-1 may indicate that the 10 image data to be processed are arranged according to the order of 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, so as to obtain the arrangement position of the image data included in the pixel row 2 to be processed. Referring to fig. 4, fig. 4 is a schematic diagram illustrating an arrangement of image data according to a second image unlocking method provided in the embodiment of the present application. FIG. 4 shows the ordering of target ordering 2-1. And (3) setting the image data corresponding to the pixel row 2 of the image to be processed as the arrangement position corresponding to the target arrangement information, keeping the arrangement positions of other pixel rows of the image to be processed at initial positions, and storing the current image as the target image. By rearranging the positions of the image data, loss of picture information can be avoided.
104. And matching the target image with a preset sample image to obtain a matching result. The matching the target image with a preset sample image comprises:
specifically, after the target image is determined, the target image may be matched with a preset sample image. The preset sample image is a target face image which is stored in a data information base in advance, and the preset sample image can comprise a plurality of preset sample images. Wherein the plurality of preset sample images include: and arranging all the target face images based on the sample pixel identifications in the data information base and the sample sequencing information corresponding to the sample pixel identifications to obtain sample images.
In some embodiments, the step of "matching the target image with a preset sample image" may include the following procedures:
determining a second arrangement result from the preset sample image based on the pixel line identification to be processed, wherein the second arrangement result is an arrangement result of image data corresponding to the pixel line identification to be processed in the preset sample image;
and matching the first arrangement result with the second arrangement result.
Specifically, the second arrangement result is determined from the preset sample image based on the pixel row identifier to be processed, and the preset sample image corresponding to the pixel row identifier to be processed can be searched from all preset sample images in the data information base according to the pixel row identifier to be processed. Specifically, a second sorting result is determined according to a sorting result of the image data corresponding to the pixel row identifier to be processed of the preset sample image.
Specifically, the first sorting result is matched with the second sorting result. For example, the first ranking result may be 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, the second ranking result may be 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, and the first ranking result is the same as the second ranking result, it may be determined that the matching is successful.
105. And if the matching is successful, executing unlocking operation based on the target image.
Specifically, after the target image is successfully matched with the preset image, the unlocking operation can be performed, and the display screen can be switched from the screen locking state to the unlocking state. For example, the current state of the display screen may be a blank screen state, and after the unlocking operation is performed, the unlocking operation is successful, the display screen may display an interface after the unlocking operation is successful, and may be a system homepage interface or the like.
According to the scheme, when a face image is detected, an unlocking instruction is triggered, and an image to be processed is acquired according to the unlocking instruction, wherein the image to be processed comprises a plurality of pixel lines, and the pixel lines comprise a plurality of image data; determining pixel row identification to be processed and target sequencing information corresponding to the pixel row identification to be processed; sorting the image data according to the target sorting information and the pixel row identifier to be processed to obtain a target image; matching the target image with a preset sample image to obtain a matching result; and if the matching is successful, executing unlocking operation based on the target image. According to the image unlocking method and device, the face image is obtained, the image data of any pixel row of the face image are arranged in sequence at random, the sequenced images are obtained, the target body image is matched with the sample image, image unlocking is carried out, safe storage of the image data can be effectively guaranteed, and therefore effectiveness of terminal image unlocking is improved.
Referring to fig. 5, fig. 5 is a flowchart illustrating a second image unlocking method according to an embodiment of the present application. In this embodiment, the specific scene application of the image unlocking method may be as follows:
201. and when the terminal detects that the face image exists, starting to acquire the image to be processed.
In this embodiment, specifically, the terminal may detect the face through the camera, and when the user performs the unlocking operation, the face may be oriented toward the terminal camera. The camera can be a front camera of the terminal, and user operation is facilitated. Specifically, the user can move the terminal position, makes camera and user face be located and predetermines the within range of shooing, and wherein, predetermines the scope of shooing and can be 0.5 meters, predetermines the scope of shooing through the setting and can improve the accuracy that the camera detected the people's face.
Furthermore, when the terminal detects the face image, the detected current face image picture can be monitored in real time. Specifically, the terminal may obtain one or more frames of face images from a monitoring picture of the current face image. The multi-frame face images can be acquired based on the preset time period, and the image acquisition efficiency can be improved by acquiring the multi-frame face images.
Specifically, after acquiring the multi-frame image, the face image normally appearing can be determined from the multi-frame image, and whether the image pixels are the same as the preset image pixels can be detected. For example, the preset image pixels may be 1280x800 pixels, and if it is detected that the face image pixels may be 1280x800 pixels, the frame of face image is an image that is displayed normally, and the frame of face image may be determined as a face image to be processed.
202. And the terminal randomly determines the pixel row identification to be processed and the target sequencing information corresponding to the pixel row identification to be processed from the data information base.
Specifically, after determining the face image to be processed, the terminal may randomly obtain a pixel row identifier to be processed, for example, the pixel row identifier to be processed determined randomly is 2.
Specifically, after determining that the pixel row identifier to be processed is 2, the terminal may randomly obtain the sorting information corresponding to the pixel row 2 to be processed from the data information base, and determine the sorting information as the target sorting information. For example, the target ranking information obtained thereupon may be 2-1.
203. And the terminal sorts the images to be processed according to the pixel row identification to be processed and the target sorting information to obtain target images.
Specifically, the terminal may arrange the image data included in the pixel row 2 to be processed according to the target sequence 2-1, so as to obtain an arrangement result. For example, the pixel row 2 to be processed may include 10 image data, the 10 image data may sequentially go from left to right, and then the 10 image data are arranged according to the target sequence 2-1, that is: 10. 9, 8, 7, 6, 5, 4, 3, 2, 1. And obtaining an arrangement result.
Further, the terminal may use the image data corresponding to the pixel row 2 of the image to be processed as the arrangement result corresponding to the target arrangement information, keep the arrangement order of other pixel rows of the image to be processed unchanged, and save the current image as the target image.
204. And the terminal matches the target image with a preset image and judges whether the matching is successful.
Specifically, after the terminal acquires the target image, the target image may be matched with the preset image, and the specific matching manner may be the steps described in the above embodiment, which is not repeated here. If the matching is successful, go to step 205; if the match fails, go to step 206.
205. And the terminal carries out unlocking operation according to the target image and displays an unlocking success interface.
Specifically, after the target image is successfully matched with the preset image, the terminal can perform unlocking operation, successfully unlock the terminal, and display an interface, which is entered by the successful unlocking, on the display screen interface, which can be a terminal system homepage interface.
For example, please refer to fig. 6, where fig. 6 is an application interface display diagram of an image unlocking method according to an embodiment of the present application. FIG. 6 illustrates a home interface that may be a terminal, the home interface including a plurality of system application icons that may be: application 1, application 2, application 3, application 4, application 5, application 6, application 7, application 8, and application 9, and so on.
206. And finishing the operation.
Specifically, if the target image fails to match the preset image, it may indicate that the terminal has failed to unlock. If the display screen interface of the current terminal can be in a black screen state, continuing to be in the black screen state; the current display screen interface can be the interface displayed during screen locking, and then continues to be the interface displayed during screen locking.
According to the scheme, when a face image is detected, an unlocking instruction is triggered, and an image to be processed is acquired according to the unlocking instruction, wherein the image to be processed comprises a plurality of pixel lines, and the pixel lines comprise a plurality of image data; determining pixel row identification to be processed and target sequencing information corresponding to the pixel row identification to be processed; sorting the image data according to the target sorting information and the pixel row identifier to be processed to obtain a target image; matching the target image with a preset sample image to obtain a matching result; and if the matching is successful, executing unlocking operation based on the target image. According to the image unlocking method and device, the face image is obtained, the image data of any pixel row of the face image are arranged in sequence at random, the sequenced images are obtained, the target body image is matched with the sample image, image unlocking is carried out, safe storage of the image data can be effectively guaranteed, and therefore effectiveness of terminal image unlocking is improved.
In order to better implement the image unlocking method provided by the embodiment of the application, the embodiment of the application also provides a device based on the image unlocking method. The terms are the same as those in the image unlocking method, and specific implementation details can refer to the description in the method embodiment.
Referring to fig. 7, fig. 7 is a block diagram of a first image unlocking device according to an embodiment of the present disclosure, including:
the acquisition unit 301 is configured to trigger an unlocking instruction and acquire an image to be processed according to the unlocking instruction when a face image is detected, where the image to be processed includes a plurality of pixel lines, and the pixel lines include a plurality of image data;
a determining unit 302, configured to determine a pixel row identifier to be processed and target ordering information corresponding to the pixel row identifier to be processed;
a sorting unit 303, configured to sort the image data according to the target sorting information and the pixel row identifier to be processed, so as to obtain a target image;
the matching unit 304 is configured to match the target image with a preset sample image to obtain a matching result;
an operation unit 305, configured to, if the matching is successful, perform an unlocking operation based on the target image.
In some embodiments, as shown in fig. 8, fig. 8 is a block diagram of a second image unlocking device provided in the embodiments of the present application. The determining unit 302 may include:
a first determining subunit 3021, configured to randomly determine a pixel row identifier to be processed from a plurality of sample pixel identifiers in the data information base;
a second determining subunit 3022, configured to randomly determine target ordering information from a plurality of sample ordering information corresponding to the pixel row identifier to be processed.
In some embodiments, the sorting unit 303 may include:
a third determining subunit, configured to determine to-be-processed image data from the image data based on the to-be-processed pixel line identifier;
the arrangement subunit is used for sequentially arranging the image data to be processed according to the target ordering information to obtain a first arrangement result;
a fourth determination unit configured to determine a target image according to the first arrangement result.
In some embodiments, the acquisition unit 301 comprises:
the starting unit is used for starting the camera according to the unlocking instruction and monitoring image pictures in real time;
the acquisition subunit is used for acquiring a plurality of frames of images in the image frame within a preset time period;
and the fifth determining subunit is used for determining the image to be processed from the multi-frame images.
In some embodiments, the fifth determining subunit is specifically configured to: acquiring image information of each frame of image, wherein the image information comprises image pixels; matching the image pixels with preset image pixels to obtain a matching result; and determining the image to be processed based on the image corresponding to the image pixel matched successfully.
In some embodiments, the matching unit 304 includes:
a sixth determining subunit, configured to determine, based on the to-be-processed pixel line identifier, a second arrangement result from the preset sample image, where the second arrangement result is an arrangement result of image data corresponding to the to-be-processed pixel line identifier in the preset sample image;
and the matching subunit is used for matching the first arrangement result with the second arrangement result.
According to the scheme, when a face image is detected, an unlocking instruction is triggered, and an image to be processed is acquired according to the unlocking instruction, wherein the image to be processed comprises a plurality of pixel lines, and the pixel lines comprise a plurality of image data; determining pixel row identification to be processed and target sequencing information corresponding to the pixel row identification to be processed; sorting the image data according to the target sorting information and the pixel row identifier to be processed to obtain a target image; matching the target image with a preset sample image to obtain a matching result; and if the matching is successful, executing unlocking operation based on the target image. According to the image unlocking method and device, the face image is obtained, the image data of any pixel row of the face image are arranged in sequence at random, the sequenced images are obtained, the target body image is matched with the sample image, image unlocking is carried out, safe storage of the image data can be effectively guaranteed, and therefore effectiveness of terminal image unlocking is improved.
The embodiment of the application also provides a terminal. As shown in fig. 9, the terminal may include Radio Frequency (RF) circuitry 601, memory 602 including one or more computer-readable storage media, input unit 603, display unit 604, sensor 605, audio circuitry 606, Wireless Fidelity (WiFi) module 607, processor 608 including one or more processing cores, and power supply 609. Those skilled in the art will appreciate that the terminal structure shown in fig. 9 does not constitute a limitation of the terminal, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 601 may be used for receiving and transmitting signals during the process of transmitting and receiving information, and in particular, for processing the received downlink information of the base station by one or more processors 608; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuit 601 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 601 may also communicate with networks and other devices via wireless communications.
The memory 602 may be used to store software programs and modules, and the processor 608 executes various functional applications and data processing by operating the software programs and modules stored in the memory 602. The memory 602 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like. Further, the memory 602 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 602 may also include a memory controller to provide the processor 608 and the input unit 603 access to the memory 602.
The input unit 603 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, input unit 603 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. The input unit 603 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 604 may be used to display information input by or provided to the user and various graphical user interfaces of the server, which may be made up of graphics, text, icons, video, and any combination thereof. The display unit 604 may include a display panel, and optionally, the display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 608 to determine the type of touch event, and the processor 608 then provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 9 the touch sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch sensitive surface may be integrated with the display panel to implement input and output functions.
The terminal may also include at least one sensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that turns off the display panel and the backlight when the server moves to the ear.
Audio circuitry 606, speakers, and microphones may provide an audio interface between the user and the server. The audio circuit 606 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 606 and converted into audio data, which is then processed by the audio data output processor 608, and then passed through the RF circuit 601 to be sent to, for example, a terminal, or the audio data is output to the memory 602 for further processing. The audio circuitry 606 may also include an ear-bud jack to provide communication of peripheral headphones with the server.
WiFi belongs to short-distance wireless transmission technology, and the terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 607, and provides wireless broadband internet access for the user. Although fig. 9 shows the WiFi module 607, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope of not changing the essence of the application.
The processor 608 is a control center of the terminal, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the server and processes data by operating or executing software programs and modules stored in the memory 602 and calling data stored in the memory 602, thereby performing overall monitoring of the handset. Optionally, processor 608 may include one or more processing cores; preferably, the processor 608 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 608.
The terminal also includes a power supply 609 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 608 via a power management system that may be used to manage charging, discharging, and power consumption. The power supply 609 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Specifically, in this embodiment, the processor 608 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 602 according to the following instructions, and the processor 608 runs the application programs stored in the memory 602, thereby implementing various functions:
when a face image is detected, triggering an unlocking instruction and acquiring an image to be processed according to the unlocking instruction, wherein the image to be processed comprises a plurality of pixel lines, and the pixel lines comprise a plurality of image data;
determining pixel row identification to be processed and target sequencing information corresponding to the pixel row identification to be processed;
sorting the image data according to the target sorting information and the pixel row identifier to be processed to obtain a target image;
matching the target image with a preset sample image to obtain a matching result;
and if the matching is successful, executing unlocking operation based on the target image. According to the scheme, when a face image is detected, an unlocking instruction is triggered, and an image to be processed is acquired according to the unlocking instruction, wherein the image to be processed comprises a plurality of pixel lines, and the pixel lines comprise a plurality of image data; determining pixel row identification to be processed and target sequencing information corresponding to the pixel row identification to be processed; sorting the image data according to the target sorting information and the pixel row identifier to be processed to obtain a target image; matching the target image with a preset sample image to obtain a matching result; and if the matching is successful, executing unlocking operation based on the target image. According to the image unlocking method and device, the face image is obtained, the image data of any pixel row of the face image are arranged in sequence at random, the sequenced images are obtained, the target body image is matched with the sample image, image unlocking is carried out, safe storage of the image data can be effectively guaranteed, and therefore effectiveness of terminal image unlocking is improved.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present application provides a computer-readable storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the image unlocking methods provided in the present application. For example, the instructions may perform the steps of:
when a face image is detected, triggering an unlocking instruction and acquiring an image to be processed according to the unlocking instruction, wherein the image to be processed comprises a plurality of pixel lines, and the pixel lines comprise a plurality of image data; determining pixel row identification to be processed and target sequencing information corresponding to the pixel row identification to be processed; sorting the image data according to the target sorting information and the pixel row identifier to be processed to obtain a target image; matching the target image with a preset sample image to obtain a matching result; and if the matching is successful, executing unlocking operation based on the target image.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the computer-readable storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the computer-readable storage medium may execute the steps in any image unlocking method provided in the embodiment of the present application, beneficial effects that any image unlocking method provided in the embodiment of the present application can achieve may be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The image unlocking method, the image unlocking device, the computer-readable storage medium and the terminal provided by the embodiment of the application are described in detail, a specific example is applied in the description to explain the principle and the implementation of the application, and the description of the embodiment is only used for helping to understand the method and the core idea of the application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. An image unlocking method, comprising:
when a face image is detected, triggering an unlocking instruction and acquiring an image to be processed according to the unlocking instruction, wherein the image to be processed comprises a plurality of pixel lines, and the pixel lines comprise a plurality of image data;
determining pixel row identification to be processed and target sequencing information corresponding to the pixel row identification to be processed;
sorting the image data according to the target sorting information and the pixel row identifier to be processed to obtain a target image;
matching the target image with a preset sample image to obtain a matching result;
and if the matching is successful, executing unlocking operation based on the target image.
2. The method according to claim 1, wherein the determining the pixel row identifier to be processed and the target sorting information corresponding to the pixel row identifier comprises:
randomly determining pixel row identifiers to be processed from a plurality of sample pixel identifiers in a data information base;
and randomly determining target sorting information from a plurality of sample sorting information corresponding to the pixel row identification to be processed.
3. The method according to claim 1, wherein the sorting the image data according to the target sorting information and the pixel line identifier to be processed comprises:
determining image data to be processed from the image data based on the pixel row identification to be processed;
sequentially arranging the image data to be processed according to the target ordering information to obtain a first arrangement result;
and determining a target image according to the first arrangement result.
4. The method of claim 1, wherein the triggering an unlock instruction and capturing a pending image according to the unlock instruction comprises:
starting a camera according to the unlocking instruction and monitoring an image picture in real time;
acquiring a plurality of frames of images in the image frame within a preset time period;
and determining an image to be processed from the multi-frame image.
5. The method according to claim 4, wherein the determining the image to be processed from the plurality of frames of images comprises:
acquiring image information of each frame of image, wherein the image information comprises image pixels;
matching the image pixels with preset image pixels to obtain a matching result;
and determining the image to be processed based on the image corresponding to the image pixel matched successfully.
6. The method of claim 1, wherein matching the target image with a preset sample image comprises:
determining a second arrangement result from the preset sample image based on the pixel line identification to be processed, wherein the second arrangement result is an arrangement result of image data corresponding to the pixel line identification to be processed in the preset sample image;
and matching the first arrangement result with the second arrangement result.
7. An image unlocking device, comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for triggering an unlocking instruction and acquiring an image to be processed according to the unlocking instruction when a face image is detected, the image to be processed comprises a plurality of pixel lines, and the pixel lines comprise a plurality of image data;
the device comprises a determining unit, a processing unit and a processing unit, wherein the determining unit is used for determining pixel row identification to be processed and target sequencing information corresponding to the pixel row identification to be processed;
the sorting unit is used for sorting the image data according to the target sorting information and the pixel row identifier to be processed to obtain a target image;
the matching unit is used for matching the target image with a preset sample image to obtain a matching result;
and the operation unit is used for executing unlocking operation based on the target image if the matching is successful.
8. The apparatus of claim 7, wherein the determining unit further comprises:
the first determining subunit is used for randomly determining pixel row identifiers to be processed from a plurality of sample pixel identifiers in the data information base;
and the second determining subunit is used for randomly determining target sorting information from a plurality of sample sorting information corresponding to the pixel row identifier to be processed.
9. A computer readable storage medium storing instructions adapted to be loaded by a processor to perform the steps of the image unlocking method according to any one of claims 1 to 6.
10. A terminal, characterized by comprising a processor and a memory, wherein the memory stores a plurality of instructions, and the processor loads the instructions to execute the steps in the image unlocking method according to any one of claims 1 to 6.
CN201911185187.6A 2019-11-27 2019-11-27 Image unlocking method and device, computer readable storage medium and terminal Active CN110889102B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911185187.6A CN110889102B (en) 2019-11-27 2019-11-27 Image unlocking method and device, computer readable storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911185187.6A CN110889102B (en) 2019-11-27 2019-11-27 Image unlocking method and device, computer readable storage medium and terminal

Publications (2)

Publication Number Publication Date
CN110889102A true CN110889102A (en) 2020-03-17
CN110889102B CN110889102B (en) 2023-06-20

Family

ID=69748986

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911185187.6A Active CN110889102B (en) 2019-11-27 2019-11-27 Image unlocking method and device, computer readable storage medium and terminal

Country Status (1)

Country Link
CN (1) CN110889102B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111967448A (en) * 2020-09-25 2020-11-20 北京百度网讯科技有限公司 Sample image processing method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731271A (en) * 2013-12-30 2014-04-16 北京工业大学 On-line face identity authentication method based on homomorphic encrypting and chaotic scrambling
CN106778613A (en) * 2016-12-16 2017-05-31 广东工业大学 A kind of auth method and device based on the matching of face cut zone
CN108616688A (en) * 2018-04-12 2018-10-02 Oppo广东移动通信有限公司 Image processing method, device and mobile terminal, storage medium
CN108960179A (en) * 2018-07-16 2018-12-07 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN109492414A (en) * 2018-11-07 2019-03-19 上海师范大学 More image encryptions and authentication method based on biometric keys
US20190147222A1 (en) * 2017-11-16 2019-05-16 Baidu Online Network Technology (Beijing) Co., Ltd. Method and apparatus for acquiring facial information

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731271A (en) * 2013-12-30 2014-04-16 北京工业大学 On-line face identity authentication method based on homomorphic encrypting and chaotic scrambling
CN106778613A (en) * 2016-12-16 2017-05-31 广东工业大学 A kind of auth method and device based on the matching of face cut zone
US20190147222A1 (en) * 2017-11-16 2019-05-16 Baidu Online Network Technology (Beijing) Co., Ltd. Method and apparatus for acquiring facial information
CN108616688A (en) * 2018-04-12 2018-10-02 Oppo广东移动通信有限公司 Image processing method, device and mobile terminal, storage medium
CN108960179A (en) * 2018-07-16 2018-12-07 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN109492414A (en) * 2018-11-07 2019-03-19 上海师范大学 More image encryptions and authentication method based on biometric keys

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李洵: "基于指纹与人脸特征级融合的多生物特征加密算法研究" *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111967448A (en) * 2020-09-25 2020-11-20 北京百度网讯科技有限公司 Sample image processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN110889102B (en) 2023-06-20

Similar Documents

Publication Publication Date Title
CN107977144B (en) Screen capture processing method and mobile terminal
US9779527B2 (en) Method, terminal device and storage medium for processing image
CN106778175B (en) Interface locking method and device and terminal equipment
CN104066009B (en) program identification method, device, terminal, server and system
CN107742072B (en) Face recognition method and mobile terminal
CN108427873B (en) Biological feature identification method and mobile terminal
CN109739429B (en) Screen switching processing method and mobile terminal equipment
US20170318061A1 (en) Method, device, and system for managing information recommendation
US9940448B2 (en) Unlock processing method and device
CN107835286B (en) Method for preventing mistaken unlocking and mobile terminal
CN108156329A (en) Method, mobile terminal and the computer readable storage medium that message is sent
US11250046B2 (en) Image viewing method and mobile terminal
CN106775194B (en) Application interface switching method and device
CN106791916B (en) Method, device and system for recommending audio data
CN108197934A (en) A kind of method of payment and terminal device
CN108551525B (en) State determination method of movement track and mobile terminal
CN108462794B (en) Information display method and mobile terminal
CN105320858B (en) Method and device for rapidly displaying application icons
CN109067975A (en) A kind of method for managing contact person information and terminal device
CN110336917B (en) Picture display method and device, storage medium and terminal
CN110889102B (en) Image unlocking method and device, computer readable storage medium and terminal
CN109164951B (en) Mobile terminal operation method and mobile terminal
CN110891262A (en) Bluetooth pairing method, system and terminal equipment
CN107608776B (en) Method for previewing face information and related product
CN111163221B (en) Group address book updating method and device, storage medium and terminal equipment

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