CN118488316A - Photometry method, photometry device, electronic equipment and storage medium - Google Patents
Photometry method, photometry device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN118488316A CN118488316A CN202310135086.8A CN202310135086A CN118488316A CN 118488316 A CN118488316 A CN 118488316A CN 202310135086 A CN202310135086 A CN 202310135086A CN 118488316 A CN118488316 A CN 118488316A
- Authority
- CN
- China
- Prior art keywords
- area
- touch
- photometry
- target
- determining
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Studio Devices (AREA)
Abstract
The disclosure relates to a photometry method, a photometry device, electronic equipment and a storage medium. The method is applied to the electronic equipment comprising the camera and the touch screen, and comprises the following steps: receiving a touch instruction of a user on the touch screen, and determining a touch area according to the touch instruction; performing main body detection on an image acquired by the camera when the touch instruction is triggered, and determining a main body area where a shooting main body is located in the image; and determining a target photometry area for photometry according to the position relation between the main body area and the touch area. The method and the device can accurately determine the target light measuring area for light measurement, further ensure the brightness of the shooting subject in the image, and improve the display effect of the shooting image.
Description
Technical Field
The disclosure relates to the technical field of shooting, and in particular relates to a photometry method, a photometry device, electronic equipment and a storage medium.
Background
Electronic devices (such as cameras, mobile phones, computers, etc.) typically measure light of captured images during photographing to improve the photographing effect of the photographs.
The existing photometry scheme is that a user clicks an area on a touch screen of an electronic device to perform photometry, when the user does not click a shooting subject, the situation that the brightness of the shooting subject is overexposed or is excessively dark can occur, for example, when the user clicks a face, the face brightness is excessively dark can occur, or the shooting subject in a backlight state is clicked, if the shooting subject is smaller, the brightness of the shooting subject is excessively dark, and further the shooting effect is poor.
Disclosure of Invention
In order to overcome the problems in the related art, embodiments of the present disclosure provide a photometry method, a photometry device, an electronic apparatus, and a storage medium, which are used to solve the drawbacks in the related art.
According to a first aspect of embodiments of the present disclosure, there is provided a light metering method applied to an electronic device including a camera and a touch screen, the method including:
receiving a touch instruction of a user on the touch screen, and determining a touch area according to the touch instruction;
Performing main body detection on an image acquired by the camera when the touch instruction is triggered, and determining a main body area where a shooting main body is located in the image;
And determining a target photometry area for photometry according to the position relation between the main body area and the touch area.
In some embodiments, determining a target light metering region for metering light according to a positional relationship between the main body region and the touch region includes:
acquiring the type of the shooting subject under the condition that the position relation between the subject area and the touch area is intersected;
and determining a target photometry area for photometry according to the type of the shooting subject.
In some embodiments, determining a target photometry area for performing photometry according to the type of the photographing subject includes:
If the shooting subject is of a target type under the condition that the position relationship between the subject area and the touch area is partially overlapped, determining that the target photometry area is the subject area; and if the shooting subject is of a non-target type, determining that the target photometry area is an area where the touch area and the subject area overlap.
In some embodiments, determining a target photometry area for performing photometry according to the type of the photographing subject includes:
If the touch area comprises the main body area, determining that the target photometry area is the main body area if the shooting main body is of a target type; and if the shooting subject is of a non-target type, determining the target photometry area as the touch area.
In some embodiments, the method further comprises:
acquiring the current brightness of the image;
Processing the current brightness of the touch area by using a preset first weighting coefficient to obtain the first brightness of the touch area;
processing the current brightness of the non-touch area by using a preset second weighting coefficient to obtain the second brightness of the non-touch area, wherein the first weighting coefficient is larger than the second weighting coefficient;
and determining the brightness of the target photometry area according to the first brightness and the second brightness.
In some embodiments, the determining the target light metering area according to the position relationship between the main body area and the touch area includes:
And determining the target photometry area as the touch area under the condition that the position relation between the touch area and the main body area is disjoint.
In some embodiments, the target type of the subject is a face.
According to a second aspect of embodiments of the present disclosure, there is provided a photometry device applied to an electronic apparatus including a camera and a touch screen, the device including:
The receiving module is used for receiving a touch instruction of a user on the touch screen and determining a touch area according to the touch instruction;
the acquisition module is used for carrying out main body detection on the image acquired by the camera when the touch instruction is triggered, and determining a main body area where a shooting main body is located in the image;
and the determining module is used for determining a target photometry area for photometry according to the position relation between the main body area and the touch area.
In some embodiments, the determining module is specifically configured to, when determining the target light metering area for performing light metering according to the positional relationship between the main area and the touch area:
acquiring the type of the shooting subject under the condition that the position relation between the subject area and the touch area is intersected;
and determining a target photometry area for photometry according to the type of the shooting subject.
In some embodiments, the determining module is specifically configured to, when determining, according to the type of the subject, a target light metering area for performing light metering:
If the shooting subject is of a target type under the condition that the position relationship between the subject area and the touch area is partially overlapped, determining that the target photometry area is the subject area; and if the shooting subject is of a non-target type, determining that the target photometry area is an area where the touch area and the subject area overlap.
In some embodiments, the determining module is specifically configured to, when determining, according to the type of the subject, a target light metering area for performing light metering:
If the touch area comprises the main body area, determining that the target photometry area is the main body area if the shooting main body is of a target type; and if the shooting subject is of a non-target type, determining the target photometry area as the touch area.
In some embodiments, the apparatus further comprises a light metering module, specifically configured to:
acquiring the current brightness of the image;
Processing the current brightness of the touch area by using a preset first weighting coefficient to obtain the first brightness of the touch area;
processing the current brightness of the non-touch area by using a preset second weighting coefficient to obtain the second brightness of the non-touch area, wherein the first weighting coefficient is larger than the second weighting coefficient;
and determining the brightness of the target photometry area according to the first brightness and the second brightness.
In some embodiments, the determining module is specifically configured to, when determining the target light metering area for performing light metering according to the positional relationship between the main area and the touch area:
And determining the target photometry area as the touch area under the condition that the position relation between the touch area and the main body area is disjoint.
In some embodiments, the target type of the subject is a face.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device comprising a memory for storing computer instructions executable on a processor for performing the computer instructions based on the photometry method of the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the photometry method of the first aspect.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
According to the method and the device, the target light measuring area for measuring light can be accurately determined according to different position relations between the touch area and the main area where the shooting main body is located, so that the brightness of the shooting main body in an image is guaranteed, and the display effect of the shooting image can be improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow chart of a photometry method according to an exemplary embodiment of the present disclosure;
FIG. 2 is a flow chart of yet another photometry method according to an exemplary embodiment of the present disclosure;
FIG. 3 is a block diagram of a photometry device according to an exemplary embodiment of the present disclosure;
fig. 4 is a block diagram of an electronic device, as shown in an exemplary embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in this disclosure to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "in response to a determination" depending on the context.
In a first aspect, at least one embodiment of the present disclosure provides a light metering method applied to an electronic device including a camera and a touch screen. The electronic device may be a camera, a computer, a mobile phone, etc., and the specific steps are as shown in fig. 1, and the method includes:
S101, receiving a touch instruction of a user on the touch screen, and determining a touch area according to the touch instruction.
In the embodiment of the disclosure, when the electronic device camera is turned on and is in a photographing mode, an image captured by the electronic device camera in real time can be previewed on the touch screen, when a user clicks the touch screen of the electronic device, a touch instruction is triggered, and when the electronic device receives the triggered touch instruction, the touch instruction is analyzed to determine a touch area according to the touch instruction.
In one example, the touch area may be a square frame, a rectangular frame, or other shapes, and have a set size, and when the user clicks the touch screen, the touch area with the set size is displayed with the position clicked by the user as the center, and then the touch area may be determined according to a touch instruction triggered by the user clicking the touch screen.
S102, performing main body detection on an image acquired by the camera when the touch instruction is triggered, and determining a main body area where a shooting main body is located in the image.
In the embodiment of the disclosure, after a touch instruction is triggered by a user, main body detection is performed on an image acquired by a camera to obtain a shooting main body in the image, so as to obtain a main body area where the shooting main body is located in the image, and the position information of the main body area is stored in a set position while the main body area is obtained, for example, the main body area can be a memory of electronic equipment.
In one example, the algorithms for subject detection of the image may be BRIEF algorithm, BRISK algorithm, and ORB algorithm.
In one example, the body region in embodiments of the present disclosure is indicated generally by a box or rectangular box.
S103, determining a target photometry area according to the position relation between the main body area and the touch area, and carrying out photometry on the target photometry area.
In the embodiment of the present disclosure, after S101 and S102 are performed, after a touch area and a main area are obtained, the main area where the subject is photographed in the image is compared with the touch area, so as to obtain a positional relationship between the main area and the touch area, and a target photometry area in the image where photometry is required is determined by using the positional relationship between the main area and the touch area.
According to the method and the device, the target light measuring area for measuring light can be accurately determined according to different position relations between the touch area and the main area where the shooting main body is located, so that the brightness of the shooting main body in the image is guaranteed, the shooting main body in the image reaches the target brightness, and the display effect of the shooting image is improved.
In one example, when comparing the subject region where the subject is photographed in the image with the touch region, the coordinates of the subject region in the image may be compared with the coordinates of the touch region, thereby determining the positional relationship between the subject region and the touch region.
In one example, embodiments of the present disclosure may employ automatic exposure control (Automatic Exposure Control, AEC) to photometry a target photometric area when photometry is performed on the target photometric area.
In some embodiments, embodiments of the present disclosure, when performing S103, may include the steps of:
S1031, in a case where the positional relationship between the subject area and the touch area is intersecting, acquiring the type of the photographing subject.
In the embodiment of the disclosure, when the position relationship between the main body area and the touch area is obtained as intersection, the type of the shooting main body is identified according to the main body algorithm, so as to obtain the type of the shooting main body.
In one example, the intersecting positional relationship of the present disclosure includes including and partially overlapping, where including specifically includes including a body region in the touch region, specifically including a body region completely overlapping the trigger region, or including a touch region in the body region, specifically including a body region completely overlapping the trigger region, or including a body region in the body region, or including a body region completely overlapping the trigger region, or including a body region within the body region; partial overlap refers specifically to having an overlapping relationship between the body region and the touch region but not including each other.
In one example, the types of subjects photographed by the present disclosure may include trees, buildings, faces, and the like.
S1032, determining a target metering area for metering according to the type of the subject.
In the embodiment of the disclosure, after the type of the shooting subject is obtained, the type of the shooting subject is compared with the target type, and a target photometry area for photometry is determined according to the comparison result.
In some embodiments, embodiments of the present disclosure, when performing S1032, may include the steps of:
S10321, when the positional relationship between the subject area and the touch area is partially overlapped, determining that the target photometric area is the subject area if the photographing subject is of a target type; and if the shooting subject is of a non-target type, determining the target photometry area as an overlapping area between the touch area and the subject area.
In the embodiment of the disclosure, when determining that the positional relationship between the subject area and the touch area is partially overlapped, determining that a target photometry area performing photometry is a subject area when the type of the shooting subject is the same as the target type, that is, the type of the shooting subject is the target type; when the type of the shooting subject is different from the target type, namely the type of the shooting subject is a non-target type, acquiring an overlapping area between the subject area and the touch area, and determining a target photometry area for photometry as the overlapping area between the subject area and the touch area. .
In one example, when determining the overlapping region, the image may be entirely divided into the main body region and the non-main body region, and the position of the touch region and the position of the main body region may be acquired, so that the overlapping portion of the touch region and the main body region is determined using the positional relationship between the touch region and the main body region, and the overlapping portion is determined as the target photometry region.
In one example, when the light metering is performed on the overlapping area between the main body area and the touch area in the embodiment of the present disclosure, the overlapping area between the main body area and the touch area may be divided, so as to obtain an area where the photographing subject exists and an area where the photographing subject does not exist in the target light metering area, so that the light metering is performed on the area where the photographing subject does not exist, respectively.
In some embodiments, embodiments of the present disclosure, when performing S1032, may include the steps of:
s10322, if the touch area includes the subject area, determining that the target photometric area is the subject area if the photographing subject is of a target type; and if the shooting subject is of a non-target type, determining the target photometry area as the touch area.
In the embodiment of the disclosure, when the positional relationship between the main body area and the touch area is inclusive, that is, the main body area and the touch area are completely overlapped, or the main body area is inside the touch area, the type of the shooting main body is compared with the type of the target, when the type of the shooting main body is the same as the type of the target, that is, the type of the shooting main body is the type of the target, the target light metering area for performing light metering is determined to be the main body area, and when the type of the shooting main body is different from the type of the target, that is, the type of the shooting main body is the type of the non-target, the target light metering area for performing light metering is determined to be the touch area.
In some embodiments, when performing photometry on the touch area in S10322, the embodiments of the disclosure may include the steps of:
S103221, obtaining the current brightness of the image.
In the embodiment of the disclosure, when the type of the shooting subject is a non-target type for photometry, the current brightness of the image, that is, the brightness of the image displayed on the touch screen, is firstly obtained.
S103222, processing the current brightness of the touch area by using a preset first weighting coefficient to obtain the first brightness of the touch area.
In the embodiment of the disclosure, after the current brightness of the image is obtained, a preset first weighting coefficient is read, and the current brightness of the touch area is processed by using the first weighting coefficient and the current brightness to obtain the first brightness of the touch area.
S103223, processing the current brightness of the non-touch area by using a preset second weighting coefficient to obtain a second brightness of the non-touch area
In the embodiment of the disclosure, after the current brightness of the image is obtained, a preset second weighting coefficient is read, and the current brightness of the non-touch area is processed by using the first weighting coefficient to obtain the second brightness of the non-touch area.
Wherein the first weighting coefficient is greater than the second weighting coefficient, and the sum of the first weighting coefficient and the second weighting coefficient is 1. The first weighting coefficient is used for increasing the brightness of the touch area, and the second weighting coefficient is used for reducing the brightness of the non-touch area.
S103224, determining the brightness of the target photometric area according to the first brightness and the second brightness.
In the embodiment of the disclosure, after the first brightness and the second brightness are obtained, the brightness of the target photometric area is obtained by using the first brightness and the second brightness. Specifically, according to the touch area and the non-touch area contained in the target light metering area, respectively obtaining first brightness corresponding to the touch area and second brightness corresponding to the non-touch area, and obtaining the brightness of the target light metering area.
For example, the first weighting coefficient may be set to 0.85, the second weighting coefficient may be set to 0.15, and when the light is measured on the touch area, the first brightness of the touch area is determined by using the product of the first weighting coefficient and the current brightness, the second brightness of the non-touch area is determined by using the product of the second weighting coefficient and the current brightness, and the brightness of the target light measuring area is obtained by using the first brightness of the touch area and the second brightness of the non-touch area.
In some embodiments, determining the target photometric area according to the positional relationship between the main body area and the touch area may include the steps of:
S1035, when the positional relationship between the touch area and the main body area is disjoint, determining the target photometric area as the touch area.
In the embodiment of the disclosure, after the positional relationship between the main body region and the touch region is obtained, when the positional relationship between the main body region and the touch region is disjoint, that is, when there is no positional relationship between the main body region and the touch region that includes and partially overlaps, the target photometry region for performing photometry is determined to be the touch region.
In an example, the target type in the embodiment of the present disclosure may be a face, or may be set to be other types, and those skilled in the art may set the target type and the number of target types according to actual needs.
When the touch area and the main area have an intersecting relation, the embodiment of the disclosure can accurately determine the target photometry area by utilizing the type of the shooting main area, so that the brightness of the shooting main area in the image is ensured, and the display effect of the shooting image can be improved.
In some embodiments, still another photometry method is provided in the embodiments of the present disclosure, and specific steps are shown in fig. 2, and when the method in the embodiments of the present disclosure is executed, the camera of the electronic device is first in an on state and in a photographing mode, and then the touch screen of the electronic device is clicked by a user to trigger a touch instruction, and the touch instruction of the user on the touch screen is received by the electronic device, and a touch area is determined according to the touch instruction.
And when a touch instruction is received, performing main body detection on the image by utilizing a prestored algorithm, acquiring the type of a shooting main body and a main body area where the shooting main body is located in the image, and storing the position information of the main body area in a set position.
After the touch area and the main area are obtained, the main area is compared with the touch area to determine the position relation between the main area and the touch area, and a target photometry area for photometry is determined according to the position relation between the main area and the target area.
Judging whether the type of the shooting subject is the same as the type of the target or not under the condition that the position relation between the subject area and the touch area is partially overlapped, and determining the target photometry area for photometry as the subject area under the condition that the type of the shooting subject is the same as the type of the target; when the type of the photographing subject is different from the target type, an overlapping region between the subject region and the touch region is acquired, and the overlapping region between the subject region and the touch region is determined as a target photometry region for photometry.
Judging whether the type of the shooting subject is the same as the type of the target or not when the touch area contains the subject area, and determining the target photometry area for photometry as the subject area when the type of the shooting subject is the same as the type of the target; and determining the target photometry area for photometry as a touch area under the condition that the type of the shooting subject is different from the target type.
And determining the target photometry area as the touch area under the condition that the position relation between the touch area and the main body area is disjoint.
And after the target light metering area is determined, performing light metering on the target light metering area, wherein when the touch area comprises a main body area and the type of the shot main body is a non-target type, weighted light metering is performed on the target light metering area.
According to a second aspect of an embodiment of the present disclosure, there is provided a light metering device applied to an electronic apparatus including a camera and a touch screen, referring to fig. 3, the device includes:
The receiving module 301 is configured to receive a touch instruction of a user on the touch screen, and determine a touch area according to the touch instruction;
the acquiring module 302 is configured to perform main body detection on an image acquired by the camera when the touch instruction is triggered, and determine a main body area where a shooting main body is located in the image;
a determining module 303, configured to determine a target photometry area for performing photometry according to the positional relationship between the main area and the touch area.
In some embodiments, the determining module 303 is specifically configured to, when determining the target light metering area for performing light metering according to the positional relationship between the main area and the touch area:
acquiring the type of the shooting subject under the condition that the position relation between the subject area and the touch area is intersected;
and determining a target photometry area for photometry according to the type of the shooting subject.
In some embodiments, the determining module 303 is specifically configured to, when determining, according to the type of the subject, a target light metering area for performing light metering:
If the shooting subject is of a target type under the condition that the position relationship between the subject area and the touch area is partially overlapped, determining that the target photometry area is the subject area; and if the shooting subject is of a non-target type, determining the target photometry area as an overlapping area between the touch area and the subject area.
In some embodiments, the determining module 303 is specifically configured to, when determining, according to the type of the subject, a target light metering area for performing light metering:
If the touch area comprises the main body area, determining that the target photometry area is the main body area if the shooting main body is of a target type; and if the shooting subject is of a non-target type, determining the target photometry area as the touch area.
In some embodiments, the apparatus further comprises a light metering module, specifically configured to:
acquiring the current brightness of the image;
Processing the current brightness of the touch area by using a preset first weighting coefficient to obtain the first brightness of the touch area;
processing the current brightness of the non-touch area by using a preset second weighting coefficient to obtain the second brightness of the non-touch area, wherein the first weighting coefficient is larger than the second weighting coefficient;
and determining the brightness of the target photometry area according to the first brightness and the second brightness.
In some embodiments, the determining module 303 is specifically configured to, when determining the target light metering area according to the positional relationship between the main area and the touch area:
And determining the target photometry area as the touch area under the condition that the position relation between the touch area and the main body area is disjoint.
In accordance with a third aspect of embodiments of the present disclosure, reference is made to fig. 4, which schematically illustrates a block diagram of an electronic device. For example, electronic device 400 may be a camera, mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 4, an electronic device 400 may include one or more of the following components: a processing component 402, a memory 404, a power supply component 406, a multimedia component 408, an audio component 410, an input/output (I/O) interface 412, a sensor component 414, and a communication component 416.
The processing component 402 generally controls overall operation of the electronic device 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 may include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
The memory 404 is configured to store various types of data to support operations at the electronic device 400. Examples of such data include instructions for any application or method operating on electronic device 400, contact data, phonebook data, messages, pictures, videos, and the like. The memory 404 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power component 406 provides power to the various components of the electronic device 400. Power components 406 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for electronic device 400.
The multimedia component 408 includes a screen between the electronic device 400 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or sliding action, but also the duration and pressure associated with the touch or sliding operation. In some embodiments, the multimedia component 408 includes a front camera and/or a rear camera. When the electronic device 400 is in an operational mode, such as a shooting mode or a video mode, the front-facing camera and/or the rear-facing camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 410 is configured to output and/or input audio signals. For example, the audio component 410 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 400 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 404 or transmitted via the communication component 416. In some embodiments, audio component 410 further includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 414 includes one or more sensors for providing status assessment of various aspects of the electronic device 400. For example, the sensor assembly 414 may detect an on/off state of the electronic device 400, a relative positioning of the components, such as a display and keypad of the electronic device 400, the sensor assembly 414 may also detect a change in position of the electronic device 400 or a component of the electronic device 400, the presence or absence of a user's contact with the electronic device 400, an orientation or acceleration/deceleration of the electronic device 400, and a change in temperature of the electronic device 400. The sensor assembly 414 may also include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to facilitate communication between the electronic device 400 and other devices, either wired or wireless. The electronic device 400 may access a wireless network based on a communication standard, such as WiFi,2G or 3G,4G or 5G, or a combination thereof. In one exemplary embodiment, the communication component 416 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for performing the power supply methods of electronic devices described above.
In a fourth aspect, the present disclosure also provides, in an exemplary embodiment, a non-transitory computer-readable storage medium, such as memory 404, comprising instructions executable by processor 420 of electronic device 400 to perform the method of powering an electronic device described above. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (16)
1. A light metering method, characterized in that it is applied to an electronic device including a camera and a touch screen, the method comprising:
receiving a touch instruction of a user on the touch screen, and determining a touch area according to the touch instruction;
Performing main body detection on an image acquired by the camera when the touch instruction is triggered, and determining a main body area where a shooting main body is located in the image;
And determining a target photometry area for photometry according to the position relation between the main body area and the touch area.
2. The photometry method according to claim 1, wherein determining a target photometry area for performing photometry according to a positional relationship between the main body area and the touch area, comprises:
acquiring the type of the shooting subject under the condition that the position relation between the subject area and the touch area is intersected;
and determining a target photometry area for photometry according to the type of the shooting subject.
3. The photometry method according to claim 2, wherein determining a target photometry area for performing photometry according to the type of the photographing subject, comprises:
If the shooting subject is of a target type under the condition that the position relationship between the subject area and the touch area is partially overlapped, determining that the target photometry area is the subject area; and if the shooting subject is of a non-target type, determining the target photometry area as an overlapping area between the touch area and the subject area.
4. The photometry method according to claim 2, wherein determining a target photometry area for performing photometry according to the type of the photographing subject, comprises:
If the touch area comprises the main body area, determining that the target photometry area is the main body area if the shooting main body is of a target type; and if the shooting subject is of a non-target type, determining the target photometry area as the touch area.
5. The method of photometry according to claim 4, further comprising:
acquiring the current brightness of the image;
Processing the current brightness of the touch area by using a preset first weighting coefficient to obtain the first brightness of the touch area;
processing the current brightness of the non-touch area by using a preset second weighting coefficient to obtain the second brightness of the non-touch area, wherein the first weighting coefficient is larger than the second weighting coefficient;
and determining the brightness of the target photometry area according to the first brightness and the second brightness.
6. The method according to claim 1, wherein determining the target metering region according to the positional relationship between the main body region and the touch region comprises:
And determining the target photometry area as the touch area under the condition that the position relation between the touch area and the main body area is disjoint.
7. The photometry method according to any one of claims 1 to 6, wherein the object type of the photographic subject is a human face.
8. A light metering device for use in an electronic apparatus comprising a camera and a touch screen, the device comprising:
The receiving module is used for receiving a touch instruction of a user on the touch screen and determining a touch area according to the touch instruction;
the acquisition module is used for carrying out main body detection on the image acquired by the camera when the touch instruction is triggered, and determining a main body area where a shooting main body is located in the image;
and the determining module is used for determining a target photometry area for photometry according to the position relation between the main body area and the touch area.
9. The light metering device of claim 8, wherein the determining module is specifically configured to, when determining the target light metering region for performing light metering according to the positional relationship between the main body region and the touch region:
acquiring the type of the shooting subject under the condition that the position relation between the subject area and the touch area is intersected;
and determining a target photometry area for photometry according to the type of the shooting subject.
10. The light metering device of claim 9, wherein the determining module is specifically configured to, when determining the target light metering region for performing light metering according to the type of the photographing subject:
If the shooting subject is of a target type under the condition that the position relationship between the subject area and the touch area is partially overlapped, determining that the target photometry area is the subject area; and if the shooting subject is of a non-target type, determining the target photometry area as an overlapping area between the touch area and the subject area.
11. The light metering device of claim 9, wherein the determining module is specifically configured to, when determining the target light metering region for performing light metering according to the type of the photographing subject:
If the touch area comprises the main body area, determining that the target photometry area is the main body area if the shooting main body is of a target type; and if the shooting subject is of a non-target type, determining the target photometry area as the touch area.
12. The light metering device of claim 11, further comprising a light metering module, the light metering module being specifically configured to:
acquiring the current brightness of the image;
Processing the current brightness of the touch area by using a preset first weighting coefficient to obtain the first brightness of the touch area;
processing the current brightness of the non-touch area by using a preset second weighting coefficient to obtain the second brightness of the non-touch area, wherein the first weighting coefficient is larger than the second weighting coefficient;
and determining the brightness of the target photometry area according to the first brightness and the second brightness.
13. The light metering device of claim 8, wherein the determining module is specifically configured to, when determining the target light metering region for performing light metering according to the positional relationship between the main body region and the touch region:
And determining the target photometry area as the touch area under the condition that the position relation between the touch area and the main body area is disjoint.
14. The light metering device of any of claims 8 to 13 wherein the target type of the subject is a human face.
15. An electronic device comprising a memory, a processor for storing computer instructions executable on the processor, the processor for performing the computer instructions based on the photometry method of any one of claims 1 to 7.
16. A computer readable storage medium having stored thereon a computer program, characterized in that the program, when executed by a processor, implements the photometry method according to any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310135086.8A CN118488316A (en) | 2023-02-10 | 2023-02-10 | Photometry method, photometry device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310135086.8A CN118488316A (en) | 2023-02-10 | 2023-02-10 | Photometry method, photometry device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118488316A true CN118488316A (en) | 2024-08-13 |
Family
ID=92192508
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310135086.8A Pending CN118488316A (en) | 2023-02-10 | 2023-02-10 | Photometry method, photometry device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118488316A (en) |
-
2023
- 2023-02-10 CN CN202310135086.8A patent/CN118488316A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3179711A2 (en) | Method and apparatus for preventing photograph from being shielded | |
US10708512B2 (en) | Method and device for capturing image and storage medium | |
KR20160116289A (en) | Method and apparatus for adjustmenting shooting parameter | |
CN109029720B (en) | Illumination intensity detection method and device | |
CN107463052B (en) | Shooting exposure method and device | |
CN105245775A (en) | Method and device for camera imaging, and mobile terminal | |
CN107480785B (en) | Convolutional neural network training method and device | |
CN112669231B (en) | Image processing method, training method, device and medium of image processing model | |
CN110059547B (en) | Target detection method and device | |
CN105955821B (en) | Pre-reading method and device | |
CN109376674B (en) | Face detection method, device and storage medium | |
CN108154090B (en) | Face recognition method and device | |
JP7339939B2 (en) | METHOD, APPARATUS AND STORAGE MEDIUM FOR DISPLAYING CAPTURE PREVIEW IMAGES | |
CN114422687B (en) | Preview image switching method and device, electronic equipment and storage medium | |
CN108319899B (en) | Fingerprint identification method and device | |
CN114268743B (en) | Image acquisition method, device, equipment and storage medium | |
CN114666490B (en) | Focusing method, focusing device, electronic equipment and storage medium | |
CN112148149B (en) | Touch screen control method, touch screen control device and storage medium | |
CN118488316A (en) | Photometry method, photometry device, electronic equipment and storage medium | |
CN117412169A (en) | Focus tracking method, apparatus, electronic device and storage medium | |
CN117522942A (en) | Depth distance measuring method, depth distance measuring device, electronic equipment and readable storage medium | |
CN117616777A (en) | Image processing method, device, electronic equipment and storage medium | |
CN109389547B (en) | Image display method and device | |
CN107707819B (en) | Image shooting method, device and storage medium | |
CN110392294A (en) | Human body detecting method, 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 |