WO2023245391A1 - Preview method and apparatus for camera - Google Patents

Preview method and apparatus for camera Download PDF

Info

Publication number
WO2023245391A1
WO2023245391A1 PCT/CN2022/099967 CN2022099967W WO2023245391A1 WO 2023245391 A1 WO2023245391 A1 WO 2023245391A1 CN 2022099967 W CN2022099967 W CN 2022099967W WO 2023245391 A1 WO2023245391 A1 WO 2023245391A1
Authority
WO
WIPO (PCT)
Prior art keywords
preview
image
camera
target
preview image
Prior art date
Application number
PCT/CN2022/099967
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/CN2022/099967 priority Critical patent/WO2023245391A1/en
Priority to CN202280004284.4A priority patent/CN117652150A/en
Publication of WO2023245391A1 publication Critical patent/WO2023245391A1/en

Links

Images

Definitions

  • generating a target preview image of the camera based on the target preview mode and the initial preview image includes: in response to the target preview mode being the first preview mode, obtaining the first target magnification of the camera; converting the initial preview image to Perform pixel fusion to obtain a fusion preview image; scale the fusion preview image based on the first target magnification to generate a first scaled preview image; adjust the resolution of the first scaled preview image to a preset resolution to generate a target preview image.
  • obtaining the ambient brightness value of the environment where the camera is located includes: collecting light information of the environment based on a photosensitive element to determine the ambient brightness value; or obtaining the screen brightness of the initial preview image, based on the screen Brightness determines the ambient brightness value.
  • an embodiment of the present disclosure provides another camera preview device, which is characterized in that the device includes: a startup module for starting the camera and executing the camera's preview process to collect an initial preview image to be previewed; and an acquisition module for Obtain the ambient brightness value of the environment where the camera is located; the generation module is used to generate the calling instruction of the preview mode based on the environmental brightness value and the brightness threshold, and the calling instruction contains the target preview mode; the execution module is used to execute the calling instruction and call the target preview mode , and generate the target preview image of the camera based on the target preview mode and the initial preview image, and display the target preview image in the preview area of the camera.
  • the present disclosure proposes an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores information that can be executed by the at least one processor. Instructions, which are executed by the at least one processor, to implement the camera preview method as described in the embodiment of the first aspect of the present disclosure.
  • the present disclosure proposes a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to implement the camera preview method as described in the embodiment of the first aspect of the present disclosure.
  • the present disclosure proposes a computer program product, including a computer program that, when executed by a processor, is used to implement the camera preview method as described in the embodiment of the first aspect of the present disclosure.
  • Figure 5 is a schematic flowchart of another camera preview method provided by an embodiment of the present disclosure.
  • Figure 7 is an overall flow diagram of a camera preview method provided by an embodiment of the present disclosure.
  • the terms used in this article are “greater than” or “less than”, “higher than” or “lower than” when characterizing size relationships. But for those skilled in the art, it can be understood that: the term “greater than” also covers the meaning of “greater than or equal to”, and “less than” also covers the meaning of “less than or equal to”; the term “higher than” covers the meaning of “higher than or equal to”. “The meaning of “less than” also covers the meaning of "less than or equal to”.
  • FIG. 1 is a schematic flowchart of a camera preview method provided by an embodiment of the present disclosure. As shown in Figure 1, the method may include but is not limited to the following steps:
  • S11 start the camera and execute the preview process of the camera, and collect the initial preview image to be previewed.
  • the camera in the embodiment of the present disclosure includes a color filter array (Color Filter Array, CFA) function, which covers a layer of color filter array (Color Filter Array, CFA) on the surface of the pixel array.
  • color filter array Color Filter Array
  • the image data only uses one of the three values of R, G, and B to represent a pixel, and the other two color values are missing. At this time, a mosaic picture is obtained. In order to obtain a full-color image , it is necessary to use the color information of its surrounding pixels to estimate the other two missing colors. This process is called color interpolation.
  • the corresponding target preview modes can be different, and the specific settings need to be set according to actual needs.
  • the pixel sensitivity of the initial preview image collected by the camera is insufficient, which will cause the signal-to-noise ratio of the image sent to the back-end of the image signal processor to be too high, and the quality of the generated image will be too poor, resulting in the final preview image quality.
  • the signal-to-noise ratio of an image is the ratio of the power spectrum of the image signal to the noise. The greater the signal-to-noise ratio of the image, the greater the noise that affects the image quality, and the worse the final image quality.
  • S14 execute the calling instruction, call the target preview mode, generate the target preview image of the camera based on the target preview mode and the initial preview image, and display the target preview image in the preview area of the camera.
  • the calling instruction includes the target preview mode
  • the calling instruction is executed to call the target preview mode, and generate the target preview image of the camera based on the target preview mode and the initial preview image, and display the target preview image in the preview area of the camera. Therefore, by obtaining the ambient brightness value and automatically selecting different target preview modes, the best image processing mode can be selected for different ambient brightness values, thereby enhancing the camera's preview effect and improving the camera usage experience.
  • the light information of the environment where the camera is located can be collected based on the photosensitive element to determine the environmental brightness value.
  • the photosensitive element can be a light detection sensor, a photoresistor sensor, etc., which receives light information through the photosensitive element, determines the light intensity, and sends the light intensity to the processor for processing.
  • the brightness information can also be obtained directly from the image signal output by the image sensor, and then the brightness information can be processed to obtain the ambient brightness value of the environment.
  • obtaining the ambient brightness value through the initial preview image brightness information can also provide additional analysis data on the shooting scene, such as front aperture value, exposure time and sensitivity value information.
  • front aperture value e.g., a photosensitive element
  • sensitivity value information e.g., a photosensitive value of the ambient brightness value of the environment based on brightness information.
  • the method of determining the ambient brightness value of the environment based on brightness information may be an automatic exposure (Auto Exposure, AE) algorithm.
  • the target preview image obtained through the target preview mode may not perform well, and the preview mode needs to be re-selected.
  • multiple candidate target preview images can be generated based on all candidate preview modes and initial preview images in the camera, and then the candidate target preview image with the highest resolution is selected from the multiple candidate target preview images as the target preview image, and the analytical The preview mode corresponding to the candidate target preview image with the highest power is bound to the current environment brightness value, so that when encountering the same scene next time, the optimal target preview mode can be quickly determined and the camera usage experience is improved.
  • the ambient brightness value and the brightness threshold may be compared.
  • the brightness thresholds of different cameras may be different.
  • the brightness thresholds of different cameras may also be different based on different shooting environments. There is no limitation here.
  • the brightness threshold can be set in advance and can be changed according to actual design requirements.
  • the embodiments of the present disclosure are not limited to the first preview mode and the second preview mode.
  • Figure 2 is a schematic flow chart of another camera preview provided by an embodiment of the present disclosure.
  • the target preview image of the camera is generated based on the target preview mode and the initial preview image, which may include but is not limited to the following. step:
  • cameras In order to obtain ideal shooting effects, cameras generally have a zoom function, that is, zooming.
  • the camera zoom is like a telescope that can bring the scenery closer (zoom in). The higher the magnification of the first target, the closer it can be.
  • zooming in on the scene through software which is like using a magnification effect on a computer.
  • optical zoom a lens composed of multiple lenses is used to magnify the scene.
  • the digital zoom is performed by the back-end image signal processor for cropping and enlarging.
  • This method will occupy a lot of computing power of the image signal processor.
  • the ISZ mode can also be used to perform zooming and hardware anti-mosaic by the camera, which can greatly improve the resolution after Zoom.
  • the ISZ mode has the disadvantage of excessive signal-to-noise ratio in dark light, which is harmful to the generated images.
  • the quality of the preview image is greatly affected. Therefore, in the first preview mode, in order to obtain better preview quality, a back-end image signal processor is usually used for cropping and amplification.
  • the first target magnification factor can be selected by the user.
  • the first target magnification factor can be determined by capturing the user's action of stretching the screen. The user can also select the first target magnification through the zoom-in or zoom-out button on the camera.
  • the first target magnification factor can also be set in advance and called up for use when previewing the image.
  • S22 Perform pixel fusion on the pixels of the initial preview image based on the pixel fusion rate to obtain a fused preview image.
  • the fusion rate can be multiple, for example, it can be 4-in-1, 9-in-1, 16-in-1, etc., that is, 4, 9, or 16 pixels in the image are fused into 1 pixels, reducing the signal-to-noise ratio of the image and improving the brightness of the picture.
  • the generated fused preview image has a lower resolution than the initial preview image.
  • the four-color filter array algorithm is based on the four-color filter array algorithm that merges four adjacent pixels in the initial preview image into one pixel to improve the signal-to-noise ratio of the pixel under low-light conditions. At the same time, , the pixels of the initial preview image are reduced due to pixel blending.
  • the image signal processor (ISP, Image Signal Process) is responsible for receiving the original signal data of the photosensitive element (Sensor) in the entire process of camera imaging. It can be understood as the first step of the entire camera's photo and video processing process. , used to process the image signal output by the image signal sensor. It occupies a core and dominant position in the camera system and is an important device that constitutes the camera. The main functions include linear correction, noise removal, dead pixel removal, interpolation, white balance, automatic exposure control, etc. It relies on ISP to better restore scene details under different optical conditions. ISP technology plays a large role in It determines the imaging quality of the camera and is the processing unit in the photo-taking process. Its status is equivalent to the "brain" of the camera.
  • the fused preview image is scaled through the ISP.
  • zoom ROI zoomRegion Of Interest, zoom region of interest.
  • This method uses a fixed focus method. The area of interest remains the same as before zooming and does not change with zooming. By fixing the focus, the image around the focus is intercepted. This method has fast focusing speed and stable imaging quality. After zooming, the preview image is fused. The resolution will decrease based on the first target magnification.
  • a comparison can be made based on the resolution of the first zoomed preview image and the preset resolution.
  • the first zoom preview image is reduced until it reaches the preset resolution.
  • the resolution of the first zoom preview image is smaller than the preset resolution, the first zoom preview image is enlarged until it reaches the preset resolution.
  • the preset resolution is 1440X1080px
  • the resolution of the first scaled preview image is 2000X1500px.
  • the first scaled preview image needs to be reduced until it reaches the preset resolution to generate the target preview image.
  • the default resolution can be set by the user or the system default, and there is no limit here.
  • the pixels of the initial preview image are fused based on the pixel fusion rate, and the effect of generating the fused preview image is not good, which will have an impact on subsequent image processing and reduce the effect of the camera preview.
  • the image feature data of the fused preview image may be first obtained, and then the image level of the fused preview image is determined based on the image feature data and the preset image feature data, and then in response to the image level being less than the image level threshold, based on the image feature data and preset image feature data, adjust the pixel fusion rate, and finally based on the adjusted pixel fusion rate, re-pixel fuse the pixels of the initial preview image until the best pixel fusion effect is achieved.
  • This method of adjusting the pixel fusion rate can achieve better results. .
  • Image feature data can include the grayscale, sharpness, resolution and other factors of the image.
  • the image feature data is usually processed through AI algorithms, or the image feature data can be processed through training models to output the image feature data.
  • Image level It should be noted that image levels can be divided into many types, and there are no limitations here.
  • the image level threshold is set in advance and can be adjusted according to actual conditions. For example, the image level thresholds may be different under different climates, and the image level thresholds may be different under different lighting conditions.
  • mapping relationship table between the image feature data, the preset image feature data and the image level.
  • the image level of the fused preview image is determined by looking up the table.
  • the mapping relationship table can be set in advance and stored in the storage space of the electronic device to facilitate retrieval and use when needed.
  • an adjustment plan for the pixel fusion rate can be determined based on analysis based on image feature data and preset image feature data. For example, if the sharpness of the image is too large, the pixel fusion rate can be adjusted by reducing the Optimize by increasing the pixel fusion rate; if the brightness of the image is too low, you can optimize by increasing the pixel fusion rate.
  • Figure 5 is a schematic flow chart of another camera preview provided by an embodiment of the present disclosure.
  • generating a target preview image of the camera based on the target preview mode and the initial preview image may include but is not limited to the following step:
  • step S51 please refer to the records related to S21 in the above embodiment, and will not be described again here.
  • S52 Scale the initial preview image based on the second target magnification to generate a second scaled image.
  • the sensor in the second preview mode, after the initial preview image is obtained, the sensor can be used to zoom based on the second target magnification, without the need to use the image signal processor to zoom the initial preview image, so as to release Part of the computing power of the image signal processor, thereby using more computing power for image processing.
  • this method of scaling through the sensor generates a second zoomed image with a higher resolution.
  • the image signal processor generates based on this method The image quality after the second zoom image processing is better, thereby improving the preview effect of the camera in bright light environments.
  • a second target magnification factor of the camera is obtained, and then the initial preview image is scaled based on the second target magnification factor to generate a second scaled image, and finally Transform the second scaled preview image to generate a target preview image with a preset resolution size. Therefore, in a bright light environment, the initial preview image is amplified by the sensor without the need for the image signal processor to scale the initial preview image.
  • the image signal processor can use more computing power for image processing without the need for the initial preview image.
  • the preview image undergoes pixel fusion to improve the resolution of the target preview image.
  • the CFA Sensor when in a bright light environment, can be adjusted to the sensor zoom (ISZ) mode.
  • ISZ sensor zoom
  • the camera performs cropping (Crop) and demosaic (demosasic), which can be extremely effective.
  • the CFA Sensor can also be adjusted to the full size mode in the binning mode, and the image can be restored to the high-pixel BAYER format through hardware or software remosaic technology, but this method is inferior to ISZ mode, the resolution of the downscaled input image is only 1/4 of the input image in ISZ mode, resulting in the final downscaled output image having far less resolution than ISZ mode.
  • Figure 7 is a schematic diagram of the overall process of an embodiment of the present disclosure. As shown in the figure, first start the camera and execute the preview process of the camera, then obtain the environment brightness value of the environment where the camera is located, and determine whether the current environment is a dark light environment based on the environment brightness value. , if the current environment is a dark light environment, switch to the first preview mode; if the current environment is a bright light environment, switch to the second preview mode, generate a target preview image of the camera, and display the target preview image in the preview area of the camera. Therefore, by obtaining the ambient brightness value and automatically selecting different target preview modes, the best image processing mode can be selected for different ambient brightness values, thereby enhancing the camera's preview effect and improving the camera usage experience.
  • FIG. 8 is a schematic structural diagram of a camera preview device 80 provided by an embodiment of the present disclosure.
  • the camera preview device 80 shown in FIG. 8 may include a startup module 81, an acquisition module 82, a generation module 83 and an execution module 84.
  • the execution module 84 is used to execute the calling instruction, call the target preview mode, generate the target preview image of the camera based on the target preview mode and the initial preview image, and display the target preview image in the preview area of the camera.
  • the execution module 84 is also configured to: in response to the target preview mode being the first preview mode, obtain the first target magnification of the camera; perform pixel fusion on the pixels of the initial preview image based on the pixel fusion rate , to obtain a fusion preview image; scale the fusion preview image based on the first target magnification to generate a first scaled preview image; deform the first scaled preview image to generate a target preview image with a preset resolution size.
  • the execution module 84 is also configured to: obtain image feature data of the fused preview image; determine the image level of the fused preview image based on the image feature data and the preset image feature data; respond to the image level being less than the image level
  • the level threshold adjusts the pixel fusion rate based on the image feature data and the preset image feature data; based on the adjusted pixel fusion rate, the pixels of the initial preview image are re-pixel fused.
  • the execution module 84 is also used to: collect light information of the environment based on the photosensitive element to determine the environment brightness value; or, obtain the screen brightness of the initial preview image, and determine the environment brightness based on the screen brightness. value.
  • the acquisition module 82 is also configured to: generate multiple candidate target preview images based on all candidate preview modes and initial preview images; select the candidate target preview with the highest resolution from the multiple candidate target preview images. The image is used as the target preview image, and the preview mode corresponding to the candidate target preview image with the highest resolution is bound to the current environment brightness value.
  • the calling instruction includes the target preview mode
  • the calling instruction is executed to call the target preview mode, and generate the target preview image of the camera based on the target preview mode and the initial preview image, and display the target preview image in the preview area of the camera. Therefore, by obtaining the ambient brightness value and automatically selecting different target preview modes, it is possible to obtain target preview images with better shooting effects under different brightnesses and improve the user experience.
  • an embodiment of the present disclosure also proposes an electronic device 900.
  • the electronic device 900 includes: a processor 91 and a memory 92 communicatively connected to the processor.
  • the memory 92 stores information that can be used by at least one Instructions executed by the processor are executed by at least one processor 91 to implement the firmware debugging method according to the embodiment of the first aspect of the present disclosure.
  • the present disclosure also provides a readable storage medium on which instructions are stored, and when the instructions are executed by a computer, the functions of any of the above method embodiments are implemented.
  • the present disclosure also provides a computer program product, which, when executed by a computer, implements the functions of any of the above method embodiments.
  • the above embodiments it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer programs.
  • the computer program When the computer program is loaded and executed on a computer, the processes or functions described in accordance with the embodiments of the present disclosure are generated in whole or in part.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
  • the computer program may be stored in or transferred from one computer-readable storage medium to another, for example, the computer program may be transferred from a website, computer, server, or data center Transmission to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more available media integrated.
  • the usable media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., high-density digital video discs (DVD)), or semiconductor media (e.g., solid state disks, SSD)) etc.
  • magnetic media e.g., floppy disks, hard disks, magnetic tapes
  • optical media e.g., high-density digital video discs (DVD)
  • DVD digital video discs
  • semiconductor media e.g., solid state disks, SSD
  • At least one in the present disclosure can also be described as one or more, and the plurality can be two, three, four or more, and the present disclosure is not limited.
  • the technical feature is distinguished by “first”, “second”, “third”, “A”, “B”, “C” and “D” etc.
  • the technical features described in “first”, “second”, “third”, “A”, “B”, “C” and “D” are in no particular order or order.
  • each table in this disclosure can be configured or predefined.
  • the values of the information in each table are only examples and can be configured as other values, which is not limited by this disclosure.
  • it is not necessarily required to configure all the correspondences shown in each table.
  • the corresponding relationships shown in some rows may not be configured.
  • appropriate deformation adjustments can be made based on the above table, such as splitting, merging, etc.
  • the names of the parameters shown in the titles of the above tables may also be other names understandable by the communication device, and the values or expressions of the parameters may also be other values or expressions understandable by the communication device.
  • other data structures can also be used, such as arrays, queues, containers, stacks, linear lists, pointers, linked lists, trees, graphs, structures, classes, heaps, hash tables or hash tables. wait.
  • Predefinition in this disclosure may be understood as definition, pre-definition, storage, pre-storage, pre-negotiation, pre-configuration, solidification, or pre-burning.

