Iris image display method and system, iris lock and medium

By acquiring and analyzing iris images, combined with the preset image library and user behavior habits, it provides multiple display methods and beautification processes, solving the problem of a single display method of the existing iris lock and improving the user experience.

CN118568280APending Publication Date: 2024-08-30DESSMANN CHINA MACHINERY & ELECTRONICS +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410633081.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-21
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The iris image display method in the existing iris lock is single, not beautifying, lacks interest and personalization, and cannot meet users' needs for an intelligent unlocking experience.

Method used

By obtaining the target iris image, the eye status is determined, and the target display image is filtered based on the preset image library and eye status, providing multiple display methods and beautifying processing to enhance the user experience.

Benefits of technology

It provides a more beautified, interesting and personalized display image, improves the user's unlocking experience of iris lock, and meets the needs of intelligent use.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568280A
    Figure CN118568280A
Patent Text Reader

Abstract

The invention relates to the technical field of intelligent electronic locks, and discloses an iris image display method and system, an iris lock and a medium, and the method comprises the steps: obtaining a target iris image which is an eye image containing the left and right eyes of a target user; determining eye states based on the target iris image, wherein the eye states comprise an eye closing state, an eye semi-opening state, a normal eye opening state and an eye pedal state; determining a target display image based on a preset image library and the eye state; and displaying the target display image. The problem that iris image display in an existing iris lock is monotonous and unbeautified is solved, interesting and personalized display images can be provided for display, the use experience of a user on the iris lock is enhanced, and the intelligent use requirement of the iris lock is met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent electronic locks, and in particular to an iris image display method, system, iris lock and medium. Background Art

[0002] A smart lock is a lock that is different from a traditional mechanical lock and is more intelligent in terms of user identification, security, and manageability. As the executive component of the door locking system in the access control system, with the rapid development of technology, a variety of unlocking methods have emerged.

[0003] Iris recognition is widely used in smart locks due to its high accuracy, good stability, non-contact collection, and non-invasiveness. Smart locks with iris recognition, also known as iris locks, are mainly unlocked through the iris module at the lock end. Specifically, the iris module mainly illuminates the user's eye area through multiple sets of infrared lighting sources, and the iris telephoto lens captures a clear iris image and displays it on the iris display. However, current iris displays are mostly black and white images, which have very poor sensory effects during user use and lack visual appeal. In some cases, they are even a bit scary when used at night, which can easily bring an uncomfortable experience to users.

[0004] In summary, the iris image display in the existing iris lock appears monotonous, unflattering, lacking in interest and personalization to the user, and is difficult to meet the user's demand for the use of the intelligent iris lock. Summary of the invention

[0005] In view of this, the present invention provides an iris image display method, system, iris lock and medium to solve the problems that the existing iris image display mode is single, not beautifying, lacks interest and personalization, cannot provide users with more display modes, and a more beautiful and personalized door lock unlocking experience, and is difficult to meet the intelligent use needs of iris locks.

[0006] In a first aspect, the present invention provides an iris image display method, the method comprising:

[0007] Acquire a target iris image, where the target iris image is an eye image including the left and right eyes of the target user;

[0008] Determine the eye state based on the target iris image, the eye state includes: closed eye state, half-open eye state, normally open eye state, wide eye state;

[0009] Determine a target display image based on a preset image library and an eye state;

[0010] The target display image is displayed.

[0011] The present invention determines the eye states of the acquired eye images of the left and right eyes of the target user, and based on the determination result, selects and displays the corresponding target display images from a preset image library, thereby providing the target user with a variety of display modes, presenting more beautiful, interesting and personalized display images, enhancing the target user's unlocking experience of the iris lock, and meeting the intelligent use requirements of the iris lock.

[0012] In an optional implementation, determining the eye state based on the target iris image includes:

[0013] Detecting whether the eyes in the target iris image are in a closed state;

[0014] When the eye state in the target iris image is not in the closed eye state, correspondingly extracting the left eye image and the right eye image from the target iris image;

[0015] Filtering a target processing image from the left eye image and the right eye image, and correspondingly extracting eye contour information and iris region information from the target processing image;

[0016] Determine the open eye length, open eye height, iris area and eye area based on the eye contour information and the iris area information, wherein the open eye length is the longest horizontal distance of the eye in the open eye state, and the open eye height is the longest vertical distance of the eye in the open eye state;

[0017] The eye state is determined based on the open eye length and the open eye height, and / or the eye state is determined based on the iris area and the eye area.

[0018] The present invention can detect whether the eyes in the target iris image are in a closed state, and can preferentially distinguish between the open eye state and the closed eye state in the image, and calculate the open eye length, open eye height, iris area and eye area of ​​the image in the open eye state and determine the specific eye opening degree based on them, which can ensure the accurate recognition of the eye state and further improve the display accuracy of the target display image.

[0019] In an optional implementation, determining the eye state based on the eye opening length and the eye opening height includes:

[0020] Calculate the first ratio of open eye length to open eye height;

[0021] Determining whether the first ratio is greater than a preset first distance threshold;

[0022] When the first ratio is greater than a preset first distance threshold, determining that the eye state is a half-open state;

[0023] When the first ratio is not greater than a preset first distance threshold, determining whether the first ratio is greater than a preset second distance threshold;

[0024] When the first ratio is greater than a preset second distance threshold, determining that the eye state is a normal open eye state;

[0025] When the first ratio is not greater than the preset second distance threshold, determining whether the first ratio is less than a preset third distance threshold, wherein the preset first distance threshold is greater than the preset second distance threshold, the preset second distance threshold is greater than the preset third distance threshold, and the preset third distance threshold is greater than 0;

[0026] When the first ratio is less than a preset third distance threshold, it is determined that the eye state is a wide-eyed state.

[0027] The present invention determines the specific eye state by calculating the first ratio of the open eye length to the open eye height, and comparing the first ratio with the preset distance threshold corresponding to different eye opening degrees. This can ensure the accuracy of eye state determination, help improve the iris recognition accuracy of subsequent iris locks, and meet the intelligent use requirements of iris locks.

[0028] In an optional implementation, determining the eye state based on the iris area and the eye area includes:

[0029] calculating a second ratio of the iris area to the eye area;

[0030] Determining whether the second ratio is less than a preset first area threshold;

[0031] When the second ratio is less than the preset first area threshold, determining that the eye state is a half-open state;

[0032] When the second ratio is not less than the preset first area threshold, determining whether the second ratio is less than the preset second area threshold;

[0033] When the second ratio is less than a preset second area threshold, determining that the eye state is a normal open eye state;

[0034] When the second ratio is not less than the preset second area threshold, determining whether the second ratio is equal to the preset third area threshold, wherein the preset first area threshold is greater than 0, the preset first area threshold is less than the preset second area threshold, and the preset second area threshold is less than the preset third area threshold;

[0035] When the second ratio is equal to the preset third area threshold, it is determined that the eye state is the wide-eyed state.

[0036] The present invention determines the specific eye state by calculating the second ratio of the iris area to the eye area and comparing the second ratio with the preset area threshold corresponding to different eye opening degrees. The eye state determination accuracy can be guaranteed, which helps to improve the iris recognition accuracy of the subsequent iris lock and meets the intelligent use requirements of the iris lock.

[0037] In an optional implementation, the preset image library includes: an eye state diagram and candidate avatars, wherein the candidate avatars are images without left and right eyes, and the types of candidate avatars include human avatars, animal avatars, and cartoon avatars; determining a target display image based on the preset image library and the eye state includes:

[0038] Filtering a corresponding eye state image from a preset image library based on the eye state;

[0039] Filter corresponding candidate avatars from the preset image library based on the target user's behavior habits;

[0040] The candidate avatars are fused with the eye state map to obtain the target display image.

[0041] The present invention selects an eye state graph corresponding to the eye state from a preset image library, determines the corresponding candidate avatar in combination with the behavioral habits of the target user, and merges it with the eye state graph to obtain a target display image, which can take into account the user's personalized iris image display needs and enhance the user's experience of using the iris lock.

[0042] In an optional implementation, before displaying the target display image, the iris image display method further includes:

[0043] Determine each element of the target display interface based on a preset display template, wherein the target display interface is an image customized by the user; the preset display template includes at least one element of a prompt, a display image, a prompt icon, a display font, and a display background;

[0044] Based on the elements of the target display interface and the target display image, layout is performed to obtain the target display image customized by the user.

[0045] The present invention takes into account the personalized needs of different users for iris image display, and designs a process for typeset processing the display interface based on user preferences to obtain a user-customized target display image. It can provide users with a variety of display modes, present more beautiful, interesting and personalized display images, and enhance the target user's unlocking experience of the iris lock.

[0046] In an optional implementation, before displaying the target display image, the iris image display method further includes:

[0047] The target display image is beautified to obtain a beautified target display image, wherein the beautification includes at least one of cropping and composition processing, color adjustment processing, sharpening and blurring processing, adding special effects and filters, adding text and stickers, synthesis and splicing processing.

[0048] The present invention performs beautification processing on the target display image, can ensure the display effect of the target display image, presents a more beautified display image to the user, and enhances the user's experience of using the iris lock.

[0049] In a second aspect, the present invention provides an iris image display system, the system comprising:

[0050] An acquisition module is used to acquire a target iris image, where the target iris image is an eye image including the left and right eyes of the target user;

[0051] A first determination module is used to determine the eye state based on the target iris image, where the eye state includes: closed eye state, half-open eye state, normally open eye state, and wide-open eye state;

[0052] A second determination module, used for determining a target display image based on a preset image library and an eye state;

[0053] The display module is used to display the target display image.

[0054] The iris image display system of the present invention determines the eye states of the acquired eye images of the left and right eyes of the target user, and selects and displays the corresponding target display images from a preset image library based on the determination results. It can provide the target user with a variety of display modes, present a more beautiful, interesting and personalized display image, enhance the target user's unlocking experience of the iris lock, and meet the intelligent use requirements of the iris lock.

[0055] In a third aspect, the present invention provides an iris lock, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes an iris image display method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0056] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute an iris image display method according to the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0058] Figure 1is a schematic flow chart of an iris image display method according to an embodiment of the present invention;

[0059] Figure 2 is a flow chart of another iris image display method according to an embodiment of the present invention;

[0060] Figure 3 is a schematic diagram of an iris image;

[0061] Figure 4 It is a schematic diagram of the open eye length and open eye height in the iris image;

[0062] Figure 5 is a schematic diagram showing an image;

[0063] Figure 6 It is a schematic diagram of the structure of the iris lock system;

[0064] Figure 7 It is a flowchart of the user-defined display;

[0065] Figure 8 It is a schematic diagram of the recognition process based on the animation display of iris images;

[0066] Fig. 9 is a structural block diagram of an iris image display system according to an embodiment of the present invention;

[0067] Fig.10 It is a schematic diagram of the structure of an iris lock according to an embodiment of the present invention. DETAILED DESCRIPTION

[0068] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0069] An embodiment of the present invention provides an iris image display method embodiment. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0070] In this embodiment, a method for displaying an iris image is provided. Figure 1 FIG. 1 is a flow chart of an iris image display method according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:

[0071] Step S101, obtaining a target iris image, where the target iris image is an eye image including the left and right eyes of a target user.

[0072] It should be noted that the specific method of acquiring the target iris image in this embodiment is not limited here, and is adaptively selected based on actual needs. For example, the target iris image of the target user is acquired through a smart door lock equipped with an iris module (which includes an infrared lighting source and an iris telephoto lens), i.e., an iris lock.

[0073] Step S102, determining the eye state based on the target iris image, the eye state including: closed eye state, half-open eye state, normally open eye state, and wide-open eye state.

[0074] In actual applications, eye states are roughly divided into closed eye state and open eye state. This embodiment takes into account the different degrees of eye opening of users in the open eye state in actual applications, and accordingly sets the half-open eye state, normal open eye state, and wide-open eye state in the open eye state, which can refine the categories of eye states and help improve the display effect of subsequent displayed images.

[0075] Step S103, determining a target display image based on a preset image library and the eye state.

[0076] In this embodiment, the specific content of the preset image library is not limited here, and is adaptively adjusted based on actual needs. For example, the preset image library contains iris authentication images of legitimate users stored in the iris lock; or the preset image library contains display patterns selected by different users according to their respective preferences, such as display patterns of cartoon characters, animals or other patterns, which are only for exemplary description.

[0077] Step S104: display the target display image.

[0078] In this embodiment, the specific implementation means for displaying the target display image is not limited here, and is adaptively adjusted based on actual needs. For example, it can be displayed on the display screen of the iris lock terminal; or on the APP of the mobile phone terminal connected to the iris lock terminal; or on the display of the cloud connected to the iris lock terminal; it is only for exemplary description and is not limited to this.

[0079] The iris image display method of the embodiment of the present invention determines the eye status of the acquired eye images of the left and right eyes of the target user, and selects and displays the corresponding target display image from a preset image library based on the determination result. It can provide the target user with multiple display modes and present a more beautiful, interesting and personalized display image, thereby enhancing the target user's unlocking experience of the iris lock and meeting the intelligent use requirements of the iris lock.

[0080] In this embodiment, a method for displaying an iris image is provided. Figure 2 FIG. 1 is a flow chart of another iris image display method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0081] Step S201, obtain a target iris image, which is an eye image containing the left and right eyes of the target user. Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.

[0082] Step S202, determining the eye state based on the target iris image, the eye state including: closed eye state, half-open eye state, normally open eye state, and wide-open eye state.

[0083] Specifically, determining the eye state based on the target iris image in the above step S202 includes:

[0084] Step S2021, detecting whether the eyes in the target iris image are in a closed state.

[0085] It should be noted that the specific method of eye-closing state detection in this embodiment is not limited here, and can be adaptively adjusted based on actual needs. For example, open-eye images and closed-eye images are collected to form a training data set, and the images are input into a pre-trained image classification model for training to obtain a trained image classification model; the target iris image to be detected is input into the model to obtain a corresponding classification result, and whether the eye state is in the closed-eye state is determined based on the classification result, which is only an exemplary description.

[0086] Step S2022: When the eyes in the target iris image are not in the closed eye state, a left eye image and a right eye image are correspondingly extracted from the target iris image.

[0087] In this embodiment, the specific extraction method of the left eye image and the right eye image is not limited here, and is obtained based on conventional operation means in the field. For example, the target iris image is segmented to obtain a segmented image containing the left eye or the right eye, which is only an exemplary description.

[0088] Step S2023, screening the target processing image from the left eye image and the right eye image, and correspondingly extracting the eye contour information and the iris region information from the target processing image.

[0089] In this embodiment, the screening criteria for the target processed image are not limited here, and can be adaptively adjusted based on the image quality and actual project requirements. For example, the image is evaluated based on human subjective perception, that is, the image with good quality is screened from the left eye image and the right eye image, and it is used as the target processed image; or based on an objective evaluation method, that is, a mathematical model is used to give a quantitative score of the image, and the quality of the image is evaluated based on the quantitative score, which is only an exemplary description.

[0090] It should be noted that the specific content and acquisition method of the eye contour information and iris area information in this embodiment are not limited here, and are adaptively adjusted based on actual application scenarios and conventional operating methods in the field. For example, the target processing image is detected by a target detection algorithm model, such as the YOLO series algorithm model, to obtain eye contour information consisting of the upper eyelid margin line, the lower eyelid margin line and the inner and outer eye corners; and the iris area information is identified by iris recognition technology, which is only an exemplary description.

[0091] Step S2024, determining the open eye length, open eye height, iris area and eye area based on the eye contour information and the iris area information, wherein the open eye length is the longest horizontal distance of the eyes in the open state, and the open eye height is the longest vertical distance of the eyes in the open state.

[0092] It should be noted that, in this embodiment, the determination of the open eye length, open eye height, iris area and eye area can be performed by performing multiple calculations and then taking the average operation to ensure the accuracy of the numerical calculation.

[0093] Step S2025, determining the eye state based on the open eye length and the open eye height, and / or determining the eye state based on the iris area and the eye area.

[0094] In this embodiment, the eye state is determined based on the eye opening length and the eye opening height, including:

[0095] Step A1, calculating a first ratio of the open eye length to the open eye height.

[0096] Step A2: determine whether the first ratio is greater than a preset first distance threshold.

[0097] Step A3: when the first ratio is greater than a preset first distance threshold, determining that the eye state is a half-open state.

[0098] Step A4: when the first ratio is not greater than the preset first distance threshold, determine whether the first ratio is greater than the preset second distance threshold.

[0099] Step A5: when the first ratio is greater than a preset second distance threshold, determining that the eye state is a normal open eye state.

[0100] Step A6, when the first ratio is not greater than the preset second distance threshold, determine whether the first ratio is less than the preset third distance threshold, wherein the preset first distance threshold is greater than the preset second distance threshold, the preset second distance threshold is greater than the preset third distance threshold, and the preset third distance threshold is greater than 0.

[0101] It should be noted that in this embodiment, the specific values ​​of the preset first distance threshold, the preset second distance threshold and the preset third distance threshold are adaptively adjusted based on actual needs. For example, the preset first distance threshold is 3, the preset second distance threshold is 2.5, and the preset third distance threshold is 2. This is only for illustration.

[0102] Step A7: when the first ratio is less than a preset third distance threshold, determining that the eye state is a wide-eyed state.

[0103] The embodiment of the present invention determines the specific eye state by calculating the first ratio of the open eye length to the open eye height, and judging the first ratio with the preset distance threshold corresponding to different eye opening degrees, thereby ensuring the accuracy of eye state judgment, helping to improve the iris recognition accuracy of subsequent iris locks, and meeting the intelligent use requirements of iris locks.

[0104] In this embodiment, the eye state is determined based on the iris area and the eye area, including:

[0105] Step B1, calculating a second ratio of the iris area to the eye area.

[0106] Step B2, determining whether the second ratio is less than a preset first area threshold.

[0107] Step B3: when the second ratio is less than a preset first area threshold, determining that the eye state is a half-open state.

[0108] Step B4, when the second ratio is not less than the preset first area threshold, determine whether the second ratio is less than the preset second area threshold.

[0109] Step B5: when the second ratio is less than a preset second area threshold, determining that the eye state is a normal open eye state.

[0110] Step B6, when the second ratio is not less than the preset second area threshold, determine whether the second ratio is equal to the preset third area threshold, wherein the preset first area threshold is greater than 0, the preset first area threshold is less than the preset second area threshold, and the preset second area threshold is less than the preset third area threshold.

[0111] It should be noted that, in this embodiment, the specific values ​​of the preset first area threshold, the preset second area threshold, and the preset third area threshold are not limited here, and are all adaptively adjusted based on actual needs. For example, the preset first area threshold is 50%, the preset second area threshold is 70%, and the preset third area threshold is 90%, which is only for illustration.

[0112] Step B7: when the second ratio is equal to a preset third area threshold, determining that the eye state is a wide-eyed state.

[0113] The embodiment of the present invention determines the specific eye state by calculating the second ratio of the iris area to the eye area and comparing the second ratio with the preset area thresholds corresponding to different eye opening degrees. This can ensure the accuracy of eye state determination, help improve the iris recognition accuracy of subsequent iris locks, and meet the requirements for intelligent use of iris locks.

[0114] It should be noted that, in practical applications, if one wants to improve the accuracy of eye status determination, one can simultaneously consider determining the eye status based on the eye opening length and eye opening height, and determining the eye status based on the iris area and eye area. That is, only when the determination conditions of the above two aspects are met at the same time can the corresponding eye status under different eye opening degrees be finally determined.

[0115] Step S203, determining a target display image based on a preset image library and the eye state.

[0116] In this embodiment, the preset image library includes: an eye state diagram and candidate avatars, wherein the candidate avatars are images without the left and right eyes, and the types included include human avatars, animal avatars, and cartoon avatars. It should be noted that the specific types of human avatars, animal avatars, and cartoon avatars in the candidate avatars in the preset image library are not limited here, and are adaptively adjusted based on actual user usage needs. For example, the cartoon avatars are cartoon cats, cartoon rabbits, cartoon pigs, etc., which are only used as an exemplary description.

[0117] Specifically, the above step S203 includes:

[0118] Step S2031, based on the eye state, a corresponding eye state image is selected from a preset image library.

[0119] Step S2032: Filter corresponding candidate avatars from a preset image library according to the behavior habits of the target user.

[0120] In this embodiment, the specific content of the target user's behavior habits is not limited here, and is adaptively adjusted based on the actual user's behavior preferences. For example, user A likes pink cartoon patterns, such as cartoon cats, which is only an exemplary description.

[0121] Step S2033, fusing the candidate avatar with the eye state map to obtain a target display image.

[0122] The embodiment of the present invention selects an eye state graph corresponding to the eye state from a preset image library, determines the corresponding candidate avatar in combination with the behavioral habits of the target user, and merges it with the eye state graph to obtain a target display image, which can take into account the user's personalized iris image display needs and enhance the user's experience of using the iris lock.

[0123] Step S204: Display the target display image. Figure 1 Step S104 of the illustrated embodiment will not be described in detail here.

[0124] It should be noted that, in order to improve the display preferences of different users, that is, to realize user-defined image display, before displaying the target display image, the iris image display method of this embodiment further includes:

[0125] Step C1, determining the elements of the target display interface based on a preset display template, wherein the target display interface is a user-defined display image; the preset display template includes at least one element of a prompt, a display image, a prompt icon, a display font, and a display background.

[0126] In this embodiment, the specific content of the preset display template is adaptively adjusted based on actual user needs. For example, for an application scenario where a user performs iris lock recognition, the user likes the display screen to display a full-screen iris image, and the corresponding preset display template only includes the display image, which is only used as an exemplary description.

[0127] Step C2, performing layout based on the elements of the target display interface and the target display image to obtain a target display image customized by the user.

[0128] The embodiment of the present invention takes into account the personalized needs of different users for iris image display, and designs a process for typeset processing the display interface based on user preferences to obtain a target display image customized by the user. It can provide users with a variety of display modes, present a more beautiful, interesting and personalized display image, and enhance the target user's unlocking experience of the iris lock.

[0129] It should be noted that, in order to improve the quality of the displayed image, the image to be displayed can be beautified to improve its beautification and enhance the user's experience. That is, before displaying the target display image, the iris image display method of this embodiment also includes: beautifying the target display image to obtain the beautified target display image, wherein the beautification processing includes at least one of cropping and composition processing, color adjustment processing, sharpening and blurring processing, adding special effects and filter processing, adding text and sticker processing, synthesis and splicing processing. Specifically, beautifying the target display image can ensure the display effect of the target display image, present a more beautified display image to the user, and enhance the user's experience of using the iris lock.

[0130] In a specific embodiment, the iris image display method of this embodiment is applied to a smart door lock terminal, namely, an iris lock. It should be noted that the iris lock is equipped with an iris image acquisition device, namely, an iris module (which includes an infrared illumination source and an iris telephoto lens) and a storage module (which is used to store one or more preset image libraries in advance). The iris image acquired by the iris module is Figure 3 As shown. Figure 3 It can be seen that the iris image captured by the iris telephoto lens and displayed through the iris display screen is generally a black and white image, which will cause an uncomfortable sensory experience when the user uses it at night. In addition, the storage module image library in this embodiment contains iris images corresponding to the identity information entry process and iris recognition process of different users through the iris lock; different celebrity portraits, cartoon characters or animal portraits, etc., which can be adaptively added or deleted based on actual needs. It should be noted that the image of a person or animal needs to include a variety of eye state diagrams, such as: closed eyes, half-closed eyes, normal open eyes, wide eyes, etc. Specifically, through the iris lock with the iris image display method of this embodiment built in, when the user enters the iris and iris recognition, the iris display screen can be changed to display images of people, animals, cartoons, etc. with colors; and the actual state of the target user's eyes opened can be tracked in real time through the iris lens, and the user's favorite cartoon character or cartoon animal The corresponding eye state diagram is selected from the image library according to the user's eye opening degree for real-time mapping, so as to present a dynamic color real-time video display to the target user.

[0131] In a specific embodiment, the actual state of the target user's eyes being open is tracked in real time through an iris lens, that is, the process of determining the eye state of the user according to the degree of eye opening, includes: firstly detecting the closed eye state of the iris image captured by the iris lens; when it is detected that the user is not in the closed eye state, selecting the eye image corresponding to the larger eye from the image areas corresponding to the left and right eyes based on the iris image to perform subsequent eye opening degree determination; measuring the open eye height and open eye length in the eye image, and determining whether the user is in a half-open eye state, a normally open eye state, or a wide-eyed eye state according to the open eye length / open eye height and the proportion of the displayed iris area. Figure 4 It is a schematic diagram of the open eye length and open eye height in the iris image. Specifically, if only half of the iris area can be seen in the eye socket or the open eye length / open eye height>3.5, the eye state is determined to be half-open; if the area of ​​the iris in the eye socket is between 50% and 80% or the open eye length / open eye height is between 2.5 and 3.5, the eye state is determined to be a normal open eye state; if the iris is completely unobstructed and there is white of the eye above and below or the open eye length / open eye height<2.0, the eye state is determined to be a wide-eyed state. Based on the determined eye state, the user's favorite cartoon animal and its corresponding eye state map are selected from the map image library for fusion to obtain the final display image and display it. Figure 5 is a schematic diagram showing an image.

[0132] In a specific embodiment, the final display image obtained above is beautified, that is, it is rendered in color, the face of the person in the portrait is beautified by face slimming, skin smoothing, double eyelids, lipstick coloring, etc., or beautification operations such as adding a hat and a necklace are performed, so as to provide users with a smooth and interactive user experience.

[0133] In a specific embodiment, considering the user's customization requirements and the existing implementation of such requirements, one or more sets of sticker image libraries are often preset in the local storage module of the lock end to realize the customized display of iris images. However, the implementation of this method requires stronger hardware and larger storage space (i.e., storage chip) support, which requires an increase in hardware investment costs. This embodiment takes into account the actual hardware cost, that is, the local storage space is limited, and only a limited user preference display interface can be saved, and there is no extra space to store the sticker image library. Based on the hardware architecture of the existing iris lock, by deploying various backgrounds, templates, portraits, cartoons and other UI (User Interface) elements in the cloud, the user can select various elements that make up the UI through the mobile phone APP, generate a preview effect and click to download, the APP will notify the cloud to wake up the lock body first, and then download the UI elements selected by the user to replace the previous UI elements, and superimpose various elements in the local lock end system. When the user triggers iris recognition next time, the complete UI and animation effects will be presented, and the replaceable user-defined UI interface and animation effects can be realized without increasing hardware costs.

[0134] Specifically, the iris lock that integrates the aforementioned iris image display method and the user's customized requirements (supporting UI download) is structured as shown in the following diagram: Figure 6 As shown. Figure 6 It can be seen that the system includes: a lock control unit, a cat's eye and networking unit, and an iris unit. Among them, the lock control unit is mainly responsible for the opening and closing of the door lock, the awakening of the cat's eye and networking unit and the iris unit, and the communication and scheduling between the units; the cat's eye and networking unit can be awakened by the radar or the lock control unit to realize the capture of the stay outside the door, the long-term low-power communication with the cloud server, and the images and videos captured by the cat's eye are processed and uploaded to the cloud server; the iris unit is used to realize the registration and recognition of the iris, and the recognition result is fed back to the lock control unit, so that the lock control unit can control the opening and closing of the iris lock.

[0135] In a specific embodiment, Figure 7 It is a user-defined display flow chart. It should be noted that mobile phone A, the server and the smart door lock can all be connected in communication, wherein mobile phone A communicates with the smart door lock through the APP. Figure 7It can be seen that the user previews the good UI synthesis effect on the mobile phone (that is, selects various elements that make up the UI in the APP of mobile phone A and generates a UI effect preview that satisfies the user). After the user clicks to download, the cloud (that is, the server) will issue a wakeup command (which is used to wake up the smart door lock) and use it through the WiFi router associated with the smart door lock (that is, WIFI low-power keep-alive) to wake up the smart door lock. If the wakeup is successful, the smart door lock will return a response message to the cloud (that is, shake hands with the cloud, receive download notifications, and execute download commands); after the smart door lock wakes up, it notifies the cat's eye module through the lock control MCU to download the various elements of the UI through WiFi, and then saves them to the storage space of the iris module through the serial port, and synthesizes the UI interface; then when the iris image is detected next time (that is, the iris unit is triggered to work), it will be displayed after mapping according to the UI previewed by the user (that is, the iris display screen displays the latest UI). Among them, the process of synthesizing the UI of the iris unit of the smart door lock includes: first, select the UI layout, which is roughly the position of the three parts of the prompt, the graphic icon and the iris image displayed on the screen. The user first selects the most favorite layout from the various combinations of the three components; then selects the font and style of the prompt, the graphic icon, and the iris image, and selects the respective content and background color for mapping and splicing. Through this process, the latest UI can be obtained.

[0136] It should be noted that the cloud server will store a large number of UI galleries, and the various templates, fonts, cartoon characters, cartoon animals and other UI elements in the UI gallery can be adaptively added and deleted based on actual needs. Among them, the template is the selected typesetting interface (i.e. the display screen interface of the smart door lock), which includes prompts, prompt icons and the position of the iris image displayed on the screen, such as the display screen only contains the iris image, the display screen displays prompts, iris images, prompt icons, etc. in sequence. Prompts include but are not limited to: registering, identifying, registration successful, registration identification, identification successful, please come closer, please step back. Prompts are used to inform users of the progress of registration, prompt users to stand and other information. Users cannot change the content of the prompts at will, but can choose the background color and font of the prompts, such as font size 10 or 12; style is Songti, or faint Yahei, etc. The above content is only for exemplary description and is not limited to this.

[0137] In a specific embodiment, Figure 8 This is a schematic diagram of the recognition process based on the animation display of the iris image. It should be noted that mobile phone A communicates with the smart door lock through the APP. Figure 8It can be seen that the user selects a normal open-eye image of a person / animal / cartoon in the APP of mobile phone A, and previews the video effects of closed eyes-half-open eyes-normal open eyes-wide eyes, until the user is satisfied, the lock communicates with the lock end through Bluetooth to wake up the smart door lock; after the smart door lock is successfully awakened, it shakes hands with the cloud; the cloud confirms the successful awakening and notifies the lock of the image used; the default image in the local image library of the smart door lock is changed to the image selected by the user. In the subsequent iris recognition process of the smart door lock, if the radar / infrared of the smart door lock detects that someone is approaching, the iris is awakened (iris image acquisition is performed); and it is determined whether to perform the process of recognizing the iris; specifically, the opening and closing state of the human eye can be tracked, that is, the image selected by the user is mapped in real time on the comment; or the iris image collected by the iris infrared camera is compared one by one with the template at the time of registration. If the comparison is successful, the smart door lock is unlocked, and the recognition success is displayed on the screen and announced by voice; if the comparison fails, the recognition failure is displayed on the screen and announced by voice.

[0138] In summary, the embodiments of the present invention provide an iris lock that supports animation display effects and UI downloads, as well as its corresponding iris recognition process, which can display the local black and white iris image of the existing iris lock in rich animations; and can customize the layout of the displayed image and beautify the displayed image according to the user's preferences, providing users with more and richer iris image display methods, as well as a more beautiful and personalized door lock unlocking experience, which greatly meets the intelligent use needs of the iris lock.

[0139] In this embodiment, an iris image display system is also provided, which is used to implement the above embodiments and preferred implementations, and the descriptions that have been made will not be repeated. As the term "module" is used below, it can implement a combination of software and / or hardware for a predetermined function. Although the system described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0140] The present invention provides an iris image display system, such as Fig. 9 As shown, the system includes:

[0141] The acquisition module 901 is used to acquire a target iris image, where the target iris image is an eye image including the left and right eyes of the target user.

[0142] The first determination module 902 is used to determine the eye state based on the target iris image, where the eye state includes: closed eye state, half-open eye state, normally open eye state, and wide-open eye state.

[0143] The second determination module 903 is used to determine the target display image based on the preset image library and the eye state.

[0144] The display module 904 is used to display the target display image.

[0145] In some optional embodiments, the first determination module 902 includes: a first determination submodule, a second determination submodule, a third determination submodule, a fourth determination submodule and a fifth determination submodule; wherein the first determination submodule is used to detect whether the eye state in the target iris image is in a closed eye state; the second determination submodule is used to extract the left eye image and the right eye image from the target iris image when the eye state in the target iris image is not in a closed eye state; the third determination submodule is used to screen the target processed image from the left eye image and the right eye image, and extract eye contour information and iris area information from the target processed image; the fourth determination submodule is used to determine the open eye length, open eye height, iris area and eye area based on the eye contour information and iris area information, wherein the open eye length is the longest distance of the eye in the horizontal direction in the open eye state, and the open eye height is the longest distance of the eye in the vertical direction in the open eye state; the fifth determination submodule is used to determine the eye state based on the open eye length and the open eye height, and / or determine the eye state based on the iris area and the eye area.

[0146] In some optional embodiments, the fifth determination submodule includes: a first determination unit, a second determination unit, a third determination unit, a fourth determination unit, a fifth determination unit, a sixth determination unit and a seventh determination unit; wherein the first determination unit is used to calculate a first ratio of open eye length to open eye height; the second determination unit is used to determine whether the first ratio is greater than a preset first distance threshold; the third determination unit is used to determine that the eye state is a half-open eye state when the first ratio is greater than the preset first distance threshold; the fourth determination unit is used to determine whether the first ratio is greater than a preset second distance threshold when the first ratio is not greater than the preset first distance threshold; the fifth determination unit is used to determine that the eye state is a normal open eye state when the first ratio is greater than the preset second distance threshold; the sixth determination unit is used to determine whether the first ratio is less than a preset third distance threshold when the first ratio is not greater than the preset second distance threshold, wherein the preset first distance threshold is greater than the preset second distance threshold, the preset second distance threshold is greater than the preset third distance threshold, and the preset third distance threshold is greater than 0; the seventh determination unit is used to determine that the eye state is a wide-eyed state when the first ratio is less than the preset third distance threshold.

[0147] In some optional embodiments, the fifth determination submodule includes: a first judgment unit, a second judgment unit, a third judgment unit, a fourth judgment unit, a fifth judgment unit, a sixth judgment unit and a seventh judgment unit; wherein the first judgment unit is used to calculate the second ratio of the iris area to the eye area; the second judgment unit is used to judge whether the second ratio is less than a preset first area threshold; the third judgment unit is used to determine that the eye state is a half-open state when the second ratio is less than the preset first area threshold; the fourth judgment unit is used to judge whether the second ratio is less than a preset second area threshold when the second ratio is not less than the preset first area threshold; the fifth judgment unit is used to determine that the eye state is a normal open state when the second ratio is less than the preset second area threshold; the sixth judgment unit is used to judge whether the second ratio is equal to a preset third area threshold when the second ratio is not less than the preset second area threshold, wherein the preset first area threshold is greater than 0, the preset first area threshold is less than the preset second area threshold, and the preset second area threshold is less than the preset third area threshold; the seventh judgment unit is used to determine that the eye state is a wide-eyed state when the second ratio is equal to the preset third area threshold.

[0148] In some optional embodiments, the second determination module 903 includes: a first screening submodule, a second screening submodule and a third screening submodule; wherein the first screening submodule is used to screen the corresponding eye state map from the preset image library based on the eye state; the second screening submodule is used to screen the corresponding candidate avatars from the preset image library according to the behavioral habits of the target user; the third screening submodule is used to merge the candidate avatars with the eye state map to obtain the target display image.

[0149] In some optional embodiments, the system also includes: a user-defined module and a beautification processing module; wherein the user-defined module is used to determine the elements of the target display interface based on a preset display template, wherein the target display interface is an image customized by the user; the preset display template includes at least one element of a prompt, a display image, a prompt icon, a display font, and a display background; based on the elements of the target display interface and the target display image, typeset to obtain a target display image customized by the user; the beautification processing module is used to beautify the target display image to obtain a beautified target display image, wherein the beautification processing includes at least one of cropping and composition processing, color adjustment processing, sharpening and blurring processing, adding special effects and filter processing, adding text and sticker processing, synthesis and splicing processing.

[0150] The further functional description of each of the above modules is the same as that of the above corresponding embodiments and will not be repeated here.

[0151] The iris image display system in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0152] The iris image display system of the embodiment of the present invention can provide users with multiple display modes by determining the eye status in the iris image and selecting and displaying the corresponding target display image from a preset image library based on the determination result, thereby presenting a more beautiful, interesting and personalized display image, enhancing the user's unlocking experience of the iris lock and meeting the intelligent use requirements of the iris lock.

