WO2023160496A1 - 拍摄方法、拍摄装置、电子设备和可读存储介质 - Google Patents

拍摄方法、拍摄装置、电子设备和可读存储介质 Download PDF

Info

Publication number
WO2023160496A1
WO2023160496A1 PCT/CN2023/077187 CN2023077187W WO2023160496A1 WO 2023160496 A1 WO2023160496 A1 WO 2023160496A1 CN 2023077187 W CN2023077187 W CN 2023077187W WO 2023160496 A1 WO2023160496 A1 WO 2023160496A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
exposure
target
image area
ambient brightness
Prior art date
Application number
PCT/CN2023/077187
Other languages
English (en)
French (fr)
Inventor
刘心怡
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2023160496A1 publication Critical patent/WO2023160496A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/71Circuitry for evaluating the brightness variation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/73Circuitry for compensating brightness variation in the scene by influencing the exposure time
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/76Circuitry for compensating brightness variation in the scene by influencing the image signals

Definitions

  • the present application belongs to the technical field of photographing, and in particular relates to a photographing method, a photographing device, electronic equipment and a readable storage medium.
  • Exposure parameters have a great impact on image quality. At present, it is mainly to estimate the ambient brightness by calculating the brightness information of existing frames, and then adjust the exposure parameters of the next frame. This method is usually suitable for situations where the lighting conditions are constant or change slowly.
  • the purpose of the embodiments of the present application is to provide a shooting method, a shooting device, an electronic device, and a readable storage medium, which can solve the problem that it is difficult to adjust exposure quickly and accurately.
  • the embodiment of the present application provides a shooting method, the method includes:
  • the target information includes: the position information of the real sense pixel, the environment brightness information, and the time information;
  • the multimedia file includes at least one of the following: image, video.
  • the embodiment of the present application provides a shooting device, including:
  • the obtaining module is used to obtain the change value of the real sense pixel in the dynamic vision sensor when the shooting preview interface is displayed;
  • An output module configured to output target information when the change value is greater than or equal to a preset threshold
  • a determining module configured to determine target exposure parameters based on target information
  • a shooting module configured to obtain multimedia files based on target exposure parameters
  • the target information includes: location information of real-sensing pixels, ambient brightness information, and time information;
  • the multimedia file includes at least one of the following: images and videos.
  • the embodiment of the present application provides an electronic device, the electronic device includes a processor and a memory, and the memory stores programs or instructions that can run on the processor, and when the programs or instructions are executed by the processor, the first aspect is implemented. steps of the method.
  • the embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method in the first aspect are implemented.
  • the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the method in the first aspect.
  • an embodiment of the present application provides a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the method in the first aspect.
  • the embodiment of the present application provides a photographing device configured to implement the method in the first aspect.
  • the position information, ambient brightness information, and time information of the real-sensing pixels are output, so as to quickly adjust the exposure parameters, so that the user can obtain a satisfactory preview image, which is conducive to improving the shooting performance.
  • Image quality and video quality are output, so as to quickly adjust the exposure parameters, so that the user can obtain a satisfactory preview image, which is conducive to improving the shooting performance.
  • the electronic equipment automatically detects the change value of the real-sensing pixel and the preset threshold relationship, and can automatically adjust the exposure parameters, so even if the user has little or no shooting experience, since the electronic equipment can automatically and quickly adjust the exposure parameters, it can reduce the difficulty of shooting with electronic equipment. It can shoot images and videos with better picture quality in different scenes.
  • Fig. 1 is a schematic flow chart of the photographing method in the embodiment of the present application.
  • Fig. 2 is one of the schematic diagrams before and after the exposure duration adjustment in the embodiment of the present application;
  • Fig. 3 is the second schematic diagram of the exposure duration adjustment and the exposure duration adjustment in the embodiment of the present application.
  • Fig. 4 is a schematic block diagram of the photographing device in the embodiment of the present application.
  • Fig. 5 is a schematic block diagram of an electronic device in an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a comparison between a real-sensing pixel and a normal pixel according to an embodiment of the present application.
  • a shooting method including:
  • Step 102 in the case of displaying the shooting preview interface, obtain the change value of the real sense pixel in the dynamic vision sensor
  • the image to be captured can be displayed on the screen of the electronic device, and at this time, the display interface of the electronic device is a shooting preview interface.
  • Step 104 when the change value is greater than or equal to a preset threshold, output target information
  • the target information is output.
  • a dynamic vision sensor DVS (Dynamic Vision Sensor) can be used as the camera sensor in the electronic device.
  • the dynamic vision sensor DVS has the characteristics of low delay , can quickly respond to environmental changes, so the dynamic visual sensor DVS can quickly obtain whether the image in the shooting preview interface includes areas with large brightness changes.
  • the exposure parameters need to be adjusted. Specifically, the exposure parameters are adjusted according to information such as the location of the target information, ambient brightness, and time, so as to reduce the impact of areas with large brightness changes on image or video quality.
  • the dynamic visual sensor DVS Utilizing the high-precision real-time brightness information output by the dynamic visual sensor DVS, it can provide good brightness information for the real-time ambient brightness perception during the video recording process. Effective use of these brightness information can reasonably adjust the exposure parameters to achieve fast image adaptive exposure. method, capture more complete image information, and also provide a good image basis for image post-processing.
  • number 100 is the image seen by the human eye
  • number 200 is the image recorded by ordinary pixels
  • number 300 is the image recorded by real-sensing pixels.
  • the difference between real-sensing pixels and ordinary pixels is that conventional pixels need to integrate the light information within a period of time (related to the frame rate) and then read out one by one in order, while real-sensing pixels can be independent, with the pixel clock frequency, real-time Perceive the change in the brightness of the external environment, and convert the transformation of the ambient brightness into a change in pixel value. If the change in the pixel value of a certain real-sensing pixel exceeds the preset threshold, it will report to the system to request readout, and output coordinate information, Data packets of brightness information and time information.
  • Step 106 based on the target information, determine target exposure parameters
  • Step 108 based on the target exposure parameters, shoot to obtain a multimedia file;
  • the target information includes: location information of real-sensing pixels, ambient brightness information and time information;
  • the multimedia file includes at least one of the following: image, video.
  • the position information, ambient brightness information, and time information of the real-sensing pixels are output, so as to quickly adjust the exposure parameters, so that the user can get a satisfactory preview image, which is conducive to improving the image quality and video quality of the shooting.
  • the electronic device can Automatically and quickly adjust the exposure parameters, which can reduce the difficulty of shooting with electronic equipment, and can shoot images and videos with better picture quality in different scenes.
  • the shooting method in this embodiment can process a single frame of images, which has a faster processing speed and is more suitable for video shooting.
  • determining the target exposure parameter based on the target information includes: determining the first image area based on the position information of the real-sensing pixels and the ambient brightness information; and determining the first image area based on the ambient brightness information and time information The first target exposure parameter; wherein, the first image area is an image area whose brightness changes exceed a preset range.
  • the shooting preview interface when there is an image area with a brightness change greater than a preset range in the shooting preview interface, it means that there is an area with a large difference between light and dark in the image in the shooting preview interface. If the same exposure parameters are used for the entire image at this time adjustment, prone to local overexposure or partial underexposure. Therefore, it is necessary to determine the position of the first image area according to the position information, and determine the first exposure parameter of the first image area according to the ambient brightness information and time information, wherein the time information is used to determine the image frame for adjusting the exposure parameter.
  • shooting the first image region through the first exposure parameter can compensate for the brightness difference in the region with a large difference between light and dark, avoid local overexposure or local underexposure, and help improve the shooting effect.
  • the exposure parameters of the multiple image areas need to be adjusted respectively.
  • the first target exposure parameter includes: exposure duration; determining the first target exposure parameter of the first image area based on the ambient brightness information and time information includes: the ambient brightness information in the first image area satisfies In the case of the first preset condition, the exposure time of the first image area is shortened; in the case of the ambient brightness information of the first image area meeting the second preset condition, the exposure time of the first image area is extended.
  • the exposure time will affect the video quality.
  • the exposure time is increased, the photon energy absorbed by the image during shooting can be increased, and the brightness of the captured image is larger.
  • the exposure time is reduced, the photon energy absorbed by the image during shooting can be reduced, and the brightness of the captured image is smaller.
  • the first preset condition may be that the brightness of the environment is greater than or equal to the preset brightness, and when an image area with relatively high brightness appears, overexposure may be avoided by shortening the exposure time.
  • the second preset condition may be that the brightness of the environment is lower than the preset brightness, and when an image area with a smaller brightness appears, underexposure may be avoided by prolonging the exposure time.
  • first pixel and the second pixel two pixels are respectively referred to as the first pixel and the second pixel for illustration.
  • a pixel row refers to multiple pixel points located in the same row, and an image is composed of several pixel rows.
  • the first pixel point and the second pixel point are located in adjacent pixel rows according to the position information. If the first pixel is located in the first pixel row and the second pixel is located in the second pixel row, it is necessary to obtain the brightness values of the first pixel row and the second pixel row. When the luminance value of the first pixel row is relatively large, the exposure duration of the first pixel row is shortened, or the exposure duration of the second pixel row is extended.
  • the explanation is as follows: when the brightness values of the first pixel row and the second pixel row are both large, even if the brightness value of the second pixel row is smaller than the brightness value of the first pixel row, the It is necessary to shorten the exposure time of the first pixel row, because prolonging the exposure time of the second pixel row will lead to overexposure of the second pixel row.
  • the left part of the arrow shows multiple rows of pixel rows, and the length of each pixel row represents the image
  • the exposure time of the pixel row is basically the same.
  • the exposure duration of the lower three rows of pixel rows needs to be increased.
  • the function of automatically adjusting exposure parameters is realized, which is conducive to obtaining a well-exposed image and retaining as much effective image information as possible, thereby improving image quality.
  • the first target exposure parameter includes: exposure gain; determining the first target exposure parameter of the first image region based on ambient brightness information and time information includes: the ambient brightness information in the first image region satisfies In the case of the third preset condition, the exposure gain of the first image area is decreased; in the case of the ambient brightness information of the first image area meeting the fourth preset condition, the exposure gain of the first image area is increased.
  • the exposure parameters when adjusting the exposure parameters, may also be adjusted by adjusting the exposure gain.
  • the exposure gain When the exposure gain is increased, the brightness of the captured image is greater.
  • the exposure gain When the exposure gain is reduced, the captured image has less brightness.
  • an adjustment area with a small area it can be adjusted by changing the exposure gain, and for an adjustment area with a large area, it can be adjusted by changing the exposure time.
  • the processing effect on the video can be further improved, which is beneficial to improving the shooting quality of the video.
  • the exposure gain of two adjacent pixels can be adjusted. .
  • the dynamic vision sensor DVS exposes the image line by line, so when a pixel with a large brightness difference appears in the same pixel line, the gain adjustment can be performed on the area with a large brightness difference.
  • the dynamic vision sensor DVS can quickly sense the brightness change. If the luminance change value exceeds the preset change range, the dynamic visual sensor DVS will output a data packet with coordinate information, luminance information, and time information, so that the position of the area in the image can be accurately located.
  • first pixel point and the second pixel point are located in the same pixel row can be determined according to the position information. If the first pixel point and the second pixel point are located in the same pixel row, it is necessary to obtain the brightness values of the first pixel point and the second pixel point. In the case that the brightness value of the first pixel is larger, the first image is reduced The exposure gain of the pixel point, or increase the exposure gain of the second pixel point.
  • the explanation is as follows: when the brightness values of the first pixel point and the second pixel point are both large, even if the brightness value of the second pixel point is smaller than the brightness value of the first pixel point , it is also necessary to reduce the exposure gain of the first pixel, so increasing the exposure gain of the second pixel will lead to overexposure of the second pixel.
  • the function of automatically adjusting exposure parameters is realized, which is conducive to obtaining a well-exposed image, retaining as much effective image information as possible, thereby improving image quality.
  • the shooting preview interface is a preview interface corresponding to the first shooting mode.
  • the exposure parameter in the first shooting mode, may be adjusted for the region in the image with a large brightness difference. Therefore, in a scene with a large difference in ambient brightness, the user can select the first shooting mode for shooting, which is beneficial to improve the shooting effect.
  • determining the target exposure parameter based on the target information includes: determining the second image area based on the position information of the real-sensing pixels and the ambient brightness information; determining the second image area based on the ambient brightness information and time information The second target exposure parameter; wherein, the second image area is the image area corresponding to the motion track of the moving object.
  • the second image region is shot through the second exposure parameter, which can clearly record the motion track of the shooting object, which is beneficial to improve the shooting effect.
  • the second target exposure parameter includes at least one of the following: exposure duration and exposure gain; determining the second target exposure parameter of the second image region based on ambient brightness information and time information includes at least one of the following : Extending the exposure time of the second image area based on the ambient brightness information and time information; increasing the exposure gain of the second image area based on the ambient brightness information and time information.
  • the position of the moving image is determined based on the position information. Then according to the ambient brightness The information and time information determine the exposure duration or exposure gain of the image area where the moving image is located. Wherein, the time information is used to determine the image frame for adjusting the exposure parameter.
  • the pixel row where the moving image is located is determined to be the third pixel row.
  • the exposure time for the third pixel row can be increased to achieve a local long exposure effect.
  • the area other than the moving image is still exposed with the default exposure time, so that the trajectory of the ball’s movement can be obtained without affecting the shooting effect of the background where the moving image is located.
  • the left part of the arrow shows multiple rows of pixel rows, and the length of each pixel row represents the exposure duration of the pixel row. It can be seen from the figure that the exposure duration of each pixel row is basically the same. When the moving image is located in the middle three rows of pixels, the exposure duration of the middle three rows of pixels is increased.
  • the function of automatically adjusting the exposure parameters is realized, which is conducive to obtaining a well-exposed image, retaining as much effective image information as possible, thereby improving image quality.
  • the exposure parameters of the multiple moving images need to be adjusted.
  • the multimedia file after the multimedia file is obtained, the multimedia file can be further optimized, and image signal processing can be performed on the multimedia file.
  • Image signal processing includes: color temperature correction, local gain adjustment, etc.
  • the shooting method provided in the embodiment of the present application may be executed by a shooting device.
  • the photographing device provided in the embodiment of the present application is described by taking the method for performing photographing by the photographing device as an example.
  • a photographing device 400 including:
  • the acquisition module 410 is used to acquire the change value of the real sense pixel in the dynamic visual sensor when the shooting preview interface is displayed;
  • An output module 420 configured to output target information when the change value is greater than or equal to a preset threshold
  • a determining module 430 configured to determine target exposure parameters based on target information
  • a photographing module 440 configured to photograph and obtain multimedia files based on target exposure parameters
  • the target information includes: location information of real-sensing pixels, ambient brightness information, and time information;
  • the multimedia file includes at least one of the following: images and videos.
  • the position information, ambient brightness information, and time information of the real-sensing pixels are output, so as to quickly adjust the exposure parameters, so that the user can get a satisfactory preview image, which is conducive to improving the image quality and video quality of the shooting.
  • the electronic device can Automatically and quickly adjust the exposure parameters, which can reduce the difficulty of shooting with electronic equipment, and can shoot images and videos with better picture quality in different scenes.
  • the determining module is specifically configured to: determine the first image region based on the position information of the real-sensing pixels and the ambient brightness information; determine the first target exposure of the first image region based on the ambient brightness information and time information parameters; wherein, the first image area is an image area whose brightness changes exceed a preset range.
  • the first target exposure parameter includes: exposure duration; the determining module is specifically configured to: shorten the exposure time of the first image area when the ambient brightness information of the first image area satisfies the first preset condition. Exposure duration: when the ambient brightness information of the first image region satisfies the second preset condition, prolong the exposure duration of the first image region.
  • determining the first target exposure parameter of the first image region based on the ambient brightness information and time information includes: reducing the Decrease the exposure gain of the first image area; increase the exposure gain of the first image area when the ambient brightness information of the first image area satisfies the fourth preset condition.
  • the shooting preview interface is a preview interface corresponding to the first shooting mode.
  • the determining module is specifically configured to: determine the second image area based on the position information of the real-sensing pixels and the ambient brightness information; determine the second target exposure of the second image area based on the ambient brightness information and time information parameter; wherein, the second image area is the image area corresponding to the motion track of the moving object.
  • the second target exposure parameter includes at least one of the following: The length, exposure gain; determination module is specifically used to: extend the exposure time of the second image area based on the ambient brightness information and time information; increase the exposure gain of the second image area based on the ambient brightness information and time information.
  • the shooting preview interface is a preview interface corresponding to the second shooting mode.
  • the photographing device in the embodiment of the present application may be an electronic device, or may be a component in the electronic device, such as an integrated circuit or a chip.
  • the electronic device may be a terminal, or other devices other than the terminal.
  • the electronic device can be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) ) equipment, robots, wearable devices, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc.
  • the photographing device in the embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.
  • the photographing device provided by the embodiment of the present application can realize each process realized by the method embodiments in FIG. 1 to FIG. 3 and achieve the same technical effect. To avoid repetition, details are not repeated here.
  • the embodiment of the present application also provides an electronic device 500, including a processor 510 and a memory 520, and the memory 520 stores programs or instructions that can run on the processor 510.
  • the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 6 is a schematic diagram of a hardware structure of an electronic device 600 implementing an embodiment of the present application.
  • the electronic device 600 includes but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, and a processor 610, etc. part.
  • the electronic device 600 may also include a A power source (such as a battery), the power source can be logically connected to the processor 610 through the power management system, so that functions such as charging, discharging, and power consumption management can be implemented through the power management system.
  • a power source such as a battery
  • the power source can be logically connected to the processor 610 through the power management system, so that functions such as charging, discharging, and power consumption management can be implemented through the power management system.
  • the structure of the electronic device shown in FIG. 6 does not constitute a limitation to the electronic device, and the electronic device may include more or fewer components than shown in the figure, or combine some components, or arrange different components, which will not be repeated here. .
  • the processor 610 is configured to obtain the change value of the real sense pixel in the dynamic visual sensor when the shooting preview interface is displayed; when the change value is greater than or equal to the preset threshold, output the target information; based on the target information, determine A target exposure parameter; based on the target exposure parameter, a multimedia file is obtained by shooting.
  • the position information, ambient brightness information, and time information of the real-sensing pixels are output, so as to quickly adjust the exposure parameters, so that the user can get a satisfactory preview image, which is conducive to improving the image quality and video quality of the shooting.
  • the electronic device can Automatically and quickly adjust the exposure parameters, which can reduce the difficulty of shooting with electronic equipment, and can shoot images and videos with better picture quality in different scenes.
  • the processor 610 is configured to determine the first image region based on the location information of the real-sensing pixels and the ambient brightness information; and determine the first target exposure parameter of the first image region based on the ambient brightness information and time information.
  • the processor 610 is configured to shorten the exposure duration of the first image region when the ambient brightness information of the first image region satisfies a first preset condition; In the case of preset conditions, the exposure time of the first image area is extended.
  • the processor 610 is configured to reduce the exposure gain of the first image region when the ambient brightness information of the first image region satisfies a third preset condition; when the ambient brightness information of the first image region satisfies the third preset condition In the case of four preset conditions, increase the exposure gain of the first image area.
  • the processor 610 is configured to determine the second image region based on the location information of the real-sensing pixels and the ambient brightness information; and determine the second target exposure parameter of the second image region based on the ambient brightness information and time information.
  • the processor 610 is configured to extend the second map based on the ambient brightness information and time information The exposure time of the image area; based on the ambient brightness information and time information, increase the exposure gain of the second image area.
  • the input unit 604 may include a graphics processor (Graphics Processing Unit, GPU) 6041 and a microphone 6042, and the graphics processor 6041 is used for the image capture device (such as the image data of the still picture or video obtained by the camera) for processing.
  • the display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 607 includes at least one of a touch panel 6071 and other input devices 6072 .
  • the touch panel 6071 is also called a touch screen.
  • the touch panel 6071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 6072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • the memory 609 can be used to store software programs as well as various data.
  • the memory 609 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required by at least one function (such as a sound playing function, image playback function, etc.), etc.
  • memory 609 may include volatile memory or nonvolatile memory, or, memory 609 may include both volatile and nonvolatile memory.
  • the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electronically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash.
  • ROM Read-Only Memory
  • PROM programmable read-only memory
  • Erasable PROM Erasable PROM
  • EPROM erasable programmable read-only memory
  • Electrical EPROM Electrical EPROM
  • EEPROM electronically programmable Erase Programmable Read-Only Memory
  • Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synch link DRAM , SLDRAM) and Direct Memory Bus Random Access Memory (Direct Rambus RAM, DRRAM).
  • RAM Random Access Memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • DRAM synchronous dynamic random access memory
  • SDRAM double data rate synchronous dynamic random access memory
  • Double Data Rate SDRAM Double Data Rate SDRAM
  • DDRSDRAM double data rate synchronous dynamic random access memory
  • Enhanced SDRAM, ESDRAM enhanced synchronous dynamic random access memory
  • Synch link DRAM , SLDRAM
  • Direct Memory Bus Random Access Memory Direct Rambus
  • the processor 610 may include one or more processing units; optionally, the processor 610 integrates application A processor and a modem processor, wherein the application processor mainly deals with operations related to the operating system, user interface, and application programs, and the modem processor mainly deals with wireless communication signals, such as a baseband processor. It can be understood that the foregoing modem processor may not be integrated into the processor 610 .
  • the embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, each process of the above-mentioned photographing method embodiment can be realized, and the same technical effect can be achieved. , to avoid repetition, it will not be repeated here.
  • the processor is the processor in the electronic device in the foregoing embodiments.
  • the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk, and the like.
  • the embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, the processor is used to run programs or instructions, and realize the various processes of the above-mentioned shooting method embodiments, and can achieve the same technology Effect, in order to avoid repetition, will not repeat them here.
  • chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
  • An embodiment of the present application provides a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the various processes in the above-mentioned shooting method embodiment, and can achieve the same technical effect, To avoid repetition, details are not repeated here.
  • the term “comprising”, “comprising” or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase “comprising a " does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
  • the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

