WO2021223113A1 - Metering method, camera, electronic device, and computer-readable storage medium - Google Patents

Metering method, camera, electronic device, and computer-readable storage medium Download PDF

Info

Publication number
WO2021223113A1
WO2021223113A1 PCT/CN2020/088814 CN2020088814W WO2021223113A1 WO 2021223113 A1 WO2021223113 A1 WO 2021223113A1 CN 2020088814 W CN2020088814 W CN 2020088814W WO 2021223113 A1 WO2021223113 A1 WO 2021223113A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
category
weight information
brightness
camera
Prior art date
Application number
PCT/CN2020/088814
Other languages
French (fr)
Chinese (zh)
Inventor
王浩伟
韩守谦
郑子翔
Original Assignee
深圳市大疆创新科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to PCT/CN2020/088814 priority Critical patent/WO2021223113A1/en
Publication of WO2021223113A1 publication Critical patent/WO2021223113A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/26Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules

Definitions

  • This application relates to the field of image processing technology, and in particular to a photometry method, a camera, an electronic device, and a computer-readable storage medium.
  • Metering is the method used to measure the brightness of the object being photographed. Through metering, the camera can use its own automatic exposure algorithm to adjust the shooting parameters accordingly, so that the captured images can have proper exposure. There are multiple metering modes, such as evaluative metering, center-weighted average metering, spot metering, etc. Although these metering modes have their own applicable scenes, each metering mode still has its own limitations and cannot be applied in some scenes.
  • the embodiments of the present application provide a photometry method, a camera, an electronic device, and a computer-readable storage medium, which have wider applicability and break the limitations of the traditional photometry mode.
  • the first aspect of the embodiments of the present application provides a photometry method, including:
  • a second aspect of the embodiments of the present application provides a camera, including: a body, a lens connected to the body, an image sensor, a processor, and a memory storing a computer program provided in the body;
  • the image sensor is used to collect an image to be measured through the lens
  • the processor implements the following steps when executing the computer program:
  • a third aspect of the embodiments of the present application provides an electronic device, including: a camera mounted on the electronic device, a processor, and a memory storing a computer program;
  • the processor implements the following steps when executing the computer program:
  • the fourth aspect of the embodiments of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements any of the photometry provided in the above-mentioned first aspect. method.
  • the weight information corresponding to the pixel used when calculating the overall brightness of the light image to be metered is determined according to the category of the image content corresponding to the pixel.
  • Such a light metering method can focus on the image content itself. , Pay attention to different objects in the scene, and have wider scene applicability compared with the existing metering methods. Taking portrait photography as an example, if the evaluative metering mode is used, the brightness of the characters in the images taken under and without backlight is completely different. The reason for this is that evaluative metering cannot identify which part of the image is a person.
  • the light metering method provided by the embodiment focuses on the image content, so it can focus on people in various environments for light metering, so that the brightness of the people in the picture is relatively suitable regardless of whether it is shot under backlight or without backlight. .
  • Fig. 1 is a flowchart of a photometry method provided by an embodiment of the present application.
  • Fig. 2 is a schematic diagram of semantic segmentation provided by an embodiment of the present application.
  • Fig. 3 is a schematic structural diagram of a camera provided by an embodiment of the present application.
  • Fig. 4 is a schematic structural diagram of an unmanned aerial vehicle provided by an embodiment of the present application.
  • automatic exposure For electronic devices with shooting functions, automatic exposure (AE, Auto Exposure) is a very common function.
  • electronic devices such as smart phones, tablet computers, drones, cameras (including sports cameras, infrared cameras, etc.) are all equipped with automatic exposure algorithms in their software.
  • the automatic exposure algorithm can automatically adjust the camera's shooting parameters (mainly adjusting the three elements of exposure: aperture value, shutter time, and ISO) according to the metering results, so that the captured images have better effects in brightness and quality.
  • Metering is the method used to measure the brightness of the object being photographed.
  • photometry can be a process of calculating image brightness.
  • the image sensor collects an image, it can collect the brightness information corresponding to each pixel in the image. For the entire image, a brightness value is needed as the overall brightness of the image. It is easy to understand that when using multiple pixels
  • the corresponding brightness information calculates the overall brightness of an image, there are multiple calculation methods, and different calculation methods correspond to different metering modes, such as evaluative metering, center-weighted average metering, and spot metering.
  • evaluative metering is suitable for sceneries such as scenery and capturing.
  • it divides the viewfinder into several metering areas, and each metering area calculates the brightness separately and then integrates the weighting. Therefore, the overall brightness of the image calculated by the evaluative metering takes into account the conditions of each area of the image. After the shooting parameters are adjusted according to the overall brightness through the automatic exposure algorithm, the brightness of each area in the captured image is then taken. All are relatively moderate, and there will be no over-exposure or under-exposure in a certain area.
  • spot metering is another example.
  • Spot metering uses a small area (1% to 3%) in the center of the viewfinder screen as the reference point, and calculates the brightness of this small area as the overall brightness of the image. Therefore, it is based on the overall brightness. After the shooting parameters are adjusted, the brightness of the small area where the reference point is located in the captured image is moderate, while the part outside the small area may not be overexposed or underexposed.
  • each metering mode still has its own limitations, and there are many incompetent scenes.
  • an embodiment of the present application provides a photometry method, which can be applied to a camera or an electronic device equipped with a camera.
  • Fig. 1 is a flow chart of a photometry method provided by an embodiment of the present application. The method includes the following steps:
  • S101 Acquire brightness information corresponding to each of multiple pixels in the light image to be measured.
  • S103 Calculate the overall brightness of the light image to be measured according to the brightness information and weight information corresponding to each of the multiple pixels.
  • the image sensor When the image sensor collects an image, it can collect information corresponding to each pixel of the image, which includes the brightness information corresponding to each pixel.
  • the information corresponding to the pixel may include the luminance information of the Y channel and the chromaticity information of the UV channel.
  • the brightness information corresponding to the pixel can be easily obtained by those skilled in the art.
  • step S101 the brightness information corresponding to the required pixels can be obtained according to the photometry methods in different embodiments.
  • the category corresponding to the pixel is the category on the image content.
  • the image content is the content that can be visually observed and expressed on the image.
  • the pixel corresponding to the category can be the sky, ground, water, people, cars, plants, animals and other environmental and/or object categories, in another implementation, it can also be high temperature, low temperature, high radioactivity , Low-level radioactivity and other attributes.
  • the category of the image content corresponding to the pixel There are many ways to determine the category of the image content corresponding to the pixel. For example, in one implementation, after a certain target is identified in the image, the center point of the target can be located, and the center point near the center point is determined. The category corresponding to the pixels in the range is determined to be the category corresponding to the target. When recognizing a target in an image, you can also flexibly select a certain area in the image for recognition. For example, considering people’s shooting habits, you can only recognize the central part of the image, and assign the recognition result to the central part of the pixel. Corresponding categories, and the corresponding types of pixels in other parts can be directly the default types.
  • this can be achieved by semantic segmentation of the photometric image.
  • Semantic segmentation is to classify images at the pixel level. It can be considered that after semantic segmentation, each pixel in the image will be assigned a category. For example, the pixels corresponding to the sky in the image content can be assigned or labeled with the category information of the sky. (Category tag), the pixel of the building corresponding to the image content can be assigned or marked with the category information of the building.
  • the category information can be specifically represented by various symbols or combinations of symbols. For example, the category information of the sky can be 0, and the category information of the road can be 1 and so on.
  • semantic segmentation There are many ways to implement semantic segmentation. In one implementation, you can use traditional methods such as TextonForest, random forest classifier, gray-scale segmentation, etc., while in another implementation, you can use semantic segmentation models to perform semantics. segmentation. Specifically, the light image to be measured may be input to the semantic segmentation model to obtain the first semantic map output by the semantic segmentation model.
  • the semantic segmentation model may be a model based on deep learning. There are many kinds of semantic segmentation models based on deep learning.
  • the semantic segmentation model can choose the full convolutional neural network FCN model, which is based on the CNN model. Of course, U-Net, MultiScale and other models can also be used.
  • the first semantic map in a specific example, may be a matrix corresponding to the size of the photometric image.
  • FIG. 2 is a schematic diagram of semantic segmentation provided by an embodiment of the present application.
  • the size of the photometric image can be 12*9, that is, it includes 12*9 pixels, including people, sky, and road surfaces.
  • the output first semantic map can be obtained.
  • the first semantic map may be a matrix with a size of 12*9, each element of which corresponds to an area in the light image to be measured, and the value of each element corresponds to the category of the area. It can be seen that in the example of FIG.
  • the category information corresponding to the sky is 0, the category information corresponding to the road surface is 1, and the category information corresponding to the person is 2.
  • the example shown in Figure 2 is only an easy to understand example.
  • the size of the image in the example is different from the size of the actual image.
  • the size of the actual photometric image can be 4080*2720. , which includes 4080*2720 pixels.
  • the image input to the semantic segmentation model may not be the original image of the photometric image, but an image after the photometric image is down-sampled.
  • the weight information corresponding to each pixel of the photometric image can be determined through the first semantic map. But considering that when calculating the overall brightness of the image, it is not necessary to use the brightness information of all pixels of the light image to be measured (this approach will take up larger computing resources), therefore, in an optional implementation, the first semantic map may be down-sampled to obtain a second semantic map of a preset size, and then the weight information corresponding to the pixel is determined on the second semantic map.
  • the preset size corresponds to the size of the predetermined metering weight matrix.
  • the metering weight matrix is a matrix composed of weight information, and the value of each element in the matrix can correspond to a weight value. Through the dot product calculation of the matrix formed by the metering weight matrix and the corresponding brightness information, the overall brightness of the image can be calculated.
  • the metering weight matrix is usually much smaller than the size of the image. For example, the metering weight matrix can be 16 ⁇ 16 or 32 ⁇ 32.
  • the metering weight matrix you can first downsample the first semantic map to metering The size corresponding to the weight matrix is then used to determine the photometric weight matrix formed by the weight information by using the down-sampled semantic map (ie, the second semantic map).
  • the first semantic map may be divided into multiple sub-areas according to the size to be reduced (ie, the preset size).
  • the preset size is 32 ⁇ 32
  • the first semantic map may be divided into 32 ⁇ 32 sub-regions. area.
  • the category corresponding to each pixel can be counted, and the category with the highest proportion among the categories corresponding to each pixel is determined as the category corresponding to the sub-region. In this way, the matrix formed by the categories corresponding to each sub-region forms the second Semantic map.
  • the category corresponding to each pixel in the second semantic map can be matched with the target correspondence relationship, so as to determine the weight information corresponding to each pixel in the second semantic map.
  • the target correspondence relationship may be a correspondence relationship including weight information corresponding to each category, for example, category 0 corresponds to a weight value of 10, category 1 corresponds to a weight value of 4, and so on.
  • the target correspondence is also diverse in specific manifestations, such as tables, images, curves, and so on.
  • the target correspondence can be preset by the manufacturer and other internal personnel and configured in the product's memory, or the product's processor can also be automatically initialized to generate the target correspondence, and the target correspondence can be connected to the network when the target correspondence is generated. Obtained from the server, or generated according to the default settings. In another implementation, the target correspondence can also be customized by the user.
  • the user can increase the weight information corresponding to the power equipment in the target correspondence relationship, so that the power in the captured image
  • the brightness of the device is appropriate; for another example, in another scene, the user often uses the camera or the electronic device equipped with the camera to shoot people, then the user can increase the weight information corresponding to the person in the target correspondence relationship, so that the shooting The brightness of the characters in the resulting image is moderate.
  • the category-weight information correspondence in the target correspondence may also be adjusted according to the captured image.
  • the weight information corresponding to the category can be determined according to the proportion of the image area corresponding to the category in the photometric image. Specifically, for example, the person in the photometric image occupies 50% of the screen, and the sky occupies 25%. If the road occupies 25%, it can be considered that the user's main shooting object is a person, and the weight information corresponding to the person can be adjusted or determined to be larger, while the weight information corresponding to the sky and the road can be smaller. In this implementation, the weight information corresponding to the category with the largest proportion in the photometric image will also be the largest.
  • the weight information corresponding to the category may also be determined according to the position of the image area corresponding to the category in the photometric image. For example, for example, in the photometric image, the person is located in the central area, but only 15% of the photometric image, but the car next to the person is on the side of the image, but it is on the side of the image. The proportion of the image in the image is 50%.
  • the weight information corresponding to the character can be larger.
  • the category of the pixel corresponding to the central area of the image to be measured is the category with the largest weight information.
  • the photometric weight matrix After determining the weight information corresponding to each pixel in the second semantic map, that is, after the photometric weight matrix is determined, the photometric weight matrix can be multiplied by the brightness information matrix of the photometric image of the corresponding size to calculate the photometric image The overall brightness.
  • the photometric image of the corresponding size can also be obtained by down-sampling.
  • the photometric weight matrix is 32 ⁇ 32, and the photometric image can be down-sampled to a size of 32 ⁇ 32.
  • the calculated overall brightness can have multiple applications.
  • the overall brightness can be used to guide the adjustment of the camera's shooting parameters, or in other words, the calculated overall brightness can be provided to the automatic exposure algorithm to pass the automatic The exposure algorithm adjusts the shooting parameters of the camera.
  • the shooting parameters of the camera can be one or a combination of three elements of exposure (aperture value, shutter time, ISO).
  • the current ambient light brightness can be calculated or estimated according to the overall brightness and the current shooting parameters through the exposure equation of the APEX system.
  • the corresponding target shooting parameters can be determined by querying the exposure meter.
  • the current shooting parameters can be adjusted according to the target shooting parameters.
  • the calculated overall brightness can also be compared with the preset reference brightness or standard brightness, so as to output corresponding exposure prompts to the user, such as overexposure prompt and/or underexposure prompt hint.
  • the user can also give corresponding prompts when the user selects the shooting parameters. For example, when the user reduces the shutter time to 1/2000, it can prompt under-exposure for the shutter time of 1/2000, increasing to 1. At /125, overexposure etc. can be prompted for the shutter time of 1/125.
  • the weight information corresponding to the pixel used when calculating the overall brightness of the light image to be metered is determined according to the category of the image content corresponding to the pixel.
  • Such a light metering method can focus on the image content itself. , Pay attention to different objects in the scene, and have wider scene applicability compared with the existing metering methods. Taking portrait photography as an example, if the evaluative metering mode is used, the brightness of the characters in the images taken under and without backlight is completely different. The reason for this is that evaluative metering cannot identify which part of the image is a person.
  • the light metering method provided by the embodiment focuses on the image content, so it can focus on people in various environments for light metering, so that the brightness of the people in the picture is relatively suitable regardless of whether it is shot under backlight or without backlight. .
  • FIG. 3 is a schematic structural diagram of a camera provided by an embodiment of the present application.
  • the camera includes: a body 310, a lens 320 connected to the body, an image sensor 311, a processor 312, and a memory 313 storing computer programs in the body;
  • the image sensor 311 is used to collect an image to be measured through the lens 320;
  • the processor 312 implements the following steps when executing the computer program:
  • the category of the image content corresponding to the pixel is obtained by semantically segmenting the light image to be measured.
  • the processor executes the step of semantically segmenting the light image to be measured, it is used to input the light image to be measured into a semantic segmentation model to obtain a first semantic map output by the semantic segmentation model ;
  • the first semantic map includes the category of the image content corresponding to the pixel.
  • the semantic segmentation model is a pre-trained convolutional neural network CNN model.
  • the image input to the semantic segmentation model is the down-sampled photometric image.
  • the processor is further configured to down-sample the first semantic map to obtain a second semantic map of a preset size before determining the weight information corresponding to the pixel through the first semantic map .
  • the preset size corresponds to a predetermined size of the photometric weight matrix.
  • the processor when the processor executes the step of down-sampling the first semantic map, the processor is configured to divide the first semantic map into a plurality of sub-areas according to the preset size; and determine each of the The category corresponding to the sub-region; the category corresponding to the sub-region is the category with the highest proportion among the categories corresponding to the pixels in the sub-region; the second semantic map is generated according to the category corresponding to each of the sub-regions.
  • the weight information is determined according to the corresponding relationship between the category of the image content corresponding to the pixel and the target, and the target corresponding relationship includes weight information corresponding to each category.
  • the target correspondence relationship is preset by the user or the system.
  • the weight information corresponding to each category is determined according to the proportion of the image area corresponding to the category in the photometric image.
  • the image area corresponding to the category with the largest weight information occupies the largest proportion in the photometric image.
  • the weight information corresponding to each category is determined according to the position of the image area corresponding to the category in the photometric image.
  • the image area corresponding to the category with the largest weight information is located in the center of the photometric image.
  • the overall brightness is used to guide the adjustment of shooting parameters.
  • the processor executes the step of adjusting the shooting parameters according to the overall brightness, it is used to determine the brightness of the ambient light according to the overall brightness and the current shooting parameters; and to determine the target shooting parameters according to the brightness of the ambient light ; Adjust the current shooting parameters according to the target shooting parameters.
  • the shooting parameters include any one of the following: aperture value, shutter time, and sensitivity ISO.
  • the overall brightness is used to compare with a preset reference brightness to output a corresponding exposure prompt.
  • the exposure prompt includes: an overexposure prompt and/or an underexposure prompt.
  • the weight information corresponding to the pixel used when calculating the overall brightness of the light image to be measured is determined according to the category of the image content corresponding to the pixel. In this way, the image content itself can be focused on the scene. Compared with the existing camera's metering method, it has wider scene applicability. Taking portrait photography as an example, if the evaluative metering mode is used, the brightness of the characters in the images taken under and without backlight is completely different. The reason for this is that evaluative metering cannot identify which part of the image is a person. It integrates the brightness of each area in the screen, and these areas contain objects such as the sky or the road that the user does not care about. However, this application The camera provided by the embodiment focuses on the image content, so it can perform light metering focusing on the person in various environments, so that the brightness of the person in the picture is relatively suitable whether it is shot under backlight or without backlight.
  • the foregoing process may also be executed by a device including a processor and a memory, and the image sensor of another device may send the collected image to the device to execute the process involved in the foregoing photometry method.
  • FIG. 4 is a schematic structural diagram of a drone provided by an embodiment of the present application.
  • the drone includes a camera 401 and a processor 402 mounted on the drone. And a memory 403 storing computer programs.
  • the processor 402 implements the following steps when executing the computer program:
  • the category of the image content corresponding to the pixel is obtained by performing semantic segmentation on the light image to be measured.
  • the processor executes the step of semantically segmenting the light image to be measured, it is used to input the light image to be measured into a semantic segmentation model to obtain a first semantic map output by the semantic segmentation model ;
  • the first semantic map includes the category of the image content corresponding to the pixel.
  • the semantic segmentation model is a pre-trained convolutional neural network CNN model.
  • the image input to the semantic segmentation model is the down-sampled photometric image.
  • the processor is further configured to down-sample the first semantic map to obtain a second semantic map of a preset size before determining the weight information corresponding to the pixel through the first semantic map .
  • the preset size corresponds to a predetermined size of the photometric weight matrix.
  • the processor when the processor executes the step of down-sampling the first semantic map, the processor is configured to divide the first semantic map into a plurality of sub-regions according to the preset size; and determine each of the The category corresponding to the sub-region; the category corresponding to the sub-region is the category with the highest proportion among the categories corresponding to the pixels in the sub-region; and the second semantic map is generated according to the category corresponding to each of the sub-regions.
  • the weight information is determined according to the corresponding relationship between the category of the image content corresponding to the pixel and the target, and the target corresponding relationship includes weight information corresponding to each category.
  • the target correspondence relationship is preset by the user or the system.
  • the weight information corresponding to each category is determined according to the proportion of the image area corresponding to the category in the photometric image.
  • the image area corresponding to the category with the largest weight information occupies the largest proportion in the photometric image.
  • the weight information corresponding to each category is determined according to the position of the image area corresponding to the category in the photometric image.
  • the image area corresponding to the category with the largest weight information is located in the center of the photometric image.
  • the overall brightness is used to guide the adjustment of shooting parameters.
  • the processor executes the step of adjusting the shooting parameters according to the overall brightness, it is used to determine the brightness of the ambient light according to the overall brightness and the current shooting parameters; and to determine the target shooting parameters according to the brightness of the ambient light ; Adjust the current shooting parameters according to the target shooting parameters.
  • the shooting parameters include any one of the following: aperture value, shutter time, and sensitivity ISO.
  • the overall brightness is used to compare with a preset reference brightness to output a corresponding exposure prompt.
  • the exposure prompt includes: an overexposure prompt and/or an underexposure prompt.
  • the electronic equipment includes a drone.
  • the weight information corresponding to the pixels used by the camera to calculate the overall brightness of the light image to be measured is determined according to the category of the image content corresponding to the pixel, so that the camera can focus on the image
  • portrait photography if the evaluative metering mode is used, the brightness of the characters in the images taken under and without backlight is completely different. The reason for this is that evaluative metering cannot identify which part of the image is a person.
  • the drone due to the focus on the content of the image, can measure light focusing on the characters in various environments. In this way, the brightness of the characters in the picture is relatively suitable regardless of whether it is shot under backlight or without backlight. .
  • the embodiments of the present application may adopt the form of a computer program product implemented on one or more storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing program codes.
  • Computer usable storage media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology.
  • the information can be computer-readable instructions, data structures, program modules, or other data.
  • Examples of computer storage media include, but are not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices.
  • PRAM phase change memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • RAM random access memory
  • ROM read-only memory
  • EEPROM electrically erasable programmable read-only memory
  • flash memory or other memory technology
  • CD-ROM compact disc
  • DVD digital versatile disc
  • Magnetic cassettes magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Exposure Control For Cameras (AREA)

