CN110971814B - Shooting adjustment method and device, electronic equipment and storage medium - Google Patents

Shooting adjustment method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110971814B
CN110971814B CN201811162075.4A CN201811162075A CN110971814B CN 110971814 B CN110971814 B CN 110971814B CN 201811162075 A CN201811162075 A CN 201811162075A CN 110971814 B CN110971814 B CN 110971814B
Authority
CN
China
Prior art keywords
area
shooting
focusing
face
list
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.)
Active
Application number
CN201811162075.4A
Other languages
Chinese (zh)
Other versions
CN110971814A (en
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.)
Beijing Microlive Vision Technology Co Ltd
Original Assignee
Beijing Microlive Vision 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 Beijing Microlive Vision Technology Co Ltd filed Critical Beijing Microlive Vision Technology Co Ltd
Priority to CN201811162075.4A priority Critical patent/CN110971814B/en
Publication of CN110971814A publication Critical patent/CN110971814A/en
Application granted granted Critical
Publication of CN110971814B publication Critical patent/CN110971814B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • 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
    • H04N23/67Focus control based on electronic image sensor signals
    • 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/71Circuitry for evaluating the brightness variation

Abstract

The disclosure discloses a shooting adjustment method, a shooting adjustment device, electronic equipment and a storage medium. The method comprises the following steps: identifying a face area in the shooting area; determining a compensation area corresponding to the face area according to the proportion of the face area to the shooting area; focusing is carried out on each area according to the weight coefficient of each area in the focusing area list, the brightness of each area is adjusted according to the weight coefficient of each area in the light metering area list, so that the shooting area is shot, and the focusing area list and the light metering area list respectively comprise a human face area and a compensation area. The embodiment of the disclosure realizes accurate focusing of the focusing area and accurate control of brightness adjustment of the shooting area, thereby ensuring definition and brightness of the face area, improving the overall visual effect of the shooting area and improving the use experience of users.

Description

