WO2018133202A1 - 闪光灯提示方法和终端设备 - Google Patents

闪光灯提示方法和终端设备 Download PDF

Info

Publication number
WO2018133202A1
WO2018133202A1 PCT/CN2017/078775 CN2017078775W WO2018133202A1 WO 2018133202 A1 WO2018133202 A1 WO 2018133202A1 CN 2017078775 W CN2017078775 W CN 2017078775W WO 2018133202 A1 WO2018133202 A1 WO 2018133202A1
Authority
WO
WIPO (PCT)
Prior art keywords
feature information
terminal device
flash
facial
subject
Prior art date
Application number
PCT/CN2017/078775
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 CN201780003459.9A priority Critical patent/CN108235817A/zh
Publication of WO2018133202A1 publication Critical patent/WO2018133202A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules

Definitions

  • the embodiment of the present invention relates to the field of communications technologies, and in particular, to a flash prompting method and a terminal device.
  • the flash can be based on the current surrounding environment.
  • the brightness is calculated to automatically determine if the flash needs to be turned on when taking a picture. In the case of sufficient light, the camera turns off the flash; in the case of insufficient light, the camera automatically turns on the flash to achieve the best shooting performance, and the resolution of the photo taken by the terminal device is getting stronger and stronger, so use There are more and more people taking pictures on the terminal device.
  • the flash needs to be turned on, that is, the flash photography mode is entered.
  • the camera button When the user presses the camera button, the flash is turned on, and the user cannot prevent the flash from starting in time, which may cause harm to the eyes of the person being photographed.
  • the embodiment of the invention provides a flash prompting method and a terminal device.
  • the automatic flash technology By combining the automatic flash technology and the image intelligent recognition technology, the flexibility of the user to use the flash is provided, and the light sensitive person is better protected.
  • a flash prompting method may include: the terminal device collecting a facial image of a current subject, and acquiring first facial feature information.
  • the terminal device compares the first facial feature information with the second facial feature information to determine a type attribute of the subject.
  • the terminal device controls the working state of the flash according to the light intensity of the current environment and the type attribute of the subject.
  • the first facial feature information such as one or more feature information of the tooth feature information, the eyelid feature information, the whisker feature information, and the wrinkle feature information.
  • the type attribute of the subject may include children, the elderly, and people who are sensitive to light.
  • the flash's working state such as turning on the flash or not turning on the flash, provides the user with the flexibility to use the flash to better protect the light-sensitive people.
  • the terminal device controls the working state of the flash according to the light intensity of the current environment and the type attribute of the photographer, including:
  • the terminal device displays prompt information of the flash working state according to the light intensity of the current environment and the type attribute of the photographer, and the prompt information is used to instruct the user to input an operation instruction for turning on or off the flash.
  • the terminal device turns the flash on or off according to an operation instruction input by the user.
  • the second facial feature information includes facial feature information of the facial image in the preset protected image library.
  • the method before the terminal device scans the facial image of the current subject, the method further includes: the terminal device acquiring the preset protected facial image library according to the facial feature information of the facial image in the system image library.
  • the protected facial image library can be specially protected for an individual or some people according to the user's request, which improves the subject. Protect the protection of the crowd.
  • the terminal device when the light intensity of the current environment is insufficient and the type attribute of the photographer is a protected person, the terminal device turns the flash on or off according to the current light information and the type attribute of the subject, including: the terminal The device turns off the flash according to the light intensity information of the current environment and the protected population, so that the user can control the opening and closing of the flash, thereby improving the operability of the user.
  • the first facial feature information includes the facial motion feature information
  • the terminal device collects the facial image of the current subject, and acquires the first facial feature information, including: the terminal device collects the face of the current photographer. The image acquires facial motion feature information of the subject.
  • the terminal device determines the type attribute of the subject based on the facial motion feature information.
  • the terminal device controls the working state of the flash according to the light intensity of the current environment and the type attribute of the subject.
  • another terminal device comprising: a camera, a processor, an ambient light intensity sensor, and a flash.
  • the camera is configured to collect a facial image of the current subject, and acquire first facial feature information by the processor.
  • the processor is further configured to compare the first facial feature information with the second facial feature information, determine a type attribute of the captured object, and determine a light intensity of the current environment and the subject according to the ambient light intensity sensor
  • the type attribute controls the working state of the flash.
  • the terminal device further includes: a touch display screen.
  • the processor is further configured to display prompt information of the flash working state according to the light intensity of the current environment and the type attribute of the photographer, and the prompt information is used to instruct the user to input an operation instruction for turning the flash on or off by touching the display screen, according to the user Touch the operation command entered on the display to turn the flash on or off.
  • the second facial feature information includes facial feature information of the facial image in the preset protected image library.
  • the processor is further configured to acquire a preset protected image of the face image according to the facial feature information of the facial image in the system image library.
  • the type attribute of the subject is a protected population.
  • the processor is specifically configured to turn off the flash according to the light intensity shortage information and the protected population according to the current environment.
  • the first facial feature information includes facial motion feature information
  • the processor is configured to scan a facial image of the current subject, acquire facial motion feature information of the captured object, and determine the facial motion feature information according to the facial motion feature information.
  • the type attribute of the subject and controls the working state of the flash according to the light intensity of the current environment acquired by the ambient light intensity sensor and the type attribute of the subject.
  • a computer program product comprising instructions for causing a computer to perform the methods described in the various aspects above is provided when the computer program product runs on a computer.
  • a computer readable storage medium stores a computer program that, when executed by the processor, implements the methods described in the various aspects above.
  • FIG. 1 is a schematic flow chart of a working process of a flash on a camera
  • FIG. 2 is a schematic structural diagram of a terminal device
  • FIG. 3 is a schematic flowchart diagram of a method for prompting a flash according to an embodiment of the present invention
  • FIG. 4A is a schematic diagram of a setting page according to an embodiment of the present invention.
  • 4B is a schematic diagram of a protected image library page according to an embodiment of the present invention.
  • 4C is a schematic diagram of a page for adding an image to a protected image library according to an embodiment of the present invention.
  • 4D is a schematic diagram of another protected image library page according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of prompt information according to an embodiment of the present invention.
  • FIG. 6 is a schematic flowchart diagram of another flash prompting method according to an embodiment of the present invention.
  • the method provided by the present application is applicable to the terminal device shown in FIG. 2.
  • the terminal device can be various handheld devices (such as mobile phones) with flash shooting capabilities, wearable devices, mobile computers, and the like.
  • the terminal device 200 can include a baseband chip 210 memory 215 (one or more computer readable storage media) and a peripheral system 217.
  • the terminal device 200 may further include a radio frequency (RF) module 216.
  • a radio frequency (RF) module 216 is used to receive and transmit radio frequency signals.
  • the baseband chip 210, the memory 215 (one or more computer readable storage media), the radio frequency (RF) module 216, and the peripheral system 217 can communicate over one or more communication buses 214.
  • the peripheral system 217 is mainly used to implement an interaction function between the terminal device 200 and the user/external environment.
  • the peripheral system 217 can include input and output devices of the terminal device 200.
  • the peripheral system 217 can include a touch screen controller 218, a camera controller 219, an audio controller 220, and a sensor management module 221.
  • Each of the controllers can be coupled to a respective peripheral device such as touch display 223, camera 224, audio circuit 225, and sensor 226.
  • camera 224 can be a 3D camera. It should be noted that the peripheral system 217 may also include other I/O peripherals.
  • the touch display screen 223 can be used to display information input by a user or to present information to a user, for example, various menus of the terminal device 200, an interface for displaying a running application, such as a button, a text input box ( Text), Scroll Bar, Menu, instructions, and more.
  • the touch screen 223 can include a touch panel and a display panel.
  • the display panel can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. Further, the touch panel may cover the display panel.
  • the touch panel detects a touch operation on or near the touch panel, the touch panel transmits to the processor 211 to determine the type of the touch event, and then the processor 211 displays the type according to the touch event.
  • a corresponding visual output is provided on the panel.
  • the touch panel and the display panel are two independent components to implement the input and output functions of the terminal device 200, but in some embodiments, the input and output of the terminal device 200 can be realized by integrating the touch panel with the display panel.
  • the baseband chip 210 can be integrated to include one or more processors 211.
  • the baseband chip 210 can also be integrated to include a clock module 212 and a power management module 213.
  • the clock module 22 integrated in the baseband chip 210 is primarily used to generate the clocks required for data transfer and timing control for the processor 211.
  • the power management module 213 integrated in the baseband chip 210 is mainly used to provide a stable, high-accuracy voltage for the processor 211, the radio frequency module 216, and the peripheral system.
  • Memory 215 is coupled to processor 211 for storing various software programs and/or sets of instructions.
  • memory 215 can include high speed random access memory, and can also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other non-volatile solid state storage devices.
  • the memory 215 can store an operating system (hereinafter referred to as a system) such as an embedded operating system such as ANDROID, IOS, WINDOWS, or LINUX.
  • the memory 215 can also store a network communication program that can be used to communicate with one or more additional devices, one or more terminal devices, one or more network devices.
  • the memory 215 can also store a user interface program, which can realistically display the content of the application through a graphical operation interface, and receive user control operations on the application through input controls such as menus, dialog boxes, and keys. .
  • the memory 215 can also store one or more applications. As shown in FIG. 2, these applications may include: a social application (such as Facebook), an image management application (such as an album, the album may include a system album and a protected image library), and a map application (such as Google Maps). , a browser (such as Safari, Google Chrome), etc., wherein the protected image library is used to store facial feature information of the protected person's facial image.
  • a social application such as Facebook
  • an image management application such as an album
  • the album may include a system album and a protected image library
  • a map application such as Google Maps
  • a browser such as Safari, Google Chrome
  • the protected image library is used to store facial feature information of the protected person's facial image.
  • the photographing person is photographed by using the above terminal device, and the terminal device 200 can perform the following processes:
  • the camera controller 219 can include a camera 224 and a flash 228.
  • the camera controller 219 is configured to control the camera 224 to collect the facial image of the current subject, and transmit the data of the facial image to the processor 211 to acquire the first facial feature information.
  • the first facial feature information may be one or more feature information of the tooth feature information, the eyelid feature information, the whisker feature information, and the wrinkle feature information.
  • the processor 211 is configured to compare the acquired first facial feature information with the second facial feature information (or the facial feature information of the protected person) stored in the memory 215 to determine a type attribute of the subject (eg, a normal crowd) Light-sensitive protected population).
  • a type attribute of the subject eg, a normal crowd
  • the sensor management module 221 is configured to collect the light intensity of the current environment by the ambient light intensity sensor 226, and transmit the light intensity of the current environment to the processor 211 to determine a shooting mode, such as turning on the flash mode and turning off the flash mode.
  • a shooting mode such as turning on the flash mode and turning off the flash mode.
  • the processor 211 notifies the camera controller 219 to enter the flash mode; when the light intensity of the current environment is sufficient, the processor 211 notifies the camera controller 219 to enter the flash mode.
  • the processor 211 is further configured to send the first indication information to the touch screen controller 218 according to the light intensity of the current environment and the type attribute of the photographer, the first indication information being used to prompt the touch display screen 223 to display the working state of the flash Information to instruct the user to determine whether the flash needs to be turned on by touching the display screen 223.
  • the processor 211 is further configured to send the second indication information to the audio controller 220 according to the current ray information and the type attribute of the subject, where the second indication information is used to instruct the audio circuit 225 to broadcast the working state of the flash.
  • terminal device 200 is only an example provided by the embodiment of the present invention, and the terminal device 200 may have more or less components than the illustrated components, may combine two or more components, or may have Different configurations of components are implemented.
  • the above terminal device combines the automatic flash technology and the face recognition technology.
  • the camera automatically scans the current photographer's image (or photo), such as a facial image, and recognizes the current image by the face recognition algorithm that the current photographer is sensitive to light.
  • a prompt message is displayed, which is used to instruct the user to confirm whether it needs to be opened. If the user confirms that it can be turned on, the flash is turned on, otherwise it is not turned on. That is to say, by combining the automatic flash technology and the image intelligent recognition technology, the flexibility of the user to use the flash is provided, and the light sensitive person is better protected.
  • FIG. 3 is a schematic flowchart diagram of a method for prompting a flash according to an embodiment of the present invention.
  • the method can include:
  • Step 310 The terminal device collects a facial image of the current subject, and acquires first facial feature information.
  • the terminal device collects at least one face image of the photographer through the camera, and scans the face image of the photographer to acquire the first facial feature information.
  • the first facial feature information may include one or more feature information of the tooth feature information, the eyelid feature information, the whisker feature information, and the wrinkle feature information of the face of the photographer.
  • the terminal device scans the face image of the current subject, and the acquired first facial feature information is that the tooth is small, white and incomplete, so that the terminal device confirms that the subject is a child; the acquired first face The feature information is that the face has more wrinkles and a white beard, so that the terminal device confirms that the subject is an elderly person.
  • Step 320 The terminal device compares the first facial feature information with the second facial feature information to determine a type attribute of the captured person.
  • the type attribute of the subject may include children, the elderly, and people who are sensitive to light.
  • the second facial feature information may include facial feature information of the facial image in the preset protected image library, or may be stored facial feature information for identifying the type attribute of the captured object, or may be recognized after being connected to the network.
  • the facial feature information of the type attribute of the subject may include facial feature information of the type attribute of the subject.
  • the preset protected image library can protect a certain person or some people according to the user's requirements, and improve the protection of the protected population.
  • the manner in which the preset protected image library is created may include the following methods:
  • the user can enter the setting page by opening the setting options of the shooting application, as shown in FIG. 4A.
  • the user can open the Protected Image Library option.
  • Two ways to add are included in the protected image library options: shooting and selecting from the system image library (below the album as an example), as shown in Figure 4B.
  • the page After the user selects the shooting option, the page will jump directly to the shooting application to get the face image of the person being photographed. Once the user chooses to select an option from the album, the page will jump directly to the album so that the user can select an image of the person to be protected. That is, the user can add a protected image library by means of shooting and by selecting from an album.
  • the user can directly take a picture of the person being photographed and add the obtained image to the protected image library. If the user selects the mode selected from the album, the terminal device can display the images in the album for display by the user.
  • the user can delete at least one of the selected images by clicking the delete option, or add an image to the protected image library by clicking the Add option.
  • the selected mark (such as a solid dot) appears in the upper right corner of the selected image, as shown in FIG. 4C.
  • the shooting application opens the camera, calls the camera image scanning interface to collect the image of the captured person, acquires facial feature information, and invokes an image recognition algorithm to compare with the facial feature information of the image in the protected image library.
  • the terminal device determines that the facial features of the subject are the same as the facial features in the protected image library, the terminal sets It is necessary to confirm that the person being photographed is a protected person, such as an elderly person or a child. On the contrary, the terminal device confirms that the person being photographed is not a protected person and performs normal shooting.
  • Step 330 The terminal device controls the working state of the flash according to the light intensity of the current environment and the type attribute of the subject.
  • the terminal device displays prompt information of the flash working state according to the light intensity of the current environment and the type attribute of the photographer, the prompt information is used to instruct the user to input an operation instruction for turning on or off the flash, and the terminal device inputs according to the user. Operation instructions that control the working state of the flash, such as turning the flash on or off.
  • the terminal device can determine the current shooting mode according to the light intensity of the current environment, such as turning on the flash mode or turning off the flash mode.
  • the terminal device confirms that the flash mode needs to be turned on according to the light intensity shortage information of the current environment, but when the terminal confirms that the photographer is the protected old person, the terminal device displays the prompt information of the working state of the flash to the user, After the user inputs an operation command to turn the flash on or off through the prompt information, the terminal determines whether it is necessary to turn on the flash for shooting according to the operation instruction.
  • the terminal device confirms that the flash mode needs to be turned on according to the light intensity shortage information of the current environment, and when the terminal confirms that the photographer is a normal crowd, the terminal device uses the open flash mode to perform shooting.
  • the prompt information may be prompted by a bullet box, that is, a prompt box for opening the flash is popped up on the display screen, as shown in FIG. 5 .
  • the prompt information may also be prompted in other manners, such as a voice prompting manner by the audio circuit 225, which is not limited herein.
  • the first facial feature information may further include facial motion feature information of the captured person, such as feature information such as eyeball turbulence (not focusing),
  • the terminal device collects the facial image of the current subject, acquires facial motion feature information of the subject, such as feature information of the eyeball turbulence, and determines, according to the feature information, the type attribute of the subject as a child. The terminal device then turns the flash on or off according to the light intensity of the current environment and the type attribute of the child being the child.
  • the terminal device confirms that the subject is a protected person, and the terminal device obtains the ambient light detection result that the light is insufficient to open the flash. At this time, the terminal device prompts the user that the user is currently taking photos for the protected person, and a prompt box is displayed on the screen. As shown in 5, the user selects whether or not to confirm that the flash is turned on by the prompt information. If the user selects Yes, the terminal device normally turns on the flash to shoot; if the user selects No, the terminal device does not turn on the flash for shooting, so that the user can control the opening and closing of the flash, thereby improving the operability of the user.
  • the following takes the terminal device as a mobile phone as an example for detailed description.
  • FIG. 6 is a schematic flowchart diagram of another flash prompting method according to an embodiment of the present invention. As shown in FIG. 6, when the user opens the mobile phone camera to take a photo, the method may include:
  • Step 610 The camera of the mobile phone collects the facial image of the currently photographed person, and scans the facial image by the processor, thereby acquiring facial feature information, such as acquiring characteristic information such as wrinkles and white beards.
  • step 620 the processor of the mobile phone matches the photos in the image management application (such as the protected image library) in the memory through the face recognition algorithm.
  • the image management application such as the protected image library
  • step 630 is performed, and the mobile phone performs normal shooting, such as when the ambient light intensity is insufficient, Shoot the flash; when the ambient light level is sufficient, turn off the flash to shoot.
  • step 640 is performed.
  • step 640 the processor of the mobile phone confirms that the currently photographed person is an elderly person and belongs to the protected group.
  • Step 650 The processor of the mobile phone displays, according to the insufficient light intensity of the current environment acquired by the ambient light intensity sensor and the type attribute of the person being the old person, whether to open the prompt message box of the flash through the touch screen display.
  • step 660 is executed, and the mobile phone turns off the flash to shoot.
  • the embodiment of the present invention further provides a computer readable storage medium.
  • a computer program is stored on the computer readable storage medium, the program being executed by the processor of FIG.
  • Embodiments of the present invention also provide a computer program product comprising instructions.
  • the computer program product is run on a computer, the computer is caused to perform the method described above with respect to FIG.
  • Non-transitory medium such as random access memory, read only memory, flash memory, hard disk, solid state disk, magnetic tape, floppy disk, optical disc, and any combination thereof.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

