WO2017084342A1 - 一种电子设备的二次曝光拍照方法和装置 - Google Patents

一种电子设备的二次曝光拍照方法和装置 Download PDF

Info

Publication number
WO2017084342A1
WO2017084342A1 PCT/CN2016/087338 CN2016087338W WO2017084342A1 WO 2017084342 A1 WO2017084342 A1 WO 2017084342A1 CN 2016087338 W CN2016087338 W CN 2016087338W WO 2017084342 A1 WO2017084342 A1 WO 2017084342A1
Authority
WO
WIPO (PCT)
Prior art keywords
image data
exposure image
frame
preset ratio
frame exposure
Prior art date
Application number
PCT/CN2016/087338
Other languages
English (en)
French (fr)
Inventor
黄海宁
Original Assignee
乐视控股(北京)有限公司
乐视移动智能信息技术(北京)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 乐视控股(北京)有限公司, 乐视移动智能信息技术(北京)有限公司 filed Critical 乐视控股(北京)有限公司
Priority to US15/232,753 priority Critical patent/US20170150041A1/en
Publication of WO2017084342A1 publication Critical patent/WO2017084342A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/2621Cameras specially adapted for the electronic generation of special effects during image pickup, e.g. digital cameras, camcorders, video cameras having integrated special effects capability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/667Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/73Circuitry for compensating brightness variation in the scene by influencing the exposure time
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/743Bracketing, i.e. taking a series of images with varying exposure conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Definitions

  • the present invention relates to the field of electronic device technology, and in particular, to a method and apparatus for taking a double exposure of an electronic device.
  • the double exposure technique is a unique camera technology in the film camera era.
  • the principle is to perform two or more exposures (multiple exposures) on the same negative film, thereby presenting the effect of superimposing two scenes on one photo.
  • the camera function has become the standard for smartphones, but there is no mature solution to add the double exposure effect to the camera application of the mobile phone. If the user wants to add a double exposure effect to the photo, then only the post-processing software such as PhotoShop (an image processing software) can be used for the double exposure process, the efficiency is very low, and the photo quality will be lost to a certain extent, and the user experience is poor. .
  • PhotoShop an image processing software
  • Embodiments of the present invention provide a method and apparatus for photographing a double exposure of an electronic device, which are used to solve the problem that a currently unripe solution adds a double exposure effect to a camera application of a mobile phone, and a post-processing software performs secondary exposure processing. Very low, and the quality of the photo will be lost to a certain extent, the user experience is poor.
  • an embodiment of the present invention discloses a method for photographing a double exposure of an electronic device, comprising the steps of: operating a shooting mode of the electronic device; receiving a first camera command; and acquiring a first frame captured by the camera module.
  • an embodiment of the present invention further discloses a secondary exposure photographing apparatus for an electronic device, comprising: an operation module for operating a shooting mode of the electronic device; and a first instruction receiving module, configured to receive the first a photographing instruction; the display module is configured to obtain the first frame exposure image data collected by the camera module, and according to the double exposure algorithm, the first frame exposure image data is at a first preset ratio and the camera module Each frame of the live view image data is synthesized in real time at a second preset ratio, and the combined exposure image data is displayed on the shooting preview interface; the sum of the first preset ratio and the second preset ratio is 1; a second instruction receiving module, configured to receive a second photographing instruction; a picture generating module, configured to acquire second frame exposure image data collected by the camera module, and expose the first frame exposure image data according to the double exposure algorithm Combining the first preset ratio and the second frame exposure image data in the second preset ratio, and generating according to the synthesized exposure image data Compressed coded pictures
  • a computer program comprising computer readable code that, when executed on an electronic device, causes the electronic device to perform the method described above.
  • a computer readable medium wherein the computer program described above is stored.
  • the method and device for taking a double exposure of an electronic device after running a shooting mode of the electronic device, first receiving a first photographing instruction, and then acquiring first frame exposure image data collected by the camera module, and According to the double exposure algorithm, the first frame exposure image data is synthesized in real time with the first preset ratio and each frame exposure image data of the camera module real-time framing, and the synthesized exposure image data is synthesized in real time.
  • the first frame exposure image data is at the first preset ratio and the first
  • the two-frame exposure image data is synthesized at a second preset ratio, and a compression-encoded picture is generated based on the synthesized exposure image data. So that the camera function of the electronic device can be directly started, and the double exposure effect is introduced into the photographing. The user can make the double exposure effect directly in the shooting preview interface and the film, which is intuitive and efficient; in addition, each frame of the exposed image data and the framed exposure image data of the framing are directly acquired by the camera module and are not compression-coded. Processing can ensure that the picture pixels are not lost and the preview fluency is not lost.
  • FIG. 1 is a flow chart showing the steps of an embodiment of a method for taking a double exposure of an electronic device according to the present invention
  • FIG. 2 is a flow chart showing the steps of an embodiment of a double exposure photographing method of another electronic device of the present invention
  • FIG. 3 is a structural block diagram of an embodiment of a double exposure photographing apparatus of an electronic device according to the present invention.
  • FIG. 4 is a structural block diagram of an embodiment of a double exposure photographing apparatus of another electronic device of the present invention.
  • FIG. 5 is a schematic diagram of a process of processing a first frame of exposed image data in a second embodiment of a secondary exposure photographing apparatus of an electronic device according to the present invention
  • FIG. 6 is a schematic diagram of a process of processing second frame exposure image data in a specific embodiment of a double exposure photographing apparatus of an electronic device according to the present invention.
  • Figure 7 shows schematically a block diagram of an electronic device for performing the method according to the invention.
  • Fig. 8 schematically shows a storage unit for holding or carrying program code implementing the method according to the invention.
  • the electronic device of the embodiment of the invention may be an electronic device having a photographing function, such as a mobile phone, a camera, a notebook computer or a tablet computer.
  • the double exposure photographing method of the electronic device may include the following steps:
  • step S1 runs the shooting mode of the electronic device.
  • step S2 receives the first photographing instruction.
  • the camera module may include a camera, an analog to digital conversion module, and the like.
  • the camera in the camera module in step S3 may be a front camera or a rear camera.
  • the camera module of the electronic device captures the light information in real time, that is, the camera module receives the optical information, and performs pre-processing such as analog-digital conversion on the received optical information to obtain the exposed image data.
  • the camera module collects the optical information, and performs pre-processing such as analog-to-digital conversion on the collected optical information to obtain the first frame exposure image data.
  • the first frame exposure image data may be YUV (YCrCb, which is a color coding method adopted by the European television system) image data, or RGB (representing the color of three channels of red, green, and blue). Image data, or image data in other formats.
  • YUV YCrCb, which is a color coding method adopted by the European television system
  • RGB red, green, and blue
  • step S3 may perform transparency processing on the first frame exposure image data according to a double exposure algorithm by using a software system of the electronic device to obtain a first preset ratio (according to the user Image data of transparency required to be preset.
  • the camera module continues to view the live view, that is, the camera module continues to receive the optical information, and performs pre-processing such as analog-to-digital conversion on the received optical information to obtain steps.
  • Each frame of the framing in S3 exposes image data.
  • the image data of each frame of the framing in step S3 may be image data in the YUV format, or image data in the RGB format, or image data in other formats.
  • each frame of the exposed image data of the live view of the camera module is subjected to transparency processing according to the double exposure algorithm to obtain image data of the second preset ratio of transparency, and then according to The double exposure algorithm combines the first frame exposure image data after the transparency processing and the exposure image data of each frame of the camera module framing after the transparency processing, and then displays the synthesized exposure image data on the shooting preview interface, and shoots Preview the interface to render the double exposure in real time. Therefore, the picture pixels can be guaranteed to be maximally lost, and the processing efficiency of the software system is high, thereby ensuring that the preview fluency is not lost, and the user experience is greatly improved.
  • step S4 receives the second photographing instruction.
  • the camera in the camera module in step S5 may be a front camera or a rear camera.
  • the camera module collects optical information, and performs pre-processing such as analog-to-digital conversion on the collected optical information to obtain second frame exposure image data.
  • the second frame exposure image data may be image data in a YUV format, or image data in an RGB format, or image data in other formats.
  • step S5 may perform transparency processing on the second frame exposure image data according to the double exposure algorithm by using a software system of the electronic device to obtain image data of a second preset ratio of transparency, and then transparency according to the double exposure algorithm.
  • the processed first frame exposure image data and the transparency processed second frame exposure image data are combined.
  • step S5 can be passed through the software department.
  • the synthesized exposure image data is compression-encoded into a picture of a preset format, and the picture is a picture having the current double exposure effect described above.
  • the preset format may be a JPEG (Joint Photographic Experts Group) format, a GIF (Graphics Interchange Format) format, or a PNG (Portable Network Graphic Format) format. And other formats.
  • step S5 Since the first frame exposure image data and the second frame exposure image data acquired by the camera module and not compressed and encoded are directly subjected to double exposure synthesis in step S5, and then the combined exposure image data is compression-encoded, thereby maximizing The degree ensures that the picture pixels are not lost, greatly improving the user experience.
  • the first photographing instruction is first received, and then the first frame exposure image data collected by the camera module is acquired, and the first frame exposure image is obtained according to the double exposure algorithm.
  • the data is synthesized in real time with the first preset ratio and each frame of the frame image of the camera module in real time, and the synthesized exposure image data is displayed on the shooting preview interface, and the second photo is received.
  • the first frame exposure image data is performed at a first preset ratio and the second frame exposure image data at a second preset ratio Synthesis, and generating a compression-coded picture based on the synthesized exposure image data.
  • the camera function of the electronic device is directly started, and the double exposure effect is introduced into the photographing, so that the user can directly display the double exposure effect when photographing the photographing preview interface and the sheet is intuitive and efficient; in addition, since the software system directly
  • Each frame of the image data acquired by the camera module and not compressed and encoded and the image data of each frame of the framing are processed to ensure that the picture pixels are not lost and the preview fluency is not lost, thereby improving the user experience.
  • the double exposure photographing method of the electronic device may include the following steps:
  • step S21 runs the shooting mode of the electronic device.
  • step S22 receives the first photographing instruction.
  • the camera module may include a camera, an analog to digital conversion module, and the like.
  • the camera in the camera module in step S23 may be a front camera or a rear camera.
  • the camera module of the electronic device captures the light information in real time, that is, the camera module receives the optical information, and performs pre-processing such as analog-digital conversion on the received optical information to obtain the exposed image data.
  • the camera module collects the optical information, and performs pre-processing such as analog-to-digital conversion on the collected optical information to obtain the first frame exposure image data.
  • the first frame exposure image data may be image data in a YUV format, or image data in an RGB format, or image data in other formats.
  • step S23 may perform transparency processing on the first frame exposure image data according to the double exposure algorithm by using a software system of the electronic device to obtain image data of transparency of the first preset ratio (which may be preset by the user as needed).
  • each frame of the framing in S23 exposes image data.
  • the image data of each frame of the framing in step S23 may be image data in the YUV format, or image data in the RGB format, or image data in other formats.
  • step S23 may perform transparency processing on each frame of the exposed image data of the live view of the camera module by using a software system of the electronic device according to the double exposure algorithm to obtain image data of a second preset ratio of transparency, and then according to The double exposure algorithm combines the first frame exposure image data after the transparency processing and the exposure image data of each frame of the camera module framing after the transparency processing, and then displays the synthesized exposure image data on the shooting preview interface, and shoots Preview the interface to render the double exposure in real time. Therefore, the picture pixels can be guaranteed to be maximally lost, and the processing efficiency of the software system is high, thereby ensuring that the preview fluency is not lost, and the user experience is greatly improved.
  • step S24 the first frame exposure image data may be buffered into the system memory, so that the software system can efficiently process the first frame exposure image data.
  • the user can freely set the first preset ratio by using a proportional adjustment button or a proportional selection list on the preview interface, so that the first preset ratio is adjusted correspondingly in step S25, and the second frame exposure image data is adjusted twice.
  • the proportion of exposure in the final film
  • step S26 receives the second photographing instruction.
  • the camera in the camera module in step S27 may be a front camera or a rear camera.
  • the camera module collects optical information, and performs pre-processing such as analog-to-digital conversion on the collected optical information to obtain second frame exposure image data.
  • the second frame exposure image data may be image data in a YUV format, or image data in an RGB format, or image data in other formats.
  • step S27 may perform transparency processing on the second frame exposure image data according to the double exposure algorithm by using a software system of the electronic device to obtain image data of a second preset ratio of transparency, and then transparency according to the double exposure algorithm.
  • the processed first frame exposure image data and the transparency processed second frame exposure image data are combined.
  • the synthesized exposed image data may be compression-encoded into a preset format by a software system, and the image is a picture having the current double exposure effect described above.
  • the preset format may be a format such as a JPEG format, a GIF format, or a PNG format.
  • step S27 directly performs double exposure synthesis on the first frame exposure image data and the second frame exposure image data which are acquired by the camera module and is not compression-coded, and then compression-encodes the synthesized exposure image data, thereby maximizing The degree ensures that the picture pixels are not lost, greatly improving the user experience.
  • Step S28 can buffer the second frame exposure image data into the system memory, so that the software system can efficiently process the second frame exposure image data.
  • the step S24 buffers the first frame of the exposed image data to the system memory
  • the step S28 caches the second frame of the exposed image data to the system memory
  • the step S29 may release the first frame of the exposed image data and the second frame of the exposed image data.
  • System memory which increases system efficiency.
  • the above double exposure algorithm may include the following calculation formula:
  • P is the synthesized exposure image data
  • P1 is the first frame exposure image data
  • P2 is the second frame exposure image data or the frame exposure image data of each frame of the live view of the camera module
  • M is the first preset ratio
  • (1-M) is the second preset ratio, 0 ⁇ M ⁇ 1.
  • the first photographing instruction is received, and then the first frame exposure image data collected by the camera module is acquired, and the first frame exposure image data is obtained according to the double exposure algorithm.
  • the image data of each frame of the first preset ratio and the live view of the camera module is synthesized in real time at a second preset ratio, and the synthesized exposure image data is displayed on the shooting preview interface, wherein when the camera module collects After the first frame is exposed to the image data, the first frame of the exposed image data is buffered, and then the first preset ratio is adjusted.
  • the camera module After receiving the second photographing instruction, acquiring the second frame exposure image data collected by the camera module, and according to the double exposure algorithm, exposing the first frame exposure image data to the first preset ratio and the second frame exposure image data The second preset ratio is combined, and a compression coded picture is generated according to the synthesized exposure image data, wherein the second frame exposure image data is buffered after the camera module acquires the second frame exposure image data.
  • the camera function of the electronic device is directly started, and the double exposure effect is introduced into the photographing, so that when the user takes a photograph, the photographing preview interface and the sheet directly present the double exposure effect, and the user can freely set the double exposure in the end.
  • the proportion of the film is intuitive and efficient.
  • the picture can be guaranteed to the maximum extent.
  • the pixel is not lost and the preview fluency is guaranteed to be lost, improving the user experience.
  • the double exposure photographing device of the electronic device may include:
  • the running module 31 is configured to run a shooting mode of the electronic device.
  • the first instruction receiving module 32 is configured to receive the first photographing instruction.
  • the display module 33 is configured to obtain the first frame exposure image data collected by the camera module, and expose the first frame exposure image data to each frame of the first preset ratio and the live view of the camera module according to the double exposure algorithm.
  • the image data is synthesized in real time in a second preset ratio, and the synthesized exposure image data is displayed on the shooting preview interface; the sum of the first preset ratio and the second preset ratio is 1.
  • the second instruction receiving module 34 is configured to receive the second photographing instruction.
  • the image generating module 35 is configured to acquire the second frame exposure image data collected by the camera module, and according to the double exposure algorithm, the first frame exposure image data is in the first preset ratio and the second frame exposure image data is in the second The preset ratio is combined, and a compression-coded picture is generated based on the synthesized exposure image data.
  • the first instruction receiving module receives the first camera instruction
  • the display module acquires the first frame exposure image data collected by the camera module, and according to the second
  • the exposure algorithm combines the first frame exposure image data with the first preset ratio and each frame exposure image data of the camera module real-time framing in real time at a second preset ratio, and displays the combined exposure image data in the shooting. Preview interface.
  • the image generating module acquires the second frame exposure image data collected by the camera module, and according to the double exposure algorithm, the first frame exposure image data is at the first preset ratio.
  • the second frame exposure image data is synthesized at a second preset ratio, and a compression coded picture is generated according to the synthesized exposure image data.
  • the camera function of the electronic device is directly started, and the double exposure effect is introduced into the photographing, so that the user can directly display the double exposure effect when photographing the photographing preview interface and the sheet is intuitive and efficient; in addition, since the software system directly
  • Each frame of the image data acquired by the camera module and not compressed and encoded and the image data of each frame of the framing are processed to ensure that the picture pixels are not lost and the preview fluency is not lost, thereby improving the user experience.
  • the double exposure photographing device of the electronic device may include:
  • the running module 41 is configured to run a shooting mode of the electronic device.
  • the first instruction receiving module 42 is configured to receive the first photographing instruction.
  • the display module 43 is configured to obtain the first frame exposure image data collected by the camera module, and expose the first frame exposure image data to each frame of the first preset ratio and the live view of the camera module according to the double exposure algorithm.
  • the image data is synthesized in real time in a second preset ratio, and the synthesized exposure image data is displayed on the shooting preview interface; the sum of the first preset ratio and the second preset ratio is 1.
  • the first data cache module 44 is configured to buffer the first frame exposure image data after the camera module acquires the first frame exposure image data.
  • the scaling module 45 is configured to adjust the first preset ratio.
  • the second instruction receiving module 46 is configured to receive the second photographing instruction.
  • the image generating module 47 is configured to acquire the second frame exposure image data collected by the camera module, and according to the double exposure algorithm, the first frame exposure image data is in the first preset ratio and the second frame exposure image data is in the second The preset ratio is combined, and a compression-coded picture is generated based on the synthesized exposure image data.
  • the second data cache module 48 is configured to buffer the second frame exposure image data after the camera module acquires the second frame exposure image data.
  • the data release module 49 is configured to release the first frame exposure image data and the second frame exposure image data.
  • the above double exposure algorithm may include the following calculation formula:
  • P is the synthesized exposure image data
  • P1 is the first frame exposure image data
  • P2 is the second frame exposure image data or the frame exposure image data of each frame of the live view of the camera module
  • M is the first preset ratio
  • (1-M) is the second preset ratio, 0 ⁇ M ⁇ 1.
  • the electronic device is a mobile phone.
  • the first data buffer module 44 first exposes the image data to the first frame. 2, the buffering is performed, and the display module 43 performs transparency processing on the first frame exposure image data 2 according to the double exposure algorithm by the software system 3 to obtain 50% (first preset ratio) transparency of the image data 4 without performing JPEG compression. Encoding and uploading.
  • the camera module 1 continues to view in real time, and the display module 43 passes the software system 3 according to the second
  • the sub-exposure algorithm performs transparency processing on each frame of the exposed image data of the framing to obtain image data of 50% (second preset ratio) transparency, and then exposes the image data of the first frame after transparency processing according to the double exposure algorithm.
  • the framed image data of each frame of the camera module after the transparency processing is synthesized in real time, and then the combined exposure image data is displayed on the shooting preview interface, and the user can adjust the first preset ratio by the scaling module 45.
  • the camera module 1 acquires the second frame exposure image data 6, and the second data cache module
  • the second frame exposure image data 6 is buffered, and the image generation module 47 performs transparency processing on the second frame exposure image data 6 according to the double exposure algorithm by the software system 3 to obtain an image of 50% transparency (second preset ratio).
  • the image data is compression-encoded into a JPEG format picture, and the camera APP is notified to save the picture and complete the picture.
  • the image data 4 of 50% transparency is displayed on the shooting preview interface 5 of the camera APP as shown in FIGS. 5 and 6.
  • the first instruction receiving module receives the first photographing instruction, and then the display module acquires the first frame exposure image data collected by the camera module, and according to the double exposure
  • the algorithm combines the first frame exposure image data with the first preset ratio and each frame exposure image data of the camera module real-time framing in real time at a second preset ratio, and displays the synthesized exposure image data in a shooting preview.
  • the interface wherein, after the camera module acquires the first frame exposure image data, the first data buffer module buffers the first frame exposure image data, and the proportional adjustment module adjusts the first preset ratio.
  • the image generating module acquires the second frame exposure image data collected by the camera module, and according to the double exposure algorithm, the first frame exposure image data is at the first preset ratio. And synthesizing the second frame exposure image data in a second preset ratio, and generating a compression coded picture according to the synthesized exposure image data, wherein, after the camera module collects the second frame exposure image data, the second data cache module buffers The second frame exposes the image data.
  • the proportion of the film is intuitive and efficient; in addition, because the camera module is directly captured and uncompressed by the software system
  • the encoded image data of each frame and the image data of each frame of the framing are processed to ensure that the picture pixels are not lost and the preview fluency is not lost, thereby improving the user experience.
  • the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components of an electronic device in accordance with embodiments of the present invention.
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • FIG. 7 shows an electronic device in which a double exposure photographing method of an electronic device according to the present invention can be implemented.
  • the electronic device conventionally includes a processor 710 and a computer program product or computer readable medium in the form of a memory 720.
  • Memory 720 can be an electronic memory such as a flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • Memory 720 has a memory space 730 for program code 731 for performing any of the method steps described above.
  • storage space 730 for program code may include various program code 731 for implementing various steps in the above methods, respectively.
  • the program code can be read from or written to one or more computer program products.
  • the computer program product includes program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
  • the computer program product is typically a portable or fixed storage unit as described with reference to FIG.
  • the storage unit may have a storage section, a storage space, and the like arranged similarly to the storage 720 in the electronic device of FIG.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit includes computer readable code 731', ie, code readable by a processor, such as 710, that when executed by an electronic device causes the electronic device to perform each of the methods described above step.

Abstract

提供一种电子设备的二次曝光拍照方法和装置,方法包括:运行电子设备的拍摄模式;接收第一拍照指令;根据二次曝光算法,将摄像头模组采集的第一帧曝光图像数据以第一预设比例和摄像头模组实时取景的每一帧曝光图像数据以第二预设比例实时进行合成,并将合成后的曝光图像数据显示在拍摄预览界面;接收第二拍照指令;根据二次曝光算法,将第一帧曝光图像数据以第一预设比例和摄像头模组采集的第二帧曝光图像数据以第二预设比例进行合成,并根据合成后的曝光图像数据生成压缩编码图片。实施例能实现拍摄预览界面和成片直接呈现二次曝光效果,并能自由设定二次曝光在成片中所占比重,且能最大程度保证图片像素和预览流畅度不损失。

Description

一种电子设备的二次曝光拍照方法和装置
本申请要求在2015年11月20日提交中国专利局、申请号为201510812715.1、发明名称为“一种电子设备的二次曝光拍照方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及电子设备技术领域,特别是涉及一种电子设备的二次曝光拍照方法和装置。
背景技术
二次曝光技术是胶片相机时代特有的拍照技术,其原理是对同一个底片进行两次或者多次曝光(多重曝光),从而在一张照片上呈现出两个场景叠加的效果。
现在拍照功能已成为智能手机的标配,但是目前还没有成熟的方案将二次曝光效果添加进手机的相机应用。如果用户想给照片添加二次曝光效果,则只能利用PhotoShop(一种图像处理软件)等后期处理软件进行二次曝光处理,效率很低,并且照片质量会有一定程度的损失,用户体验差。
发明内容
本发明实施例提供一种电子设备的二次曝光拍照方法和装置,用以解决目前没有成熟的方案将二次曝光效果添加进手机的相机应用,以及后期处理软件进行二次曝光处理时,效率很低,并且照片质量会有一定程度的损失,用户体验差的问题。
根据本发明的一个方面,本发明实施例公开了一种电子设备的二次曝光拍照方法,包括以下步骤:运行电子设备的拍摄模式;接收第一拍照指令;获取摄像头模组采集的第一帧曝光图像数据,并根据二次曝光算法,将所述第一帧曝光图像数据以第一预设比例和所述摄像头模组实时取景的每一帧曝光图像数据以第二预设比例实时进行合成,并将合成后的曝光图像数据显 示在拍摄预览界面;第一预设比例与第二预设比例之和为1;接收第二拍照指令;获取摄像头模组采集的第二帧曝光图像数据,并根据所述二次曝光算法,将所述第一帧曝光图像数据以所述第一预设比例和所述第二帧曝光图像数据以所述第二预设比例进行合成,并根据合成后的曝光图像数据生成压缩编码图片。
根据本发明的另一个方面,本发明实施例还公开了一种电子设备的二次曝光拍照装置,包括:运行模块,用于运行电子设备的拍摄模式;第一指令接收模块,用于接收第一拍照指令;显示模块,用于获取摄像头模组采集的第一帧曝光图像数据,并根据二次曝光算法,将所述第一帧曝光图像数据以第一预设比例和所述摄像头模组实时取景的每一帧曝光图像数据以第二预设比例实时进行合成,并将合成后的曝光图像数据显示在拍摄预览界面;第一预设比例与第二预设比例之和为1;第二指令接收模块,用于接收第二拍照指令;图片生成模块,用于获取摄像头模组采集的第二帧曝光图像数据,并根据所述二次曝光算法,将所述第一帧曝光图像数据以所述第一预设比例和所述第二帧曝光图像数据以所述第二预设比例进行合成,并根据合成后的曝光图像数据生成压缩编码图片。
根据本发明的又一个方面,提供了一种计算机程序,其包括计算机可读代码,当所述计算机可读代码在电子设备上运行时,导致所述电子设备执行上述的方法。
根据本发明的再一个方面,提供了一种计算机可读介质,其中存储了上述的计算机程序。
本发明的有益效果为:
本发明实施例提供的一种电子设备的二次曝光拍照方法和装置,在运行电子设备的拍摄模式后,首先接收第一拍照指令,进而获取摄像头模组采集的第一帧曝光图像数据,并根据二次曝光算法,将第一帧曝光图像数据以第一预设比例和摄像头模组实时取景的每一帧曝光图像数据以第二预设比例实时进行合成,并将合成后的曝光图像数据显示在拍摄预览界面,以及在接收第二拍照指令后,获取摄像头模组采集的第二帧曝光图像数据,并根据二次曝光算法,将第一帧曝光图像数据以第一预设比例和第二帧曝光图像数据以第二预设比例进行合成,并根据合成后的曝光图像数据生成压缩编码图片。从而实现直接从电子设备的相机功能入手,将二次曝光效果引入拍照中, 使得用户在拍照时,拍摄预览界面和成片直接呈现二次曝光效果,直观高效;另外,由于直接对摄像头模组采集且未经压缩编码的每帧曝光图像数据和取景的每帧曝光图像数据进行处理,可以最大程度保证图片像素不损失和保证预览流畅度不损失。
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明的一种电子设备的二次曝光拍照方法实施例的步骤流程图;
图2是本发明的另一种电子设备的二次曝光拍照方法实施例的步骤流程图;
图3是本发明的一种电子设备的二次曝光拍照装置实施例的结构框图;
图4是本发明的另一种电子设备的二次曝光拍照装置实施例的结构框图;
图5是本发明的一种电子设备的二次曝光拍照装置具体实施例的处理第一帧曝光图像数据过程的示意图;
图6是本发明的一种电子设备的二次曝光拍照装置具体实施例的处理第二帧曝光图像数据过程的示意图。
图7示意性地示出了用于执行根据本发明的方法的电子设备的框图;以及
图8示意性地示出了用于保持或者携带实现根据本发明的方法的程序代码的存储单元。
具体实施例
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明实施例的电子设备可以为手机、相机、笔记本电脑或平板电脑等具有拍照功能的电子设备。
参照图1,示出了本发明的一种电子设备的二次曝光拍照方法实施例的步骤流程图。该电子设备的二次曝光拍照方法可以包括以下步骤:
S1,运行电子设备的拍摄模式。
其中,当用户打开电子设备的相机功能后,步骤S1运行电子设备的拍摄模式。
S2,接收第一拍照指令。
在用户第一次点击拍摄按钮后,步骤S2接收第一拍照指令。
S3,获取摄像头模组采集的第一帧曝光图像数据,并根据二次曝光算法,将第一帧曝光图像数据以第一预设比例和摄像头模组实时取景的每一帧曝光图像数据以第二预设比例实时进行合成,并将合成后的曝光图像数据显示在拍摄预览界面;第一预设比例与第二预设比例之和为1。
其中,摄像头模组可以包括摄像头、模数转换模块等。当电子设备具有双摄像头时,步骤S3中摄像头模组内的摄像头可以为前置摄像头或后置摄像头。具体地,当用户打开相机功能时,电子设备的摄像头模组实时取景即摄像头模组接收光信息,并对接收的光信息进行模数转换等前期处理以获得曝光图像数据。其中,在步骤S2后,摄像头模组采集光信息,并对采集的光信息进行模数转换等前期处理后以获得第一帧曝光图像数据。其中,第一帧曝光图像数据可以为YUV(YCrCb,是被欧洲电视系统所采用的一种颜色编码方法)格式的图像数据,或RGB(代表红、绿、蓝三个通道的颜色)格式的图像数据,或其它格式的图像数据。
具体地,步骤S3可以通过电子设备的软件系统,根据二次曝光算法对第一帧曝光图像数据进行透明度处理,以获得第一预设比例(可由用户根据 需要进行预先设置)的透明度的图像数据。
具体地,步骤S3获取摄像头模组采集的第一帧曝光图像数据后,摄像头模组继续实时取景即摄像头模组继续接收光信息,并对接收的光信息进行模数转换等前期处理以获得步骤S3中取景的各帧曝光图像数据。其中,步骤S3中取景的每一帧曝光图像数据可以为YUV格式的图像数据,或RGB格式的图像数据,或其它格式的图像数据。
具体地,步骤S3可以通过电子设备的软件系统,根据二次曝光算法对摄像头模组实时取景的每一帧曝光图像数据进行透明度处理,以获得第二预设比例的透明度的图像数据,进而根据二次曝光算法将透明度处理后的第一帧曝光图像数据和透明度处理后的摄像头模组取景的每一帧曝光图像数据实时进行合成,然后将合成后的曝光图像数据显示在拍摄预览界面,拍摄预览界面即可实时呈现二次曝光效果。从而可以最大程度保证图片像素不损失,并且由于软件系统处理效率高,从而保证了预览流畅度不损失,极大地提高了用户体验。
S4,接收第二拍照指令。
具体地,当用户根据拍摄预览界面确定所需的二次曝光效果为当前二次曝光效果后,若用户第二次点击拍摄按钮,步骤S4接收第二拍照指令。
S5,获取摄像头模组采集的第二帧曝光图像数据,并根据所述二次曝光算法,将所述第一帧曝光图像数据以所述第一预设比例和所述第二帧曝光图像数据以所述第二预设比例进行合成,并根据合成后的曝光图像数据生成压缩编码图片。
其中,当电子设备具有双摄像头时,步骤S5中摄像头模组内的摄像头可以为前置摄像头或后置摄像头。具体地,步骤S4后,摄像头模组采集光信息,并对采集的光信息进行模数转换等前期处理后以获得第二帧曝光图像数据。其中,第二帧曝光图像数据可以为YUV格式的图像数据,或RGB格式的图像数据,或其它格式的图像数据。
具体地,步骤S5可以通过电子设备的软件系统,根据二次曝光算法对第二帧曝光图像数据进行透明度处理,以获得第二预设比例的透明度的图像数据,进而根据二次曝光算法将透明度处理后的第一帧曝光图像数据和透明度处理后的第二帧曝光图像数据进行合成。另外,步骤S5可以通过软件系 统对合成后的曝光图像数据进行压缩编码为预设格式的图片,该图片为具有上述当前二次曝光效果的图片。具体地,预设格式可以为JPEG(Joint Photographic Experts Group,联合图像专家小组)格式、GIF(Graphics Interchange Format,图像互换格式)格式或PNG((Portable Network Graphic Format,可移植网络图形格式)格式等格式。
由于步骤S5直接对摄像头模组采集且未经压缩编码的第一帧曝光图像数据和第二帧曝光图像数据进行二次曝光合成,然后再对合成后的曝光图像数据进行压缩编码,从而可以最大程度保证图片像素不损失,极大地提高了用户体验。
根据本发明实施例一,在运行电子设备的拍摄模式后,首先接收第一拍照指令,进而获取摄像头模组采集的第一帧曝光图像数据,并根据二次曝光算法,将第一帧曝光图像数据以第一预设比例和摄像头模组实时取景的每一帧曝光图像数据以第二预设比例实时进行合成,并将合成后的曝光图像数据显示在拍摄预览界面,以及在接收第二拍照指令后,获取摄像头模组采集的第二帧曝光图像数据,并根据二次曝光算法,将第一帧曝光图像数据以第一预设比例和第二帧曝光图像数据以第二预设比例进行合成,并根据合成后的曝光图像数据生成压缩编码图片。从而实现直接从电子设备的相机功能入手,将二次曝光效果引入拍照中,使得用户在拍照时,拍摄预览界面和成片直接呈现二次曝光效果,直观高效;另外,由于通过软件系统直接对摄像头模组采集且未经压缩编码的每帧曝光图像数据和取景的每帧曝光图像数据进行处理,可以最大程度保证图片像素不损失和保证预览流畅度不损失,提高了用户体验。
实施例二
参照图2,示出了本发明的另一种电子设备的二次曝光拍照方法实施例的步骤流程图。该电子设备的二次曝光拍照方法可以包括以下步骤:
S21,运行电子设备的拍摄模式。
其中,当用户打开电子设备的相机功能后,步骤S21运行电子设备的拍摄模式。
S22,接收第一拍照指令。
在用户第一次点击拍摄按钮后,步骤S22接收第一拍照指令。
S23,获取摄像头模组采集的第一帧曝光图像数据,并根据二次曝光算法,将第一帧曝光图像数据以第一预设比例和摄像头模组实时取景的每一帧曝光图像数据以第二预设比例实时进行合成,并将合成后的曝光图像数据显示在拍摄预览界面;第一预设比例与第二预设比例之和为1。
其中,摄像头模组可以包括摄像头、模数转换模块等。当电子设备具有双摄像头时,步骤S23中摄像头模组内的摄像头可以为前置摄像头或后置摄像头。具体地,当用户打开相机功能时,电子设备的摄像头模组实时取景即摄像头模组接收光信息,并对接收的光信息进行模数转换等前期处理以获得曝光图像数据。其中,在步骤S22后,摄像头模组采集光信息,并对采集的光信息进行模数转换等前期处理后以获得第一帧曝光图像数据。其中,第一帧曝光图像数据可以为YUV格式的图像数据,或RGB格式的图像数据,或其它格式的图像数据。
具体地,步骤S23可以通过电子设备的软件系统,根据二次曝光算法对第一帧曝光图像数据进行透明度处理,以获得第一预设比例(可由用户根据需要进行预先设置)的透明度的图像数据。
具体地,步骤S23获取摄像头模组采集的第一帧曝光图像数据后,摄像头模组继续实时取景即摄像头模组继续接收光信息,并对接收的光信息进行模数转换等前期处理以获得步骤S23中取景的各帧曝光图像数据。其中,步骤S23中取景的每一帧曝光图像数据可以为YUV格式的图像数据,或RGB格式的图像数据,或其它格式的图像数据。
具体地,步骤S23可以通过电子设备的软件系统,根据二次曝光算法对摄像头模组实时取景的每一帧曝光图像数据进行透明度处理,以获得第二预设比例的透明度的图像数据,进而根据二次曝光算法将透明度处理后的第一帧曝光图像数据和透明度处理后的摄像头模组取景的每一帧曝光图像数据实时进行合成,然后将合成后的曝光图像数据显示在拍摄预览界面,拍摄预览界面即可实时呈现二次曝光效果。从而可以最大程度保证图片像素不损失,并且由于软件系统处理效率高,从而保证了预览流畅度不损失,极大地提高了用户体验。
S24,当摄像头模组采集第一帧曝光图像数据后,缓存第一帧曝光图像 数据。
其中,步骤S24可以将第一帧曝光图像数据缓存到系统内存中,以便于软件系统可以高效的对第一帧曝光图像数据进行处理。
S25,调整第一预设比例。
其中,用户可以通过拍摄预览界面上的比例调整按钮或比例选择列表等自由设定第一预设比例,从而步骤S25相应的调整第一预设比例,实现调整第一帧曝光图像数据的二次曝光在最终成片中所占的比重,
S26,接收第二拍照指令。
具体地,当用户根据拍摄预览界面确定所需的二次曝光效果为当前二次曝光效果后,若用户第二次点击拍摄按钮,步骤S26接收第二拍照指令。
S27,获取摄像头模组采集的第二帧曝光图像数据,并根据二次曝光算法,将第一帧曝光图像数据以第一预设比例和第二帧曝光图像数据以第二预设比例进行合成,并根据合成后的曝光图像数据生成压缩编码图片。
其中,当电子设备具有双摄像头时,步骤S27中摄像头模组内的摄像头可以为前置摄像头或后置摄像头。具体地,步骤S26后,摄像头模组采集光信息,并对采集的光信息进行模数转换等前期处理后以获得第二帧曝光图像数据。其中,第二帧曝光图像数据可以为YUV格式的图像数据,或RGB格式的图像数据,或其它格式的图像数据。
具体地,步骤S27可以通过电子设备的软件系统,根据二次曝光算法对第二帧曝光图像数据进行透明度处理,以获得第二预设比例的透明度的图像数据,进而根据二次曝光算法将透明度处理后的第一帧曝光图像数据和透明度处理后的第二帧曝光图像数据进行合成。另外,步骤S27可以通过软件系统对合成后的曝光图像数据进行压缩编码为预设格式的图片,该图片为具有上述当前二次曝光效果的图片。具体地,预设格式可以为JPEG格式、GIF格式或PNG格式等格式。
由于步骤S27直接对摄像头模组采集且未经压缩编码的第一帧曝光图像数据和第二帧曝光图像数据进行二次曝光合成,然后再对合成后的曝光图像数据进行压缩编码,从而可以最大程度保证图片像素不损失,极大地提高了用户体验。
S28,当摄像头模组采集第二帧曝光图像数据后,缓存第二帧曝光图像 数据。
步骤S28可以将第二帧曝光图像数据缓存到系统内存中,以便于软件系统可以高效的对第二帧曝光图像数据进行处理。
S29,释放第一帧曝光图像数据和第二帧曝光图像数据。
其中,当步骤S24缓存第一帧曝光图像数据至系统内存,步骤S28缓存第二帧曝光图像数据至系统内存后,步骤S29可以释放第一帧曝光图像数据和第二帧曝光图像数据所占用的系统内存,从而可以提高系统效率。
具体地,上述二次曝光算法可以包括以下计算公式:
P=M*P1+(1-M)*P2
其中,P为合成后的曝光图像数据,P1为第一帧曝光图像数据,P2为第二帧曝光图像数据或摄像头模组实时取景的每一帧曝光图像数据,M为第一预设比例,(1-M)为第二预设比例,0<M<1。
根据本发明实施例二,在运行电子设备的拍摄模式后,接收第一拍照指令,进而获取摄像头模组采集的第一帧曝光图像数据,并根据二次曝光算法,将第一帧曝光图像数据以第一预设比例和摄像头模组实时取景的每一帧曝光图像数据以第二预设比例实时进行合成,并将合成后的曝光图像数据显示在拍摄预览界面,其中,当摄像头模组采集第一帧曝光图像数据后,缓存第一帧曝光图像数据,进而调整第一预设比例。以及在接收第二拍照指令后,获取摄像头模组采集的第二帧曝光图像数据,并根据二次曝光算法,将第一帧曝光图像数据以第一预设比例和第二帧曝光图像数据以第二预设比例进行合成,并根据合成后的曝光图像数据生成压缩编码图片,其中,当摄像头模组采集第二帧曝光图像数据后,缓存第二帧曝光图像数据。从而实现直接从电子设备的相机功能入手,将二次曝光效果引入拍照中,使得用户在拍照时,拍摄预览界面和成片直接呈现二次曝光效果,且用户可以自由设定二次曝光在最终成片中所占的比重,直观高效;另外,由于通过软件系统直接对摄像头模组采集且未经压缩编码的每帧曝光图像数据和取景的每帧曝光图像数据进行处理,可以最大程度保证图片像素不损失和保证预览流畅度不损失,提高了用户体验。
实施例三
参照图3,示出了本发明的一种电子设备的二次曝光拍照装置实施例的结构框图。该电子设备的二次曝光拍照装置可以包括:
运行模块31,用于运行电子设备的拍摄模式。
第一指令接收模块32,用于接收第一拍照指令。
显示模块33,用于获取摄像头模组采集的第一帧曝光图像数据,并根据二次曝光算法,将第一帧曝光图像数据以第一预设比例和摄像头模组实时取景的每一帧曝光图像数据以第二预设比例实时进行合成,并将合成后的曝光图像数据显示在拍摄预览界面;第一预设比例与第二预设比例之和为1。
第二指令接收模块34,用于接收第二拍照指令。
图片生成模块35,用于获取摄像头模组采集的第二帧曝光图像数据,并根据二次曝光算法,将第一帧曝光图像数据以第一预设比例和第二帧曝光图像数据以第二预设比例进行合成,并根据合成后的曝光图像数据生成压缩编码图片。
根据本发明实施例三,在运行模块运行电子设备的拍摄模式后,首先第一指令接收模块接收第一拍照指令,进而显示模块获取摄像头模组采集的第一帧曝光图像数据,并根据二次曝光算法,将第一帧曝光图像数据以第一预设比例和摄像头模组实时取景的每一帧曝光图像数据以第二预设比例实时进行合成,并将合成后的曝光图像数据显示在拍摄预览界面。以及在第二指令接收模块接收第二拍照指令后,图片生成模块获取摄像头模组采集的第二帧曝光图像数据,并根据二次曝光算法,将第一帧曝光图像数据以第一预设比例和第二帧曝光图像数据以第二预设比例进行合成,并根据合成后的曝光图像数据生成压缩编码图片。从而实现直接从电子设备的相机功能入手,将二次曝光效果引入拍照中,使得用户在拍照时,拍摄预览界面和成片直接呈现二次曝光效果,直观高效;另外,由于通过软件系统直接对摄像头模组采集且未经压缩编码的每帧曝光图像数据和取景的每帧曝光图像数据进行处理,可以最大程度保证图片像素不损失和保证预览流畅度不损失,提高了用户体验。
实施例四
参照图4,示出了本发明的另一种电子设备的二次曝光拍照装置实施例 的结构框图。该电子设备的二次曝光拍照装置可以包括:
运行模块41,用于运行电子设备的拍摄模式。
第一指令接收模块42,用于接收第一拍照指令。
显示模块43,用于获取摄像头模组采集的第一帧曝光图像数据,并根据二次曝光算法,将第一帧曝光图像数据以第一预设比例和摄像头模组实时取景的每一帧曝光图像数据以第二预设比例实时进行合成,并将合成后的曝光图像数据显示在拍摄预览界面;第一预设比例与第二预设比例之和为1。
第一数据缓存模块44,用于当摄像头模组采集第一帧曝光图像数据后,缓存第一帧曝光图像数据。
比例调整模块45,用于调整第一预设比例。
第二指令接收模块46,用于接收第二拍照指令。
图片生成模块47,用于获取摄像头模组采集的第二帧曝光图像数据,并根据二次曝光算法,将第一帧曝光图像数据以第一预设比例和第二帧曝光图像数据以第二预设比例进行合成,并根据合成后的曝光图像数据生成压缩编码图片。
第二数据缓存模块48,用于当摄像头模组采集第二帧曝光图像数据后,缓存第二帧曝光图像数据。
数据释放模块49,用于释放第一帧曝光图像数据和第二帧曝光图像数据。
具体地,上述二次曝光算法可以包括以下计算公式:
P=M*P1+(1-M)*P2
其中,P为合成后的曝光图像数据,P1为第一帧曝光图像数据,P2为第二帧曝光图像数据或摄像头模组实时取景的每一帧曝光图像数据,M为第一预设比例,(1-M)为第二预设比例,0<M<1。
在本发明的一个具体实施例中,电子设备为手机,参照图5,手机的摄像头模组1采集到第一帧曝光图像数据2之后,第一数据缓存模块44先对第一帧曝光图像数据2进行缓存,显示模块43通过软件系统3根据二次曝光算法对第一帧曝光图像数据2进行透明度处理,以获得50%(第一预设比例)的透明度的图像数据4,不进行JPEG压缩编码和上传。
此后摄像头模组1继续实时取景,显示模块43通过软件系统3根据二 次曝光算法对取景的每一帧曝光图像数据进行透明度处理,以获得50%(第二预设比例)的透明度的图像数据,进而根据二次曝光算法将透明度处理后的第一帧曝光图像数据和透明度处理后的摄像头模组取景的每一帧曝光图像数据实时进行合成,然后将合成后的曝光图像数据显示在拍摄预览界面,同时用户可以通过比例调整模块45调整第一预设比例。
当用户根据拍摄预览界面5确定所需的二次曝光效果为当前二次曝光效果后,用户点击拍摄按钮,参照图6,摄像头模组1采集第二帧曝光图像数据6,第二数据缓存模块48缓存第二帧曝光图像数据6,图片生成模块47通过软件系统3根据二次曝光算法对第二帧曝光图像数据6进行透明度处理,以获得50%的透明度(第二预设比例)的图像数据7,不进行JPEG压缩编码和上传,并根据二次曝光算法将透明度处理后的第一帧曝光图像数据2和透明度处理后的第二帧曝光图像数据6进行合成,并对合成后的曝光图像数据进行压缩编码为JPEG格式的图片,通知相机APP保存该图片,完成拍照。其中,50%的透明度的图像数据4显示在相机APP的拍摄预览界面5如图5和图6所示。
根据本发明实施例四,在运行模块运行电子设备的拍摄模式后,第一指令接收模块接收第一拍照指令,进而显示模块获取摄像头模组采集的第一帧曝光图像数据,并根据二次曝光算法,将第一帧曝光图像数据以第一预设比例和摄像头模组实时取景的每一帧曝光图像数据以第二预设比例实时进行合成,并将合成后的曝光图像数据显示在拍摄预览界面,其中,当摄像头模组采集第一帧曝光图像数据后,第一数据缓存模块缓存第一帧曝光图像数据,进而比例调整模块调整第一预设比例。以及在第二指令接收模块接收第二拍照指令后,图片生成模块获取摄像头模组采集的第二帧曝光图像数据,并根据二次曝光算法,将第一帧曝光图像数据以第一预设比例和第二帧曝光图像数据以第二预设比例进行合成,并根据合成后的曝光图像数据生成压缩编码图片,其中,当摄像头模组采集第二帧曝光图像数据后,第二数据缓存模块缓存第二帧曝光图像数据。从而实现直接从电子设备的相机功能入手,将二次曝光效果引入拍照中,使得用户在拍照时,拍摄预览界面和成片直接呈现二次曝光效果,且用户可以自由设定二次曝光在最终成片中所占的比重,直观高效;另外,由于通过软件系统直接对摄像头模组采集且未经压缩 编码的每帧曝光图像数据和取景的每帧曝光图像数据进行处理,可以最大程度保证图片像素不损失和保证预览流畅度不损失,提高了用户体验。
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的电子设备中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
例如,图7示出了可以实现根据本发明的电子设备的二次曝光拍照方法的电子设备。该电子设备传统上包括处理器710和以存储器720形式的计算机程序产品或者计算机可读介质。存储器720可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器720具有用于执行上述方法中的任何方法步骤的程序代码731的存储空间730。例如,用于程序代码的存储空间730可以包括分别用于实现上面的方法中的各种步骤的各个程序代码731。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样 的计算机程序产品通常为如参考图8所述的便携式或者固定存储单元。该存储单元可以具有与图7的电子设备中的存储器720类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括计算机可读代码731’,即可以由例如诸如710之类的处理器读取的代码,这些代码当由电子设备运行时,导致该电子设备执行上面所描述的方法中的各个步骤。
本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例”意味着,结合实施例描述的特定特征、结构或者特性包括在本发明的至少一个实施例中。此外,请注意,这里“在一个实施例中”的词语例子不一定全指同一个实施例。
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下被实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。
此外,还应当注意,本说明书中使用的语言主要是为了可读性和教导的目的而选择的,而不是为了解释或者限定本发明的主题而选择的。因此,在不偏离所附权利要求书的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。对于本发明的范围,对本发明所做的公开是说明性的,而非限制性的,本发明的范围由所附权利要求书限定。
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其 限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。

Claims (12)

  1. 一种电子设备的二次曝光拍照方法,其特征在于,包括以下步骤:
    运行电子设备的拍摄模式;
    接收第一拍照指令;
    获取摄像头模组采集的第一帧曝光图像数据,并根据二次曝光算法,将所述第一帧曝光图像数据以第一预设比例和所述摄像头模组实时取景的每一帧曝光图像数据以第二预设比例实时进行合成,并将合成后的曝光图像数据显示在拍摄预览界面;第一预设比例与第二预设比例之和为1;
    接收第二拍照指令;
    获取摄像头模组采集的第二帧曝光图像数据,并根据所述二次曝光算法,将所述第一帧曝光图像数据以所述第一预设比例和所述第二帧曝光图像数据以所述第二预设比例进行合成,并根据合成后的曝光图像数据生成压缩编码图片。
  2. 根据权利要求1所述的方法,其特征在于,还包括:
    当摄像头模组采集所述第一帧曝光图像数据后,缓存所述第一帧曝光图像数据;
    当摄像头模组采集所述第二帧曝光图像数据后,缓存所述第二帧曝光图像数据。
  3. 根据权利要求2所述的方法,其特征在于,在所述根据合成后的曝光图像数据生成压缩编码图片之后,还包括:
    释放所述第一帧曝光图像数据和所述第二帧曝光图像数据。
  4. 根据权利要求1所述的方法,其特征在于,在所述接收第二拍照指令之前,还包括:
    调整所述第一预设比例。
  5. 根据权利要求1所述的方法,其特征在于,所述二次曝光算法包括以下计算公式:
    P=M*P1+(1-M)*P2
    其中,P为所述合成后的曝光图像数据,P1为所述第一帧曝光图像数据,P2为所述第二帧曝光图像数据或所述摄像头模组实时取景的每一帧曝 光图像数据,M为所述第一预设比例,(1-M)为所述第二预设比例,0<M<1。
  6. 一种电子设备的二次曝光拍照装置,其特征在于,包括:
    运行模块,用于运行电子设备的拍摄模式;
    第一指令接收模块,用于接收第一拍照指令;
    显示模块,用于获取摄像头模组采集的第一帧曝光图像数据,并根据二次曝光算法,将所述第一帧曝光图像数据以第一预设比例和所述摄像头模组实时取景的每一帧曝光图像数据以第二预设比例实时进行合成,并将合成后的曝光图像数据显示在拍摄预览界面;第一预设比例与第二预设比例之和为1;
    第二指令接收模块,用于接收第二拍照指令;
    图片生成模块,用于获取摄像头模组采集的第二帧曝光图像数据,并根据所述二次曝光算法,将所述第一帧曝光图像数据以所述第一预设比例和所述第二帧曝光图像数据以所述第二预设比例进行合成,并根据合成后的曝光图像数据生成压缩编码图片。
  7. 根据权利要求6所述的装置,其特征在于,还包括:
    第一数据缓存模块,用于当摄像头模组采集所述第一帧曝光图像数据后,缓存所述第一帧曝光图像数据;
    第二数据缓存模块,用于当摄像头模组采集所述第二帧曝光图像数据后,缓存所述第二帧曝光图像数据。
  8. 根据权利要求7所述的装置,其特征在于,还包括:
    数据释放模块,用于在所述图片生成模块根据合成后的曝光图像数据生成压缩编码图片之后,释放所述第一帧曝光图像数据和所述第二帧曝光图像数据。
  9. 根据权利要求6所述的装置,其特征在于,在所述第二显示模块之前,还包括:
    比例调整模块,用于在所述第二指令接收模块之前,调整所述第一预设比例。
  10. 根据权利要求6所述的装置,其特征在于,所述二次曝光算法包括以下计算公式:
    P=M*P1+(1-M)*P2
    其中,P为所述合成后的曝光图像数据,P1为所述第一帧曝光图像数据,P2为所述第二帧曝光图像数据或所述摄像头模组实时取景的每一帧曝光图像数据,M为所述第一预设比例,(1-M)为所述第二预设比例,0<M<1。
  11. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在电子设备上运行时,导致所述电子设备执行根据权利要求1-5中的任一个所述的电子设备的二次曝光拍照方法。
  12. 一种计算机可读介质,其中存储了如权利要求11所述的计算机程序。
PCT/CN2016/087338 2015-11-20 2016-06-27 一种电子设备的二次曝光拍照方法和装置 WO2017084342A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/232,753 US20170150041A1 (en) 2015-11-20 2016-08-09 Double-exposure photographing method and apparatus of electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510812715.1A CN105657247A (zh) 2015-11-20 2015-11-20 一种电子设备的二次曝光拍照方法和装置
CN201510812715.1 2015-11-20

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/232,753 Continuation US20170150041A1 (en) 2015-11-20 2016-08-09 Double-exposure photographing method and apparatus of electronic device

Publications (1)

Publication Number Publication Date
WO2017084342A1 true WO2017084342A1 (zh) 2017-05-26

Family

ID=56482172

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/087338 WO2017084342A1 (zh) 2015-11-20 2016-06-27 一种电子设备的二次曝光拍照方法和装置

Country Status (3)

Country Link
US (1) US20170150041A1 (zh)
CN (1) CN105657247A (zh)
WO (1) WO2017084342A1 (zh)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105657247A (zh) * 2015-11-20 2016-06-08 乐视移动智能信息技术(北京)有限公司 一种电子设备的二次曝光拍照方法和装置
CN106851125B (zh) * 2017-03-31 2020-10-16 努比亚技术有限公司 一种移动终端及多重曝光拍摄方法
CN109981992B (zh) * 2017-12-28 2021-02-23 周秦娜 一种在高环境光变化下提升测距准确度的控制方法及装置
CN109120853B (zh) * 2018-09-27 2020-09-08 维沃移动通信有限公司 一种长曝光图像拍摄方法及终端
CN110545385A (zh) * 2019-09-23 2019-12-06 维沃移动通信有限公司 一种图像处理方法及终端设备
CN110969587A (zh) * 2019-11-29 2020-04-07 联想(北京)有限公司 一种图像采集方法、装置及电子设备
CN111107267A (zh) * 2019-12-30 2020-05-05 广州华多网络科技有限公司 图像处理方法、装置、设备及存储介质
CN111479059B (zh) * 2020-04-15 2021-08-13 Oppo广东移动通信有限公司 拍照处理方法、装置、电子设备及存储介质
US11477392B2 (en) * 2020-06-19 2022-10-18 Apple Inc. Dynamic image processing based on frequency of camera shutter activation

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11298764A (ja) * 1998-04-14 1999-10-29 Fuji Photo Film Co Ltd 合成画像表示機能付きデジタルスチルカメラ
JP2012170153A (ja) * 2012-06-01 2012-09-06 Canon Inc 撮像装置及びその制御方法
CN102761695A (zh) * 2011-04-28 2012-10-31 佳能株式会社 摄像设备及其控制方法
CN102761690A (zh) * 2011-04-28 2012-10-31 佳能株式会社 摄像设备及其控制方法
CN103856718A (zh) * 2014-03-26 2014-06-11 深圳市中兴移动通信有限公司 照片合成的方法及装置
CN105657247A (zh) * 2015-11-20 2016-06-08 乐视移动智能信息技术(北京)有限公司 一种电子设备的二次曝光拍照方法和装置

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004048455A (ja) * 2002-07-12 2004-02-12 Niles Co Ltd 撮像システム
KR100488728B1 (ko) * 2003-05-15 2005-05-11 현대자동차주식회사 자동차의 2중 노출 카메라 시스템 및 영상 취득방법
US20080088718A1 (en) * 2006-10-17 2008-04-17 Cazier Robert P Template Creator For Digital Cameras
US8477217B2 (en) * 2008-06-30 2013-07-02 Sony Corporation Super-resolution digital zoom
JP5574792B2 (ja) * 2010-04-13 2014-08-20 キヤノン株式会社 撮影装置
JP5895409B2 (ja) * 2011-09-14 2016-03-30 株式会社リコー 撮像装置
JP5940394B2 (ja) * 2012-07-02 2016-06-29 オリンパス株式会社 撮像装置
US9525825B1 (en) * 2012-09-25 2016-12-20 Amazon Technologies, Inc. Delayed image data processing
US9185284B2 (en) * 2013-09-06 2015-11-10 Qualcomm Incorporated Interactive image composition
KR102138521B1 (ko) * 2013-12-12 2020-07-28 엘지전자 주식회사 이동단말기 및 그 제어방법
JP2015177221A (ja) * 2014-03-13 2015-10-05 オリンパス株式会社 撮像装置、撮像方法、データ記録装置、及びプログラム

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11298764A (ja) * 1998-04-14 1999-10-29 Fuji Photo Film Co Ltd 合成画像表示機能付きデジタルスチルカメラ
CN102761695A (zh) * 2011-04-28 2012-10-31 佳能株式会社 摄像设备及其控制方法
CN102761690A (zh) * 2011-04-28 2012-10-31 佳能株式会社 摄像设备及其控制方法
JP2012170153A (ja) * 2012-06-01 2012-09-06 Canon Inc 撮像装置及びその制御方法
CN103856718A (zh) * 2014-03-26 2014-06-11 深圳市中兴移动通信有限公司 照片合成的方法及装置
CN105657247A (zh) * 2015-11-20 2016-06-08 乐视移动智能信息技术(北京)有限公司 一种电子设备的二次曝光拍照方法和装置

Also Published As

Publication number Publication date
CN105657247A (zh) 2016-06-08
US20170150041A1 (en) 2017-05-25

Similar Documents

Publication Publication Date Title
WO2017084342A1 (zh) 一种电子设备的二次曝光拍照方法和装置
US20160156847A1 (en) Enriched digital photographs
JP6306845B2 (ja) 撮像装置及びその制御方法
WO2016011877A1 (zh) 拍摄光绘视频的方法和移动终端、存储介质
JP2003199034A (ja) パノラマ画像を形成するための事後的ピクチャスティッチ用スチルピクチャフォーマット
US9077894B2 (en) Method and apparatus for capturing still image during photographing or reproduction of moving image
WO2017076000A1 (zh) 夜景拍照方法、装置及移动终端
WO2018098677A1 (zh) 处理视频流的方法和终端
JP2008217785A (ja) 表示コントローラおよび画像データ変換方法
WO2023160295A1 (zh) 视频处理方法和装置
TWI520604B (zh) 攝像裝置及其影像預覽系統及影像預覽方法
JP2018535572A (ja) カメラプレビュー
CN103312981A (zh) 一种多照片合成拍照方法及拍照装置
WO2017076041A1 (zh) 防抖拍照方法、装置及移动终端
CN110913118B (zh) 视频处理方法、装置及存储介质
JP2007281843A (ja) 撮像装置及び画像処理方法
US20090214138A1 (en) Image processing method, and processing methods for digital photo frame and interactive image process
JP2007226606A (ja) 撮像装置、画像出力方法、再生装置、プログラム、及び記憶媒体
CN111034187A (zh) 动态图像的生成方法、装置、可移动平台和存储介质
US9661217B2 (en) Image capturing apparatus and control method therefor
JP2010231668A (ja) アニメーション自動作成システム
WO2024082863A1 (zh) 图像处理方法及电子设备
JP5561044B2 (ja) 撮像装置、撮像方法及びプログラム
JP2012039558A (ja) 基準画像特定装置、及び、プログラム
JP2007088579A (ja) 撮像装置、撮像方法、及びプログラム

Legal Events

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

Ref document number: 16865522

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16865522

Country of ref document: EP

Kind code of ref document: A1