Shooting adjustment method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to communication technologies, and in particular, to a shooting adjustment method and apparatus, an electronic device, and a storage medium.
Background
With the continuous development of electronic devices, functions integrated in the electronic devices are more and more diversified. Among them, the photographing function of the electronic device is favored by more and more people.
At present, when an electronic device is used to take an image or a video, a camera of the electronic device generally focuses a shooting area automatically. When a photographer manually focuses on a certain area in the shooting area, the camera can automatically adjust the focal length to adjust the image definition of the corresponding area, but the brightness adjustment of the shooting area cannot be guaranteed, so that the corresponding image in the shooting area is too bright or too dark, and the use experience of the user is influenced.
Disclosure of Invention
The embodiment of the disclosure provides a shooting adjustment method, a shooting adjustment device, electronic equipment and a storage medium, so that accurate focusing of a focusing area and accurate control of brightness adjustment of a shooting area are realized, the definition and brightness of a face area are guaranteed, the overall visual effect of the shooting area is improved, and the use experience of a user is improved.
In a first aspect, an embodiment of the present disclosure provides a shooting adjustment method, where the method includes:
identifying a face area in the shooting area;
determining a compensation area corresponding to the face area according to the proportion of the face area to the shooting area;
focusing each area according to the weight coefficient of each area in a focusing area list, and adjusting the brightness of each area according to the weight coefficient of each area in a light metering area list so as to shoot the shooting area, wherein the focusing area list and the light metering area list respectively comprise the human face area and the compensation area.
Further, the determining a compensation region corresponding to the face region according to the specific gravity of the face region and the shooting region includes:
determining a portrait mode according to the proportion and the position of the face area in the shooting area, wherein the proportion of the face area to the shooting area comprises the proportion and the position of the face area in the shooting area;
and determining a corresponding compensation area according to the portrait mode.
Further, the focusing the regions according to the weighting coefficients of the regions in the focusing region list and adjusting the brightness of the regions according to the weighting system of the regions in the metering region list includes:
acquiring the click operation of a user on a shooting area;
updating a focusing area list and a light metering area list according to the click area;
focusing each area according to the weight coefficient of each area in the updated focusing area list, and adjusting the brightness of each area according to the weight system of each area in the updated light metering area list.
Further, the updating the focusing area list and the metering area list according to the clicked area includes:
clearing the focusing area list, and adding the clicked area into the cleared focusing area list to obtain an updated focusing area list;
if the click area is overlapped with an area in the light metering area list, keeping the light metering area unchanged, and taking the light metering area list as an updated light metering area list; and if the click area is not coincident with the area in the light metering area list, adding the click area into the light metering area list, and removing the area with the lowest weight coefficient in the light metering area list to obtain an updated light metering area list.
Further, the weight coefficient of the face region is greater than the weight coefficient of the compensation region.
Further, the number of the light measuring points and the number of the focusing points are determined according to the performance of the shooting equipment.
In a second aspect, an embodiment of the present disclosure further provides a shooting adjustment apparatus, including:
the recognition module is used for recognizing a face area in the shooting area;
the determining module is used for determining a compensation area corresponding to the face area according to the proportion of the face area to the shooting area;
and the shooting module is used for focusing each area according to the weight coefficient of each area in the focusing area list and adjusting the brightness of each area according to the weight coefficient of each area in the light metering area list so as to shoot the shooting area, wherein the focusing area list and the light metering area list respectively comprise the human face area and the compensation area.
Further, the determining module includes:
determining a portrait mode according to the proportion and the position of the face area in the shooting area, wherein the proportion of the face area to the shooting area comprises the proportion and the position of the face area in the shooting area;
and determining a corresponding compensation area according to the portrait mode.
Further, the shooting module includes:
the acquisition unit is used for acquiring the click operation of a user on the shooting area;
the updating unit is used for updating the focusing area list and the light metering area list according to the click area;
and the focusing adjusting unit is used for focusing each area according to the weight coefficient of each area in the updated focusing area list and adjusting the brightness of each area according to the weight system of each area in the updated light metering area list.
Further, the update unit includes:
the generating subunit is used for clearing the focusing area list, adding the clicked area into the cleared focusing area list, and obtaining an updated focusing area list;
a judgment operation subunit, configured to keep the light metering region unchanged if the clicked region coincides with a region in the light metering region list, where the light metering region list is used as an updated light metering region list; and if the click area is not coincident with the area in the light metering area list, adding the click area into the light metering area list, and removing the area with the lowest weight coefficient in the light metering area list to obtain an updated light metering area list.
Further, the weight coefficient of the face region is greater than the weight coefficient of the compensation region.
Further, the number of the light measuring points and the number of the focusing points are determined according to the performance of the shooting equipment.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, where the electronic device includes:
one or more processing devices;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processing apparatuses, the one or more processing apparatuses are caused to implement the shooting adjustment method according to the first aspect.
In a fourth aspect, the disclosed embodiments also provide a computer-readable storage medium, on which a computer program is stored, which when executed by a processing apparatus, implements the shooting adjustment method according to the first aspect.
According to the embodiment of the invention, the face area in the shooting area is identified, the compensation area corresponding to the face area is determined according to the proportion of the face area to the shooting area, each area is focused according to the weight coefficient of each area in the focusing area list, and the brightness of each area is adjusted according to the weight coefficient of each area in the light metering area list, so that the shooting area is shot, the focusing area is accurately focused, and the brightness adjustment of the shooting area is accurately controlled, so that the definition and the brightness of the face area are ensured, the overall visual effect of the shooting area is improved, and the use experience of a user is improved.
Drawings
Fig. 1 is a flowchart of a shooting adjustment method provided in an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a display of a shooting area provided by an embodiment of the present disclosure;
fig. 3 is a schematic diagram of a display of another shooting area provided by the embodiment of the present disclosure;
fig. 4 is a schematic display diagram of another shooting area provided by the embodiment of the present disclosure;
FIG. 5 is a schematic diagram illustrating a display of a capture area in a sticker portrait mode according to an embodiment of the present disclosure;
fig. 6 is a schematic diagram illustrating a display of a shooting area in a half-length portrait mode according to an embodiment of the present disclosure;
fig. 7 is a schematic diagram illustrating a display of a shooting area in a full-body portrait mode according to an embodiment of the present disclosure;
fig. 8 is a schematic diagram illustrating a shooting area display in another half-length portrait mode according to an embodiment of the present disclosure;
fig. 9 is a display schematic diagram of an electronic device in a portrait mode according to an embodiment of the present disclosure;
fig. 10 is a flowchart of another shooting adjustment method provided in the embodiment of the present disclosure;
fig. 11 is a schematic diagram illustrating a division display of a shooting area according to an embodiment of the present disclosure;
fig. 12 is a schematic diagram illustrating a division display of another shooting area provided by the embodiment of the present disclosure;
FIG. 13 is a schematic illustration of a display of a focus point and a spot measurement point provided by an embodiment of the present disclosure;
FIG. 14 is a schematic illustration of another display of a focus point and a spot measurement point provided by an embodiment of the present disclosure;
fig. 15 is a flowchart of a shooting adjustment method provided by an embodiment of the present disclosure;
FIG. 16 is a schematic diagram illustrating a display of a click region provided by an embodiment of the present disclosure;
FIG. 17 is a schematic illustration of a display of another click region provided by embodiments of the present disclosure;
fig. 18 is a block diagram illustrating a structure of a photographing adjusting apparatus according to an embodiment of the present disclosure;
fig. 19 is a block diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
In the following embodiments, optional features and examples are provided in each embodiment, and various features described in the embodiments may be combined to form a plurality of alternatives, and each numbered embodiment should not be regarded as only one technical solution. The present disclosure is described in further detail below with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the disclosure and are not limiting of the disclosure. It should be further noted that, for the convenience of description, only some of the structures relevant to the present disclosure are shown in the drawings, not all of them.
Examples
Fig. 1 is a flowchart of a shooting adjustment method provided in an embodiment of the present disclosure, where the present embodiment is applicable to a case where when a user manually focuses a shooting area, sharpness and brightness of an image corresponding to a face area are guaranteed, the method may be executed by a shooting adjustment apparatus, the apparatus may be implemented in a software and/or hardware manner, the apparatus may be configured in an electronic device, and the electronic device may be configured by two or more physical entities or may be configured by one physical entity. Generally, the electronic device needs to be equipped with a camera to have a shooting function, and the electronic device may be a smart phone, a tablet, a camera, or the like. Referring to fig. 1, the method specifically includes the following steps:
and step 110, identifying a face area in the shooting area.
The shooting area is a viewing area corresponding to a lens in the camera, and specifically can be understood as an area where a user shoots the lens toward a range of a target object after the camera lens integrated in the electronic device is started. In the embodiment, the shooting area needs to have a face area, and the face features in the shooting area are identified through a face identification technology to determine the face area in the shooting area.
The face recognition technology is used for recognizing and determining a face area in a shooting area based on face features of people. Specifically, the face recognition technology includes three parts, namely face detection, face tracking and face comparison, and in the embodiment, the face detection technology is mainly adopted to recognize the face features in the shooting area so as to detect the face area in the shooting area. In practice, face detection is mainly used for preprocessing of face recognition, namely, the position and size of a face are accurately calibrated in an image. The face image contains abundant pattern features, such as histogram features, color features, template features, structural features, Haar features, and the like. The face detection is to extract the useful information and to use the features to realize the face detection. In general, the face detection method may include a reference template method, a face rule method, a sample learning method, and a feature sub-face method. In the embodiment, the face features are identified through a face detection method to determine a face area in the shooting area.
Of course, one shooting area may only include one face area, or may include a plurality of face areas, which is not limited herein and may be set according to actual situations. Exemplarily, assuming that a user needs to shoot a couple of couples, when the face recognition technology is used for face recognition of the shooting area, two different face features are recognized, so that it can be determined that the shooting area contains two faces, and it can be further determined that the shooting area contains two face areas. It should be noted that each face area can only correspond to one face, so that the level of the corresponding level of the face areas is determined according to different proportions and positions of the face areas in the whole shooting area. Exemplarily, fig. 2 is a display schematic diagram of a shooting area provided by an embodiment of the present disclosure. As shown in fig. 2, the shooting area includes a plurality of face areas, and when it is assumed that three users A, B and C are photographed in group, user a stands at a middle position, and user B and user C stand at two sides of user a, when the face areas in the shooting area are identified and determined, three users A, B and C respectively correspond to one face area, and the levels of the three face areas are determined according to different positions of the three face areas in the shooting area, optionally, the face area corresponding to user a is at the middle position of the shooting area, the level of the face area corresponding to user a is the highest, and the face area corresponding to user C or user B is at two sides of the shooting area, and the level of the face area corresponding to user C and user B is lower than the level of the face area corresponding to user a.
Of course, in the embodiment, the levels of the plurality of face regions may be determined according to the positions of the face regions in the shooting region, but in different situations, the levels of the plurality of face regions may be determined according to different classifications, which is not limited. For example, the level of the plurality of face regions may be determined according to the proportion of the face regions. Exemplarily, fig. 3 is a schematic display diagram of another shooting area provided by the embodiment of the present disclosure. As shown in fig. 3, the shooting area includes two face areas, for example, one of the shooting areas is a face area of a baby, and the other is a face area of an adult. When a baby is shot on a memorial day, the baby needs to be held by one side, held by another, and the like, the proportion of the face area where the baby is located in the whole shooting area is larger than that of the face area corresponding to the adult in the whole shooting area, the face area corresponding to the baby has the higher proportion in the whole shooting area, the level of the face area corresponding to the baby is the highest at the moment, and the level of the face area corresponding to the adult accompanying the baby on one side is lower than that of the face area corresponding to the baby.
It should be noted that, for convenience of describing the shooting method, in the embodiment, the shooting method is specifically described by taking an example in which the shooting area only includes one face area, that is, only one face is included in the shooting area. Fig. 4 is a schematic display diagram of another shooting area provided by the embodiment of the present disclosure. As shown in fig. 4, only one face area is included in the shooting area. Specifically, a face recognition technique is used to detect all face features in the shot area, and the position and size of each face and the position information of each main facial organ are detected to determine the face area as shown in fig. 4.
And step 120, determining a compensation area corresponding to the face area according to the proportion of the face area to the shooting area.
The proportion of the face area to the shooting area can be understood as the proportion and the position of the face area in the shooting area. Specifically, after a camera integrated in the electronic device is started, a shooting area can be shot through the camera, but before the shooting area is shot, a preview picture corresponding to the shooting area is displayed in a display screen integrated in the camera, and after the preview picture is obtained by the camera, the preview picture can be divided into a plurality of areas through an image division and image decomposition technology according to a preset rule. The image segmentation technology mainly adopts a preset image segmentation algorithm to segment preview images into regions which are not overlapped and have respective characteristics. In an embodiment, the shooting area can be divided into a plurality of areas according to the proportion and the position of the face area in the shooting area, and a compensation area corresponding to the face area is determined.
It should be noted that the position of the compensation region may be determined according to the specific gravity between the face region and the shooting region, that is, when the face region is in different portrait modes in the shooting region, the positions of the corresponding compensation regions are also different. The portrait mode refers to different proportions of the face area in the shooting area, and may include a sticker portrait mode, a half-body portrait mode and a whole-body portrait mode. Specifically, the photo mode of the photo sticker is that the proportion of the face area in the shooting area is very large and is as high as more than 80%; the half-body portrait mode is that the face area and the corresponding upper half-body area are both in the shooting area; and the whole-body portrait mode is that the human face area and the corresponding whole-body area are both in the shooting area. Exemplarily, fig. 5 is a schematic diagram illustrating a display of a shooting area in a sticker portrait mode according to an embodiment of the present disclosure. As shown in fig. 5, only the face region is located in the shooting region, and the upper body region and the whole body region corresponding to the face region are not located. Because the proportion of the face area in the shooting area reaches more than 80 percent and the face area is positioned in the center of the shooting area, two compensation areas can be directly determined according to the face area, namely, the brightness compensation of the face area can be achieved, namely, the compensation areas corresponding to the face are determined to be an area A and an area B, and the positions of the area A and the area B serving as the compensation areas are respectively positioned at the upper left side and the upper right side of the face area, so that the color difference between the face area and the compensation areas is reduced, and the brightness of the whole face area is more balanced.
For another example, fig. 6 is a schematic diagram illustrating a display of a shooting area in a half-length portrait mode according to an embodiment of the present disclosure. As shown in fig. 6, in addition to the face region, the shooting region further includes an upper body region corresponding to the face region, and the face region is located at the center of the shooting region, so that the brightness of the chin portion of the face region is also compensated, and the brightness of the entire face region is balanced, the brightness compensation of the upper body region corresponding to the face region needs to be considered when determining the compensation region, and in the half-body portrait mode, the compensation regions corresponding to the face region may be three, which are respectively a region a, a region B, and a region C, and the positions of the region a, the region B, and the region C serving as the compensation regions are respectively located at the upper left side, the upper right side, and the lower side of the face region, so that the color difference between the face region and the compensation regions is reduced, and the brightness of the entire face region is more balanced.
For another example, fig. 7 is a schematic diagram illustrating a display of a shooting area in a full-body portrait mode according to an embodiment of the present disclosure. As shown in fig. 7, in addition to the face region, the photographing region includes both an upper body region corresponding to the face region and a lower body region corresponding to the face region, and the face region is located at the midpoint of the photographing region, in order to compensate the brightness of the body region corresponding to the face region and balance the brightness of the whole body corresponding to the face region, the brightness compensation of the body region corresponding to the face region needs to be considered when determining the compensation region, in the whole body portrait mode, the compensation regions corresponding to the face region may be four, which are a region a, a region B, a region C, and a region D, and the positions of the region a, the region B, the region C, and the region D as the compensation regions are located at the upper left side, the upper right side, the lower left side, and the lower right side of the face region, respectively, so as to reduce the color difference between the face region and the compensation regions, the brightness of the whole face area is more balanced.
It should be noted that the compensation regions shown in fig. 5, 6, and 7 are only exemplary of the positions of the compensation regions corresponding to the face regions, and the proportional sizes of the compensation regions are not limited. In the embodiment, the face area is exemplarily located at the center of the shooting area, and the determination of the compensation area in different portrait modes is described, for example, in the manner of determining the compensation area in fig. 5, 6 and 7. Of course, in the actual shooting process, there may be a position of the face region on the right side or the left side of the shooting region, and an upper side or a lower side of the shooting region, and when the face region is at different positions of the shooting region, the position of the corresponding compensation region may be adjusted accordingly. For example, fig. 8 is a schematic diagram illustrating a display of a shooting area in another half-body portrait mode according to an embodiment of the present disclosure, as shown in fig. 8, a face area is located at a right side of the shooting area, and a ratio of the face area to the shooting area is about 30%. Of course, in the sticker portrait mode and the whole-body portrait mode, the face area may be located at different positions of the shooting area.
It should be noted that the position relationship between the compensation area and the face area may be set in advance by the electronic device and stored in the memory of the electronic device. For example, in the photo sticker portrait mode, the face mode is located in the center of the shooting area, and the number of the compensation areas is 2, the compensation areas should be located on the upper left side and the upper right side of the face area; and the number of the compensation regions can be 3, and the positions of the compensation regions can be positioned at the upper left side, the upper right side and the right lower side of the human face region.
And step 130, focusing each area according to the weight coefficient of each area in the focusing area list, and adjusting the brightness of each area according to the weight coefficient of each area in the light metering area list so as to shoot the shooting area.
The focusing area list and the light measuring area list respectively comprise a human face area and a compensation area. Specifically, the focusing area list is a list including all focusing areas in the shooting area, and the focusing area list may include one focusing area or a plurality of focusing areas, where the number of focusing areas included is related to the working mode of the camera in the shooting device. Specifically, when a camera in the shooting device is in an automatic mode, a focusing area list generally comprises a plurality of focusing areas, namely a face area is a focusing area, and a plurality of compensation areas respectively correspond to one focusing area; when a camera in the shooting device is in a manual mode, a focusing area list generally includes a focusing area, that is, an area clicked by a user in the shooting area is the focusing area. The shooting device in the embodiment is a device having a shooting function in an electronic device. It should be noted here that the automatic mode is a mode in which the user does not have any click operation on the display screen of the shooting device, that is, the camera automatically performs photometry and focusing on the face area and the compensation area; the manual mode is a mode in which a user clicks a certain area of a screen on a display screen of the photographing apparatus to perform an operation, that is, the camera focuses on the area clicked by the user. For example, when the camera is in the automatic mode, it is assumed that the shooting area only includes one face area, and the focusing area list includes four focusing areas, one of the focusing areas is the face area, and the other three focusing areas are three different compensation areas respectively.
In an embodiment, the light metering area list is a list containing all light metering areas in the shooting area, and the number of light metering areas contained in the light metering area list is related to the performance of the shooting device. Specifically, the number of light metering points supported by the shooting device is the number of light metering areas included in the light metering area list. By way of example and not limitation, when the photographing apparatus supports five light metering points, then the list of light metering regions may contain five light metering regions; similarly, when the photographing apparatus supports only three photometric points, three photometric point areas may be included in the photometric area list. It should be noted here that when the camera is in the automatic mode, the numbers of the focusing points and the photometric points in the shooting area are the same, and the positions are also the same, both being the center positions in the corresponding areas. The weight coefficient can be understood as different importance degrees of the face region and the compensation region. In general, a larger weight coefficient indicates a higher degree of importance of the region. Preferably, the weight coefficient of the face region is greater than the weight coefficient of the compensation region. In the embodiment, the weighting factor of the face region is the largest, that is, the face region has the highest importance degree in all regions of the whole shooting region. For example, assuming that the weight coefficient ranges from 0 to 1000, the weight coefficient of the face region may be set to 800; and the weight coefficient of the compensation region may be set to 400. It should be noted that the shooting region at least includes two compensation regions, wherein the weight coefficients of the two compensation regions may be the same or different, and the size of the weight coefficient of the compensation region is related to the corresponding region position. For example, as shown in fig. 8, in the two compensation regions a and B, since the region a is located directly above the face region and the region B is located directly below the face region, the weighting factor of the region a is greater than that of the region B.
Of course, the weighting coefficients of the respective regions may also be represented by the priorities of the face region and the compensation region. For example, five levels can be set, which are a first level, a second level, a third level, a fourth level and a fifth level, and each level corresponds to a weight coefficient, wherein the priority degree corresponding to each level is sequentially reduced, that is, the priority corresponding to the first level is the highest, and the priority corresponding to the fifth level is the lowest. Likewise, the first level corresponds to the largest weighting factor, while the fifth level corresponds to the smallest weighting factor. Of course, the above description is only exemplary to illustrate the range of the weighting factor and the priority level, and the present invention is not limited thereto.
In an embodiment, each face area and/or compensation area in the focusing area list is also assigned with an focusing point, before the electronic device adjusts the focal length of the camera, the focusing points in the focusing area list and the weights of the focusing points are comprehensively considered, and the optimal focal length of the camera is set, wherein the larger the weight coefficient of the focusing point corresponding to each area is, the smaller the aperture of the corresponding camera when the camera takes pictures of the area is, and the higher the definition of the obtained image is. That is, in general, the closer the camera is to the imaging area, the higher the sharpness of the image obtained by imaging. It should be noted that, when the camera is in the manual mode, that is, when the user performs a click operation on a picture corresponding to the shooting area on the display screen of the shooting device, a focal length of the camera needs to be set according to a focus point corresponding to the click area in the focusing area list, and the shooting area needs to be focused according to the focal length.
Of course, when the camera is in the automatic mode, one light measuring point is allocated in each face area and/or compensation area in the light measuring area list, and the light brightness value corresponding to each light measuring point is different. In an embodiment, the magnitude of the light brightness value corresponding to the photometric point is related to the magnitude of the weight coefficient corresponding to each region, and the two are in a direct relationship. In other words, when the weighting factor is larger, the light brightness value of the corresponding light measuring point is larger, so that the brightness for compensating the area is higher.
Specifically, after the face area and/or the compensation area contained in the focusing area list and the face area and/or the compensation area contained in the light metering area list are determined, the optimal focal length of the camera is set according to each focusing point corresponding to each area in the focusing area list and the weight coefficient of the focusing point, the light brightness value of the light measuring point corresponding to each area is determined according to the weight coefficient corresponding to each area in the light metering area list, and the face area and the compensation area are focused and shot so that the definition and brightness of the face area and the compensation area can be adjusted. The electronic equipment is integrated with a photosensitive sensor to perceptively determine the ambient brightness of the shooting area. Meanwhile, the current definition and the current brightness value of each area in the shooting area also need to be determined, and the definition and the brightness of the face area and the compensation area are adjusted according to the current definition and the current brightness value of each area and the corresponding environment brightness, so that the definition and the brightness of the face area are ensured, the definition difference and the brightness difference between the areas in the whole shooting area are reduced, and the definition and the brightness of the whole shooting area are balanced.
The method for adjusting the brightness of the image may include: exposure, sensitivity and brightness compensation. In an embodiment, the exposure and the sensitivity may be adjusted to adjust the brightness of the face region and the compensation region. The exposure and the sensitivity are adjusted according to parameters of a camera of the electronic device. The exposure value is a group of numerical expression of aperture value and shutter speed value which are matched and combined according to certain standard requirements, and represents a numerical value of the light transmission capability of the lens of the camera. In general, the greater the exposure value in the corresponding camera, whereas the smaller the exposure, the smaller the exposure value in the corresponding camera. It should be noted that the exposure value can be calibrated by the exposure amount, and the two are in a direct proportion relationship, that is, the larger the exposure value is, the higher the requirement for the exposure amount is; conversely, the smaller the exposure value, the less exposure is required. The sensitivity is a light sensing speed of a light sensing element in a camera, and the intensity of the light sensing capability can be expressed by an iso (sensor sensitivity) value in general. In general, the higher the ISO value, the stronger the light-sensitive capability of the light-sensitive element; conversely, a lower ISO value indicates a weaker light-sensitive capability of the light-sensitive element. Similarly, when the ambient light of the shooting area is dark, the sensitivity of the camera needs to be increased; on the contrary, when the ambient light is strong, the sensitivity of the camera needs to be properly reduced. Among the commonly used ISO values are 50, 100, 200, 400, 1000, etc. For example, when daylight is used, the sensitivity of the camera may be set to 100; in the night mode, the sensitivity of the camera needs to be set to at least 400.
The factors affecting the image definition may include: setting parameters of the camera, photographing environment, photographing distance and the like. Wherein, the setting parameter of camera can include: focal length, focus value, white balance, flash, exposure compensation, etc.; the photographing environment may include: strong and weak light, fog, rainy days, shadows and other factors; the shooting distance is specifically as follows: the closer the shooting area is to the lens of the camera, the clearer the shot image is; conversely, the more blurred the image it captures. In an embodiment, the sharpness of the face region and the compensation region may be adjusted by adjusting the focal length of a lens in the camera. The adjustment of the focal length is to adaptively modify the setting parameters of the camera in the electronic device. The distance between the lens in the camera and the shooting area corresponds to the focal length of the camera one by one, and generally, the larger the focal length is, the farther the lens in the camera is from the shooting area is; conversely, a smaller focal length indicates that the lens in the camera is closer to the shooting area.
It should be noted that the magnitudes of the weighting coefficients of the face region and the compensation region are also stored in the memory of the electronic device in advance. Specifically, after the corresponding compensation area in the face area is determined, the light measuring point and the focusing point are distributed to the face area and the corresponding compensation area, the weight coefficient corresponding to each area is called from a memory of the electronic device, the light brightness value of the light measuring point corresponding to each area is determined according to the weight coefficient corresponding to each area, a proper exposure amount is provided for the camera, the weight coefficient of the focusing point corresponding to each area is comprehensively considered, a proper focal distance is provided for the camera, and therefore the shooting area is shot, and the overall brightness and the definition of the whole shooting area are balanced.
Illustratively, when the electronic device is used for shooting a shooting area, a display screen of the electronic device is in a vertical screen mode.
Fig. 9 is a display schematic diagram of an electronic device in a vertical screen mode according to an embodiment of the present disclosure, and as shown in fig. 9, a camera with a shooting function is located above the electronic device, and when a display screen performs shooting in a horizontal screen mode, the camera with the shooting function is located on two sides of the electronic device.
According to the technical scheme, the face area in the shooting area is identified, the compensation area corresponding to the face area is determined according to the proportion of the face area to the shooting area, focusing is performed on each area according to the weight coefficients of the face area and the compensation area, the brightness of each area is adjusted according to the weight coefficients of each area in the light metering area list, so that the shooting area is shot, accurate focusing on the focusing area is achieved, and accurate control is performed on brightness adjustment of the shooting area, the definition and the brightness of the face area are guaranteed, the overall visual effect of the shooting area is improved, and the use experience of a user is improved.
Fig. 10 is a flowchart of another shooting adjustment method provided in the embodiment of the present disclosure. The present embodiment further embodies the shooting adjustment method on the basis of the above-described embodiment. Referring to fig. 10, the shooting adjustment method in this embodiment specifically includes the following steps:
and step 210, identifying a face area in the shooting area.
And step 220, determining a portrait mode according to the proportion and the position of the face area in the shooting area.
The proportion of the face area to the shooting area comprises the proportion and the position of the face area in the shooting area. Specifically, when the face area occupies a different proportion and position in the shooting area, the corresponding portrait mode is also different. Specifically, the manner of classifying the portrait mode may refer to the specific description of the portrait mode in the above embodiments, and is not described herein again.
Step 230, determining a corresponding compensation area according to the portrait mode.
In the embodiment, the positions of the compensation regions corresponding to different portrait modes are also different, and the relationship between the two may refer to the detailed description of the portrait mode and the compensation region in the above embodiment, which is not described herein again.
Specifically, when a lens in the electronic device is aligned with a shooting area, the electronic device automatically acquires a picture corresponding to the shooting area (which may be understood as a preview picture corresponding to the shooting area), identifies face features in the picture through a face recognition technology to determine a corresponding face area, then segments the picture by using an image segmentation technology to obtain a plurality of different areas, and determines a position of a compensation area according to a position of the face area in the picture. It should be noted that the total area obtained after the division may cover the corresponding frame of the whole shooting area, and the areas should not overlap each other. Of course, the sum of the face area and the compensation area obtained after the division may not cover the picture corresponding to the entire shooting area, and this is not limited. Exemplarily, fig. 11 is a schematic diagram of a division display of a shooting area provided by an embodiment of the present disclosure. As shown in fig. 11, when a camera of the electronic device acquires a picture corresponding to the shooting area 300, the electronic device determines three compensation areas corresponding to the face area 301 according to the proportional size and the position of the face area 301 in the shooting area 300, wherein the three compensation areas are respectively an area 302, an area 303 and an area 304, so as to divide the whole shooting area 300 into four areas, and the areas are not overlapped with each other, and the face area 301 and the three compensation areas constitute the whole shooting area 300. As another example, fig. 12 is a schematic diagram illustrating a division display of another shooting area according to an embodiment of the present disclosure. As shown in fig. 12, when a camera of the electronic device acquires a picture corresponding to a shooting area 400, the electronic device determines three compensation areas corresponding to the face area 401 according to the proportional size and the position of the face area 401 in the shooting area 400, wherein the three compensation areas are an area 402, an area 403 and an area 404, respectively, so as to divide the whole shooting area 400 into four areas, but the sum of the four areas does not cover the whole shooting area 400. Of course, in the actual operation process, when the image corresponding to the shooting area is divided, the divided lines are not used for displaying each area in a divided manner in the image, and in the embodiment, each different area is divided and displayed by the broken lines, so that the user can more intuitively know the divided display of the shooting area.
And step 240, focusing each area according to the weight coefficient of each area in the focusing area list, and adjusting the brightness of each area according to the weight coefficient of each area in the light metering area list so as to shoot the shooting area.
The focusing area list and the light metering area list respectively comprise the human face area and the compensation area. It should be noted here that when the camera in the shooting device is in the automatic mode, the focusing point in each area in the focusing area list is located at the center of the area; meanwhile, the light measuring point in each area in the light measuring area list is also located at the center of the corresponding area, and the positions of the focusing point and the light measuring point in each area are the same. Specifically, when the shooting device acquires a picture corresponding to a shooting area, the position of the compensation area is determined according to the proportion and the position of the face area in the shooting area, and the focusing point and the light measuring point are distributed to the face area and each compensation area. The focusing point and the photometric point in each area are both located at the center of the corresponding area and are displayed on the screen in a certain form so as to prompt a user of the positions of the focusing point and the photometric point. For example, the positions of the focus and the photometric points may be displayed on the screen in the form of a circular virtual frame, a rectangular virtual frame, a blinking light spot, or the like. Fig. 13 is a schematic illustration of a display of a focus point and a light measuring point according to an embodiment of the disclosure. Fig. 13 is a diagram illustrating the determination of the corresponding positions of the focusing point and the photometric point for each area in the shooting area based on fig. 11, and it should be noted here that, because the focusing point and the photometric point are described in the automatic mode of the camera, and the focusing point and the photometric point are at the same position in the automatic mode, the focusing point is represented in the form of a rectangular dotted frame, and the photometric point is represented in the form of a circular dotted frame. As shown in fig. 13, the photographing region 300 is divided into a face region 301, a compensation region 302, a compensation region 303, and a compensation region 304, and after the positions of the respective regions are determined, the electronic apparatus automatically allocates focusing and metering points to the respective regions and displays them on a display screen of the electronic apparatus, for example, the face region 301 corresponds to a focusing and metering point 3011, the compensation region 302, the compensation region 303, and the compensation region 304 correspond to a focusing and metering point 3021, a focusing and metering point 3031, and a focusing and metering point 3041, respectively. Since the focusing point and the photometric point corresponding to each region are both located at the center of the corresponding region, the center position thereof can be calculated by a mathematical method for calculating the center position of the region in the prior art, and will not be described in detail herein. It should be noted that different focusing points and light measuring points corresponding to different areas in the whole shooting area 300 are denoted by different reference numerals, so as to represent that one focusing point and one light measuring point correspond to different face areas/compensation areas in the shooting area. As another example, fig. 14 is a schematic diagram of another display of a focus point and a light measuring point provided in the embodiment of the present disclosure. Fig. 14 is a view showing the positions corresponding to the focusing point and the photometric point in each of the imaging regions determined in addition to fig. 12. As shown in fig. 14, the face region 401 corresponds to both an autofocus point and a photometric point 4011, and the compensation region 402, the compensation region 403, and the compensation region 404 correspond to an autofocus point and a photometric point 4021, an autofocus point and a photometric point 4031, and an autofocus point and a photometric point 4041, respectively. The manner and position of acquiring the focus and the light measuring point are the same as those described in fig. 13, and are not described herein again.
In an embodiment, when the camera is in the automatic mode, the number of focusing points and metering points is determined according to the performance of the photographing apparatus. Specifically, when the photographing function of the electronic device is started, the electronic device automatically detects the maximum focusing point number and the maximum photometric point number supported by the electronic device, and determines the focusing point number and the photometric point number required by the photographing area according to the maximum focusing point number, the maximum photometric point number and the proportion and position of the face area in the photographing area. Generally, the sum of the number of compensation areas and the number of face areas is the number of focusing points/light measuring points. Of course, the number of focusing points required in the shooting area may also be smaller than the maximum number of focusing points supported by the electronic apparatus, and the number of photometric points required in the shooting area may also be smaller than the maximum number of photometric points supported by the electronic apparatus. The relationship between the maximum number of photometric points and the number of photometric points required in the shooting area will be described with photometric points. By way of example and not limitation, the maximum number of photometric points supported by the electronic device is 5, but if the face detection is performed on the shooting area to determine that the face mode is the sticker face mode and the face area is at the midpoint position of the shooting area, the compensation area corresponding to the face area is 2, that is, the number of photometric points required for the shooting area is 3. It should be noted here that the number of face regions included in a shooting region is generally 1, and the number of photometry points required in each shooting region is at least 3. Of course, in the automatic mode, the relationship between the maximum number of focusing points and the number of focusing points required in the shooting area, such as the same spot measurement, is not described herein again.
In the embodiment, after the compensation region corresponding to the face region is determined, the current definition and the current brightness value corresponding to each compensation region are obtained, and the weight coefficient corresponding to each compensation region is determined according to the current definition, the current brightness value and the position of the compensation region of each compensation region, so as to reduce the definition difference and the brightness difference between each compensation region near the face region and the face region. Specifically, after the compensation area is determined, the electronic device automatically distributes a focusing point and a photometric point to the central position of each area, and determines the focal length and the exposure amount corresponding to each area according to the weight coefficient, the current definition and the current brightness value of each area, so that when the camera shoots different areas, the focal length and the exposure amount corresponding to the camera are automatically adjusted, the focal length corresponding to the focusing point and the light brightness value corresponding to the photometric point in each area are adjusted, the definition difference and the brightness difference between the compensation area and the face area are reduced, the definition and the brightness of the face area are ensured, and the overall visual effect of the shooting area is improved. Wherein, photometry is the light brightness degree when survey is shot to provide suitable exposure for the camera. Wherein the exposure amount is reflected as a combination of a set of aperture and shutter. Generally, the same exposure can be obtained with a faster shutter speed without changing the aperture; conversely, a smaller aperture can be used with the shutter unchanged while maintaining the correct exposure. The ISO formula is H × S0.8 (S sensitivity, H is exposure), i.e., the higher the sensitivity, the less the exposure is required.
And step 250, shooting the shooting area.
Specifically, when shooting a shooting area, an optimal focal length of the camera needs to be set according to a focusing point corresponding to a focusing area included in a focusing area list and a weight of the focusing point, and a corresponding exposure amount in the camera needs to be adjusted according to different light brightness values of corresponding light measuring points of each area in a light measuring area list, so that the camera can carry out focusing shooting on each area in the shooting area according to the optimal focal length and the exposure amount. The electronic device can also be understood as shooting different areas in the same shooting area by adopting the optimal focal length of the camera and adjusting the exposure amount in the camera, and synthesizing images corresponding to different areas in the same shooting area by adopting an image synthesis algorithm after obtaining the images corresponding to the areas to form the images corresponding to the shooting areas.
According to the technical scheme of the embodiment, on the basis of the embodiment, the human image mode is further determined according to the proportion and the position of the human face area in the shooting area, the corresponding compensation area is determined according to the human image mode, the optimal focal length of the camera is set according to the weight coefficients of the human face area and the compensation area, the light brightness value of the light measuring point in each area is adjusted, the shooting area is shot according to the optimal focal length and the light brightness value, the brightness adjustment of the human face area and the compensation area is accurately controlled, the definition and the brightness of the human face area are guaranteed, the definition difference and the brightness difference between the compensation area and the human face area near the human face area are reduced, the overall visual effect of the shooting area is improved, and the shooting experience of a user is improved.
It should be noted here that the above scheme is only applicable to the case where a face region exists in the shooting region. However, in the process of actually shooting by using the electronic device, the shooting area of the electronic device also has the situation of no human face, and at this time, the automatic focusing strategy and the automatic photometry strategy of the electronic device in the prior art are selected to focus, photometry and shoot the shooting area. The automatic focusing strategy can be understood as automatically distributing a focusing point for the shooting area, and adjusting the focal length of the camera according to the focusing point so as to carry out focusing shooting on the shooting area; the automatic photometry strategy can be understood as a strategy that a photometry point is automatically allocated to a shooting area, and the shooting area is shot according to the light brightness value of the photometry point. Specifically, after the shooting area is determined, a focus and a light measurement point are automatically assigned to the center position of the shooting area. Meanwhile, the electronic equipment automatically acquires the current definition and the current brightness value of the shooting area, determines the focal length of the focusing point and the light brightness value of the light metering point according to the current definition, the current brightness value and the environment brightness corresponding to the shooting area, and carries out focusing shooting on the shooting area according to the focal length and the light brightness value. It should be noted that the auto-focusing strategy and the auto-photometry strategy are commonly used in the electronic device in the prior art, and are not described herein again.
In the embodiment, when the shooting device is in shooting, the working mode of the camera in the shooting device can be switched from the automatic mode to the manual mode, and cannot be switched from the manual mode to the automatic mode. Of course, if the user needs to switch the working mode of the camera in the shooting device from the manual mode to the automatic mode, the shooting mode of the camera needs to be closed first, and then the shooting mode of the shooting device needs to be restarted, so that the working mode of the camera is switched to the automatic mode.
Fig. 15 is a flowchart of a shooting adjustment method according to an embodiment of the present disclosure, and the embodiment further embodies the shooting adjustment method on the basis of the foregoing technical solution. The present embodiment is shooting adjustment performed on a shooting area when a camera in a shooting device is switched from an automatic mode to a manual mode.
It should be noted here that, when the shooting device is in the manual mode, there are two cases between the click area and the area in the light metering area list, one is that the click area coincides with the area in the light metering area list, and the other is that the click area does not coincide with the area in the light metering area list. When the click area is different from the face area/compensation area included in the light metering area list, the update of the light metering area list is also different. For convenience of explanation of updating of the light metering area list, the imaging area is divided in the division manner shown in fig. 12, and then, updating of the light metering area list will be explained. As shown in fig. 15, the method specifically includes the following steps:
and step 510, identifying a face area in the shooting area.
And step 520, determining a compensation area corresponding to the face area according to the proportion of the face area to the shooting area.
And step 530, acquiring the click operation of the user on the shooting area.
Wherein the click operation is an operation performed by the user in the shooting area. In an embodiment, the click operation may be a single click operation, a double click operation, and the like, which is not limited. Of course, when the shooting area is clicked, the display screen of the shooting device operated by the user should be a touch screen, and the touch screen may include: capacitive screen, electromagnetic screen or infrared screen, etc. Generally, the touch screen may receive a touch operation input by a user through a finger or an input device. Wherein the input device includes but is not limited to: a stylus, an infrared pen, and/or a capacitive pen, etc.
It should be noted that, when the shooting device is in the shooting mode and a picture corresponding to the shooting area is displayed on a display screen of the shooting device, a user may perform a click operation on the shooting area, and after the shooting device receives the click operation of the user, a face area or a compensation area corresponding to the click operation is used as a focusing area or a photometric area, and a position clicked by the user is used as a focusing point or a photometric point of the focusing area. It should be noted that the click operation in the present embodiment is both the focusing operation and the photometric operation.
And step 540, updating the focusing area list and the light metering area list according to the click area.
In the embodiment, in general, when the photographing mode of the photographing apparatus is started, a camera in the photographing apparatus automatically recognizes face features in a photographing region through a face recognition technology, determines a corresponding face region, determines a compensation region corresponding to the face region according to a proportion and a position of the face region in the photographing region, and allocates a light measuring point and a focus point to each region, as shown in fig. 14. In this case, the focusing area and the light metering area included in the focusing area list and the light metering area list are the same, and are the human face area 401, the compensation area 402, the compensation area 403, and the compensation area 404, and the focusing area list and the light metering area list are respectively represented as table 1 and table 2. However, after the shooting device receives the click operation of the user on the shooting area, the tables 1 and 2 are updated according to the position of the click area. Fig. 16 is a display diagram of a click area provided by the embodiment of the present disclosure. Fig. 16 is a view illustrating that, based on fig. 14, a click operation of a user on a shooting area is obtained, and as shown in fig. 16, after the shooting device receives the click operation, a click area is determined according to the click operation, and a click area 405 is displayed in the shooting area so as to update a focus area list and a light metering area list. As another example, fig. 17 is a schematic display diagram of another click area provided by the embodiment of the present disclosure. Fig. 17 is a view illustrating that, based on fig. 14, a click operation of the user on the shooting area is obtained, and as shown in fig. 17, after the shooting device receives the click operation, a click area 406 is determined according to the click operation, and the click area 406 is displayed in the shooting area, so as to update the focus area list and the light metering area list. The specific steps of updating may include steps 541-544:
step 541, clearing the focusing area list, and adding the clicked area into the cleared focusing area list to obtain an updated focusing area list.
In the embodiment, after the click operation of the user on the shooting area is received, the click area corresponding to the click operation is determined, as shown in fig. 16, to ensure the definition of the click area, the click area is directly used as a focusing area, and a position triggered by the click operation is used as a focusing position, and simultaneously all focusing areas in table 1 are cleared, that is, all four areas, namely, the face area 401, the compensation area 402, the compensation area 403, and the compensation area 404 in table 1 are cleared, and the click area 405 is added to the cleared table 1, so as to obtain an updated focusing area list, which is recorded as table 3. Only one in-focus area, the click area 405, is included in table 3.
As shown in fig. 17, to ensure the clarity of the clicked area, the clicked area is directly used as a focusing area, the position triggered by the clicking operation is used as the position of the focusing point, all the focusing areas in table 1 are cleared, that is, all four areas, namely the face area 401, the compensation area 402, the compensation area 403, and the compensation area 404 in table 1 are cleared, and the clicked area 406 is added to the cleared table 1, so as to obtain an updated focusing area list, which is recorded as table 4. Only one in-focus area, click area 406, is included in this table 4.
It should be noted here that when the camera in the shooting device is in the manual mode, the magnitude relationship of the weight coefficients of the face region and the compensation region does not need to be considered.
Step 542, judging whether the click area is overlapped with the area in the light metering area list, and if so, executing step 543; if not, step 544 is performed.
Specifically, as shown in fig. 16, if the click region 405 and the compensation region 404 in the light metering region list are overlapped, step 543 is executed; as shown in fig. 17, if the click area 406 does not coincide with any of the four areas in the list of light metering areas, step 544 is performed.
And 543, if the click area is overlapped with the area in the light metering area list, keeping the light metering area unchanged, and using the light metering area list as an updated light metering area list.
Specifically, the light metering area list, that is, table 2, includes four areas, i.e., a face area 401, a compensation area 402, a compensation area 403, and a compensation area 404. As shown in fig. 16, when the click region 405 and the compensation region 404 in the light metering region list overlap with each other, the light metering region included in the light metering region list is not updated.
Step 544, if the clicked area is not overlapped with the area in the light metering area list, adding the clicked area into the light metering area list, and removing the area with the lowest weight coefficient in the light metering area list to obtain an updated light metering area list.
Specifically, the light metering area list, that is, table 2, includes four areas, i.e., a face area 401, a compensation area 402, a compensation area 403, and a compensation area 404. As shown in fig. 17, if the clicked area 406 does not coincide with each area in the light metering area list, the weight coefficients of the four face area 401, the compensation area 402, the compensation area 403, and the compensation area 404 in table 2 are obtained and compared, and if the weight coefficient of the compensation area 404 is determined to be the lowest, the compensation area 404 is removed from table 2, and the clicked area 406 is added to table 2, so as to obtain an updated light metering area list, which is recorded as table 4.
And step 550, focusing each area according to the weight coefficient of each area in the updated focusing area list, and adjusting the brightness of each area according to the weight system of each area in the updated light metering area list so as to shoot the shooting area.
The focusing area list and the light metering area list respectively comprise the human face area and the compensation area.
Specifically, when the click area overlaps with an area in the light metering area list, as shown in fig. 16, the focusing area 405 is focused according to the updated focusing area list, that is, according to the focusing point corresponding to the focusing area 405 in table 3, which is set as the optimal focal length of the camera; because the light metering area in the light metering area list is not changed, the light brightness value of the light metering point corresponding to each area is directly adjusted according to the light metering area list, namely the weight coefficient of each area in the table 2, so that each area is shot, the definition and the brightness of the face area are ensured, the face area is clear and bright, and the integral visual effect of the shot area is further improved.
When the click area does not coincide with an area in the light metering area list, as shown in fig. 17, focusing is performed on the focusing area 406 according to the updated focusing area list, that is, according to the focusing point corresponding to the focusing area 406 in table 4, which is set as the optimal focal length of the camera; since the light metering area list is updated, the light brightness value of the light to be measured is adjusted for each area based on the updated light metering area list, that is, the face area 401, the compensation area 402, the compensation area 403, and the focus area 406 in table 5, so as to photograph each area.
According to the technical scheme, the shooting device is switched from the automatic mode to the manual mode, after the click operation of a user on the shooting area is obtained, the focusing area list and the light metering area list are updated according to the click area, the optimal focal length of the camera is set according to the weight coefficient of each area in the updated focusing area list so as to focus the shooting area, the brightness of each area is adjusted according to the weight system of each area in the updated light metering area list so as to shoot the shooting area, the definition and the brightness of the face area are guaranteed, the face area is clear and bright, and the overall visual effect of the shooting area is improved.
Fig. 18 is a block diagram of a shooting adjustment apparatus according to an embodiment of the present disclosure, where this embodiment is applicable to a case where when a user manually focuses a shooting area, sharpness and brightness of an image corresponding to a face area are guaranteed, the apparatus may be implemented in a software and/or hardware manner, and the apparatus may be configured in an electronic device, such as a mobile phone, a tablet computer, a computer, and the like. As shown in fig. 18, the apparatus specifically includes: an identification module 610, a determination module 620, and a photographing module 630. Wherein:
the recognition module 610 is used for recognizing a face area in the shooting area;
a determining module 620, configured to determine a compensation area corresponding to the face area according to a specific gravity between the face area and the shooting area;
and a shooting module 630, configured to focus each region according to the weight coefficient of each region in the focusing region list, and adjust the brightness of each region according to the weight coefficient of each region in the metering region list, so as to shoot the shooting region, where the focusing region list and the metering region list respectively include a human face region and a compensation region.
According to the technical scheme of the embodiment, the face area in the shooting area is identified; determining a compensation area corresponding to the face area according to the proportion of the face area to the shooting area; focusing is carried out on each area according to the weight coefficients of the face area and the compensation area, and the brightness of each area is adjusted according to the weight coefficients of each area in the light metering area list so as to shoot the shooting area, so that the focusing area is accurately focused, and the brightness of the shooting area is accurately controlled, so that the definition and the brightness of the face area are ensured, the integral visual effect of the shooting area is improved, and the use experience of a user is improved.
Further, the determining module 620 includes:
determining a portrait mode according to the proportion and the position of the face area in the shooting area, wherein the proportion of the face area to the shooting area comprises the proportion and the position of the face area in the shooting area;
and determining a corresponding compensation area according to the portrait mode.
Further, the shooting module 630 includes:
the acquisition unit is used for acquiring the click operation of a user on the shooting area;
the updating unit is used for updating the focusing area list and the light metering area list according to the click area;
and the focusing adjusting unit is used for focusing each area according to the weight coefficient of each area in the updated focusing area list and adjusting the brightness of each area according to the weight system of each area in the updated light metering area list.
Further, the update unit includes:
the generating subunit is used for clearing a focusing area list, adding the click area into the cleared focusing area list, and obtaining an updated focusing area list;
the judgment operation subunit is used for keeping the photometric area unchanged if the click area is overlapped with an area in the photometric area list, and the photometric area list is used as an updated photometric area list; and if the click area is not coincident with the area in the light metering area list, adding the click area into the light metering area list, and removing the area with the lowest weight coefficient in the light metering area list to obtain an updated light metering area list.
Furthermore, the weight coefficient of the face area is greater than that of the compensation area.
Further, the number of light measuring points and focusing points is determined according to the performance of the shooting equipment.
The shooting adjusting device provided by the embodiment of the disclosure can execute the shooting adjusting method provided by any embodiment of the disclosure, and has corresponding functional modules and beneficial effects of the executing method.
Fig. 19 is a block diagram of an electronic device according to an embodiment of the present disclosure. Referring to fig. 19, a schematic structural diagram of an electronic device (e.g., a terminal device or a server) 700 suitable for implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 19 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 19, the electronic device 700 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 701 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)702 or a program loaded from a storage means 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data necessary for the operation of the electronic apparatus 700 are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Generally, the following devices may be connected to the I/O interface 705: input devices 706 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 707 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 708 including, for example, magnetic tape, hard disk, etc.; and a communication device 709. The communication means 709 may allow the electronic device 700 to communicate wirelessly or by wire with other devices to exchange data. While fig. 19 illustrates an electronic device 700 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via the communication means 709, or may be installed from the storage means 708, or may be installed from the ROM 702. The computer program executes the above-described functions defined in the shooting adjustment method of the embodiment of the present disclosure when executed by the processing apparatus 701.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: identifying a face area in the shooting area; determining a compensation area corresponding to the face area according to the proportion of the face area to the shooting area; focusing each area according to the weight coefficient of each area in the focusing area list, and adjusting the brightness of each area according to the weight coefficient of each area in the light metering area list so as to shoot the shooting area, wherein the focusing area list and the light metering area list respectively comprise a human face area and a compensation area.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Claims (10)