本发明实施例涉及一种闪光灯提示方法和终端设备。终端设备通过采集当前被拍摄者的面部图像,获取第一面部特征信息。终端设备将第一面部特征信息与第二面部特征信息进行对比,确定被拍摄者的类型属性。终端设备根据当前环境的光强度和被拍摄者的类型属性,控制闪光灯的工作状态。通过将自动闪光灯技术和图像智能识别技术相结合,提供了用户使用闪光灯的灵活性,对光敏感人群更好的进行保护。

Description

闪光灯提示方法和终端设备 技术领域
本申请实施例涉及通信技术领域,尤其涉及一种闪光灯提示方法和终端设备。
背景技术
随着终端设备(如手机)的不断发展,终端设备上照相机的像素越来越高,并且该照相机的闪光灯的自动识别技术越来越准确,如图1所示,闪光灯可以根据当前周边环境的亮度进行计算,从而自动判断拍照时是否需要打开闪光灯。在光线充足的情况下,照相机关闭闪光灯;在光线不足的情况下,照相机自动打开闪光灯,以达到拍摄效果的最佳状态,同时,终端设备拍摄照片的辨析度也越来越强,因此,使用该终端设备上照相机来拍照的人群越来越多。
然而,当用户主观上不想打开闪光灯,但由于照相机计算出周边光线较低,需要打开闪光灯,即进入闪光拍照模式。用户按下拍照按钮后,闪光灯开启,此时用户不能及时阻止闪光灯的启动,可能会给被拍照者的眼睛带来伤害。
发明内容
本发明实施例提供了一种闪光灯提示方法和终端设备,通过将自动闪光灯技术和图像智能识别技术相结合,提供了用户使用闪光灯的灵活性,对光敏感人群更好的进行保护。
第一方面,提供了一种闪光灯提示方法,该方法可以包括:终端设备采集当前被拍摄者的面部图像,获取第一面部特征信息。终端设备将第一面部特征信息与第二面部特征信息进行对比,确定被拍摄者的类型属性。终端设备根据当前环境的光强度和被拍摄者的类型属性,控制闪光灯的工作状态。第一面部特征信息如牙齿特征信息,眼睑特征信息、胡须特征信息和皱纹特征信息中的一种或多种特征信息。被拍摄者的类型属性可以包括儿童、老人以及对光线敏感的人。闪光灯的工作状态如打开闪光灯或不打开闪光灯,从而提供了用户使用闪光灯的灵活性,对光敏感人群更好的进行保护。
在一个可选的实现中,终端设备根据当前环境的光强度和被拍摄者的类型属性,控制闪光灯的工作状态,包括:
终端设备根据当前环境的光强度和被拍摄者的类型属性,显示闪光灯工作状态的提示信息,提示信息用于指示用户输入开启或关闭闪光灯的操作指令。终端设备根据用户输入的操作指令,开启或关闭闪光灯。
在一个可选的实现中,第二面部特征信息包括预置的受保护图像库中面部图像的面部特征信息。
在一个可选的实现中,终端设备扫描当前被拍摄者的面部图像之前,该方法还包括:终端设备根据系统图像库中面部图像的面部特征信息,获取预置的受保护的面部图像库。受保护的面部图像库可以根据用户的要求对某一个人或某一些人进行特殊保护,提高了受 保护人群的保护力度。
在一个可选的实现中,当当前环境的光强度不足,被拍摄者的类型属性为受保护人群时,终端设备根据当前光线信息和被拍摄者的类型属性,开启或关闭闪光灯,包括:终端设备根据当前环境的光强度不足信息和受保护人群,关闭闪光灯,以使用户可以对闪光灯的开启与关闭进行控制,提高了用户的可操作性。
在一个可选的实现中,第一面部特征信息包括面部动作特征信息,终端设备采集当前被拍摄者的面部图像,获取第一面部特征信息,包括:终端设备采集当前被拍摄者的面部图像,获取被拍摄者的面部动作特征信息。终端设备根据面部动作特征信息,确定被拍摄者的类型属性。终端设备根据当前环境的光强度和被拍摄者的类型属性,控制闪光灯的工作状态。
第二方面,提供了另一种终端设备,该终端设备包括:摄像头、处理器、环境光强度传感器和闪光灯。
摄像头用于采集当前被拍摄者的面部图像,并通过处理器获取第一面部特征信息。
处理器,还用于将第一面部特征信息与第二面部特征信息进行对比,确定被拍摄者的类型属性,并根据所述环境光强度传感器获取的当前环境的光强度和被拍摄者的类型属性,控制闪光灯的工作状态。
在一个可选的实现中,终端设备还包括:触摸显示屏。处理器,还用于根据当前环境的光强度和被拍摄者的类型属性,显示闪光灯工作状态的提示信息,提示信息用于指示用户通过触摸显示屏输入开启或关闭闪光灯的操作指令,根据用户通过触摸显示屏输入的操作指令,开启或关闭闪光灯。
在一个可选的实现中,第二面部特征信息包括预置的受保护图像库中面部图像的面部特征信息。
在一个可选的实现中,处理器还用于根据系统图像库中面部图像的面部特征信息,获取预置的受保护的面部图像库。
在一个可选的实现中,当当前环境的光强度不足,被拍摄者的类型属性为受保护人群时。处理器具体用于根据根据当前环境的光强度不足信息和受保护人群,关闭闪光灯。
在一个可选的实现中,第一面部特征信息包括面部动作特征信息,处理器用于扫描当前被拍摄者的面部图像,获取被拍摄者的面部动作特征信息,并根据面部动作特征信息,确定被拍摄者的类型属性,并根据环境光强度传感器获取的当前环境的光强度和被拍摄者的类型属性,控制闪光灯的工作状态。
第三方面,提供了一种包含指令的计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述各方面所述的方法。
第四方面,提供了一种计算机可读存储介质。该计算机可读存储介质上存储有计算机程序,该程序被处理器执行时实现上述各方面所述的方法。
附图说明
图1为一种照相机上闪光灯工作过程的流程示意图;
图2为一种终端设备的结构示意图;
图3为本发明实施例提供的一种闪光灯提示方法的流程示意图;
图4A为本发明实施例提供的一种设置页面的示意图;
图4B为本发明实施例提供的一种受保护图像库页面的示意图;
图4C为本发明实施例提供的一种添加图像至受保护图像库的页面的示意图;
图4D为本发明实施例提供的另一种受保护图像库页面的示意图;
图5为本发明实施例提供的一种提示信息的示意图;
图6为本发明实施例提供的另一种闪光灯提示方法的流程示意图。
具体实施方式
下面通过附图和实施例,对本申请的技术方案做进一步的详细描述。
本申请提供的方法适用于图2所示的终端设备中。该终端设备可以是各种具有闪光灯拍摄功能的手持设备(如手机)、可穿戴设备,移动电脑等。如图2所示,该终端设备200可以包括:基带芯片210存储器215(一个或多个计算机可读存储介质)和外围系统217。
可选地,该终端设备200还可以包括射频(RF)模块216。射频(RF)模块216用于接收和发送射频信号。
其中,基带芯片210、存储器215(一个或多个计算机可读存储介质)、射频(RF)模块216和外围系统217之间可在一个或多个通信总线214上通信。
外围系统217主要用于实现终端设备200和用户/外部环境之间的交互功能。外围系统217可以包括终端设备200的输入输出装置。在一些实施例中,外围系统217可以包括:触摸屏控制器218、摄像头控制器219、音频控制器220以及传感器管理模块221。其中,各个控制器可与各自对应的外围设备(如触摸显示屏223、摄像头224、音频电路225以及传感器226)耦合。在一些实施例中,摄像头224可以是3D摄像头。需要说明的,外围系统217还可以包括其他I/O外设。
所述触摸显示屏223可用于显示由用户输入的信息或向用户展示信息,例如可以展示终端设备200的各种菜单、展示正在运行的应用程序的界面,例如按键(Button),文本输入框(Text),滑动条(Scroll Bar),菜单(Menu),指示信息等等。触摸显示屏223可包括触控面板和显示面板,可选地,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板。进一步的,触控面板可覆盖显示面板,当触控面板检测到在其上或附近的触摸操作后,传送给处理器211以确定触摸事件的类型,随后处理器211根据触摸事件的类型在显示面板上提供相应的视觉输出。触控面板与显示面板是作为两个独立的部件来实现终端设备200的输入和输出功能,但是在某些实施例中,可以将触控面板与显示面板集成而实现终端设备200的输入和输出功能。
基带芯片210可集成包括:一个或多个处理器211。可选地,基带芯片210还可集成包括时钟模块212以及电源管理模块213。集成于基带芯片210中的时钟模块22主要用于为处理器211产生数据传输和时序控制所需要的时钟。集成于基带芯片210中的电源管理模块213主要用于为处理器211、射频模块216以及外围系统提供稳定的、高精确度的电压。
存储器215与处理器211耦合,用于存储各种软件程序和/或多组指令。在一些实施例中,存储器215可包括高速随机存取的存储器,并且也可包括非易失性存储器,例如一个或多个磁盘存储设备、闪存设备或其他非易失性固态存储设备。存储器215可以存储操作系统(下述简称系统),例如ANDROID,IOS,WINDOWS,或者LINUX等嵌入式操作系统。存储器215还可以存储网络通信程序,该网络通信程序可用于与一个或多个附加设备,一个或多个终端设备,一个或多个网络设备进行通信。存储器215还可以存储用户接口程序,该用户接口程序可以通过图形化的操作界面将应用程序的内容形象逼真的显示出来,并通过菜单、对话框以及按键等输入控件接收用户对应用程序的控制操作。
存储器215还可以存储一个或多个应用程序。如图2所示,这些应用程序可包括:社交应用程序(例如Facebook),图像管理应用程序(例如相册,该相册可以包括系统相册和受保护图像库),地图类应用程序(例如谷歌地图),浏览器(例如Safari,Google Chrome)等等,其中,受保护图像库用于存储受保护人群面部图像的面部特征信息。
采用上述终端设备对被拍摄者进行拍摄,终端设备200可以进行以下过程:
摄像头控制器219可以包括摄像头224和闪光灯228。摄像头控制器219用于控制摄像头224采集当前被拍摄者的面部图像,并将该面部图像的数据传送至处理器211,获取第一面部特征信息。其中,第一面部特征信息可以是牙齿特征信息,眼睑特征信息、胡须特征信息和皱纹特征信息中的一种或多种特征信息。
处理器211用于将获取的第一面部特征信息与存储器215中存储的第二面部特征信息(或称受保护人群的面部特征信息)进行对比,确定被拍摄者的类型属性(如是正常人群、对光敏感的受保护人群)。
传感器管理模块221用于通过环境光强度传感器226采集当前环境的光强度,并将该当前环境的光强度传送至处理器211,确定拍摄模式,如开启闪光灯模式和关闭闪光灯模式。当当前环境的光强度时,处理器211通知摄像头控制器219进入开启闪光灯模式;当当前环境的光强度充足时,处理器211通知摄像头控制器219进入关闭闪光灯模式。
处理器211还用于根据当前环境的光强度和被拍摄者的类型属性,向触摸屏控制器218发送第一指示信息,该第一指示信息用于指示触摸显示屏223显示闪光灯的工作状态的提示信息,以指示用户通过触摸显示屏223确定是否需要开启闪光灯进行拍摄。
可选地,该处理器211还用于根据当前光线信息和被拍摄者的类型属性,向音频控制器220发送第二指示信息,该第二指示信息用于指示音频电路225播报闪光灯的工作状态的提示信息,以指示用户通过触摸显示屏223确定是否需要开启闪光灯进行拍摄。
应当理解,终端设备200仅为本发明实施例提供的一个例子,并且,终端设备200可具有比示出的部件更多或更少的部件,可以组合两个或更多个部件,或者可具有部件的不同配置实现。
上述终端设备通过将的自动闪光灯技术和面部识别技术相结合。当用户准备拍摄时,摄像头自动扫描当前被拍摄者的图像(或称照片),如面部图像,并将扫描的图像通过面部识别算法识别出当前被拍摄者是儿童、老人等对光敏感的特殊人群,此时弹出提示信息,该提示信息用于指示用户确认是否需要打开,如果用户确认可以打开,则开启闪光灯,否则不开启。也就是说,通过将自动闪光灯技术和图像智能识别技术相结合,提供了用户使用闪光灯的灵活性,对光敏感人群更好的进行保护。
图3为本发明实施例提供的一种闪光灯提示方法的流程示意图。该方法可以包括:
步骤310、终端设备采集当前被拍摄者的面部图像,获取第一面部特征信息。
终端设备通过摄像头采集至少一张被拍摄者的面部图像,并扫描被拍摄者的面部图像,获取第一面部特征信息。
可选地,第一面部特征信息可以包括被拍摄者面部的牙齿特征信息,眼睑特征信息、胡须特征信息和皱纹特征信息中的一种或多种特征信息。
在一个例子中,终端设备扫描当前被拍摄者的面部图像,获取的第一面部特征信息为牙齿小、呈白色且不全,使终端设备确认该被拍摄者为儿童;获取的第一面部特征信息为面部有皱纹较多、白色胡须,使终端设备确认该被拍摄者为老人。
步骤320、终端设备将第一面部特征信息与第二面部特征信息进行对比,确定被拍摄者的类型属性。
被拍摄者的类型属性可以包括儿童、老人以及对光线敏感的人。
第二面部特征信息可以包括预置的受保护图像库中面部图像的面部特征信息,也可以是存储的可供识别被拍摄者的类型属性的面部特征信息,或连网后获得的可供识别被拍摄者的类型属性的面部特征信息。预置的受保护图像库可以根据用户的要求对某一个人或某一些人进行特殊保护,提高了受保护人群的保护力度。
可选地,预置的受保护图像库的创建方式可以包括以下方法:
用户可以通过打开拍摄应用的设置选项,进入设置页面,如图4A所示。在设置页面上,用户可以打开受保护图像库选项。在受保护图像库选项中包括两种添加方式:拍摄和从系统图像库(下面以相册为例)中选择,如图4B所示。
用户选择拍摄选项后,页面将直接跳转到拍摄应用,以获取被拍摄人的面部图像。用户选择从相册中选择选项后,页面将直接跳转到相册中,以便让用户选择需要保护的人群的图像。也就是说,用户可以通过拍摄的方式,以及从相册中选择的方式,来添加受保护的图像库。
若用户选择拍摄的方式,则用户可以直接对被拍摄人进行拍照,将获得的图像加入受保护的图像库。若用户选择从相册中选择的方式,则终端设备可以将相册中的图像排列展示出来供用户选择。
在从相册中选择受保护的图像时,用户可以通过点击删除选项,删除选择的至少一张图像,或者通过点击添加选项,添加图像至受保护图像库。其中,被选择的图像的右上角出现被选中标识(如实心圆点),如图4C所示。
用户从相册中选择添加完受保护的图像后,可以在受保护图像库中通过点击取消选项,取消受保护图像库中刚添加的所有图像,如图4D所示。
回到拍摄页面后,拍摄应用打开摄像头,调用摄像头图像扫描接口采集被拍摄人的图像,获取面部特征信息,调用图像识别算法,与受保护图像库中图像的面部特征信息进行比较。
若终端设备判断出被拍摄人的面部特征与受保护图像库中的面部特征相同,则终端设 备确认被拍摄人为被保护人群,如老人或儿童,反之,则终端设备确认被拍摄人不是保护人群,进行正常拍摄。
步骤330、终端设备根据当前环境的光强度和被拍摄者的类型属性,控制闪光灯的工作状态。
可选地,终端设备根据当前环境的光强度和被拍摄者的类型属性,显示闪光灯工作状态的提示信息,该提示信息用于指示用户输入开启或关闭闪光灯的操作指令,终端设备根据用户输入的操作指令,控制闪光灯的工作状态,如开启或关闭闪光灯。
其中,当被拍摄者的类型属性为受保护人群,如老人、小孩等时,终端设备可以根据当前环境的光强度,确定当前的拍摄模式,如开启闪光灯模式或关闭闪光灯模式。
可选地,终端设备根据当前环境的光强度不足信息,确认需要开启闪光灯模式,但此时终端确认被拍摄者为对被保护的老人时,终端设备向用户显示闪光灯的工作状态的提示信息,在用户通过提示信息输入开启或关闭闪光灯的操作指令后,终端根据该操作指令,确定是否需要开启闪光灯进行拍摄。
或者,终端设备根据当前环境的光强度不足信息,确认需要开启闪光灯模式,当终端确认被拍摄者为正常人群时,终端设备使用开启闪光灯模式进行拍摄。
可选地,该提示信息可以以弹框的方式进行提示,即在显示屏上弹出是否打开闪光灯的提示框,如图5所示。
需要说明的是,该提示信息还可以以其他方式进行提示,如通过音频电路225进行语音提示的方式,本发明实施例在此不做限定。
可选地,第一面部特征信息还可以包括被拍摄者的面部动作特征信息,如眼珠乱动(不聚焦)等特征信息,
终端设备采集当前被拍摄者的面部图像,获取被拍摄者的面部动作特征信息,如眼珠乱动的特征信息,并根据该特征信息,确定被拍摄者的类型属性为小孩。之后终端设备根据当前环境的光强度和被拍摄者为小孩的类型属性,开启或关闭闪光灯。
终端设备确认到被拍摄者为被保护人群,同时终端设备获取到环境光检测结果为光线不足需要打开闪光灯,此时终端设备提示用户当前是在为受保护人群拍照,屏幕弹出提示框,如图5所示,用户通过提示信息选择是否确认打开闪光灯进行拍摄。若用户选择是,则终端设备正常打开闪光灯进行拍摄;若用户选择否,则终端设备不打开闪光灯进行拍摄,使用户可以对闪光灯的开启与关闭进行控制,提高了用户的可操作性。
下面以终端设备为手机为例,进行详细说明。
图6为本发明实施例提供的另一种闪光灯提示方法的流程示意图。如图6所示,用户打开手机摄像头准备拍照时,该方法可以包括:
步骤610,手机的摄像头采集当前被拍照者的面部图像,并通过处理器扫描面部图像,从而获取面部特征信息,如获取到皱纹和白色胡须等特征信息。
步骤620,手机的处理器通过面部识别算法与存储器中图像管理应用(如受保护图像库)中的照片进行匹配。
若匹配不成功,则执行步骤630,手机正常进行拍摄,如当环境光强度不足时,打开 闪光灯进行拍摄;当环境光强度充足,关闭闪光灯进行拍摄。
若匹配成功,则执行步骤640。
步骤640,手机的处理器确认当前被拍照人为老人,属于受保护的人群。
步骤650,手机的处理器根据环境光强度传感器获取的当前环境的光强度不足和被拍摄者为老人的类型属性,通过触屏显示器显示是否打开闪光灯的提示信息框。
若是,则执行步骤630。若否,则执行步骤660,手机关闭闪光灯进行拍摄。
需要说明的是,本发明实施例还提供了一种计算机可读存储介质。该计算机可读存储介质上存储有计算机程序,该程序被图2中处理器执行。
本发明实施例还提供了一种包含指令的计算机程序产品。当该计算机程序产品在计算机上运行时,使得计算机执行上述图3所述的方法。
专业人员应该还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令处理器完成,所述的程序可以存储于计算机可读存储介质中,所述存储介质是非短暂性(non-transitory)介质,例如随机存取存储器,只读存储器,快闪存储器,硬盘,固态硬盘,磁带(magnetic tape),软盘(floppy disk),光盘(optical disc)及其任意组合。
以上所述,仅为本申请较佳的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应该以权利要求的保护范围为准。

