CN114286014A - Image database acquisition method - Google Patents

Image database acquisition method Download PDF

Info

Publication number
CN114286014A
CN114286014A CN202111640347.9A CN202111640347A CN114286014A CN 114286014 A CN114286014 A CN 114286014A CN 202111640347 A CN202111640347 A CN 202111640347A CN 114286014 A CN114286014 A CN 114286014A
Authority
CN
China
Prior art keywords
area
brightness
ambient light
adjusting
face image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111640347.9A
Other languages
Chinese (zh)
Inventor
颜兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Sidaier Network Technology Co ltd
Original Assignee
Nanjing Sidaier Network Technology Co ltd
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 Nanjing Sidaier Network Technology Co ltd filed Critical Nanjing Sidaier Network Technology Co ltd
Priority to CN202111640347.9A priority Critical patent/CN114286014A/en
Publication of CN114286014A publication Critical patent/CN114286014A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)

Abstract

The invention relates to an image database acquisition method, which is used for acquiring a human face image at a mobile terminal with high quality. The method comprises the following steps: the mobile terminal receives a face image acquisition instruction, starts a front camera and detects the brightness of the environment; adjusting the screen brightness of the mobile terminal to enable the ambient light brightness to reach a preset value; acquiring a real-time face image, and determining a face pitch angle and an azimuth angle based on the posture of the face image; judging whether the pitch angle and the azimuth angle are within a preset range, and if not, sending a prompt for adjusting the pitch angle and the azimuth angle; if the color temperature of the ambient light is within the preset range, detecting the color temperature of the ambient light; determining a supplementary lighting color according to the ambient light color temperature, and adjusting the screen light color; and instructing the front camera to collect a face image. The method greatly improves the image quality of face image acquisition and can obtain better user experience.

Description