1. A shooting adjustment method, comprising:
identifying a face area in the shooting area;
determining a compensation area corresponding to the face area according to the proportion of the face area to the shooting area; wherein, the determining a compensation area corresponding to the face area according to the proportion of the face area to the shooting area comprises: dividing the shooting area into at least two areas according to the proportion and the position of the face area in the shooting area, and determining a compensation area corresponding to the face area;
focusing each area according to the weight coefficient of each area in a focusing area list, and adjusting the brightness of each area according to the weight coefficient of each area in a light metering area list so as to shoot the shooting area, wherein the focusing area list and the light metering area list respectively comprise the human face area and a compensation area;
the focusing of each area according to the weight coefficient of each area in the focusing area list and the adjustment of the brightness of each area according to the weight coefficient of each area in the light metering area list so as to shoot the shooting area comprise:
and automatically distributing the focusing point and the light metering point to the central position of each region, and determining the focal length and the exposure amount corresponding to each region according to the weight coefficient, the current definition and the current brightness value of each region, so that the focal length and the exposure amount corresponding to the camera are automatically adjusted when the camera shoots different regions.
2. The shooting adjustment method according to claim 1, wherein the determining a compensation region corresponding to the face region according to the specific gravity of the face region and the shooting region comprises:
determining a portrait mode according to the proportion and the position of the face area in the shooting area, wherein the proportion of the face area to the shooting area comprises the proportion and the position of the face area in the shooting area;
and determining a corresponding compensation area according to the portrait mode.
3. The shooting adjustment method according to claim 1, wherein focusing each region according to the weight coefficient of each region in the focused region list, and adjusting the brightness of each region according to the weight system of each region in the photometric region list comprises:
acquiring the click operation of a user on a shooting area;
updating a focusing area list and a light metering area list according to the click area;
focusing each area according to the weight coefficient of each area in the updated focusing area list, and adjusting the brightness of each area according to the weight system of each area in the updated light metering area list.
4. The shooting adjustment method according to claim 3, wherein the updating the focusing area list and the metering area list according to the click area includes:
clearing the focusing area list, and adding the clicked area into the cleared focusing area list to obtain an updated focusing area list;
if the click area is overlapped with an area in the light metering area list, keeping the light metering area unchanged, and taking the light metering area list as an updated light metering area list; and if the click area is not coincident with the area in the light metering area list, adding the click area into the light metering area list, and removing the area with the lowest weight coefficient in the light metering area list to obtain an updated light metering area list.
5. The shooting adjustment method according to claim 1, wherein the weight coefficient of the face region is larger than the weight coefficient of the compensation region.
6. The shooting adjustment method according to claim 1, wherein the number of the light measurement points and the focusing points is determined according to a performance of a shooting device.
7. A shooting adjustment apparatus, comprising:
the recognition module is used for recognizing a face area in the shooting area;
the determining module is used for determining a compensation area corresponding to the face area according to the proportion of the face area to the shooting area; the determining module is further configured to divide the shooting area into at least two areas according to the proportion and the position of the face area in the shooting area, and determine a compensation area corresponding to the face area;
the shooting module is used for focusing each area according to the weight coefficient of each area in the focusing area list and adjusting the brightness of each area according to the weight coefficient of each area in the light metering area list so as to shoot the shooting area, wherein the focusing area list and the light metering area list respectively comprise the human face area and the compensation area;
the focusing of each area according to the weight coefficient of each area in the focusing area list and the adjustment of the brightness of each area according to the weight coefficient of each area in the light metering area list so as to shoot the shooting area comprise:
and automatically distributing the focusing point and the light metering point to the central position of each region, and determining the focal length and the exposure amount corresponding to each region according to the weight coefficient, the current definition and the current brightness value of each region, so that the focal length and the exposure amount corresponding to the camera are automatically adjusted when the camera shoots different regions.
8. The shooting adjustment apparatus according to claim 7, wherein the shooting module includes:
the acquisition unit is used for acquiring the click operation of a user on the shooting area;
the updating unit is used for updating the focusing area list and the light metering area list according to the click area;
and the focusing adjusting unit is used for focusing each area according to the weight coefficient of each area in the updated focusing area list and adjusting the brightness of each area according to the weight system of each area in the updated light metering area list.
9. An electronic device, comprising:
one or more processing devices;
storage means for storing one or more programs;
when executed by the one or more processing devices, cause the one or more processing devices to implement the shooting adjustment method of any one of claims 1-6.
10. A computer-readable storage medium on which a computer program is stored, characterized in that the program, when executed by a processing device, implements the shooting adjustment method according to any one of claims 1 to 6.
CN201811162075.4A 2018-09-30 2018-09-30 Shooting adjustment method and device, electronic equipment and storage medium Active CN110971814B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811162075.4A CN110971814B (en) 2018-09-30 2018-09-30 Shooting adjustment method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811162075.4A CN110971814B (en) 2018-09-30 2018-09-30 Shooting adjustment method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110971814A CN110971814A (en) 2020-04-07
CN110971814B true CN110971814B (en) 2022-03-04