Claims (14)

  1. 一种闪光灯提示方法,其特征在于,所述方法包括:
    终端设备采集当前被拍摄者的面部图像,获取第一面部特征信息;
    所述终端设备将所述第一面部特征信息与第二面部特征信息进行对比,确定所述被拍摄者的类型属性;
    所述终端设备根据当前环境的光强度和所述被拍摄者的类型属性,控制所述闪光灯的工作状态。
  2. 根据权利要求1所述的方法,其特征在于,所述终端设备根据当前环境的光强度和所述被拍摄者的类型属性,控制所述闪光灯的工作状态,包括:
    所述终端设备根据当前环境的光强度和所述被拍摄者的类型属性,显示闪光灯工作状态的提示信息,所述提示信息用于指示用户输入开启或关闭所述闪光灯的操作指令;
    所述终端设备根据所述用户输入的操作指令,开启或关闭所述闪光灯。
  3. 根据权利要求1或2所述的方法,其特征在于,所述第二面部特征信息包括预置的受保护图像库中面部图像的面部特征信息。
  4. 根据权利要求3所述的方法,其特征在于,所述终端设备扫描当前被拍摄者的面部图像之前,所述方法还包括:
    所述终端设备根据系统图像库中面部图像的面部特征信息,获取所述预置的受保护的面部图像库。
  5. 根据权利要求3或4所述的方法,其特征在于,当所述当前环境的光强度不足,所述被拍摄者的类型属性为受保护人群时,
    所述终端设备根据当前光线信息和所述被拍摄者的类型属性,开启或关闭所述闪光灯,包括:
    所述终端设备根据所述当前环境的光强度不足信息和所述受保护人群,关闭所述闪光灯。
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述第一面部特征信息包括面部动作特征信息,
    所述终端设备采集当前被拍摄者的面部图像,获取第一面部特征信息,包括:
    所述终端设备采集当前被拍摄者的面部图像,获取所述被拍摄者的面部动作特征信息;
    所述终端设备根据所述面部动作特征信息,确定所述被拍摄者的类型属性;
    所述终端设备根据当前环境的光强度和所述被拍摄者的类型属性,控制所述闪光灯的工作状态。
  7. 一种终端设备,其特征在于,所述终端设备包括:摄像头、处理器、环境光强度传感器和闪光灯
    所述摄像头,用于采集当前被拍摄者的面部图像,并通过所述处理器获取第一面部特征信息;
    所述处理器,还用于将所述第一面部特征信息与第二面部特征信息进行对比,确定所 述被拍摄者的类型属性;
    根据所述环境光强度传感器获取的当前环境的光强度和所述被拍摄者的类型属性,控制所述闪光灯的工作状态。
  8. 根据权利要求7所述的设备,其特征在于,所述终端设备还包括:触摸显示屏,
    所述处理器,还用于根据当前环境的光强度和所述被拍摄者的类型属性,显示闪光灯工作状态的提示信息,所述提示信息用于指示用户通过所述触摸显示屏输入开启或关闭所述闪光灯的操作指令,并根据所述用户通过所述触摸显示屏输入的操作指令,开启或关闭所述闪光灯。
  9. 根据权利要求7或8所述的设备,其特征在于,所述第二面部特征信息包括预置的受保护图像库中面部图像的面部特征信息。
  10. 根据权利要求9所述的设备,其特征在于,
    所述处理器,还用于根据系统图像库中面部图像的面部特征信息,获取所述预置的受保护的面部图像库。
  11. 根据权利要求9或10所述的设备,其特征在于,当所述当前环境的光强度不足,所述被拍摄者的类型属性为受保护人群时,
    所述处理器,具体用于根据所述当前环境的光强度不足信息和所述受保护人群,关闭所诉闪光灯。
  12. 根据权利要求7-11任一项所述的设备,其特征在于,所述第一面部特征信息包括面部动作特征信息,所述方法还包括:
    所述摄像头,用于采集当前被拍摄者的面部图像,通过所述处理器获取所述被拍摄者的面部动作特征信息;所述处理器,还用于根据所述面部动作特征信息,确定所述被拍摄者的类型属性,并根据所述环境光强度传感器获取的当前环境的光强度和所述被拍摄者的类型属性,控制所述闪光灯的工作状态。
  13. 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1-6任意一项所述的方法。
  14. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1-6任意一项所述的方法。