Abstract

The embodiments of the present application disclose a metering method, comprising: acquiring brightness information respectively corresponding to a plurality of pixels in an image to be metered; determining weight information respectively corresponding to the plurality of pixels, the weight information being determined according to the category of image content corresponding to the pixels; and calculating the overall brightness of said image according to the brightness information and the weight information respectively corresponding to the plurality of pixels. In the metering method, when calculating the overall brightness of said image, the weight information corresponding to the pixels used is determined according to the category of image content corresponding to the pixels; in this way, a camera can focus on the image content itself, and focus on different objects in a scene. Compared with the existing metering method, the present invention has broader scene applications.

Description

测光方法、相机、电子设备、计算机可读存储介质Photometry method, camera, electronic device, computer readable storage medium 技术领域Technical field
本申请涉及图像处理技术领域,尤其涉及一种测光方法、相机、电子设备及计算机可读存储介质。This application relates to the field of image processing technology, and in particular to a photometry method, a camera, an electronic device, and a computer-readable storage medium.
背景技术Background technique
测光,是测定被拍摄物体亮度的所采用的方式。通过测光,相机可以利用自身的自动曝光算法对拍摄参数的进行相应的调整,以使拍摄出的图像能够有合适的曝光。现有多种测光模式,如评价测光、中央重点平均测光、点测光等。这些测光模式虽然都有各自适用的场景,但每种测光模式仍然有自身的局限性,在一些场景下无法适用。Metering is the method used to measure the brightness of the object being photographed. Through metering, the camera can use its own automatic exposure algorithm to adjust the shooting parameters accordingly, so that the captured images can have proper exposure. There are multiple metering modes, such as evaluative metering, center-weighted average metering, spot metering, etc. Although these metering modes have their own applicable scenes, each metering mode still has its own limitations and cannot be applied in some scenes.
发明内容Summary of the invention
有鉴于此,本申请实施例提供一种测光方法、相机、电子设备及计算机可读存储介质,在适用性上更广,打破传统测光模式的局限性。In view of this, the embodiments of the present application provide a photometry method, a camera, an electronic device, and a computer-readable storage medium, which have wider applicability and break the limitations of the traditional photometry mode.
本申请实施例第一方面提供一种测光方法,包括:The first aspect of the embodiments of the present application provides a photometry method, including:
获取待测光图像中多个像素各自对应的亮度信息;Obtain the brightness information corresponding to each of the multiple pixels in the light image to be measured;
确定所述多个像素各自对应的权重信息;其中,所述权重信息是根据所述像素对应的图像内容的类别确定的;Determining weight information corresponding to each of the multiple pixels; wherein the weight information is determined according to the category of the image content corresponding to the pixel;
根据所述多个像素各自对应的所述亮度信息与所述权重信息,计算所述待测光图像的整体亮度。Calculate the overall brightness of the light image to be measured according to the brightness information and the weight information corresponding to each of the plurality of pixels.
本申请实施例第二方面提供一种相机,包括:机身,与所述机身连接的镜头,设置在所述机身内的图像传感器、处理器与存储有计算机程序的存储器;A second aspect of the embodiments of the present application provides a camera, including: a body, a lens connected to the body, an image sensor, a processor, and a memory storing a computer program provided in the body;
所述图像传感器用于,通过所述镜头采集待测光图像;The image sensor is used to collect an image to be measured through the lens;
所述处理器在执行所述计算机程序时实现以下步骤:The processor implements the following steps when executing the computer program:
从所述图像传感器获取所述待测光图像中多个像素各自对应的亮度信息;Acquiring, from the image sensor, brightness information corresponding to each of the plurality of pixels in the light image to be measured;
确定所述多个像素各自对应的权重信息;其中,所述权重信息是根据所述像素对应的图像内容的类别确定的;Determining weight information corresponding to each of the multiple pixels; wherein the weight information is determined according to the category of the image content corresponding to the pixel;
根据所述多个像素各自对应的所述亮度信息与所述权重信息,计算所述待测光图 像的整体亮度。Calculate the overall brightness of the light image to be measured according to the brightness information and the weight information corresponding to each of the plurality of pixels.
本申请实施例第三方面提供一种电子设备,包括:搭载在所述电子设备上的相机、处理器与存储有计算机程序的存储器;A third aspect of the embodiments of the present application provides an electronic device, including: a camera mounted on the electronic device, a processor, and a memory storing a computer program;
所述处理器在执行所述计算机程序时实现以下步骤:The processor implements the following steps when executing the computer program:
通过所述相机获取待测光图像中多个像素各自对应的亮度信息;Acquiring, by the camera, brightness information corresponding to each of multiple pixels in the light image to be measured;
确定所述多个像素各自对应的权重信息;其中,所述权重信息是根据所述像素对应的图像内容的类别确定的;Determining weight information corresponding to each of the multiple pixels; wherein the weight information is determined according to the category of the image content corresponding to the pixel;
根据所述多个像素各自对应的所述亮度信息与所述权重信息,计算所述待测光图像的整体亮度。Calculate the overall brightness of the light image to be measured according to the brightness information and the weight information corresponding to each of the plurality of pixels.
本申请实施例第四方面提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如上述第一方面提供的任一种测光方法。The fourth aspect of the embodiments of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements any of the photometry provided in the above-mentioned first aspect. method.
本申请实施例提供的测光方法,在计算待测光图像的整体亮度时利用的像素对应的权重信息是根据像素对应的图像内容的类别确定的,这样的测光方法可以关注到图像内容本身,关注到场景中的不同对象,相比现有的测光方法,拥有更广的场景适用性。以人物拍摄为例,若采用评价测光模式,则在背光和不背光下拍摄出的图像中人物的亮度是截然不同的。之所以如此,是因为评价测光并不能识别出图像中哪一部分是人物,其综合了画面中的各个区域的亮度,而这些区域中就包含用户并不在乎的天空或者路面等对象,但本申请实施例提供的测光方法,由于关注到图像内容,因此可以在各种环境下都以人物为重点进行测光,如此,无论是在背光还是不背光下拍摄,画面中人物的亮度都相对合适。In the light metering method provided by the embodiments of this application, the weight information corresponding to the pixel used when calculating the overall brightness of the light image to be metered is determined according to the category of the image content corresponding to the pixel. Such a light metering method can focus on the image content itself. , Pay attention to different objects in the scene, and have wider scene applicability compared with the existing metering methods. Taking portrait photography as an example, if the evaluative metering mode is used, the brightness of the characters in the images taken under and without backlight is completely different. The reason for this is that evaluative metering cannot identify which part of the image is a person. It integrates the brightness of each area in the screen, and these areas contain objects such as the sky or the road that the user does not care about. However, this application The light metering method provided by the embodiment focuses on the image content, so it can focus on people in various environments for light metering, so that the brightness of the people in the picture is relatively suitable regardless of whether it is shot under backlight or without backlight. .
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained from these drawings without creative labor.
图1是本申请实施例提供的一种测光方法的流程图。Fig. 1 is a flowchart of a photometry method provided by an embodiment of the present application.
图2是本申请实施例提供的语义分割示意图。Fig. 2 is a schematic diagram of semantic segmentation provided by an embodiment of the present application.
图3是本申请实施例提供的一种相机的结构示意图。Fig. 3 is a schematic structural diagram of a camera provided by an embodiment of the present application.
图4是本申请实施例提供的一种无人机的结构示意图。Fig. 4 is a schematic structural diagram of an unmanned aerial vehicle provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
对于具有拍摄功能的电子设备而言,自动曝光(AE,Auto Exposure)是一种非常常见的功能。比如智能手机、平板电脑、无人机、相机(包括运动相机、红外相机等)等电子设备,其软件部分都配置有自动曝光算法。自动曝光算法可以根据测光结果自动调整相机的拍摄参数(主要是调整曝光三要素:光圈值、快门时间、感光度ISO),使得拍摄得到的图像在亮度和质量上都有较好的效果。For electronic devices with shooting functions, automatic exposure (AE, Auto Exposure) is a very common function. For example, electronic devices such as smart phones, tablet computers, drones, cameras (including sports cameras, infrared cameras, etc.) are all equipped with automatic exposure algorithms in their software. The automatic exposure algorithm can automatically adjust the camera's shooting parameters (mainly adjusting the three elements of exposure: aperture value, shutter time, and ISO) according to the metering results, so that the captured images have better effects in brightness and quality.
测光,是测定被拍摄物体亮度的所采用的方式。具体到图像数据层面,测光可以是计算图像亮度的过程。图像传感器在采集图像时,可以采集到图像中每一个像素点对应的亮度信息,而对于整幅图像而言,需要用一个亮度值来作为该图像的整体亮度,容易理解,在利用多个像素对应的亮度信息计算出一个图像的整体亮度时,可以有多种计算方式,而不同的计算方式对应着不同的测光模式,比如评价测光、中央重点平均测光、点测光等。Metering is the method used to measure the brightness of the object being photographed. Specific to the image data level, photometry can be a process of calculating image brightness. When the image sensor collects an image, it can collect the brightness information corresponding to each pixel in the image. For the entire image, a brightness value is needed as the overall brightness of the image. It is easy to understand that when using multiple pixels When the corresponding brightness information calculates the overall brightness of an image, there are multiple calculation methods, and different calculation methods correspond to different metering modes, such as evaluative metering, center-weighted average metering, and spot metering.
不同的测光模式可以满足不同的拍摄场景。比如评价测光,其适合用于风景、抓拍等场景,具体在测光方式上,其将取景画面划分为若干个测光区域,每个测光区域单独计算亮度后再整合加权。因此,评价测光计算出的图像的整体亮度兼顾了图像各区域的情况,在通过自动曝光算法依据该整体亮度对拍摄参数进行调整后,再进行拍摄时,拍摄出的图像中各区域的亮度都比较适中,不会有某区域出现过曝或者欠曝。又比如点测光,点测光以取景画面中央的小范围区域(1%到3%)作为基准点,计算出该小区域的亮度作为图像的整体亮度,因此,以该整体亮度为依据进行拍摄参数调整之后,拍摄出的图像中基准点所在的小区域的亮度是适中的,而小区域以外的部分则未必,有可能出现过曝或者欠曝。Different metering modes can meet different shooting scenes. For example, evaluative metering is suitable for sceneries such as scenery and capturing. In terms of metering method, it divides the viewfinder into several metering areas, and each metering area calculates the brightness separately and then integrates the weighting. Therefore, the overall brightness of the image calculated by the evaluative metering takes into account the conditions of each area of the image. After the shooting parameters are adjusted according to the overall brightness through the automatic exposure algorithm, the brightness of each area in the captured image is then taken. All are relatively moderate, and there will be no over-exposure or under-exposure in a certain area. Another example is spot metering. Spot metering uses a small area (1% to 3%) in the center of the viewfinder screen as the reference point, and calculates the brightness of this small area as the overall brightness of the image. Therefore, it is based on the overall brightness. After the shooting parameters are adjusted, the brightness of the small area where the reference point is located in the captured image is moderate, while the part outside the small area may not be overexposed or underexposed.
上述的各种测光模式虽然都有各自适用的场景,但每种测光模式仍然有其自身的局限性,无法胜任的场景有很多。Although the various metering modes mentioned above have their own applicable scenes, each metering mode still has its own limitations, and there are many incompetent scenes.
为此,本申请实施例提供一种测光方法,该测光方法可以应用于相机或者搭载有 相机的电子设备。可以参见图1,图1是本申请实施例提供的一种测光方法的流程图,该方法包括以下步骤:To this end, an embodiment of the present application provides a photometry method, which can be applied to a camera or an electronic device equipped with a camera. Refer to Fig. 1, which is a flow chart of a photometry method provided by an embodiment of the present application. The method includes the following steps:
S101、获取待测光图像中多个像素各自对应的亮度信息。S101: Acquire brightness information corresponding to each of multiple pixels in the light image to be measured.
S102、根据所述多个像素对应的图像内容的类别,确定所述多个像素各自对应的权重信息。S102. Determine weight information corresponding to each of the multiple pixels according to the category of the image content corresponding to the multiple pixels.
S103、根据所述多个像素各自对应的亮度信息与权重信息,计算待测光图像的整体亮度。S103: Calculate the overall brightness of the light image to be measured according to the brightness information and weight information corresponding to each of the multiple pixels.
图像传感器在采集图像时,可以采集到图像的每个像素对应的信息,其中,就包括每个像素对应的亮度信息。比如,在一种实施中,若采用YUV的颜色编码方式,则像素对应的信息可以包括Y通道的亮度信息与UV通道的色度信息。总之,对于像素对应的亮度信息,本领域技术人员是容易获得的。When the image sensor collects an image, it can collect information corresponding to each pixel of the image, which includes the brightness information corresponding to each pixel. For example, in an implementation, if the YUV color coding method is adopted, the information corresponding to the pixel may include the luminance information of the Y channel and the chromaticity information of the UV channel. In short, the brightness information corresponding to the pixel can be easily obtained by those skilled in the art.
而在进行测光时,并不一定要利用到待测光图像的所有像素的亮度信息。比如现有的一些测光模式,如点测光、局部测光等,都只是利用了图像的部分区域像素的亮度信息进行测光。因此,在步骤S101中,可以根据不同实施方式下的测光方法,获取需要的像素对应的亮度信息。When performing photometry, it is not necessary to use the brightness information of all pixels of the photometric image. For example, some existing metering modes, such as spot metering, partial metering, etc., only use the brightness information of pixels in a part of the image for metering. Therefore, in step S101, the brightness information corresponding to the required pixels can be obtained according to the photometry methods in different embodiments.
像素对应的类别是图像内容上的类别,具体而言,图像内容是可以通过视觉观察到的表现在图像上的内容。在一种实施中,像素对应的类别可以是天空、地面、水面、人、汽车、植物、动物等环境和/或物体的类别,在另一种实施中,还可以是高温、低温、高放射性、低放射性等属性上的类别。The category corresponding to the pixel is the category on the image content. Specifically, the image content is the content that can be visually observed and expressed on the image. In one implementation, the pixel corresponding to the category can be the sky, ground, water, people, cars, plants, animals and other environmental and/or object categories, in another implementation, it can also be high temperature, low temperature, high radioactivity , Low-level radioactivity and other attributes.
在确定像素对应的图像内容的类别时,可以有多种方式,比如,在一种实施中,可以在图像中识别到某个目标后,定位该目标的中心点,并将中心点附近一个确定范围内的像素对应的类别确定是该目标对应的类别。在识别图像中的目标时,也可以灵活的选择图像中的某个区域进行识别,比如考虑到人们的拍摄习惯,可以仅对中央部分的图像进行识别,对该中央部分的像素赋予与识别结果对应的类别,而其他部分的像素对应的类型可以直接是默认类型。There are many ways to determine the category of the image content corresponding to the pixel. For example, in one implementation, after a certain target is identified in the image, the center point of the target can be located, and the center point near the center point is determined. The category corresponding to the pixels in the range is determined to be the category corresponding to the target. When recognizing a target in an image, you can also flexibly select a certain area in the image for recognition. For example, considering people’s shooting habits, you can only recognize the central part of the image, and assign the recognition result to the central part of the pixel. Corresponding categories, and the corresponding types of pixels in other parts can be directly the default types.
在另一种实施中,可以通过对待测光图像进行语义分割来实现。语义分割是在像素级别上对图像进行分类,可以认为,图像中每一个像素在进行语义分割后,都会被赋予一个类别,比如图像内容对应天空的像素可以被赋予或者说标注一个天空的类别信息(类别标签),图像内容对应建筑物的像素可以被赋予或标注建筑物的类别信息。类别信息具体可以用各种符号或符号的组合表示,比如天空的类别信息可以用0,路面的类别信息可以用1等。In another implementation, this can be achieved by semantic segmentation of the photometric image. Semantic segmentation is to classify images at the pixel level. It can be considered that after semantic segmentation, each pixel in the image will be assigned a category. For example, the pixels corresponding to the sky in the image content can be assigned or labeled with the category information of the sky. (Category tag), the pixel of the building corresponding to the image content can be assigned or marked with the category information of the building. The category information can be specifically represented by various symbols or combinations of symbols. For example, the category information of the sky can be 0, and the category information of the road can be 1 and so on.
语义分割在具体实现时有多种方法,在一种实施中,可以使用传统的方法如TextonForest、随机森林分类器、灰度分割等,而在另一种实施中,可以通过语义分割模型进行语义分割。具体的,可以将待测光图像输入语义分割模型,得到语义分割模型输出的第一语义地图。There are many ways to implement semantic segmentation. In one implementation, you can use traditional methods such as TextonForest, random forest classifier, gray-scale segmentation, etc., while in another implementation, you can use semantic segmentation models to perform semantics. segmentation. Specifically, the light image to be measured may be input to the semantic segmentation model to obtain the first semantic map output by the semantic segmentation model.
语义分割模型可以是基于深度学习的模型。而基于深度学习的语义分割模型有多种,在一种可选的实施中,语义分割模型可以选择全卷积神经网络FCN模型,FCN模型是基于CNN模型的。当然,也可以选用U-Net、MultiScale等模型。The semantic segmentation model may be a model based on deep learning. There are many kinds of semantic segmentation models based on deep learning. In an optional implementation, the semantic segmentation model can choose the full convolutional neural network FCN model, which is based on the CNN model. Of course, U-Net, MultiScale and other models can also be used.
第一语义地图,在一个具体例子中,可以是一个与待测光图像的尺寸对应的矩阵。可以参见图2,图2是本申请实施例提供的语义分割示意图。图2中,待测光图像的尺寸可以是12*9,即包括12*9个像素,其中包括有人物、天空、路面。对该待测光图像进行语义分割后,可以得到输出的第一语义地图。第一语义地图中可以是一个12*9大小的矩阵,其中的每一个元素与待测光图像中的一个区域相对应,每一个元素的值上对应的是区域的类别。可见,在图2的例子中,天空对应的类别信息是0,路面对应的类别信息是1,人物对应的类别信息是2。需要说明的是,图2所示的例子仅是一个方便理解的例子,例子中图像的尺寸与实际中的图像的尺寸是有差别的,比如实际中待测光图像的尺寸可以是4080*2720,即包括4080*2720个像素。The first semantic map, in a specific example, may be a matrix corresponding to the size of the photometric image. Refer to FIG. 2, which is a schematic diagram of semantic segmentation provided by an embodiment of the present application. In Figure 2, the size of the photometric image can be 12*9, that is, it includes 12*9 pixels, including people, sky, and road surfaces. After semantic segmentation is performed on the light image to be measured, the output first semantic map can be obtained. The first semantic map may be a matrix with a size of 12*9, each element of which corresponds to an area in the light image to be measured, and the value of each element corresponds to the category of the area. It can be seen that in the example of FIG. 2, the category information corresponding to the sky is 0, the category information corresponding to the road surface is 1, and the category information corresponding to the person is 2. It should be noted that the example shown in Figure 2 is only an easy to understand example. The size of the image in the example is different from the size of the actual image. For example, the size of the actual photometric image can be 4080*2720. , Which includes 4080*2720 pixels.
容易理解,为了减少语义分割的计算量,输入语义分割模型的图像也可以不是待测光图像的原图,而是对待测光图像进行下采样后的图像。It is easy to understand that, in order to reduce the amount of calculation of semantic segmentation, the image input to the semantic segmentation model may not be the original image of the photometric image, but an image after the photometric image is down-sampled.
由于第一语义地图中包含了待测光图像各个像素对应的类别信息,因此可以通过第一语义地图确定待测光图像各个像素对应的权重信息。但考虑到在计算图像的整体亮度时,并不需要用到待测光图像所有像素的亮度信息(这种做法会占用较大的计算资源),因此,在一种可选的实施中,在通过第一语义地图确定像素对应的权重信息之前,可以先对第一语义地图进行下采样,得到预设尺寸的第二语义地图,再将对第二语义地图确定像素对应的权重信息。Since the first semantic map contains category information corresponding to each pixel of the photometric image, the weight information corresponding to each pixel of the photometric image can be determined through the first semantic map. But considering that when calculating the overall brightness of the image, it is not necessary to use the brightness information of all pixels of the light image to be measured (this approach will take up larger computing resources), therefore, in an optional implementation, Before determining the weight information corresponding to the pixel through the first semantic map, the first semantic map may be down-sampled to obtain a second semantic map of a preset size, and then the weight information corresponding to the pixel is determined on the second semantic map.
需要说明的是,预设尺寸是与预先确定的测光权重矩阵的大小相对应的。测光权重矩阵是权重信息构成的矩阵,矩阵中的每个元素的值可以对应一个权重值。通过该测光权重矩阵与对应的亮度信息构成的矩阵进行点乘计算,则可以计算出图像的整体亮度。测光权重矩阵通常比图像的尺寸小很多,比如测光权重矩阵可以是16×16或32×32的大小,因此,为确定测光权重矩阵,可以先将第一语义地图下采样至测光权重矩阵对应的大小,再利用下采样后的语义地图(即第二语义地图)确定权重信息构成的测光权重矩阵。It should be noted that the preset size corresponds to the size of the predetermined metering weight matrix. The metering weight matrix is a matrix composed of weight information, and the value of each element in the matrix can correspond to a weight value. Through the dot product calculation of the matrix formed by the metering weight matrix and the corresponding brightness information, the overall brightness of the image can be calculated. The metering weight matrix is usually much smaller than the size of the image. For example, the metering weight matrix can be 16×16 or 32×32. Therefore, to determine the metering weight matrix, you can first downsample the first semantic map to metering The size corresponding to the weight matrix is then used to determine the photometric weight matrix formed by the weight information by using the down-sampled semantic map (ie, the second semantic map).
在对第一语义地图进行下采样时,通常的做法是,对矩阵隔行隔列进行下采样,但本申请实施例提供了一种可选的实施方式,可以得到更能准确反映第一语义地图整体的第二语义地图。具体的,可以根据要缩小至的尺寸(即预设尺寸),将第一语义地图划分为多个子区域,比如预设尺寸是32×32,而可以将第一语义地图划分为32×32个子区域。针对每个子区域,可以统计其中各个像素对应的类别,并确定在各像素对应的类别中占比最高的类别为该子区域对应的类别,如此,各个子区域对应的类别构成的矩阵形成第二语义地图。When down-sampling the first semantic map, the usual approach is to down-sample the matrix every other row and every column. However, the embodiment of the present application provides an optional implementation manner to obtain a more accurate reflection of the first semantic map. The overall second semantic map. Specifically, the first semantic map may be divided into multiple sub-areas according to the size to be reduced (ie, the preset size). For example, the preset size is 32×32, and the first semantic map may be divided into 32×32 sub-regions. area. For each sub-region, the category corresponding to each pixel can be counted, and the category with the highest proportion among the categories corresponding to each pixel is determined as the category corresponding to the sub-region. In this way, the matrix formed by the categories corresponding to each sub-region forms the second Semantic map.
在通过第二语义地图确定像素对应的权重信息时,可以将第二语义地图中各像素对应的类别与目标对应关系进行匹配,从而确定第二语义地图中各像素对应权重信息。目标对应关系可以是包括各个类别对应的权重信息的对应关系,比如,类别0对应权重值10、类别1对应权重值4……。该目标对应关系在具体表现形式上也多种多样,比如可以是表格、图像、曲线等等。When determining the weight information corresponding to the pixel through the second semantic map, the category corresponding to each pixel in the second semantic map can be matched with the target correspondence relationship, so as to determine the weight information corresponding to each pixel in the second semantic map. The target correspondence relationship may be a correspondence relationship including weight information corresponding to each category, for example, category 0 corresponds to a weight value of 10, category 1 corresponds to a weight value of 4, and so on. The target correspondence is also diverse in specific manifestations, such as tables, images, curves, and so on.
在一种实施中,目标对应关系可以由生产商等内部人员预先设定并配置在产品的存储器中,或者,也可以由产品的处理器自动的初始化生成目标对应关系,生成目标对应关系时联网从服务器中获取,也可以根据默认的设定生成。在另一种实施中,目标对应关系也可以由用户进行自定义。比如在一种场景中,用户较多的利用相机或搭载该相机的电子设备拍摄电力设备,则用户可以在目标对应关系中将电力设备对应的权重信息增大,从而使拍摄出的图像中电力设备的亮度合适;又比如在另一种场景中,用户较多的利用相机或搭载该相机的电子设备拍摄人物,则用户可以在目标对应关系中将人物对应的权重信息增大,从而使拍摄出的图像中人物的亮度适中。In an implementation, the target correspondence can be preset by the manufacturer and other internal personnel and configured in the product's memory, or the product's processor can also be automatically initialized to generate the target correspondence, and the target correspondence can be connected to the network when the target correspondence is generated. Obtained from the server, or generated according to the default settings. In another implementation, the target correspondence can also be customized by the user. For example, in a scene, users often use cameras or electronic devices equipped with the camera to take pictures of power equipment, then the user can increase the weight information corresponding to the power equipment in the target correspondence relationship, so that the power in the captured image The brightness of the device is appropriate; for another example, in another scene, the user often uses the camera or the electronic device equipped with the camera to shoot people, then the user can increase the weight information corresponding to the person in the target correspondence relationship, so that the shooting The brightness of the characters in the resulting image is moderate.
在一种实施中,目标对应关系中的类别—权重信息的对应关系还可以根据拍摄出的图像进行调整。比如,类别对应的权重信息可以根据该类别对应的图像区域在待测光图像中的占比确定,具体的,比如,待测光图像中人物占了画面的50%,天空占了25%,路面占了25%,则可以认为用户的主要拍摄对象是人物,可以调整或确定人物对应的权重信息大一些,而天空和路面对应的权重信息可以小一些。在这种实施中,在待测光图像中占比最大的类别对应的权重信息也将是最大的。In an implementation, the category-weight information correspondence in the target correspondence may also be adjusted according to the captured image. For example, the weight information corresponding to the category can be determined according to the proportion of the image area corresponding to the category in the photometric image. Specifically, for example, the person in the photometric image occupies 50% of the screen, and the sky occupies 25%. If the road occupies 25%, it can be considered that the user's main shooting object is a person, and the weight information corresponding to the person can be adjusted or determined to be larger, while the weight information corresponding to the sky and the road can be smaller. In this implementation, the weight information corresponding to the category with the largest proportion in the photometric image will also be the largest.
在又一种实施中,目标对应关系中,类别对应的权重信息还可以根据该类别对应的图像区域在待测光图像中的位置确定。可以举个例子,比如待测光图像中,人物位于中央区域的位置,但在待测光图像中的占比仅有15%,但人物旁边的汽车位于图像的侧部,但在待测光图像中的占比是50%,则在本实施中,虽然人物占比较小,但人物位于图像的中央位置,因此人物对应的权重信息可以大一些,而汽车虽然占比较大, 但位于图像的侧部,因此汽车对应的权重信息可以小一些。在这种实施中,位于待测光图像的中央区域对应的像素的类别是权重信息最大的类别。In another implementation, in the target correspondence relationship, the weight information corresponding to the category may also be determined according to the position of the image area corresponding to the category in the photometric image. For example, for example, in the photometric image, the person is located in the central area, but only 15% of the photometric image, but the car next to the person is on the side of the image, but it is on the side of the image. The proportion of the image in the image is 50%. In this implementation, although the character is relatively small, the character is located in the center of the image. Therefore, the weight information corresponding to the character can be larger. Although the car is relatively large, it is located in the image. Side, so the weight information corresponding to the car can be smaller. In this implementation, the category of the pixel corresponding to the central area of the image to be measured is the category with the largest weight information.
在确定第二语义地图中各像素对应权重信息之后,即在测光权重矩阵确定之后,可以将测光权重矩阵与对应尺寸的待测光图像的亮度信息矩阵点乘,计算出待测光图像的整体亮度。其中,对应尺寸的待测光图像也可以通过下采样获得,比如测光权重矩阵是32×32大小的,则可以将待测光图像相应的下采样至32×32的尺寸。After determining the weight information corresponding to each pixel in the second semantic map, that is, after the photometric weight matrix is determined, the photometric weight matrix can be multiplied by the brightness information matrix of the photometric image of the corresponding size to calculate the photometric image The overall brightness. Wherein, the photometric image of the corresponding size can also be obtained by down-sampling. For example, the photometric weight matrix is 32×32, and the photometric image can be down-sampled to a size of 32×32.
计算出的整体亮度可以有多种应用,比如,在一种应用中,整体亮度可以用于指导相机的拍摄参数的调整,或者说,计算出的整体亮度可以提供给自动曝光算法,以通过自动曝光算法对相机的拍摄参数进行调整。容易理解,相机的拍摄参数可以是曝光三要素(光圈值、快门时间、ISO)中的一种或数种的组合。The calculated overall brightness can have multiple applications. For example, in one application, the overall brightness can be used to guide the adjustment of the camera's shooting parameters, or in other words, the calculated overall brightness can be provided to the automatic exposure algorithm to pass the automatic The exposure algorithm adjusts the shooting parameters of the camera. It is easy to understand that the shooting parameters of the camera can be one or a combination of three elements of exposure (aperture value, shutter time, ISO).
在具体根据整体亮度对拍摄参数进行调整时,可以先根据该整体亮度与当前拍摄参数,通过APEX系统的曝光方程,推算或估计出当前的环境光亮度。根据确定出的环境光亮度,可以通过查询曝光表等方式,确定相应的目标拍摄参数。进而,可以根据该目标拍摄参数对当前拍摄参数进行调整。When the shooting parameters are specifically adjusted according to the overall brightness, the current ambient light brightness can be calculated or estimated according to the overall brightness and the current shooting parameters through the exposure equation of the APEX system. According to the determined ambient light brightness, the corresponding target shooting parameters can be determined by querying the exposure meter. Furthermore, the current shooting parameters can be adjusted according to the target shooting parameters.
对于整体亮度,在另一种应用中,也可以将计算出的整体亮度与预设的参考亮度或者标准亮度进行对比,从而可以向用户输出相应的曝光提示,如过曝提示和/或欠曝提示。在相机处于手动挡时,也可以在用户选择拍摄参数时给予相应的提示,比如用户在将快门时间减小至1/2000时,可以针对1/2000的快门时间提示欠曝,增大至1/125时,可以针对1/125的快门时间提示过曝等。For the overall brightness, in another application, the calculated overall brightness can also be compared with the preset reference brightness or standard brightness, so as to output corresponding exposure prompts to the user, such as overexposure prompt and/or underexposure prompt hint. When the camera is in manual gear, the user can also give corresponding prompts when the user selects the shooting parameters. For example, when the user reduces the shutter time to 1/2000, it can prompt under-exposure for the shutter time of 1/2000, increasing to 1. At /125, overexposure etc. can be prompted for the shutter time of 1/125.
本申请实施例提供的测光方法,在计算待测光图像的整体亮度时利用的像素对应的权重信息是根据像素对应的图像内容的类别确定的,这样的测光方法可以关注到图像内容本身,关注到场景中的不同对象,相比现有的测光方法,拥有更广的场景适用性。以人物拍摄为例,若采用评价测光模式,则在背光和不背光下拍摄出的图像中人物的亮度是截然不同的。之所以如此,是因为评价测光并不能识别出图像中哪一部分是人物,其综合了画面中的各个区域的亮度,而这些区域中就包含用户并不在乎的天空或者路面等对象,但本申请实施例提供的测光方法,由于关注到图像内容,因此可以在各种环境下都以人物为重点进行测光,如此,无论是在背光还是不背光下拍摄,画面中人物的亮度都相对合适。In the light metering method provided by the embodiments of this application, the weight information corresponding to the pixel used when calculating the overall brightness of the light image to be metered is determined according to the category of the image content corresponding to the pixel. Such a light metering method can focus on the image content itself. , Pay attention to different objects in the scene, and have wider scene applicability compared with the existing metering methods. Taking portrait photography as an example, if the evaluative metering mode is used, the brightness of the characters in the images taken under and without backlight is completely different. The reason for this is that evaluative metering cannot identify which part of the image is a person. It integrates the brightness of each area in the screen, and these areas contain objects such as the sky or the road that the user does not care about. However, this application The light metering method provided by the embodiment focuses on the image content, so it can focus on people in various environments for light metering, so that the brightness of the people in the picture is relatively suitable regardless of whether it is shot under backlight or without backlight. .
以上是对本申请实施例提供的一种测光方法的详细说明。下面请参见图3,图3是本申请实施例提供的一种相机的结构示意图。该相机包括:机身310,与所述机身连接的镜头320,设置在所述机身内的图像传感器311、处理器312与存储有计算机程 序的存储器313;The above is a detailed description of a photometry method provided by an embodiment of the present application. Please refer to FIG. 3 below, which is a schematic structural diagram of a camera provided by an embodiment of the present application. The camera includes: a body 310, a lens 320 connected to the body, an image sensor 311, a processor 312, and a memory 313 storing computer programs in the body;
所述图像传感器311用于,通过所述镜头320采集待测光图像;The image sensor 311 is used to collect an image to be measured through the lens 320;
所述处理器312在执行所述计算机程序时实现以下步骤:The processor 312 implements the following steps when executing the computer program:
从所述图像传感器311获取所述待测光图像中多个像素各自对应的亮度信息;Acquiring, from the image sensor 311, brightness information corresponding to each of a plurality of pixels in the photometric image;
确定所述多个像素各自对应的权重信息;其中,所述权重信息是根据所述像素对应的图像内容的类别确定的;Determining weight information corresponding to each of the multiple pixels; wherein the weight information is determined according to the category of the image content corresponding to the pixel;
根据所述多个像素各自对应的所述亮度信息与所述权重信息,计算所述待测光图像的整体亮度。Calculate the overall brightness of the light image to be measured according to the brightness information and the weight information corresponding to each of the plurality of pixels.
可选的,所述像素对应的图像内容的类别是对所述待测光图像进行语义分割得到的。Optionally, the category of the image content corresponding to the pixel is obtained by semantically segmenting the light image to be measured.
可选的,所述处理器在执行对所述待测光图像进行语义分割的步骤时,用于将所述待测光图像输入语义分割模型,得到所述语义分割模型输出的第一语义地图;其中,所述第一语义地图包括所述像素对应的图像内容的类别。Optionally, when the processor executes the step of semantically segmenting the light image to be measured, it is used to input the light image to be measured into a semantic segmentation model to obtain a first semantic map output by the semantic segmentation model ; Wherein, the first semantic map includes the category of the image content corresponding to the pixel.
可选的,所述语义分割模型是预先训练好的卷积神经网络CNN模型。Optionally, the semantic segmentation model is a pre-trained convolutional neural network CNN model.
可选的,输入所述语义分割模型的图像是经过了下采样的所述待测光图像。Optionally, the image input to the semantic segmentation model is the down-sampled photometric image.
可选的,所述处理器还用于,在通过所述第一语义地图确定所述像素对应的权重信息之前,对所述第一语义地图进行下采样,得到预设尺寸的第二语义地图。Optionally, the processor is further configured to down-sample the first semantic map to obtain a second semantic map of a preset size before determining the weight information corresponding to the pixel through the first semantic map .
可选的,所述预设尺寸与预先确定的测光权重矩阵的大小相对应。Optionally, the preset size corresponds to a predetermined size of the photometric weight matrix.
可选的,所述处理器在执行对所述第一语义地图进行下采样的步骤时,用于根据所述预设尺寸,将所述第一语义地图划分为多个子区域;确定各个所述子区域对应的类别;所述子区域对应的类别是所述子区域中各像素对应的类别里占比最高的类别;根据各个所述子区域对应的类别,生成所述第二语义地图。Optionally, when the processor executes the step of down-sampling the first semantic map, the processor is configured to divide the first semantic map into a plurality of sub-areas according to the preset size; and determine each of the The category corresponding to the sub-region; the category corresponding to the sub-region is the category with the highest proportion among the categories corresponding to the pixels in the sub-region; the second semantic map is generated according to the category corresponding to each of the sub-regions.
可选的,所述权重信息是根据所述像素对应的图像内容的类别与目标对应关系确定的,所述目标对应关系包括各个类别对应的权重信息。Optionally, the weight information is determined according to the corresponding relationship between the category of the image content corresponding to the pixel and the target, and the target corresponding relationship includes weight information corresponding to each category.
可选的,所述目标对应关系是由用户或系统预先设定的。Optionally, the target correspondence relationship is preset by the user or the system.
可选的,所述目标对应关系中,每个类别对应的权重信息是根据所述类别对应的图像区域在所述待测光图像中的占比确定的。Optionally, in the target correspondence relationship, the weight information corresponding to each category is determined according to the proportion of the image area corresponding to the category in the photometric image.
可选的,所述权重信息最大的类别对应的图像区域在所述待测光图像中的占比最大。Optionally, the image area corresponding to the category with the largest weight information occupies the largest proportion in the photometric image.
可选的,所述目标对应关系中,每个类别对应的权重信息是根据所述类别对应的图像区域在所述待测光图像中的位置确定的。Optionally, in the target correspondence relationship, the weight information corresponding to each category is determined according to the position of the image area corresponding to the category in the photometric image.
可选的,所述权重信息最大的类别对应的图像区域位于所述待测光图像的中央。Optionally, the image area corresponding to the category with the largest weight information is located in the center of the photometric image.
可选的,所述整体亮度用于指导拍摄参数的调整。Optionally, the overall brightness is used to guide the adjustment of shooting parameters.
可选的,所述处理器执行根据所述整体亮度对拍摄参数进行调整的步骤时,用于根据所述整体亮度与当前拍摄参数,确定环境光亮度;根据所述环境光亮度确定目标拍摄参数;根据所述目标拍摄参数对所述当前拍摄参数进行调整。Optionally, when the processor executes the step of adjusting the shooting parameters according to the overall brightness, it is used to determine the brightness of the ambient light according to the overall brightness and the current shooting parameters; and to determine the target shooting parameters according to the brightness of the ambient light ; Adjust the current shooting parameters according to the target shooting parameters.
可选的,所述拍摄参数包括以下任一种:光圈值、快门时间与感光度ISO。Optionally, the shooting parameters include any one of the following: aperture value, shutter time, and sensitivity ISO.
可选的,所述整体亮度用于与预设的参考亮度对比,以输出相应的曝光提示。Optionally, the overall brightness is used to compare with a preset reference brightness to output a corresponding exposure prompt.
可选的,所述曝光提示包括:过曝提示和/或欠曝提示。Optionally, the exposure prompt includes: an overexposure prompt and/or an underexposure prompt.
本申请实施例提供的相机,在计算待测光图像的整体亮度时利用的像素对应的权重信息是根据像素对应的图像内容的类别确定的,如此,可以关注到图像内容本身,关注到场景中的不同对象,相比现有的相机的测光方法,拥有更广的场景适用性。以人物拍摄为例,若采用评价测光模式,则在背光和不背光下拍摄出的图像中人物的亮度是截然不同的。之所以如此,是因为评价测光并不能识别出图像中哪一部分是人物,其综合了画面中的各个区域的亮度,而这些区域中就包含用户并不在乎的天空或者路面等对象,但本申请实施例提供的相机,由于关注到图像内容,因此可以在各种环境下都以人物为重点进行测光,如此,无论是在背光还是不背光下拍摄,画面中人物的亮度都相对合适。In the camera provided by the embodiment of the present application, the weight information corresponding to the pixel used when calculating the overall brightness of the light image to be measured is determined according to the category of the image content corresponding to the pixel. In this way, the image content itself can be focused on the scene. Compared with the existing camera's metering method, it has wider scene applicability. Taking portrait photography as an example, if the evaluative metering mode is used, the brightness of the characters in the images taken under and without backlight is completely different. The reason for this is that evaluative metering cannot identify which part of the image is a person. It integrates the brightness of each area in the screen, and these areas contain objects such as the sky or the road that the user does not care about. However, this application The camera provided by the embodiment focuses on the image content, so it can perform light metering focusing on the person in various environments, so that the brightness of the person in the picture is relatively suitable whether it is shot under backlight or without backlight.
可选的,上述流程还可以由包含处理器和存储器的设备执行,可以由其他设备的图像传感器将采集的图像发送给该设备执行上述测光方法涉及的过程。Optionally, the foregoing process may also be executed by a device including a processor and a memory, and the image sensor of another device may send the collected image to the device to execute the process involved in the foregoing photometry method.
以上是对本申请实施例提供的一种相机的详细说明。本申请实施例还提供了一种电子设备,该电子设备是搭载有相机的电子设备,具体的,可以是手机、智能音箱、无人机等等。下面以无人机为例子进行说明,可以参见图4,图4是本申请实施例提供的一种无人机的结构示意图,该无人机包括搭载在无人机上的相机401、处理器402与存储有计算机程序的存储器403。The foregoing is a detailed description of a camera provided by an embodiment of the present application. The embodiment of the present application also provides an electronic device. The electronic device is an electronic device equipped with a camera. Specifically, it may be a mobile phone, a smart speaker, a drone, and so on. The following takes a drone as an example for description. You can refer to FIG. 4. FIG. 4 is a schematic structural diagram of a drone provided by an embodiment of the present application. The drone includes a camera 401 and a processor 402 mounted on the drone. And a memory 403 storing computer programs.
所述处理器402在执行所述计算机程序时实现以下步骤:The processor 402 implements the following steps when executing the computer program:
通过所述相机401获取待测光图像中多个像素各自对应的亮度信息;Acquiring, through the camera 401, brightness information corresponding to each of multiple pixels in the light image to be measured;
确定所述多个像素各自对应的权重信息;其中,所述权重信息是根据所述像素对应的图像内容的类别确定的;Determining weight information corresponding to each of the multiple pixels; wherein the weight information is determined according to the category of the image content corresponding to the pixel;
根据所述多个像素各自对应的所述亮度信息与所述权重信息,计算所述待测光图像的整体亮度。Calculate the overall brightness of the light image to be measured according to the brightness information and the weight information corresponding to each of the plurality of pixels.
可选的,所述像素对应的图像内容的类别是对所述待测光图像进行语义分割得到 的。Optionally, the category of the image content corresponding to the pixel is obtained by performing semantic segmentation on the light image to be measured.
可选的,所述处理器在执行对所述待测光图像进行语义分割的步骤时,用于将所述待测光图像输入语义分割模型,得到所述语义分割模型输出的第一语义地图;其中,所述第一语义地图包括所述像素对应的图像内容的类别。Optionally, when the processor executes the step of semantically segmenting the light image to be measured, it is used to input the light image to be measured into a semantic segmentation model to obtain a first semantic map output by the semantic segmentation model ; Wherein, the first semantic map includes the category of the image content corresponding to the pixel.
可选的,所述语义分割模型是预先训练好的卷积神经网络CNN模型。Optionally, the semantic segmentation model is a pre-trained convolutional neural network CNN model.
可选的,输入所述语义分割模型的图像是经过了下采样的所述待测光图像。Optionally, the image input to the semantic segmentation model is the down-sampled photometric image.
可选的,所述处理器还用于,在通过所述第一语义地图确定所述像素对应的权重信息之前,对所述第一语义地图进行下采样,得到预设尺寸的第二语义地图。Optionally, the processor is further configured to down-sample the first semantic map to obtain a second semantic map of a preset size before determining the weight information corresponding to the pixel through the first semantic map .
可选的,所述预设尺寸与预先确定的测光权重矩阵的大小相对应。Optionally, the preset size corresponds to a predetermined size of the photometric weight matrix.
可选的,所述处理器在执行对所述第一语义地图进行下采样的步骤时,用于根据所述预设尺寸,将所述第一语义地图划分为多个子区域;确定各个所述子区域对应的类别;所述子区域对应的类别是所述子区域中各像素对应的类别里占比最高的类别;根据各个所述子区域对应的类别,生成所述第二语义地图。Optionally, when the processor executes the step of down-sampling the first semantic map, the processor is configured to divide the first semantic map into a plurality of sub-regions according to the preset size; and determine each of the The category corresponding to the sub-region; the category corresponding to the sub-region is the category with the highest proportion among the categories corresponding to the pixels in the sub-region; and the second semantic map is generated according to the category corresponding to each of the sub-regions.
可选的,所述权重信息是根据所述像素对应的图像内容的类别与目标对应关系确定的,所述目标对应关系包括各个类别对应的权重信息。Optionally, the weight information is determined according to the corresponding relationship between the category of the image content corresponding to the pixel and the target, and the target corresponding relationship includes weight information corresponding to each category.
可选的,所述目标对应关系是由用户或系统预先设定的。Optionally, the target correspondence relationship is preset by the user or the system.
可选的,所述目标对应关系中,每个类别对应的权重信息是根据所述类别对应的图像区域在所述待测光图像中的占比确定的。Optionally, in the target correspondence relationship, the weight information corresponding to each category is determined according to the proportion of the image area corresponding to the category in the photometric image.
可选的,所述权重信息最大的类别对应的图像区域在所述待测光图像中的占比最大。Optionally, the image area corresponding to the category with the largest weight information occupies the largest proportion in the photometric image.
可选的,所述目标对应关系中,每个类别对应的权重信息是根据所述类别对应的图像区域在所述待测光图像中的位置确定的。Optionally, in the target correspondence relationship, the weight information corresponding to each category is determined according to the position of the image area corresponding to the category in the photometric image.
可选的,所述权重信息最大的类别对应的图像区域位于所述待测光图像的中央。Optionally, the image area corresponding to the category with the largest weight information is located in the center of the photometric image.
可选的,所述整体亮度用于指导拍摄参数的调整。Optionally, the overall brightness is used to guide the adjustment of shooting parameters.
可选的,所述处理器执行根据所述整体亮度对拍摄参数进行调整的步骤时,用于根据所述整体亮度与当前拍摄参数,确定环境光亮度;根据所述环境光亮度确定目标拍摄参数;根据所述目标拍摄参数对所述当前拍摄参数进行调整。Optionally, when the processor executes the step of adjusting the shooting parameters according to the overall brightness, it is used to determine the brightness of the ambient light according to the overall brightness and the current shooting parameters; and to determine the target shooting parameters according to the brightness of the ambient light ; Adjust the current shooting parameters according to the target shooting parameters.
可选的,所述拍摄参数包括以下任一种:光圈值、快门时间与感光度ISO。Optionally, the shooting parameters include any one of the following: aperture value, shutter time, and sensitivity ISO.
可选的,所述整体亮度用于与预设的参考亮度对比,以输出相应的曝光提示。Optionally, the overall brightness is used to compare with a preset reference brightness to output a corresponding exposure prompt.
可选的,所述曝光提示包括:过曝提示和/或欠曝提示。Optionally, the exposure prompt includes: an overexposure prompt and/or an underexposure prompt.
可选的,所述电子设备包括无人机。Optionally, the electronic equipment includes a drone.
本申请实施例提供的无人机,其搭载的相机在计算待测光图像的整体亮度时利用的像素对应的权重信息是根据像素对应的图像内容的类别确定的,如此,相机可以关注到图像内容本身,关注到场景中的不同对象,相比现有的无人机中搭载的相机的测光方法,拥有更广的场景适用性。以人物拍摄为例,若采用评价测光模式,则在背光和不背光下拍摄出的图像中人物的亮度是截然不同的。之所以如此,是因为评价测光并不能识别出图像中哪一部分是人物,其综合了画面中的各个区域的亮度,而这些区域中就包含用户并不在乎的天空或者路面等对象,但本申请实施例提供的无人机,由于关注到图像内容,因此可以在各种环境下都以人物为重点进行测光,如此,无论是在背光还是不背光下拍摄,画面中人物的亮度都相对合适。In the drone provided by the embodiments of the present application, the weight information corresponding to the pixels used by the camera to calculate the overall brightness of the light image to be measured is determined according to the category of the image content corresponding to the pixel, so that the camera can focus on the image The content itself pays attention to different objects in the scene, and has wider scene applicability than the light metering method of the camera mounted in the existing drone. Taking portrait photography as an example, if the evaluative metering mode is used, the brightness of the characters in the images taken under and without backlight is completely different. The reason for this is that evaluative metering cannot identify which part of the image is a person. It integrates the brightness of each area in the screen, and these areas contain objects such as the sky or the road that the user does not care about. However, this application The drone provided by the embodiment, due to the focus on the content of the image, can measure light focusing on the characters in various environments. In this way, the brightness of the characters in the picture is relatively suitable regardless of whether it is shot under backlight or without backlight. .
以上实施例中提供的技术特征,只要不存在冲突或矛盾,本领域技术人员可以根据实际情况对各个技术特征进行组合,从而构成各种不同的实施例。而本申请文件限于篇幅,未对各种不同的实施例展开说明,但可以理解的是,各种不同的实施例也属于本申请实施例公开的范围。As long as there is no conflict or contradiction between the technical features provided in the above embodiments, those skilled in the art can combine the various technical features according to actual conditions to form various embodiments. However, the document of this application is limited in length and does not describe various embodiments. However, it is understandable that various embodiments also belong to the scope of the disclosure of the embodiments of this application.
本申请实施例可采用在一个或多个其中包含有程序代码的存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。计算机可用存储介质包括永久性和非永久性、可移动和非可移动媒体,可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括但不限于:相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。The embodiments of the present application may adopt the form of a computer program product implemented on one or more storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing program codes. Computer usable storage media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply one of these entities or operations. There is any such actual relationship or order between. The terms "including", "including" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device that includes a series of elements includes not only those elements, but also other elements that are not explicitly listed. Elements, or also include elements inherent to such processes, methods, articles, or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or equipment that includes the element.
以上对本申请实施例所提供的方法和设备进行了详细介绍,本文中应用了具体个例对本申请实施例的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请实施例的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请实施例的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请实施例的限制。The method and equipment provided by the embodiments of the application are described in detail above. Specific examples are used in this article to describe the principles and implementations of the embodiments of the application. The description of the above embodiments is only used to help understand the embodiments of the application. At the same time, for those of ordinary skill in the art, according to the ideas of the embodiments of this application, there will be changes in the specific implementation and the scope of application. In summary, the content of this specification should not be It is understood as a limitation to the embodiments of the present application.