Abstract

Provided in the present disclosure are a preview method and apparatus for a camera, which method and apparatus are applied to the field of image processing. The method comprises: starting a camera, executing a preview process of the camera, and collecting an initial preview image to be previewed; acquiring an ambient brightness value of an environment where the camera is located; generating a calling instruction of preview modes according to the ambient brightness value and a brightness threshold value, wherein the calling instruction includes a target preview mode; and executing the calling instruction, calling the target preview mode, generating a target preview image of the camera on the basis of the target preview mode and the initial preview image, and displaying the target preview image in a preview area of the camera. Therefore, an ambient brightness value is acquired and different target preview modes are automatically selected, such that optimal preview modes can be selected for different ambient brightness values, thereby enhancing a preview effect of a camera, and improving the usage experience of the camera.

Description

一种相机预览的方法及其装置A method and device for camera preview 技术领域Technical field
本公开涉及图像处理技术领域,尤其涉及一种相机预览的方法及其装置。The present disclosure relates to the field of image processing technology, and in particular, to a camera preview method and device thereof.
背景技术Background technique
相机的画质,是决定相机用户体验的最重要因素之一。各大厂商通过各种硬件和软件的技术,来提高相机的画质。当前技术中,相机在预览画质时,无法区分当前环境的光照情况,致使相机的预览图像效果并不理想。The image quality of a camera is one of the most important factors that determines the camera user experience. Major manufacturers use various hardware and software technologies to improve the image quality of cameras. In the current technology, the camera cannot distinguish the lighting conditions of the current environment when previewing the image quality, causing the camera's preview image effect to be unsatisfactory.
发明内容Contents of the invention
本公开实施例提供一种相机预览的方法及其装置,可以应用于手机领域或者相机领域,例如基于手机或者相机进行拍照录像等,通过确定拍摄现场周围的光照条件,选择不同的预览模式,可以达到更好的拍照效果。Embodiments of the present disclosure provide a method and device for camera preview, which can be applied in the field of mobile phones or cameras, such as taking photos and videos based on mobile phones or cameras. By determining the lighting conditions around the shooting scene and selecting different preview modes, you can Achieve better photo effects.
第一方面,本公开实施例提供一种相机预览方法,该方法包括:启动相机并执行相机的预览流程采集预览图像;获取所述相机所处环境的环境亮度值;根据所述环境亮度值和亮度阈值,生成预览模式的调用指令,所述调用指令包含目标预览模式;执行所述调用指令,调用所述目标预览模式,并基于所述目标预览模式生成所述相机的目标预览图像在相机的预览区域显示。In a first aspect, embodiments of the present disclosure provide a camera preview method. The method includes: starting a camera and executing a preview process of the camera to collect a preview image; obtaining an environment brightness value of the environment where the camera is located; and according to the environment brightness value and Brightness threshold, generate a calling instruction for the preview mode, the calling instruction includes the target preview mode; execute the calling instruction, call the target preview mode, and generate the target preview image of the camera based on the target preview mode in the camera The preview area is displayed.
在本公开的一个实施例中,基于目标预览模式和初始预览图像生成相机的目标预览图像,包括:响应于目标预览模式为第一预览模式,获取相机的第一目标放大倍数;将初始预览图像进行像素融合,以获取融合预览图像;基于第一目标放大倍数对融合预览图像进行缩放,以生成第一缩放预览图像;调整第一缩放预览图像的分辨率至预设分辨率,以生成目标预览图像。In one embodiment of the present disclosure, generating a target preview image of the camera based on the target preview mode and the initial preview image includes: in response to the target preview mode being the first preview mode, obtaining the first target magnification of the camera; converting the initial preview image to Perform pixel fusion to obtain a fusion preview image; scale the fusion preview image based on the first target magnification to generate a first scaled preview image; adjust the resolution of the first scaled preview image to a preset resolution to generate a target preview image.
在本公开的一个实施例中,相机预览方法,方法还包括:获取融合预览图像的图像特征数据;基于图像特征数据和预设图像特征数据确定融合预览图像的图像等级;响应于图像等级小于图像等级阈值,基于图像特征数据和预设图像特征数据,对像素融合率进行调整;基于调整后的所述像素融合率,对所述初始预览图像的像素重新进行像素融合。In one embodiment of the present disclosure, the camera preview method further includes: obtaining image feature data of the fused preview image; determining the image level of the fused preview image based on the image feature data and preset image feature data; responding to the image level being less than the image level. The level threshold is used to adjust the pixel fusion rate based on the image feature data and the preset image feature data; based on the adjusted pixel fusion rate, the pixels of the initial preview image are re-pixel fused.
在本公开的一个实施例中,调用目标预览模式,并基于目标预览模式和初始预览图像生成相机的目标预览图像,包括:响应于目标预览模式为第二预览模式,获取相机的第二目标放大倍数;基于第二目标放大倍数对初始预览图像进行缩放,以生成第二缩放图像;调整第一缩放预览图像的分辨率至预设分辨率,以生成目标预览图像。In one embodiment of the present disclosure, calling the target preview mode, and generating a target preview image of the camera based on the target preview mode and the initial preview image includes: in response to the target preview mode being the second preview mode, obtaining a second target magnification of the camera multiple; scale the initial preview image based on the second target magnification factor to generate a second scaled image; adjust the resolution of the first scaled preview image to a preset resolution to generate a target preview image.
在本公开的一个实施例中,获取相机所处环境的环境亮度值,包括:基于光敏元件采集所处环境的光信息,以确定环境亮度值;或者,获取初始预览图像的画面亮度,基于画面亮度确定环境亮度值。In one embodiment of the present disclosure, obtaining the ambient brightness value of the environment where the camera is located includes: collecting light information of the environment based on a photosensitive element to determine the ambient brightness value; or obtaining the screen brightness of the initial preview image, based on the screen Brightness determines the ambient brightness value.
在本公开的一个实施例中,相机预览方法,方法还包括:基于所有候选预览模式与初始预览图像生成多个候选目标预览图像;从多个候选目标预览图像中选取解析力最高的候选目标预览图像作为目标预览图像,并将解析力最高的候选目标预览图像对应的候选预览模式与当前环境亮度值进行绑定。In one embodiment of the present disclosure, the camera preview method further includes: generating multiple candidate target preview images based on all candidate preview modes and initial preview images; selecting the candidate target preview with the highest resolution from the multiple candidate target preview images. The image is used as the target preview image, and the candidate preview mode corresponding to the candidate target preview image with the highest resolution is bound to the current environment brightness value.
第二方面,本公开实施例提供另一种相机预览装置,其特征在于,该装置包括:启动模块,用于启动相机并执行相机的预览流程采集待预览的初始预览图像;获取模块,用于获取相机所处环境的环境亮度值;生成模块,用于根据环境亮度值和亮度阈值,生成预览模式的调用指令,调用指令包含目标预览模式;执行模块,用于执行调用指令,调用目标预览模式,并基于目标预览模式和初始预览图像生成相机的目标预览图像,并将目标预览图像在相机的预览区域显示。In a second aspect, an embodiment of the present disclosure provides another camera preview device, which is characterized in that the device includes: a startup module for starting the camera and executing the camera's preview process to collect an initial preview image to be previewed; and an acquisition module for Obtain the ambient brightness value of the environment where the camera is located; the generation module is used to generate the calling instruction of the preview mode based on the environmental brightness value and the brightness threshold, and the calling instruction contains the target preview mode; the execution module is used to execute the calling instruction and call the target preview mode , and generate the target preview image of the camera based on the target preview mode and the initial preview image, and display the target preview image in the preview area of the camera.
第三方面,本公开提出了一种电子设备,包括:至少一个处理器;以及与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以实现如本公开第一方面实施例所述的相机预览方法。In a third aspect, the present disclosure proposes an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores information that can be executed by the at least one processor. Instructions, which are executed by the at least one processor, to implement the camera preview method as described in the embodiment of the first aspect of the present disclosure.
第四方面,本公开提出了一种存储有计算机指令的非瞬时计算机可读存储介质,其中,所述计算机指令用于实现如本公开第一方面实施例所述的相机预览方法。In a fourth aspect, the present disclosure proposes a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to implement the camera preview method as described in the embodiment of the first aspect of the present disclosure.
第五方面,本公开提出了一种计算机程序产品,包括计算机程序,所述计算机程序在被处理器执行时用于实现如本公开第一方面实施例所述的相机预览方法。In a fifth aspect, the present disclosure proposes a computer program product, including a computer program that, when executed by a processor, is used to implement the camera preview method as described in the embodiment of the first aspect of the present disclosure.
通过获取环境亮度值,自动选取不同的目标预览模式,可以实现针对不同环境亮度值选择最佳的图像处理模式,从而增强相机的预览效果,提升相机的使用体验。By obtaining the ambient brightness value and automatically selecting different target preview modes, the best image processing mode can be selected for different ambient brightness values, thereby enhancing the camera's preview effect and improving the camera usage experience.
附图说明Description of the drawings
为了更清楚地说明本公开实施例或背景技术中的技术方案,下面将对本公开实施例或背景技术中所需要使用的附图进行说明。In order to more clearly illustrate the technical solutions in the embodiments of the disclosure or the background technology, the drawings required to be used in the embodiments or the background technology of the disclosure will be described below.
图1是本公开实施例提供的一种相机预览方法的流程示意图;Figure 1 is a schematic flowchart of a camera preview method provided by an embodiment of the present disclosure;
图2是本公开实施例提供的另一种相机预览方法的流程示意图;Figure 2 is a schematic flowchart of another camera preview method provided by an embodiment of the present disclosure;
图3是本公开实施例提供的四色滤波阵列算法的示意图;Figure 3 is a schematic diagram of a four-color filter array algorithm provided by an embodiment of the present disclosure;
图4是本公开实施例提供的第一预览模式的流程图;Figure 4 is a flow chart of the first preview mode provided by an embodiment of the present disclosure;
图5是本公开实施例提供的另一种相机预览方法的流程示意图;Figure 5 is a schematic flowchart of another camera preview method provided by an embodiment of the present disclosure;
图6是本公开实施例提供的第二预览模式的流程图;Figure 6 is a flow chart of the second preview mode provided by an embodiment of the present disclosure;
图7是本公开实施例提供的一种相机预览方法的整体流程示意图;Figure 7 is an overall flow diagram of a camera preview method provided by an embodiment of the present disclosure;
图8是本公开实施例提供的一种相机预览装置的结构框图;Figure 8 is a structural block diagram of a camera preview device provided by an embodiment of the present disclosure;
图9是本公开实施例提供的一种电子设备的结构框图。FIG. 9 is a structural block diagram of an electronic device provided by an embodiment of the present disclosure.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with aspects of the disclosure as detailed in the appended claims.
在本公开实施例使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本公开实施例。在本公开实施例和所附权利要求书中所使用的单数形式的“一种”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in the embodiments of the present disclosure is for the purpose of describing specific embodiments only and is not intended to limit the embodiments of the present disclosure. As used in the embodiments of the present disclosure and the appended claims, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It will also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
应当理解,尽管在本公开实施例可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本公开实施例范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”It should be understood that although the terms first, second, third, etc. may be used to describe various information in the embodiments of the present disclosure, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of the embodiments of the present disclosure, the first information may also be called second information, and similarly, the second information may also be called first information. Depending on the context, the word "if" as used herein may be interpreted as "when" or "when" or "in response to determining"
出于简洁和便于理解的目的,本文在表征大小关系时,所使用的术语为“大于”或“小于”、“高于”或“低于”。但对于本领域技术人员来说,可以理解:术语“大于”也涵盖了“大于等于”的含义,“小于”也涵盖了“小于等于”的含义;术语“高于”涵盖了“高于等于”的含义,“低于”也涵盖了“低于等于”的含义。For the purpose of simplicity and ease of understanding, the terms used in this article are "greater than" or "less than", "higher than" or "lower than" when characterizing size relationships. But for those skilled in the art, it can be understood that: the term "greater than" also covers the meaning of "greater than or equal to", and "less than" also covers the meaning of "less than or equal to"; the term "higher than" covers the meaning of "higher than or equal to". "The meaning of "less than" also covers the meaning of "less than or equal to".
下面结合附图对本公开所提供的相机预览方法及其装置进行详细地介绍。The camera preview method and device provided by the present disclosure will be introduced in detail below with reference to the accompanying drawings.
请参见图1,图1是本公开实施例提供的一种相机预览方法的流程示意图。如图1所示,该方法可以包括但不限于如下步骤:Please refer to FIG. 1 , which is a schematic flowchart of a camera preview method provided by an embodiment of the present disclosure. As shown in Figure 1, the method may include but is not limited to the following steps:
S11,启动相机并执行相机的预览流程,采集待预览的初始预览图像。S11, start the camera and execute the preview process of the camera, and collect the initial preview image to be previewed.
需要说明的是,本公开实施例中的相机可以为数码相机(Digital Still Camera,DSC),也可以是附加到其他电子设备上的拍摄装置,举例来说,可以为手机上的拍摄装置、掌上电脑上的拍摄装置等,此处不作任何限定。It should be noted that the camera in the embodiment of the present disclosure may be a digital camera (Digital Still Camera, DSC) or a shooting device attached to other electronic devices. For example, it may be a shooting device on a mobile phone or a handheld camera. Photography devices on computers, etc. are not limited here.
在本公开实施例中的相机包含彩色滤波阵列(Color Filter Array,CFA)功能,这种即在像素阵列的表面覆盖一层彩色滤波阵列(Color Filter Array,CFA),彩色滤波阵列有多种,现在应用最广泛的是Bayer格式滤波阵列,满足GRBG规律,绿色像素数是红色或蓝色像素数的两倍,这是因为人眼对可见光光谱敏感度的峰值位于中波段,这正好对应着绿色光谱成分。在该模式下图像数据只用R,G,B三个值中的一个值来表示一个像素点,而缺失另外两个颜色值,这时得到的是一副马赛克图片,为了得到全彩色的图像,需要使用其周围像素点的色彩信息来估计缺失的另外两种颜色,这种处理叫做色彩插值。The camera in the embodiment of the present disclosure includes a color filter array (Color Filter Array, CFA) function, which covers a layer of color filter array (Color Filter Array, CFA) on the surface of the pixel array. There are many types of color filter arrays. The most widely used one now is the Bayer format filter array, which satisfies the GRBG rule. The number of green pixels is twice the number of red or blue pixels. This is because the peak sensitivity of the human eye to the visible light spectrum is in the mid-band, which corresponds to the green Spectral components. In this mode, the image data only uses one of the three values of R, G, and B to represent a pixel, and the other two color values are missing. At this time, a mosaic picture is obtained. In order to obtain a full-color image , it is necessary to use the color information of its surrounding pixels to estimate the other two missing colors. This process is called color interpolation.
CFA具有较低的功耗,价格和出色的图像质量,因此在移动设备领域中使用最为广泛。CFA is most widely used in the field of mobile devices due to its lower power consumption, price and excellent image quality.
在打开相机或者打开电子设备中的相机应用时,通过显示屏可以预览摄像头拍摄出来的实时画面,这种功能就是相机的预览功能。使用者可以通过预览功能对相机或者拍摄动作进行调整,以获取最佳的拍摄效果。When you turn on the camera or open the camera application in the electronic device, you can preview the real-time images captured by the camera through the display screen. This function is the camera's preview function. Users can adjust the camera or shooting actions through the preview function to obtain the best shooting results.
初始预览图像为相机采集的初始图像,初始图像需要进行一定的处理,才能展示到屏幕上供用户进行预览。The initial preview image is the initial image collected by the camera. The initial image needs to undergo certain processing before it can be displayed on the screen for users to preview.
S12,获取相机所处环境的环境亮度值。S12, obtain the ambient brightness value of the environment where the camera is located.
亮度值是指发光体光强与光源面积之比,定义为该光源单位的亮度,即单位投影面积上的发光强度。本公开实施例中的环境亮度是指相机采集初始预览图像时所能接触到的光线亮度。The brightness value refers to the ratio of the light intensity of the luminous body to the area of the light source. It is defined as the brightness of the light source unit, that is, the luminous intensity per unit projected area. The ambient brightness in the embodiment of the present disclosure refers to the light brightness that the camera can access when collecting the initial preview image.
环境亮度与外部光线的强度有关,同时也与相机的拍摄角度有关系,举例来说,当相机在同一拍照环境中时,顺光拍照、逆光拍照或者顶光拍照的环境亮度值可为不同。Ambient brightness is related to the intensity of external light, and is also related to the shooting angle of the camera. For example, when the camera is in the same shooting environment, the ambient brightness values of forward-light shooting, back-light shooting or top-light shooting can be different.
在本公开实施例中,获取环境亮度值的方法可为多种,举例来说,可基于亮度检测装置确定环境亮度,可选地,还可通过初始预览图像的亮度来确定环境亮度。In the embodiments of the present disclosure, there may be multiple methods for obtaining the environment brightness value. For example, the environment brightness may be determined based on a brightness detection device. Alternatively, the environment brightness may also be determined based on the brightness of the initial preview image.
在一些特定的拍摄环境下,例如摄影棚中,环境亮度也可为提前设定好的,可直接输入至相机中。In some specific shooting environments, such as in a studio, the ambient brightness can also be set in advance and directly input into the camera.
S13,根据环境亮度值和亮度阈值,生成预览模式的调用指令,调用指令包含目标预览模式。S13: Generate a calling instruction for the preview mode based on the environment brightness value and the brightness threshold, and the calling instruction includes the target preview mode.
在本公开实施例中,可基于环境亮度值和亮度阈值确定当前相机采集初始预览图像的光线条件。需要说明的是,亮度阈值位提前设定好的,并可为多个,用以精确判断当前的光线条件为何种等级,以此来针对性的选取合适的目标预览模式,从而可以提升相机预览的效果。In embodiments of the present disclosure, the light conditions under which the current camera collects the initial preview image may be determined based on the ambient brightness value and the brightness threshold. It should be noted that the brightness threshold is set in advance and can be multiple, which is used to accurately determine the level of the current light condition, so as to select the appropriate target preview mode in a targeted manner, thereby improving the camera preview. Effect.
根据不同环境亮度值和亮度阈值,对应的目标预览模式可为不同,具体需要根据实际的需要进行设定。尤其在暗光环境下,相机采集的初始预览图像像素的感光度不足,会导致送给图像信号处理器后端的图像信噪比过高,生成的图像画质太差,导致最后预览的画质不佳,因此需要一种专门针对暗光环境预览模式对初始预览图像进行图像处理,以生成拍摄效果更好的预览图像。目标预览模式可为多种,需要根据环境亮度值和亮度阈值进行选择。图像的信噪比为图像信号与噪声的功率谱之比,图像的信噪比越大,说明影响图像画质的噪声越大,最后呈现出的图像画质越差。According to different environmental brightness values and brightness thresholds, the corresponding target preview modes can be different, and the specific settings need to be set according to actual needs. Especially in dark light environments, the pixel sensitivity of the initial preview image collected by the camera is insufficient, which will cause the signal-to-noise ratio of the image sent to the back-end of the image signal processor to be too high, and the quality of the generated image will be too poor, resulting in the final preview image quality. Not good, so it is necessary to perform image processing on the initial preview image specifically for the dark-light environment preview mode to generate a preview image with better shooting effects. There are many target preview modes, which need to be selected according to the environment brightness value and brightness threshold. The signal-to-noise ratio of an image is the ratio of the power spectrum of the image signal to the noise. The greater the signal-to-noise ratio of the image, the greater the noise that affects the image quality, and the worse the final image quality.
在确定目标预览模式后,处理器可基于目标预览模式生成调用指令,并发送给相机调整至该目标预览模式。需要说明的是,该处理器可为相机的处理器,也可为电子设备的处理器,如手机的处理器、平板电脑的处理器等,此处不作任何限定,具体需要根据实际的情况进行设定。After determining the target preview mode, the processor can generate a calling instruction based on the target preview mode and send it to the camera to adjust to the target preview mode. It should be noted that the processor can be a processor of a camera or a processor of an electronic device, such as a processor of a mobile phone, a processor of a tablet computer, etc. There is no limitation here, and the specific requirements need to be determined according to the actual situation. set up.
S14,执行调用指令,调用目标预览模式,并基于目标预览模式和初始预览图像生成相机的目标预览图像,并将目标预览图像在相机的预览区域显示。S14, execute the calling instruction, call the target preview mode, generate the target preview image of the camera based on the target preview mode and the initial preview image, and display the target preview image in the preview area of the camera.
在基于环境亮度值生成调用指令后,可基于调用指令将相机调整至调用指令中的目标预览模式,相机基于目标预览模式对初始预览图像进行图像处理,以生成目标预览图像,并通过预览区域展示给用户。After the calling instruction is generated based on the environment brightness value, the camera can be adjusted to the target preview mode in the calling instruction based on the calling instruction. The camera performs image processing on the initial preview image based on the target preview mode to generate a target preview image and display it through the preview area. to users.
在本公开实施例中,首先启动相机并执行相机的预览流程采集待预览的初始预览图像,然后获取相机所处环境的环境亮度值,而后根据环境亮度值和亮度阈值,生成预览模式的调用指令,调用指令包含目标预览模式,最后执行调用指令,调用目标预览模式,并基于目标预览模式和初始预览图像生成相机的目标预览图像,并将目标预览图像在相机的预览区域显示。由此,通过获取环境亮度值,自动选取不同的目标预览模式,可以实现针对不同环境亮度值选择最佳的图像处理模式,从而增强相机的预览效果,提升相机的使用体验。In the embodiment of the present disclosure, first start the camera and execute the camera's preview process to collect the initial preview image to be previewed, then obtain the ambient brightness value of the environment where the camera is located, and then generate a call instruction for the preview mode based on the ambient brightness value and the brightness threshold. , the calling instruction includes the target preview mode, and finally the calling instruction is executed to call the target preview mode, and generate the target preview image of the camera based on the target preview mode and the initial preview image, and display the target preview image in the preview area of the camera. Therefore, by obtaining the ambient brightness value and automatically selecting different target preview modes, the best image processing mode can be selected for different ambient brightness values, thereby enhancing the camera's preview effect and improving the camera usage experience.
在本公开实施例中,获取相机所处环境的环境亮度值,可基于光敏元件采集所处环境的光信息,以确定环境亮度值。举例来说,该光敏元件可为光线检测传感器、光敏电阻传感器等,通过光敏元件接收光信息,确定光线强度,并将光线强度发送给处理器进行处理。In the embodiment of the present disclosure, to obtain the environmental brightness value of the environment where the camera is located, the light information of the environment where the camera is located can be collected based on the photosensitive element to determine the environmental brightness value. For example, the photosensitive element can be a light detection sensor, a photoresistor sensor, etc., which receives light information through the photosensitive element, determines the light intensity, and sends the light intensity to the processor for processing.
可选地,还可直接从图像传感器输出的图像信号中获取亮度信息,然后对亮度信息进行处理,从而获取所处环境的环境亮度值。相较于上一种通过光敏元件确定环境亮度值的方法,通过初始预览图像亮度信息获取环境亮度值还能够额外提供对拍摄场景额外的分析数据,例如前光圈值、曝光时间和感光度值信息等,节省了测光设备,还可结合图像信息与当前光圈值、曝光时间和感光度值信息进行分析,判断当前曝光参数是否合适。需要说明的是,该基于亮度信息确定所处环境的环境亮度值的方法可为自动曝光(Auto Exposure,AE)算法。Optionally, the brightness information can also be obtained directly from the image signal output by the image sensor, and then the brightness information can be processed to obtain the ambient brightness value of the environment. Compared with the previous method of determining the ambient brightness value through a photosensitive element, obtaining the ambient brightness value through the initial preview image brightness information can also provide additional analysis data on the shooting scene, such as front aperture value, exposure time and sensitivity value information. Etc., saving on photometric equipment, you can also analyze the image information and the current aperture value, exposure time and sensitivity value information to determine whether the current exposure parameters are appropriate. It should be noted that the method of determining the ambient brightness value of the environment based on brightness information may be an automatic exposure (Auto Exposure, AE) algorithm.
在一些场景中,由于环境等原因,例如大雾、雨天、高温等,存在通过目标预览模式获取的目标预览图像效果不佳,需要重新选择预览模式的情况。此时可基于相机中的所有候选预览模式与初始预览图像生成多个候选目标预览图像,然后从从多个候选目标预览图像中选取解析力最高的候选目标预览图像作为目标预览图像,并将解析力最高的候选目标预览图像对应的预览模式与当前环境亮度值进行绑定,以方便在下次遇到同种场景时,可以快速的确定最优的目标预览模式,提升相机的使用体验。In some scenes, due to environmental reasons, such as heavy fog, rainy days, high temperatures, etc., the target preview image obtained through the target preview mode may not perform well, and the preview mode needs to be re-selected. At this time, multiple candidate target preview images can be generated based on all candidate preview modes and initial preview images in the camera, and then the candidate target preview image with the highest resolution is selected from the multiple candidate target preview images as the target preview image, and the analytical The preview mode corresponding to the candidate target preview image with the highest power is bound to the current environment brightness value, so that when encountering the same scene next time, the optimal target preview mode can be quickly determined and the camera usage experience is improved.
在本公开实施例中,可将环境亮度值和亮度阈值进行比较。响应于环境亮度数值小于亮度阈值,从候选预览模式中选取第一预览模式作为目标预览模式,基于第一预览模式生成调用指令,或者响应于环境亮度数值大于或者等于亮度阈值,从候选预览模式中选取第二预览模式作为目标预览模式,基于第二预览模式生成调用指令。需要说明的是,不同相机的亮度阈值可为不同,可选地,不同相机基于不同的拍摄环境亮度阈值也可为不同,此处不作任何限定。亮度阈值可为提前设定好的,并可根据实际设计需求进行变化。In embodiments of the present disclosure, the ambient brightness value and the brightness threshold may be compared. In response to the environment brightness value being less than the brightness threshold, selecting the first preview mode from the candidate preview modes as the target preview mode, and generating a calling instruction based on the first preview mode, or in response to the environment brightness value being greater than or equal to the brightness threshold, selecting the first preview mode from the candidate preview mode Select the second preview mode as the target preview mode, and generate a calling instruction based on the second preview mode. It should be noted that the brightness thresholds of different cameras may be different. Alternatively, the brightness thresholds of different cameras may also be different based on different shooting environments. There is no limitation here. The brightness threshold can be set in advance and can be changed according to actual design requirements.
需要说明的是,本公开实施例并非只限定于第一预览模式和第二预览模式,还可存在多种预览模式,用以对不同光照情况进行响应模式的选择和处理,从而提升相机预览的预览效果。相应地,还可存在多个亮度阈值,用以判断选择何种预览模式,此处不作任何限定。It should be noted that the embodiments of the present disclosure are not limited to the first preview mode and the second preview mode. There may also be multiple preview modes for selecting and processing response modes to different lighting conditions, thereby improving the performance of camera preview. Preview the effect. Correspondingly, there may also be multiple brightness thresholds used to determine which preview mode to select, which is not limited here.
请参见图2,图2是本公开实施例提供的另一种相机预览的流程示意图,如图2所示,基于目标预览模式和初始预览图像生成相机的目标预览图像,可包括但不限于如下步骤:Please refer to Figure 2. Figure 2 is a schematic flow chart of another camera preview provided by an embodiment of the present disclosure. As shown in Figure 2, the target preview image of the camera is generated based on the target preview mode and the initial preview image, which may include but is not limited to the following. step:
S21,响应于目标预览模式为第一预览模式,获取相机的第一目标放大倍数。S21, in response to the target preview mode being the first preview mode, obtain the first target magnification of the camera.
为了能够获得理想的拍摄效果,相机一般都具备缩放(zoom)功能,即变焦。相机变焦就像是望远镜可以将景物拉近些看(放大),第一目标放大倍数越高代表可以拉的更近。In order to obtain ideal shooting effects, cameras generally have a zoom function, that is, zooming. The camera zoom is like a telescope that can bring the scenery closer (zoom in). The higher the magnification of the first target, the closer it can be.
当前技术中,主要通过两种方式进行缩放,第一种为数码变焦:透过软件将景物放大,这就像是在电脑上使用放大的效果。第二种为光学变焦:使用多片透镜组成的镜头,将景物放大。In current technology, there are two main ways to zoom. The first is digital zoom: zooming in on the scene through software, which is like using a magnification effect on a computer. The second type is optical zoom: a lens composed of multiple lenses is used to magnify the scene.
其中数码变焦是由后端图像信号处理器来做裁剪和放大的,这种方式会占用大量的图像信号处理器的算力。在另一些实施例中,还可通过ISZ模式由摄像头做缩放和硬件反马赛克,可以极大提升Zoom后的解析力,但ISZ模式在暗光下会有信噪比过大的缺点,对生成的预览图像的画质影响很大。因此,在第一预览模式下,为了获取更好的预览画质,通常选用后端图像信号处理器来做裁剪和放大的The digital zoom is performed by the back-end image signal processor for cropping and enlarging. This method will occupy a lot of computing power of the image signal processor. In other embodiments, the ISZ mode can also be used to perform zooming and hardware anti-mosaic by the camera, which can greatly improve the resolution after Zoom. However, the ISZ mode has the disadvantage of excessive signal-to-noise ratio in dark light, which is harmful to the generated images. The quality of the preview image is greatly affected. Therefore, in the first preview mode, in order to obtain better preview quality, a back-end image signal processor is usually used for cropping and amplification.
需要说明的是,第一目标放大倍数可为用户进行选择的,在实际操作中,可通过捕捉用户拉伸屏幕的动作,来确定第一目标放大倍数。用户还可通过相机上的放大或者缩小按钮来选择第一目标放大倍数。It should be noted that the first target magnification factor can be selected by the user. In actual operation, the first target magnification factor can be determined by capturing the user's action of stretching the screen. The user can also select the first target magnification through the zoom-in or zoom-out button on the camera.
可选地,用户还可通过输入的方式将第一目标放大倍数输入至相机中。Optionally, the user can also input the first target magnification into the camera through input.
可选地,第一目标放大倍数也可为提前设定好的,并在预览图像时调取使用。Optionally, the first target magnification factor can also be set in advance and called up for use when previewing the image.
S22,基于像素融合率对初始预览图像的像素进行像素融合,以获取融合预览图像。S22: Perform pixel fusion on the pixels of the initial preview image based on the pixel fusion rate to obtain a fused preview image.
在本公开实施例中,向融合率可为多种,举例来说,可为4合1、9合1、16合1等,即将图像中的4个、9个、16个像素融合为1个像素,降低图像的信噪比,提升画面的亮度。另一方面,由于多个像素融合为一个像素,生成的融合预览图像相较于初始预览图像, 分辨率降低了。In the embodiment of the present disclosure, the fusion rate can be multiple, for example, it can be 4-in-1, 9-in-1, 16-in-1, etc., that is, 4, 9, or 16 pixels in the image are fused into 1 pixels, reducing the signal-to-noise ratio of the image and improving the brightness of the picture. On the other hand, since multiple pixels are fused into one pixel, the generated fused preview image has a lower resolution than the initial preview image.
下面通过当融合率为1合4时来进行举例。可基于四色滤波阵列算法对初始预览图像进行像素融合,以获取融合预览图像。色彩滤波阵列是像素传感器上方的一层马赛克覆层,用于采集图像的色彩信息。一般的光电传感器只能感应光的强度,不能区分光的波长(色彩),因此图像传感器需要通过色彩滤波(Color Filter)以获取像素点的色彩信息,滤波器中绿光滤波器改为透传的结构。这样做的好处主要体现在采集光源的强度更高和专用的频带响应技术可以有效提高图像的质量。如图3所示,四色滤波阵列算法是基于四色滤波阵列算法将初始预览图像中的4个相邻像素合并为一个像素,以提升像素在弱光条件下的信噪比画质,同时,初始预览图像的像素因为像素融合而降低。The following is an example when the fusion rate is 1 in 4. The initial preview image can be pixel-fused based on a four-color filter array algorithm to obtain a fused preview image. The color filter array is a mosaic overlay above the pixel sensor that captures the color information of the image. General photoelectric sensors can only sense the intensity of light and cannot distinguish the wavelength (color) of light. Therefore, the image sensor needs to pass a color filter (Color Filter) to obtain the color information of the pixels. The green light filter in the filter is changed to transparent transmission. Structure. The benefits of this are mainly reflected in the higher intensity of the collected light source and the dedicated frequency band response technology that can effectively improve the quality of the image. As shown in Figure 3, the four-color filter array algorithm is based on the four-color filter array algorithm that merges four adjacent pixels in the initial preview image into one pixel to improve the signal-to-noise ratio of the pixel under low-light conditions. At the same time, , the pixels of the initial preview image are reduced due to pixel blending.
在本公开实施例中,如图4所示,采集的初始预览图像的分辨率为8000X6000px,基于四色滤波阵列算法进行处理后融合预览图像的分辨率为4000X3000px。In the embodiment of the present disclosure, as shown in Figure 4, the resolution of the initial preview image collected is 8000X6000px, and the resolution of the fused preview image after processing based on the four-color filter array algorithm is 4000X3000px.
S23,基于第一目标放大倍数对融合预览图像进行缩放,以生成第一缩放预览图像。S23: Scale the fusion preview image based on the first target magnification to generate a first scaled preview image.
在本公开实施例中,在对对融合预览图像进行缩放前,首选需要通过图像信号处理器对融合预览图像进行图像处理,然后将处理后的融合预览图像进行缩放。In the embodiment of the present disclosure, before scaling the fused preview image, it is first necessary to perform image processing on the fused preview image through an image signal processor, and then scale the processed fused preview image.
需要说明的是,图像信号处理器(ISP,Image Signal Process),在相机成像的整个环节中负责接收感光元件(Sensor)的原始信号数据,可以理解为整个相机拍照、录像的第一步处理流程,用于处理图像信号传感器输出的图像信号。它在相机系统中占有核心主导的地位,是构成相机的重要设备。主要功能有线性纠正、噪声去除、坏点去除、内插、白平衡、自动曝光控制等,依赖于ISP才能在不同的光学条件下都能较好的还原现场细节,ISP技术在很大程度上决定了摄像机的成像质量,是拍照过程中的运算处理单元,其地位相当于相机的“大脑”。It should be noted that the image signal processor (ISP, Image Signal Process) is responsible for receiving the original signal data of the photosensitive element (Sensor) in the entire process of camera imaging. It can be understood as the first step of the entire camera's photo and video processing process. , used to process the image signal output by the image signal sensor. It occupies a core and dominant position in the camera system and is an important device that constitutes the camera. The main functions include linear correction, noise removal, dead pixel removal, interpolation, white balance, automatic exposure control, etc. It relies on ISP to better restore scene details under different optical conditions. ISP technology plays a large role in It determines the imaging quality of the camera and is the processing unit in the photo-taking process. Its status is equivalent to the "brain" of the camera.
本公开实施例中,在第一预览模式下,是通过ISP对融合预览图像进行缩放的。一般是通过zoom ROI(zoomRegion Of Interest,缩放感兴趣区域)的方式。该方法采用固定对焦的方式,感兴趣区域保持和缩放前一致,不随缩放而改变,通过固定焦点,截取焦点周围的图像,这种方法对焦速度快,成像质量稳定,在缩放后,融合预览图像的分辨率会基于第一目标放大倍数降低。In the embodiment of the present disclosure, in the first preview mode, the fused preview image is scaled through the ISP. Usually through zoom ROI (zoomRegion Of Interest, zoom region of interest). This method uses a fixed focus method. The area of interest remains the same as before zooming and does not change with zooming. By fixing the focus, the image around the focus is intercepted. This method has fast focusing speed and stable imaging quality. After zooming, the preview image is fused. The resolution will decrease based on the first target magnification.
举例来说,当第一目标放大倍数为2,在生成融合预览图像后,可如图4所示,先通过图像信号处理器对融合预览图像进行图像处理,然后基于第一目标放大倍数对融合预览图像进行缩放,融合预览图像的分辨率为4000X3000px,则只保留中间区域中分辨率2000X1500px的目标图像,以实现对融合预览图像进行放大2倍的目的。For example, when the first target magnification is 2, after generating the fusion preview image, as shown in Figure 4, the image signal processor can first perform image processing on the fusion preview image, and then perform fusion based on the first target magnification. The preview image is scaled, and the resolution of the fusion preview image is 4000X3000px, and only the target image with a resolution of 2000X1500px in the middle area is retained to achieve the purpose of enlarging the fusion preview image by 2 times.
S24,调整第一缩放预览图像的分辨率至预设分辨率,以生成目标预览图像。S24. Adjust the resolution of the first scaled preview image to a preset resolution to generate a target preview image.
在本公开实施例中,在获取到第一缩放预览图像后,可基于第一缩放预览图像的分辨率与预设分辨率进行对比,当第一缩放预览图像的分辨率大于预设分辨率,则对第一缩放预览图像进行缩小直至达到预设分辨率,当第一缩放预览图像的分辨率小于预设分辨率,则对第一缩放预览图像进行放大直至达到预设分辨率。In the embodiment of the present disclosure, after the first zoomed preview image is obtained, a comparison can be made based on the resolution of the first zoomed preview image and the preset resolution. When the resolution of the first zoomed preview image is greater than the preset resolution, The first zoom preview image is reduced until it reaches the preset resolution. When the resolution of the first zoom preview image is smaller than the preset resolution, the first zoom preview image is enlarged until it reaches the preset resolution.
如图4所示,预设分辨率为1440X1080px,第一缩放预览图像的分辨率为2000X1500px,需要将第一缩放预览图像进行缩小直至达到预设分辨率,以生成目标预览图像。As shown in Figure 4, the preset resolution is 1440X1080px, and the resolution of the first scaled preview image is 2000X1500px. The first scaled preview image needs to be reduced until it reaches the preset resolution to generate the target preview image.
需要说明的是,预设分辨率为可为使用者设定的,也可为系统默认的,此处不作任何 限定。It should be noted that the default resolution can be set by the user or the system default, and there is no limit here.
在本公开实施例中,首先响应于目标预览模式为第一预览模式,获取相机的第一目标放大倍数,然后将初始预览图像进行像素融合,以获取融合预览图像,而后基于第一目标放大倍数对融合预览图像进行缩放,以生成第一缩放预览图像,最后对第一缩放预览图像进行变形,以生成预设分辨率大小的目标预览图像。由此,通过将初始预览图像进行像素融合,以获取融合预览图像,可以降低暗光环境预览图片的信噪比,提升画面质量。In the embodiment of the present disclosure, first in response to the target preview mode being the first preview mode, the first target magnification factor of the camera is obtained, and then the initial preview image is pixel-fused to obtain the fused preview image, and then based on the first target magnification factor The fusion preview image is scaled to generate a first scaled preview image, and finally the first scaled preview image is deformed to generate a target preview image with a preset resolution size. Therefore, by performing pixel fusion on the initial preview image to obtain the fused preview image, the signal-to-noise ratio of the preview image in a dark light environment can be reduced and the picture quality can be improved.
当在暗光环境下,可传感器调整至binning模式,在此模式下,可实现将初始预览图像中4个相邻像素合并为一个像素,降低了像素在弱光条件下的信噪比,提升了画面亮度,从而可以提升在暗光环境下的预览图像的画质。、When in a dark light environment, the sensor can be adjusted to binning mode. In this mode, 4 adjacent pixels in the initial preview image can be merged into one pixel, which reduces the signal-to-noise ratio of the pixels in low light conditions and improves Improves the brightness of the screen, thereby improving the quality of preview images in dark light environments. ,
在一些场景中,基于像素融合率对初始预览图像的像素进行像素融合,生成融合预览图像效果并不佳,会对后续的图像处理产生影响,降低相机预览的效果。在本公开实施例中,可首先获取融合预览图像的图像特征数据,然后基于图像特征数据和预设图像特征数据确定融合预览图像的图像等级,而后响应于图像等级小于图像等级阈值,基于图像特征数据和预设图像特征数据,对像素融合率进行调整,最后基于调整后的像素融合率,对初始预览图像的像素重新进行像素融合,直至达到最佳的像素融合效果。尤其在配色变化较为单一的风景图、摄夜景或者暗色、色差小的图像中,像素融合不会对图像的清晰度造成太大的影响,通过这种调整像素融合率的方法实现的效果更好。In some scenarios, the pixels of the initial preview image are fused based on the pixel fusion rate, and the effect of generating the fused preview image is not good, which will have an impact on subsequent image processing and reduce the effect of the camera preview. In the embodiment of the present disclosure, the image feature data of the fused preview image may be first obtained, and then the image level of the fused preview image is determined based on the image feature data and the preset image feature data, and then in response to the image level being less than the image level threshold, based on the image feature data and preset image feature data, adjust the pixel fusion rate, and finally based on the adjusted pixel fusion rate, re-pixel fuse the pixels of the initial preview image until the best pixel fusion effect is achieved. Especially in landscapes, night scenes, or dark images with small color differences where color changes are relatively simple, pixel fusion will not have a great impact on the clarity of the image. This method of adjusting the pixel fusion rate can achieve better results. .
图像特征数据可包含图像的灰度、锐度、分辨率等因素,现有技术中通常通过AI算法对图像特征数据进行处理,也可通过训练模型来对图像特征数据进行处理,以输出图像的图像等级。需要说明的是,图像等级可分为多种,此处不作任何限定,图像等级阈值为提前设定好的,并可根据实际的清苦进行调整。举例来说,不同的气候下图像等级阈值可为不同,不同的光照情况下图像等级阈值可为不同。Image feature data can include the grayscale, sharpness, resolution and other factors of the image. In the existing technology, the image feature data is usually processed through AI algorithms, or the image feature data can be processed through training models to output the image feature data. Image level. It should be noted that image levels can be divided into many types, and there are no limitations here. The image level threshold is set in advance and can be adjusted according to actual conditions. For example, the image level thresholds may be different under different climates, and the image level thresholds may be different under different lighting conditions.
可选地,图像特征数据和预设图像特征数据以及图像等级还可存在映射关系表,通过将图像特征数据和预设图像特征数据进行对比,查表确定融合预览图像的图像等级。该映射关系表可为提前设定好的,并存储在电子设备的存储空间中,以方便在需要时调取使用。Optionally, there may also be a mapping relationship table between the image feature data, the preset image feature data and the image level. By comparing the image feature data with the preset image feature data, the image level of the fused preview image is determined by looking up the table. The mapping relationship table can be set in advance and stored in the storage space of the electronic device to facilitate retrieval and use when needed.
在确定图像等级小于图像等级阈值后,可基于基于图像特征数据和预设图像特征数据进行分析,确定像素融合率的调整方案,举例来说,如果图像的锐度过大,可通过降低像素融合率来进行优化;如果图像的亮度过低,可通过提升像素融合率来进行优化等。After it is determined that the image level is less than the image level threshold, an adjustment plan for the pixel fusion rate can be determined based on analysis based on image feature data and preset image feature data. For example, if the sharpness of the image is too large, the pixel fusion rate can be adjusted by reducing the Optimize by increasing the pixel fusion rate; if the brightness of the image is too low, you can optimize by increasing the pixel fusion rate.
请参见图5,图5是本公开实施例提供的另一种相机预览的流程示意图,如图5所示,基于目标预览模式和初始预览图像生成相机的目标预览图像,可包括但不限于如下步骤:Please refer to Figure 5. Figure 5 is a schematic flow chart of another camera preview provided by an embodiment of the present disclosure. As shown in Figure 5, generating a target preview image of the camera based on the target preview mode and the initial preview image may include but is not limited to the following step:
S51,响应于目标预览模式为第二预览模式,获取相机的第二目标放大倍数。S51, in response to the target preview mode being the second preview mode, obtain the second target magnification of the camera.
关于步骤S51的具体实现可参见上述实施例中S21相关内容的记载,此处不再赘述。Regarding the specific implementation of step S51, please refer to the records related to S21 in the above embodiment, and will not be described again here.
S52,基于第二目标放大倍数对初始预览图像进行缩放,以生成第二缩放图像。S52: Scale the initial preview image based on the second target magnification to generate a second scaled image.
在本公开实施例中,在第二预览模式下,获取到初始预览图像后,可通过传感器基于第二目标放大倍数进行缩放,无需通过图像信号处理器对初始预览图像进行缩放,以此可以释放图像信号处理器的部分算力,从而将更多的算力用于图像处理。In the embodiment of the present disclosure, in the second preview mode, after the initial preview image is obtained, the sensor can be used to zoom based on the second target magnification, without the need to use the image signal processor to zoom the initial preview image, so as to release Part of the computing power of the image signal processor, thereby using more computing power for image processing.
并且这种通过传感器进行缩放的方法,生成的第二缩放图像分辨率更高,在后续的处理的过程中,相较于通过图像信号处理器进行缩放的方案,图像信号处理器基于此方法生 成的第二缩放图像处理后成像的质量更好,从而提升在亮光环境中相机的预览效果。And this method of scaling through the sensor generates a second zoomed image with a higher resolution. In the subsequent processing process, compared with the scaling through the image signal processor, the image signal processor generates based on this method The image quality after the second zoom image processing is better, thereby improving the preview effect of the camera in bright light environments.
如图6所示,可直接基于传感器sensor对初始预审图像进行缩放,初始预审图像的分辨率为当初始预览图像的像素为8000X6000px,第二目标放大倍数为2倍,则缩放后的第二缩放图像的分辨率为4000X3000px。As shown in Figure 6, the initial pre-review image can be scaled directly based on the sensor. The resolution of the initial pre-review image is: When the pixels of the initial preview image are 8000X6000px and the second target magnification is 2 times, then the second zoom after scaling The resolution of the image is 4000X3000px.
S53,调整第一缩放预览图像的分辨率至预设分辨率,以生成目标预览图像。S53. Adjust the resolution of the first scaled preview image to a preset resolution to generate a target preview image.
在本公开实施例中,在获取到第二缩放图像后,可首先基于图像信号处理器对第二缩放预览图像进行图像处理。In the embodiment of the present disclosure, after acquiring the second zoomed image, the second zoomed preview image may first be image processed based on the image signal processor.
在获取到第二缩放预览图像后,可基于第二缩放预览图像的分辨率与预设分辨率进行对比,当第二缩放预览图像的分辨率大于预设分辨率,则对第二缩放预览图像进行缩小直至达到预设分辨率,当第二缩放预览图像的分辨率小于预设分辨率,则对第二缩放预览图像进行放大直至达到预设分辨率。After the second zoom preview image is obtained, a comparison can be made based on the resolution of the second zoom preview image and the preset resolution. When the resolution of the second zoom preview image is greater than the preset resolution, the second zoom preview image Zoom out until the preset resolution is reached. When the resolution of the second zoomed preview image is smaller than the preset resolution, the second zoomed preview image is enlarged until it reaches the preset resolution.
需要说明的是,预设分辨率为提前设定好的,并可根据实际的需要进行变换,此处不作任何限定。如图6所示,预设分辨率为1440X1080px,第一缩放预览图像的分辨率为4000X3000px,需要将第一缩放预览图像进行缩小直至达到预设分辨率,以生成预设分辨率大小的目标预览图像。It should be noted that the default resolution is set in advance and can be changed according to actual needs, and there is no limit here. As shown in Figure 6, the default resolution is 1440X1080px, and the resolution of the first zoomed preview image is 4000X3000px. The first zoomed preview image needs to be reduced until it reaches the preset resolution to generate a target preview with the preset resolution size. image.
在本公开实施例中,首先响应于目标预览模式为第二预览模式,获取相机的第二目标放大倍数,然后基于第二目标放大倍数对初始预览图像进行缩放,以生成第二缩放图像,最后对第二缩放预览图像进行变形,以生成预设分辨率大小的目标预览图像。由此,在亮光环境下,通过传感器对初始预览图像进行放大,无需通过图像信号处理器对初始预览图像进行缩放,可以图像信号处理器将更多的算力用于图像处理,且无需对初始预览图像进行像素融合,提升了目标预览图像的分辨率。In an embodiment of the present disclosure, first in response to the target preview mode being the second preview mode, a second target magnification factor of the camera is obtained, and then the initial preview image is scaled based on the second target magnification factor to generate a second scaled image, and finally Transform the second scaled preview image to generate a target preview image with a preset resolution size. Therefore, in a bright light environment, the initial preview image is amplified by the sensor without the need for the image signal processor to scale the initial preview image. The image signal processor can use more computing power for image processing without the need for the initial preview image. The preview image undergoes pixel fusion to improve the resolution of the target preview image.
在本公开实施例中,当在亮光环境下,可将CFA Sensor调整至传感器缩放(in sensor zoom,ISZ)模式,ISZ方式则是由摄像头做修剪(Crop)和反马赛克(demosasic),可以极大提升缩放后的解析力。在另一些实施例中,还可将CFA Sensor调整至binning模式中的全尺寸(full size)模式,通过硬件或软件remosaic技术,将图像还原成高像素的BAYER格式,但是这种方法相比ISZ模式,缩小(downscale)后的输入图像的分辨率只有ISZ模式下输入图像的1/4,从而导致最终downscale的输出图像的解析力远不如ISZ模式。In this disclosed embodiment, when in a bright light environment, the CFA Sensor can be adjusted to the sensor zoom (ISZ) mode. In the ISZ mode, the camera performs cropping (Crop) and demosaic (demosasic), which can be extremely effective. Greatly improve the resolution after scaling. In other embodiments, the CFA Sensor can also be adjusted to the full size mode in the binning mode, and the image can be restored to the high-pixel BAYER format through hardware or software remosaic technology, but this method is inferior to ISZ mode, the resolution of the downscaled input image is only 1/4 of the input image in ISZ mode, resulting in the final downscaled output image having far less resolution than ISZ mode.
图7为本公开实施例的整体流程示意图,如图所示,首先启动相机并执行相机的预览流程,然后获取相机所处环境的环境亮度值,基于环境亮度值判定当前环境是否为暗光环境,如果当前环境为暗光环境,切换至第一预览模式,如果当前环境为亮光环境,切换至第二预览模式,生成相机的目标预览图像,并将目标预览图像在相机的预览区域显示。由此,通过获取环境亮度值,自动选取不同的目标预览模式,可以实现不同环境亮度值选择最佳的图像处理模式,从而增强相机的预览效果,提升相机的使用体验。Figure 7 is a schematic diagram of the overall process of an embodiment of the present disclosure. As shown in the figure, first start the camera and execute the preview process of the camera, then obtain the environment brightness value of the environment where the camera is located, and determine whether the current environment is a dark light environment based on the environment brightness value. , if the current environment is a dark light environment, switch to the first preview mode; if the current environment is a bright light environment, switch to the second preview mode, generate a target preview image of the camera, and display the target preview image in the preview area of the camera. Therefore, by obtaining the ambient brightness value and automatically selecting different target preview modes, the best image processing mode can be selected for different ambient brightness values, thereby enhancing the camera's preview effect and improving the camera usage experience.
与上述几种实施例提供的相机预览方法相对应,本公开的一个实施例还提供了一种相机预览装置,由于本公开实施例提供的相机预览装置与上述几种实施例提供的相机预览方法相对应,因此上述相机预览方法的实施方式也适用于本公开实施例提供的相机预览装置,在下述实施例中不再详细描述。Corresponding to the camera preview method provided by the above embodiments, one embodiment of the present disclosure also provides a camera preview device. Since the camera preview device provided by the embodiment of the present disclosure is different from the camera preview method provided by the above embodiments, Correspondingly, therefore, the above implementation of the camera preview method is also applicable to the camera preview device provided by the embodiments of the present disclosure, and will not be described in detail in the following embodiments.
请参见图8,为本公开实施例提供的一种相机预览装置80的结构示意图。图8所示的相机预览装置80可包括启动模块81、获取模块82、生成模块83和执行模块84。Please refer to FIG. 8 , which is a schematic structural diagram of a camera preview device 80 provided by an embodiment of the present disclosure. The camera preview device 80 shown in FIG. 8 may include a startup module 81, an acquisition module 82, a generation module 83 and an execution module 84.
其中,启动模块81,用于启动相机并执行相机的预览流程采集待预览的初始预览图像。Among them, the startup module 81 is used to start the camera and execute the preview process of the camera to collect the initial preview image to be previewed.
获取模块82,用于获取相机所处环境的环境亮度值.The acquisition module 82 is used to acquire the ambient brightness value of the environment where the camera is located.
生成模块83,用于根据环境亮度值和亮度阈值,生成预览模式的调用指令,调用指令包含目标预览模式。The generation module 83 is configured to generate a calling instruction for the preview mode according to the environment brightness value and the brightness threshold, where the calling instruction includes the target preview mode.
执行模块84,用于执行调用指令,调用目标预览模式,并基于目标预览模式和初始预览图像生成相机的目标预览图像,并将目标预览图像在相机的预览区域显示。The execution module 84 is used to execute the calling instruction, call the target preview mode, generate the target preview image of the camera based on the target preview mode and the initial preview image, and display the target preview image in the preview area of the camera.
在本公开的一个实施例中,生成模块83,还用于:将环境亮度值和亮度阈值进行比较;响应于环境亮度数值小于亮度阈值,从候选预览模式中选取第一预览模式作为目标预览模式,基于第一预览模式生成调用指令;或者响应于环境亮度数值大于或者等于亮度阈值,从候选预览模式中选取第二预览模式作为目标预览模式,基于第二预览模式生成调用指令。In one embodiment of the present disclosure, the generation module 83 is also configured to: compare the environment brightness value with the brightness threshold; in response to the environment brightness value being less than the brightness threshold, select the first preview mode from the candidate preview modes as the target preview mode , generate a calling instruction based on the first preview mode; or in response to the environment brightness value being greater than or equal to the brightness threshold, select the second preview mode as the target preview mode from the candidate preview modes, and generate the calling instruction based on the second preview mode.
在本公开的一个实施例中,执行模块84,还用于:响应于目标预览模式为第一预览模式,获取相机的第一目标放大倍数;基于像素融合率对初始预览图像的像素进行像素融合,以获取融合预览图像;基于第一目标放大倍数对融合预览图像进行缩放,以生成第一缩放预览图像;对第一缩放预览图像进行变形,以生成预设分辨率大小的目标预览图像。In one embodiment of the present disclosure, the execution module 84 is also configured to: in response to the target preview mode being the first preview mode, obtain the first target magnification of the camera; perform pixel fusion on the pixels of the initial preview image based on the pixel fusion rate , to obtain a fusion preview image; scale the fusion preview image based on the first target magnification to generate a first scaled preview image; deform the first scaled preview image to generate a target preview image with a preset resolution size.
在本公开的一个实施例中,执行模块84,还用于:获取融合预览图像的图像特征数据;基于图像特征数据和预设图像特征数据确定融合预览图像的图像等级;响应于图像等级小于图像等级阈值,基于图像特征数据和预设图像特征数据,对像素融合率进行调整;基于调整后的像素融合率,对初始预览图像的像素重新进行像素融合。In one embodiment of the present disclosure, the execution module 84 is also configured to: obtain image feature data of the fused preview image; determine the image level of the fused preview image based on the image feature data and the preset image feature data; respond to the image level being less than the image level The level threshold adjusts the pixel fusion rate based on the image feature data and the preset image feature data; based on the adjusted pixel fusion rate, the pixels of the initial preview image are re-pixel fused.
在本公开的一个实施例中,执行模块84,还用于:基于四色滤波阵列算法对初始预览图像进行像素融合,以获取融合预览图像。In one embodiment of the present disclosure, the execution module 84 is also configured to perform pixel fusion on the initial preview image based on a four-color filter array algorithm to obtain a fused preview image.
在本公开的一个实施例中,执行模块84,还用于:响应于目标预览模式为第二预览模式,获取相机的第二目标放大倍数;基于第二目标放大倍数对初始预览图像进行缩放,以生成第二缩放图像;调整第一缩放预览图像的分辨率至预设分辨率,以生成目标预览图像。In one embodiment of the present disclosure, the execution module 84 is also configured to: in response to the target preview mode being the second preview mode, obtain the second target magnification factor of the camera; scale the initial preview image based on the second target magnification factor, to generate a second scaled image; and adjust the resolution of the first scaled preview image to a preset resolution to generate a target preview image.
在本公开的一个实施例中,执行模块84,还用于:基于光敏元件采集所处环境的光信息,以确定环境亮度值;或者,获取初始预览图像的画面亮度,基于画面亮度确定环境亮度值。In one embodiment of the present disclosure, the execution module 84 is also used to: collect light information of the environment based on the photosensitive element to determine the environment brightness value; or, obtain the screen brightness of the initial preview image, and determine the environment brightness based on the screen brightness. value.
在本公开的一个实施例中,获取模块82,还用于:基于所有候选预览模式与初始预览图像生成多个候选目标预览图像;从多个候选目标预览图像中选取解析力最高的候选目标预览图像作为目标预览图像,并将解析力最高的候选目标预览图像对应的预览模式与当前环境亮度值进行绑定。In one embodiment of the present disclosure, the acquisition module 82 is also configured to: generate multiple candidate target preview images based on all candidate preview modes and initial preview images; select the candidate target preview with the highest resolution from the multiple candidate target preview images. The image is used as the target preview image, and the preview mode corresponding to the candidate target preview image with the highest resolution is bound to the current environment brightness value.
在本公开实施例中,首先启动相机并执行相机的预览流程采集待预览的初始预览图像,然后获取相机所处环境的环境亮度值,而后根据环境亮度值和亮度阈值,生成预览模式的调用指令,调用指令包含目标预览模式,最后执行调用指令,调用目标预览模式,并基于目标预览模式和初始预览图像生成相机的目标预览图像,并将目标预览图像在相机的预览区域显示。由此,通过获取环境亮度值,自动选取不同的目标预览模式,可以实现不同亮度下获取拍摄效果更加的目标预览图像,提升用户的使用体验。In the embodiment of the present disclosure, first start the camera and execute the camera's preview process to collect the initial preview image to be previewed, then obtain the ambient brightness value of the environment where the camera is located, and then generate a call instruction for the preview mode based on the ambient brightness value and the brightness threshold. , the calling instruction includes the target preview mode, and finally the calling instruction is executed to call the target preview mode, and generate the target preview image of the camera based on the target preview mode and the initial preview image, and display the target preview image in the preview area of the camera. Therefore, by obtaining the ambient brightness value and automatically selecting different target preview modes, it is possible to obtain target preview images with better shooting effects under different brightnesses and improve the user experience.
本领域技术人员还可以了解到本公开实施例列出的各种说明性逻辑块(illustrative logical block)和步骤(step)可以通过电子硬件、电脑软件,或两者的结合进行实现。这样的功能是通过硬件还是软件来实现取决于特定的应用和整个系统的设计要求。本领域技术人员可以对于每种特定的应用,可以使用各种方法实现所述的功能,但这种实现不应被理解为超出本公开实施例保护的范围。Those skilled in the art can also understand that the various illustrative logical blocks and steps listed in the embodiments of the present disclosure can be implemented by electronic hardware, computer software, or a combination of both. Whether such functionality is implemented in hardware or software depends on the specific application and overall system design requirements. Those skilled in the art can use various methods to implement the described functions for each specific application, but such implementation should not be understood as exceeding the scope of protection of the embodiments of the present disclosure.
为了实现上述实施例,本公开实施例还提出一种电子设备900,如图9所示,该电子设备900包括:处理器91和处理器通信连接的存储器92,存储器92存储有可被至少一个处理器执行的指令,指令被至少一个处理器91执行,以实现如本公开第一方面实施例的固件的调试方法。In order to implement the above embodiments, an embodiment of the present disclosure also proposes an electronic device 900. As shown in Figure 9, the electronic device 900 includes: a processor 91 and a memory 92 communicatively connected to the processor. The memory 92 stores information that can be used by at least one Instructions executed by the processor are executed by at least one processor 91 to implement the firmware debugging method according to the embodiment of the first aspect of the present disclosure.
本公开还提供一种可读存储介质,其上存储有指令,该指令被计算机执行时实现上述任一方法实施例的功能。The present disclosure also provides a readable storage medium on which instructions are stored, and when the instructions are executed by a computer, the functions of any of the above method embodiments are implemented.
本公开还提供一种计算机程序产品,该计算机程序产品被计算机执行时实现上述任一方法实施例的功能。The present disclosure also provides a computer program product, which, when executed by a computer, implements the functions of any of the above method embodiments.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机程序。在计算机上加载和执行所述计算机程序时,全部或部分地产生按照本公开实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机程序可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机程序可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,高密度数字视频光盘(digital video disc,DVD))、或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs. When the computer program is loaded and executed on a computer, the processes or functions described in accordance with the embodiments of the present disclosure are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer program may be stored in or transferred from one computer-readable storage medium to another, for example, the computer program may be transferred from a website, computer, server, or data center Transmission to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more available media integrated. The usable media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., high-density digital video discs (DVD)), or semiconductor media (e.g., solid state disks, SSD)) etc.
本领域普通技术人员可以理解:本公开中涉及的第一、第二等各种数字编号仅为描述方便进行的区分,并不用来限制本公开实施例的范围,也表示先后顺序。Those of ordinary skill in the art can understand that the first, second, and other numerical numbers involved in this disclosure are only for convenience of description and are not used to limit the scope of the embodiments of the disclosure, nor to indicate the order.
本公开中的至少一个还可以描述为一个或多个,多个可以是两个、三个、四个或者更多个,本公开不做限制。在本公开实施例中,对于一种技术特征,通过“第一”、“第二”、“第三”、“A”、“B”、“C”和“D”等区分该种技术特征中的技术特征,该“第一”、“第二”、“第三”、“A”、“B”、“C”和“D”描述的技术特征间无先后顺序或者大小顺序。At least one in the present disclosure can also be described as one or more, and the plurality can be two, three, four or more, and the present disclosure is not limited. In the embodiment of the present disclosure, for a technical feature, the technical feature is distinguished by “first”, “second”, “third”, “A”, “B”, “C” and “D” etc. The technical features described in "first", "second", "third", "A", "B", "C" and "D" are in no particular order or order.
本公开中各表所示的对应关系可以被配置,也可以是预定义的。各表中的信息的取值仅仅是举例,可以配置为其他值,本公开并不限定。在配置信息与各参数的对应关系时,并不一定要求必须配置各表中示意出的所有对应关系。例如,本公开中的表格中,某些行示出的对应关系也可以不配置。又例如,可以基于上述表格做适当的变形调整,例如,拆分,合并等等。上述各表中标题示出参数的名称也可以采用通信装置可理解的其他名称, 其参数的取值或表示方式也可以通信装置可理解的其他取值或表示方式。上述各表在实现时,也可以采用其他的数据结构,例如可以采用数组、队列、容器、栈、线性表、指针、链表、树、图、结构体、类、堆、散列表或哈希表等。The corresponding relationships shown in each table in this disclosure can be configured or predefined. The values of the information in each table are only examples and can be configured as other values, which is not limited by this disclosure. When configuring the correspondence between information and each parameter, it is not necessarily required to configure all the correspondences shown in each table. For example, in the table in this disclosure, the corresponding relationships shown in some rows may not be configured. For another example, appropriate deformation adjustments can be made based on the above table, such as splitting, merging, etc. The names of the parameters shown in the titles of the above tables may also be other names understandable by the communication device, and the values or expressions of the parameters may also be other values or expressions understandable by the communication device. When implementing the above tables, other data structures can also be used, such as arrays, queues, containers, stacks, linear lists, pointers, linked lists, trees, graphs, structures, classes, heaps, hash tables or hash tables. wait.
本公开中的预定义可以理解为定义、预先定义、存储、预存储、预协商、预配置、固化、或预烧制。Predefinition in this disclosure may be understood as definition, pre-definition, storage, pre-storage, pre-negotiation, pre-configuration, solidification, or pre-burning.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本公开的范围。Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered to be beyond the scope of this disclosure.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be described again here.
以上所述,仅为本公开的具体实施方式,但本公开的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure. should be covered by the protection scope of this disclosure. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.

Claims (11)

  1. 一种相机预览方法,其特征在于,包括:A camera preview method, characterized by including:
    启动相机并执行所述相机的预览流程,采集待预览的初始预览图像;Start the camera and execute the preview process of the camera, and collect the initial preview image to be previewed;
    获取所述相机所处环境的环境亮度值;Obtain the ambient brightness value of the environment where the camera is located;
    根据所述环境亮度值和亮度阈值,生成预览模式的调用指令,所述调用指令包含目标预览模式;Generate a calling instruction for the preview mode according to the environment brightness value and the brightness threshold, where the calling instruction includes the target preview mode;
    执行所述调用指令,调用所述目标预览模式,并基于所述目标预览模式和所述初始预览图像生成所述相机的目标预览图像,并将所述目标预览图像在相机的预览区域显示。Execute the calling instruction to call the target preview mode, generate a target preview image of the camera based on the target preview mode and the initial preview image, and display the target preview image in the preview area of the camera.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述环境亮度值和亮度阈值,生成预览模式的调用指令,所述调用指令包含目标预览模式,包括:The method according to claim 1, characterized in that the calling instruction for preview mode is generated according to the ambient brightness value and the brightness threshold, and the calling instruction includes the target preview mode, including:
    将所述环境亮度值和亮度阈值进行比较;Compare the ambient brightness value with a brightness threshold;
    响应于所述环境亮度数值小于亮度阈值,从候选预览模式中选取第一预览模式作为所述目标预览模式,基于所述第一预览模式生成所述调用指令;或者In response to the environment brightness value being less than a brightness threshold, selecting a first preview mode from the candidate preview modes as the target preview mode, and generating the calling instruction based on the first preview mode; or
    响应于所述环境亮度数值大于或者等于亮度阈值,从所述候选预览模式中选取第二预览模式作为所述目标预览模式,基于所述第二预览模式生成调用指令。In response to the environment brightness value being greater than or equal to the brightness threshold, a second preview mode is selected from the candidate preview modes as the target preview mode, and a calling instruction is generated based on the second preview mode.
  3. 根据权利要求2所述的方法,其特征在于,所述基于所述目标预览模式和所述初始预览图像生成所述相机的目标预览图像,包括:The method of claim 2, wherein generating a target preview image of the camera based on the target preview mode and the initial preview image includes:
    响应于所述目标预览模式为所述第一预览模式,获取所述相机的第一目标放大倍数;In response to the target preview mode being the first preview mode, obtaining a first target magnification of the camera;
    基于像素融合率对所述初始预览图像的像素进行像素融合,以获取融合预览图像;Perform pixel fusion on the pixels of the initial preview image based on the pixel fusion rate to obtain a fused preview image;
    基于所述第一目标放大倍数对所述融合预览图像进行缩放,以生成第一缩放预览图像;Scale the fused preview image based on the first target magnification to generate a first scaled preview image;
    调整所述第一缩放预览图像的分辨率至预设分辨率,以生成所述目标预览图像。Adjust the resolution of the first scaled preview image to a preset resolution to generate the target preview image.
  4. 根据权利要求3所述的方法,其特征在于,所述方法还包括:The method of claim 3, further comprising:
    获取所述融合预览图像的图像特征数据;Obtain image feature data of the fused preview image;
    基于所述图像特征数据和预设图像特征数据确定所述融合预览图像的图像等级;Determine the image level of the fused preview image based on the image feature data and preset image feature data;
    响应于所述图像等级小于图像等级阈值,基于所述图像特征数据和所述预设图像特征数据,对所述像素融合率进行调整;In response to the image level being less than an image level threshold, adjusting the pixel fusion rate based on the image feature data and the preset image feature data;
    基于调整后的所述像素融合率,对所述初始预览图像的像素重新进行像素融合。Based on the adjusted pixel fusion rate, pixel fusion is performed again on the pixels of the initial preview image.
  5. 根据权利要求2所述的方法,其特征在于,所述基于所述目标预览模式和所述初始预览图像生成所述相机的目标预览图像,包括:The method of claim 2, wherein generating a target preview image of the camera based on the target preview mode and the initial preview image includes:
    响应于所述目标预览模式为所述第二预览模式,获取所述相机的第二目标放大倍数;In response to the target preview mode being the second preview mode, obtaining a second target magnification of the camera;
    基于所述第二目标放大倍数对所述初始预览图像进行缩放,以生成第二缩放图像;Scale the initial preview image based on the second target magnification to generate a second scaled image;
    调整所述第一缩放预览图像的分辨率至预设分辨率,以生成所述目标预览图像。Adjust the resolution of the first scaled preview image to a preset resolution to generate the target preview image.
  6. 根据权利要求1所述的方法,其特征在于,所述获取所述相机所处环境的环境亮度值,包括:The method of claim 1, wherein obtaining the ambient brightness value of the environment where the camera is located includes:
    基于光敏元件采集所述所处环境的光信息,以确定所述环境亮度值;或者,Collect light information of the environment based on a photosensitive element to determine the ambient brightness value; or,
    获取所述初始预览图像的画面亮度,基于所述画面亮度确定所述环境亮度值。Obtain the screen brightness of the initial preview image, and determine the environment brightness value based on the screen brightness.
  7. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, further comprising:
    基于所有所述候选预览模式与所述初始预览图像生成多个候选目标预览图像;Generate a plurality of candidate target preview images based on all the candidate preview modes and the initial preview image;
    从多个所述候选目标预览图像中选取解析力最高的所述候选目标预览图像作为所述目标预览图像,并将解析力最高的所述候选目标预览图像对应的所 述候选预览模式与当前所述环境亮度值进行绑定。Select the candidate target preview image with the highest resolution from a plurality of candidate target preview images as the target preview image, and compare the candidate preview mode corresponding to the candidate target preview image with the highest resolution with the currently selected target preview image. Bind the above environment brightness value.
  8. 一种相机预览装置,其特征在于,包括:A camera preview device, characterized by including:
    启动模块,用于启动相机并执行所述相机的预览流程,采集待预览的初始预览图像;A startup module, used to start the camera and execute the preview process of the camera, and collect the initial preview image to be previewed;
    获取模块,用于获取所述相机所处环境的环境亮度值;An acquisition module, used to acquire the ambient brightness value of the environment where the camera is located;
    生成模块,用于根据所述环境亮度值和亮度阈值,生成预览模式的调用指令,所述调用指令包含目标预览模式;A generation module, configured to generate a calling instruction for the preview mode according to the environment brightness value and the brightness threshold, where the calling instruction includes the target preview mode;
    执行模块,用于执行所述调用指令,调用所述目标预览模式,并基于所述目标预览模式和所述初始预览图像生成所述相机的目标预览图像,并将所述目标预览图像在相机的预览区域显示。An execution module, configured to execute the calling instruction, call the target preview mode, generate a target preview image of the camera based on the target preview mode and the initial preview image, and store the target preview image in the camera's The preview area is displayed.
  9. 一种电子设备,其特征在于,包括存储器、处理器;An electronic device, characterized by including a memory and a processor;
    其中,所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,使如权利要求1至7中任一项的方法被实现。Wherein, the processor reads the executable program code stored in the memory and runs a program corresponding to the executable program code, so that the method according to any one of claims 1 to 7 is implemented.
  10. 一种计算机可读存储介质,用于存储有指令,当指令被执行时,使如权利要求1至7中任一项的方法被实现。A computer-readable storage medium used to store instructions that, when executed, enable the method of any one of claims 1 to 7 to be implemented.
  11. 一种计算机程序产品,包括计算机程序,所述计算机程序在被处理器执行时实现根据权利要求1至7中任一项所述的方法。A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 7.