Abstract

本申请公开了一种拍摄方法、拍摄装置、电子设备和可读存储介质,属于拍摄领域。其中,拍摄方法包括:在显示拍摄预览界面的情况下,获取动态视觉传感器中实感像素的变化数值(102);在变化数值大于或等于预设阈值的情况下,输出目标信息(104);基于目标信息,确定目标曝光参数(106);基于目标曝光参数,拍摄得到多媒体文件(108);其中,目标信息包括:实感像素的位置信息、环境亮度信息、时间信息;多媒体文件包括以下至少一项:图像、视频。

Description

拍摄方法、拍摄装置、电子设备和可读存储介质
相关申请的交叉引用
本申请要求在2022年02月23日提交中国专利局、申请号为202210170753.1、名称为“拍摄方法、拍摄装置、电子设备和可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请属于摄像技术领域,具体涉及一种拍摄方法、拍摄装置、电子设备和可读存储介质。
背景技术
目前,用户通过拍摄视频的方式记录生活,所以用户对电子设备的拍摄质量的要求也在逐渐提高。
曝光参数对图像质量影响较大,目前主要是通过计算已有帧的亮度信息预估环境亮度,然后调整下一帧的曝光参数,这种方法通常适用于照明条件恒定或变化缓慢的情况。
在快速照明转换期间,由于算法响应时间相对较慢,通常难以快速、准确地进行曝光调节。
发明内容
本申请实施例的目的是提供一种拍摄方法、拍摄装置、电子设备和可读存储介质,能够解决难以快速、准确地进行曝光调节的问题。
第一方面,本申请实施例提供了一种拍摄方法,该方法包括:
在显示拍摄预览界面的情况下,获取动态视觉传感器中实感像素的变化数值;
在变化数值大于或等于预设阈值的情况下,输出目标信息;
基于目标信息,确定目标曝光参数;
基于目标曝光参数,拍摄得到多媒体文件;
其中,目标信息包括:实感像素的位置信息、环境亮度信息、时间信息; 多媒体文件包括以下至少一项:图像、视频。
第二方面,本申请实施例提供了一种拍摄的装置,包括:
获取模块,用于在显示拍摄预览界面的情况下,获取动态视觉传感器中实感像素的变化数值;
输出模块,用于在变化数值大于或等于预设阈值的情况下,输出目标信息;
确定模块,用于基于目标信息,确定目标曝光参数;
拍摄模块,用于基于目标曝光参数,拍摄得到多媒体文件;
其中,目标信息包括:实感像素的位置信息、环境亮度信息、时间信息;多媒体文件包括以下至少一项:图像、视频。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器和存储器,存储器存储可在处理器上运行的程序或指令,程序或指令被处理器执行时实现如第一方面的方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,可读存储介质上存储程序或指令,程序或指令被处理器执行时实现如第一方面的方法的步骤。
第五方面,本申请实施例提供了一种芯片,芯片包括处理器和通信接口,通信接口和处理器耦合,处理器用于运行程序或指令,实现如第一方面的方法。
第六方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面的方法。
第七方面,本申请实施例提供一种拍摄设备,该设备被配置成用于实现如第一方面的方法。
在本申请实施例中,结合实感像素的变化数值,输出实感像素的位置信息、环境亮度信息、时间信息,从而对曝光参数快速进行调整,使得用户可以得到满意的预览画面,有利于提高拍摄得到图像质量和视频质量。
在拍摄过程中,由于电子设备自动检测实感像素的变化数值与预设阈值 的关系,以及能够自动对曝光参数进行调整,所以,即使用户的拍摄经验较少或不具有拍摄经验,由于电子设备能够自动且快速对曝光参数进行调节,能够降低使用电子设备进行拍摄的难度,能够在不同场景下拍摄得到画面质量较好的图像和视频。
附图说明
图1是本申请实施例中拍摄方法的流程示意图;
图2是本申请实施例中曝光时长调整前和曝光时长调整后的示意图之一;
图3是本申请实施例中曝光时长调整前和曝光时长调整后的示意图之二;
图4是本申请实施例中拍摄装置的示意框图;
图5是本申请实施例中电子设备的示意框图;
图6是本申请实施例的一种电子设备的硬件结构示意图;
图7是本申请实施例的实感像素和普通像素的对比示意图。
具体实施例
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的拍摄方法、拍摄装置、电子设备和可读存储介质进行详细地说明。
如图1所示,在本申请的实施例中,提出了一种拍摄方法,包括:
步骤102,在显示拍摄预览界面的情况下,获取动态视觉传感器中实感像素的变化数值;
在开启摄像功能之后,电子设备的屏幕上能够对待拍摄的图像进行显示,此时电子设备的显示界面即为拍摄预览界面。
步骤104,在变化数值大于或等于预设阈值的情况下,输出目标信息;
在开启摄像功能之后,需要确定拍摄预览界面内的图像中是否包括亮度变化较大的区域。在变化数值较大的情况下,输出目标信息。
具体地,在确定拍摄预览界面内的图像中是否包括亮度变化较大的区域时,可以采用动态视觉传感器DVS(Dynamic Vision Sensor)作为电子设备中的相机传感器,动态视觉传感器DVS具有低延迟的特性,能够快速相应环境变化,所以动态视觉传感器DVS能够快速地获取拍摄预览界面内图像中是否包括亮度变化较大的区域。
当实感像素的变化值大于或等于预设阈值的情况下,说明拍摄预览界面内包括亮度变化较大的区域,亮度变化较大的区域会对拍摄得到的图像或视频质量产生较大的影响,因此需要对曝光参数进行调整。具体地,根据目标信息的位置、环境亮度和时间等信息,对曝光参数进行调整,降低亮度变化较大的区域对图像或视频质量的影响。
利用动态视觉传感器DVS输出的高精度实时性的亮度信息,能为录像过程中的实时环境亮度感知提供良好的亮度信息,有效利用这些亮度信息,能够合理调整曝光参数,实现快速的图像自适应曝光方法,捕获更全的图像信息,也为图像后处理提供良好的图像基础。
如图7所示,序号100是人眼看到的图像,序号200是普通像素记录的图像,序号300是实感像素记录的图像。实感像素和普通像素的差异在于,常规像素要在一个时间段内(和帧率相关)对光信息做积分后按照顺序逐个读出,而实感像素可以分别独立的,随着像素时钟频率,实时感知外界环境亮度变化,将环境亮度的变换转化成像素值的变化,如果某个实感像素的像素值的变化量超过预设的阈值,则会上报系统要求读出,并且输出带有坐标信息、亮度信息、时间信息的数据包。
步骤106,基于目标信息,确定目标曝光参数;
步骤108,基于目标曝光参数,拍摄得到多媒体文件;其中,目标信息包括:实感像素的位置信息、环境亮度信息和时间信息;多媒体文件包括以下至少一项:图像、视频。
结合实感像素的变化数值,输出实感像素的位置信息、环境亮度信息、时间信息,从而对曝光参数快速进行调整,使得用户可以得到满意的预览画面,有利于提高拍摄得到图像质量和视频质量。
在拍摄过程中,由于电子设备自动检测实感像素的变化数值与预设阈值的关系,以及能够自动对曝光参数进行调整,所以,即使用户的拍摄经验较少或不具有拍摄经验,由于电子设备能够自动且快速对曝光参数进行调节,能够降低使用电子设备进行拍摄的难度,能够在不同场景下拍摄得到画面质量较好的图像和视频。
相比于多帧图像相融合而处理图像的方式,本实施例中拍摄方法可对单帧图像进行处理,处理速度更快,更适用于视频拍摄。
在一种可能的实施例中,基于目标信息,确定目标曝光参数,包括:基于实感像素的位置信息和环境亮度信息,确定第一图像区域;基于环境亮度信息和时间信息,确定第一图像区域的第一目标曝光参数;其中,第一图像区域为亮度变化超过预设范围的图像区域。
在该实施例中,当拍摄预览界面内存在亮度变化大于预设范围的图像区域时,说明拍摄预览界面内的图像存在明暗差距较大的区域,如果此时对整个图像采用相同的曝光参数进行调整,容易出现局部过度曝光或局部曝光不足的情况发生。因此,需要根据位置信息,确定第一图像区域的位置,根据环境亮度信息和时间信息,确定第一图像区域的第一曝光参数,其中,时间信息用于确定调整曝光参数的图像帧。在拍摄时,通过第一曝光参数对第一图像区域进行拍摄,能够弥补明暗差距较大区域的亮度差异,避免出现局部过度曝光或局部曝光不足的情况发生,有利于提高拍摄效果。
对于明暗差距较小的区域,可以仍然采用默认的曝光参数进行拍摄。
在一种可能的应用中,亮度差值较大的图像区域可以有多个,此时需要对多个图像区域的曝光参数分别进行调整。
在一种可能的实施例中,第一目标曝光参数包括:曝光时长;基于环境亮度信息和时间信息确定第一图像区域的第一目标曝光参数,包括:在第一图像区域的环境亮度信息满足第一预设条件的情况下,缩短第一图像区域的曝光时长;在第一图像区域的环境亮度信息满足第二预设条件的情况下,延长第一图像区域的曝光时长。
在该实施例中,曝光时长会对视频质量产生影响。当增加曝光时长时,能够提高拍摄过程中图像吸收的光子能量,拍摄得到的图像的亮度较大。当减少曝光时长时,能够降低拍摄过程中图像吸收的光子能量,拍摄得到的图像的亮度较小。
第一预设条件可以为环境亮度大于或等于预设亮度,在出现亮度较大的图像区域时,可以通过缩短曝光时长的方式避免过度曝光。第二预设条件可以为环境亮度小于预设亮度,在出现亮度较小的图像区域时,可以通过延长曝光时长的方式避免曝光不足。
在一种可能的应用中,当实感像素的变化数值较大时,以两个像素点分别为第一像素点和第二像素点进行说明。先确定第一像素点和第二像素点在图像中的位置,如果第一像素点和第二像素点位于不同的像素行,说明拍摄预览界面中存在相邻两个像素行亮度差值较大的情况,此时可以对相邻两个像素行的曝光时长进行调整。
需要说明的是,像素行指的是位于同一行的多个像素点,图像由若干像素行组成。
具体地,根据位置信息能够确定第一像素点和第二像素点是否位于相邻像素行。如果第一像素点位于第一像素行,第二像素点位于第二像素行,就需要获取第一像素行和第二像素行的亮度值。在第一像素行的亮度值较大的情况下,就缩短第一像素行的曝光时长,或者延长第二像素行的曝光时长。
关于缩短曝光时长或延长曝光时长,解释如下:在第一像素行和第二像素行的亮度值均较大的情况下,即使第二像素行的亮度值小于第一像素行的亮度值,也需要采用缩短第一像素行的曝光时长的方式,因为延长第二像素行的曝光时长会导致第二像素行过度曝光的情况发生。
如图2所示,箭头左部示出了多行像素行,每条像素行的长度表示该像 素行的曝光时长,由图可知,每行像素行的曝光时长基本相同。在上面三行像素行的亮度值较大,以及下面三行像素行亮度值较小的情况下,需要增大下面三行像素行的曝光时长。
通过调整相邻像素行的曝光时长,实现自动调整曝光参数的功能,有利于获得良好曝光的图像,尽可能多的保留有效图像信息,从而提升图像质量。
在一种可能的实施例中,第一目标曝光参数包括:曝光增益;基于环境亮度信息和时间信息确定第一图像区域的第一目标曝光参数,包括:在第一图像区域的环境亮度信息满足第三预设条件的情况下,减小第一图像区域的曝光增益;在第一图像区域的环境亮度信息满足第四预设条件的情况下,增大第一图像区域的曝光增益。
在该实施例中,在对曝光参数进行调整时,也可以通过调整曝光增益的方式对曝光参数进行调整。当增加曝光增益时,拍摄得到的图像的亮度较大。当减少曝光增益时,拍摄得到的图像的亮度较小。
对于面积较小的调整区域,可以采用改变曝光增益的方式进行调整,对于面积较大的调整区域,可以采用改变曝光时间的方式进行调整。综合考虑曝光时长和曝光参数对亮度变化较大的区域的影响,能够进一步提高对视频的处理效果,有利于提高视频的拍摄质量。
如果第一像素点和第二像素点位于相同的像素行,说明在同一像素行内存在两个像素点亮度差值较大的情况,此时可以对相邻两个像素点的曝光增益进行调整。
动态视觉传感器DVS对图像是逐行进行曝光的,所以在同一像素行内出现亮度差值较大的像素点时,可以对亮度差值较大的区域进行增益调整。
在录像过程中,拍摄场景从室内场景向室外过渡时,动态视觉传感器DVS能够快速感应亮度变化。如果亮度变化值超出预设变化范围,动态视觉传感器DVS会输出带有坐标信息、亮度信息、时间信息的数据包,由此可准确定位该区域在图像中的位置。
根据位置信息能够确定第一像素点和第二像素点是否位于同一像素行。如果第一像素点和第二像素点位于同一像素行,就需要获取第一像素点和第二像素点的亮度值。在第一像素点的亮度值较大的情况下,就减小对第一像 素点的曝光增益,或增大对第二像素点的曝光增益。
关于增大曝光增益或减小曝光增益,解释如下:在第一像素点和第二像素点的亮度值均较大的情况下,即使第二像素点的亮度值小于第一像素点的亮度值,也需要采用减小对第一像素点的曝光增益的方式,因此增大第二像素点的曝光增益会导致第二像素点过度曝光的情况发生。
通过调整相邻像素点的曝光增益,实现自动调整曝光参数的功能,有利于获得良好曝光的图像,尽可能多的保留有效图像信息,从而提升图像质量。
在一种可能的实施例中,拍摄预览界面为第一拍摄模式对应的预览界面。
在该实施例中,在第一拍摄模式下,可以对图像中亮度差值较大的区域调整曝光参数。因此,在环境亮度差异较大的场景下,用户可以选择第一拍摄模式进行拍摄,有利于提高拍摄效果。
在一种可能的实施例中,基于目标信息,确定目标曝光参数,包括:基于实感像素的位置信息和环境亮度信息,确定第二图像区域;基于环境亮度信息和时间信息,确定第二图像区域的第二目标曝光参数;其中,第二图像区域为运动对象的运动轨迹对应的图像区域。
在该实施例中,当拍摄预览界面内的图像存在运动图像时,如果想要清晰地拍摄运动图像,需要避免曝光不足的情况发生。因此,需要根据位置信息确定运动对象的位置,并结合环境亮度信息和时间信息调整运动对象的曝光参数。
在拍摄时,通过第二曝光参数对第二图像区域进行拍摄,能够清楚记录拍摄对象的运动轨迹,有利于提高拍摄效果。
对于不具有运动图像的区域,可以仍然采用默认的曝光参数进行拍摄。
在一种可能的实施例中,第二目标曝光参数包括以下至少一项:曝光时长、曝光增益;基于环境亮度信息和时间信息确定第二图像区域的第二目标曝光参数,包括以下至少一项:基于环境亮度信息和时间信息,延长第二图像区域的曝光时长;基于环境亮度信息和时间信息,增大第二图像区域的曝光增益。
在该实施例中,根据位置信息确定运动图像的位置。然后根据环境亮度 信息和时间信息确定运动图像的所在图像区域的曝光时长或曝光增益。其中,时间信息用于确定调整曝光参数的图像帧。
具体地,根据位置信息确定运动图像所在的像素行为第三像素行,为了能够记录小球的运动轨迹,可以增大对第三像素行的曝光时长,实现局部长曝光效果。除运动图像之外的区域仍然采用默认的曝光时长进行曝光,这样就可以获取小球的运动的轨迹,而且不会影响运动图像所在背景的拍摄效果。
如图3所示,箭头左部示出了多行像素行,每条像素行的长度表示该像素行的曝光时长,由图可知,每行像素行的曝光时长基本相同。当运动图像位于中间三行像素行时,增大中间三行像素行的曝光时长。
通过上述方式,实现自动调整曝光参数的功能,有利于获得良好曝光的图像,尽可能多的保留有效图像信息,从而提升图像质量。
长曝光通常用于夜间摄影和光迹摄影,借由延长相机的快门开放时间,以吸收更多的光线,记录轨迹。
在一种可能的应用中,运动图像可以有多个,此时需要对多个运动图像的曝光参数进行调整。
在一种可能的应用中,在得到多媒体文件之后,可以对多媒体文件进一步优化,对多媒体文件进行图像信号处理。图像信号处理包括:色温矫正、局部增益调整等。通过进一步优化图像,使得得到的多媒体文件的图像质量进一步得到提升,有利于满足用户的拍摄需求。
本申请实施例提供的拍摄方法,执行主体可以为拍摄装置。本申请实施例中以拍摄装置执行拍摄的方法为例,说明本申请实施例提供的拍摄装置。
如图4所示,在本申请的实施例中,提出了一种拍摄装置400,包括:
获取模块410,用于在显示拍摄预览界面的情况下,获取动态视觉传感器中实感像素的变化数值;
输出模块420,用于在变化数值大于或等于预设阈值的情况下,输出目标信息;
确定模块430,用于基于目标信息,确定目标曝光参数;
拍摄模块440,用于基于目标曝光参数,拍摄得到多媒体文件;
其中,目标信息包括:实感像素的位置信息、环境亮度信息、时间信息;多媒体文件包括以下至少一项:图像、视频。
结合实感像素的变化数值,输出实感像素的位置信息、环境亮度信息、时间信息,从而对曝光参数快速进行调整,使得用户可以得到满意的预览画面,有利于提高拍摄得到图像质量和视频质量。
在拍摄过程中,由于电子设备自动检测实感像素的变化数值与预设阈值的关系,以及能够自动对曝光参数进行调整,所以,即使用户的拍摄经验较少或不具有拍摄经验,由于电子设备能够自动且快速对曝光参数进行调节,能够降低使用电子设备进行拍摄的难度,能够在不同场景下拍摄得到画面质量较好的图像和视频。
在一种可能的实施例中,确定模块具体用于:基于实感像素的位置信息和环境亮度信息,确定第一图像区域;基于环境亮度信息和时间信息,确定第一图像区域的第一目标曝光参数;其中,第一图像区域为亮度变化超过预设范围的图像区域。
在一种可能的实施例中,第一目标曝光参数包括:曝光时长;确定模块具体用于:在第一图像区域的环境亮度信息满足第一预设条件的情况下,缩短第一图像区域的曝光时长;在第一图像区域的环境亮度信息满足第二预设条件的情况下,延长第一图像区域的曝光时长。
在一种可能的实施例中,基于环境亮度信息和时间信息确定第一图像区域的第一目标曝光参数,包括:在第一图像区域的环境亮度信息满足第三预设条件的情况下,减小第一图像区域的曝光增益;在第一图像区域的环境亮度信息满足第四预设条件的情况下,增大第一图像区域的曝光增益。
在一种可能的实施例中,拍摄预览界面为第一拍摄模式对应的预览界面。
在一种可能的实施例中,确定模块具体用于:基于实感像素的位置信息和环境亮度信息,确定第二图像区域;基于环境亮度信息和时间信息,确定第二图像区域的第二目标曝光参数;其中,第二图像区域为运动对象的运动轨迹对应的图像区域。
在一种可能的实施例中,第二目标曝光参数包括以下至少一项:曝光时 长、曝光增益;确定模块具体用于:基于环境亮度信息和时间信息,延长第二图像区域的曝光时长;基于环境亮度信息和时间信息,增大第二图像区域的曝光增益。拍摄预览界面为第二拍摄模式对应的预览界面。
本申请实施例中的拍摄装置可以是电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的拍摄装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的拍摄装置能够实现图1至图3的方法实施例实现的各个过程,实现相同的技术效果,为避免重复,这里不再赘述。
可选地,如图5所示,本申请实施例还提供一种电子设备500,包括处理器510和存储器520,存储器520上存储有可在处理器510上运行的程序或指令,该程序或指令被处理器510执行时实现上述拍摄方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例中的电子设备包括上述的移动电子设备和非移动电子设备。
图6为实现本申请实施例的一种电子设备600的硬件结构示意图。
该电子设备600包括但不限于:射频单元601、网络模块602、音频输出单元603、输入单元604、传感器605、显示单元606、用户输入单元607、接口单元608、存储器609、以及处理器610等部件。
本领域技术人员可以理解,电子设备600还可以包括给各个部件供电的 电源(比如电池),电源可以通过电源管理系统与处理器610逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图6中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,处理器610,用于在显示拍摄预览界面的情况下,获取动态视觉传感器中实感像素的变化数值;在变化数值大于或等于预设阈值的情况下,输出目标信息;基于目标信息,确定目标曝光参数;基于目标曝光参数,拍摄得到多媒体文件。
结合实感像素的变化数值,输出实感像素的位置信息、环境亮度信息、时间信息,从而对曝光参数快速进行调整,使得用户可以得到满意的预览画面,有利于提高拍摄得到图像质量和视频质量。
在拍摄过程中,由于电子设备自动检测实感像素的变化数值与预设阈值的关系,以及能够自动对曝光参数进行调整,所以,即使用户的拍摄经验较少或不具有拍摄经验,由于电子设备能够自动且快速对曝光参数进行调节,能够降低使用电子设备进行拍摄的难度,能够在不同场景下拍摄得到画面质量较好的图像和视频。
可选地,处理器610,用于基于实感像素的位置信息和环境亮度信息,确定第一图像区域;基于环境亮度信息和时间信息,确定第一图像区域的第一目标曝光参数。
可选地,处理器610,用于在第一图像区域的环境亮度信息满足第一预设条件的情况下,缩短第一图像区域的曝光时长;在第一图像区域的环境亮度信息满足第二预设条件的情况下,延长第一图像区域的曝光时长。
可选地,处理器610,用于在第一图像区域的环境亮度信息满足第三预设条件的情况下,减小第一图像区域的曝光增益;在第一图像区域的环境亮度信息满足第四预设条件的情况下,增大第一图像区域的曝光增益。
可选地,处理器610,用于基于实感像素的位置信息和环境亮度信息,确定第二图像区域;基于环境亮度信息和时间信息,确定第二图像区域的第二目标曝光参数。
可选地,处理器610,用于基于环境亮度信息和时间信息,延长第二图 像区域的曝光时长;基于环境亮度信息和时间信息,增大第二图像区域的曝光增益。
应理解的是,本申请实施例中,输入单元604可以包括图形处理器(Graphics Processing Unit,GPU)6041和麦克风6042,图形处理器6041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元606可包括显示面板6061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板6061。用户输入单元607包括触控面板6071以及其他输入设备6072中的至少一种。触控面板6071,也称为触摸屏。触控面板6071可包括触摸检测装置和触摸控制器两个部分。其他输入设备6072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
存储器609可用于存储软件程序以及各种数据。存储器609可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器609可以包括易失性存储器或非易失性存储器,或者,存储器609可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器609包括但不限于这些和任意其它适合类型的存储器。
处理器610可包括一个或多个处理单元;可选地,处理器610集成应用 处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器610中。
本申请实施例还提供一种可读存储介质,可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,处理器为上述实施例中的电子设备中的处理器。可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。
本申请实施例另提供了一种芯片,芯片包括处理器和通信接口,通信接口和处理器耦合,处理器用于运行程序或指令,实现上述拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述 实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (14)

  1. 一种拍摄方法,包括:
    在显示拍摄预览界面的情况下,获取动态视觉传感器中实感像素的变化数值;
    在所述变化数值大于或等于预设阈值的情况下,输出目标信息;
    基于所述目标信息,确定目标曝光参数;
    基于所述目标曝光参数,拍摄得到多媒体文件;
    其中,所述目标信息包括:实感像素的位置信息、环境亮度信息、时间信息;所述多媒体文件包括以下至少一项:图像、视频。
  2. 根据权利要求1所述的拍摄方法,其中,
    所述基于所述目标信息,确定目标曝光参数,包括:
    基于所述实感像素的位置信息和所述环境亮度信息,确定第一图像区域;
    基于所述环境亮度信息和所述时间信息,确定所述第一图像区域的第一目标曝光参数;
    其中,所述第一图像区域为亮度变化超过预设范围的图像区域。
  3. 根据权利要求2所述的拍摄方法,其中,
    所述第一目标曝光参数包括:曝光时长;
    所述基于所述环境亮度信息和所述时间信息确定所述第一图像区域的第一目标曝光参数,包括:
    在所述第一图像区域的环境亮度信息满足第一预设条件的情况下,缩短所述第一图像区域的曝光时长;
    在所述第一图像区域的环境亮度信息满足第二预设条件的情况下,延长所述第一图像区域的所述曝光时长。
  4. 根据权利要求2所述的拍摄方法,其中,
    所述第一目标曝光参数包括:曝光增益;
    所述基于所述环境亮度信息和所述时间信息确定所述第一图像区域的第一目标曝光参数,包括:
    在所述第一图像区域的环境亮度信息满足第三预设条件的情况下,减小所述第一图像区域的曝光增益;
    在所述第一图像区域的环境亮度信息满足第四预设条件的情况下,增大所述第一图像区域的曝光增益。
  5. 根据权利要求2至4中任一项所述的拍摄方法,其中,
    所述拍摄预览界面为第一拍摄模式对应的预览界面。
  6. 根据权利要求1所述的拍摄方法,其中,
    所述基于所述目标信息,确定目标曝光参数,包括:
    基于所述实感像素的位置信息和所述环境亮度信息,确定第二图像区域;
    基于所述环境亮度信息和所述时间信息,确定所述第二图像区域的第二目标曝光参数;
    其中,所述第二图像区域为运动对象的运动轨迹对应的图像区域。
  7. 根据权利要求6所述的拍摄方法,其中,
    所述第二目标曝光参数包括以下至少一项:曝光时长、曝光增益;
    所述基于所述环境亮度信息和所述时间信息确定所述第二图像区域的第二目标曝光参数,包括以下至少一项:
    基于所述环境亮度信息和所述时间信息,延长所述第二图像区域的曝光时长;
    基于所述环境亮度信息和所述时间信息,增大所述第二图像区域的曝光增益。
  8. 根据权利要求6或7所述的拍摄方法,其中,
    所述拍摄预览界面为第二拍摄模式对应的预览界面。
  9. 一种拍摄装置,包括:
    获取模块,用于在显示拍摄预览界面的情况下,获取动态视觉传感器中实感像素的变化数值;
    输出模块,用于在所述变化数值大于或等于预设阈值的情况下,输出目标信息;
    确定模块,用于基于所述目标信息,确定目标曝光参数;
    拍摄模块,用于基于所述目标曝光参数,拍摄得到多媒体文件;
    其中,所述目标信息包括:实感像素的位置信息、环境亮度信息、时间信息;所述多媒体文件包括以下至少一项:图像、视频。
  10. 一种电子设备,包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至8中任一项所述的拍摄方法的步骤。
  11. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程 序或指令被处理器执行时实现如权利要求1至8中任一项所述的拍摄方法的步骤。
  12. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至8任一项所述的拍摄方法的步骤。
  13. 一种计算机程序产品,所述程序产品被存储在存储介质中,所述程序产品被至少一个处理器执行以实现如权利要求1至8任一项所述的拍摄方法的步骤。
  14. 一种拍摄设备,所述设备被配置成用于执行如权利要求1至8任一项所述的拍摄方法的步骤。