Claims (61)

  1. 一种测光方法,其特征在于,包括:A photometric method, characterized in that it comprises:
    获取待测光图像中多个像素各自对应的亮度信息;Obtain the brightness information corresponding to each of the multiple pixels in the light image to be measured;
    确定所述多个像素各自对应的权重信息;其中,所述权重信息是根据所述像素对应的图像内容的类别确定的;Determining weight information corresponding to each of the multiple pixels; wherein the weight information is determined according to the category of the image content corresponding to the pixel;
    根据所述多个像素各自对应的所述亮度信息与所述权重信息,计算所述待测光图像的整体亮度。Calculate the overall brightness of the light image to be measured according to the brightness information and the weight information corresponding to each of the plurality of pixels.
  2. 根据权利要求1所述的测光方法,其特征在于,所述像素对应的图像内容的类别是对所述待测光图像进行语义分割得到的。The photometry method according to claim 1, wherein the category of the image content corresponding to the pixel is obtained by semantically segmenting the photometry image.
  3. 根据权利要求2所述的测光方法,其特征在于,所述对所述待测光图像进行语义分割,包括:The photometry method of claim 2, wherein the semantic segmentation of the photometric image comprises:
    将所述待测光图像输入语义分割模型,得到所述语义分割模型输出的第一语义地图;其中,所述第一语义地图包括所述像素对应的图像内容的类别。The light image to be measured is input into a semantic segmentation model to obtain a first semantic map output by the semantic segmentation model; wherein, the first semantic map includes the category of the image content corresponding to the pixel.
  4. 根据权利要求3所述的测光方法,其特征在于,所述语义分割模型是预先训练好的卷积神经网络CNN模型。The photometry method according to claim 3, wherein the semantic segmentation model is a pre-trained convolutional neural network CNN model.
  5. 根据权利要求3所述的测光方法,其特征在于,输入所述语义分割模型的图像是经过了下采样的所述待测光图像。The photometry method according to claim 3, wherein the image input to the semantic segmentation model is the down-sampled photometry image.
  6. 根据权利要求3所述的测光方法,其特征在于,在通过所述第一语义地图确定所述像素对应的权重信息之前,还包括:The photometry method according to claim 3, wherein before determining the weight information corresponding to the pixel through the first semantic map, the method further comprises:
    对所述第一语义地图进行下采样,得到预设尺寸的第二语义地图。Down-sampling the first semantic map to obtain a second semantic map of a preset size.
  7. 根据权利要求6所述的测光方法,其特征在于,所述预设尺寸与预先确定的测光权重矩阵的大小相对应。7. The photometry method of claim 6, wherein the preset size corresponds to a predetermined size of the photometry weight matrix.
  8. 根据权利要求6所述的测光方法,其特征在于,对所述第一语义地图进行下采样,包括:The photometry method of claim 6, wherein the down-sampling of the first semantic map comprises:
    根据所述预设尺寸,将所述第一语义地图划分为多个子区域;Dividing the first semantic map into a plurality of sub-areas according to the preset size;
    确定各个所述子区域对应的类别;所述子区域对应的类别是所述子区域中各像素对应的类别里占比最高的类别;Determine the category corresponding to each of the sub-regions; the category corresponding to the sub-region is the category with the highest proportion among the categories corresponding to the pixels in the sub-region;
    根据各个所述子区域对应的类别,生成所述第二语义地图。The second semantic map is generated according to the category corresponding to each of the sub-regions.
  9. 根据权利要求1所述的测光方法,其特征在于,所述权重信息是根据所述像素对应的图像内容的类别与目标对应关系确定的,所述目标对应关系包括各个类别对应的权重信息。The photometry method according to claim 1, wherein the weight information is determined according to the corresponding relationship between the category of the image content corresponding to the pixel and the target, and the target corresponding relationship includes weight information corresponding to each category.
  10. 根据权利要求9所述的测光方法,其特征在于,所述目标对应关系是由用户或系统预先设定的。The photometry method according to claim 9, wherein the target correspondence relationship is preset by the user or the system.
  11. 根据权利要求9所述的测光方法,其特征在于,所述目标对应关系中,类别对应的权重信息是根据所述类别对应的图像区域在所述待测光图像中的占比确定的。The photometry method according to claim 9, wherein in the target correspondence relationship, the weight information corresponding to the category is determined according to the proportion of the image area corresponding to the category in the photometric image.
  12. 根据权利要求11所述的测光方法,其特征在于,所述权重信息最大的类别对应的图像区域在所述待测光图像中的占比最大。The photometry method according to claim 11, wherein the image area corresponding to the category with the largest weight information occupies the largest proportion in the photometry image.
  13. 根据权利要求9所述的测光方法,其特征在于,所述目标对应关系中,类别对应的权重信息是根据所述类别对应的图像区域在所述待测光图像中的位置确定的。The photometry method according to claim 9, wherein in the target correspondence relationship, the weight information corresponding to the category is determined according to the position of the image area corresponding to the category in the photometric image.
  14. 根据权利要求13所述的测光方法,其特征在于,所述权重信息最大的类别对应的图像区域位于所述待测光图像的中央。The photometry method according to claim 13, wherein the image area corresponding to the category with the largest weight information is located in the center of the photometry image.
  15. 根据权利要求1所述的测光方法,其特征在于,所述整体亮度用于指导拍摄参数的调整。The light metering method according to claim 1, wherein the overall brightness is used to guide the adjustment of shooting parameters.
  16. 根据权利要求15所述的测光方法,其特征在于,根据所述整体亮度对拍摄参数进行调整,包括:The light metering method according to claim 15, wherein adjusting the shooting parameters according to the overall brightness comprises:
    根据所述整体亮度与当前拍摄参数,确定环境光亮度;Determine the ambient light brightness according to the overall brightness and the current shooting parameters;
    根据所述环境光亮度确定目标拍摄参数;Determining target shooting parameters according to the ambient light brightness;
    根据所述目标拍摄参数对所述当前拍摄参数进行调整。The current shooting parameter is adjusted according to the target shooting parameter.
  17. 根据权利要求15所述的测光方法,其特征在于,所述拍摄参数包括以下任一种:光圈值、快门时间与感光度ISO。The light metering method according to claim 15, wherein the shooting parameters include any one of the following: aperture value, shutter time, and sensitivity ISO.
  18. 根据权利要求1所述的测光方法,其特征在于,所述整体亮度用于与预设的参考亮度对比,以输出相应的曝光提示。The light metering method according to claim 1, wherein the overall brightness is used to compare with a preset reference brightness to output a corresponding exposure prompt.
  19. 根据权利要求18所述的测光方法,其特征在于,所述曝光提示包括:过曝提示和/或欠曝提示。The light metering method according to claim 18, wherein the exposure prompt comprises: an overexposure prompt and/or an underexposure prompt.
  20. 根据权利要求1所述的测光方法,其特征在于,所述待测光图像是图像传感器采集的。The light metering method according to claim 1, wherein the image to be metered is collected by an image sensor.
  21. 根据权利要求1所述的测光方法,其特征在于,所述方法应用于相机。The photometry method according to claim 1, wherein the method is applied to a camera.
  22. 一种相机,其特征在于,包括:机身,与所述机身连接的镜头,设置在所述机身内的图像传感器、处理器与存储有计算机程序的存储器;A camera, characterized by comprising: a body, a lens connected to the body, an image sensor, a processor, and a memory storing a computer program arranged in the body;
    所述图像传感器用于,通过所述镜头采集待测光图像;The image sensor is used to collect an image to be measured through the lens;
    所述处理器在执行所述计算机程序时实现以下步骤:The processor implements the following steps when executing the computer program:
    从所述图像传感器获取所述待测光图像中多个像素各自对应的亮度信息;Acquiring, from the image sensor, brightness information corresponding to each of the plurality of pixels in the light image to be measured;
    确定所述多个像素各自对应的权重信息;其中,所述权重信息是根据所述像素对应的图像内容的类别确定的;Determining weight information corresponding to each of the multiple pixels; wherein the weight information is determined according to the category of the image content corresponding to the pixel;
    根据所述多个像素各自对应的所述亮度信息与所述权重信息,计算所述待测光图像的整体亮度。Calculate the overall brightness of the light image to be measured according to the brightness information and the weight information corresponding to each of the plurality of pixels.
  23. 根据权利要求22所述的相机,其特征在于,所述像素对应的图像内容的类别是对所述待测光图像进行语义分割得到的。The camera according to claim 22, wherein the category of the image content corresponding to the pixel is obtained by semantically segmenting the photometric image.
  24. 根据权利要求23所述的相机,其特征在于,所述处理器在执行对所述待测光图像进行语义分割的步骤时,用于将所述待测光图像输入语义分割模型,得到所述语义分割模型输出的第一语义地图;其中,所述第一语义地图包括所述像素对应的图像内容的类别。22. The camera of claim 23, wherein the processor is configured to input the photometric image into a semantic segmentation model when executing the step of semantically segmenting the photometric image to obtain the The first semantic map output by the semantic segmentation model; wherein, the first semantic map includes the category of the image content corresponding to the pixel.
  25. 根据权利要求24所述的相机,其特征在于,所述语义分割模型是预先训练好的卷积神经网络CNN模型。The camera of claim 24, wherein the semantic segmentation model is a pre-trained convolutional neural network CNN model.
  26. 根据权利要求24所述的相机,其特征在于,输入所述语义分割模型的图像是经过了下采样的所述待测光图像。The camera of claim 24, wherein the image input to the semantic segmentation model is the down-sampled photometric image.
  27. 根据权利要求24所述的相机,其特征在于,所述处理器还用于,在通过所述第一语义地图确定所述像素对应的权重信息之前,对所述第一语义地图进行下采样,得到预设尺寸的第二语义地图。The camera according to claim 24, wherein the processor is further configured to down-sample the first semantic map before determining the weight information corresponding to the pixel through the first semantic map, Obtain the second semantic map of the preset size.
  28. 根据权利要求27所述的相机,其特征在于,所述预设尺寸与预先确定的测光权重矩阵的大小相对应。The camera of claim 27, wherein the preset size corresponds to the size of a predetermined metering weight matrix.
  29. 根据权利要求27所述的相机,其特征在于,所述处理器在执行对所述第一语义地图进行下采样的步骤时,用于根据所述预设尺寸,将所述第一语义地图划分为多个子区域;确定各个所述子区域对应的类别;所述子区域对应的类别是所述子区域中各像素对应的类别里占比最高的类别;根据各个所述子区域对应的类别,生成所述第二语义地图。The camera according to claim 27, wherein when the processor performs the step of down-sampling the first semantic map, the processor is configured to divide the first semantic map according to the preset size Are multiple sub-regions; determine the category corresponding to each of the sub-regions; the category corresponding to the sub-region is the category with the highest proportion among the categories corresponding to each pixel in the sub-region; according to the category corresponding to each of the sub-regions, Generate the second semantic map.
  30. 根据权利要求22所述的相机,其特征在于,所述权重信息是根据所述像素对应的图像内容的类别与目标对应关系确定的,所述目标对应关系包括各个类别对应的权重信息。The camera according to claim 22, wherein the weight information is determined according to a corresponding relationship between a category of image content corresponding to the pixel and a target, and the target corresponding relationship includes weight information corresponding to each category.
  31. 根据权利要求30所述的相机,其特征在于,所述目标对应关系是由用户或系统预先设定的。The camera of claim 30, wherein the target correspondence relationship is preset by the user or the system.
  32. 根据权利要求30所述的相机,其特征在于,所述目标对应关系中,每个类别对应的权重信息是根据所述类别对应的图像区域在所述待测光图像中的占比确定的。The camera according to claim 30, wherein, in the target correspondence relationship, the weight information corresponding to each category is determined according to the proportion of the image area corresponding to the category in the photometric image.
  33. 根据权利要求32所述的相机,其特征在于,所述权重信息最大的类别对应的图像区域在所述待测光图像中的占比最大。The camera of claim 32, wherein the image area corresponding to the category with the largest weight information occupies the largest proportion in the photometric image.
  34. 根据权利要求30所述的相机,其特征在于,所述目标对应关系中,每个类别对应的权重信息是根据所述类别对应的图像区域在所述待测光图像中的位置确定的。The camera according to claim 30, wherein, in the target correspondence relationship, the weight information corresponding to each category is determined according to the position of the image area corresponding to the category in the photometric image.
  35. 根据权利要求34所述的相机,其特征在于,所述权重信息最大的类别对应的图像区域位于所述待测光图像的中央。The camera of claim 34, wherein the image area corresponding to the category with the largest weight information is located in the center of the photometric image.
  36. 根据权利要求22所述的相机,其特征在于,所述整体亮度用于指导拍摄参数的调整。The camera of claim 22, wherein the overall brightness is used to guide the adjustment of shooting parameters.
  37. 根据权利要求36所述的相机,其特征在于,所述处理器执行根据所述整体亮度对拍摄参数进行调整的步骤时,用于根据所述整体亮度与当前拍摄参数,确定环境光亮度;根据所述环境光亮度确定目标拍摄参数;根据所述目标拍摄参数对所述当前拍摄参数进行调整。The camera according to claim 36, wherein when the processor executes the step of adjusting the shooting parameters according to the overall brightness, the processor is configured to determine the brightness of the ambient light according to the overall brightness and the current shooting parameters; The ambient light brightness determines a target shooting parameter; and the current shooting parameter is adjusted according to the target shooting parameter.
  38. 根据权利要求36所述的相机,其特征在于,所述拍摄参数包括以下任一种:光圈值、快门时间与感光度ISO。The camera of claim 36, wherein the shooting parameters comprise any one of the following: aperture value, shutter time, and ISO sensitivity.
  39. 根据权利要求22所述的相机,其特征在于,所述整体亮度用于与预设的参考亮度对比,以输出相应的曝光提示。The camera of claim 22, wherein the overall brightness is used to compare with a preset reference brightness to output a corresponding exposure prompt.
  40. 根据权利要求39所述的相机,其特征在于,所述曝光提示包括:过曝提示和/或欠曝提示。The camera of claim 39, wherein the exposure prompt comprises: an overexposure prompt and/or an underexposure prompt.
  41. 一种电子设备,其特征在于,包括:搭载在所述电子设备上的相机、处理器与存储有计算机程序的存储器;An electronic device, characterized by comprising: a camera mounted on the electronic device, a processor, and a memory storing a computer program;
    所述处理器在执行所述计算机程序时实现以下步骤:The processor implements the following steps when executing the computer program:
    通过所述相机获取待测光图像中多个像素各自对应的亮度信息;Acquiring, by the camera, brightness information corresponding to each of multiple pixels in the light image to be measured;
    确定所述多个像素各自对应的权重信息;其中,所述权重信息是根据所述像素对应的图像内容的类别确定的;Determining weight information corresponding to each of the multiple pixels; wherein the weight information is determined according to the category of the image content corresponding to the pixel;
    根据所述多个像素各自对应的所述亮度信息与所述权重信息,计算所述待测光图像的整体亮度。Calculate the overall brightness of the light image to be measured according to the brightness information and the weight information corresponding to each of the plurality of pixels.
  42. 根据权利要求41所述的电子设备,其特征在于,所述像素对应的图像内容的 类别是对所述待测光图像进行语义分割得到的。The electronic device according to claim 41, wherein the category of the image content corresponding to the pixel is obtained by semantically segmenting the light image to be measured.
  43. 根据权利要求42所述的电子设备,其特征在于,所述处理器在执行对所述待测光图像进行语义分割的步骤时,用于将所述待测光图像输入语义分割模型,得到所述语义分割模型输出的第一语义地图;其中,所述第一语义地图包括所述像素对应的图像内容的类别。The electronic device according to claim 42, wherein when the processor executes the step of semantically segmenting the light image to be measured, it is used to input the light image to be measured into a semantic segmentation model to obtain the The first semantic map output by the semantic segmentation model; wherein, the first semantic map includes the category of the image content corresponding to the pixel.
  44. 根据权利要求43所述的电子设备,其特征在于,所述语义分割模型是预先训练好的卷积神经网络CNN模型。The electronic device according to claim 43, wherein the semantic segmentation model is a pre-trained convolutional neural network CNN model.
  45. 根据权利要求43所述的电子设备,其特征在于,输入所述语义分割模型的图像是经过了下采样的所述待测光图像。The electronic device according to claim 43, wherein the image input to the semantic segmentation model is the down-sampled photometric image.
  46. 根据权利要求43所述的电子设备,其特征在于,所述处理器还用于,在通过所述第一语义地图确定所述像素对应的权重信息之前,对所述第一语义地图进行下采样,得到预设尺寸的第二语义地图。The electronic device according to claim 43, wherein the processor is further configured to down-sample the first semantic map before determining the weight information corresponding to the pixel through the first semantic map , To obtain the second semantic map of the preset size.
  47. 根据权利要求46所述的电子设备,其特征在于,所述预设尺寸与预先确定的测光权重矩阵的大小相对应。The electronic device according to claim 46, wherein the preset size corresponds to a predetermined size of the photometric weight matrix.
  48. 根据权利要求46所述的电子设备,其特征在于,所述处理器在执行对所述第一语义地图进行下采样的步骤时,用于根据所述预设尺寸,将所述第一语义地图划分为多个子区域;确定各个所述子区域对应的类别;所述子区域对应的类别是所述子区域中各像素对应的类别里占比最高的类别;根据各个所述子区域对应的类别,生成所述第二语义地图。The electronic device according to claim 46, wherein, when the processor executes the step of down-sampling the first semantic map, it is configured to convert the first semantic map according to the preset size Divide into multiple sub-regions; determine the category corresponding to each of the sub-regions; the category corresponding to the sub-region is the category with the highest proportion among the categories corresponding to each pixel in the sub-region; according to the category corresponding to each of the sub-regions , Generating the second semantic map.
  49. 根据权利要求41所述的电子设备,其特征在于,所述权重信息是根据所述像素对应的图像内容的类别与目标对应关系确定的,所述目标对应关系包括各个类别对应的权重信息。The electronic device according to claim 41, wherein the weight information is determined according to a corresponding relationship between a category of image content corresponding to the pixel and a target, and the target corresponding relationship includes weight information corresponding to each category.
  50. 根据权利要求49所述的电子设备,其特征在于,所述目标对应关系是由用户或系统预先设定的。The electronic device according to claim 49, wherein the target correspondence relationship is preset by a user or a system.
  51. 根据权利要求49所述的电子设备,其特征在于,所述目标对应关系中,每个类别对应的权重信息是根据所述类别对应的图像区域在所述待测光图像中的占比确定的。The electronic device according to claim 49, wherein, in the target correspondence relationship, the weight information corresponding to each category is determined according to the proportion of the image area corresponding to the category in the photometric image .
  52. 根据权利要求51所述的电子设备,其特征在于,所述权重信息最大的类别对应的图像区域在所述待测光图像中的占比最大。The electronic device according to claim 51, wherein the image area corresponding to the category with the largest weight information occupies the largest proportion in the photometric image.
  53. 根据权利要求49所述的电子设备,其特征在于,所述目标对应关系中,每个类别对应的权重信息是根据所述类别对应的图像区域在所述待测光图像中的位置确定 的。The electronic device according to claim 49, wherein in the target correspondence relationship, the weight information corresponding to each category is determined according to the position of the image area corresponding to the category in the photometric image.
  54. 根据权利要求53所述的电子设备,其特征在于,所述权重信息最大的类别对应的图像区域位于所述待测光图像的中央。The electronic device according to claim 53, wherein the image area corresponding to the category with the largest weight information is located in the center of the photometric image.
  55. 根据权利要求41所述的电子设备,其特征在于,所述整体亮度用于指导拍摄参数的调整。The electronic device according to claim 41, wherein the overall brightness is used to guide the adjustment of shooting parameters.
  56. 根据权利要求55所述的电子设备,其特征在于,所述处理器执行根据所述整体亮度对拍摄参数进行调整的步骤时,用于根据所述整体亮度与当前拍摄参数,确定环境光亮度;根据所述环境光亮度确定目标拍摄参数;根据所述目标拍摄参数对所述当前拍摄参数进行调整。The electronic device according to claim 55, wherein when the processor executes the step of adjusting the shooting parameters according to the overall brightness, the processor is configured to determine the brightness of the ambient light according to the overall brightness and the current shooting parameters; The target shooting parameter is determined according to the ambient light brightness; the current shooting parameter is adjusted according to the target shooting parameter.
  57. 根据权利要求55所述的电子设备,其特征在于,所述拍摄参数包括以下任一种:光圈值、快门时间与感光度ISO。The electronic device according to claim 55, wherein the shooting parameters comprise any one of the following: aperture value, shutter time, and sensitivity ISO.
  58. 根据权利要求41所述的电子设备,其特征在于,所述整体亮度用于与预设的参考亮度对比,以输出相应的曝光提示。The electronic device according to claim 41, wherein the overall brightness is used to compare with a preset reference brightness to output a corresponding exposure prompt.
  59. 根据权利要求58所述的电子设备,其特征在于,所述曝光提示包括:过曝提示和/或欠曝提示。The electronic device according to claim 58, wherein the exposure prompt comprises: an overexposure prompt and/or an underexposure prompt.
  60. 根据权利要求41所述的电子设备,其特征在于,所述电子设备包括无人机。The electronic device according to claim 41, wherein the electronic device comprises a drone.
  61. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至21任一项所述的测光方法。A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the photometry method according to any one of claims 1 to 21 is realized.