PCT/CN2022/099967 2022-06-20 2022-06-20 Preview method and apparatus for camera WO2023245391A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2022/099967 WO2023245391A1 (en) 2022-06-20 2022-06-20 Preview method and apparatus for camera
CN202280004284.4A CN117652150A (en) 2022-06-20 2022-06-20 Method and device for previewing camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/099967 WO2023245391A1 (en) 2022-06-20 2022-06-20 Preview method and apparatus for camera

Publications (1)

Publication Number Publication Date
WO2023245391A1 true WO2023245391A1 (en) 2023-12-28

Family

ID=89378982

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/099967 WO2023245391A1 (en) 2022-06-20 2022-06-20 Preview method and apparatus for camera

Country Status (2)

Country Link
CN (1) CN117652150A (en)
WO (1) WO2023245391A1 (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105592254A (en) * 2014-10-21 2016-05-18 宏碁股份有限公司 Image display method and electronic device
CN106657780A (en) * 2016-12-16 2017-05-10 北京小米移动软件有限公司 Image previewing method and device
CN106911892A (en) * 2017-02-21 2017-06-30 深圳市金立通信设备有限公司 The method and terminal of a kind of image procossing
US20180069983A1 (en) * 2016-09-06 2018-03-08 Lg Electronics Inc. Terminal and controlling method thereof
CN110086993A (en) * 2019-04-30 2019-08-02 努比亚技术有限公司 Image processing method, device, mobile terminal and computer readable storage medium
CN111193874A (en) * 2020-01-07 2020-05-22 青岛海信移动通信技术股份有限公司 Image display parameter adjusting method and mobile terminal
CN112822413A (en) * 2020-12-30 2021-05-18 Oppo(重庆)智能科技有限公司 Shooting preview method, device, terminal and computer readable storage medium
CN113727016A (en) * 2021-06-15 2021-11-30 荣耀终端有限公司 Shooting method and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105592254A (en) * 2014-10-21 2016-05-18 宏碁股份有限公司 Image display method and electronic device
US20180069983A1 (en) * 2016-09-06 2018-03-08 Lg Electronics Inc. Terminal and controlling method thereof
CN106657780A (en) * 2016-12-16 2017-05-10 北京小米移动软件有限公司 Image previewing method and device
CN106911892A (en) * 2017-02-21 2017-06-30 深圳市金立通信设备有限公司 The method and terminal of a kind of image procossing
CN110086993A (en) * 2019-04-30 2019-08-02 努比亚技术有限公司 Image processing method, device, mobile terminal and computer readable storage medium
CN111193874A (en) * 2020-01-07 2020-05-22 青岛海信移动通信技术股份有限公司 Image display parameter adjusting method and mobile terminal
CN112822413A (en) * 2020-12-30 2021-05-18 Oppo(重庆)智能科技有限公司 Shooting preview method, device, terminal and computer readable storage medium
CN113727016A (en) * 2021-06-15 2021-11-30 荣耀终端有限公司 Shooting method and electronic equipment

Also Published As

Publication number Publication date
CN117652150A (en) 2024-03-05

Similar Documents

Publication Publication Date Title
CN108419023B (en) Method for generating high dynamic range image and related equipment
US8937677B2 (en) Digital photographing apparatus, method of controlling the same, and computer-readable medium
US8823829B2 (en) Image capture with adjustment of imaging properties at transitions between regions
US8558913B2 (en) Capture condition selection from brightness and motion
JP6267502B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND PROGRAM
RU2562918C2 (en) Shooting device, shooting system and control over shooting device
WO2017045558A1 (en) Depth-of-field adjustment method and apparatus, and terminal
CN110198418B (en) Image processing method, image processing device, storage medium and electronic equipment
US10440278B2 (en) Imaging device and system including imaging device and server
CN110290325B (en) Image processing method, image processing device, storage medium and electronic equipment
CN110430370B (en) Image processing method, image processing device, storage medium and electronic equipment
US8665355B2 (en) Image capture with region-based adjustment of contrast
JP2015040941A (en) Image-capturing device, control method therefor, and program
JP7285791B2 (en) Image processing device, output information control method, and program
JP2013106284A (en) Light source estimation device, light source estimation method, light source estimation program, and imaging apparatus
US20190082092A1 (en) Imaging apparatus, image processing apparatus, imaging method, image processing method, and storage medium
CN110278375B (en) Image processing method, image processing device, storage medium and electronic equipment
CN110266965B (en) Image processing method, image processing device, storage medium and electronic equipment
CN110266967B (en) Image processing method, image processing device, storage medium and electronic equipment
JP2013168723A (en) Image processing device, imaging device, image processing program, and image processing method
JP4788172B2 (en) Imaging apparatus and program
JP5316923B2 (en) Imaging apparatus and program thereof
WO2023245391A1 (en) Preview method and apparatus for camera
KR20100115574A (en) Digital camera and controlling method thereof
US20190052803A1 (en) Image processing system, imaging apparatus, image processing apparatus, control method, and storage medium