WO2020042084A1 - 一种补光方法、补光装置及电子设备 - Google Patents

一种补光方法、补光装置及电子设备 Download PDF

Info

Publication number
WO2020042084A1
WO2020042084A1 PCT/CN2018/103276 CN2018103276W WO2020042084A1 WO 2020042084 A1 WO2020042084 A1 WO 2020042084A1 CN 2018103276 W CN2018103276 W CN 2018103276W WO 2020042084 A1 WO2020042084 A1 WO 2020042084A1
Authority
WO
WIPO (PCT)
Prior art keywords
driver
light
light source
face
camera image
Prior art date
Application number
PCT/CN2018/103276
Other languages
English (en)
French (fr)
Inventor
张国明
Original Assignee
深圳市锐明技术股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市锐明技术股份有限公司 filed Critical 深圳市锐明技术股份有限公司
Priority to CN201880001224.0A priority Critical patent/CN109314751B/zh
Priority to PCT/CN2018/103276 priority patent/WO2020042084A1/zh
Publication of WO2020042084A1 publication Critical patent/WO2020042084A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/74Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/59Context or environment of the image inside of a vehicle, e.g. relating to seat occupancy, driver state or inner lighting conditions
    • G06V20/597Recognising the driver's state or behaviour, e.g. attention or drowsiness