PCT/CN2017/078775 2017-01-22 2017-03-30 闪光灯提示方法和终端设备 WO2018133202A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201780003459.9A CN108235817A (zh) 2017-01-22 2017-03-30 闪光灯提示方法和终端设备

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710053936 2017-01-22
CN201710053936.4 2017-01-22

Publications (1)

Publication Number Publication Date
WO2018133202A1 true WO2018133202A1 (zh) 2018-07-26

Family

ID=62907981

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/078775 WO2018133202A1 (zh) 2017-01-22 2017-03-30 闪光灯提示方法和终端设备

Country Status (1)

Country Link
WO (1) WO2018133202A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070189752A1 (en) * 2006-02-15 2007-08-16 Fujifilm Corporation Photography apparatus, photography method, and photography program
JP2008085581A (ja) * 2006-09-27 2008-04-10 Fujifilm Corp 撮影装置
CN103916579A (zh) * 2012-12-30 2014-07-09 联想(北京)有限公司 一种图像摄取方法、装置和电子设备
CN104506778A (zh) * 2014-12-22 2015-04-08 厦门美图之家科技有限公司 一种基于年龄估计的闪光灯控制方法和装置
CN105141854A (zh) * 2015-08-26 2015-12-09 广东欧珀移动通信有限公司 闪光灯控制方法、装置及终端设备
CN105187720A (zh) * 2015-08-25 2015-12-23 广东欧珀移动通信有限公司 拍照方法及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070189752A1 (en) * 2006-02-15 2007-08-16 Fujifilm Corporation Photography apparatus, photography method, and photography program
JP2008085581A (ja) * 2006-09-27 2008-04-10 Fujifilm Corp 撮影装置
CN103916579A (zh) * 2012-12-30 2014-07-09 联想(北京)有限公司 一种图像摄取方法、装置和电子设备
CN104506778A (zh) * 2014-12-22 2015-04-08 厦门美图之家科技有限公司 一种基于年龄估计的闪光灯控制方法和装置
CN105187720A (zh) * 2015-08-25 2015-12-23 广东欧珀移动通信有限公司 拍照方法及装置
CN105141854A (zh) * 2015-08-26 2015-12-09 广东欧珀移动通信有限公司 闪光灯控制方法、装置及终端设备