PCT/CN2020/088814 2020-05-06 2020-05-06 Metering method, camera, electronic device, and computer-readable storage medium WO2021223113A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/088814 WO2021223113A1 (en) 2020-05-06 2020-05-06 Metering method, camera, electronic device, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/088814 WO2021223113A1 (en) 2020-05-06 2020-05-06 Metering method, camera, electronic device, and computer-readable storage medium

Publications (1)

Publication Number Publication Date
WO2021223113A1 true WO2021223113A1 (en) 2021-11-11

Family

ID=78468547

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/088814 WO2021223113A1 (en) 2020-05-06 2020-05-06 Metering method, camera, electronic device, and computer-readable storage medium

Country Status (1)

Country Link
WO (1) WO2021223113A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116204851A (en) * 2023-03-21 2023-06-02 中关村科学城城市大脑股份有限公司 Event recognition method and system based on multi-mode recognition technology

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106791475A (en) * 2017-01-23 2017-05-31 上海兴芯微电子科技有限公司 Exposure adjustment method and the vehicle mounted imaging apparatus being applicable
CN107734225A (en) * 2017-10-24 2018-02-23 维沃移动通信有限公司 A kind of image pickup method and device
CN110738673A (en) * 2019-10-21 2020-01-31 哈尔滨理工大学 Visual SLAM method based on example segmentation
WO2020057753A1 (en) * 2018-09-21 2020-03-26 Toyota Motor Europe A method and a system for training a model performing semantic segmentation of nighttime images
CN111104962A (en) * 2019-11-05 2020-05-05 北京航空航天大学青岛研究院 Semantic segmentation method and device for image, electronic equipment and readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106791475A (en) * 2017-01-23 2017-05-31 上海兴芯微电子科技有限公司 Exposure adjustment method and the vehicle mounted imaging apparatus being applicable
CN107734225A (en) * 2017-10-24 2018-02-23 维沃移动通信有限公司 A kind of image pickup method and device
WO2020057753A1 (en) * 2018-09-21 2020-03-26 Toyota Motor Europe A method and a system for training a model performing semantic segmentation of nighttime images
CN110738673A (en) * 2019-10-21 2020-01-31 哈尔滨理工大学 Visual SLAM method based on example segmentation
CN111104962A (en) * 2019-11-05 2020-05-05 北京航空航天大学青岛研究院 Semantic segmentation method and device for image, electronic equipment and readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116204851A (en) * 2023-03-21 2023-06-02 中关村科学城城市大脑股份有限公司 Event recognition method and system based on multi-mode recognition technology
CN116204851B (en) * 2023-03-21 2023-08-22 中关村科学城城市大脑股份有限公司 Event recognition method and system based on multi-mode recognition technology