Image database acquisition method
Technical Field
The invention relates to the technical field of image acquisition, in particular to an image database acquisition method.
Background
The face image acquisition at the mobile terminal is a common technology. In the prior art, when a mobile terminal collects a face image, due to the problem of face shooting angle and light, an image with high quality is difficult to collect. The chinese patent publication No. cn108447159.a discloses a method for adjusting the direction of a camera according to the pitch angle and azimuth angle of a collected face, so that the relative angle between the camera and the face meets the requirement of a preset angle. However, the method does not consider the application situation of the mobile terminal, and does not consider the influence of the human face or the camera moving at different angles on the requirement of the shooting light, so that the human face image with high quality requirement is difficult to acquire.
Disclosure of Invention
The invention provides an image database acquisition method, which is used for acquiring a human face image at a mobile terminal with high quality.
The embodiment of the invention is as follows:
an image database collection method, comprising the steps of: the mobile terminal receives a face image acquisition instruction, starts a front camera and detects the brightness of the environment; adjusting the screen brightness of the mobile terminal to enable the ambient light brightness to reach a preset value; acquiring a real-time face image, and determining a face pitch angle and an azimuth angle based on the posture of the face image; judging whether the pitch angle and the azimuth angle are within a preset range, and if not, sending a prompt for adjusting the pitch angle and the azimuth angle; if the color temperature of the ambient light is within the preset range, detecting the color temperature of the ambient light; determining a supplementary lighting color according to the ambient light color temperature, and adjusting the screen light color; and instructing the front camera to collect a face image.
Further, the adjusting the screen brightness of the mobile terminal includes: acquiring the current screen brightness; acquiring the brightness of the face image and the brightness of the environment light; adjusting the screen brightness, and monitoring the changes of the human face image and the ambient light brightness; and when the brightness of the face image and the brightness of the environment reach the preset values, stopping adjusting the screen brightness, and taking the screen brightness at the moment as the screen brightness when the face image is collected.
And further, dividing the screen into a display area, a light supplement area and a temperature supplement area, wherein the display area is used for displaying the face image, the light supplement area is used for adjusting the brightness of the environment light, and the temperature supplement area is used for adjusting the color temperature of the environment.
Further, the display area, the light supplement area and the temperature supplement area are equally divided into the screen.
Furthermore, the display area, the light supplement area and the temperature supplement area can adjust the size of each area according to the light supplement intensity and the temperature supplement intensity.
Further, the adjusting the size of each region comprises the following steps: the display area, the light supplement area and the temperature supplement area are equally divided into the screen; adjusting the brightness of the light supplement area, and keeping the area of the current light supplement area if the ambient light brightness reaches a preset value before the light supplement area reaches the maximum brightness; when the light supplement area reaches the maximum brightness, if the ambient light brightness does not reach a preset value, increasing the area of the current light supplement area, and simultaneously reducing the areas of the display area and the temperature supplement area; adjusting the brightness of the temperature compensation area, and keeping the area of the current temperature compensation area if the ambient light temperature reaches a preset value before the temperature compensation area reaches the maximum brightness; and when the temperature compensation area reaches the maximum brightness, if the ambient light temperature does not reach a preset value, increasing the area of the current temperature compensation area, and reducing the area of the display area.
Further, the supplementary lighting area is white light.
Further, the detecting the color temperature of the ambient light includes: analyzing pixels of the face image to determine a color temperature level of each of the pixels; and counting the number of pixels corresponding to each color temperature level, and taking the color temperature level with the most pixels as the color temperature of the ambient light.
Further, the determining a fill-in color according to the ambient light color temperature and adjusting the screen light color include: calculating a supplementary lighting color temperature according to the ambient light color temperature; and determining the supplementary lighting color according to the supplementary lighting color temperature.
Further, before the face image is collected, a gray scale method is adopted for white balance processing.
According to the image database acquisition method provided by the invention, before the image is acquired, the user is prompted to adjust the shooting angle by identifying the pitch angle and the azimuth angle of the face, the ambient light brightness and the color temperature are identified, the brightness and the color temperature of the ambient light are adjusted by adjusting the screen light, and the face image is acquired under the condition that the shooting angle and the light meet the requirements.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flow chart of a method for collecting images in an image database;
fig. 2 is a schematic diagram of screen area division.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
According to an embodiment of the present invention, an image database collection method is provided, and fig. 1 is a flowchart of the image database collection method, including the following steps: the mobile terminal receives a face image acquisition instruction, starts a front camera and detects the brightness of the environment; adjusting the screen brightness of the mobile terminal to enable the ambient light brightness to reach a preset value; acquiring a real-time face image, and determining a face pitch angle and an azimuth angle based on the posture of the face image; judging whether the pitch angle and the azimuth angle are within a preset range, and if not, sending a prompt for adjusting the pitch angle and the azimuth angle; if the color temperature of the ambient light is within the preset range, detecting the color temperature of the ambient light; determining a supplementary lighting color according to the ambient light color temperature, and adjusting the screen light color; and instructing the front camera to collect a face image.
In a preferred embodiment of the present invention, the adjusting the screen brightness of the mobile terminal includes: acquiring the current screen brightness; acquiring the brightness of the face image and the brightness of the environment light; adjusting the screen brightness, and monitoring the changes of the human face image and the ambient light brightness; and when the brightness of the face image and the brightness of the environment reach the preset values, stopping adjusting the screen brightness, and taking the screen brightness at the moment as the screen brightness when the face image is collected.
In a preferred embodiment of the present invention, the screen is divided into a display area, a light supplement area and a temperature supplement area, the display area is used for displaying the face image, the light supplement area is used for adjusting the brightness of the ambient light, and the temperature supplement area is used for adjusting the color temperature of the ambient light.
In a preferred embodiment of the present invention, the display area, the light supplement area, and the temperature supplement area are all divided into the screen.
In a preferred embodiment of the present invention, the display area, the light supplement area, and the temperature supplement area may adjust the size of each area according to the light supplement intensity and the temperature supplement intensity.
In a preferred embodiment of the present invention, the adjusting the sizes of the respective regions, as shown in fig. 2, comprises the following steps: the display area, the light supplement area and the temperature supplement area are equally divided into the screen; adjusting the brightness of the light supplement area, and keeping the area of the current light supplement area if the ambient light brightness reaches a preset value before the light supplement area reaches the maximum brightness; when the light supplement area reaches the maximum brightness, if the ambient light brightness does not reach a preset value, increasing the area of the current light supplement area, and simultaneously reducing the areas of the display area and the temperature supplement area; adjusting the brightness of the temperature compensation area, and keeping the area of the current temperature compensation area if the ambient light temperature reaches a preset value before the temperature compensation area reaches the maximum brightness; and when the temperature compensation area reaches the maximum brightness, if the ambient light temperature does not reach a preset value, increasing the area of the current temperature compensation area, and reducing the area of the display area.
In a preferred embodiment of the present invention, the supplementary light region is white light.
In a preferred embodiment of the present invention, the detecting the color temperature of the ambient light includes: analyzing pixels of the face image to determine a color temperature level of each of the pixels; and counting the number of pixels corresponding to each color temperature level, and taking the color temperature level with the most pixels as the color temperature of the ambient light.
In a preferred embodiment of the present invention, the determining a fill-in color according to the color temperature of the ambient light and adjusting the color of the screen light includes: calculating a supplementary lighting color temperature according to the ambient light color temperature; and determining the supplementary lighting color according to the supplementary lighting color temperature.
In a preferred embodiment of the present invention, before the face image is collected, a gray scale method is further adopted to perform white balance processing.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

1. An image database collection method, comprising the steps of:
the mobile terminal receives a face image acquisition instruction, starts a front camera and detects the brightness of the environment;
adjusting the screen brightness of the mobile terminal to enable the ambient light brightness to reach a preset value;
acquiring a real-time face image, and determining a face pitch angle and an azimuth angle based on the posture of the face image;
judging whether the pitch angle and the azimuth angle are within a preset range, and if not, sending a prompt for adjusting the pitch angle and the azimuth angle; if the color temperature of the ambient light is within the preset range, detecting the color temperature of the ambient light;
determining a supplementary lighting color according to the ambient light color temperature, and adjusting the screen light color;
and instructing the front camera to collect a face image.
2. The image database collection method according to claim 1, wherein said adjusting the screen brightness of the mobile terminal comprises:
acquiring the current screen brightness;
acquiring the brightness of the face image and the brightness of the environment light;
adjusting the screen brightness, and monitoring the changes of the human face image and the ambient light brightness;
and when the brightness of the face image and the brightness of the environment reach the preset values, stopping adjusting the screen brightness, and taking the screen brightness at the moment as the screen brightness when the face image is collected.
3. The image database collection method according to claim 1, wherein the screen is divided into a display area, a supplementary lighting area and a temperature compensation area, the display area is used for displaying the face image, the supplementary lighting area is used for adjusting the ambient light brightness, and the temperature compensation area is used for adjusting the ambient color temperature.
4. A database of images gathering method as claimed in claim 3 wherein the display area, fill area and temperature area are equally divided across the screen.
5. The method of claim 3, wherein the display area, the fill-in area, and the temperature compensation area are adjustable according to fill-in intensity and temperature compensation intensity.
6. The method of image database acquisition of claim 5, wherein said adjusting the size of the respective region comprises the steps of:
the display area, the light supplement area and the temperature supplement area are equally divided into the screen;
adjusting the brightness of the light supplement area, and keeping the area of the current light supplement area if the ambient light brightness reaches a preset value before the light supplement area reaches the maximum brightness; when the light supplement area reaches the maximum brightness, if the ambient light brightness does not reach a preset value, increasing the area of the current light supplement area, and simultaneously reducing the areas of the display area and the temperature supplement area;
adjusting the brightness of the temperature compensation area, and keeping the area of the current temperature compensation area if the ambient light temperature reaches a preset value before the temperature compensation area reaches the maximum brightness; and when the temperature compensation area reaches the maximum brightness, if the ambient light temperature does not reach a preset value, increasing the area of the current temperature compensation area, and reducing the area of the display area.
7. The image database collection method of claim 6, wherein the fill-in area is white light.
8. The image database acquisition method of claim 1, wherein the detecting an ambient light color temperature comprises:
analyzing pixels of the face image to determine a color temperature level of each of the pixels;
and counting the number of pixels corresponding to each color temperature level, and taking the color temperature level with the most pixels as the color temperature of the ambient light.
9. The method of claim 1, wherein determining a fill-in color from the ambient light color temperature and adjusting the screen light color comprises:
calculating a supplementary lighting color temperature according to the ambient light color temperature;
and determining the supplementary lighting color according to the supplementary lighting color temperature.
10. The image database collection method of claim 1, wherein a gray scale process is further applied to perform white balance processing prior to collecting the face image.
CN202111640347.9A 2021-12-29 2021-12-29 Image database acquisition method Pending CN114286014A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111640347.9A CN114286014A (en) 2021-12-29 2021-12-29 Image database acquisition method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111640347.9A CN114286014A (en) 2021-12-29 2021-12-29 Image database acquisition method