Family

ID=70029342

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811162075.4A Active CN110971814B (en) 2018-09-30 2018-09-30 Shooting adjustment method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110971814B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111601036B (en) * 2020-05-27 2021-09-28 惠州Tcl移动通信有限公司 Camera focusing method and device, storage medium and mobile terminal
CN112911146B (en) * 2021-01-27 2022-08-12 杭州寰宇微视科技有限公司 Intelligent dimming method based on human face

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872363A (en) * 2016-03-28 2016-08-17 广东欧珀移动通信有限公司 Adjustingmethod and adjusting device of human face focusing definition
WO2017084295A1 (en) * 2015-11-17 2017-05-26 华为技术有限公司 Automatic focusing method and device

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4218720B2 (en) * 2006-09-22 2009-02-04 ソニー株式会社 IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND COMPUTER PROGRAM
JP5386793B2 (en) * 2006-12-11 2014-01-15 株式会社リコー Imaging apparatus and exposure control method for imaging apparatus
CN101547306B (en) * 2008-03-28 2010-12-08 鸿富锦精密工业(深圳)有限公司 Video camera and focusing method thereof
JP2010016664A (en) * 2008-07-04 2010-01-21 Hitachi Ltd Imaging apparatus
CN106303205A (en) * 2015-06-12 2017-01-04 中兴通讯股份有限公司 Focusing area method of adjustment and device
CN106412422B (en) * 2016-09-05 2019-07-19 Oppo广东移动通信有限公司 Focusing method, device and terminal
JP6833415B2 (en) * 2016-09-09 2021-02-24 キヤノン株式会社 Image processing equipment, image processing methods, and programs
CN107220953A (en) * 2017-06-16 2017-09-29 广东欧珀移动通信有限公司 image processing method, device and terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017084295A1 (en) * 2015-11-17 2017-05-26 华为技术有限公司 Automatic focusing method and device
CN105872363A (en) * 2016-03-28 2016-08-17 广东欧珀移动通信有限公司 Adjustingmethod and adjusting device of human face focusing definition