Similar Documents

Publication Publication Date Title
TWI805869B (en) System and method for computing dominant class of scene
CN108322646B (en) Image processing method, image processing device, storage medium and electronic equipment
WO2019183813A1 (en) Image capture method and device
WO2019237992A1 (en) Photographing method and device, terminal and computer readable storage medium
US8582001B2 (en) Exposure control for high dynamic range image capture
CN107734225A (en) A kind of image pickup method and device
KR101812807B1 (en) A method of adaptive auto exposure contol based upon adaptive region's weight
CN107948538B (en) Imaging method, imaging device, mobile terminal and storage medium
CN111028190A (en) Image processing method, image processing device, storage medium and electronic equipment
CN111447374B (en) Light supplement adjusting method and device, electronic equipment and storage medium
US20150086127A1 (en) Method and image capturing device for generating artificially defocused blurred image
CN105227857B (en) A kind of method and apparatus of automatic exposure
CN113888437A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
JPH06202188A (en) Method suitable for use in automatic multizone focus settingcamera for improvement of image quality with reference to nonstandard display size and/or hetero-focal distance photographing mode
CN113766125A (en) Focusing method and device, electronic equipment and computer readable storage medium
CN103179348A (en) Shooting method and system for mobile terminals and mobile terminal
CN113411498B (en) Image shooting method, mobile terminal and storage medium
JPH06202187A (en) Method and apparatus for automatic optimization of photographing exposure parameter for nonstandard display size and/or hetero-focal distance photographing mode by decision and utilization of extra system speed
CN105578062A (en) Light metering mode selection method and image acquisition device utilizing same
WO2023020201A1 (en) Image enhancement method and electronic device
CN112258380A (en) Image processing method, device, equipment and storage medium
US9602735B2 (en) Digital imaging exposure metering system
CN106791451B (en) Photographing method of intelligent terminal
CN106303243A (en) A kind of photographic method, device and terminal
WO2021223113A1 (en) Metering method, camera, electronic device, and computer-readable storage medium

Legal Events

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

Ref document number: 20934822

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20934822

Country of ref document: EP

Kind code of ref document: A1