[0153] The present invention also provides an iris lock. Fig.10 , Fig.10 is a schematic diagram of the structure of the iris lock provided by an optional embodiment of the present invention. Fig.10 As shown, the iris lock includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses for communication, and can be installed on a common motherboard or installed in other ways as needed. The processor can process instructions executed in the iris lock, including instructions stored in or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple iris locks can be connected, and each iris lock provides part of the necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Fig.10 A processor 10 is taken as an example.

[0154] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0155] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.

[0156] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and applications required for at least one function; the data storage area may store data created according to the use of the iris lock, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage devices. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the iris lock via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0157] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0158] The iris lock further includes a communication interface 30 for the main control chip to communicate with other devices or a communication network.

[0159] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor main control chip or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor or hardware, the method shown in the above embodiment is implemented.

[0160] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A method for displaying an iris image, It is characterized in that The method comprises: Acquire a target iris image, where the target iris image is an eye image including the left and right eyes of the target user; Determine an eye state based on the target iris image, the eye state including: a closed eye state, a half-open eye state, a normally open eye state, and a wide-open eye state; Determine a target display image based on a preset image library and the eye state; The target display image is displayed.

2. The iris image display method according to claim 1, It is characterized in that The determining of the eye state based on the target iris image comprises: Detecting whether the eyes in the target iris image are in a closed state; When the eye state in the target iris image is not in a closed eye state, correspondingly extracting a left eye image and a right eye image from the target iris image; Filtering a target processing image from the left-eye image and the right-eye image, and correspondingly extracting eye contour information and iris region information from the target processing image; Determine the open eye length, open eye height, iris area and eye area based on the eye contour information and the iris area information, wherein the open eye length is the longest distance of the eye in the horizontal direction when the eyes are open, and the open eye height is the longest distance of the eye in the vertical direction when the eyes are open; The eye state is determined based on the open eye length and the open eye height, and / or the eye state is determined based on the iris area and the eye area.

3. The iris image display method according to claim 2, It is characterized in that The determining of the eye state based on the eye-opening length and the eye-opening height comprises: Calculate the first ratio of open eye length to open eye height; Determining whether the first ratio is greater than a preset first distance threshold; When the first ratio is greater than the preset first distance threshold, determining that the eye state is a half-open state; When the first ratio is not greater than the preset first distance threshold, determining whether the first ratio is greater than a preset second distance threshold; When the first ratio is greater than the preset second distance threshold, determining that the eye state is a normal open eye state; When the first ratio is not greater than the preset second distance threshold, determining whether the first ratio is less than a preset third distance threshold, wherein the preset first distance threshold is greater than the preset second distance threshold, the preset second distance threshold is greater than the preset third distance threshold, and the preset third distance threshold is greater than 0; When the first ratio is less than the preset third distance threshold, it is determined that the eye state is a wide-eyed state.

4. The iris image display method according to claim 2, It is characterized in that The determining of the eye state based on the iris area and the eye area comprises: calculating a second ratio of the iris area to the eye area; Determining whether the second ratio is less than a preset first area threshold; When the second ratio is less than the preset first area threshold, determining that the eye state is a half-open state; When the second ratio is not less than the preset first area threshold, determining whether the second ratio is less than the preset second area threshold; When the second ratio is less than the preset second area threshold, determining that the eye state is a normal open eye state; When the second ratio is not less than the preset second area threshold, determining whether the second ratio is equal to a preset third area threshold, wherein the preset first area threshold is greater than 0, the preset first area threshold is less than the preset second area threshold, and the preset second area threshold is less than the preset third area threshold; When the second ratio is equal to a preset third area threshold, it is determined that the eye state is a wide-eyed state.

5. The iris image display method according to any one of claims 1 to 4, It is characterized in that The preset image library includes: an eye state diagram and candidate avatars, wherein the candidate avatars are images without left and right eyes, and the types of candidate avatars include human avatars, animal avatars and cartoon avatars; the target display image is determined based on the preset image library and the eye state, including: Filtering a corresponding eye state image from a preset image library based on the eye state; Filter corresponding candidate avatars from the preset image library based on the target user's behavior habits; The candidate avatar is fused with the eye state map to obtain a target display image.

6. The iris image display method according to claim 1, It is characterized in that Before displaying the target display image, the method further includes: Determine each element of the target display interface based on a preset display template, wherein the target display interface is an image customized by the user; the preset display template includes at least one element of a prompt, a display image, a prompt icon, a display font, and a display background; Based on the elements of the target display interface and the target display image, layout is performed to obtain a target display image that is customized by the user.

7. The iris image display method according to claim 1, It is characterized in that Before displaying the target display image, the method further includes: The target display image is beautified to obtain a beautified target display image, wherein the beautification includes at least one of cropping and composition processing, color adjustment processing, sharpening and blurring processing, adding special effects and filter processing, adding text and sticker processing, synthesis and splicing processing.

8. An iris image display system, It is characterized in that The system comprises: An acquisition module, used to acquire a target iris image, wherein the target iris image is an eye image including the left and right eyes of the target user; A first determination module, configured to determine an eye state based on the target iris image, wherein the eye state includes: a closed eye state, a half-open eye state, a normally open eye state, and a wide-open eye state; A second determination module, configured to determine a target display image based on a preset image library and the eye state; The display module is used to display the target display image.

9. An iris lock, It is characterized in that The iris lock comprises: a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the iris image display method according to any one of claims 1 to 7 by executing the computer instructions.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the iris image display method according to any one of claims 1 to 7.