Similar Documents

Publication Publication Date Title
EP3690625B1 (en) Method and device for dynamically displaying icon according to background image
US10244177B2 (en) Method for processing image to generate relevant data based on user inputs and electronic device supporting the same
KR102386398B1 (ko) 촬영 모드에 따라 이미지에 대한 표시자를 다르게 제공하는 방법 및 그 전자 장치
US20240179237A1 (en) Screenshot Generating Method, Control Method, and Electronic Device
WO2017142278A1 (en) Apparatus and method for providing dynamic panorama function
US20160037067A1 (en) Method for generating image and electronic device thereof
US10602076B2 (en) Method for combining and providing image, obtained through a camera, electronic device, and storage medium
US11914850B2 (en) User profile picture generation method and electronic device
CN115297200A (zh) 一种具有折叠屏的设备的触控方法与折叠屏设备
WO2020029306A1 (zh) 一种图像拍摄方法及电子设备
WO2021013132A1 (zh) 输入方法及电子设备
CN108427533B (zh) 电子设备及用于确定电子设备的环境的方法
US11968439B2 (en) Electronic device comprising camera and electronic device control method
US20220269800A1 (en) Privacy protection method for electronic device and electronic device
US11470246B2 (en) Intelligent photographing method and system, and related apparatus
US20160286132A1 (en) Electronic device and method for photographing
US20210397752A1 (en) Electronic Device Control Method and Electronic Device
CN113810588B (zh) 一种图像合成方法、终端及存储介质
CN112150499A (zh) 图像处理方法及相关装置
WO2023222128A1 (zh) 一种显示方法和电子设备
WO2023222130A9 (zh) 一种显示方法和电子设备
US20230014272A1 (en) Image processing method and apparatus
EP3328066B1 (en) Electronic device and method for autofocusing
WO2018133202A1 (zh) 闪光灯提示方法和终端设备
US20230280894A1 (en) Control moving method and electronic device

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: 17893164

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: 17893164

Country of ref document: EP

Kind code of ref document: A1