PCT/CN2023/077187 2022-02-23 2023-02-20 拍摄方法、拍摄装置、电子设备和可读存储介质 WO2023160496A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210170753.1 2022-02-23
CN202210170753.1A CN114390209A (zh) 2022-02-23 2022-02-23 拍摄方法、拍摄装置、电子设备和可读存储介质

Publications (1)

Publication Number Publication Date
WO2023160496A1 true WO2023160496A1 (zh) 2023-08-31

Family

ID=81205348

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/077187 WO2023160496A1 (zh) 2022-02-23 2023-02-20 拍摄方法、拍摄装置、电子设备和可读存储介质

Country Status (2)

Country Link
CN (1) CN114390209A (zh)
WO (1) WO2023160496A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114390209A (zh) * 2022-02-23 2022-04-22 维沃移动通信有限公司 拍摄方法、拍摄装置、电子设备和可读存储介质
CN115278097A (zh) * 2022-06-24 2022-11-01 维沃移动通信有限公司 图像生成方法、装置、电子设备及介质
CN115242952A (zh) * 2022-07-28 2022-10-25 联想(北京)有限公司 一种图像获取方法及装置

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100118204A1 (en) * 2008-11-07 2010-05-13 Adrian Proca Method For Automatic Exposure Control Within A Video Capture Device
CN109544590A (zh) * 2018-11-27 2019-03-29 上海芯仑光电科技有限公司 一种目标跟踪方法及计算设备
US20200014836A1 (en) * 2018-07-06 2020-01-09 Samsung Electronics Co., Ltd. Method and apparatus for capturing dynamic images
CN112118380A (zh) * 2019-06-19 2020-12-22 北京小米移动软件有限公司 相机操控方法、装置、设备及存储介质
CN112153301A (zh) * 2020-09-27 2020-12-29 维沃移动通信有限公司 拍摄方法和电子设备
CN112312017A (zh) * 2020-10-29 2021-02-02 维沃移动通信有限公司 拍摄控制方法和电子设备
CN112672060A (zh) * 2020-12-29 2021-04-16 维沃移动通信有限公司 拍摄方法、装置和电子设备
WO2021258321A1 (zh) * 2020-06-24 2021-12-30 华为技术有限公司 一种图像获取方法以及装置
CN114390209A (zh) * 2022-02-23 2022-04-22 维沃移动通信有限公司 拍摄方法、拍摄装置、电子设备和可读存储介质

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111212242B (zh) * 2020-01-14 2021-03-12 维沃移动通信有限公司 曝光方法和电子设备
CN113099122A (zh) * 2021-03-31 2021-07-09 维沃移动通信有限公司 拍摄方法、装置、设备和存储介质

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100118204A1 (en) * 2008-11-07 2010-05-13 Adrian Proca Method For Automatic Exposure Control Within A Video Capture Device
US20200014836A1 (en) * 2018-07-06 2020-01-09 Samsung Electronics Co., Ltd. Method and apparatus for capturing dynamic images
CN109544590A (zh) * 2018-11-27 2019-03-29 上海芯仑光电科技有限公司 一种目标跟踪方法及计算设备
CN112118380A (zh) * 2019-06-19 2020-12-22 北京小米移动软件有限公司 相机操控方法、装置、设备及存储介质
WO2021258321A1 (zh) * 2020-06-24 2021-12-30 华为技术有限公司 一种图像获取方法以及装置
CN112153301A (zh) * 2020-09-27 2020-12-29 维沃移动通信有限公司 拍摄方法和电子设备
CN112312017A (zh) * 2020-10-29 2021-02-02 维沃移动通信有限公司 拍摄控制方法和电子设备
CN112672060A (zh) * 2020-12-29 2021-04-16 维沃移动通信有限公司 拍摄方法、装置和电子设备
CN114390209A (zh) * 2022-02-23 2022-04-22 维沃移动通信有限公司 拍摄方法、拍摄装置、电子设备和可读存储介质

Also Published As

Publication number Publication date
CN114390209A (zh) 2022-04-22

Similar Documents

Publication Publication Date Title
WO2023160496A1 (zh) 拍摄方法、拍摄装置、电子设备和可读存储介质
US11563897B2 (en) Image processing method and apparatus which determines an image processing mode based on status information of the terminal device and photographing scene information
CN108419023B (zh) 一种生成高动态范围图像的方法以及相关设备
JP6388673B2 (ja) 携帯端末及びその撮像方法
US8780214B2 (en) Imaging apparatus using shorter and larger capturing intervals during continuous shooting function
US11158027B2 (en) Image capturing method and apparatus, and terminal
US9088721B2 (en) Imaging apparatus and display control method thereof
US20090262218A1 (en) Image processing apparatus, image processing method, and program
WO2021223500A1 (zh) 一种拍摄方法及设备
WO2022078241A1 (zh) 拍摄方法、装置及电子设备
CN112866576B (zh) 图像预览方法、存储介质及显示设备
CN112822412A (zh) 曝光方法和电子设备
WO2023134583A1 (zh) 视频录制方法、装置及电子设备
US20080094481A1 (en) Intelligent Multiple Exposure
US9013603B2 (en) Image processing apparatus, image capture device, server and computer program, where captured movie image is written in the storage medium based on the shooting condition
CN113014817B (zh) 高清高帧视频的获取方法、装置及电子设备
WO2023231869A1 (zh) 拍摄方法和装置
WO2023125669A1 (zh) 图像处理电路、图像处理方法、电子设备和可读存储介质
CN115278047A (zh) 拍摄方法、装置、电子设备和存储介质
CN112367467B (zh) 显示控制方法、装置、电子设备和介质
CN112312024A (zh) 拍照处理方法、装置及存储介质
CN114827477B (zh) 延时摄影的方法、装置、电子设备及介质
CN117714844A (zh) 视频处理方法、装置
CN117278842A (zh) 拍摄控制方法、装置、电子设备和可读存储介质
CN117793534A (zh) 变焦方法及装置、电子设备和可读存储介质

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

Country of ref document: EP

Kind code of ref document: A1