Definitions

  • the present application belongs to the technical field of transportation, and particularly relates to a light supplement method, a light supplement device, an electronic device, and a computer-readable storage medium.
  • the position of the driver's face in the camera image will also change.
  • the present application provides a fill light method, fill light device, electronic device and computer-readable storage medium, which can fill the driver's face more accurately and in time, so as to make the result of driver fatigue detection More accurate.
  • a first aspect of the present application provides a method for supplementing light, including:
  • a second aspect of the present application provides a light supplement device, including:
  • a face detection unit configured to detect whether a driver's face exists in the camera image
  • a position acquiring unit configured to acquire a position of the driver's face in the camera image if a driver's face is detected in the camera image
  • An area determining unit configured to determine more than one irradiation area based on the position of the driver's face in the camera image
  • a light source determining unit configured to find a light source associated with the above-mentioned illuminated area in the light source surface array of the fill light as a target light source;
  • the light source control unit is configured to control the target light source to be turned on.
  • a third aspect of the present application provides an electronic device.
  • the electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor.
  • the processor executes the computer program, the implementation is as described above. Steps of the first aspect of the method.
  • a fourth aspect of the present application provides a computer-readable storage medium.
  • the computer-readable storage medium stores a computer program.
  • the steps of the method of the first aspect are implemented.
  • a fifth aspect of the present application provides a computer program product.
  • the computer program product includes a computer program.
  • the steps of the method of the first aspect are implemented.
  • FIG. 1 is a schematic flowchart of an implementation of a light supplement method provided by an embodiment of the present application
  • FIG. 2 is a schematic diagram of a fill light in a fill light method provided by an embodiment of the present application
  • FIG. 3 is a structural block diagram of a light fill device according to an embodiment of the present application.
  • FIG. 4 is a schematic diagram of an electronic device according to an embodiment of the present application.
  • the method for supplementing light in an embodiment of the present application includes:
  • step 101 it is detected whether a driver's face exists in the camera image
  • the camera will continuously collect image signals.
  • the vehicle After the vehicle is started, the vehicle may be in the parking mode, and the driver may also temporarily get off to rest. Therefore, it is necessary to detect the presence of the driver's face in the camera image, that is, to scan the face of the camera image. And identification.
  • step 102 if it is detected that a driver's face exists in the camera image, the position of the driver's face in the camera image is obtained;
  • the driver's fatigue detection (Driver)
  • the face detection algorithm unit in Status Monitoring can further calculate and obtain the position information of the driver's face in the camera image.
  • the camera image may be divided into M * N matrix blocks when being processed, for example, 4 * 3 matrix blocks.
  • step 103 more than one irradiation area is determined based on the position of the driver's face in the camera image
  • the shooting position of the camera is usually kept fixed.
  • the actual environment area captured by the camera can also be divided into M * N matrix blocks by referring to the method of dividing the camera image. That is to say, the actual environment area and the camera image represent the same environment, and according to the same division method, they are divided into corresponding M * N matrix blocks. According to the position of the driver's face in the camera image, it can be directly mapped into the actual environment to find the position of the driver's face in the actual environment area.
  • step 104 the light source area array of the fill light is searched for, and the light source associated with the illumination area is used as the target light source;
  • the light emitted by each light source of the light source surface array of the supplementary light lamp corresponds to the M * N matrix block divided by the actual environment area, that is, the camera image-actual
  • the environment area-light source area array has a one-to-one correspondence.
  • the light emitted by each light source corresponds to 12 areas in the actual environment area, which are area 1 to area 12, respectively, and the camera collects the above 12 areas.
  • the image formed by the area is used as the camera image, and the camera divides the camera image into the area 1 to the area 12 in the same manner. In this way, one-to-one correspondence between the camera image, the actual environment area, and the light source surface array can be achieved.
  • step 105 the target light source is controlled to be turned on.
  • the corresponding light source of the fill light can be controlled according to the position of the driver's face to realize the driver's face.
  • Fill light For example, assuming that the driver's face is located in area 6 in the actual environment area, then through the above steps, it can be known first that the driver's face is located in area 6 of the camera image in the camera image. Based on this, it can be known that the driver's face is The actual environment area is located at the area 6 and then correspondingly controls the light source that illuminates the area 6 position, so that the driver's face can be supplemented.
  • the driver's face is in the area corresponding to the single light source, only the corresponding single light source is controlled to be turned on; if the driver's face is in the area corresponding to the multiple light sources, the corresponding multi light source is controlled to be turned on simultaneously. For example, assuming that the common boundary line between the areas 1 and 2 is detected on the camera image and passes through the driver's face, the light sources that control the areas 1 and 2 are turned on at the same time when the light is filled.
  • the light supplement method further includes:
  • the target light source can illuminate the entire range of the driver's face, and the supplementary light demand for driver fatigue detection has been achieved.
  • the target light source in the light source surface array can be controlled Other light sources are off. In this way, only the light source that can illuminate the driver's face is in working state, which can save energy while ensuring accurate light supplementation.
  • the light supplement method further includes:
  • the full array of fill light is periodically controlled to be turned on and held for a preset time until the driver's face is detected in the camera image.
  • the full array of fill lights can be periodically turned on and maintained for a preset time, for example, every 1 minute All light sources of the fill light are turned on, and the light source is kept on for 10 seconds when all the light sources are turned on, so that the light source can completely illuminate the entire range of the main driving position.
  • the interference of the light on the driver's face detection is eliminated.
  • the light supplement method further includes:
  • the detecting whether the driver's face exists in the camera image includes:
  • the fatigue driving of the user often occurs at night; on the other hand, the light is often sufficient during the day, and accurate driver fatigue detection can be achieved without the need to supplement the driver's face.
  • the preset time period may be a preset night time period.
  • the driver may Set the time period from 18:00 to 07:00 the next day, and detect and fill the driver's face only when the driver is driving at night; or, you can also obtain the current vehicle location based on the current
  • the vehicle location is searched online to obtain the sunset time and sunrise time of the current vehicle location, and the preset time period is set based on the sunset time and sunrise time; of course, the driver can also set the preset time according to his own needs
  • the time period for example, is set to a time period during the day, which is not limited here.
  • the included angles of the adjacent light sources are preset angles, and the preset angles may be specifically 5 degrees, 10 degrees, or 15 degrees.
  • the settings such as the position, the illumination range of the light source, and the matrix used by the fill light are not limited here.
  • each light source uses infrared light with a wavelength of 940 nanometers.
  • the wavelength of infrared light is not limited herein.
  • the corresponding fill light is turned on by controlling the position of the driver's face in the camera image, and the light emitted by the corresponding fill light can ensure the fill light effect of driver fatigue detection. , Improve the accuracy of driver fatigue detection, at the same time, because the fill light uses a light source surface array, so other light sources can be kept off, saving energy consumption to a certain extent.
  • the second embodiment of the present application provides a light compensation device, and the above-mentioned light compensation device may be integrated into an electronic device.
  • the light compensation device 300 in the embodiment of the application includes:
  • a face detection unit 301 configured to detect whether a driver's face exists in the camera image
  • a position acquiring unit 302 configured to acquire a position of the driver's face in the camera image if a driver's face is detected in the camera image;
  • An area determining unit 303 configured to determine more than one irradiation area based on the position of the driver's face in the camera image
  • the light source determining unit 304 is configured to find a light source associated with the above-mentioned irradiation area in the light source surface array of the fill light as a target light source;
  • the light source control unit 305 is configured to control the target light source to be turned on.
  • the light source control unit 305 is further configured to control other light sources in the light source surface array except the target light source to be turned off.
  • the light source control unit 305 is further configured to, if it is detected that the driver's face does not exist in the camera image, periodically control the full array of fill lights to be turned on and maintain the preset time until the driver is detected in the camera image So far.
  • the light compensation device 300 further includes:
  • Time acquisition unit for acquiring the current time
  • a time detection unit configured to detect whether the current time is within a preset time period
  • the face detection unit is specifically configured to detect whether a driver's face exists in the camera image when the current time is within a preset time period.
  • the included angles of the adjacent light sources are preset angles, and each light source uses infrared light with a wavelength of 940 nanometers.
  • the fill light device controls the corresponding fill light to be turned on by the position of the driver's face in the camera image, and the light emitted by the corresponding fill light can ensure driver fatigue detection.
  • the fill light effect improves the accuracy of driver fatigue detection.
  • the fill light uses an array of light sources, other light sources can be kept off, saving energy consumption to a certain extent.
  • the electronic device in the embodiment of the present application includes a memory 401, one or more processors 402 (only one is shown in FIG. 4), and stored in the memory.
  • the memory 401 is used to store software programs and modules.
  • the processor 402 executes various functional applications and data processing by running the software programs and units stored in the memory 401 to obtain resources corresponding to the preset events. Specifically, the processor 402 implements the following steps by running the computer program stored in the memory 401:
  • the processor 402 also implements the following steps by running the computer program stored in the memory 401:
  • the processor 402 runs the computer program stored in the memory 401. The following steps are also implemented when:
  • the full array of fill light is periodically controlled to be turned on and held for a preset time until the driver's face is detected in the camera image.
  • the processor 402 before detecting whether the driver's face exists in the camera image, the processor 402 runs the computer program stored in the memory 401 before The following steps are also implemented when:
  • the detecting whether the driver's face exists in the camera image includes:
  • a light emitting angle of an adjacent light source is a preset angle, and each light source uses infrared light having a wavelength of 940 nm.
  • the above electronic device may further include one or more input devices 403 (only one is shown in FIG. 4) and one or more output devices 404 (only one is shown in FIG. 4).
  • the memory 401, the processor 402, the input device 403, and the output device 404 are connected through a bus 405.
  • the processor 402 may be a central processing unit (Central Processing Unit (CPU), the processor can also be other general-purpose processors, digital signal processors (DSP), and application-specific integrated circuits (Application Specific Integrated Circuits) Specific Integrated Circuit (ASIC), off-the-shelf Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • CPU Central Processing Unit
  • DSP digital signal processors
  • FPGA off-the-shelf Programmable Gate Array
  • a general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the input device 403 may include a keyboard, a touchpad, a fingerprint sensor (for collecting fingerprint information and orientation information of a user), a microphone, and the like, and the output device 404 may include a display, a speaker, and the like.
  • the memory 401 may include a read-only memory and a random access memory, and provide instructions and data to the processor 402. A part or all of the memory 401 may further include a non-volatile random access memory. For example, the memory 401 may also store information of a device type.
  • the electronic device controls the corresponding supplementary light to be turned on by the position of the driver's face in the camera image, and the light emitted by the corresponding supplementary light can ensure the compensation for driver fatigue detection.
  • the light effect improves the accuracy of driver fatigue detection.
  • the fill light uses a light source surface array, other light sources can be kept off, which saves energy consumption to a certain extent.
  • the disclosed apparatus and method may be implemented in other ways.
  • the system embodiments described above are only schematic.
  • the division of the above modules or units is only a logical function division.
  • multiple units or components may be combined.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, which may be electrical, mechanical or other forms.
  • the units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, which may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objective of the solution of this embodiment.
  • the above integrated unit When the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on this understanding, this application implements all or part of the processes in the methods of the above embodiments, and can also be completed by a computer program instructing related hardware.
  • the above computer program can be stored in a computer-readable storage medium.
  • the computer program When executed by a processor, the steps of the foregoing method embodiments may be implemented.
  • the computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file, or some intermediate form.
  • the computer-readable storage medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer-readable memory, and a read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signals, telecommunication signals, and software distribution media.
  • ROM Read-Only Memory
  • RAM Random Access Memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Image Input (AREA)

Abstract

本申请公开了一种补光方法、补光装置、电子设备及计算机可读存储介质,其中,该补光方法包括:检测摄像机图像中是否存在驾驶员人脸;若检测到摄像机图像中存在驾驶员人脸,则获取所述驾驶员人脸在所述摄像机图像中的位置;基于所述驾驶员人脸在所述摄像机图像中的位置,确定一个以上的照射区域;查找补光灯的光源面阵列中,与所述照射区域相关联的光源作为目标光源;控制所述目标光源开启。本申请方案可以较为准确且及时的对驾驶员人脸进行补光,以使得驾驶员疲劳检测的结果更加精确。

Description

一种补光方法、补光装置及电子设备 技术领域
本申请属于交通运输技术领域,尤其涉及一种补光方法、补光装置、电子设备及计算机可读存储介质。
背景技术
在检测检测驾驶员是否疲劳的摄像机应用中,随着驾驶员驾车过程中身体的上下、前后、左右等方向上的晃动,驾驶员人脸位于摄像机图像中的位置也会发生变化。
技术问题
这将导致摄像机的补光光源无法精准跟踪到感兴趣区域(即包含有驾驶员人脸的区域),最终导致感兴趣区域的亮度不足,摄像机图像清晰度下降,非感兴趣区域的图像对感兴趣区域的图像产生干扰等不良后果。
技术解决方案
有鉴于此,本申请提供了一种补光方法、补光装置、电子设备及计算机可读存储介质,可以较为准确且及时的对驾驶员人脸进行补光,以使得驾驶员疲劳检测的结果更加精确。
本申请的第一方面提供了一种补光方法,包括:
检测摄像机图像中是否存在驾驶员人脸;
若检测到摄像机图像中存在驾驶员人脸,则获取上述驾驶员人脸在上述摄像机图像中的位置;
基于上述驾驶员人脸在上述摄像机图像中的位置,确定一个以上的照射区域;
查找补光灯的光源面阵列中,与上述照射区域相关联的光源作为目标光源;
控制上述目标光源开启。
本申请的第二方面提供了一种补光装置,包括:
人脸检测单元,用于检测摄像机图像中是否存在驾驶员人脸;
位置获取单元,用于若检测到摄像机图像中存在驾驶员人脸,则获取上述驾驶员人脸在上述摄像机图像中的位置;
区域确定单元,用于基于上述驾驶员人脸在上述摄像机图像中的位置,确定一个以上的照射区域;
光源确定单元,用于查找补光灯的光源面阵列中,与上述照射区域相关联的光源作为目标光源;
光源控制单元,用于控制上述目标光源开启。
本申请的第三方面提供了一种电子设备,上述电子设备包括存储器、处理器以及存储在上述存储器中并可在上述处理器上运行的计算机程序,上述处理器执行上述计算机程序时实现如上述第一方面的方法的步骤。
本申请的第四方面提供了一种计算机可读存储介质,上述计算机可读存储介质存储有计算机程序,上述计算机程序被处理器执行时实现如上述第一方面的方法的步骤。
本申请的第五方面提供了一种计算机程序产品,上述计算机程序产品包括计算机程序,上述计算机程序被一个或多个处理器执行时实现如上述第一方面的方法的步骤。
有益效果
由上可见,通过本申请方案,首先检测摄像机图像中是否存在驾驶员人脸,若检测到摄像机图像中存在驾驶员人脸,则获取上述驾驶员人脸在上述摄像机图像中的位置,并基于上述驾驶员人脸在上述摄像机图像中的位置,确定一个以上的照射区域,随之查找补光灯的光源面阵列中,与上述照射区域相关联的光源作为目标光源,最后控制上述目标光源开启。本申请方案通过精准控制补光灯的光源面阵列对驾驶员人脸补光,以使得驾驶员疲劳检测的结果更加精确。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例提供的补光方法的实现流程示意图;
图2是本申请实施例提供的补光方法中,补光灯的示意图;
图3是本申请实施例提供的补光装置的结构框图;
图4是本申请实施例提供的电子设备的示意图。
本发明的实施方式
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。
为了说明本申请上述的技术方案,下面通过具体实施例来进行说明。
实施例1
下面对本申请实施例提供的一种补光方法进行描述,请参阅图1,本申请实施例中的补光方法包括:
在步骤101中,检测摄像机图像中是否存在驾驶员人脸;
在本申请实施例中,在应用驾驶员疲劳检测的摄像机开启后,上述摄像机将持续采集图像信号。由于车辆在发动启动后,车辆可能处于停靠模式下,而驾驶员也可能存在临时下车休息等情况,因而,需要检测摄像机图像中是否存在驾驶员人脸,也即对摄像机图像进行人脸扫描及识别。
在步骤102中,若检测到摄像机图像中存在驾驶员人脸,则获取上述驾驶员人脸在上述摄像机图像中的位置;
在本申请实施例中,当检测到摄像机图像中存在驾驶员人脸时,为了实现对驾驶员人脸的精准补光,摄像机所采用的驾驶员疲劳检测(Driver Status Monitoring,DSM)中的人脸检测算法单元可以进一步计算得到驾驶员人脸在上述摄像机图像中的位置信息。具体地,摄像机图像在被处理时可以被划分为M*N的矩阵区块,例如划分为4*3的矩阵区块。
在步骤103中,基于上述驾驶员人脸在上述摄像机图像中的位置,确定一个以上的照射区域;
在本申请实施例中,上述摄像机的拍摄位置通常保持固定。为了能够实现对驾驶员人脸的精确补光因而,摄像机所拍摄的实际环境区域也可以参照摄像机图像的划分方法,划分为M*N的矩阵区块。也即是说,实际环境区域及摄像机图像所表达的为同一环境,二者根据同样的划分方法,被划分为相对应的M*N的矩阵区块。可以根据驾驶员人脸在摄像机图像的所处位置,直接映射到实际环境中,找到驾驶员人脸在实际环境区域中的所处位置。
在步骤104中,查找补光灯的光源面阵列中,与上述照射区域相关联的光源作为目标光源;
在本申请实施例中,上述补光灯的光源面阵列的各个光源所发射出的光照分别对应上述实际环境区域所划分的M*N的矩阵区块,也即是说,上述摄像机图像-实际环境区域-光源面阵列是一一对应的关系。参照图2所示,该补光灯的光源面阵列中,各个光源所发出的光照对应实际环境区域中的12个区域,分别为区域1至区域12,而摄像机所采集的即为上述12个区域所构成的图像,作为摄像机图像,且摄像机也按照同样的划分方式将摄像机图像划分为区域1至区域12。这样一来,即可实现摄像机图像-实际环境区域-光源面阵列的一一对应。
在步骤105中,控制上述目标光源开启。
在本申请实施例中,由于上述摄像机图像-实际环境区域-光源面阵列是一一对应的关系,因而,根据驾驶人脸所在位置即可控制补光灯的相应光源,实现对驾驶员人脸的补光。例如,假定驾驶员人脸在实际环境区域中位于区域6的位置,那么通过上述步骤,首先可获知驾驶员人脸在摄像机图像中位于摄像机图像的区域6,基于此,可知驾驶员人脸在实际环境区域中位于区域6的位置,再对应控制照亮区域6位置的光源,即可实现对驾驶员人脸的补光。
可选地,若驾驶员人脸处于单光源对应的区域,则仅控制对应单光源开启;若驾驶员人脸处于多光源对应的区域,则控制对应多光源同时开启。例如,假定在摄像机图像上检测发现区域1、2的共同边界线穿过了驾驶员人脸,则在补光时,控制照亮区域1、2的光源同时开启。
可选地,在上述步骤104之后,上述补光方法还包括:
控制上述光源面阵列中除上述目标光源之外的其它光源熄灭。
其中,由于上述目标光源能够照亮驾驶员人脸的全部范围,已经实现了驾驶员疲劳检测的补光需求,为了节约能源,避免耗费过多电量,可以控制上述光源面阵列中除上述目标光源之外的其它光源熄灭。这样一来,只有能够照亮驾驶员人脸的光源才处于工作状态,可以在保证精确补光的同时节约能源。
可选地,在上述步骤101之后,上述补光方法还包括:
若检测到摄像机图像中不存在驾驶员人脸,则周期性控制补光灯全阵列开启并保持预设时间,直至检测到摄像机图像中存在驾驶员人脸为止。
其中,当摄像机图像中不存在驾驶员人脸时,一种可能的情况是驾驶员确实未处于主驾驶位置上;而另一种可能的情况是当前光线过暗导致无法准确识别出驾驶员人脸。基于此,为了排除光线对人脸检测的干扰,当检测到摄像机图像中不存在驾驶员人脸时,可以周期性控制补光灯全阵列开启并保持预设时间,例如,每隔1分钟控制补光灯所有光源全部开启,并在全部光源开启保持该开启状态10秒,使得光源能够完全照亮主驾驶位置的全部范围,此时,再次检测摄像机图像中是否存在驾驶员人脸,直至检测到摄像机图像中存在驾驶员人脸为止,以此排除光线对驾驶员人脸检测的干扰。
可选地,上述步骤101之前,上述补光方法还包括:
获取当前时间;
检测上述当前时间是否在预设的时间段内;
相应地,上述检测摄像机图像中是否存在驾驶员人脸,包括:
当上述当前时间在预设的时间段内时,检测摄像机图像中是否存在驾驶员人脸。
其中,一方面,用户的疲劳驾驶往往发生在夜晚时段;另一方面,在白天时光照往往较为充足,不需要对驾驶员人脸进行补光也能够实现准确的驾驶员疲劳检测,因而,可以在上述步骤101之前,首先获取当前时间,并判断当前时间是否在预设的时间段内,具体地,上述预设的时间段可以为预设的夜晚时间段,例如,驾驶员可以将上述预设时间段设定为18:00至次日07:00,仅在驾驶员处于夜晚驾驶的情况下对驾驶员人脸进行检测及补光;或者,也可以是获取当前车辆所在位置,基于当前车辆所在位置联网查询获取当前车辆所在位置的日落时间及日出时间,基于上述日落时间及日出时间设定上述预设的时间段;当然,驾驶员也可以根据自身需设定上述预设的时间段,例如设置为白天的时间段等,此处不作限定。
可选地,在补光灯的光源面阵列中,相邻光源的发光夹角为预设角度,上述预设角度具体可以为5度、10度或者15度等,具体数值可根据主驾驶的位置、光源照射范围及补光灯所采用的矩阵等设置,此处不作限定。并且,为了使得上述光源不影响驾驶员正常驾驶,避免补光的光线刺激驾驶员眼睛,每一光源所采用波长为940纳米的红外光,当然,为了实现不同的补光效果,也可以采取其它波长的红外光,此处不作限定。
由上可见,在本申请实施例中,通过驾驶员人脸在摄像机图像中的位置控制对应的补光灯开启,该对应的补光灯所发出的光线能够保障驾驶员疲劳检测的补光效果,提高了驾驶员疲劳检测的准确率,同时,由于补光灯采用的是光源面阵列,因而其它光源可以保持在熄灭状态,一定程度上节约了能耗。
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
实施例2
本申请实施例二提供了一种补光装置,上述补光装置可集成于电子设备中,如图3所示,本申请实施例中的补光装置300包括:
人脸检测单元301,用于检测摄像机图像中是否存在驾驶员人脸;
位置获取单元302,用于若检测到摄像机图像中存在驾驶员人脸,则获取上述驾驶员人脸在上述摄像机图像中的位置;
区域确定单元303,用于基于上述驾驶员人脸在上述摄像机图像中的位置,确定一个以上的照射区域;
光源确定单元304,用于查找补光灯的光源面阵列中,与上述照射区域相关联的光源作为目标光源;
光源控制单元305,用于控制上述目标光源开启。
可选地,上述光源控制单元305还用于控制上述光源面阵列中除上述目标光源之外的其它光源熄灭。
可选地,上述光源控制单元305还用于若检测到摄像机图像中不存在驾驶员人脸,则周期性控制补光灯全阵列开启并保持预设时间,直至检测到摄像机图像中存在驾驶员人脸为止。
可选地,上述补光装置300还包括:
时间获取单元,用于获取当前时间;
时间检测单元,用于检测上述当前时间是否在预设的时间段内;
相应地,上述人脸检测单元,具体用于当上述当前时间在预设的时间段内时,检测摄像机图像中是否存在驾驶员人脸。
可选地,在补光灯的光源面阵列中,相邻光源的发光夹角为预设角度,每一光源采用波长为940纳米的红外光。
由上可见,在本申请实施例中,补光装置通过驾驶员人脸在摄像机图像中的位置控制对应的补光灯开启,该对应的补光灯所发出的光线能够保障驾驶员疲劳检测的补光效果,提高了驾驶员疲劳检测的准确率,同时,由于补光灯采用的是光源面阵列,因而其它光源可以保持在熄灭状态,一定程度上节约了能耗。
实施例3
本申请实施例三提供了一种电子设备,请参阅图4,本申请实施例中的电子设备包括:存储器401,一个或多个处理器402(图4中仅示出一个)及存储在存储器401上并可在处理器上运行的计算机程序。其中:存储器401用于存储软件程序以及模块,处理器402通过运行存储在存储器401的软件程序以及单元,从而执行各种功能应用以及数据处理,以获取上述预设事件对应的资源。具体地,处理器402通过运行存储在存储器401的上述计算机程序时实现以下步骤:
检测摄像机图像中是否存在驾驶员人脸;
若检测到摄像机图像中存在驾驶员人脸,则获取上述驾驶员人脸在上述摄像机图像中的位置;
基于上述驾驶员人脸在上述摄像机图像中的位置,确定一个以上的照射区域;
查找补光灯的光源面阵列中,与上述照射区域相关联的光源作为目标光源;
控制上述目标光源开启。
假设上述为第一种可能的实施方式,则在第一种可能的实施方式作为基础而提供的第二种可能的实施方式中,在上述查找补光灯的光源面阵列中,与上述驾驶员人脸在上述摄像机图像中的位置相关联的光源作为目标光源之后,处理器402通过运行存储在存储器401的上述计算机程序时还实现以下步骤:
控制上述光源面阵列中除上述目标光源之外的其它光源熄灭。
在上述第一种可能的实施方式作为基础而提供的第三种可能的实施方式中,在上述检测摄像机图像中是否存在驾驶员人脸之后,处理器402通过运行存储在存储器401的上述计算机程序时还实现以下步骤:
若检测到摄像机图像中不存在驾驶员人脸,则周期性控制补光灯全阵列开启并保持预设时间,直至检测到摄像机图像中存在驾驶员人脸为止。
在上述第一种可能的实施方式作为基础而提供的第四种可能的实施方式中,在上述检测摄像机图像中是否存在驾驶员人脸之前,处理器402通过运行存储在存储器401的上述计算机程序时还实现以下步骤:
获取当前时间;
检测上述当前时间是否在预设的时间段内;
相应地,上述检测摄像机图像中是否存在驾驶员人脸,包括:
当上述当前时间在预设的时间段内时,检测摄像机图像中是否存在驾驶员人脸。
在上述第一种可能的实施方式作为基础,或者上述第二种可能的实施方式作为基础,或者上述第三种可能的实施方式作为基础,或者上述第四种可能的实施方式作为基础而提供的第五种可能的实施方式中,在补光灯的光源面阵列中,相邻光源的发光夹角为预设角度,每一光源采用波长为940纳米的红外光。
进一步,如图4所示,上述电子设备还可包括:一个或多个输入设备403(图4中仅示出一个)和一个或多个输出设备404(图4中仅示出一个)。存储器401、处理器402、输入设备403和输出设备404通过总线405连接。
应当理解,在本申请实施例中,所称处理器402可以是中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器 (Digital Signal Processor,DSP)、专用集成电路 (Application Specific Integrated Circuit,ASIC)、现成可编程门阵列 (Field-Programmable Gate Array,FPGA) 或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
输入设备403可以包括键盘、触控板、指纹采传感器(用于采集用户的指纹信息和指纹的方向信息)、麦克风等,输出设备404可以包括显示器、扬声器等。
存储器401可以包括只读存储器和随机存取存储器,并向处理器402 提供指令和数据。存储器401的一部分或全部还可以包括非易失性随机存取存储器。例如,存储器401还可以存储设备类型的信息。
由上可见,在本申请实施例中,电子设备通过驾驶员人脸在摄像机图像中的位置控制对应的补光灯开启,该对应的补光灯所发出的光线能够保障驾驶员疲劳检测的补光效果,提高了驾驶员疲劳检测的准确率,同时,由于补光灯采用的是光源面阵列,因而其它光源可以保持在熄灭状态,一定程度上节约了能耗。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将上述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者外部设备软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的系统实施例仅仅是示意性的,例如,上述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,上述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,上述计算机程序包括计算机程序代码,上述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。上述计算机可读存储介质可以包括:能够携带上述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机可读存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,上述计算机可读存储介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读存储介质不包括是电载波信号和电信信号。
以上上述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。

Claims (10)

  1. 一种补光方法,其特征在于,包括:
    检测摄像机图像中是否存在驾驶员人脸;
    若检测到摄像机图像中存在驾驶员人脸,则获取所述驾驶员人脸在所述摄像机图像中的位置;
    基于所述驾驶员人脸在所述摄像机图像中的位置,确定一个以上的照射区域;
    查找补光灯的光源面阵列中,与所述照射区域相关联的光源作为目标光源;
    控制所述目标光源开启。
  2. 如权利要求1所述的补光方法,其特征在于,在所述查找补光灯的光源面阵列中,与所述驾驶员人脸在所述摄像机图像中的位置相关联的光源作为目标光源之后,所述补光方法还包括:
    控制所述光源面阵列中除所述目标光源之外的其它光源熄灭。
  3. 如权利要求1所述的补光方法,其特征在于,在所述检测摄像机图像中是否存在驾驶员人脸之后,所述补光方法还包括:
    若检测到摄像机图像中不存在驾驶员人脸,则周期性控制补光灯全阵列开启并保持预设时间,直至检测到摄像机图像中存在驾驶员人脸为止。
  4. 如权利要求1所述的补光方法,其特征在于,在所述检测摄像机图像中是否存在驾驶员人脸之前,所述补光方法还包括:
    获取当前时间;
    检测所述当前时间是否在预设的时间段内;
    相应地,所述检测摄像机图像中是否存在驾驶员人脸,包括:
    当所述当前时间在预设的时间段内时,检测摄像机图像中是否存在驾驶员人脸。
  5. 如权利要求1至4任一项所述的补光方法,其特征在于,在补光灯的光源面阵列中,相邻光源的发光夹角为预设角度,每一光源采用波长为940纳米的红外光。
  6. 一种补光装置,其特征在于,包括:
    人脸检测单元,用于检测摄像机图像中是否存在驾驶员人脸;
    位置获取单元,用于若检测到摄像机图像中存在驾驶员人脸,则获取所述驾驶员人脸在所述摄像机图像中的位置;
    区域确定单元,用于基于所述驾驶员人脸在所述摄像机图像中的位置,确定一个以上的照射区域;
    光源确定单元,用于查找补光灯的光源面阵列中,与所述照射区域相关联的光源作为目标光源;
    光源控制单元,用于控制所述目标光源开启。
  7. 如权利要求6所述的补光装置,其特征在于,所述光源控制单元还用于控制所述光源面阵列中除所述目标光源之外的其它光源熄灭。
  8. 如权利要求6所述的补光装置,其特征在于,所述光源控制单元还用于若检测到摄像机图像中不存在驾驶员人脸,则周期性控制补光灯全阵列开启并保持预设时间,直至检测到摄像机图像中存在驾驶员人脸为止。
  9. 一种电子设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至5任一项所述方法的步骤。
  10. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至5任一项所述方法的步骤。
PCT/CN2018/103276 2018-08-30 2018-08-30 一种补光方法、补光装置及电子设备 WO2020042084A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201880001224.0A CN109314751B (zh) 2018-08-30 2018-08-30 一种补光方法、补光装置及电子设备
PCT/CN2018/103276 WO2020042084A1 (zh) 2018-08-30 2018-08-30 一种补光方法、补光装置及电子设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/103276 WO2020042084A1 (zh) 2018-08-30 2018-08-30 一种补光方法、补光装置及电子设备

Publications (1)

Publication Number Publication Date
WO2020042084A1 true WO2020042084A1 (zh) 2020-03-05

Family

ID=65221698

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/103276 WO2020042084A1 (zh) 2018-08-30 2018-08-30 一种补光方法、补光装置及电子设备

Country Status (2)

Country Link
CN (1) CN109314751B (zh)
WO (1) WO2020042084A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112995527A (zh) * 2021-02-27 2021-06-18 深圳市数码龙电子有限公司 用于摄像头的补光方法、系统、智能终端及存储介质
CN113869302A (zh) * 2021-11-16 2021-12-31 云丁网络技术(北京)有限公司 用于图像处理的控制方法及装置
CN114392379A (zh) * 2021-12-10 2022-04-26 中国第一汽车股份有限公司 一种车辆消毒方法和系统
CN114973427A (zh) * 2022-06-09 2022-08-30 杭州萤石软件有限公司 一种目标检测设备及图像获取方法

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110149471A (zh) * 2019-06-28 2019-08-20 Oppo广东移动通信有限公司 控制方法、成像装置、电子设备、计算机设备和存储介质
CN110933808B (zh) * 2019-12-23 2021-03-16 安徽世林照明股份有限公司 基于太阳能的低能耗智能照明控制系统及方法
CN113132613A (zh) * 2019-12-31 2021-07-16 中移物联网有限公司 一种摄像头补光装置、电子设备和补光方法
CN112351214B (zh) * 2020-09-22 2022-05-06 智博汽车科技(上海)有限公司 辅助人脸图像采集的方法、装置、可读存储介质及车辆
CN114257712A (zh) * 2020-09-25 2022-03-29 华为技术有限公司 控制摄像头模组补光时间的方法及装置
CN113727034A (zh) * 2021-08-30 2021-11-30 深圳市商汤科技有限公司 补光控制方法、电子设备和存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103680058A (zh) * 2013-12-09 2014-03-26 灏泷智能科技(上海)有限公司 一种疲劳驾驶监测提醒系统
CN105354986A (zh) * 2015-11-12 2016-02-24 熊强 汽车司机驾驶状态监测系统及方法
US20170289422A1 (en) * 2016-03-31 2017-10-05 Vivotek Inc. Photographic apparatus and exposure luminance adjustment method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104580886B (zh) * 2014-12-15 2018-10-12 小米科技有限责任公司 拍摄控制方法及装置
CN105163038A (zh) * 2015-09-02 2015-12-16 移康智能科技(上海)有限公司 一种联动补光方法及其装置
CN107529018B (zh) * 2016-06-21 2021-04-20 富泰华工业(深圳)有限公司 闪光灯、具有闪光灯的电子装置及闪光灯控制方法
CN107071272B (zh) * 2017-02-17 2020-10-16 奇酷互联网络科技(深圳)有限公司 相机补光灯亮度的控制方法、装置及终端
CN107463880A (zh) * 2017-07-07 2017-12-12 广东欧珀移动通信有限公司 控制方法、电子装置和计算机可读存储介质
CN107995436A (zh) * 2017-12-19 2018-05-04 浙江大华技术股份有限公司 一种补光方法及装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103680058A (zh) * 2013-12-09 2014-03-26 灏泷智能科技(上海)有限公司 一种疲劳驾驶监测提醒系统
CN105354986A (zh) * 2015-11-12 2016-02-24 熊强 汽车司机驾驶状态监测系统及方法
US20170289422A1 (en) * 2016-03-31 2017-10-05 Vivotek Inc. Photographic apparatus and exposure luminance adjustment method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112995527A (zh) * 2021-02-27 2021-06-18 深圳市数码龙电子有限公司 用于摄像头的补光方法、系统、智能终端及存储介质
CN112995527B (zh) * 2021-02-27 2021-12-21 深圳市数码龙电子有限公司 用于摄像头的补光方法、系统、智能终端及存储介质
CN113869302A (zh) * 2021-11-16 2021-12-31 云丁网络技术(北京)有限公司 用于图像处理的控制方法及装置
CN113869302B (zh) * 2021-11-16 2022-07-15 云丁网络技术(北京)有限公司 用于图像处理的控制方法及装置
CN114392379A (zh) * 2021-12-10 2022-04-26 中国第一汽车股份有限公司 一种车辆消毒方法和系统
CN114973427A (zh) * 2022-06-09 2022-08-30 杭州萤石软件有限公司 一种目标检测设备及图像获取方法

Also Published As

Publication number Publication date
CN109314751B (zh) 2021-01-12
CN109314751A (zh) 2019-02-05

Similar Documents

Publication Publication Date Title
WO2020042084A1 (zh) 一种补光方法、补光装置及电子设备
TWI714131B (zh) 控制方法、微處理器、電腦可讀記錄媒體及電腦設備
US10068369B2 (en) Method and apparatus for selectively integrating sensory content
US10922568B2 (en) Driver monitoring apparatus and method for controlling illuminator thereof
US9654740B2 (en) Controlling automotive rear-view mirror based on eye movement
US10802282B2 (en) Controlling light source intensities on optically trackable object
TWI781404B (zh) 可依據使用情境切換運作模式的眼動追蹤模組
EP1962226A2 (en) Image recognition device for vehicle and vehicle head lamp controller and method of controlling head lamps
CN105049742A (zh) 一种移动终端及双色温补偿方法
WO2019007191A1 (zh) 控制方法、电子装置和计算机可读存储介质
CN113518494A (zh) 智慧路灯控制方法、装置、存储介质及服务器
US20180262667A1 (en) Image capturing device and brightness adjusting method
US20150158427A1 (en) Vehicle control system for providing warning message and method thereof
WO2021249495A1 (zh) 车辆灯光控制的方法、装置及系统
US7853080B2 (en) System and method for identifying and labeling cluster pixels in a frame of image data for optical navigation
Ewecker et al. Provident vehicle detection at night for advanced driver assistance systems
US20150138433A1 (en) Illumination Control System and Illumination Control Method
CN108569191A (zh) 一种基于dlp的像素式自适应汽车前照灯控制系统
WO2022174653A1 (zh) 灯光调节方法及装置
CN108174115B (zh) 一种飞碟摄像机补光方法及装置
WO2023048837A1 (en) Contextual usage control of cameras
KR101601541B1 (ko) 시선추적기 및 그의 동공 검출 방법
WO2018233099A1 (zh) 一种移动终端显示方法、移动终端及存储介质
WO2020236080A1 (en) Dimming light that is interfering with an observer's vision
US20230342891A1 (en) An image processing method for removal of glare spots and system for the same

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18931851

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18931851

Country of ref document: EP

Kind code of ref document: A1