Publications (1)

Publication Number Publication Date
CN114286014A true CN114286014A (en) 2022-04-05

Family

ID=80877990

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111640347.9A Pending CN114286014A (en) 2021-12-29 2021-12-29 Image database acquisition method

Country Status (1)

Country Link
CN (1) CN114286014A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114827485A (en) * 2022-04-25 2022-07-29 智道网联科技(北京)有限公司 Light supplementing method and system for vehicle camera
CN115965857A (en) * 2023-01-09 2023-04-14 钧捷智能(深圳)有限公司 Ambient light processing method and DMS system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114827485A (en) * 2022-04-25 2022-07-29 智道网联科技(北京)有限公司 Light supplementing method and system for vehicle camera
CN115965857A (en) * 2023-01-09 2023-04-14 钧捷智能(深圳)有限公司 Ambient light processing method and DMS system
CN115965857B (en) * 2023-01-09 2024-05-10 钧捷智能(深圳)有限公司 Ambient light processing method and DMS system

Similar Documents

Publication Publication Date Title
CN109767467B (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN114286014A (en) Image database acquisition method
CN102724405B (en) Method and device for automatic exposure compensation of backlit scenes in video imaging system
EP1703436A2 (en) Image processing system, image processing apparatus and method, recording medium, and program
CN105791709A (en) Automatic exposure processing method and apparatus with back-light compensation
CN113706495B (en) Machine vision detection system for automatically detecting lithium battery parameters on conveyor belt
CN103810463A (en) Face recognition device and face image detection method
CN108986726B (en) Information terminal
CN107451969A (en) Image processing method, device, mobile terminal and computer-readable recording medium
CN101442679B (en) Automatic white balance control system and method thereof
CN105812790B (en) Method for evaluating verticality between photosensitive surface and optical axis of image sensor and optical test card
CN111261079B (en) Method for detecting abnormal phenomena of bright and dark spots
WO2018219294A1 (en) Information terminal
CN112767392A (en) Image definition determining method, device, equipment and storage medium
US8730352B2 (en) Image processing apparatus and image processing method
CN106971393A (en) The phenotype measuring method and system of a kind of corn kernel
CN105611184A (en) White balance debugging method and debugging system of digital video device
CN108449549B (en) Method and device for adjusting brightness of LED fill light lamp panel and storage medium
CN115620328A (en) Contract stamp position identification system and method based on image identification
CN108805144A (en) Shell hole recognition methods based on morphology correction and system, indication of shots equipment
CN113298764B (en) High-speed camera imaging quality analysis method based on image noise analysis
CN108875625B (en) Identification method and electronic equipment
CN111797694B (en) License plate detection method and device
CN202721740U (en) Automatic exposure compensation device of backlight type scenes in video imaging system
CN103226689B (en) Detect blood-shot eye illness method and device, removal blood-shot eye illness method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication