Electronic device and control method
By using high-precision detection modes and high-reliability area settings in electronic devices, combined with sensor judgment, the problem of facial authentication failure when the user deviates from the front is solved, improving the accuracy and safety of facial authentication and ensuring the stable operation of the device and safe to use.
Patent Information
- Application Number
- CN202410192612.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-02-21
- Filing Date
- 2024-02-21
- Publication Date
- 2024-08-23
AI Technical Summary
It is difficult for existing electronic devices based on face detection to maintain facial authentication to lock control after the user starts it. Especially when the user deviates slightly from the front, facial authentication fails, resulting in limited security and usability.
Adopting high-precision detection mode and high-reliability area setting, by detecting the facial area in the image data and performing facial authentication outside the detected facial area, it combines the sensor to determine whether the device is being held, and adjusts facial authentication and standby control.
It improves the accuracy and security of facial authentication, reduces false authentications, ensures that the device does not accidentally transfer to standby state when the user is present, and enhances the user experience and security of the device.
Smart Images

Figure CN118540571A
Abstract
Description
Technical Field
[0001] The invention relates to an electronic device and a control method. Background Art
[0002] There is an electronic device that switches to an operational state when a person approaches, and switches to a standby state in which all functions are stopped except for a part of the functions when the person moves away. For example, Patent Document 1 discloses a technology that controls the operational state of an electronic device by using an infrared sensor to detect the strength of infrared rays, thereby detecting whether a person approaches or moves away.
[0003] In recent years, due to the development of computer vision and other technologies, the accuracy of face detection from images has increased. Therefore, instead of using infrared sensors to detect people, people detection based on face detection is also performed. In the detection of people based on face detection, not only people are detected, but also whether it is a user can be determined by performing facial authentication.
[0004] Patent Document 1: Japanese Patent Application Publication No. 2016-148895
[0005] For example, if control is performed such that an electronic device is activated when a user approaches but not activated even if someone other than the user approaches, or if the electronic device is locked (transferred to standby mode) so that it cannot be used even if a person other than the user is detected when the user moves away during operation, then improved security can be expected.
[0006] However, the angle of the face that can be used for facial recognition is limited to a range of about ±15° relative to the front. When performing facial recognition to start the electronic device, the user intentionally faces the front, but after the user's facial recognition is successful and the device is started, the user may not always face the front, so even if the user faces slightly to the side, facial recognition will fail. Therefore, in the operation after the electronic device is started, it is difficult to control the locking of the electronic device using facial recognition. Summary of the invention
[0007] The present invention has been made in view of the above-mentioned situation, and one of its objects is to provide an electronic device and a control method for improving security by using facial authentication.
[0008] The present invention is made to solve the above-mentioned problems. The electronic device involved in the first mode of the present invention includes: a memory for temporarily storing image data of an image captured by a camera; and a processor for executing system processing based on a system program and processing using the above-mentioned image data, wherein the processor performs: face detection processing, first area setting processing, face authentication processing and standby state control processing. In the above-mentioned face detection processing, there is a first detection mode for detecting a face area in which a face is captured from the above-mentioned image data stored in the above-mentioned memory with a first detection accuracy, and a second detection mode for detecting a face area in which a face is captured from the above-mentioned image data stored in the above-mentioned memory with a second detection accuracy higher than the above-mentioned first detection accuracy; in the above-mentioned first area setting processing, when the above-mentioned face area is detected by the above-mentioned face detection processing in the above-mentioned second detection mode, a first area based on the detected face area is set; in the above-mentioned face authentication processing, when the above-mentioned face area detected by the above-mentioned face detection processing becomes a second area outside the above-mentioned first area, face authentication is performed based on the above-mentioned face area detected in the above-mentioned second area; in the above-mentioned standby state control processing, based on the authentication result of the above-mentioned face authentication processing, the system is transferred to the standby state.
[0009] In addition, the electronic device involved in the second mode of the present invention includes: a memory that temporarily stores image data of an image captured by a camera; and a processor that executes system processing based on a system program and processing using the above-mentioned image data, and the above-mentioned processor performs: face detection processing, first area setting processing, face authentication processing and standby state control processing, in which the above-mentioned face detection processing detects an area with an evaluation value of face similarity greater than a first threshold value from the above-mentioned image of the image data stored in the above-mentioned memory as a face area; in the above-mentioned first area setting processing, in the case where the above-mentioned face area with the evaluation value greater than a second threshold value higher than the above-mentioned first threshold value is detected by the above-mentioned face detection processing, a first area based on the detected face area is set; in the above-mentioned face authentication processing, when the above-mentioned face area detected by the above-mentioned face detection processing becomes a second area outside the above-mentioned first area, face authentication is performed based on the above-mentioned face area detected in the above-mentioned second area; in the above-mentioned standby state control processing, the system is transferred to the standby state based on the authentication result of the above-mentioned face authentication processing.
[0010] In the electronic device, when a plurality of facial regions are detected in the facial detection process, the processor may perform the first region setting process and the facial authentication process based on one facial region among the plurality of facial regions.
[0011] In the electronic device, the processor may perform the first region setting process and the face authentication process based on a largest face region among the plurality of face regions.
[0012] In the electronic device, the processor may perform the first region setting process and the face authentication process based on a face region closest to the center of the image among the plurality of face regions.
[0013] In the electronic device, the processor may change the position or size of the first area according to a change in the position or size of the facial area detected by the facial detection process after setting the first area in the first area setting process.
[0014] In the electronic device, the processor may be configured such that, in the first area setting process, the processor cancels the first area based on the fact that the face area detected by the face detection process becomes the second area.
[0015] In the above-mentioned electronic device, it can also be configured that when the facial recognition result is successful through the above-mentioned facial recognition processing based on the above-mentioned facial area detected in the above-mentioned second area, in the above-mentioned first area setting processing, the above-mentioned processor resets the above-mentioned first area based on the above-mentioned facial area detected in the above-mentioned second area.
[0016] The electronic device may also be configured to include a sensor for detecting the movement of the electronic device, and the processor may further perform a determination process. In the determination process, the sensor may be used to determine whether the electronic device is held by hand. When the determination process determines that the electronic device is held by hand, the standby state control process for outputting information for transferring the system to a standby state based on the authentication result of the facial authentication process is retained.
[0017] In the above-mentioned electronic device, it can also be configured that the above-mentioned shooting device includes: a first shooting element for shooting visible light and a second shooting element for shooting infrared light, the above-mentioned first detection mode is a detection mode for shooting using only the above-mentioned first shooting element of the above-mentioned first shooting element and the above-mentioned second shooting element, and the above-mentioned second detection mode is a detection mode for shooting using at least the above-mentioned second shooting element.
[0018] In addition, a third embodiment of the present invention relates to a control method in an electronic device, the electronic device comprising: a memory for temporarily storing image data of an image captured by a camera; and a processor for executing system processing based on a system program and processing using the image data, the control method comprising: a face detection step, having a first detection mode in which the processor detects a face area in which a face is captured from the image of the image data stored in the memory with a first detection accuracy, and a second detection mode in which the processor detects a face area in which a face is captured from the image of the image data stored in the memory with a second detection accuracy higher than the first detection accuracy; a first area setting step, when the face area is detected in the second detection mode by the face detection step, setting a first area based on the detected face area; a face authentication step, when the face area detected by the face detection step becomes a second area outside the first area, performing face authentication based on the face area detected in the second area; and a standby state control step, transferring the system to a standby state based on the authentication result of the face authentication step.
[0019] In addition, a fourth embodiment of the present invention relates to a control method in an electronic device, the electronic device comprising: a memory for temporarily storing image data of an image captured by a camera; and a processor for executing system processing based on a system program and processing using the image data, the control method comprising: a face detection step, the processor detecting an area having an evaluation value of face similarity above a first threshold value from the image of the image data stored in the memory as a face area; a first area setting step, in a case where the face area having an evaluation value above a second threshold value higher than the first threshold value is detected by the face detection step, setting a first area based on the detected face area; a face authentication step, in a case where the face area detected by the face detection step becomes a second area outside the first area, performing face authentication based on the face area detected in the second area; and a standby state control step, in which the system is transferred to a standby state based on the authentication result of the face authentication step.
[0020] According to the above aspects of the present invention, it is possible to improve security using face authentication. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 This is a diagram for explaining an overview of HPD processing by the electronic device according to the first embodiment.
[0022] Figure 2 FIG. 1 is a diagram showing an example of a captured image in which a face area is detected.
[0023] Figure 3 FIG. 1 is a diagram showing an example of a captured image in which a face area is not detected.
[0024] Figure 4 It is a diagram showing a setting example of the high reliability region according to the first embodiment.
[0025] Figure 5 This is a diagram showing an example of comparison between the standard detection mode and the high-precision detection mode according to the first embodiment.
[0026] Figure 6 It is a perspective view showing a configuration example of the appearance of the electronic device according to the first embodiment.
[0027] Figure 7 This is a block diagram showing an example of the hardware configuration of the electronic device according to the first embodiment.
[0028] Figure 8 This is a block diagram showing an example of a functional configuration of an electronic device according to the first embodiment.
[0029] Fig. 9 It is an explanatory diagram of tracking of a high reliability area according to the first embodiment.
[0030] Fig.10 This is a flowchart showing an example of face detection processing in the standard detection mode according to the first embodiment.
[0031] Fig.11 This is a flowchart showing an example of the standby state control process according to the first embodiment.
[0032] Fig.12 This is a block diagram showing an example of a functional configuration of an electronic device according to the second embodiment.
[0033] Fig.13 1 is a flowchart showing an example of a process of retaining the standby state control process according to the second embodiment.
[0034] Description of Reference Numerals
[0035] 1(1A)…electronic device; 10…first housing; 20…second housing; 15…hinge mechanism; 110…display unit; 120…shooting unit; 121…first camera; 122…second camera; 130…acceleration sensor; 140…power button; 150…input device; 151…keyboard; 153…touch pad; 160…image output terminal; 200…EC; 210…action control unit; 215…state determination unit; 220…face detection unit; 221…face detection processing unit; 222…detection area setting unit; 223…face authentication processing unit; 224…HPD processing unit; 300…system processing unit; 302…CPU; 304…GPU; 306…memory controller; 308…I / O controller; 310…system memory; 320…user authentication unit; 350…communication unit; 360…storage unit; 400…power supply unit. DETAILED DESCRIPTION
[0036] Hereinafter, embodiments of the present invention will be described with reference to the drawings.
[0037] <First embodiment>
[0038] First, an overview of the electronic device 1 according to the first embodiment will be described.
[0039] The electronic device 1 according to the present embodiment is, for example, a notebook PC (Personal Computer).
[0040] Electronic device 1 has at least a "normal operation state" and a "standby state" as system operation states. The normal operation state is an operation state in which processing can be executed without particular restrictions, and corresponds to, for example, the S0 state specified in ACPI (Advanced Configuration and Power Interface).
[0041] The standby state is a state in which the use of at least part of the functions of the system is restricted, for example, the system is locked. The locked state refers to a state in which a preset image (for example, a lock image) is displayed on the display unit so that the content being processed cannot be visually confirmed, and the system cannot be used until the lock is unlocked by user authentication, etc. In addition, the standby state can be a standby state or a sleep state, etc., or it can be a modern standby in Windows (registered trademark), a state equivalent to the S3 state (sleep state) specified by ACPI, etc. In other words, the standby state is equivalent to any one of, for example, an action state in which the power consumption is lower than the normal action state, a state in which the user cannot visually confirm the operation content of the electronic device 1, or a state in which the user cannot use the electronic device 1.
[0042] In addition, the operating state of the system includes a "stop state" in which power consumption is lower than that of the standby state. The stop state is, for example, a sleep state, a power-off state, etc. The sleep state is, for example, equivalent to the S4 state specified by ACPI. The power-off state is, for example, equivalent to the S5 state (shutdown state) specified by ACPI.
[0043] Hereinafter, the transition of the system operation state from the standby state or the stop state to the normal operation state may be referred to as startup. The standby state and the stop state have lower activity than the normal operation state, so startup of the system of the electronic device 1 is an action to activate the system in the electronic device 1.
[0044] Figure 1 1 is a diagram for explaining an overview of the HPD processing of the electronic device 1 involved in this embodiment. The electronic device 1 detects a person (i.e., a user) that is present near the electronic device 1. The process of detecting the presence of the person is called HPD (Human Presence Detection) processing. The electronic device 1 detects the presence of the person through the HPD processing and controls the operating state of the system of the electronic device 1 based on the detection result. For example, Figure 1 As shown in (A), when the electronic device 1 detects a change from a state where there is no person in front of the electronic device 1 (Absence) to a state where there is a person (Presence), that is, when a person approaches the electronic device 1 (Approach), the electronic device 1 determines that the user is approaching, automatically starts the system and makes it transition to the normal operation state. Figure 1 As shown in (B), in the state (Presence) where there is a person in front of the electronic device 1, the electronic device 1 determines that there is a user and continues the normal operation state. Figure 1 As shown in (C), when the electronic device 1 detects a change from a state where a person exists in front of (on the front of) the electronic device 1 (Presence) to a state where no person exists (Absence), that is, when a person leaves the electronic device 1 (Leave), the electronic device 1 determines that the user has left and switches the system to a standby state.
[0045] For example, the electronic device 1 has a face detection function, and determines whether there is a user in front of (from the front of) the electronic device 1 by detecting a facial area in which a face is captured from a captured image obtained from the front (front side) of the camera. When a facial area is detected from the captured image, the electronic device 1 determines that there is a user. On the other hand, when a facial area is not detected from the captured image, the electronic device 1 determines that there is no user. That is, when the electronic device 1 detects that a user is approaching (Approach) the electronic device 1, the system is transferred to a normal operation state. In addition, when the electronic device 1 detects that a user is leaving (Leave) the electronic device 1, the system is transferred to a standby state.
[0046] Here, when detecting a face area from a captured image, there are cases where accurate detection cannot be performed due to factors such as wearing a mask, and face detection may become unstable. Figure 2 as well as Figure 3 An example of a captured image for face detection is shown. Figure 2 is a diagram showing an example of a captured image in which a face area is detected. Figure 3 FIG. 1 is a diagram showing an example of a captured image in which a face region is not detected.
[0047] exist Figure 2 In the figure, the bounding box 101 shows the facial area detected from the captured image G11. As a method for detecting the facial area, any detection method can be applied, such as a facial detection algorithm that detects the face based on facial feature information, learning data (learned model) obtained by machine learning based on facial feature information or facial images, a facial detection library, etc. For example, the electronic device 1 uses the learning data obtained by reading image data of multiple facial images and performing machine learning to obtain an evaluation value representing facial similarity (hereinafter referred to as a "face detection evaluation value") from the captured image, and detects an area where the face detection evaluation value is above a specified threshold (hereinafter referred to as a "face determination threshold") as a facial area. As an example, when the face determination threshold is "70", in Figure 2 In the example shown, for example, the face detection evaluation value is "70", and the face detection evaluation value is above the face determination threshold, so it is detected as a face area. Figure 3In the example shown, for example, the face detection evaluation value is "68", which is less than the face determination threshold, and therefore is not detected as a face region. The bounding box 101 is a box that visualizes the coordinate information (coordinate information in the image region) of the position and size (vertical and horizontal lengths) of the detected face region. For example, the detection result of the face region is output as information including the coordinate information of the face region and the face detection evaluation value.
[0048] In this way, if the face detection evaluation value approaches the boundary based on the face determination threshold due to factors such as wearing a mask, face detection may become unstable, such as being determined as a face or not being determined as a face. In addition, not limited to the case of wearing a mask, the face detection evaluation value may approach the boundary based on the face determination threshold due to various factors such as the direction of the face. For example, if the face determination threshold is lowered, Figure 3 As shown, the possibility that an area not detected as a face area is detected as a face area increases. On the other hand, the possibility that an area that is not a human face is mistakenly detected as a face area due to wrinkles in clothes, the arrangement of objects, etc. also increases.
[0049] Therefore, in the present embodiment, when a face region is detected in a detection mode that detects a face region with higher detection accuracy than face detection in HPD processing, it can be determined that the reliability of the detection result is high (the possibility of the presence of a face is high), and thus the face determination threshold is lowered based on only a specific area of the detected face region. As a result, the possibility of erroneously detecting a region that is not a human face as a face region is not increased, and the possibility of correctly detecting a region of a human face as a face region is increased, so that stable face detection can be achieved.
[0050] Hereinafter, the face detection mode in the HPD process is referred to as the "standard detection mode", and the detection mode for detecting a face region with higher detection accuracy than the face detection in the HPD process is referred to as the "high-accuracy detection mode". In addition, a specific area based on the face region detected in the high-accuracy detection mode (an area with high reliability of the detection result of the face region) is referred to as the "high-reliability area", and the captured image other than the above is referred to as the "standard area".
[0051] Figure 41 is a diagram showing an example of setting a high reliability region according to the present embodiment. Bounding box 102 shows a face region detected from captured image G13 in high precision detection mode. High reliability region 103 is set as a region wider than bounding box 102 and including the bounding box 102. For example, high reliability region 103 is set as a region having a width obtained by adding a predetermined ratio (e.g., 50%) to the vertical and horizontal lengths of bounding box 102, centered at the center of bounding box 102. When detecting a face region from a captured image in standard detection mode in HPD processing, only the face determination threshold of high reliability region 103 is set low. For example, the face determination threshold of high reliability region 103 is set to a value lower by a predetermined ratio (e.g., 10%) than the face determination threshold of a standard region other than high reliability region 103.
[0052] For example, when the face determination threshold value in the standard area is set to "70", the face determination threshold value in the high reliability area is set to "63". Figure 2 as well as Figure 3 In the example shown, the face area ( Figure 2 : Face detection evaluation value = 70), or no face area is detected ( Figure 3 : face detection evaluation value = 68), but if a high reliability area is set and the face determination threshold is "63", any face detection evaluation value is above the face determination threshold, and the face area is stably detected.
[0053] The face determination threshold of the standard area is not set to a fixed value, but is appropriately changed according to the brightness of the captured image, etc. The face determination threshold of the high reliability area 103 is set to a value lower than the face determination threshold of the normal standard area by a predetermined percentage (e.g., 10%).
[0054] In addition, the number of facial regions detected from the captured image is not necessarily one, but even when a plurality of facial regions are detected, a high reliability region is set for the most important facial region among the facial regions detected from the captured image. The most important facial region refers to, for example, the largest facial region among the facial regions detected from the captured image. In addition, the facial region of the most important face may be determined based on a factor related to the position in the captured image (for example, close to the center), instead of or in addition to the size of the facial region.
[0055] Next, refer to Figure 5 , explaining the difference between standard detection mode and high-precision detection mode. Figure 5This is a diagram showing an example of comparison between the standard detection mode and the high-precision detection mode involved in the present embodiment. The standard detection mode is used for the face detection function. On the other hand, the high-precision detection mode is used for the face authentication function. In the face authentication process, it is necessary to compare the features of the face with higher accuracy, so the high-precision detection mode is required. For example, when the face authentication function is used in the authentication process when logging in, the authentication process when accessing restricted data, etc., the high-precision detection mode is applied.
[0056] In addition, in the standard detection mode, an RGB sensor that captures visible light is used as a capturing sensor to capture images. On the other hand, in the high-precision detection mode, in addition to the RGB sensor, an IR (Infrared Radiation) sensor that can capture infrared light is also used to capture images. Moreover, in the high-precision detection mode, it is also possible to capture images using only the IR sensor among the RGB sensor and the IR sensor. By using the IR sensor, it is possible to capture facial features required for facial authentication even in a low-light environment, but on the other hand, power consumption increases due to the emission of infrared light. In addition, in the high-precision detection mode, the frame rate is increased relative to the standard detection mode to detect the facial area, thereby improving the detection accuracy. In this case, as the frame rate is increased, the power consumption also increases accordingly. In addition, in the high-precision detection mode, the facial area can also be detected with a high resolution relative to the standard detection mode.
[0057] That is, it can be said that the standard detection mode is a detection mode for shooting using only the RGB sensor of the RGB sensor and the IR sensor, and the high-precision detection mode is a detection mode for shooting using at least the IR sensor. In addition, it can also be said that the standard detection mode is a detection mode in which the power consumed in the face detection process is lower than that of the high-precision detection mode. In addition, it can also be said that the standard detection mode is a detection mode for detecting a face area from a captured image, and the high-precision detection mode is a detection mode for detecting a face area for face authentication from a captured image.
[0058] In addition, refer to Figure 5, the difference between the standard detection mode and the high-precision detection mode is explained, but as long as the high-precision detection mode can detect the facial area with higher accuracy than the standard detection mode, there is no need for the functions, shooting sensors, frame rates, and resolutions to be all different. For example, although the shooting sensors are different in the standard detection mode and the high-precision detection mode, either or both of the frame rates and resolutions may be the same. In addition, if either or both of the frame rates and resolutions are different in the standard detection mode and the high-precision detection mode, the shooting sensors may be the same. In short, since the power consumption of the high-precision detection mode is higher than that of the standard detection mode, in the standard detection mode, the high-reliability area is set to detect the facial area using the detection results in the high-precision detection mode, so that stable facial detection can be achieved without increasing power consumption.
[0059] Next, the structure of the electronic device 1 according to the present embodiment will be described in detail.
[0060] [Appearance structure of electronic equipment]
[0061] Figure 6 It is a perspective view showing a configuration example of the appearance of the electronic device 1 according to the present embodiment.
[0062] The electronic device 1 includes a first frame 10, a second frame 20, and a hinge mechanism 15. The first frame 10 and the second frame 20 are connected using the hinge mechanism 15. The first frame 10 can rotate relative to the second frame 20 around a rotation axis formed by the hinge mechanism 15. The opening angle generated by the rotation of the first frame 10 and the second frame 20 is shown as "θ".
[0063] The first frame 10 is also referred to as A cover or display frame. The second frame 20 is also referred to as C cover or system frame. In the following description, the surfaces of the first frame 10 and the second frame 20 having the hinge mechanism 15 are referred to as side surfaces 10c and 20c, respectively. The surfaces of the first frame 10 and the second frame 20 on the opposite side to the side surfaces 10c and 20c are referred to as side surfaces 10a and 20a, respectively. In the figure, the direction from the side surface 20a toward the side surface 20c is referred to as "rear", and the direction from the side surface 20c toward the side surface 20a is referred to as "front". With respect to the rear, the right and the left are referred to as "right" and "left", respectively. The left sides of the first frame 10 and the second frame 20 are referred to as side surfaces 10b and 20b, respectively, and the right sides are referred to as side surfaces 10d and 20d, respectively. In addition, the state in which the first frame 10 and the second frame 20 overlap and are completely closed (the state in which the opening angle θ=0°) is referred to as the "closed state". The surfaces of the first frame body 10 and the second frame body 20 facing each other in the closed state are referred to as the "inner surfaces" of each other, and the surfaces opposite to the inner surfaces are referred to as the "outer surfaces". In addition, the state in which the first frame body 10 and the second frame body 20 are opened relative to the closed state is referred to as the "open state".
[0064] Figure 6 The appearance of the electronic device 1 shown represents an example of an open state. The open state is a state in which the side surface 10a of the first frame body 10 and the side surface 20a of the second frame body 20 are separated. In the open state, the inner surfaces of the first frame body 10 and the second frame body 20 are displayed. The open state is one of the states when the user uses the electronic device 1, and typically it is used in a state where the opening angle θ=100 to 130°. In addition, the range of the opening angle θ that becomes the open state can be arbitrarily determined according to the range of the angle that can be rotated by the hinge mechanism 15, etc.
[0065] A display unit 110 is provided on the inner surface of the first frame body 10. The display unit 110 is configured to include a liquid crystal display (LCD: Liquid Crystal Display), an organic EL (Electro Luminescence: Electroluminescence) display, etc. In addition, a shooting unit 120 is provided in an area surrounding the display unit 110 on the inner surface of the first frame body 10. For example, the shooting unit 120 is arranged on the side of the side 10a in the area surrounding the display unit 110. In addition, the position where the shooting unit 120 is arranged is an example, and other places may be used as long as it can face the direction facing the inner surface of the first frame body 10 (front).
[0066] The imaging unit 120 captures a predetermined imaging range in the direction (front) facing the inner surface of the first frame body 10 in the open state. The predetermined imaging range is a range of a field of view angle determined by an imaging sensor (imaging element) of the imaging unit 120 and a lens disposed in front of the imaging surface of the imaging sensor. For example, the imaging unit 120 includes two cameras, a first camera 121 and a second camera 122.
[0067] The first camera 121 is a camera having an RGB sensor as a photographing sensor that receives visible light incident through a lens and performs photoelectric conversion. In addition, the second camera 122 is a camera having an IR sensor as a photographing sensor that receives infrared light incident through a lens and performs photoelectric conversion. The first camera 121 and the second camera 122 can each capture an image including a person existing in front of the electronic device 1 (front).
[0068] In addition, a power button 140 is provided on the side 20b of the second frame body 20. The power button 140 is an operator for the user to instruct the power to be turned on (transferred from the stop state to the normal operation state) and the power to be turned off (transferred from the normal operation state to the stop state). In addition, a keyboard 151 and a touch pad 153 are provided on the inner surface of the second frame body 20 as input devices. In addition, as an input device, a touch sensor may be included instead of the keyboard 151 and the touch pad 153 or in addition thereto, and a mouse or an external keyboard may also be connected. In the case of a structure provided with a touch sensor, it may also be configured as a touch panel in which a touch sensor is provided in an area corresponding to the display surface of the display unit 110. In addition, the input device may also include a microphone for inputting sound.
[0069] In addition, in the closed state where the first frame 10 and the second frame 20 are closed, the display unit 110 and the imaging unit 120 provided on the inner surface of the first frame 10 and the keyboard 151 and the touch pad 153 provided on the inner surface of the second frame 20 are covered by the frame surface of the other party. That is, in the closed state, the electronic device 1 is in a state where at least the functions related to input and output cannot be performed.
[0070] [Hardware structure of electronic equipment]
[0071] Figure 7 1 is a block diagram showing an example of a hardware configuration of an electronic device 1 according to the present embodiment. Figure 7 In, with Figure 6The same reference numerals are given to the corresponding structures of the components. The electronic device 1 includes a display unit 110, a camera unit 120, an acceleration sensor 130, a power button 140, an input device 150, an image output terminal 160, an EC (Embedded Controller) 200, a face detection unit 220, a system processing unit 300, a communication unit 350, a storage unit 360, and a power supply unit 400. The display unit 110 displays display data (images) generated based on system processing executed by the system processing unit 300 and processing of application programs that operate on the system processing.
[0072] The photographing unit 120 includes a first camera 121 and a second camera 122, which respectively photograph an image of an object within a predetermined field angle in a direction (front) facing the inner surface of the first frame body 10, and outputs image data of the photographed image to the system processing unit 300 and the face detection unit 220. Figure 6 As described above, the first camera 121 has an RGB sensor, which receives visible light for shooting. The first camera 121 outputs image data of the captured visible light image (RGB image). In addition, the second camera 122 has an IR sensor and a light-emitting unit that emits infrared light, and receives reflected light of infrared light irradiated from the light-emitting unit for shooting. The second camera 122 outputs image data of the captured infrared image (IR image). For example, the image data of the captured image captured by the shooting unit 120 is temporarily stored in the system memory 310 for image processing, etc.
[0073] In addition, in the present embodiment, the electronic device 1 is provided with a first camera 121 having an RGB sensor and a second camera 122 having an IR sensor. However, the present invention is not limited thereto. For example, the electronic device 1 may be provided with one camera that can output image data of a visible light image (RGB image) and image data of an infrared image (IR image) using one imaging sensor (so-called hybrid sensor) that is configured with pixels that receive both visible light and pixels that receive infrared light.
[0074] The acceleration sensor 130 detects the orientation of the gravity direction relative to the electronic device 1, and outputs a detection signal indicating the detection result to the EC200. For example, the acceleration sensor 130 is respectively provided in the first frame body 10 and the second frame body 20, detects the orientation of the first frame body 10 and the orientation of the second frame body 20, and outputs a detection signal indicating the detection result to the EC200. Based on the detection result of the orientation of the first frame body 10 and the orientation of the second frame body 20, the opening and closing state of the electronic device 1 and the opening angle θ between the first frame body 10 and the second frame body 20 can be detected. In addition, a gyro sensor, a tilt sensor, a geomagnetic sensor, etc. may be provided instead of the acceleration sensor 130 or in addition to the acceleration sensor 130.
[0075] The power button 140 outputs an operation signal to the EC 200 according to the user's operation. The input device 150 is an input unit that receives the user's input, and is configured to include, for example, a keyboard 151 and a touch pad 153. In response to receiving the operation on the keyboard 151 and the touch pad 153, the input device 150 outputs an operation signal indicating the operation content to the EC 200.
[0076] The video output terminal 160 is a connection terminal for connecting to an external display (display device). For example, the video output terminal 160 is an HDMI (registered trademark) terminal, a USB Type-C terminal, a display port, or the like.
[0077] The power supply unit 400 supplies power via a power supply system for supplying power to each part according to the operating state of each part of the electronic device 1. The power supply unit 400 includes a DC (Direct Current) / DC converter. The DC / DC converter converts the voltage of the DC power supplied from an AC (Alternate Current) / DC adapter or a battery pack into a voltage required by each part. The power after the voltage is converted by the DC / DC converter is supplied to each part via each power supply system. For example, the power supply unit 400 supplies power to each part via each power supply system based on a control signal corresponding to the operating state of each part input from EC200.
[0078] EC200 is a microcomputer including a CPU (Central Processing Unit), RAM (Random Access Memory), ROM (Read Only Memory), flash ROM, A / D input terminals of multiple channels, D / A output terminals, and digital input and output terminals. For example, the CPU of EC200 reads a control program (firmware) pre-stored in its own or external ROM, and executes the read control program to exert its function. EC200 is connected to the acceleration sensor 130, the power button 140, the input device 150, the face detection unit 220, the system processing unit 300, and the power supply unit 400.
[0079] For example, if the EC200 receives an operation signal corresponding to the user's operation on the power button 140, it instructs the system processing unit 300 to start the system. In addition, based on the detection result of the face detection unit 220, the EC200 instructs the system to start and the operation state to transfer. In addition, the EC200 communicates with the power supply unit 400 to obtain information on the battery state (remaining capacity, etc.) from the power supply unit 400, and outputs control signals for controlling the supply of power corresponding to the operation state of each part of the electronic device 1 to the power supply unit 400.
[0080] In addition, the EC200 acquires an operation signal from the input device 150 and the like, and outputs the operation signal required for processing by the system processing unit 300 among the acquired operation signals to the system processing unit 300. In addition, the EC200 acquires a detection signal from the acceleration sensor 130, and detects the orientation of the electronic device 1 (the orientation of the first frame body 10 and the second frame body 20), the opening angle θ between the first frame body 10 and the second frame body 20, and the like based on the acquired detection signal.
[0081] Furthermore, part of the functions of the EC 200 may be configured as a sensor hub or a chipset.
[0082] The face detection unit 220 is a processor that processes image data of a captured image captured by the image capturing unit 120. The face detection unit 220 performs a face detection process and a face authentication process. For example, the face detection unit 220 performs a face detection process in which a captured image captured by the image capturing unit 120 is acquired and a face region in which a face is captured is detected from the acquired captured image.
[0083] In addition, the face detection unit 220 performs HPD processing to detect whether a user (person) exists in front of the electronic device 1 based on the detection result of the face detection processing. In addition, after the face detection unit 220 detects the face area from the captured image acquired by the camera unit 120, it compares the face image of the detected face area with the pre-registered face image (for example, the face image of a regular user) to perform face authentication processing. The structure of the face detection unit 220 will be described in detail later.
[0084] The system processing unit 300 is configured to include a CPU (Central Processing Unit) 302, a GPU (Graphic Processing Unit) 304, a memory controller 306, an I / O (Input-Output) controller 308 and a system memory 310. Through system processing based on an OS (Operating System), it is possible to execute processing of various application programs on the OS.
[0085] CPU302 performs processing based on the OS and processing based on applications running on the OS. In addition, CPU302 transfers the operating state of the system through instructions from EC200. For example, if CPU302 is in a stop state or a standby state and receives an instruction to start from EC200, it performs a startup process to transfer from the stop state or the standby state to the normal operating state. In addition, if CPU302 receives an instruction to the standby state in the normal operating state, it transfers from the normal operating state to the standby state. In addition, if CPU302 receives an instruction to shut down in the normal operating state, it performs a shutdown process to transfer from the normal operating state to the stop state.
[0086] In addition, during the startup process, the CPU 302 performs a login process to determine whether to allow the use of the OS. If the CPU 302 starts the startup process based on the OS, the login process is performed before the use of the OS is allowed, and the transition to the normal operation state is temporarily stopped until the login is allowed during the login process. During the login process, a user authentication process is performed to determine whether the person using the electronic device 1 is a pre-registered regular user. Authentication includes password authentication, facial authentication, fingerprint authentication, etc.
[0087] For example, when the CPU 302 performs the user authentication process based on face authentication, the face authentication process based on the face detection unit 220 is used. If the authentication result is successful, the CPU 302 allows the login and restarts the execution of the temporarily stopped system process. On the other hand, if the authentication result is unsuccessful, the login is not allowed and the execution of the system process is still stopped.
[0088] The GPU 304 is connected to the display unit 110. The GPU 304 performs image processing based on the control of the CPU 302 and generates display data. The GPU 304 outputs the generated display data to the display unit 110. In addition, the CPU 302 and the GPU 304 may be integrated into one core, or the CPU 302 and the GPU 304 may be formed as separate cores and share the load. The number of processors is not limited to one, and may be multiple.
[0089] The memory controller 306 controls the reading and writing of data from the system memory 310 , the storage unit 360 , and the like by the CPU 302 and the GPU 304 .
[0090] The I / O controller 308 controls input and output of data from the communication unit 350 , the display unit 110 , and the EC 200 .
[0091] The system memory 310 is used as a read area for executing programs of the processor and a work area for writing processing data. In addition, the system memory 310 temporarily stores image data of an image captured by the imaging unit 120 .
[0092] The communication unit 350 is connected to other devices via a wireless or wired communication network to transmit and receive various data. For example, the communication unit 350 includes a wired LAN interface such as Ethernet (registered trademark) or a wireless LAN interface such as Wi-Fi (registered trademark).
[0093] The storage unit 360 includes storage media such as a HDD (Hard Disk Drive), an SDD (Solid State Drive), a ROM, and a flash ROM. The storage unit 360 stores various programs such as an OS, a device driver, and an application, and various data acquired by the operation of the programs.
[0094] The system processing unit 300 may be configured as a single packaged processor as a SoC (System on a Chip), or may have some functions configured by a plurality of processors as a component separate from the CPU 302 such as a chipset or a sensor hub.
[0095] [Structure of face detection unit]
[0096] Next, the configuration of the face detection unit 220 will be described in detail.
[0097] Figure 81 is a schematic block diagram showing an example of the functional structure of the electronic device 1 according to the present embodiment. The illustrated face detection unit 220 is configured to include a processor for processing image data of an image captured by the image capturing unit 120. The face detection unit 220 acquires image data of an image captured by the image capturing unit 120 and temporarily stores the acquired image data in a memory. The memory for storing the image data may be the system memory 310 or a memory (not shown) in the face detection unit 220.
[0098] The face detection unit 220 performs face detection processing for detecting a face region in which a face is captured from the captured image and face authentication processing for authenticating a face in the detected face region by processing image data of the captured image acquired from the imaging unit 120. For example, the face detection unit 220 includes a face authentication processing unit 223, a detection region setting unit 222, a face detection processing unit 221, and an HPD processing unit 224.
[0099] The face detection processing unit 221 has a standard detection mode and a high-precision detection mode, and detects a face area from a captured image in either detection mode. As a method for detecting a face area, any detection method can be applied, such as a face detection algorithm for detecting a face based on facial feature information, learning data (learned model) obtained by machine learning based on facial feature information, face detection using a face detection library, etc.
[0100] For example, in the standard detection mode, the face detection processing unit 221 enables only the first camera 121 of the first camera 121 and the second camera 122, and does not emit infrared rays from the second camera 122. The face detection processing unit 221 reads the image data of the RGB image captured by the first camera 121 from the system memory 310. That is, the face detection processing unit 221 detects the face area from the RGB image in the standard detection mode. For example, the face detection processing unit 221 detects the area whose face detection evaluation value is greater than the face determination threshold value from the RGB image as the face area.
[0101] In addition, the face detection processing unit 221 enables both the first camera 121 and the second camera 122 in the high-precision detection mode, and emits infrared rays from the second camera 122. The face detection processing unit 221 reads the image data of the RGB image and the IR image captured by the first camera 121 and the second camera 122 from the system memory 310. That is, the face detection processing unit 221 detects the face area from the RGB image and the IR image in the high-precision detection mode. In addition, the face detection processing unit 221 may enable only the second camera 122 of the first camera 121 and the second camera 122 in the high-precision detection mode, and detect the face area from the IR image.
[0102] When a facial region is detected in the high-precision detection mode by the facial detection processing unit 221, the detection region setting unit 222 sets a high-reliability region based on the facial region detected in the high-precision detection mode. For example, the high-reliability region is used when the facial region is detected in the standard detection mode. When the high-reliability region is set in the standard detection mode, the detection region setting unit 222 updates the position of the high-reliability region based on the position of the facial region detected in the high-reliability region. For example, when the position or size of the facial region detected in the high-reliability region changes, the detection region setting unit 222 changes the position or size of the high-reliability region according to the change in the position or size of the facial region. That is, the detection region setting unit 222 causes the high-reliability region to follow the change in the position or size of the facial region detected in the high-reliability region (movement of the face).
[0103] Fig. 9 It is an explanatory diagram of tracking of a high reliability area according to the present embodiment. Fig. 9 (A) shows a bounding box 104a when a facial region centered at position a is detected, and a high reliability region 105a set based on the bounding box 104a. Fig. 9 As shown in (B), when the center of the face region moves from position a to position b, the bounding box 104a and the high reliability region 105a move following the movement of the face region to become the bounding box 104b and the high reliability region 105b.
[0104] In addition, when the face region is not detected in the high reliability region, the detection region setting unit 222 cancels the set high reliability region. For example, when the detected face region is outside the high reliability region (standard region) or when the face region is not detected, the detection region setting unit 222 cancels the set high reliability region.
[0105] In addition, when the face detection processing unit 221 detects a plurality of face regions, the detection region setting unit 222 sets the high reliability region based on one (the most important face region) of the plurality of face regions detected. For example, the detection region setting unit 222 may set the high reliability region based on the largest face region among the plurality of face regions detected. In addition, the detection region setting unit 222 may set the high reliability region based on the face region closest to the center of the captured image among the plurality of face regions detected.
[0106] Here, when the face detection processing unit 221 detects a face region from a captured image in the standard detection mode, in the case where a high reliability region is set, the face region is detected under different detection conditions in the high reliability region and the standard region. Specifically, the face determination threshold in the high reliability region is set lower than the face determination threshold in the standard region. For example, the face determination threshold in the high reliability region is set to a value lower than the face determination threshold in the standard region by a predetermined ratio (e.g., 10%).
[0107] Back to Figure 8 The facial authentication processing unit 223 performs facial authentication processing based on the facial region detected from the captured image by the facial detection processing unit 221 in the high-precision detection mode. As a facial authentication method, any facial authentication method can be applied, such as a facial authentication algorithm that performs facial authentication by comparing and collating feature information of a facial image of a detected facial region with feature information of a facial image of a pre-registered user, learning data (learned model) obtained by machine learning based on feature information of the face, facial authentication library, etc. That is, when a facial region is detected from a captured image, it can be determined whether it is the user's face based on the authentication result of the facial authentication.
[0108] For example, the face authentication processing unit 223 performs face authentication processing according to a request from the user authentication unit 320, and responds with an authentication result to the user authentication unit 320. The user authentication unit 320 is a functional structure implemented by the system processing unit 300 executing a program of the OS. The user authentication unit 320 performs user authentication processing when logging in, user authentication processing when accessing restricted data, etc. based on the authentication result of the face authentication processing unit 223.
[0109] In addition, after login, while the face area detected by the face detection processing unit 221 in the standard detection mode is within the high reliability area, the face authentication processing unit 223 does not perform the face authentication process. If the face area detected by the face detection processing unit 221 in the standard detection mode becomes outside the high reliability area, the face detection processing unit 221 performs face detection in the high precision detection mode. Then, the face authentication processing unit 223 performs the face authentication process based on the face area detected by the face detection processing unit 221 in the high precision detection mode.
[0110] The HPD processing unit 224 determines whether a user exists in front of the electronic device 1 based on the detection result of the face area by the face detection processing unit 221 and the authentication result by the face authentication processing unit 223. For example, when the system is in a standby state, when the face area is detected by the face detection processing unit 221 in the standard detection mode, the HPD processing unit 224 determines that a user exists in front of the electronic device 1. In addition, in a normal operation state after logging into the system, when the face area detected by the face detection processing unit 221 in the standard detection mode is within the high reliability area, the HPD processing unit 224 does not perform face authentication and determines that it is the face of the user (that is, the user exists). When the detected face area is outside the high reliability area, it determines whether it is the face of the user (that is, whether the user exists) based on the face authentication of the face authentication processing unit 223. In addition, the HPD processing unit 224 outputs HPD information based on the determination result of whether a user exists in front of the electronic device 1.
[0111] For example, when the determination result changes from a state where there is no user in front of the electronic device 1 to a state where there is a user, the HPD processing unit 224 outputs HPD information indicating that the user is approaching the electronic device 1 (hereinafter referred to as “approach information”). In addition, during the period in which it is determined that there is a user in front of the electronic device 1, the HPD processing unit 224 outputs HPD information indicating that there is a user in front of the electronic device 1 (hereinafter referred to as “presence information”). In addition, when the detection state changes from a state where there is a user in front of the electronic device 1 to a state where there is no user, the HPD processing unit 224 outputs HPD information indicating that the user leaves the electronic device 1 (hereinafter referred to as “leave information”). Based on the detection result of the facial area by the facial detection processing unit 221, the HPD processing unit 224 outputs approach information, presence information, or leave information to the action control unit 210.
[0112] The operation control unit 210 is a functional structure realized by, for example, the EC 200 executing a control program, acquires HPD information output from the HPD processing unit 224 , and controls the operation state of the system based on the acquired HPD information.
[0113] For example, in the standby state, when proximity information is acquired from the face detection unit 220 (HPD processing unit 224), the motion control unit 210 transfers from the standby state to the normal operation state. Specifically, the motion control unit 210 instructs the system processing unit 300 to start the system. For example, when the motion control unit 210 starts the system, it outputs a control signal for supplying power required for the operation of each part of the electronic device 1 to the power supply unit 400. Then, the motion control unit 210 outputs a start signal for instructing the system to start to the system processing unit 300. If the system processing unit 300 acquires the start signal, it starts the system and transfers from the standby state to the normal operation state.
[0114] In addition, during the period when the action control unit 210 obtains the presence information from the face detection unit 220 (HPD processing unit 224) in the normal action state, the system is restricted not to be transferred to the standby state, but the normal action state is continued. In addition, even if the action control unit 210 obtains the presence information from the face detection unit 220 (HPD processing unit 224), it can be transferred from the normal action state to the standby state according to a prescribed condition. The prescribed condition refers to, for example, the time when the user does not perform an operation input (no operation time) for a predetermined time, the operation of transferring to the standby state, etc.
[0115] In addition, when the motion control unit 210 obtains the departure information from the face detection unit 220 (HPD processing unit 224) in the normal operation state, it instructs the system processing unit 300 to transfer the system from the normal operation state to the standby state. For example, the motion control unit 210 outputs a standby signal for instructing the system to transfer from the normal operation state to the standby state to the system processing unit 300. When the system processing unit 300 obtains the standby signal, it transfers the system from the normal operation state to the standby state. Then, the motion control unit 210 outputs a control signal for stopping the supply of unnecessary power in the standby state to the power supply unit 400.
[0116] In addition, the motion control unit 210 may be a functional structure such as a chipset or a sensor hub instead of the EC 200. The chipset and the sensor hub (not shown) are processors that perform data transmission and reception and data processing between the CPU 302 and peripheral components, and collect data from, for example, the acceleration sensor 130 and the face detection unit 220. For example, the chipset and the sensor hub have a part or all of the functions of the memory controller 306 and the I / O controller 308.
[0117] [Face detection processing operation]
[0118] Next, refer to Fig.10, the operation of the face detection processing in which the face detection unit 220 sets a high reliability area to detect the face area in the standard detection mode is described.
[0119] Fig.10 This is a flowchart showing an example of face detection processing in the standard detection mode involved in this embodiment.
[0120] (Step S101) The face detection unit 220 determines whether a face region with high reliability of face detection results (high possibility of the presence of a face) has been detected. For example, when the face detection unit 220 detects a face region in the high-precision detection mode, it determines that a face region with high reliability of face detection results has been detected. As an example, in the face authentication process at the previous login, when the face detection unit 220 detects a face region in the high-precision detection mode, it determines that a face region with high reliability of face detection results has been detected. The previous login is a login during startup when transitioning to the current normal operation state, which means that after the login, the state does not transition to the standby state or the stop state, and the normal operation state continues after the login.
[0121] Furthermore, the face detection unit 220 is not limited to the high-precision detection mode, and even in the standard detection mode, when the face detection evaluation value is high, it can be determined that the reliability of the detection result is high (the possibility of the presence of a face is high).
[0122] When the face detection unit 220 determines that a face region with high reliability of the face detection result has been detected (Yes), the process proceeds to step S103. On the other hand, when the face detection unit 220 determines that a face region with high reliability of the face detection result has not been detected (No), the process proceeds to step S105.
[0123] (Step S103) The face detection unit 220 sets a high reliability region (see FIG. 104 ) based on a face region with high reliability in the face detection result (for example, a face region detected in the high-precision detection mode). Figure 4 ). Then, the process proceeds to step S105.
[0124] (Step S105) The face detection unit 220 performs face detection processing to detect a face region from the captured image in the standard detection mode. For example, the face detection unit 220 acquires a candidate for a face region and a face detection evaluation value from the captured image. In addition, when the face detection unit 220 detects a plurality of face regions from the captured image, it acquires a candidate for the most important face region among the plurality of face regions and a face detection evaluation value. Then, the process proceeds to step S107.
[0125] (Step S107) The face detection unit 220 determines whether the candidate of the face region acquired in step S105 is within the high reliability region. If the face detection unit 220 determines that it is within the high reliability region (Yes), the process proceeds to step S109. On the other hand, if the face detection unit 220 determines that it is not within the high reliability region (that is, within the standard region) (No), the process proceeds to step S115.
[0126] (Step S109 ) The face detection unit 220 determines the face detection evaluation value of the candidate face region in the high reliability region using the face determination threshold value (for example, “63”) in the high reliability region. Then, the process proceeds to step S111 .
[0127] (Step S111) The face detection unit 220 determines whether the face detection evaluation value is greater than or equal to the face determination threshold value of the high reliability region. If it is determined that it is greater than or equal to the face determination threshold value of the high reliability region (Yes), it is determined that it is a face region, and the process proceeds to step S113. On the other hand, if it is determined that it is less than the face determination threshold value of the high reliability region (No), it is determined that it is not a face region, and the process proceeds to step S119.
[0128] (Step S113) The face detection unit 220 updates the high reliability region based on the detected face region. For example, when the position or size of the detected face region changes from the position or size of the previously detected face region, the face detection unit 220 changes the position or size of the high reliability region according to the change in position or size.
[0129] (Step S115) The face detection unit 220 uses the face determination threshold value (e.g., "70") of the standard region to determine the face detection evaluation value of the candidate face region outside the high reliability region (or in a state where the high reliability region is not set). Then, the process proceeds to step S117.
[0130] (Step S117) The face detection unit 220 determines whether the face detection evaluation value is greater than or equal to the face determination threshold value of the standard region. If it is determined that it is greater than or equal to the face determination threshold value of the standard region (Yes), it is determined that it is a face region, and the process proceeds to step S119. On the other hand, if it is determined that it is less than the face determination threshold value of the standard region (No), it is determined that it is not a face region, and the process proceeds to step S119.
[0131] (Step S119) The face detection unit 220 cancels the high reliability region when the high reliability region is set. For example, when the face region is not detected in the high reliability region (step S111: No), when the face region is detected in the standard region (step S117: Yes), or when the face region is not detected in both the high reliability region and the standard region (step S117: No), the face detection unit 220 cancels the high reliability region. In addition, when the high reliability region is not set (step S101: No), the face detection unit 220 continues the state where the high reliability region is not set. Then, the process returns to step S101.
[0132] Next, refer to Fig.11 , the operation of the standby state control processing of performing face authentication when the detected face area is outside the high reliability area (standard area) and controlling the system to the standby state when the face is not a user is described.
[0133] Fig.11 201) In the normal operation state, the face detection unit 220 determines whether the face area (most important face area) detected from the captured image captured in the standard mode is within the high reliability area. When the face detection unit 220 determines that the detected face area is outside the high reliability area (within the standard area) (No), the process proceeds to step S203. On the other hand, when the face detection unit 220 determines that the detected face area is within the high reliability area (Yes), the process proceeds to step S209.
[0134] In addition, when it is determined that the detected face area is outside the high reliability area (within the standard area) (No), for example, it is equivalent to Fig.10 In the case where the determination is "No" in step S107 and "Yes" in step S117. On the other hand, when it is determined that the detected face area is within the high reliability area (Yes), for example, it is equivalent to Fig.10 If the determination result is "yes" in step S107 and step S111.
[0135] (Step S203) The face detection unit 220 performs a face authentication process for determining whether the face is the user's face based on the face area detected from the captured image captured in the high-precision detection mode. Then, the process proceeds to step S205.
[0136] (Step S205) The face detection unit 220 determines whether the authentication result of the face authentication process in step S203 is authentication success. When the face detection unit 220 determines that the authentication failed (No), the process proceeds to step S207. On the other hand, when the face detection unit 220 determines that the authentication succeeded (Yes), the process proceeds to step S209.
[0137] (Step S207) Since the face in the face area detected outside the high reliability area (within the standard area) is a face other than the user, the face detection unit 220 outputs departure information indicating that the user has left the electronic device 1. When the action control unit 210 obtains the departure information from the face detection unit 220, it instructs the system processing unit 300 to transfer the system from the normal operation state to the standby state. For example, the action control unit 210 outputs a standby signal for instructing the system to transfer from the normal operation state to the standby state to the system processing unit 300. If the system processing unit 300 obtains the standby signal, it transfers the system from the normal operation state to the standby state (for example, locks the system).
[0138] (Step S209) The face detection unit 220 updates the high reliability area based on the detected facial area. For example, when the judgment of step S205 is "yes", the face in the facial area detected outside the high reliability area (within the standard area) is the face of the user, so the face detection unit 220 resets the high reliability area based on the facial area and updates it. In addition, when the judgment of step S201 is "yes", based on the detected facial area, it continues in the high reliability area, so the high reliability area is updated based on the detected facial area. For example, when the position or size of the detected facial area changes from the position or size of the previously detected facial area, the face detection unit 220 changes the position or size of the high reliability area according to the change in position or size. The processing at this time is equivalent to Fig.10 The processing of step S113.
[0139] [Summary of the First Embodiment]
[0140] As described above, the electronic device 1 according to the present embodiment includes: a system memory 310 (an example of a memory) for temporarily storing image data of an image (captured image) captured by the camera unit 120 (an example of a camera device); and a processor (e.g., a face detection unit 220, a CPU 302, an EC 200, etc.) for executing system processing based on a system program and processing using the image data. For example, the face detection unit 220 performs face detection processing, and the face detection processing includes: a standard detection mode (an example of a first detection mode) for detecting a face region in which a face is captured from an image (captured image) of image data stored in the system memory 310 with a first detection accuracy (e.g., the detection accuracy of face detection in HPD processing), and a high-precision detection mode (an example of a second detection mode) for detecting a face region in which a face is captured from an image (captured image) of image data stored in the system memory 310 with a second detection accuracy higher than the first detection accuracy (e.g., the detection accuracy for performing face authentication). In addition, the face detection unit 220 performs a process (an example of a first region setting process) of setting a high reliability region (an example of a first region) based on the face region detected in the high precision detection mode when the face region is detected in the high precision detection mode. In addition, the face detection unit 220 performs a face authentication process, and when the face region detected by the face detection process becomes a standard region (an example of a second region) outside the high reliability region, the face authentication is performed based on the face region detected in the standard region. Furthermore, the action control unit 210 (e.g., EC200) performs a standby state control process, and causes the system to shift to the standby state based on the authentication result of the face authentication process.
[0141] Thus, the electronic device 1 does not perform facial authentication while detecting the facial area in the high reliability area, determines that it is the face of the user (i.e., the user is present), does not perform control to transfer to the standby state, and performs facial authentication only when the detected facial area is outside the high reliability area, and transfers to the standby state when it is not the face of the user (i.e., the user is not present), thereby suppressing misauthentication in facial authentication and improving security by using facial authentication. That is, the electronic device 1 can improve security by using facial authentication in a limited manner.
[0142] In addition, the electronic device 1 according to the present embodiment includes: a system memory 310 (an example of a memory) for temporarily storing image data of an image (captured image) captured by the camera unit 120 (an example of a camera device); and a processor (for example, the face detection unit 220, the CPU 302, the EC 200, etc.) for executing system processing based on a system program and processing using the above-mentioned image data. For example, the face detection unit 220 performs face detection processing to detect, from the image (captured image) of the image data stored in the system memory 310, an area whose face detection evaluation value (an example of an evaluation value of face similarity) is greater than or equal to a face determination threshold value (an example of a first threshold value) as a face area. In addition, when a face area whose face detection evaluation value is greater than or equal to a high reliability threshold value (an example of a second threshold value) higher than the face determination threshold value is detected by the face detection processing, the face detection unit 220 performs processing (an example of a first area setting processing) to set a high reliability area (an example of a first area) based on the detected face area. In addition, the face detection unit 220 performs face authentication processing, and when the face area detected by the face detection processing becomes a standard area (an example of the second area) outside the high reliability area, face authentication is performed based on the face area detected in the standard area. Furthermore, the action control unit 210 (for example, EC200) performs standby state control processing, and shifts the system to the standby state based on the authentication result of the face authentication processing.
[0143] Thus, the electronic device 1 does not perform facial authentication while detecting the facial area in the high reliability area, determines that it is the face of the user (i.e., the user is present), does not perform control to transfer to the standby state, and performs facial authentication only when the detected facial area is outside the high reliability area, and transfers to the standby state when it is not the face of the user (i.e., the user is not present), thereby suppressing misauthentication in facial authentication and improving security by using facial authentication. That is, the electronic device 1 can improve security by using facial authentication in a limited manner.
[0144] For example, when a plurality of face regions are detected in the face detection process, the face detection unit 220 performs a process of setting a high reliability region (an example of a first region setting process) and a face authentication process based on one of the plurality of face regions.
[0145] Thus, even when there are a plurality of people in front of the electronic device 1 , the electronic device 1 can perform face detection and face authentication on one person as a user (primary user).
[0146] As an example, the face detection unit 220 performs a process of setting a high reliability region (an example of a first region setting process) and a face authentication process based on the largest face region among the plurality of face regions.
[0147] Thus, even when there are a plurality of people in front of the electronic device 1 , the electronic device 1 can detect and authenticate the face of the person who is closest to the user (primary user).
[0148] In addition, as an example, the face detection unit 220 performs a process of setting a high reliability region (an example of a first region setting process) and a face authentication process based on the face region closest to the center of the captured image among the plurality of face regions.
[0149] Thus, even when there are a plurality of people in front of the electronic device 1 , the electronic device 1 can detect and authenticate the face of the person who is most in front of it as a user (primary user).
[0150] In addition, after the face detection unit 220 sets the high reliability area in the process of setting the high reliability area (an example of the first area setting process), it changes the position or size of the high reliability area according to the change in the position or size of the face area detected by the face detection process.
[0151] Thus, even if the position of the user's face moves slightly during use of the electronic device 1 , the electronic device 1 can stably detect and track the face.
[0152] In addition, in the process of setting the high reliability region (an example of the first region setting process), the face detection unit 220 cancels the high reliability region based on the face region detected by the face detection process becoming the standard region. That is, when the face region cannot be detected in the high reliability region, the face detection unit 220 cancels the high reliability region.
[0153] Thus, the electronic device 1 can suppress erroneous detection of a region that is not a human face as a face region, and thus can perform stable face detection.
[0154] In addition, in the process of setting a high reliability area (an example of the first area setting process), the face detection unit 220 sets a high reliability area based on the face area detected in the standard area according to the authentication result obtained by the face authentication process based on the face area detected in the standard area as successful authentication.
[0155] Thus, when the electronic device 1 determines that the face in the face area detected outside the high reliability area is the user, it can stably perform face detection as the user's face thereafter.
[0156] For example, the imaging unit 120 includes an RGB sensor (an example of a first imaging element) for imaging visible light and an IR sensor (an example of a second imaging element) for imaging infrared light. The standard detection mode is a detection mode in which only the RGB sensor of the RGB sensor and the IR sensor is used for imaging, and the high-precision detection mode is a detection mode in which at least the IR sensor is used for imaging.
[0157] Thus, the electronic device 1 can stably detect the face area from the image captured by the RGB sensor without using the IR sensor in the standard detection mode. Therefore, the electronic device 1 does not need to emit infrared rays, and thus can realize stable face detection while suppressing power consumption.
[0158] In addition, the control method in the electronic device 1 involved in the present embodiment includes: a face detection step, including a standard detection mode (an example of a first detection mode) in which the face detection unit 220 detects a face area in which a face is photographed from an image (captured image) of image data stored in the system memory 310 (an example of a memory) with a first detection accuracy (for example, the detection accuracy of face detection in HPD processing) and a high-precision detection mode in which the face area in which a face is photographed is detected from an image (captured image) of image data stored in the system memory 310 (an example of a memory) with a second detection accuracy higher than the first detection accuracy (for example, the detection accuracy for facial authentication). a first area setting step, in which, when a face area is detected in the high-precision detection mode by the face detection step, a high-reliability area (an example of the first area) based on the face area detected in the high-precision detection mode is set; a face authentication step, in which, when the face area detected by the face detection step becomes a standard area (an example of the second area) outside the high-reliability area, face authentication is performed based on the face area detected in the standard area; and a standby state control step, in which the action control unit 210 (e.g., EC200) causes the system to transition to the standby state based on the authentication result of the face authentication step.
[0159] Thus, the electronic device 1 does not perform facial authentication while detecting the facial area in the high reliability area, determines that it is the face of the user (i.e., the user is present), does not perform control to transfer to the standby state, and performs facial authentication only when the detected facial area is outside the high reliability area, and transfers to the standby state when it is not the face of the user (i.e., the user is not present), thereby suppressing misauthentication in facial authentication and improving security by using facial authentication. That is, the electronic device 1 can improve security by using facial authentication in a limited manner.
[0160] In addition, the control method in the electronic device 1 involved in the present embodiment includes: a face detection step, in which the face detection unit 220 detects an area whose face detection evaluation value (an example of a face similarity evaluation value) is greater than a face determination threshold (an example of a first threshold) from an image (a captured image) of image data stored in a system memory 310 (an example of a memory) as a face area; a first area setting step, in which, when a face area whose face detection evaluation value is greater than a high reliability threshold (an example of a second threshold) higher than the face determination threshold is detected by the face detection step, a high reliability area (an example of a first area) based on the detected face area is set; a face authentication step, in which, when the face area detected by the face detection step becomes a standard area (an example of a second area) outside the high reliability area, face authentication is performed based on the face area detected in the standard area; and a standby state control step, in which the action control unit 210 (e.g., EC200) causes the system to transition to a standby state based on the authentication result of the face authentication step.
[0161] Thus, the electronic device 1 does not perform facial authentication while detecting the facial area in the high reliability area, determines that it is the face of the user (i.e., the user is present), does not perform control to transfer to the standby state, and performs facial authentication only when the detected facial area is outside the high reliability area, and transfers to the standby state when it is not the face of the user (i.e., the user is not present), thereby suppressing misauthentication in facial authentication and improving security by using facial authentication. That is, the electronic device 1 can improve security by using facial authentication in a limited manner.
[0162] <Second embodiment>
[0163] Next, a second embodiment of the present invention will be described.
[0164] In the first embodiment, the standby state control process of performing face authentication when the detected face area is outside the high reliability area (standard area) and controlling the system to the standby state when the user is not a user is described, but the standby state control process may be temporarily invalidated when the electronic device 1 is held by hand. When held by hand, it is difficult to continuously and stably capture the user's face from the front, so face authentication may be incorrectly performed without transitioning to the standby state.
[0165] Fig.12 1A is a schematic block diagram showing an example of a functional structure of an electronic device 1A according to the present embodiment. Figure 8 The same reference numerals are given to the corresponding structures of the components. Figure 8The structure shown is different in that it includes a state determination unit 215, which uses the acceleration sensor 130 that detects the movement of the electronic device 1A to determine whether the electronic device 1A is held. The state determination unit 215 is, for example, a functional structure implemented by the EC200 executing a control program. In addition, the state determination unit 215 can also be a functional structure such as a chipset or a sensor hub instead of the EC200, similar to the motion control unit 210.
[0166] When the state determination unit 215 determines that the electronic device 1A is being held, the operation control unit 210 reserves the execution of the control process for outputting a standby signal for causing the system to shift to the standby state based on the authentication result of the face authentication processing unit 223. Fig.11 The illustrated face authentication control is execution of a standby state control process in a standby state.
[0167] Fig.13 1 is a flowchart showing an example of a process of the standby state control process according to the present embodiment.
[0168] (Step S301) The state determination unit 215 acquires the detection signal of the acceleration sensor 130 and monitors the operation state of the electronic device 1A. Then, the process proceeds to step S303.
[0169] (Step S303) The state determination unit 215 determines whether the electronic device 1A is held by hand based on the movement of the electronic device 1A monitored based on the detection signal of the acceleration sensor 130. When the state determination unit 215 determines that the electronic device 1A is held by hand (Yes), the process proceeds to step S305. On the other hand, when the state determination unit 215 determines that the electronic device 1A is not held by hand (No), the process returns to step S301 and monitors the movement state of the electronic device 1A.
[0170] (Step S305) When the state determination unit 215 determines that the electronic device 1A is being held, the operation control unit 210 temporarily stops the standby state control process by face authentication (see Fig.11 Then, the process proceeds to step S307.
[0171] (Step S307) The action control unit 210 counts the preset standby time, and continues the state of holding the execution of the standby state control process until the standby time has passed. Then, when the standby time has passed, the action control unit 210 cancels the holding of the execution of the standby state control process and returns to the process of step S301.
[0172] Thus, the electronic device 1A according to the present embodiment further includes a state determination unit 215 (e.g., EC200) that performs a determination process of determining whether the electronic device 1A is being held by hand using the acceleration sensor 130 (an example of a sensor) that detects the motion of the electronic device 1A. Furthermore, when the state determination unit 215 determines that the electronic device 1A is being held by hand, the motion control unit 210 withholds execution of a standby state control process that outputs information for causing the system to shift to a standby state based on the authentication result of the facial authentication process of the facial detection unit 220.
[0173] As a result, it is difficult for electronic device 1A to stably and continuously capture the user's face from the front while being held, and thus it is possible to prevent incorrect facial authentication from being performed and the device from shifting to the standby state.
[0174] The embodiments of the present invention are described in detail above with reference to the drawings, but the specific structure is not limited to the above-mentioned embodiments, and also includes design changes within the scope of the gist of the present invention. For example, the structures described in the above-mentioned embodiments can be arbitrarily combined.
[0175] In addition, in the above-mentioned embodiment, a configuration example in which the camera unit 120 is built into the electronic device 1 (1A) is described, but the present invention is not limited thereto. For example, the camera unit 120 may not be built into the electronic device 1 (1A), but may be configured to be installed on the electronic device 1 (1A) (for example, any side surface such as the side surfaces 10a, 10b, 10c) as an external accessory of the electronic device 1 (1A) and be connected to the electronic device 1 (1A) by wireless or wired communication.
[0176] In addition, the electronic device 1 (1A) may also use a distance sensor (e.g., a proximity sensor, etc.) that detects the distance to an object to detect a person in front. For example, the distance sensor is disposed on the inner surface side of the first frame body 10, and detects an object (e.g., a person) that exists within a detection range facing the inner surface of the first frame body 10 (in front). As an example, the distance sensor may be an infrared distance sensor, which is configured to include a light-emitting portion that emits infrared rays, and a light-receiving portion that receives reflected light that is reflected by the surface of an object when the emitted infrared rays are reflected. In addition, the distance sensor may also be a sensor that uses infrared rays emitted by a light-emitting diode, or a sensor that uses an infrared laser that emits light with a narrower wavelength than the infrared rays emitted by a light-emitting diode. In addition, the distance sensor is not limited to an infrared distance sensor, and may be a sensor that uses other methods, such as an ultrasonic sensor or a sensor that uses a UWB (Ultra Wide Band) radar, as long as it is a sensor that detects the distance to an object. In addition, the distance sensor may not be built into the electronic device 1 (1A), but may be configured to be installed on the electronic device 1 (1A) as an external accessory of the electronic device 1 (for example, any side surface of the side surfaces 10a, 10b, 10c, etc.), and be connected to the electronic device 1 (1A) by wireless or wired communication. In addition, the imaging unit 120 and the distance sensor may also be configured as an integral body. For example, these distance sensors may also be used in facial authentication processing.
[0177] In the above embodiment, an example is shown in which the face detection unit 220 is provided separately from the EC200, but the EC200 may be provided with a part or all of the functions of the face detection unit 220, and a part or all of the functions of the face detection unit 220 and the EC200 may be configured in one package. In addition, the system processing unit 300 may be provided with a part or all of the functions of the face detection unit 220, and a part or all of the functions of the face detection unit 220 and a part or all of the functions of the system processing unit 300 may be configured in one package. In addition, a part or all of the functions of the action control unit 210 may be provided as a functional structure of a processing unit other than the EC200 (for example, the system processing unit 300).
[0178] In addition, the electronic device 1 (1A) has a computer system inside. Moreover, a program for realizing the functions of each structure of the electronic device 1 (1A) can be recorded in a computer-readable recording medium, and the processing in each structure of the electronic device 1 (1A) can be performed by making the computer system read and execute the program recorded in the recording medium. Here, "making the computer system read and execute the program recorded in the recording medium" is included in the computer system installation program. The "computer system" mentioned here includes hardware such as OS and peripheral devices. In addition, the "computer system" can also include multiple computer devices connected via a network including communication lines such as the Internet, WAN, LAN, and dedicated lines. In addition, the "computer-readable recording medium" refers to a portable medium such as a floppy disk, a magneto-optical disk, a ROM, a CD-ROM, and a storage device such as a hard disk built into the computer system. In this way, the recording medium on which the program is recorded can also be a non-temporary recording medium such as a CD-ROM.
[0179] In addition, the recording medium also includes an internal or external recording medium that can be accessed from a distribution server in order to distribute the program. In addition, the program can also be divided into multiple parts, and the structure formed by combining the various structures possessed by the electronic device 1 (1A) after being downloaded at different time intervals, and the distribution server for distributing each divided program is different. Moreover, the so-called "computer-readable recording medium" also includes a structure that keeps the program for a certain period of time, such as a server in the case of sending a program via a network, and a volatile memory (RAM) inside a computer system as a client. In addition, the above-mentioned program may also be a structure for realizing a part of the above-mentioned functions. Furthermore, it may also be a so-called differential file (differential program) that can realize the above-mentioned functions by combining them with a program already recorded in a computer system.
[0180] In addition, part or all of the functions of the electronic device 1 (1A) in the above-mentioned embodiment may be implemented as an integrated circuit such as LSI (Large Scale Integration). Each function may be processed individually, or part or all of it may be integrated for processing. In addition, the method of integrated circuitization is not limited to LSI, and it may also be implemented with a dedicated circuit or a general-purpose processor. In addition, when an integrated circuit technology that replaces LSI emerges with the advancement of semiconductor technology, an integrated circuit based on the technology may also be used.
[0181] In addition, the electronic device 1 (1A) is not limited to a notebook PC, but may also be a desktop PC, a tablet terminal device, a smart phone, etc. Furthermore, the electronic device 1 (1A) is not limited to a PC, a tablet terminal device, a smart phone, etc., but may also be applied to household appliances and commercial appliances. As a household appliance, it can be applied to a television, a refrigerator with a display unit, a microwave oven, etc. For example, it can control the opening / closing of a TV screen according to the approach or departure of a person, or control the opening / closing of a display unit of a refrigerator, a microwave oven, etc. In addition, as a commercial appliance, it can be applied to a vending machine, a multimedia terminal, etc. For example, it can control the action state according to the approach or departure of a person, such as the opening / closing of the lighting of a vending machine, or the opening / closing of the display unit of a multimedia terminal.
Claims
1. An electronic device comprising: a memory for temporarily storing image data of images captured by the camera; and a processor for executing system processing based on a system program and processing using the above-mentioned image data, The processor performs: face detection processing, first area setting processing, face authentication processing and standby state control processing, In the face detection processing, there is a first detection mode for detecting a face region in which a face is photographed from the image data stored in the memory with a first detection accuracy, and a second detection mode for detecting a face region in which a face is photographed from the image data stored in the memory with a second detection accuracy higher than the first detection accuracy; In the first region setting process, when the face region is detected by the face detection process in the second detection mode, a first region based on the detected face region is set; In the facial authentication process, when the facial region detected by the facial detection process is a second region outside the first region, facial authentication is performed based on the facial region detected in the second region; In the standby state control process, the system is shifted to the standby state based on the authentication result of the face authentication process.
2. An electronic device comprising: a memory for temporarily storing image data of images captured by the camera; and a processor for executing system processing based on a system program and processing using the above-mentioned image data, The processor performs: face detection processing, first area setting processing, face authentication processing and standby state control processing, In the face detection process, a region having a face similarity evaluation value greater than or equal to a first threshold value is detected as a face region from the image of the image data stored in the memory; In the first region setting process, when the face region having the evaluation value being equal to or higher than a second threshold value higher than the first threshold value is detected by the face detection process, setting the first region based on the detected face region; In the facial authentication process, when the facial region detected by the facial detection process is a second region outside the first region, facial authentication is performed based on the facial region detected in the second region; In the standby state control process, the system is shifted to the standby state based on the authentication result of the face authentication process.
3. The electronic device according to claim 1 or 2, wherein: When a plurality of the facial regions are detected in the facial detection process, the processor performs the first region setting process and the facial authentication process based on one facial region among the plurality of facial regions.
4. The electronic device according to claim 3, wherein: The processor performs the first area setting process and the face authentication process based on the largest face area among the plurality of face areas.
5. The electronic device according to claim 3, wherein: The processor performs the first region setting process and the face authentication process based on a face region closest to a center of the image among the plurality of face regions.
6. The electronic device according to claim 1 or 2, wherein: The processor changes a position or a size of the first region according to a change in a position or a size of the face region detected by the face detection process after setting the first region in the first region setting process.
7. The electronic device according to claim 1 or 2, wherein: In the first region setting process, the processor cancels the first region based on the face region detected by the face detection process becoming the second region.
8. The electronic device according to claim 1 or 2, wherein: When the facial authentication result is successful based on the facial area detected in the second area through the facial authentication processing, the processor resets the first area based on the facial area detected in the second area in the first area setting processing.
9. The electronic device according to claim 1 or 2, wherein: A sensor for detecting the movement of the electronic device is also provided. The processor further performs a determination process, in which the sensor is used to determine whether the electronic device is held by hand. When it is determined by the determination process that the electronic device is being held, execution of the standby state control process for outputting information for causing the system to shift to the standby state based on the authentication result of the face authentication process is suspended.
10. The electronic device according to claim 1, wherein: The imaging device comprises: a first imaging element for imaging visible light and a second imaging element for imaging infrared light. The first detection mode is a detection mode in which only the first imaging element of the first imaging element and the second imaging element is used for imaging, and the second detection mode is a detection mode in which at least the second imaging element is used for imaging.
11. A control method, a control method in an electronic device, the electronic device comprising: a memory for temporarily storing image data of an image captured by a camera; and a processor for executing system processing based on a system program and processing using the image data, The above control method includes: a face detection step, comprising a first detection mode in which the processor detects a face region in which a face is photographed from the image of the image data stored in the memory with a first detection accuracy, and a second detection mode in which the processor detects a face region in which a face is photographed from the image of the image data stored in the memory with a second detection accuracy higher than the first detection accuracy; A first area setting step of setting a first area based on the detected facial area when the facial area is detected in the second detection mode by the facial detection step; a facial authentication step of, when the facial area detected by the facial detection step is a second area outside the first area, performing facial authentication based on the facial area detected in the second area; and The standby state control step causes the system to shift to the standby state based on the authentication result of the face authentication step.
12. A control method, a control method in an electronic device, the electronic device comprising: a memory for temporarily storing image data of an image captured by a camera; and a processor for executing system processing based on a system program and processing using the image data, The above control method includes: a face detection step, wherein the processor detects, from the image of the image data stored in the memory, a region having a face similarity evaluation value greater than a first threshold value as a face region; A first region setting step of setting a first region based on the detected facial region when the facial region having the evaluation value being greater than a second threshold value higher than the first threshold value is detected in the facial detection step; a facial authentication step of, when the facial area detected by the facial detection step is a second area outside the first area, performing facial authentication based on the facial area detected in the second area; and The standby state control step causes the system to shift to the standby state based on the authentication result of the face authentication step.