Also Published As

Publication number Publication date
CN110971814A (en) 2020-04-07

Similar Documents

Publication Publication Date Title
JP7371081B2 (en) Night view photography methods, devices, electronic devices and storage media
US11582400B2 (en) Method of image processing based on plurality of frames of images, electronic device, and storage medium
US20200267314A1 (en) Real time assessment of picture quality
CN108900782B (en) Exposure control method, exposure control device and electronic equipment
CN109218628B (en) Image processing method, image processing device, electronic equipment and storage medium
CN109218627B (en) Image processing method, image processing device, electronic equipment and storage medium
WO2020103503A1 (en) Night scene image processing method and apparatus, electronic device, and storage medium
CN110191291B (en) Image processing method and device based on multi-frame images
WO2020037959A1 (en) Image processing method, image processing apparatus, electronic device and storage medium
CN109729274B (en) Image processing method, image processing device, electronic equipment and storage medium
EP3624438B1 (en) Exposure control method, and electronic device
JP2012199675A (en) Image processing apparatus, image processing method, and program
CN109348088A (en) Image denoising method, device, electronic equipment and computer readable storage medium
CN109919116B (en) Scene recognition method and device, electronic equipment and storage medium
CN109361853A (en) Image processing method, device, electronic equipment and storage medium
CN110971814B (en) Shooting adjustment method and device, electronic equipment and storage medium
CN112017137A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN110971833B (en) Image processing method and device, electronic equipment and storage medium
JP2013017218A (en) Image processing device, image processing method, and program
CN110971813B (en) Focusing method and device, electronic equipment and storage medium
CN110971812B (en) Shooting method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant