CN107832745A - Face authentication method, Intelligent mirror and storage medium - Google Patents
Face authentication method, Intelligent mirror and storage medium Download PDFInfo
- Publication number
- CN107832745A CN107832745A CN201711241159.2A CN201711241159A CN107832745A CN 107832745 A CN107832745 A CN 107832745A CN 201711241159 A CN201711241159 A CN 201711241159A CN 107832745 A CN107832745 A CN 107832745A
- Authority
- CN
- China
- Prior art keywords
- mirror
- user
- display unit
- mirror display
- camera device
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/161—Detection; Localisation; Normalisation
- G06V40/166—Detection; Localisation; Normalisation using acquisition arrangements
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/10—Office automation; Time management
- G06Q10/109—Time management, e.g. calendars, reminders, meetings or time accounting
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Human Resources & Organizations (AREA)
- Theoretical Computer Science (AREA)
- Entrepreneurship & Innovation (AREA)
- Strategic Management (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Tourism & Hospitality (AREA)
- Health & Medical Sciences (AREA)
- Operations Research (AREA)
- Marketing (AREA)
- General Business, Economics & Management (AREA)
- Economics (AREA)
- Data Mining & Analysis (AREA)
- Quality & Reliability (AREA)
- General Health & Medical Sciences (AREA)
- Oral & Maxillofacial Surgery (AREA)
- Human Computer Interaction (AREA)
- Multimedia (AREA)
- Studio Devices (AREA)
- Collating Specific Patterns (AREA)
Abstract
本发明提供一种人脸认证方法,应用于智能镜子中,所述智能镜子包括所述镜面显示器,所述镜面显示器包括至少一个摄像装置、镜面显示单元及镜子,所述镜面显示单元通过所述镜子的第一部分显示信息,所述镜子的第二部分用于成像,且所述至少一个摄像装置嵌设于所述第二部分,当监测到有用户在看所述镜子时,通过所述至少一个摄像装置对所述用户进行拍摄,获取拍摄的图片;从所述拍摄的图片中确定所述用户的人脸图像;对所述用户的人脸图像进行认证;当所述用户的人脸图像认证成功时,记录所述用户;在所述镜面显示单元上显示与所述用户关联的信息。本发明还提供智能镜子及存储介质。本发明给用户提供个性化定制功能,提高了用户体验。
The present invention provides a face authentication method, which is applied to a smart mirror, the smart mirror includes the mirror display, the mirror display includes at least one camera device, a mirror display unit and a mirror, and the mirror display unit passes through the The first part of the mirror displays information, the second part of the mirror is used for imaging, and the at least one camera device is embedded in the second part, when it is detected that a user is looking at the mirror, through the at least one A camera shoots the user and obtains the picture taken; determines the face image of the user from the picture taken; authenticates the face image of the user; when the face image of the user When the authentication is successful, record the user; and display information associated with the user on the mirror display unit. The invention also provides a smart mirror and a storage medium. The present invention provides users with personalized customization functions and improves user experience.
Description
技术领域technical field
本发明涉及人工智能技术领域,尤其涉及一种人脸认证方法、智能镜子及存储介质。The invention relates to the technical field of artificial intelligence, in particular to a face authentication method, a smart mirror and a storage medium.
背景技术Background technique
目前的镜面显示器在前面有人的时候,镜面显示器显示影像画面。当所述镜面显示器前面没有人时,镜面显示器的镜面显示单元关闭,镜面显示器的镜面显示单元可以作为镜子,用于整理仪容。虽然现有技术中的镜面显示器除了显示影像画面外还可以实现整理仪容的功能,但是无法实现个性化定制功能,用户体验感相对单一。When the current mirror display has people in front, the mirror display displays a video image. When there is no one in front of the mirror display, the mirror display unit of the mirror display is turned off, and the mirror display unit of the mirror display can be used as a mirror for grooming. Although the mirror display in the prior art can also realize the function of grooming in addition to displaying images, it cannot realize the personalized customization function, and the user experience is relatively simple.
发明内容Contents of the invention
鉴于以上内容,有必要提供一种人脸认证方法,能通过镜面显示器实现用户个性化定制功能,提高了用户体验。In view of the above, it is necessary to provide a face authentication method, which can realize the user's personalized customization function through the mirror display, and improve the user experience.
一种人脸认证方法,应用于智能镜子中,所述智能镜子包括所述镜面显示器,所述镜面显示器包括至少一个摄像装置、镜面显示单元及镜子,所述镜面显示单元通过所述镜子的第一部分显示信息,所述镜子的第二部分用于成像,且所述至少一个摄像装置嵌设于所述第二部分,所述方法包括:A face authentication method applied in a smart mirror, the smart mirror includes the mirror display, the mirror display includes at least one camera device, a mirror display unit, and a mirror, and the mirror display unit passes through the mirror's first A part displays information, the second part of the mirror is used for imaging, and the at least one camera is embedded in the second part, the method includes:
当监测到有用户在看所述镜子时,通过所述至少一个摄像装置对所述用户进行拍摄,获取拍摄的图片;When it is detected that a user is looking at the mirror, the user is photographed by the at least one camera device, and the photographed picture is obtained;
从所述拍摄的图片中确定所述用户的人脸图像;determining the face image of the user from the captured picture;
对所述用户的人脸图像进行认证;Authenticate the user's face image;
当所述用户的人脸图像认证成功时,记录所述用户;When the face image authentication of the user is successful, record the user;
在所述镜面显示器的镜面显示单元上显示与所述用户关联的信息。Information associated with the user is displayed on a mirror display unit of the mirror display.
根据本发明优选实施例,所述至少一个摄像装置为多个,不同所述摄像装置的摄像范围不同,所述当监测到有用户在看所述镜子时,通过所述至少一个摄像装置对所述用户进行拍摄,获取拍摄的图片包括:According to a preferred embodiment of the present invention, there are multiple at least one camera, and different cameras have different camera ranges. When it is detected that a user is looking at the mirror, the at least one camera will The user mentioned above takes pictures, and the captured pictures include:
当监测到有用户在看所述镜子时,计算所述用户的身高;When it is detected that a user is looking at the mirror, calculate the height of the user;
根据身高与摄像装置的摄像范围的对应关系,确定所述用户的身高对应的目标摄像范围,并确定所述目标摄像范围所属的目标摄像装置;According to the corresponding relationship between the height and the imaging range of the imaging device, determine the target imaging range corresponding to the height of the user, and determine the target imaging device to which the target imaging range belongs;
使用所述目标摄像装置对所述用户进行拍摄,获得拍摄的图片。The user is photographed by the target photographing device to obtain photographed pictures.
根据本发明优选实施例,所述当监测到有用户在看所述镜子时,计算所述用户的身高包括:According to a preferred embodiment of the present invention, when it is detected that a user is looking at the mirror, calculating the height of the user includes:
当监测到有用户在看所述镜子时,通过所述至少一个摄像装置获取图像;When it is detected that a user is looking at the mirror, an image is acquired through the at least one camera device;
当获取的图像中的用户图像有全身图像时,确定从所述至少一个摄像装置中获取全身图像的摄像装置;When the user image in the acquired image has a whole-body image, determine the camera that acquires the whole-body image from the at least one camera;
确定用户与确定的摄像装置的镜头之间的距离;Determining the distance between the user and the lens of the determined camera device;
获取所述确定的摄像装置的镜头到所述确定的摄像装置的图像传感器之间的距离和用户在所述确定的摄像装置的图像传感器上的成像高度;Obtaining the distance between the lens of the determined camera device and the image sensor of the determined camera device and the imaging height of the user on the image sensor of the determined camera device;
根据用户与所述确定的摄像装置的镜头之间的距离、所述确定的摄像装置的镜头到所述确定的摄像装置的图像传感器之间的距离和用户在所述确定的摄像装置的图像传感器上的成像高度,计算用户的身高。According to the distance between the user and the lens of the determined camera device, the distance between the lens of the determined camera device and the image sensor of the determined camera device, and the distance between the user and the image sensor of the determined camera device Calculate the height of the user based on the imaging height above.
根据本发明优选实施例,所述当所述用户的人脸图像认证成功时,记录所述用户包括以下一种或者多种的组合:According to a preferred embodiment of the present invention, when the user's face image authentication is successful, recording the user includes one or more of the following combinations:
当所述用户的人脸图像认证成功时,获取当前时间,记录当前时间及所述用户的信息;When the face image authentication of the user is successful, obtain the current time, record the current time and the information of the user;
当所述用户的人脸图像认证成功时,发送控制指令至与所述智能镜子相通信的门禁设备以控制所述门禁设备打开。When the user's face image authentication is successful, a control command is sent to the access control device communicating with the smart mirror to control the access control device to open.
根据本发明优选实施例,所述在所述镜面显示器的镜面显示单元上显示与所述用户关联的信息包括以下一种或者多种的组合:According to a preferred embodiment of the present invention, the displaying the information associated with the user on the mirror display unit of the mirror display includes one or more of the following combinations:
在所述镜面显示器的镜面显示单元上显示所述用户的提醒信息;displaying the reminder information of the user on the mirror display unit of the mirror display;
在当前时间与所述用户的祝福日期匹配时,在所述镜面显示器的镜面显示单元上显示祝福信息。When the current time matches the user's blessing date, the blessing information is displayed on the mirror display unit of the mirror display.
根据本发明优选实施例,所述方法还包括:According to a preferred embodiment of the present invention, the method further includes:
当监测到所述用户离开所述智能镜子的监控区域内时,关闭所述镜面显示单元,所述镜面显示单元通过所述第一部分与所述镜子的第二部分组成完整的镜面;When it is detected that the user leaves the monitoring area of the smart mirror, the mirror display unit is turned off, and the mirror display unit forms a complete mirror through the first part and the second part of the mirror;
当获取到所述镜面显示单元的开关的触发信号,且触发所述镜面显示单元的开关处于关闭状态时,关闭所述镜面显示单元,所述镜面显示单元通过所述第一部分与所述镜子的第二部分组成完整的镜面。When the trigger signal of the switch of the mirror display unit is obtained, and the trigger switch of the mirror display unit is in the closed state, the mirror display unit is turned off, and the mirror display unit passes through the first part and the mirror. The second part makes up the complete mirror.
根据本发明优选实施例,所述方法还包括:According to a preferred embodiment of the present invention, the method further includes:
获取交互信号;Get interactive signals;
通过所述交互信号,对所述镜面显示器的镜面显示单元上显示与所述用户关联的信息进行操作。The information associated with the user is displayed on the mirror display unit of the mirror display through the interaction signal.
根据本发明优选实施例,所述交互信号包括语音信号、手势信号、触控信号。According to a preferred embodiment of the present invention, the interaction signal includes a voice signal, a gesture signal, and a touch signal.
一种智能镜子,所述智能镜子包括所述镜面显示器,存储器及处理器,所述镜面显示器包括至少一个摄像装置、镜面显示单元及镜子,所述镜面显示单元通过所述镜子的第一部分显示信息,所述镜子的第二部分用于成像,且所述至少一个摄像装置嵌设于所述第二部分,所述存储器用于存储至少一个指令,所述处理器用于执行所述至少一个指令以实现任意实施例中任一项所述人脸认证方法。A smart mirror, the smart mirror includes the mirror display, memory and processor, the mirror display includes at least one camera, a mirror display unit and a mirror, the mirror display unit displays information through the first part of the mirror , the second part of the mirror is used for imaging, and the at least one camera is embedded in the second part, the memory is used to store at least one instruction, and the processor is used to execute the at least one instruction to Realize the face authentication method described in any one of any embodiment.
一种计算机可读存储介质,所述计算机可读存储介质存储有至少一个指令,所述至少一个指令被处理器执行时实现任意实施中任一项所述人脸认证方法。A computer-readable storage medium, the computer-readable storage medium stores at least one instruction, and when the at least one instruction is executed by a processor, it implements any one of the face authentication methods in any implementation.
由以上技术方案可以看出,本发明当监测到有用户进入所述智能镜子的监控区域内,通过所述至少一个摄像装置对所述用户进行拍摄,获取拍摄的图片;从所述拍摄的图片中确定所述用户的人脸图像;对所述用户的人脸图像进行认证;当所述用户的人脸图像认证成功时,记录所述用户;在所述镜面显示器的镜面显示单元上显示与所述用户关联的信息。本发明能通过镜面显示器实现认证的相关应用,并能使用户注重自己的仪容仪表,同时给用户提供个性化定制功能,给用户提供事项提醒及提供人文关怀信息,另外,能适用所有用户,提高了用户体验。It can be seen from the above technical solutions that when the present invention detects that a user enters the monitoring area of the smart mirror, the user is photographed by the at least one camera device to obtain photographed pictures; from the photographed pictures Determine the face image of the user; authenticate the user's face image; when the user's face image authentication is successful, record the user; display on the mirror display unit of the mirror display and Information associated with the user. The present invention can realize authentication-related applications through the mirror display, and enable users to pay attention to their own appearance, and at the same time provide users with personalized customization functions, provide users with item reminders and provide humanistic care information, in addition, it can be applied to all users and improve user experience.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention, and those skilled in the art can also obtain other drawings according to the provided drawings without creative work.
图1是本发明智能镜子的较佳实施例的平面示意图。Fig. 1 is a schematic plan view of a preferred embodiment of the smart mirror of the present invention.
图2是本发明人脸认证方法的较佳实施例的流程图。Fig. 2 is a flowchart of a preferred embodiment of the face authentication method of the present invention.
图3是本发明人脸认证装置的较佳实施例的功能模块图。Fig. 3 is a functional block diagram of a preferred embodiment of the face authentication device of the present invention.
图4是本发明至少一个实例中智能镜子的另一结构示意图。Fig. 4 is another structural schematic diagram of the smart mirror in at least one example of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。In order to make the above objects, features and advantages of the present invention more comprehensible, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the solutions of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is an embodiment of a part of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而非用于描述特定顺序。此外,术语“包括”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second" and "third" in the specification and claims of the present invention and the above drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the term "comprise", as well as any variations thereof, is intended to cover a non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally further includes For other steps or units inherent in these processes, methods, products or apparatuses.
如图1所示,是本发明智能镜子的较佳实施例的平面示意图。As shown in FIG. 1 , it is a schematic plan view of a preferred embodiment of the smart mirror of the present invention.
如图1所示,所述智能镜子1包括,但不限于,壳体及镜面显示器11。所述壳体与所述镜面显示器11组合安装,从而在所述壳体与所述镜面显示器11之间形成有闭合的收容空间。As shown in FIG. 1 , the smart mirror 1 includes, but is not limited to, a casing and a mirror display 11 . The casing and the mirror display 11 are installed in combination, so that a closed accommodation space is formed between the casing and the mirror display 11 .
所述镜面显示器11包括,但不限于:至少一个摄像装置110、镜面显示单元111及镜子112。所述智能镜子1中所包含的元件,并不限于上述列举。The mirror display 11 includes, but is not limited to: at least one camera device 110 , a mirror display unit 111 and a mirror 112 . The components included in the smart mirror 1 are not limited to the above-mentioned ones.
所述镜面显示单元111设置于所述收容空间内。The mirror display unit 111 is disposed in the receiving space.
所述镜子112由第一部分及第二部分组成。所述第一部分对应所述镜面显示单元111。所述镜子112的第一部分的背面不具有金属膜,而作为平面镜。所述镜子112的第二部分的正面可以进行成像。当所述镜面显示单元111处于工作状态时,所述镜面显示单元111用于通过所述第一部分显示信息;当所述镜面显示单元111处于关闭状态,所述镜面显示单元111可以通过所述第一部分与所述第二部分组成完整的镜面。The mirror 112 is composed of a first part and a second part. The first part corresponds to the mirror display unit 111 . The back side of the first part of the mirror 112 does not have a metal film, but serves as a plane mirror. The front side of the second part of the mirror 112 can be imaged. When the mirror display unit 111 is in the working state, the mirror display unit 111 is used to display information through the first part; when the mirror display unit 111 is in the closed state, the mirror display unit 111 can display information through the first part One part forms a complete mirror surface with the second part.
所述摄像装置110可转动地嵌设于所述镜子112的第二部分。The camera device 110 is rotatably embedded in the second portion of the mirror 112 .
优选地,所述至少一个摄像装置110为摄像头。可以选用尺寸小的摄像头,例如针孔摄像头,这样有利于摄像头的隐蔽性,不影响所述镜子112的整体外观。Preferably, the at least one camera device 110 is a camera. A camera with a small size can be selected, such as a pinhole camera, which is conducive to the concealment of the camera and does not affect the overall appearance of the mirror 112 .
由于不同的用户,身高是不同的,为了拍摄到所有用户的人脸图片。优选地,所述至少一个摄像装置100为多个,每个摄像装置110的安装高度不同,这样不同所述摄像装置100的摄像范围就不同。Because different users have different heights, in order to capture face pictures of all users. Preferably, there are multiple at least one camera device 100 , and each camera device 110 has a different installation height, so different camera devices 100 have different camera ranges.
例如包括第一摄像装置及第二摄像装置,所述第一摄像装置的摄像范围用于拍摄身高在1米4至1.5米的用户,所述第二摄像装置的摄像范围用于拍摄身高在1米5至1.6米的用户等等。For example, it includes a first camera and a second camera, the camera range of the first camera is used to shoot users with a height of 1.4 to 1.5 meters, and the camera range of the second camera is used to shoot users with a height of 1 meter. Users of meters 5 to 1.6 meters and so on.
进一步地,在应用场景的用户已知时,可以预先统计用户的平均身高、最低身高、最高身高。根据用户的平均身高、最低身高、最高身高,预先配置每个摄像装置的安装高度。例如,应用场景用于高考考场认证,可以预先统计考生的平均身高、最低身高,最高身高,配置每个摄像装置的安装高度。Further, when the users of the application scene are known, the average height, the minimum height, and the maximum height of the users can be calculated in advance. According to the user's average height, minimum height, and maximum height, the installation height of each camera device is pre-configured. For example, the application scenario is used for the certification of the college entrance examination examination room, and the average height, minimum height, and maximum height of candidates can be counted in advance, and the installation height of each camera device can be configured.
优选地,所述镜面显示单元111为液晶显示器。Preferably, the mirror display unit 111 is a liquid crystal display.
如图2所示,是本发明人脸认证方法的较佳实施例的流程图。根据不同的需求,该流程图中步骤的顺序可以改变,某些步骤可以省略。As shown in FIG. 2 , it is a flowchart of a preferred embodiment of the face authentication method of the present invention. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted.
S10,当监测到有用户在看所述镜子112时,所述智能镜子1通过所述至少一个摄像装置110对所述用户进行拍摄,获取拍摄的图片。S10, when it is detected that a user is looking at the mirror 112, the smart mirror 1 uses the at least one camera device 110 to take a picture of the user, and obtain a picture taken.
优选地,当监测到有用户在所述智能镜子1的监控区域内,且监测到有用户在看所述镜子112,即所述镜子112可以对所述用户的面部呈镜像时。所述至少一个摄像装置110可以对所述用户进行拍摄,拍摄的图片具有用户的面部。Preferably, when a user is detected to be in the monitoring area of the smart mirror 1 and a user is detected to be looking at the mirror 112, that is, the mirror 112 can mirror the user's face. The at least one camera device 110 may take a picture of the user, and the picture taken has the user's face.
需要说明的是,在比较注重仪容的特定场合,或者需要穿戴指定服饰的工作场所等,均需要安置一面镜子来进行仪容整理。在本实施例中,所述摄像装置110可转动地嵌设于所述镜子112,当用户对着所述镜子112整理仪容是,所述摄像装置110可以对用户拍摄图片。所述图片具有人脸。It should be noted that in specific occasions where grooming is more important, or in workplaces where designated clothing is required, a mirror needs to be installed for grooming. In this embodiment, the camera 110 is rotatably embedded in the mirror 112 , and when the user looks at the mirror 112 , the camera 110 can take pictures of the user. The picture has a human face.
在本发明中,监测到有用户进入所述智能镜子1的监控区域内的方式有很多种。并不限于以下描述的方式。In the present invention, there are many ways to detect that a user enters the monitoring area of the smart mirror 1 . It is not limited to the manner described below.
优选地,所述至少一个摄像装置110为多个,通过所述至少一个摄像装置110对所述智能镜子1的监控区域进行抓拍,从抓拍的图片中判断是否有行人,当抓拍的图片中有行人时,则所述智能镜子1监测到有用户进入所述智能镜子1的监控区域内;当抓拍的图片中没有行人时,则所述智能镜子1没有监测到用户进入所述智能镜子1的监控区域内。Preferably, the at least one camera 110 is multiple, and the monitoring area of the smart mirror 1 is captured by the at least one camera 110, and whether there are pedestrians is judged from the captured pictures. When there are pedestrians, the smart mirror 1 detects that a user enters the monitoring area of the smart mirror 1; within the surveillance area.
可选的,所述智能镜子1与行人检测感应器相通信,所述行人检测感应器用于检测所述智能镜子1的监控区域内是否有人,所述智能镜子1获取所述行人检测感应器的检测结果。例如所述行人检测感应器包括,但不限于:基于超声波的行人检测传感器,基于远红外的行人检测传感器,激光扫描行人检测仪等等。Optionally, the smart mirror 1 communicates with a pedestrian detection sensor, and the pedestrian detection sensor is used to detect whether there are people in the monitoring area of the smart mirror 1, and the smart mirror 1 obtains the pedestrian detection sensor's Test results. For example, the pedestrian detection sensors include, but are not limited to: ultrasonic-based pedestrian detection sensors, far-infrared-based pedestrian detection sensors, laser scanning pedestrian detectors, and the like.
在本发明中,监测所述用户是否在看所述镜子112的方式有很多种。并不限于以下描述的方式。In the present invention, there are many ways to monitor whether the user is looking at the mirror 112 . It is not limited to the manner described below.
优选地,所述至少一个摄像装置110为多个,通过所述至少一个摄像装置110对所述智能镜子1的监控区域进行抓拍,从抓拍的图片中判断是否有正面人像,当抓拍的图片中有正面人像时,则所述智能镜子1监测到有用户在看所述镜子112;当抓拍的图片中没有正面人像时,则所述智能镜子1检测到用户没有在看所述镜子112。Preferably, the at least one camera 110 is multiple, and the monitoring area of the smart mirror 1 is captured by the at least one camera 110, and whether there is a frontal portrait is judged from the captured picture. When there is a frontal portrait, the smart mirror 1 detects that a user is looking at the mirror 112; when there is no frontal portrait in the captured picture, the smart mirror 1 detects that the user is not looking at the mirror 112.
在本发明中,当监测到有用户进入所述智能镜子1的监控区域内,所述智能镜子1需要调用合适的摄像装置110对所述用户进行拍摄,以获取所述用户的人脸图像。In the present invention, when it is detected that a user enters the monitoring area of the smart mirror 1, the smart mirror 1 needs to call a suitable camera device 110 to take pictures of the user, so as to obtain a face image of the user.
因此,所述智能镜子1通过所述至少一个摄像装置110对所述用户进行拍摄,获取拍摄的图片包括:Therefore, the smart mirror 1 takes pictures of the user through the at least one camera 110, and obtaining the pictures taken includes:
(a1)当监测到有用户在看所述镜子112时,计算所述用户的身高。(a1) When it is detected that a user is looking at the mirror 112, calculate the height of the user.
可选地,所述计算所述用户的身高包括:Optionally, the calculating the height of the user includes:
(a11)当监测到有用户在看所述镜子112时,通过所述至少一个摄像装置110获取图像。(a11) When it is detected that a user is looking at the mirror 112, the at least one camera device 110 is used to acquire an image.
(a12)当获取的图像中的用户图像有全身图像时,确定从所述至少一个摄像装置110中获取全身图像的摄像装置;确定用户与确定的摄像装置的镜头之间的距离。(a12) When the user image in the captured image has a whole-body image, determine the camera device that captures the whole-body image from the at least one camera device 110; determine the distance between the user and the lens of the determined camera device.
(a13)获取所述确定的摄像装置的镜头到所述确定的摄像装置的图像传感器之间的距离和用户在所述确定的摄像装置的图像传感器上的成像高度。(a13) Obtain the distance between the lens of the determined camera device and the image sensor of the determined camera device and the imaging height of the user on the image sensor of the determined camera device.
(a14)根据用户与所述确定的摄像装置的镜头之间的距离、所述确定的摄像装置的镜头到所述确定的摄像装置的图像传感器之间的距离和用户在所述确定的摄像装置的图像传感器上的成像高度,计算用户的身高。(a14) According to the distance between the user and the lens of the determined camera device, the distance between the lens of the determined camera device and the image sensor of the determined camera device, and the distance between the user and the lens of the determined camera device The imaging height on the image sensor is used to calculate the user's height.
进一步地,确定用户与确定的摄像装置的镜头之间的距离的方式有很多种,例如基于双目匹配的测距法等等,本发明不做任何限制。Further, there are many ways to determine the distance between the user and the determined lens of the camera device, for example, a ranging method based on binocular matching, etc., which are not limited in the present invention.
(a2)根据身高与摄像装置110的摄像范围的对应关系,确定所述用户的身高对应的目标摄像范围,并确定所述目标摄像范围所属的目标摄像装置。(a2) Determine the target imaging range corresponding to the user's height according to the correspondence between the height and the imaging range of the imaging device 110, and determine the target imaging device to which the target imaging range belongs.
(a3)使用所述目标摄像装置对所述用户进行拍摄,获得拍摄的图片。(a3) Using the target imaging device to photograph the user, and obtain photographed pictures.
通过上述实施方式,本发明能获取不同身高的用户的人脸图像。例如,在所述镜面显示器上配置了三个摄像头,第一摄像装置、第二摄像装置及第二摄像装置,每个摄像装置的安装高度不同,每个摄像装置的摄像范围不同。所述第一摄像装置的摄像范围用于拍摄身高在1米2至1.5米的用户,所述第二摄像装置的摄像范围用于拍摄身高在1米5至1.8米的用户,所述第三摄像装置的摄像范围用于拍摄身高在18米至2米的用户。当一个用户进入所述智能镜子的监控区域时,计算所述用户的身高位1.65,则调用第二摄像装置对所述用户进行拍摄,以抓取所述用户的人脸图像。这样可以抓取不同身高的用户,用户在无需配合摄像装置。本发明可以对不同身高的用户的特征都可以进行识别,同时也方便后续的个性化信息的显示等等。Through the above implementation manners, the present invention can acquire face images of users of different heights. For example, three cameras are arranged on the mirror display, a first camera, a second camera and a second camera, each camera has a different installation height, and each camera has a different camera range. The imaging range of the first imaging device is used to photograph users whose height is 1.2 to 1.5 meters, the imaging range of the second imaging device is used to photograph users whose height is 1.5 to 1.8 meters, and the third The camera range of the camera device is used to shoot users whose height is between 18 meters and 2 meters. When a user enters the monitoring area of the smart mirror, the user's height is calculated as 1.65, and the second camera is called to take pictures of the user to capture the user's face image. In this way, users of different heights can be captured, and the users do not need to cooperate with the camera device. The present invention can identify the features of users of different heights, and at the same time facilitates the display of subsequent personalized information and the like.
S11,所述智能镜子1从所述拍摄的图片中确定所述用户的人脸图像。S11, the smart mirror 1 determines the face image of the user from the captured picture.
在本发明实施例中,利用人脸检测方法从所述拍摄的图片中确定所述用户的人脸图像。所述人脸检测方法是现有技术,本发明不对任何限制。In the embodiment of the present invention, a face detection method is used to determine the user's face image from the captured pictures. The face detection method is a prior art, and the present invention does not impose any limitation thereon.
S12,所述智能镜子1对所述用户的人脸图像进行认证。S12, the smart mirror 1 authenticates the face image of the user.
在本发明的可选实施例中,所述智能镜子1读取预先存储的人脸数据集,将所述用户的人脸图像与所述预先存储的人脸数据集中的人脸数据进行匹配,判断所述用户的人脸图像是否属于所述预先存储的人脸数据集中的人脸数据。例如所述预先存储的人脸数据集可以是某一个公司的所有员工的人脸数据,某个店铺的会员的人脸数据等等。In an optional embodiment of the present invention, the smart mirror 1 reads a pre-stored face data set, and matches the user's face image with the face data in the pre-stored face data set, Judging whether the face image of the user belongs to the face data in the pre-stored face data set. For example, the pre-stored face data set may be the face data of all employees of a certain company, the face data of members of a certain shop, and so on.
当所述用户的人脸图像与所述预先存储的人脸数据集中的一个人脸数据的相似度大于或者等于相似度阈值时,确定所述用户的人脸图像认证成功。When the similarity between the user's face image and one face data in the pre-stored face data set is greater than or equal to a similarity threshold, it is determined that the user's face image authentication is successful.
当所述预先存储的人脸数据集中的没有一个人脸数据与所述用户的人脸图像的相似度大于或者等于相似度阈值时,确定所述用户的人脸图像认证失败,点亮所述镜面显示单元,并显示认证失败的信息。When there is no face data in the pre-stored face data set whose similarity with the user's face image is greater than or equal to the similarity threshold, it is determined that the user's face image authentication has failed, and the The unit is mirrored and an authentication failure message is displayed.
S13,当所述用户的人脸图像认证成功时,所述智能镜子记录所述用户。S13. When the user's face image authentication is successful, the smart mirror records the user.
在发明的可选实施例中,所述当所述用户的人脸图像认证成功时,记录所述用户包括以下一种或者多种的组合:In an optional embodiment of the invention, when the user's face image authentication is successful, recording the user includes one or more of the following combinations:
(b1)当所述用户的人脸图像认证成功时,获取当前时间,记录当前时间及所述用户的信息。这样所述智能镜子可以用于考勤功能,及出入口登记等等。(b1) When the user's face image authentication is successful, obtain the current time, and record the current time and the information of the user. In this way, the smart mirror can be used for checking attendance, registering entrances and exits, and the like.
(b2)当所述用户的人脸图像认证成功时,发送控制指令至与所述智能镜子1相通信的门禁设备以控制所述门禁设备打开。这样所述智能镜子1可以作为门禁监控设备等等,自动为认证的用户开门。(b2) When the user's face image authentication is successful, send a control command to the access control device communicating with the smart mirror 1 to control the access control device to open. In this way, the smart mirror 1 can be used as an access control monitoring device, etc., to automatically open the door for the authenticated user.
S14,所述智能镜子1在所述镜面显示器11的镜面显示单元111上显示与所述用户关联的信息。S14, the smart mirror 1 displays information associated with the user on the mirror display unit 111 of the mirror display 11 .
在本发明的可选实施中,所述在所述镜面显示器11的镜面显示单元111上显示与所述用户关联的信息包括以下一种或者多种的组合:在所述镜面显示器11的镜面显示单元111上显示所述用户的提醒信息;在当前时间与所述用户的祝福日期匹配时,在所述镜面显示器11的镜面显示单元111上显示祝福信息。这样根据用户的身份,实现个性化的信息推送。In an optional implementation of the present invention, the displaying the information associated with the user on the mirror display unit 111 of the mirror display 11 includes one or a combination of the following: The user's reminder information is displayed on the unit 111 ; when the current time matches the user's blessing date, the blessing information is displayed on the mirror display unit 111 of the mirror display 11 . In this way, personalized information push is realized according to the identity of the user.
进一步地,所述提醒信息包括以下一种或者多种组合,但不限于:日程提醒、任务提醒、会议提醒、待办事项提醒,通知提醒等等。这样可以个性化提醒用户勿忘事项。Further, the reminder information includes one or more combinations of the following, but not limited to: schedule reminders, task reminders, meeting reminders, to-do item reminders, notification reminders, and the like. This allows for personalized reminders of things to remember.
例如,将所述智能镜子1安装在公司的门禁位置,当公司的员工在看所述镜子112时,对员工进行识别认证,并计入考勤,实现自动考勤功能,并能使员工根据所述镜子112注意自己的仪容仪表。另外,当识别出员工后,在镜面显示单元111上显示该员工的日程,会议,待办事项等等,以提醒该员工需要及时跟进的工作事项等等。由于嵌入在所述镜子上的摄像装置比较小,在不影响用户照镜子的同时,还可以推送与用户相关的个性化信息。For example, if the smart mirror 1 is installed at the company's access control position, when the company's employees are looking at the mirror 112, the employees will be identified and authenticated, and counted in attendance, so as to realize the automatic attendance function, and enable the employees to check the attendance according to the The mirror 112 pays attention to one's own grooming. In addition, when an employee is identified, the employee's schedule, meetings, to-do items, etc. are displayed on the mirror display unit 111 to remind the employee of work items that need to be followed up in time. Since the camera device embedded in the mirror is relatively small, personalized information related to the user can also be pushed while not affecting the user looking in the mirror.
例如,将所述智能镜子1安装在小区门口,当业主在看所述镜子112时,自动识别认证,并为业主关门,同时在所述镜面显示单元111上显示该业主的物业未办事项,及时提醒业主办理,同时业主在每天进出该门口时,也根据所述镜子112注意自己的仪容仪表,使每天的生活更精神等等。For example, if the smart mirror 1 is installed at the entrance of the community, when the owner is looking at the mirror 112, it will automatically identify and authenticate, and close the door for the owner, and at the same time display the owner’s unfinished business on the mirror display unit 111, Remind the owner to handle in time, and at the same time, when the owner goes in and out of the door every day, he also pays attention to his appearance according to the mirror 112, so that his daily life is more energetic and so on.
进一步地,所述祝福日期包括,但不限于:生日日期、结婚纪念日等等重要节日日期。例如,将所述智能镜子安装在公司的门禁位置,当公司的员工走进所述智能镜子的监控区域时,对员工进行识别认证,并计入考勤,实现自动考勤功能,并在员工的生日时候,在员工进入公司的第一时间给出祝福,体现人文关怀,使员工更惊喜等等。Further, the blessing dates include, but are not limited to: birthday dates, wedding anniversaries and other important holiday dates. For example, if the smart mirror is installed at the company's access control position, when the company's employees walk into the monitoring area of the smart mirror, the employees will be identified and authenticated, and counted in attendance, so as to realize the automatic attendance function, and on the employee's birthday At the same time, give blessings to employees as soon as they enter the company, embody humanistic care, make employees more pleasantly surprised, etc.
在本发明的可选实施例中,所述方法还包括:获取交互信号;通过所述交互信号,对所述镜面显示单元111上显示与所述用户关联的信息进行操作。这样可以增加交互功能,方便用户查看广告信息。In an optional embodiment of the present invention, the method further includes: acquiring an interaction signal; and operating the information associated with the user displayed on the mirror display unit 111 through the interaction signal. In this way, interactive functions can be added to facilitate users to view advertisement information.
进一步地,所述交互信号包括,但不限于:语音信号、手势信号、触控信号等等。这样可以增加交互功能,方便用户查看广告信息。Further, the interaction signal includes, but is not limited to: voice signal, gesture signal, touch signal and so on. In this way, interactive functions can be added to facilitate users to view advertisement information.
进一步地,所述镜面显示器11包括:语音识别组件、手势识别组件、触控识别组件。Further, the mirror display 11 includes: a speech recognition component, a gesture recognition component, and a touch recognition component.
所述智能镜子1通过语音识别组件对语音信号进行识别,用户可以通过语音与所述镜面显示器11进行交互。所述智能镜子通过手势识别组件对手势信号进行识别,用户可以通过手势与所述镜面显示器11进行交互。所述智能镜子1通过触控识别组件对触摸信号进行识别,用户可以通过触控与所述镜面显示器11进行交互。The smart mirror 1 recognizes the voice signal through the voice recognition component, and the user can interact with the mirror display 11 through voice. The smart mirror recognizes gesture signals through the gesture recognition component, and the user can interact with the mirror display 11 through gestures. The smart mirror 1 recognizes the touch signal through the touch recognition component, and the user can interact with the mirror display 11 through touch.
例如,在所述镜面显示单元111上显示用户有一个紧急任务,用户可以输入“打开任务”语音,所述语音识别组件识别所述语音,并在所述镜面显示单元111上显示所述紧急任务,以使用户及时处理紧急事项。For example, it is displayed on the mirror display unit 111 that the user has an urgent task, and the user can input the voice of "open task", and the voice recognition component recognizes the voice, and displays the urgent task on the mirror display unit 111. , so that users can deal with urgent matters in a timely manner.
在本发明的可选实施例中,当监测到所述用户离开所述智能镜子1的监控区域内时,所述智能镜子1关闭所述镜面显示单元111,所述镜面显示单元111可以通过所述第一部分与所述第二部分组成完整的镜面。这样在没有人在镜子面前时,呈现完整的镜子,便于用户照看镜子。In an optional embodiment of the present invention, when it is detected that the user leaves the monitoring area of the smart mirror 1, the smart mirror 1 turns off the mirror display unit 111, and the mirror display unit 111 can pass the The first part and the second part form a complete mirror surface. In this way, when no one is in front of the mirror, a complete mirror is presented, which is convenient for the user to look at the mirror.
在本发明的可选实施例中,当获取到所述镜面显示单元111的开关的触发信号,且触发所述镜面显示单元111的开关处于关闭状态时,关闭所述镜面显示单元,所述镜面显示单元111可以通过所述第一部分与所述第二部分组成完整的镜面。这样在没有人在镜子面前时,呈现完整的镜子,便于用户照看镜子。In an optional embodiment of the present invention, when the trigger signal of the switch of the mirror display unit 111 is obtained and the switch triggering the mirror display unit 111 is in the off state, the mirror display unit is turned off, and the mirror The display unit 111 can form a complete mirror through the first part and the second part. In this way, when no one is in front of the mirror, a complete mirror is presented, which is convenient for the user to look at the mirror.
所述触发信号包括,但不限于:语音信号、手势信号、触控信号等等。The trigger signal includes, but is not limited to: voice signal, gesture signal, touch signal and so on.
例如,用户输入语音“关闭镜面显示器的开关”,所述语音识别组件所述语音,并触发所述镜面显示单元111的开关处于关闭状态。例如用户输入向左挥手的手势,手势识别组件识别所述向左挥手的手势,并触发所述镜面显示单元111的开关处于关闭状态。在所述镜面显示单元111上触控所述镜面显示单元111的开关,使所述镜面显示单元111处于关闭状态等等。For example, the user inputs a voice "turn off the switch of the mirror display", and the voice recognition component triggers the voice to turn off the switch of the mirror display unit 111 . For example, the user inputs a gesture of waving to the left, and the gesture recognition component recognizes the gesture of waving to the left, and triggers the switch of the mirror display unit 111 to be in an off state. Touching the switch of the mirror display unit 111 on the mirror display unit 111 makes the mirror display unit 111 in an off state and so on.
在本发明中,所述智能镜子1的应用并不限于上述应用的举例,也可以应用于其他场景,例如,会议出入口、考场出入口等等。对所述智能镜子的应用场景,本发明不做任何限制。In the present invention, the application of the smart mirror 1 is not limited to the above-mentioned application examples, and can also be applied to other scenarios, for example, entrances and exits of conferences, entrances and exits of examination rooms, and so on. The present invention does not impose any limitation on the application scenarios of the smart mirror.
本发明中所述智能镜子包括所述镜面显示器,所述镜面显示器包括至少一个摄像装置、镜面显示单元及镜子,所述镜子的第一部分对应所述镜面显示单元,所述镜面显示单元通过所述第一部分显示信息。当监测到有用户在看所述镜子时,通过所述至少一个摄像装置对所述用户进行拍摄,获取拍摄的图片;从所述拍摄的图片中确定所述用户的人脸图像;对所述用户的人脸图像进行认证;当所述用户的人脸图像认证成功时,记录所述用户;在所述镜面显示器的镜面显示单元上显示与所述用户关联的信息。本发明能通过镜面显示器实现认证的相关应用,并能使用户注重自己的仪容仪表,同时提供用户个性化的定制功能,提供与用户相关的事项提醒及人文关怀信息,另外,能适用所有用户,当用户出现在镜面显示器的监控区域内时,用户无需配合所述镜面显示器,就能对用户进行认证,提高了用户体验。In the present invention, the smart mirror includes the mirror display, the mirror display includes at least one camera device, a mirror display unit and a mirror, the first part of the mirror corresponds to the mirror display unit, and the mirror display unit passes through the The first section displays information. When it is detected that a user is looking at the mirror, the user is photographed by the at least one camera device, and the photographed picture is acquired; the face image of the user is determined from the photographed picture; The user's face image is authenticated; when the user's face image is successfully authenticated, the user is recorded; and the information associated with the user is displayed on the mirror display unit of the mirror display. The present invention can realize authentication-related applications through the mirror display, and enable users to pay attention to their own appearance, and at the same time provide users with personalized customization functions, provide user-related reminders and humanistic care information, and can be applied to all users. When the user appears in the monitoring area of the mirror display, the user can be authenticated without cooperating with the mirror display, thereby improving user experience.
如图3所示,本发明人脸认证装置的较佳实施例的功能模块图。所述人脸认证装置31包括获取模块300、确定模块301、认证模块302、记录模块303、显示模块304、交互模块305及控制模块306。本发明所称的单元是指一种能够被人脸认证装置31的处理器所执行并且能够完成固定功能的一系列计算机程序段,其存储在存储器中。在本实施例中,关于各单元的功能将在后续的实施例中详述。As shown in FIG. 3 , the functional block diagram of a preferred embodiment of the face authentication device of the present invention. The face authentication device 31 includes an acquisition module 300 , a determination module 301 , an authentication module 302 , a record module 303 , a display module 304 , an interaction module 305 and a control module 306 . The unit referred to in the present invention refers to a series of computer program segments that can be executed by the processor of the face authentication device 31 and can complete fixed functions, which are stored in the memory. In this embodiment, the functions of each unit will be described in detail in subsequent embodiments.
当监测到有用户在看所述镜子112时,所述获取模块300通过所述至少一个摄像装置110对所述用户进行拍摄,获取拍摄的图片。When it is detected that a user is looking at the mirror 112 , the acquiring module 300 takes a picture of the user through the at least one camera device 110 and acquires the picture taken.
优选地,当所述获取模块300监测到有用户在所述智能镜子1的监控区域内,且监测到有用户在看所述镜子112,即所述镜子112可以对所述用户的面部呈镜像时。所述至少一个摄像装置110可以对所述用户进行拍摄,拍摄的图片具有用户的面部。Preferably, when the acquisition module 300 detects that a user is in the monitoring area of the smart mirror 1 and detects that a user is looking at the mirror 112, that is, the mirror 112 can mirror the user's face Time. The at least one camera device 110 may take a picture of the user, and the picture taken has the user's face.
需要说明的是,在比较注重仪容的特定场合,或者需要穿戴指定服饰的工作场所等,均需要安置一面镜子来进行仪容整理。在本实施例中,所述摄像装置110可转动地嵌设于所述镜子112,当用户对着所述镜子112整理仪容是,所述摄像装置110可以对用户拍摄图片。所述图片具有人脸。It should be noted that in specific occasions where grooming is more important, or in workplaces where designated clothing is required, a mirror needs to be installed for grooming. In this embodiment, the camera 110 is rotatably embedded in the mirror 112 , and when the user looks at the mirror 112 , the camera 110 can take pictures of the user. The picture has a human face.
在本发明中,所述获取模块300监测到有用户进入所述智能镜子1的监控区域内的方式有很多种。并不限于以下描述的方式。In the present invention, there are many ways for the acquisition module 300 to detect that a user enters the monitoring area of the smart mirror 1 . It is not limited to the manner described below.
优选地,所述至少一个摄像装置110为多个,所述获取模块300通过所述至少一个摄像装置110对所述智能镜子1的监控区域进行抓拍,从抓拍的图片中判断是否有行人,当抓拍的图片中有行人时,则所述智能镜子1监测到有用户进入所述智能镜子1的监控区域内;当抓拍的图片中没有行人时,则所述智能镜子1检测到没有用户在看所述镜子112。Preferably, there are multiple at least one camera device 110, and the acquisition module 300 captures the monitoring area of the smart mirror 1 through the at least one camera device 110, and judges whether there are pedestrians from the captured pictures. When there are pedestrians in the captured picture, the smart mirror 1 detects that a user enters the monitoring area of the smart mirror 1; when there is no pedestrian in the captured picture, the smart mirror 1 detects that no user is watching The mirror 112 .
可选的,所述智能镜子1与行人检测感应器相通信,所述行人检测感应器用于检测所述智能镜子1的监控区域内是否有人,所述智能镜子1获取所述行人检测感应器的检测结果。例如所述行人检测感应器包括,但不限于:基于超声波的行人检测传感器,基于远红外的行人检测传感器,激光扫描行人检测仪等等。Optionally, the smart mirror 1 communicates with a pedestrian detection sensor, and the pedestrian detection sensor is used to detect whether there are people in the monitoring area of the smart mirror 1, and the smart mirror 1 obtains the pedestrian detection sensor's Test results. For example, the pedestrian detection sensors include, but are not limited to: ultrasonic-based pedestrian detection sensors, far-infrared-based pedestrian detection sensors, laser scanning pedestrian detectors, and the like.
在本发明中,所述获取模块300监测所述用户是否在看所述镜子112的方式有很多种。并不限于以下描述的方式。In the present invention, there are many ways for the acquisition module 300 to monitor whether the user is looking at the mirror 112 . It is not limited to the manner described below.
优选地,所述至少一个摄像装置110为多个,所述获取模块300通过所述至少一个摄像装置110对所述智能镜子1的监控区域进行抓拍,从抓拍的图片中判断是否有正面人像,当抓拍的图片中有正面人像时,则所述智能镜子1监测到有用户在看所述镜子112;当抓拍的图片中没有正面人像时,则所述智能镜子1没有有用户在看所述镜子112。Preferably, there are multiple at least one camera device 110, and the acquisition module 300 captures the monitoring area of the smart mirror 1 through the at least one camera device 110, and judges whether there is a frontal portrait from the captured picture, When there is a frontal portrait in the captured picture, the smart mirror 1 detects that a user is looking at the mirror 112; Mirror 112.
在本发明中,当所述获取模块300监测到有用户进入所述智能镜子1的监控区域内,所述智能镜子1需要调用合适的摄像装置110对所述用户进行拍摄,以获取所述用户的人脸图像。In the present invention, when the acquisition module 300 detects that a user enters the monitoring area of the smart mirror 1, the smart mirror 1 needs to call a suitable camera device 110 to take pictures of the user, so as to obtain the face images.
因此,所述获取模块300通过所述至少一个摄像装置110对所述用户进行拍摄,获取拍摄的图片包括:Therefore, the acquiring module 300 photographs the user through the at least one camera 110, and acquiring the photographed pictures includes:
(a1)当监测到有用户在看所述镜子112时,计算所述用户的身高。(a1) When it is detected that a user is looking at the mirror 112, calculate the height of the user.
可选地,所述计算所述用户的身高包括:Optionally, the calculating the height of the user includes:
(a11)当监测到有用户在看所述镜子112时,通过所述至少一个摄像装置110获取图像。(a11) When it is detected that a user is looking at the mirror 112, the at least one camera device 110 is used to acquire an image.
(a12)当获取的图像中的用户图像有全身图像时,确定从所述至少一个摄像装置110中获取全身图像的摄像装置;确定用户与确定的摄像装置的镜头之间的距离。(a12) When the user image in the captured image has a whole-body image, determine the camera device that captures the whole-body image from the at least one camera device 110; determine the distance between the user and the lens of the determined camera device.
(a13)获取所述确定的摄像装置的镜头到所述确定的摄像装置的图像传感器之间的距离和用户在所述确定的摄像装置的图像传感器上的成像高度。(a13) Obtain the distance between the lens of the determined camera device and the image sensor of the determined camera device and the imaging height of the user on the image sensor of the determined camera device.
(a14)根据用户与所述确定的摄像装置的镜头之间的距离、所述确定的摄像装置的镜头到所述确定的摄像装置的图像传感器之间的距离和用户在所述确定的摄像装置的图像传感器上的成像高度,计算用户的身高。(a14) According to the distance between the user and the lens of the determined camera device, the distance between the lens of the determined camera device and the image sensor of the determined camera device, and the distance between the user and the lens of the determined camera device The imaging height on the image sensor is used to calculate the user's height.
进一步地,确定用户与确定的摄像装置的镜头之间的距离的方式有很多种,例如基于双目匹配的测距法等等,本发明不做任何限制。Further, there are many ways to determine the distance between the user and the determined lens of the camera device, for example, a ranging method based on binocular matching, etc., which are not limited in the present invention.
(a2)根据身高与摄像装置110的摄像范围的对应关系,确定所述用户的身高对应的目标摄像范围,并确定所述目标摄像范围所属的目标摄像装置。(a2) Determine the target imaging range corresponding to the user's height according to the correspondence between the height and the imaging range of the imaging device 110, and determine the target imaging device to which the target imaging range belongs.
(a3)使用所述目标摄像装置对所述用户进行拍摄,获得拍摄的图片。(a3) Using the target imaging device to photograph the user, and obtain photographed pictures.
通过上述实施方式,本发明能获取不同身高的用户的人脸图像。例如,在所述镜面显示器上配置了三个摄像头,第一摄像装置、第二摄像装置及第二摄像装置,每个摄像装置的安装高度不同,每个摄像装置的摄像范围不同。所述第一摄像装置的摄像范围用于拍摄身高在1米2至1.5米的用户,所述第二摄像装置的摄像范围用于拍摄身高在1米5至1.8米的用户,所述第三摄像装置的摄像范围用于拍摄身高在18米至2米的用户。当一个用户进入所述智能镜子的监控区域时,计算所述用户的身高位1.65,则调用第二摄像装置对所述用户进行拍摄,以抓取所述用户的人脸图像。这样可以抓取不同身高的用户,用户在无需配合摄像装置。本发明可以对不同身高的用户的特征都可以进行识别,同时也方便后续的个性化信息的显示等等。Through the above implementation manners, the present invention can acquire face images of users of different heights. For example, three cameras are arranged on the mirror display, a first camera, a second camera and a second camera, each camera has a different installation height, and each camera has a different camera range. The imaging range of the first imaging device is used to photograph users whose height is 1.2 to 1.5 meters, the imaging range of the second imaging device is used to photograph users whose height is 1.5 to 1.8 meters, and the third The camera range of the camera device is used to shoot users whose height is between 18 meters and 2 meters. When a user enters the monitoring area of the smart mirror, the user's height is calculated as 1.65, and the second camera is called to take pictures of the user to capture the user's face image. In this way, users of different heights can be captured, and the users do not need to cooperate with the camera device. The present invention can identify the features of users of different heights, and at the same time facilitates the display of subsequent personalized information and the like.
所述确定模块301从所述拍摄的图片中确定所述用户的人脸图像。The determining module 301 determines the face image of the user from the captured picture.
在本发明实施例中,所述确定模块301利用人脸检测方法从所述拍摄的图片中确定所述用户的人脸图像。所述人脸检测方法是现有技术,本发明不对任何限制。In the embodiment of the present invention, the determination module 301 determines the user's face image from the captured picture by using a face detection method. The face detection method is a prior art, and the present invention does not impose any limitation thereon.
所述认证模块302对所述用户的人脸图像进行认证。The authentication module 302 authenticates the user's face image.
在本发明的可选实施例中,所述认证模块302读取预先存储的人脸数据集,将所述用户的人脸图像与所述预先存储的人脸数据集中的人脸数据进行匹配,判断所述用户的人脸图像是否属于所述预先存储的人脸数据集中的人脸数据。例如所述预先存储的人脸数据集可以是某一个公司的所有员工的人脸数据,某个店铺的会员的人脸数据等等。In an optional embodiment of the present invention, the authentication module 302 reads a pre-stored face data set, and matches the user's face image with the face data in the pre-stored face data set, Judging whether the face image of the user belongs to the face data in the pre-stored face data set. For example, the pre-stored face data set may be the face data of all employees of a certain company, the face data of members of a certain shop, and so on.
当所述用户的人脸图像与所述预先存储的人脸数据集中的一个人脸数据的相似度大于或者等于相似度阈值时,所述认证模块302确定所述用户的人脸图像认证成功。When the similarity between the user's face image and a face data in the pre-stored face data set is greater than or equal to a similarity threshold, the authentication module 302 determines that the authentication of the user's face image is successful.
当所述预先存储的人脸数据集中的没有一个人脸数据与所述用户的人脸图像的相似度大于或者等于相似度阈值时,所述认证模块302确定所述用户的人脸图像认证失败,点亮所述镜面显示单元,并显示认证失败的信息。When the similarity between the face data in the pre-stored face data set and the user's face image is greater than or equal to the similarity threshold, the authentication module 302 determines that the user's face image authentication fails , light up the mirror display unit, and display authentication failure information.
当所述用户的人脸图像认证成功时,所述记录模块303记录所述用户。When the face image authentication of the user succeeds, the recording module 303 records the user.
在发明的可选实施例中,所述当所述用户的人脸图像认证成功时,所述记录模块303记录所述用户包括以下一种或者多种的组合:In an optional embodiment of the invention, when the user's face image authentication is successful, the record module 303 records that the user includes one or more of the following combinations:
(b1)当所述用户的人脸图像认证成功时,获取当前时间,记录当前时间及所述用户的信息。这样所述智能镜子可以用于考勤功能,及出入口登记等等。(b1) When the user's face image authentication is successful, obtain the current time, and record the current time and the information of the user. In this way, the smart mirror can be used for checking attendance, registering entrances and exits, and the like.
(b2)当所述用户的人脸图像认证成功时,发送控制指令至与所述智能镜子1相通信的门禁设备以控制所述门禁设备打开。这样所述智能镜子1可以作为门禁监控设备等等,自动为认证的用户开门。(b2) When the user's face image authentication is successful, send a control command to the access control device communicating with the smart mirror 1 to control the access control device to open. In this way, the smart mirror 1 can be used as an access control monitoring device, etc., to automatically open the door for the authenticated user.
所述显示模块304在所述镜面显示器11的镜面显示单元111上显示与所述用户关联的信息。The display module 304 displays information associated with the user on the mirror display unit 111 of the mirror display 11 .
在本发明的可选实施中,所述显示模块304在所述镜面显示器11的镜面显示单元111上显示与所述用户关联的信息包括以下一种或者多种的组合:在所述镜面显示器11的镜面显示单元111上显示所述用户的提醒信息;在当前时间与所述用户的祝福日期匹配时,在所述镜面显示器11的镜面显示单元111上显示祝福信息。这样根据用户的身份,实现个性化的信息推送。In an optional implementation of the present invention, the display module 304 displaying information associated with the user on the mirror display unit 111 of the mirror display 11 includes one or a combination of the following: on the mirror display 11 The user's reminder information is displayed on the mirror display unit 111 of the mirror display unit 111; when the current time matches the user's blessing date, the blessing information is displayed on the mirror display unit 111 of the mirror display unit 11. In this way, personalized information push is realized according to the identity of the user.
进一步地,所述提醒信息包括以下一种或者多种组合,但不限于:日程提醒、任务提醒、会议提醒、待办事项提醒,通知提醒等等。这样可以个性化提醒用户勿忘事项。Further, the reminder information includes one or more combinations of the following, but not limited to: schedule reminders, task reminders, meeting reminders, to-do item reminders, notification reminders, and the like. This allows for personalized reminders of things to remember.
例如,将所述智能镜子1安装在公司的门禁位置,当公司的员工在看所述镜子112时,对员工进行识别认证,并计入考勤,实现自动考勤功能,并能使员工根据所述镜子112注意自己的仪容仪表。另外,当识别出员工后,在镜面显示单元111上显示该员工的日程,会议,待办事项等等,以提醒该员工需要及时跟进的工作事项等等。由于嵌入在所述镜子上的摄像装置比较小,在不影响用户照镜子的同时,还可以推送与用户相关的个性化信息。For example, if the smart mirror 1 is installed at the company's access control position, when the company's employees are looking at the mirror 112, the employees will be identified and authenticated, and counted in attendance, so as to realize the automatic attendance function, and enable the employees to check the attendance according to the The mirror 112 pays attention to one's own grooming. In addition, when an employee is identified, the employee's schedule, meetings, to-do items, etc. are displayed on the mirror display unit 111 to remind the employee of work items that need to be followed up in time. Since the camera device embedded in the mirror is relatively small, personalized information related to the user can also be pushed while not affecting the user looking in the mirror.
例如,将所述智能镜子1安装在小区门口,当业主在看所述镜子112时,自动识别认证,并为业主关门,同时在所述镜面显示单元111上显示该业主的物业未办事项,及时提醒业主办理,同时业主在每天进出该门口时,也根据所述镜子112注意自己的仪容仪表,使每天的生活更精神等等。For example, if the smart mirror 1 is installed at the entrance of the community, when the owner is looking at the mirror 112, it will automatically identify and authenticate, and close the door for the owner, and at the same time display the owner’s unfinished business on the mirror display unit 111, Remind the owner to handle in time, and at the same time, when the owner goes in and out of the door every day, he also pays attention to his appearance according to the mirror 112, so that his daily life is more energetic and so on.
进一步地,所述祝福日期包括,但不限于:生日日期、结婚纪念日等等重要节日日期。例如,将所述智能镜子安装在公司的门禁位置,当公司的员工走进所述智能镜子的监控区域时,对员工进行识别认证,并计入考勤,实现自动考勤功能,并在员工的生日时候,在员工进入公司的第一时间给出祝福,体现人文关怀,使员工更惊喜等等。Further, the blessing dates include, but are not limited to: birthday dates, wedding anniversaries and other important holiday dates. For example, if the smart mirror is installed at the company's access control position, when the company's employees walk into the monitoring area of the smart mirror, the employees will be identified and authenticated, and counted in attendance, so as to realize the automatic attendance function, and on the employee's birthday At the same time, give blessings to employees as soon as they enter the company, embody humanistic care, make employees more pleasantly surprised, etc.
在本发明的可选实施例中,所述交互模块305用于:获取交互信号;通过所述交互信号,对所述镜面显示单元111上显示与所述用户关联的信息进行操作。In an optional embodiment of the present invention, the interaction module 305 is configured to: obtain an interaction signal; and operate the information associated with the user displayed on the mirror display unit 111 through the interaction signal.
进一步地,所述交互信号包括,但不限于:语音信号、手势信号、触控信号等等。Further, the interaction signal includes, but is not limited to: voice signal, gesture signal, touch signal and so on.
进一步地,所述镜面显示器11包括:语音识别组件、手势识别组件、触控识别组件。Further, the mirror display 11 includes: a speech recognition component, a gesture recognition component, and a touch recognition component.
所述交互模块305通过语音识别组件对语音信号进行识别,用户可以通过语音与所述镜面显示器11进行交互。所述交互模块305通过手势识别组件对手势信号进行识别,用户可以通过手势与所述镜面显示器11进行交互。所述交互模块305通过触控识别组件对触摸信号进行识别,用户可以通过触控与所述镜面显示器11进行交互。The interaction module 305 recognizes the voice signal through the voice recognition component, and the user can interact with the mirror display 11 through voice. The interaction module 305 recognizes the gesture signal through the gesture recognition component, and the user can interact with the mirror display 11 through the gesture. The interaction module 305 recognizes the touch signal through the touch recognition component, and the user can interact with the mirror display 11 through touch.
例如,在所述镜面显示单元111上显示用户有一个紧急任务,用户可以输入“打开任务”语音,所述语音识别组件识别所述语音,并在所述镜面显示单元111上显示所述紧急任务,以使用户及时处理紧急事项。For example, it is displayed on the mirror display unit 111 that the user has an urgent task, and the user can input the voice of "open task", and the voice recognition component recognizes the voice, and displays the urgent task on the mirror display unit 111. , so that users can deal with urgent matters in a timely manner.
在本发明的可选实施例中,当监测到所述用户离开所述智能镜子1的监控区域内时,所述控制模块306关闭所述镜面显示单元111,所述镜面显示单元111可以通过所述第一部分与所述第二部分组成完整的镜面。In an optional embodiment of the present invention, when it is detected that the user leaves the monitoring area of the smart mirror 1, the control module 306 turns off the mirror display unit 111, and the mirror display unit 111 can pass the The first part and the second part form a complete mirror surface.
在本发明的可选实施例中,当获取到所述镜面显示单元111的开关的触发信号,且触发所述镜面显示单元111的开关处于关闭状态时,所述控制模块306关闭所述镜面显示单元,所述镜面显示单元111可以通过所述第一部分与所述第二部分组成完整的镜面。In an optional embodiment of the present invention, when the trigger signal of the switch of the mirror display unit 111 is obtained, and the trigger switch of the mirror display unit 111 is in the off state, the control module 306 turns off the mirror display unit, the mirror display unit 111 can form a complete mirror through the first part and the second part.
所述触发信号包括,但不限于:语音信号、手势信号、触控信号等等。The trigger signal includes, but is not limited to: voice signal, gesture signal, touch signal and so on.
例如,用户输入语音“关闭镜面显示器的开关”,所述语音识别组件所述语音,并触发所述镜面显示单元111的开关处于关闭状态。例如用户输入向左挥手的手势,手势识别组件识别所述向左挥手的手势,并触发所述镜面显示单元111的开关处于关闭状态。在所述镜面显示单元111上触控所述镜面显示单元111的开关,使所述镜面显示单元111处于关闭状态等等。For example, the user inputs a voice "turn off the switch of the mirror display", and the voice recognition component triggers the voice to turn off the switch of the mirror display unit 111 . For example, the user inputs a gesture of waving to the left, and the gesture recognition component recognizes the gesture of waving to the left, and triggers the switch of the mirror display unit 111 to be in an off state. Touching the switch of the mirror display unit 111 on the mirror display unit 111 makes the mirror display unit 111 in an off state and so on.
在本发明中,所述智能镜子1的应用并不限于上述应用的举例,也可以应用于其他场景,例如,会议出入口、考场出入口等等。对所述智能镜子的应用场景,本发明不做任何限制。In the present invention, the application of the smart mirror 1 is not limited to the above-mentioned application examples, and can also be applied to other scenarios, for example, entrances and exits of conferences, entrances and exits of examination rooms, and so on. The present invention does not impose any limitation on the application scenarios of the smart mirror.
本发明中所述智能镜子包括所述镜面显示器,所述镜面显示器包括至少一个摄像装置、镜面显示单元及镜子,所述镜子的第一部分对应所述镜面显示单元,所述镜面显示单元通过所述第一部分显示信息。当监测到有用户在看所述镜子时,通过所述至少一个摄像装置对所述用户进行拍摄,获取拍摄的图片;从所述拍摄的图片中确定所述用户的人脸图像;对所述用户的人脸图像进行认证;当所述用户的人脸图像认证成功时,记录所述用户;在所述镜面显示器的镜面显示单元上显示与所述用户关联的信息。本发明能通过镜面显示器实现认证的相关应用,并能使用户注重自己的仪容仪表,同时提供用户个性化的定制功能,提供与用户相关的事项提醒及人文关怀信息,另外,能适用所有用户,当用户出现在镜面显示器的监控区域内时,用户无需配合所述镜面显示器,就能对用户进行认证,提高了用户体验。In the present invention, the smart mirror includes the mirror display, the mirror display includes at least one camera device, a mirror display unit and a mirror, the first part of the mirror corresponds to the mirror display unit, and the mirror display unit passes through the The first section displays information. When it is detected that a user is looking at the mirror, the user is photographed by the at least one camera device, and the photographed picture is acquired; the face image of the user is determined from the photographed picture; The user's face image is authenticated; when the user's face image is successfully authenticated, the user is recorded; and the information associated with the user is displayed on the mirror display unit of the mirror display. The present invention can realize authentication-related applications through the mirror display, and enable users to pay attention to their own appearance, and at the same time provide users with personalized customization functions, provide user-related reminders and humanistic care information, and can be applied to all users. When the user appears in the monitoring area of the mirror display, the user can be authenticated without cooperating with the mirror display, thereby improving user experience.
上述以软件功能模块的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能模块存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明每个实施例所述方法的部分步骤。The above-mentioned integrated units implemented in the form of software function modules can be stored in a computer-readable storage medium. The above-mentioned software function modules are stored in a storage medium, and include several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) execute the method described in each embodiment of the present invention part of the steps.
如图4所示,是本发明的智能镜子的另一结构示意框架图。所述智能镜子1还包括至少一个发送装置41、至少一个存储器42、至少一个处理器43、至少一个接收装置44以及至少一个通信总线。其中,所述通信总线用于实现这些组件之间的连接通信。As shown in FIG. 4 , it is another structural schematic frame diagram of the smart mirror of the present invention. The smart mirror 1 also includes at least one sending device 41 , at least one memory 42 , at least one processor 43 , at least one receiving device 44 and at least one communication bus. Wherein, the communication bus is used to realize connection and communication between these components.
所述智能镜子1是一种能够按照事先设定或存储的指令,自动进行数值计算和/或信息处理的设备,其硬件包括但不限于微处理器、专用集成电路(Application SpecificIntegrated Circuit,ASIC)、可编程门阵列(Field-Programmable Gate Array,FPGA)、数字处理器(Digital Signal Processor,DSP)、嵌入式设备等。所述智能镜子1还可与电子设备中,所述电子设备包括网络设备和/或用户设备。其中,所述网络设备包括但不限于单个网络服务器、多个网络服务器组成的服务器组或基于云计算(Cloud Computing)的由大量主机或网络服务器构成的云,其中,云计算是分布式计算的一种,由一群松散耦合的计算机集组成的一个超级虚拟计算机。The smart mirror 1 is a device that can automatically perform numerical calculations and/or information processing according to preset or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC) , Programmable gate array (Field-Programmable Gate Array, FPGA), digital processor (Digital Signal Processor, DSP), embedded devices, etc. The smart mirror 1 can also be integrated with electronic equipment, and the electronic equipment includes network equipment and/or user equipment. Wherein, the network device includes but is not limited to a single network server, a server group composed of multiple network servers, or a cloud based on cloud computing (Cloud Computing) composed of a large number of hosts or network servers, wherein cloud computing is distributed computing A super virtual computer consisting of a group of loosely coupled computer sets.
所述智能镜子1可以是,但不限于任何一种可与用户通过键盘、触摸板或声控设备等方式进行人机交互的电子产品。所述电子设备可以是,但不限于任何一种可与用户通过键盘、触摸板或声控设备等方式进行人机交互的电子产品。例如,平板电脑、智能手机、个人数字助理(Personal Digital Assistant,PDA)、智能式穿戴式设备、摄像设备、监控设备、显示设备等终端。The smart mirror 1 can be, but is not limited to, any electronic product that can interact with the user through keyboards, touch pads, or voice-activated devices. The electronic device may be, but not limited to, any electronic product capable of man-machine interaction with the user through keyboards, touch pads, or voice-activated devices. For example, terminals such as a tablet computer, a smart phone, a personal digital assistant (Personal Digital Assistant, PDA), a smart wearable device, a camera device, a monitoring device, and a display device.
所述智能镜子1、所述电子设备所处的网络包括,但不限于互联网、广域网、城域网、局域网、虚拟专用网络(Virtual Private Network,VPN)等。The smart mirror 1 and the network where the electronic device is located include, but are not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (Virtual Private Network, VPN) and the like.
其中,所述接收装置44和所述发送装置41可以是有线发送端口,也可以为无线设备,例如包括天线装置,用于与其他设备进行数据通信。Wherein, the receiving device 44 and the sending device 41 may be wired sending ports, or may be wireless devices, such as including antenna devices, for performing data communication with other devices.
所述存储器42用于存储程序代码。所述存储器42可以是集成电路中没有实物形式的具有存储功能的电路,如RAM(Random-Access Memory,随机存取存储器)、FIFO(First InFirst Out,)等。或者,所述存储器42也可以是具有实物形式的存储器,如内存条、TF卡(Trans-flash Card)、智能媒体卡(smart media card)、安全数字卡(secure digitalcard)、快闪存储器卡(flash card)等储存设备等等。The memory 42 is used to store program codes. The memory 42 may be a circuit with a storage function that has no physical form in an integrated circuit, such as RAM (Random-Access Memory, random access memory), FIFO (First InFirst Out,) and the like. Or, the memory 42 can also be a memory with a physical form, such as a memory stick, a TF card (Trans-flash Card), a smart media card (smart media card), a secure digital card (secure digital card), a flash memory card ( flash card) and other storage devices, etc.
所述处理器43可以包括一个或者多个微处理器、数字处理器。所述处理器43可调用存储器42中存储的程序代码以执行相关的功能。例如,图3中所述的各个单元是存储在所述存储器42中的程序代码,并由所述处理器43所执行,以实现一种人脸认证方法。所述处理器43又称中央处理器(CPU,Central Processing Unit),是一块超大规模的集成电路,是运算核心(Core)和控制核心(Control Unit)。The processor 43 may include one or more microprocessors and digital processors. The processor 43 can call the program codes stored in the memory 42 to execute related functions. For example, each unit described in FIG. 3 is a program code stored in the memory 42 and executed by the processor 43 to implement a face authentication method. The processor 43 is also called a central processing unit (CPU, Central Processing Unit), which is a very large-scale integrated circuit, and is a computing core (Core) and a control core (Control Unit).
本发明实施例还提供一种计算机可读存储介质,其上存储有计算机指令,所述指令当被包括一个或多个处理器的智能镜子1执行时,使智能镜子1执行如上文方法实施例所述的人脸认证方法。The embodiment of the present invention also provides a computer-readable storage medium, on which computer instructions are stored, and when the instructions are executed by the smart mirror 1 including one or more processors, the smart mirror 1 can perform the above-mentioned method embodiment. The described face authentication method.
结合图1及图2所示,所述智能镜子1包括所述镜面显示器11,所述镜面显示器11包括至少一个摄像装置110、镜面显示单元111及镜子112,所述镜面显示单元通过所述镜子的第一部分显示信息,所述镜子的第二部分用于成像,且所述至少一个摄像装置嵌设于所述第二部分。所述智能镜子1中的所述存储器42存储多个指令以实现一种商品推荐方法,所述处理器43可执行所述多个指令从而实现:当监测到有用户在看所述镜子时,通过所述至少一个摄像装置对所述用户进行拍摄,获取拍摄的图片;从所述拍摄的图片中确定所述用户的人脸图像;对所述用户的人脸图像进行认证;当所述用户的人脸图像认证成功时,记录所述用户;在所述镜面显示器的镜面显示单元上显示与所述用户关联的信息。1 and 2, the smart mirror 1 includes the mirror display 11, the mirror display 11 includes at least one camera 110, a mirror display unit 111 and a mirror 112, and the mirror display unit passes through the mirror The first part of the mirror displays information, the second part of the mirror is used for imaging, and the at least one camera device is embedded in the second part. The memory 42 in the smart mirror 1 stores multiple instructions to implement a product recommendation method, and the processor 43 can execute the multiple instructions to achieve: when it is detected that a user is looking at the mirror, The user is photographed by the at least one camera device, and the photographed picture is obtained; the facial image of the user is determined from the photographed photograph; the facial image of the user is authenticated; when the user When the face image authentication of the user is successful, the user is recorded; and the information associated with the user is displayed on the mirror display unit of the mirror display.
在本发明的可选实施例中,所述至少一个摄像装置为多个,不同所述摄像装置的摄像范围不同,所述当监测到有用户在看所述镜子时,通过所述至少一个摄像装置对所述用户进行拍摄,获取拍摄的图片包括:In an optional embodiment of the present invention, there are multiple at least one camera, and different camera devices have different camera ranges. When it is detected that a user is looking at the mirror, the at least one camera The device shoots the user, and obtaining the captured pictures includes:
当监测到有用户在看所述镜子时,计算所述用户的身高;When it is detected that a user is looking at the mirror, calculate the height of the user;
根据身高与摄像装置的摄像范围的对应关系,确定所述用户的身高对应的目标摄像范围,并确定所述目标摄像范围所属的目标摄像装置;According to the corresponding relationship between the height and the imaging range of the imaging device, determine the target imaging range corresponding to the height of the user, and determine the target imaging device to which the target imaging range belongs;
使用所述目标摄像装置对所述用户进行拍摄,获得拍摄的图片。The user is photographed by the target photographing device to obtain photographed pictures.
在本发明的可选实施例中,所述当监测到有用户进入所述智能镜子的预设范围内时,计算所述用户的身高包括:In an optional embodiment of the present invention, when it is detected that a user enters the preset range of the smart mirror, calculating the height of the user includes:
当监测到有用户在看所述镜子时,通过所述至少一个摄像装置获取图像;When it is detected that a user is looking at the mirror, an image is acquired through the at least one camera device;
当获取的图像中的用户图像有全身图像时,确定从所述至少一个摄像装置中获取全身图像的摄像装置;When the user image in the acquired image has a whole-body image, determine the camera that acquires the whole-body image from the at least one camera;
确定用户与确定的摄像装置的镜头之间的距离;Determining the distance between the user and the lens of the determined camera device;
获取所述确定的摄像装置的镜头到所述确定的摄像装置的图像传感器之间的距离和用户在所述确定的摄像装置的图像传感器上的成像高度;Obtaining the distance between the lens of the determined camera device and the image sensor of the determined camera device and the imaging height of the user on the image sensor of the determined camera device;
根据用户与所述确定的摄像装置的镜头之间的距离、所述确定的摄像装置的镜头到所述确定的摄像装置的图像传感器之间的距离和用户在所述确定的摄像装置的图像传感器上的成像高度,计算用户的身高。According to the distance between the user and the lens of the determined camera device, the distance between the lens of the determined camera device and the image sensor of the determined camera device, and the distance between the user and the image sensor of the determined camera device Calculate the height of the user based on the imaging height above.
在本发明的可选实施例中,所述当所述用户的人脸图像认证成功时,记录所述用户包括以下一种或者多种的组合:In an optional embodiment of the present invention, when the user's face image authentication is successful, recording the user includes one or more of the following combinations:
当所述用户的人脸图像认证成功时,获取当前时间,记录当前时间及所述用户的信息;When the face image authentication of the user is successful, obtain the current time, record the current time and the information of the user;
当所述用户的人脸图像认证成功时,发送控制指令至与所述智能镜子相通信的门禁设备以控制所述门禁设备打开。When the user's face image authentication is successful, a control command is sent to the access control device communicating with the smart mirror to control the access control device to open.
在本发明的可选实施例中,所述在所述镜面显示器的镜面显示单元上显示与所述用户关联的信息包括以下一种或者多种的组合:In an optional embodiment of the present invention, the displaying the information associated with the user on the mirror display unit of the mirror display includes one or more of the following combinations:
在所述镜面显示器的镜面显示单元上显示所述用户的提醒信息;或displaying a reminder message for the user on a mirror display unit of the mirror display; or
在当前时间与所述用户的祝福日期匹配时,在所述镜面显示器的镜面显示单元上显示祝福信息。When the current time matches the user's blessing date, the blessing information is displayed on the mirror display unit of the mirror display.
在本发明的可选实施例中,所述处理器43执行的所述多个指令还包括:In an optional embodiment of the present invention, the multiple instructions executed by the processor 43 further include:
当监测到所述用户离开所述智能镜子的监控区域内时,所述镜面显示单元通过所述第一部分与所述镜子的第二部分组成完整的镜面;When it is detected that the user leaves the monitoring area of the smart mirror, the mirror display unit forms a complete mirror through the first part and the second part of the mirror;
当获取到所述镜面显示单元的开关的触发信号,且触发所述镜面显示单元的开关处于关闭状态时,关闭所述镜面显示单元,所述镜面显示单元通过所述第一部分与所述镜子的第二部分组成完整的镜面。When the trigger signal of the switch of the mirror display unit is obtained, and the trigger switch of the mirror display unit is in the closed state, the mirror display unit is turned off, and the mirror display unit passes through the first part and the mirror. The second part makes up the complete mirror.
在本发明的可选实施例中,所述处理器43执行的所述多个指令还包括:In an optional embodiment of the present invention, the multiple instructions executed by the processor 43 further include:
获取交互信号;Get interactive signals;
通过所述交互信号,对所述镜面显示器的镜面显示单元上显示与所述用户关联的信息进行操作。The information associated with the user is displayed on the mirror display unit of the mirror display through the interaction signal.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that for the foregoing method embodiments, for the sake of simple description, they are expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence. Because of the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or can be Integrate into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明的各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage media include: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes. .
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still understand the foregoing The technical solutions recorded in each embodiment are modified, or some of the technical features are replaced equivalently; and these modifications or replacements do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711241159.2A CN107832745B (en) | 2017-11-30 | 2017-11-30 | Face authentication method, intelligent mirror and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711241159.2A CN107832745B (en) | 2017-11-30 | 2017-11-30 | Face authentication method, intelligent mirror and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN107832745A true CN107832745A (en) | 2018-03-23 |
| CN107832745B CN107832745B (en) | 2020-10-23 |
Family
ID=61647272
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201711241159.2A Active CN107832745B (en) | 2017-11-30 | 2017-11-30 | Face authentication method, intelligent mirror and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107832745B (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109936695A (en) * | 2019-02-22 | 2019-06-25 | 深圳市一加多科技有限公司 | A kind of intelligence self-photography mirror and intelligent self-timer box |
| CN110572906A (en) * | 2019-09-06 | 2019-12-13 | 渲美美健(深圳)科技股份有限公司 | brightness adjusting method for mirror, mirror and storage medium |
| CN110874133A (en) * | 2018-08-31 | 2020-03-10 | 阿里巴巴集团控股有限公司 | Interaction method based on intelligent display device, intelligent display device and storage medium |
| CN111665728A (en) * | 2020-05-11 | 2020-09-15 | 广州日顺电子科技有限公司 | Hotel intelligent comprehensive management method, electronic equipment, storage medium and system |
| CN111736725A (en) * | 2020-06-10 | 2020-10-02 | 京东方科技集团股份有限公司 | Smart mirror and smart mirror wake-up method |
| CN114098385A (en) * | 2021-10-29 | 2022-03-01 | 北京瞰瞰智能科技有限公司 | Intelligent traveling mirror device, control method thereof and controller |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106377264A (en) * | 2016-10-20 | 2017-02-08 | 广州视源电子科技股份有限公司 | Human height measuring method and device and intelligent mirror |
| US20170118405A1 (en) * | 2015-10-21 | 2017-04-27 | Samsung Electronics Co., Ltd | Method for detecting eye of subject and electronic device thereof |
| CN106960200A (en) * | 2017-04-01 | 2017-07-18 | 罗旗舞 | A kind of face recognition device |
| CN107340856A (en) * | 2017-06-12 | 2017-11-10 | 美的集团股份有限公司 | Control method, controller, Intelligent mirror and computer-readable recording medium |
| CN107358025A (en) * | 2017-06-12 | 2017-11-17 | 美的集团股份有限公司 | Control method, control device, Intelligent mirror and computer-readable recording medium |
-
2017
- 2017-11-30 CN CN201711241159.2A patent/CN107832745B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20170118405A1 (en) * | 2015-10-21 | 2017-04-27 | Samsung Electronics Co., Ltd | Method for detecting eye of subject and electronic device thereof |
| CN106377264A (en) * | 2016-10-20 | 2017-02-08 | 广州视源电子科技股份有限公司 | Human height measuring method and device and intelligent mirror |
| CN106960200A (en) * | 2017-04-01 | 2017-07-18 | 罗旗舞 | A kind of face recognition device |
| CN107340856A (en) * | 2017-06-12 | 2017-11-10 | 美的集团股份有限公司 | Control method, controller, Intelligent mirror and computer-readable recording medium |
| CN107358025A (en) * | 2017-06-12 | 2017-11-17 | 美的集团股份有限公司 | Control method, control device, Intelligent mirror and computer-readable recording medium |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110874133A (en) * | 2018-08-31 | 2020-03-10 | 阿里巴巴集团控股有限公司 | Interaction method based on intelligent display device, intelligent display device and storage medium |
| CN110874133B (en) * | 2018-08-31 | 2023-04-21 | 阿里巴巴集团控股有限公司 | Interaction method based on intelligent display device, intelligent display device and storage medium |
| CN109936695A (en) * | 2019-02-22 | 2019-06-25 | 深圳市一加多科技有限公司 | A kind of intelligence self-photography mirror and intelligent self-timer box |
| CN110572906A (en) * | 2019-09-06 | 2019-12-13 | 渲美美健(深圳)科技股份有限公司 | brightness adjusting method for mirror, mirror and storage medium |
| CN111665728A (en) * | 2020-05-11 | 2020-09-15 | 广州日顺电子科技有限公司 | Hotel intelligent comprehensive management method, electronic equipment, storage medium and system |
| CN111736725A (en) * | 2020-06-10 | 2020-10-02 | 京东方科技集团股份有限公司 | Smart mirror and smart mirror wake-up method |
| CN114098385A (en) * | 2021-10-29 | 2022-03-01 | 北京瞰瞰智能科技有限公司 | Intelligent traveling mirror device, control method thereof and controller |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107832745B (en) | 2020-10-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107832745A (en) | Face authentication method, Intelligent mirror and storage medium | |
| KR102350507B1 (en) | Access control method, access control device, system and storage medium | |
| CN110363150A (en) | Data update method and device, electronic device and storage medium | |
| CN107928275A (en) | Information recommendation method, intelligent mirror and storage medium | |
| US11798113B1 (en) | Automated background check via voice pattern matching | |
| CN103514438A (en) | Face judgment system and method | |
| TW201933288A (en) | Attendance check method and apparatus, and attendance check device | |
| CN107230066B (en) | Payment method and device, computer device and readable storage medium | |
| CN108090422A (en) | Hair style recommends method, Intelligent mirror and storage medium | |
| CN108932760A (en) | Work attendance method and terminal based on recognition of face | |
| KR101534808B1 (en) | Method and System for managing Electronic Album using the Facial Recognition | |
| WO2021047069A1 (en) | Face recognition method and electronic terminal device | |
| CN109191635B (en) | Passenger judging method and device based on face recognition technology and storage medium | |
| WO2022227562A1 (en) | Identity recognition method and apparatus, and electronic device, storage medium and computer program product | |
| CN110287671A (en) | Verification method and device, electronic device and storage medium | |
| KR20160025768A (en) | Attendance Management System Using Face Recognition | |
| CN108197585A (en) | Recognition algorithms and device | |
| KR20190111034A (en) | Feature image acquisition method and device, and user authentication method | |
| CN107920070A (en) | Identity identifying method, server and system | |
| CN108154090A (en) | Face identification method and device | |
| CN109213889A (en) | A kind of method and device that customer information merges | |
| CN111027812A (en) | Person identification method, person identification system, and computer-readable storage medium | |
| JP2018151840A (en) | System, method and program for collation | |
| US20240028698A1 (en) | System and method for perfecting and accelerating biometric identification via evolutionary biometrics via continual registration | |
| CN205845109U (en) | A kind of multi-screen is registered system |
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 |