WO2016000514A1 - 拍摄星云视频的方法和装置和计算机存储介质 - Google Patents

拍摄星云视频的方法和装置和计算机存储介质 Download PDF

Info

Publication number
WO2016000514A1
WO2016000514A1 PCT/CN2015/081015 CN2015081015W WO2016000514A1 WO 2016000514 A1 WO2016000514 A1 WO 2016000514A1 CN 2015081015 W CN2015081015 W CN 2015081015W WO 2016000514 A1 WO2016000514 A1 WO 2016000514A1
Authority
WO
WIPO (PCT)
Prior art keywords
nebula
shooting
image
video
photographing
Prior art date
Application number
PCT/CN2015/081015
Other languages
English (en)
French (fr)
Inventor
刘林汶
Original Assignee
努比亚技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 努比亚技术有限公司 filed Critical 努比亚技术有限公司
Publication of WO2016000514A1 publication Critical patent/WO2016000514A1/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/10Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths

Definitions

  • the present invention relates to the field of camera technology, and in particular, to a method and apparatus for capturing a nebula video and a computer storage medium.
  • Nebula shooting is mainly used to shoot starlight in the sky. For photographers, nebula shooting is a very important experience. The current Nebula shooting can only take photos, that is, only a static image showing the starry sky is obtained, and it is impossible to capture a dynamic video that can show the change process of the starry sky. For example, the change of the stars in the sky is changed from less to more. More changes in the process or drift process.
  • Embodiments of the present invention are directed to providing a method and apparatus for capturing a nebula video, aiming at realizing the shooting of the nebula video, satisfying the personalized needs of the user, and improving the user experience.
  • the embodiment of the invention provides a method for capturing a nebula video, comprising the steps of:
  • the encoded nebula image data is generated as a video file.
  • the acquiring nebula shooting parameters includes:
  • the acquiring nebula shooting parameters includes:
  • the preferred parameter training is performed to obtain preferred nebula shooting parameters.
  • the performing the preferred parameter training includes:
  • the combination of the user-selected photo or the highest-rated photo is taken as the preferred nebula shooting parameter.
  • the step of encoding the captured nebula image further includes:
  • Special effects processing is performed on the captured nebula image, the special effect processing including basic effect processing, filter effect processing, and/or special scene effect processing.
  • the embodiment of the invention simultaneously provides a device for capturing a nebula video, comprising a shooting parameter acquisition module, an image acquisition module and a video generation module, wherein:
  • a shooting parameter acquisition module configured to acquire a nebula shooting parameter
  • An image acquisition module configured to continuously or intermittently acquire a nebula image according to the nebula shooting parameters
  • the video generation module is configured to capture the collected nebula image, encode the captured nebula image, and generate the encoded nebula image data into a video file.
  • the shooting parameter acquisition module is configured to: acquire a preset nebula shooting Parameters, or get the Nebula shooting parameters manually set by the user.
  • the shooting parameter acquisition module is configured to perform preferred parameter training to obtain preferred nebula shooting parameters.
  • the shooting parameter obtaining module is configured to:
  • the combination of the user-selected photo or the highest-rated photo is taken as the preferred nebula shooting parameter.
  • the special effect processing module is further configured to: perform special effect processing on the captured nebula image, where the special effect processing includes basic effect processing, filter effect processing, and/or special scene effect processing.
  • the embodiment of the invention further relates to a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to perform at least one of the foregoing methods.
  • a method for photographing a nebula video obtains a nebula shooting parameter, collects a nebula image according to a nebula shooting parameter, and captures a nebula image at different moments, and then encodes the nebula image at different moments, and finally Synthesized into a video file to enable the shooting of Nebula video.
  • the user can use the camera to capture a video showing the process of changing the starry sky, or apply to a similar application scenario, which satisfies the personalized needs of the user and improves the user experience.
  • the nebula image is encoded while shooting, there is no need to store the generated nebula image, so the video file obtained in the final shooting is not large in size and does not occupy too much storage space.
  • the shooting parameters are combined to take multiple samples for the user to select, so as to obtain the best nebula shooting parameters that suit the user's preferences and suit the current shooting scene, and collect better-effect nebula images. The resulting nebula video is better, and the user is shot. Satisfied works.
  • FIG. 1 is a flow chart provided by a first embodiment of a method for photographing a nebula video according to the present invention
  • FIG. 2 is a flow chart provided by a second embodiment of a method for photographing a nebula video according to the present invention
  • FIG. 3 is a structural block diagram of a first embodiment of the apparatus for photographing a nebula video according to the present invention
  • FIG. 4 is a structural block diagram of a second embodiment of the apparatus for photographing a nebula video according to the present invention.
  • FIG. 5 is a structural block diagram of a third embodiment of the apparatus for photographing a nebula video according to the present invention.
  • FIG. 6 is a schematic diagram of an electrical structure of an apparatus for capturing a nebula video according to an embodiment of the present invention.
  • the method for photographing a nebula video includes the following steps:
  • Step S101 After the shooting starts, acquire a preset or user manually set nebula shooting parameter
  • the parameters suitable for nebula shooting can be preset as the optimal or default nebula shooting parameters before shooting.
  • the nebula shooting parameters mainly include ISO, exposure time, white balance and other parameters.
  • the optimal nebula shooting parameters are: ISO3200, exposure time 1min, white balance is color temperature value 4500.
  • Nebula shooting parameters can be factory set or customized by the user before shooting. After starting the camera, you can enter the Nebula video shooting mode by default, or you can provide options for the user to manually enter the Nebula video shooting mode. In the nebula shooting mode, the camera automatically acquires preset Nebula shooting parameters without the user having to manually set the parameters.
  • the camera can also automatically recommend the default Nebula shooting parameters to the user first. To display, if the user is satisfied with the default parameters, you can directly select OK and shoot with the default parameters; if the user has some experience with the Nebula shooting and is not satisfied with the default parameters, you can manually adjust the settings. After the setting is completed, select OK, and the camera acquires the nebula shooting parameters manually set by the user.
  • Step S102 collecting continuous or intermittent acquisition nebula images according to nebula shooting parameters
  • the camera can continuously capture nebula images according to nebula shooting parameters or acquire a nebula image every preset time.
  • the photographing device collects image data through the camera, and processes the collected image data according to preset nebula shooting parameters such as ISO, exposure time, white balance, etc., to generate a nebula image (or photo), and the nebula image is continuously generated. Or generate a picture every preset time, and preferably display the generated nebula image on the display for the user to preview.
  • Step S103 Grab the collected nebula image, and encode the captured nebula image.
  • nebula image For example, you can continuously capture a nebula image or an intermittent capture of a nebula image.
  • Continuously capturing the image of the nebula means that each time a nebula image is generated, one image is captured and encoded, that is, all the generated nebula images are used as the material of the composite video.
  • Generating the nebula image and capturing the nebula image for encoding are synchronized by two threads. Since the nebula image is encoded while shooting, there is no need to store the generated nebula image.
  • Interval grabbing refers to the selective capture of part of the nebula image as a composite video material.
  • the interval mode can be a manual interval mode or an automatic interval mode.
  • the manual interval mode refers to providing an operation interface for the user to click to trigger the captured image data, such as clicking the screen to capture the currently generated nebula image (the preview image is present when there is a preview);
  • the automatic interval mode refers to Grab the image of the nebula at a preset time interval, that is, grab a nebula image every preset time. For example, you can capture a nebula image every 1 ⁇ 2Min, which is the currently generated nebula image.
  • the captured nebula image is video-encoded and processed into common video encodings such as MPEG-4, H264, H263, and VP8, in preparation for subsequent generation of video files, and for nebula images.
  • common video encodings such as MPEG-4, H264, H263, and VP8
  • the method of performing the encoding process is the same as that of the prior art, and details are not described herein again.
  • grabbing a nebula image every preset time can also be expressed as capturing a nebula image every time the camera captures a preset nebula image.
  • Step S104 When the shooting ends, the encoded nebula image data is generated as a video file.
  • Video file formats include, but are not limited to, mp4, 3gp, avi, rmvb, and the like.
  • the nebula images are collected according to the nebula shooting parameters, and the nebula images at different moments are captured, and the nebula images at different moments are encoded and finally synthesized into video files to realize the shooting of the nebula video.
  • the user can use the camera to capture the video showing the change process of the starry sky, such as the change process of the stars in the sky from less to more (or from less to less), or the change process of the clouds in the sky from more to less, from thick to thin. Or the drifting process satisfies the user's individual needs and enhances the user experience.
  • the nebula image is encoded while shooting, there is no need to store the generated nebula image, so the video file obtained in the final shooting is not large in size and does not occupy too much storage space.
  • the method for photographing a nebula video includes the following steps:
  • Step S201 After the shooting starts, perform the preferred parameter training to obtain the preferred nebula shooting parameters.
  • the camera After entering the nebula video shooting mode, the camera provides an interface for the user to select a range of shooting parameters, such as setting the shooting parameter range: ISO (ISO3200 ⁇ 500), exposure time (30s ⁇ 2min), white balance (color temperature value 4500 ⁇ 300) and so on.
  • the camera captures the user-selected shot
  • at least two sets of shooting parameters are obtained according to the shooting parameter range, and a photo is taken according to each shooting parameter combination in the same scene, and at least two photos are taken, and the user selects one of the best photos after viewing the taken photo. Photos, or rate each photo.
  • the photographing device combines the photographing parameters corresponding to the photograph selected by the user or the photograph with the highest score as the preferred nebula photographing parameters, and acquires the preferred nebula photographing parameters.
  • the user can also directly input or set at least two sets of shooting parameter combinations for the camera to perform the preferred parameter training, and the photographing device takes at least two photos according to different shooting parameter combinations for the user to select or score.
  • the shooting device can also perform the preferred parameter training according to the preset or default shooting parameter range or the combination of shooting parameters, and automatically take multiple photos for the user to select or score.
  • Step S202 collecting continuous or intermittent acquisition nebula images according to nebula shooting parameters
  • Step S203 Grab the collected nebula image, and encode the captured nebula image.
  • Step S204 When the shooting ends, the encoded nebula image data is generated as a video file.
  • the preferred parameter training by using the preferred parameter training, multiple samples are taken by different shooting parameter combinations for the user to select, so as to obtain the best nebula shooting parameters that meet the user's preference and suit the current shooting scene, and collect a better nebula image.
  • the resulting Nebula video works better and captures the work that satisfies the user.
  • the photographing device after acquiring the nebula shooting parameters, the photographing device also detects external environmental parameters (such as detecting ambient light brightness, color temperature, etc.) or/and camera parameters (different camera lens parameters of the shooting nebula video), according to Fine-tune the nebula shooting parameters with external environmental parameters or/and camera parameters and preset algorithms or rules to make the nebula shooting parameters match the current shooting scene or / And the current camera parameters to get better effect nebula images.
  • external environmental parameters such as detecting ambient light brightness, color temperature, etc.
  • camera parameters different camera lens parameters of the shooting nebula video
  • special effects processing is also performed, the special effect processing including basic effect processing and filter effect.
  • Processing and/or special scene effects processing, etc. the basic effect processing, including noise reduction, brightness, chromaticity and other processing; filter effect processing, including sketch, negative, black and white processing; special scene effect processing, including processing for common weather, starry sky and so on.
  • the method further includes: turning on the audio device, receiving the audio data; and encoding the audio data.
  • audio data There are two main ways to source audio data: microphone capture or custom audio files.
  • the audio source is a custom audio file
  • the audio file is first decoded to obtain the original audio data.
  • special effects processing is also performed on the received audio data, and the special effect processing includes special effect recording, variable sound, pitch change, and/or shifting.
  • the specific way of generating the video file is: according to the user shooting end instruction, the encoded image data and the encoded audio data are generated according to the video file format set by the user. Video file.
  • the front camera is used to collect the nebula image. Since the image captured by the front camera is mirrored with the actual image, the collected nebula image is mirrored and the mirrored nebula is captured. Image to synthesize video files. Since the front camera is shooting with the screen facing up, the user can easily see the preview of the nebula image, so it is more convenient for the user to use the manual interval mode to capture the currently previewed nebula image.
  • the manual interval mode priority function can be set even if the automatic interval mode is currently set, but during the shooting, if the user has a picture of a nebula on the current preview interface, but it is just in the automatic interval capture, this The user can manually capture the nebula image as a video composite material, such as clicking or swiping the screen to capture the currently displayed composite image.
  • the uncaptured nebula image is preferably not stored, so as to save the storage space of the imaging device.
  • the apparatus for photographing a nebula video may be a digital camera, or may be a mobile device such as a mobile phone or a tablet computer having a camera function, and the device includes a capture parameter acquisition. Module, image acquisition module and video generation module.
  • Shooting parameter acquisition module configured to obtain nebula shooting parameters.
  • the shooting parameter acquisition module can automatically obtain the preset nebula shooting parameters, without the user manually setting parameters, so that non-professional users can also perform nebula video shooting.
  • the nebula shooting parameters mainly include parameters such as ISO, exposure time, and white balance.
  • the optimal nebula shooting parameters are: ISO3200, exposure time 1min, white balance is color temperature value 4500.
  • Nebula shooting parameters can be factory set or customized by the user before shooting.
  • the shooting parameter acquisition module can also automatically recommend the default Nebula shooting parameters to the user and display them. If the user is satisfied with the default parameters, the user can directly select and determine the default parameters. If the user has a certain shooting on the nebula Experience, if you are not satisfied with the default parameters, you can manually adjust the settings. After the setting is completed, select OK.
  • the shooting parameter acquisition module obtains the nebula shooting parameters manually set by the user. Therefore, it is convenient for users who do not have experience in the shooting of the nebula to realize fool-type or one-button shooting, and the user who has certain experience can manually adjust the shooting parameters to obtain the best nebula shooting parameters.
  • the shooting parameter acquisition module can also perform preferred parameter training to obtain preferred nebula shooting parameters.
  • the shooting parameter acquisition module provides an interface for the user to select a range of shooting parameters, such as setting the shooting parameter range: ISO (ISO 3200 ⁇ 500), exposure time (30 s ⁇ 2 min), white balance (color The temperature is 4500 ⁇ 300).
  • ISO ISO 3200 ⁇ 500
  • exposure time 30 s ⁇ 2 min
  • white balance color The temperature is 4500 ⁇ 300.
  • the shooting parameter acquisition module obtains the shooting parameter range selected by the user, at least two sets of shooting parameter combinations are obtained according to the shooting parameter range, and a photo is taken according to each shooting parameter combination in the same scene, and at least two photos are taken, and the user views the shooting. After the photos, choose the best photo or rate each photo.
  • the shooting parameter acquisition module combines the shooting parameters corresponding to the user-selected photo or the highest-rated photo as the preferred nebula shooting parameters, and obtains the preferred nebula shooting parameters.
  • the user can directly input or set at least two sets of shooting parameter combinations for the shooting parameter acquisition module to perform preferred parameter training, and the shooting parameter acquisition module takes at least two photos for user selection or scoring according to different shooting parameter combinations.
  • the shooting parameter acquisition module may also perform preferred parameter training according to a preset or default shooting parameter range or a combination of shooting parameters, and automatically take multiple photos for user selection or scoring. Therefore, through the preferred parameter training, multiple samples are taken by different shooting parameter combinations for the user to select, and the best Nebula shooting parameters that meet the user's preference and suit the current shooting scene are obtained, and the works satisfying the user are photographed.
  • Image acquisition module configured to continuously or intermittently capture nebula images based on nebula shooting parameters
  • the image acquisition module can continuously collect nebula images according to nebula shooting parameters or acquire a nebula image every preset time. Specifically, the image acquisition module collects image data through the camera, and processes the collected image data according to preset ISO, exposure time, white balance and other nebula shooting parameters to generate a nebula image (or photo), and the nebula image is continuous. Generate or generate one at a preset time, and preferably display the generated nebula image through the display for the user to preview.
  • the video generation module is configured to: capture the collected nebula image, encode the captured nebula image, and generate the encoded nebula image data into a video file.
  • the video generation module can continuously capture nebula images or intermittently grab the nebula images. Continuously capturing the image of the nebula means that each time a nebula image is generated, one image is captured and encoded, that is, all the generated nebula images are used as the material of the composite video. Generate nebula images and crawl The encoding process of the nebula image is performed synchronously by two threads. Since the nebula image is encoded while being photographed, there is no need to store the generated nebula image.
  • Interval grabbing refers to the selective capture of part of the nebula image as a composite video material.
  • the interval mode can be a manual interval mode or an automatic interval mode.
  • the manual interval mode refers to providing an operation interface for the user to click to trigger the captured image data, such as clicking the screen to capture the currently generated nebula image (the preview image is present when there is a preview);
  • the automatic interval mode refers to Grab the image of the nebula at a preset time interval, that is, grab a nebula image every preset time.
  • the video generation module can capture a nebula image every 1 ⁇ 2Min, which is the currently generated nebula image.
  • the captured Nebula image is subjected to video encoding processing, and processed into common video encodings such as MPEG-4, H264, H263, and VP8, in preparation for subsequent generation of video files, and encoding and processing of nebula images and prior art. The same, no longer repeat here.
  • capturing a nebula image every preset time can also be expressed as an image of the nebula captured by the image acquisition module after each preset of the nebula image is acquired.
  • the video generation module When the shooting ends, the video generation module generates the encoded nebula image data as a video file.
  • the format of the generated video file which can be specified by the user.
  • Video file formats include, but are not limited to, mp4, 3gp, avi, rmvb, and the like.
  • the apparatus for photographing a nebula video also differs from the first embodiment in that a special effect processing module is added for: capturing the video generation module.
  • the nebula image is processed for special effects, and the effect processing is completed and then returned to the video generation module for encoding processing.
  • the special effect processing includes basic effect processing, filter effect processing, and/or special scene effect processing, and the like. Among them, the basic effect processing, including noise reduction, brightness, chromaticity and other processing; filter effect processing, including sketch, negative, black and white processing; special scene effects Rational, including processing for common weather, starry sky, etc.
  • the video generating module is further configured to: turn on the audio device, receive the audio data through the audio device; and encode the audio data.
  • source audio data There are two main ways to source audio data: microphone capture or custom audio files.
  • the video generation module first decodes the audio file to obtain the original audio data.
  • the special effect processing module further performs special effect processing on the received audio data, and the special effect processing includes special effect recording, variable sound, pitch change, and/or shifting.
  • the video generation module generates the video file according to the video file format set by the user according to the user's shooting end instruction, the encoded image data, and the encoded audio data.
  • the content of the finally generated video file is richer, more diverse, and more interesting, further enhancing the user experience.
  • a third embodiment of the apparatus for photographing a nebula video of the present invention is proposed.
  • the apparatus for photographing a nebula video is different from the first embodiment in that a shooting parameter adjustment module is added, and the shooting parameter adjustment module is configured to: detect External environmental parameters (such as detecting ambient light brightness, color temperature, etc.) or / and camera parameters (different camera camera parameters for shooting Nebula video), shooting against the external environment parameters or / and camera parameters and preset algorithms or rules Fine-tune the parameters so that the nebula shooting parameters match the current shooting scene or / and the current camera parameters, get better-effect nebula images, and shoot better-effect nebula videos.
  • External environmental parameters such as detecting ambient light brightness, color temperature, etc.
  • camera parameters different camera camera parameters for shooting Nebula video
  • Fine-tune the parameters so that the nebula shooting parameters match the current shooting scene or / and the current camera parameters, get better-effect nebula images, and shoot better-
  • the image acquisition module uses the front camera to acquire the nebula image. Since the image captured by the front camera is mirrored with the actual image, the collected nebula image is mirrored, and the video generation module captures. The mirrored processed nebula image is used to synthesize the video file. Since the front camera is shooting with the screen facing up, the user can easily see the preview of the nebula image, so it is more convenient for the user to use the manual interval mode to capture the currently previewed nebula image. The manual interval mode priority function can be set even when the automatic interval mode is currently set.
  • the user can manually capture the nebula image as a video composite material, such as clicking or swiping.
  • the screen captures the currently displayed composite image.
  • the uncaptured nebula image is preferably not stored, so as to save the storage space of the imaging device.
  • the apparatus for photographing the nebula video of the present invention acquires the nebula shooting parameters, collects the nebula image according to the nebula shooting parameters, and captures the nebula images at different moments, and then encodes the nebula images at different moments, and finally synthesizes them into video files.
  • the user can use the camera to capture the video showing the change process of the starry sky, such as the change process of the stars in the sky from less to more (or from less to less), or the change process of the clouds in the sky from more to less, from thick to thin. Or the drifting process satisfies the user's individual needs and enhances the user experience.
  • the nebula image is encoded while shooting, there is no need to store the generated nebula image, so the video file obtained in the final shooting is not large in size and does not occupy too much storage space.
  • the device for capturing a nebula video provided by the above embodiment is only illustrated by the division of the above functional modules when performing the nebula video shooting. In practical applications, The above function assignments are done by different functional modules as needed.
  • the device for capturing the nebula video provided by the above embodiment is the same as the method for capturing the nebula video. The specific implementation process is described in detail in the method embodiment, and details are not described herein again.
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute at least one of the foregoing methods for capturing nebula video; for example, FIG. 1 And/or the method shown in Figure 2.
  • the computer storage medium may be various types of storage media such as a ROM/RAM, a magnetic disk, an optical disk, a DVD, or a USB flash drive.
  • the computer storage medium may be a non-transitory storage medium.
  • the apparatus for photographing nebula video, the photographing parameter acquisition module, the image acquisition module, and the video generation module described in the embodiments of the present application may correspond to various structures capable of performing the above functions, for example, various types of information processing functions.
  • the processor may include an application processor (AP), a central processing unit (CPU), a digital signal processor (DSP), or a programmable gate array (FPGA, Field Programmable Gate). Array) or other information processing structure or chip that can implement the above functions by executing specified code.
  • AP application processor
  • CPU central processing unit
  • DSP digital signal processor
  • FPGA Field Programmable Gate
  • Fig. 7 is a block diagram showing a main electrical configuration of a camera according to an embodiment of the present invention.
  • the photographic lens 101 is composed of a plurality of optical lenses for forming a subject image, and is a single focus lens or a zoom lens.
  • the photographic lens 101 can be moved in the optical axis direction by the lens driving unit 111, and controls the focus position of the taking lens 101 based on the control signal from the lens driving control unit 112, and also controls the focus distance in the case of the zoom lens.
  • the lens drive control circuit 112 performs drive control of the lens drive unit 111 in accordance with a control command from the microcomputer 107.
  • An imaging element 102 is disposed in the vicinity of a position where the subject image is formed by the photographing lens 101 on the optical axis of the photographing lens 101.
  • the imaging element 102 functions as an imaging unit that captures a subject image and acquires captured image data.
  • the imaging element 102 is two-dimensionally arranged in a matrix to form each pixel.
  • Photodiode Each photodiode generates a photoelectric conversion current corresponding to the amount of received light, and the photoelectric conversion current is charged by a capacitor connected to each photodiode.
  • the front surface of each pixel is provided with a Bayer array of RGB color filters.
  • the imaging element 102 is connected to an imaging circuit 103 that performs charge accumulation control and image signal readout control in the imaging element 102, and performs waveform shaping after reducing the reset noise of the read image signal (analog image signal). Further, gain improvement or the like is performed to obtain an appropriate signal level.
  • the imaging circuit 103 is connected to the A/D conversion unit 104, which performs analog-to-digital conversion on the analog image signal, and outputs a digital image signal (hereinafter referred to as image data) to the bus 199.
  • image data a digital image signal
  • the bus 199 is a transmission path for transmitting various data read or generated inside the camera.
  • the A/D conversion unit 104 is connected to the bus 199, and an image processor 105, a JPEG processor 106, a microcomputer 107, a SDRAM (Synchronous DRAM) 108, and a memory interface (hereinafter referred to as a memory I/F) are connected. 109. LCD (Liquid Crystal Display) driver 110.
  • the image processor 105 performs various kinds of images such as OB subtraction processing, white balance adjustment, color matrix calculation, gamma conversion, color difference signal processing, noise removal processing, simultaneous processing, edge processing, and the like on the image data based on the output of the imaging element 102. deal with.
  • the JPEG processor 106 compresses the image data read out from the SDRAM 108 in accordance with the JPEG compression method. Further, the JPEG processor 106 performs decompression of JPEG image data for image reproduction display.
  • the file recorded on the recording medium 115 is read, and after the compression processing is performed in the JPEG processor 106, the decompressed image data is temporarily stored in the SDRAM 108 and displayed on the LCD 116.
  • the JPEG method is adopted as the image compression/decompression method.
  • the compression/decompression method is not limited thereto, and other compression/decompression methods such as MPEG, TIFF, and H.264 may be used.
  • the operation unit 113 includes but is not limited to a physical button or a virtual button, and the entity or virtual button
  • the keys can be used as power button, camera button, edit button, dynamic image button, reproduction button, menu button, cross button, OK button, delete button, zoom button, and other input buttons and various input buttons to detect these operations.
  • the operating state of the material includes but is not limited to a physical button or a virtual button, and the entity or virtual button
  • the keys can be used as power button, camera button, edit button, dynamic image button, reproduction button, menu button, cross button, OK button, delete button, zoom button, and other input buttons and various input buttons to detect these operations.
  • the operating state of the material can be used as power button, camera button, edit button, dynamic image button, reproduction button, menu button, cross button, OK button, delete button, zoom button, and other input buttons and various input buttons to detect these operations.
  • the operating state of the material includes but is not limited to a physical button or a virtual button, and the entity or virtual button
  • the keys can be used
  • the detection result is output to the microcomputer 107.
  • a touch panel is provided on the front surface of the LCD 116 as a display portion, and the touch position of the user is detected, and the touch position is output to the microcomputer 107.
  • the microcomputer 107 executes various processing sequences corresponding to the operation of the user based on the detection result of the operation member from the operation unit 113. (Also, this place can be changed to the computer 107 to execute various processing sequences corresponding to the user's operation based on the detection result of the touch panel in front of the LCD 116.
  • the flash memory 114 stores programs for executing various processing sequences of the microcomputer 107.
  • the microcomputer 107 performs overall control of the camera in accordance with the program. Further, the flash memory 114 stores various adjustment values of the camera, and the microcomputer 107 reads out the adjustment value, and performs control of the camera in accordance with the adjustment value.
  • the SDRAM 108 is an electrically rewritable volatile memory for temporarily storing image data or the like.
  • the SDRAM 108 temporarily stores image data output from the A/D conversion unit 104 and image data processed in the image processor 105, the JPEG processor 106, and the like.
  • the microcomputer 107 functions as a control unit of the entire camera, and collectively controls various processing sequences of the camera.
  • the microcomputer 107 is connected to the operation unit 113 and the flash memory 114.
  • the microcomputer 107 can control the apparatus in this embodiment to perform the following operations by executing a program:
  • the encoded nebula image data is generated as a video file.
  • the acquiring the nebula shooting parameters includes:
  • the acquiring the nebula shooting parameters includes:
  • the preferred parameter training is performed to obtain preferred nebula shooting parameters.
  • the performing the preferred parameter training comprises:
  • the combination of the user-selected photo or the highest-rated photo is taken as the preferred nebula shooting parameter.
  • the step of performing the encoding process on the captured nebula image further includes:
  • Special effects processing is performed on the captured nebula image, the special effect processing including basic effect processing, filter effect processing, and/or special scene effect processing.
  • the memory interface 109 is connected to the recording medium 115, and performs control for writing image data and a file header attached to the image data to the recording medium 115 and reading from the recording medium 115.
  • the recording medium 115 is, for example, a recording medium such as a memory card that can be detachably attached to the camera body.
  • the recording medium 115 is not limited thereto, and may be a hard disk or the like built in the camera body.
  • the LCD driver 110 is connected to the LCD 116, and stores image data processed by the image processor 105 in the SDRAM.
  • the image data stored in the SDRAM is read and displayed on the LCD 116, or the image data stored in the JPEG processor 106 is compressed.
  • the JPEG processor 106 reads the compressed image data of the SDRAM, decompresses it, and displays the decompressed image data on the LCD 116.
  • the LCD 116 is disposed on the back surface of the camera body or the like to perform image display.
  • the LCD 116 is provided with a touch panel that detects a user's touch operation.
  • the liquid crystal display panel (LCD 116) is disposed as the display portion.
  • the present invention is not limited thereto, and various display panels such as an organic EL may be employed.
  • the related hardware can be controlled by a program, which can be stored in a computer readable storage medium, which can be a ROM/RAM, a magnetic disk, an optical disk, or the like.

Abstract

本发明实施例公开了一种拍摄星云视频的方法和装置,所述方法包括步骤:拍摄开始后,获取星云拍摄参数;根据所述星云拍摄参数连续的或间隔的采集星云图像;抓取采集到的星云图像,并对抓取的星云图像进行编码处理;拍摄结束时,将编码处理后的星云图像数据生成为视频文件。从而,通过抓取不同时刻的星云图像,再将不同时刻的星云图像进行编码处理,最终合成为视频文件,实现了星云视频的拍摄。本发明实施例还公开了一种计算机存储介质。

Description

拍摄星云视频的方法和装置和计算机存储介质 技术领域
本发明涉及摄像技术领域,尤其是涉及一种拍摄星云视频的方法和装置和计算机存储介质。
背景技术
星云拍摄主要用于拍摄星空中的星光,对于摄影爱好者来说,星云拍摄是一种非常重要的体验。目前的星云拍摄只能拍摄照片,即最终得到的只是一张显示星空的静态图像,无法拍摄出能够显示星空变化过程的动态视频,如星空中星星由少变多的变化过程,云朵由少变多的变化过程或飘移过程等。
传统意义上的视频拍摄,在夜间进行拍摄时,受光照限制,其拍摄出来的效果很暗。特别是对着星空拍摄时,由于星光非常很黯淡,因此拍摄出来的星空基本上是黑的,根本无法拍摄出星轨视频效果;同时,星星的变化速度很慢,需要长时间拍摄才能获得星空变化效果,因此传统的视频拍摄方法会占用大量的存储空间。
因此,现有技术中尚没有实现拍摄星云视频的解决方案,无法满足用户的多样化需求,影响了用户体验。
发明内容
本发明实施例期望提供一种拍摄星云视频的方法和装置,旨在实现星云视频的拍摄,满足用户的个性化需求,提升用户体验。
本发明实施例提出一种拍摄星云视频的方法,包括步骤:
拍摄开始后,获取星云拍摄参数;
根据所述星云拍摄参数连续的或间隔的采集星云图像;
抓取采集到的星云图像,并对抓取的星云图像进行编码处理;
拍摄结束时,将编码处理后的星云图像数据生成为视频文件。
基于上述方案,所述获取星云拍摄参数包括:
获取预设的星云拍摄参数,或获取用户手动设定的星云拍摄参数。
基于上述方案,所述获取星云拍摄参数包括:
进行优选参数训练,获取优选的星云拍摄参数。
基于上述方案,所述进行优选参数训练包括:
获取用户选择的拍摄参数范围,根据所述拍摄参数范围获取至少两组拍摄参数组合;
根据每一拍摄参数组合拍摄一张照片供用户选择或评分;
将用户选择的照片或评分最高的照片所对应的拍摄参数组合作为优选的星云拍摄参数。
基于上述方案,所述对抓取的星云图像进行编码处理的步骤之前还包括:
对抓取的星云图像进行特效处理,所述特效处理包括基本效果处理、滤镜效果处理和/或特殊场景效果处理。
本发明实施例同时提出一种拍摄星云视频的装置,包括拍摄参数获取模块和图像采集模块和视频生成模块,其中:
拍摄参数获取模块,配置为获取星云拍摄参数;
图像采集模块,配置为根据所述星云拍摄参数连续的或间隔的采集星云图像;
视频生成模块,配置为抓取采集到的星云图像,对抓取的星云图像进行编码处理,并将编码处理后的星云图像数据生成为视频文件。
基于上述方案,所述拍摄参数获取模块配置为:获取预设的星云拍摄 参数,或获取用户手动设定的星云拍摄参数。
基于上述方案,所述拍摄参数获取模块配置为:进行优选参数训练,获取优选的星云拍摄参数。
基于上述方案,所述拍摄参数获取模块配置为:
获取用户选择的拍摄参数范围,根据所述拍摄参数范围获取至少两组拍摄参数组合;
根据每一拍摄参数组合拍摄一张照片供用户选择或评分;
将用户选择的照片或评分最高的照片所对应的拍摄参数组合作为优选的星云拍摄参数。
基于上述方案,还包括特效处理模块,所述特效处理模块配置为:对抓取的星云图像进行特效处理,所述特效处理包括基本效果处理、滤镜效果处理和/或特殊场景效果处理。
本发明实施例还一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行上述方法的至少其中之一。
本发明实施例所提供的一种拍摄星云视频的方法,通过获取星云拍摄参数,根据星云拍摄参数采集星云图像,并抓取不同时刻的星云图像,再将不同时刻的星云图像进行编码处理,最终合成为视频文件,实现了星云视频的拍摄。使得用户可以利用拍摄装置拍摄出显示星空变化过程的视频,或者应用于类似的应用场景,满足了用户的个性化需求,提升了用户体验。同时,由于是一边拍摄一边对星云图像进行编码处理,无需存储生成的星云图像,因此最终拍摄获得的视频文件的体积不会很大,不会占用太多的存储空间。
同时,考虑到不同的拍摄场景对应的最佳拍摄参数不同,同时不同的用户对照片效果的审美和偏好也不相同。还通过优选参数训练,由不同的 拍摄参数组合拍摄多张样片供用户选择,从而获取符合用户偏好和适合当前拍摄场景的最佳星云拍摄参数,采集到效果较佳的星云图像,最终生成的星云视频效果更好,拍摄出令用户满意的作品。
附图说明
图1是本发明拍摄星云视频的方法第一实施例提供的流程图;
图2是本发明拍摄星云视频的方法第二实施例提供的流程图;
图3是本发明拍摄星云视频的装置第一实施例提供的结构框图;
图4是本发明拍摄星云视频的装置第二实施例提供的结构框图;
图5是本发明拍摄星云视频的装置第三实施例提供的结构框图;
图6为本发明实施例提供的拍摄星云视频的装置的电气结构示意图。
具体实施方式
以下结合附图对本发明的优选实施例进行详细说明,应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
参见图1,提出本发明拍摄星云视频的方法第一实施例,所述拍摄星云视频的方法包括以下步骤:
步骤S101:拍摄开始后,获取预设的或用户手动设定的星云拍摄参数
可以在拍摄之前预先设定好适合星云拍摄的参数作为最优的或默认的星云拍摄参数,所述星云拍摄参数主要包括ISO、曝光时间、白平衡等参数。例如,设定最优的星云拍摄参数为:ISO3200、曝光时间1min、白平衡为色温值4500。星云拍摄参数可以出厂设置,也可以由用户在拍摄之前进行自定义设置。启动相机后,可以默认进入星云视频拍摄模式,也可以提供选项供用户手动选择进入星云视频拍摄模式。在星云拍摄模式下,拍摄装置自动获取预设的星云拍摄参数,无需用户手动设置参数。
或者,拍摄装置也可以首先自动向用户推荐默认的星云拍摄参数并予 以显示,若用户对默认的参数比较满意,则可直接选择确定,以默认的参数进行拍摄;若用户对星云拍摄有一定的经验,对默认的参数不满意,则可以进行手动调整设定,设定完成后选择确定,拍摄装置获取用户手动设定的星云拍摄参数。
步骤S102:根据星云拍摄参数连续的或间隔的采集星云图像
拍摄装置可以根据星云拍摄参数连续采集星云图像或每隔预设时间采集一张星云图像。具体的,拍摄装置通过摄像头采集图像数据,并根据预设的ISO、曝光时间、白平衡等星云拍摄参数对采集的图像数据进行处理,生成星云图像(或照片),所述星云图像连续的生成或每隔预设时间生成一张,并优选在显示屏上显示生成的星云图像供用户预览。
步骤S103:抓取采集到的星云图像,并对抓取的星云图像进行编码处理
比如,可以连续抓取星云图像或者间隔的抓取星云图像。连续抓取星云图像,是指每生成一张星云图像就抓取一张进行编码处理,即,将生成的所有星云图像都作为合成视频的素材。生成星云图像和抓取星云图像进行编码处理是两个线程同步进行,由于是一边拍摄一边对星云图像进行编码处理,因此无需存储生成的星云图像。
间隔抓取是指选择性的抓取部分星云图像作为合成视频的素材。间隔方式可以是手动间隔模式或者自动间隔模式。其中,手动间隔模式,是指提供操作界面以便用户点击触发抓取图像数据,如点击屏幕,抓取当前生成的星云图像(有预览时,即当前的预览图像);自动间隔模式,是指按照预设的时间间隔抓取星云图像,即每隔预设时间抓取一张星云图像。例如可以每隔1~2Min抓取一张星云图像,该星云图像即当前所采集生成的星云图像。然后对抓取到的星云图像进行视频编码处理,将其处理为MPEG-4、H264、H263、VP8等常见视频编码,以备后续生成视频文件,对星云图像 进行编码处理的方法与现有技术相同,在此不再赘述。
此外,每隔预设时间抓取一张星云图像,也可以表述为当摄像头每采集预设张星云图像后抓取一张星云图像,二者虽然表述方法不同,但实质相同。例如,假设摄像头每隔10S采集一张星云图像,拍摄装置在其摄像头每采集3张星云图像后抓取一张星云图像,实则相当于每隔3*10S=30S后抓取一张星云图像。
步骤S104:拍摄结束时,将编码处理后的星云图像数据生成为视频文件
生成的视频文件的格式,可以由用户指定。视频文件格式包括但不限于mp4、3gp、avi、rmvb等。
从而,通过获取星云拍摄参数,根据星云拍摄参数采集星云图像,并抓取不同时刻的星云图像,再将不同时刻的星云图像进行编码处理,最终合成为视频文件,实现了星云视频的拍摄。使得用户可以利用拍摄装置拍摄出显示星空变化过程的视频,如星空中星星由少变多(或由多变少)的变化过程,或者星空中云朵由多变少、由厚变薄的变化过程或者飘移过程,满足了用户的个性化需求,提升了用户体验。同时,由于是一边拍摄一边对星云图像进行编码处理,无需存储生成的星云图像,因此最终拍摄获得的视频文件的体积不会很大,不会占用太多的存储空间。
参见图2,提出本发明拍摄星云视频的方法第二实施例,所述拍摄星云视频的方法包括以下步骤:
步骤S201:拍摄开始后,进行优选参数训练,获取优选的星云拍摄参数
具体的,进入星云视频拍摄模式后,拍摄装置提供界面供用户选择拍摄参数范围,如设定拍摄参数范围为:ISO(ISO3200±500)、曝光时间(30s~2min)、白平衡(色温值4500±300)等。拍摄装置获取用户选择的拍摄 参数范围后,根据该拍摄参数范围获取至少两组拍摄参数组合,在同一场景根据每一拍摄参数组合拍摄一张照片,共拍摄至少两张照片,用户查看拍摄的照片后,选择一张最佳的照片,或者对每张照片进行评分。拍摄装置将用户选择的照片或评分最高的照片所对应的拍摄参数组合作为优选的星云拍摄参数,并获取该优选的星云拍摄参数。
用户也可以直接输入或设定至少两组拍摄参数组合供拍摄装置进行优选参数训练,拍摄装置根据不同的拍摄参数组合拍摄至少两张照片供用户选择或评分。
拍摄装置也可以根据预设的或默认的拍摄参数范围或拍摄参数组合进行优选参数训练,自动拍摄多张照片供用户选择或评分。
因不同的拍摄场景对应的最佳拍摄参数不同,同时不同的用户对照片效果的审美和偏好也不相同。
步骤S202:根据星云拍摄参数连续的或间隔的采集星云图像
步骤S203:抓取采集到的星云图像,并对抓取的星云图像进行编码处理
步骤S204:拍摄结束时,将编码处理后的星云图像数据生成为视频文件
从而,本实施例通过优选参数训练,由不同的拍摄参数组合拍摄多张样片供用户选择,从而获取符合用户偏好和适合当前拍摄场景的最佳星云拍摄参数,采集到效果较佳的星云图像,最终生成的星云视频效果更好,拍摄出令用户满意的作品。
在某些实施例中,拍摄装置获取星云拍摄参数后,还检测外部环境参数(如检测环境光线亮度、色温等)或/和相机参数(不同的拍摄星云视频的装置相机参数有差异),根据外部环境参数或/和相机参数以及预设算法或规则对星云拍摄参数进行微调,以使星云拍摄参数符合当前的拍摄场景或/ 和当前的相机参数,获得效果更佳的星云图像。
基于上述方案,针对前述两个实施例,为了提高用户拍摄的趣味性,在对抓取的星云图像进行编码处理之前,还对其进行特效处理,所述特效处理包括基本效果处理、滤镜效果处理和/或特殊场景效果处理等。其中,基本效果处理,包含减噪、亮度、色度等处理;滤镜效果处理,包含素描、负片、黑白等处理;特殊场景效果处理,包含处理为常见天气、星空等。
基于上述方案,为了在录制视频的同时,用户能够录制声音,抓取星云图像并进行编码处理的同时,还包括:开启音频设备,接收音频数据;对音频数据进行编码处理。音频数据的来源方式主要有两种:麦克风采集或者自定义音频文件。当音频来源为自定义音频文件时,先对音频文件进行解码,得到原始的音频数据。基于上述方案,在对音频数据进行编码处理之前,还对接收到的音频数据进行特效处理,所述特效处理包括特效录音、变声、变调和/或变速等。
在增加了录制音频的功能基础上,生成视频文件的具体方式为:根据用户拍摄结束指令,将编码处理后的图像数据,以及编码处理后的音频数据,按照用户设定的视频文件格式,生成视频文件。
在某些实施例中,利用前置摄像头采集星云图像,由于前置摄像头捕捉到的画面与实际画面呈镜像关系,因此还对采集到的星云图像进行镜像处理,并抓取镜像处理后的星云图像来合成视频文件。因前置摄像头拍摄时屏幕朝上,用户可以方便的看到星云图像的预览效果,因此用户更方便利用手动间隔模式抓取当前预览的星云图像。可以设置手动间隔模式优先功能,即使当前设置了自动间隔模式,但在拍摄过程中,若用户看中了当前预览界面上的一张星云图像,但其又刚好在自动间隔抓取之外,此时用户可以手动抓取该星云图像作为视频合成素材,如点击或划动屏幕来抓取当前显示的合成图像。
为了用户操作起来更为方便实用,还可以给用户提供一个操作界面,用来设定抓取星云图像的方式(连续抓取或间隔抓取),间隔抓取时的间隔时间,是否进行特效处理,是否开启录制音频功能等。
本实施例在实际应用中,在对间隔抓取的星云图像进行编码处理的同时,对未抓取的星云图像,优选不进行存储,以便节省拍摄装置的存储空间。
参见图3,提出本发明拍摄星云视频的装置第一实施例,所述拍摄星云视频的装置可以是数码相机,也可以是具有摄像功能的手机、平板电脑等移动设备,该装置包括拍摄参数获取模块、图像采集模块和视频生成模块。
拍摄参数获取模块:配置为获取星云拍摄参数。
在星云视频拍摄模式下,拍摄参数获取模块可以自动获取预设的星云拍摄参数,无需用户手动设置参数,使得非专业用户也能进行星云视频拍摄。所述星云拍摄参数主要包括ISO、曝光时间、白平衡等参数。例如,设定最优的星云拍摄参数为:ISO3200、曝光时间1min、白平衡为色温值4500。星云拍摄参数可以出厂设置,也可以由用户在拍摄之前进行自定义设置。
拍摄参数获取模块也可以首先自动向用户推荐默认的星云拍摄参数并予以显示,若用户对默认的参数比较满意,则可直接选择确定,以默认的参数进行拍摄;若用户对星云拍摄有一定的经验,对默认的参数不满意,则可以进行手动调整设定,设定完成后选择确定,拍摄参数获取模块获取用户手动设定的星云拍摄参数。从而,既方便没有星云拍摄经验的用户实现傻瓜式或一键式拍摄,又满足有一定经验的用户对拍摄参数进行手动调节来获取最佳的星云拍摄参数。
拍摄参数获取模块也可以进行优选参数训练,获取优选的星云拍摄参数。具体的,拍摄参数获取模块提供界面供用户选择拍摄参数范围,如设定拍摄参数范围为:ISO(ISO3200±500)、曝光时间(30s~2min)、白平衡(色 温值4500±300)等。拍摄参数获取模块获取用户选择的拍摄参数范围后,根据该拍摄参数范围获取至少两组拍摄参数组合,在同一场景根据每一拍摄参数组合拍摄一张照片,共拍摄至少两张照片,用户查看拍摄的照片后,选择一张最佳的照片,或者对每张照片进行评分。拍摄参数获取模块将用户选择的照片或评分最高的照片所对应的拍摄参数组合作为优选的星云拍摄参数,并获取该优选的星云拍摄参数。此外,用户也可以直接输入或设定至少两组拍摄参数组合供拍摄参数获取模块进行优选参数训练,拍摄参数获取模块根据不同的拍摄参数组合拍摄至少两张照片供用户选择或评分。或者,拍摄参数获取模块也可以根据预设的或默认的拍摄参数范围或拍摄参数组合进行优选参数训练,自动拍摄多张照片供用户选择或评分。从而通过优选参数训练,由不同的拍摄参数组合拍摄多张样片供用户选择,获取符合用户偏好和适合当前拍摄场景的最佳星云拍摄参数,拍摄出令用户满意的作品。
图像采集模块:配置为根据星云拍摄参数连续的或间隔的采集星云图像
图像采集模块可以根据星云拍摄参数连续采集星云图像或每隔预设时间采集一张星云图像。具体的,图像采集模块通过摄像头采集图像数据,并根据预设的ISO、曝光时间、白平衡等星云拍摄参数对采集的图像数据进行处理,生成星云图像(或照片),所述星云图像连续的生成或每隔预设时间生成一张,并优选通过显示屏显示生成的星云图像供用户预览。
视频生成模块配置为:抓取采集到的星云图像,对抓取的星云图像进行编码处理,将编码处理后的星云图像数据生成为视频文件。
譬如,视频生成模块可以连续抓取星云图像或者间隔的抓取星云图像。连续抓取星云图像,是指每生成一张星云图像就抓取一张进行编码处理,即,将生成的所有星云图像都作为合成视频的素材。生成星云图像和抓取 星云图像进行编码处理是两个线程同步进行,由于是一边拍摄一边对星云图像进行编码处理,因此无需存储生成的星云图像。
间隔抓取是指选择性的抓取部分星云图像作为合成视频的素材。间隔方式可以是手动间隔模式或者自动间隔模式。其中,手动间隔模式,是指提供操作界面以便用户点击触发抓取图像数据,如点击屏幕,抓取当前生成的星云图像(有预览时,即当前的预览图像);自动间隔模式,是指按照预设的时间间隔抓取星云图像,即每隔预设时间抓取一张星云图像。例如视频生成模块可以每隔1~2Min抓取一张星云图像,该星云图像即当前所采集生成的星云图像。然后对抓取到的星云图像进行视频编码处理,将其处理为MPEG-4、H264、H263、VP8等常见视频编码,以备后续生成视频文件,对星云图像进行编码处理的方法与现有技术相同,在此不再赘述。
此外,每隔预设时间抓取一张星云图像,也可以表述为当图像采集模块每采集预设张星云图像后抓取一张星云图像,二者虽然表述方法不同,但实质相同。例如,假设图像采集模块每隔10S采集一张星云图像,视频生成模块在图像采集模块每采集3张星云图像后抓取一张星云图像,实则相当于每隔3*10S=30S后抓取一张星云图像。
当拍摄结束时,视频生成模块将编码处理后的星云图像数据生成为视频文件。生成的视频文件的格式,可以由用户指定。视频文件格式包括但不限于mp4、3gp、avi、rmvb等。
参见图4,提出本发明拍摄星云视频的装置第二实施例,所述拍摄星云视频的装置也第一实施例的区别是增加了一特效处理模块,其用于:对视频生成模块抓取的星云图像进行特效处理,特效处理完成后再返回给视频生成模块进行编码处理。所述特效处理包括基本效果处理、滤镜效果处理和/或特殊场景效果处理等。其中,基本效果处理,包含减噪、亮度、色度等处理;滤镜效果处理,包含素描、负片、黑白等处理;特殊场景效果处 理,包含处理为常见天气、星空等。
基于上述方案,视频生成模块还配置为:开启音频设备,通过音频设备接收音频数据;对音频数据进行编码处理。音频数据的来源方式主要有两种:麦克风采集或者自定义音频文件。当音频来源为自定义音频文件时,视频生成模块先对音频文件进行解码,得到原始的音频数据。基于上述方案,在对音频数据进行编码处理之前,特效处理模块还对接收到的音频数据进行特效处理,所述特效处理包括特效录音、变声、变调和/或变速等。最后,视频生成模块根据用户拍摄结束指令,将编码处理后的图像数据,以及编码处理后的音频数据,按照用户设定的视频文件格式,生成视频文件。
从而,使得最终生成的视频文件的内容更加丰富,更加多样化,更具趣味性,进一步提升了用户体验。
参见图5,提出本发明拍摄星云视频的装置第三实施例,所述拍摄星云视频的装置与第一实施例的区别是增加了一拍摄参数调节模块,所述拍摄参数调节模块配置为:检测外部环境参数(如检测环境光线亮度、色温等)或/和相机参数(不同的拍摄星云视频的装置相机参数有差异),根据外部环境参数或/和相机参数以及预设算法或规则对星云拍摄参数进行微调,以使星云拍摄参数符合当前的拍摄场景或/和当前的相机参数,获得效果更佳的星云图像,拍摄出效果更好的星云视频。
在某些实施例中,图像采集模块利用前置摄像头采集星云图像,由于前置摄像头捕捉到的画面与实际画面呈镜像关系,因此还对采集到的星云图像进行镜像处理,视频生成模块抓取镜像处理后的星云图像来合成视频文件。因前置摄像头拍摄时屏幕朝上,用户可以方便的看到星云图像的预览效果,因此用户更方便利用手动间隔模式抓取当前预览的星云图像。可以设置手动间隔模式优先功能,即使当前设置了自动间隔模式,但在拍摄 过程中,若用户看中了当前预览界面上的一张星云图像,但其又刚好在自动间隔抓取之外,此时用户可以手动抓取该星云图像作为视频合成素材,如点击或划动屏幕来抓取当前显示的合成图像。
为了用户操作起来更为方便实用,还可以给用户提供一个操作界面,用来设定抓取星云图像的的方式(连续抓取或间隔抓取),间隔抓取时的间隔时间,是否进行特效处理,是否开启录制音频功能等。
本实施例在实际应用中,在对间隔抓取的星云图像进行编码处理的同时,对未抓取的星云图像,优选不进行存储,以便节省拍摄装置的存储空间。
据此,本发明拍摄星云视频的装置,通过获取星云拍摄参数,根据星云拍摄参数采集星云图像,并抓取不同时刻的星云图像,再将不同时刻的星云图像进行编码处理,最终合成为视频文件,实现了星云视频的拍摄。使得用户可以利用拍摄装置拍摄出显示星空变化过程的视频,如星空中星星由少变多(或由多变少)的变化过程,或者星空中云朵由多变少、由厚变薄的变化过程或者飘移过程,满足了用户的个性化需求,提升了用户体验。同时,由于是一边拍摄一边对星云图像进行编码处理,无需存储生成的星云图像,因此最终拍摄获得的视频文件的体积不会很大,不会占用太多的存储空间。
同时,考虑到不同的拍摄场景对应的最佳拍摄参数不同,同时不同的用户对照片效果的审美和偏好也不相同。还通过优选参数训练,由不同的拍摄参数组合拍摄多张样片供用户选择,从而获取符合用户偏好和适合当前拍摄场景的最佳星云拍摄参数,采集到效果较佳的星云图像,最终生成的星云视频效果更好,拍摄出令用户满意的作品。
需要说明的是:上述实施例提供的拍摄星云视频的装置在进行星云视频拍摄时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以 根据需要而将上述功能分配由不同的功能模块完成。另外,上述实施例提供的拍摄星云视频的装置与拍摄星云视频的方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。
本发明实施例还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行上述拍摄星云视频的方法的至少其中之一;比如,图1和/或图2所示的方法。
所述计算机存储介质可为如ROM/RAM、磁盘、光盘、DVD或U盘等各种类型的存储介质,本实施例所述计算机存储介质可选为非瞬间存储介质。
值得注意的本申请实施例中所述拍摄星云视频的装置,拍摄参数获取模块、图像采集模块以及视频生成模块,可对应各种能够进行上述功能的结构,比如,各种类型具有信息处理功能的处理器。所述处理器可包括应用处理器AP(AP,Application Processor)、中央处理器(CPU,Central Processing Unit)、数字信号处理器(DSP,Digital Signal Processor)或可编程门阵列(FPGA,Field Programmable Gate Array)等信息处理结构或芯片,所述处理器可通过执行指定代码来实现上述功能。
图7是表示本发明的一个实施方式的相机的主要电气结构的框图。摄影镜头101由用于形成被摄体像的多个光学镜头构成,是单焦点镜头或变焦镜头。摄影镜头101能够通过镜头驱动部111在光轴方向上移动,根据来自镜头驱动控制部112的控制信号,控制摄影镜头101的焦点位置,在变焦镜头的情况下,也控制焦点距离。镜头驱动控制电路112按照来自微型计算机107的控制命令进行镜头驱动部111的驱动控制。
在摄影镜头101的光轴上、由摄影镜头101形成被摄体像的位置附近配置有摄像元件102。摄像元件102发挥作为对被摄体像摄像并取得摄像图像数据的摄像部的功能。在摄像元件102上二维地呈矩阵状配置有构成各像素 的光电二极管。各光电二极管产生与受光量对应的光电转换电流,该光电转换电流由与各光电二极管连接的电容器进行电荷蓄积。各像素的前表面配置有拜耳排列的RGB滤色器。
摄像元件102与摄像电路103连接,该摄像电路103在摄像元件102中进行电荷蓄积控制和图像信号读出控制,对该读出的图像信号(模拟图像信号)降低重置噪声后进行波形整形,进而进行增益提高等以成为适当的信号电平。
摄像电路103与A/D转换部104连接,该A/D转换部104对模拟图像信号进行模数转换,向总线199输出数字图像信号(以下称之为图像数据)。
总线199是用于传送在相机的内部读出或生成的各种数据的传送路径。在总线199连接着上述A/D转换部104,此外还连接着图像处理器105、JPEG处理器106、微型计算机107、SDRAM(Synchronous DRAM)108、存储器接口(以下称之为存储器I/F)109、LCD(液晶显示器:Liquid Crystal Display)驱动器110。
图像处理器105对基于摄像元件102的输出的图像数据进行OB相减处理、白平衡调整、颜色矩阵运算、伽马转换、色差信号处理、噪声去除处理、同时化处理、边缘处理等各种图像处理。JPEG处理器106在将图像数据记录于记录介质115时,按照JPEG压缩方式压缩从SDRAM108读出的图像数据。此外,JPEG处理器106为了进行图像再现显示而进行JPEG图像数据的解压缩。进行解压缩时,读出记录在记录介质115中的文件,在JPEG处理器106中实施了解压缩处理后,将解压缩的图像数据暂时存储于SDRAM108中并在LCD116上进行显示。另外,在本实施方式中,作为图像压缩解压缩方式采用的是JPEG方式,然而压缩解压缩方式不限于此,当然可以采用MPEG、TIFF、H.264等其他的压缩解压缩方式。
操作单元113包括但不限于实体按键或者虚拟按键,该实体或虚拟按 键可以为电源按钮、拍照键、编辑按键、动态图像按钮、再现按钮、菜单按钮、十字键、OK按钮、删除按钮、放大按钮等各种输入按钮和各种输入键等操作部材,检测这些操作部材的操作状态,。
将检测结果向微型计算机107输出。此外,在作为显示部的LCD116的前表面设有触摸面板,检测用户的触摸位置,将该触摸位置向微型计算机107输出。微型计算机107根据来自操作单元113的操作部材的检测结果,执行与用户的操作对应的各种处理序列。(同样,可以把这个地方改成计算机107根据LCD116前面的触摸面板的检测结果,执行与用户的操作对应的各种处理序列。
闪存114存储用于执行微型计算机107的各种处理序列的程序。微型计算机107根据该程序进行相机整体的控制。此外,闪存114存储相机的各种调整值,微型计算机107读出调整值,按照该调整值进行相机的控制。SDRAM108是用于对图像数据等进行暂时存储的可电改写的易失性存储器。该SDRAM108暂时存储从A/D转换部104输出的图像数据和在图像处理器105、JPEG处理器106等中进行了处理后的图像数据。
微型计算机107发挥作为该相机整体的控制部的功能,统一控制相机的各种处理序列。微型计算机107连接着操作单元113和闪存114。
所述微型计算机107可通过执行程序控制本实施例中装置执行下列操作:
拍摄开始后,获取星云拍摄参数;
根据所述星云拍摄参数连续的或间隔的采集星云图像;
抓取采集到的星云图像,并对抓取的星云图像进行编码处理;
拍摄结束时,将编码处理后的星云图像数据生成为视频文件。
可选地,所述获取星云拍摄参数包括:
获取预设的星云拍摄参数,或获取用户手动设定的星云拍摄参数。
可选地,所述获取星云拍摄参数包括:
进行优选参数训练,获取优选的星云拍摄参数。
可选地,所述进行优选参数训练包括:
获取用户选择的拍摄参数范围,根据所述拍摄参数范围获取至少两组拍摄参数组合;
根据每一拍摄参数组合拍摄一张照片供用户选择或评分;
将用户选择的照片或评分最高的照片所对应的拍摄参数组合作为优选的星云拍摄参数。
可选地,所述对抓取的星云图像进行编码处理的步骤之前还包括:
对抓取的星云图像进行特效处理,所述特效处理包括基本效果处理、滤镜效果处理和/或特殊场景效果处理。
存储器接口109与记录介质115连接,进行将图像数据和附加在图像数据中的文件头等数据写入记录介质115和从记录介质115中读出的控制。记录介质115例如为能够在相机主体上自由拆装的存储器卡等记录介质,然而不限于此,也可以是内置在相机主体中的硬盘等。
LCD驱动器110与LCD116连接,将由图像处理器105处理后的图像数据存储于SDRAM,需要显示时,读取SDRAM存储的图像数据并在LCD116上显示,或者,JPEG处理器106压缩过的图像数据存储于SDRAM,在需要显示时,JPEG处理器106读取SDRAM的压缩过的图像数据,再进行解压缩,将解压缩后的图像数据通过LCD116进行显示。
LCD116配置在相机主体的背面等上,进行图像显示。该LCD116设有检测用户的触摸操作的触摸面板。另外,作为显示部,在本实施方式中配置的是液晶表示面板(LCD116),然而不限于此,也可以采用有机EL等各种显示面板。
本领域普通技术人员可以理解,实现上述实施例方法中的全部或部分步 骤可以通过程序来控制相关的硬件完成,所述的程序可以存储于一计算机可读取存储介质中,所述的存储介质可以是ROM/RAM、磁盘、光盘等。
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡按照本发明原理所作的修改,都应当理解为落入本发明的保护范围。

Claims (11)

  1. 一种拍摄星云视频的方法,包括步骤:
    拍摄开始后,获取星云拍摄参数;
    根据所述星云拍摄参数连续的或间隔的采集星云图像;
    抓取采集到的星云图像,并对抓取的星云图像进行编码处理;
    拍摄结束时,将编码处理后的星云图像数据生成为视频文件。
  2. 根据权利要求1所述的拍摄星云视频的方法,其中,所述获取星云拍摄参数包括:
    获取预设的星云拍摄参数,或获取用户手动设定的星云拍摄参数。
  3. 根据权利要求1所述的拍摄星云视频的方法,其中,所述获取星云拍摄参数包括:
    进行优选参数训练,获取优选的星云拍摄参数。
  4. 根据权利要求3所述的拍摄星云视频的方法,其中,所述进行优选参数训练包括:
    获取用户选择的拍摄参数范围,根据所述拍摄参数范围获取至少两组拍摄参数组合;
    根据每一拍摄参数组合拍摄一张照片供用户选择或评分;
    将用户选择的照片或评分最高的照片所对应的拍摄参数组合作为优选的星云拍摄参数。
  5. 根据权利要求1至4任一项所述的拍摄星云视频的方法,其中,所述对抓取的星云图像进行编码处理的步骤之前还包括:
    对抓取的星云图像进行特效处理,所述特效处理包括基本效果处理、滤镜效果处理和/或特殊场景效果处理。
  6. 一种拍摄星云视频的装置,包括拍摄参数获取模块和图像采集模块和视频生成模块,其中:
    拍摄参数获取模块,配置为获取星云拍摄参数;
    图像采集模块,配置为根据所述星云拍摄参数连续的或间隔的采集星云图像;
    视频生成模块,配置为抓取采集到的星云图像,对抓取的星云图像进行编码处理,并将编码处理后的星云图像数据生成为视频文件。
  7. 根据权利要求6所述的拍摄星云视频的装置,其中,所述拍摄参数获取模块配置为:获取预设的星云拍摄参数,或获取用户手动设定的星云拍摄参数。
  8. 根据权利要求6所述的拍摄星云视频的装置,其中,所述拍摄参数获取模块配置为:进行优选参数训练,获取优选的星云拍摄参数。
  9. 根据权利要求8所述的拍摄星云视频的装置,其中,所述拍摄参数获取模块配置为:
    获取用户选择的拍摄参数范围,根据所述拍摄参数范围获取至少两组拍摄参数组合;
    根据每一拍摄参数组合拍摄一张照片供用户选择或评分;
    将用户选择的照片或评分最高的照片所对应的拍摄参数组合作为优选的星云拍摄参数。
  10. 根据权利要求6至9任一项所述的拍摄星云视频的装置,其中,还包括特效处理模块,所述特效处理模块配置为:对抓取的星云图像进行特效处理,所述特效处理包括基本效果处理、滤镜效果处理和/或特殊场景效果处理。
  11. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1至5所述方法的至少其中之一。
PCT/CN2015/081015 2014-07-02 2015-06-08 拍摄星云视频的方法和装置和计算机存储介质 WO2016000514A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410313067.0 2014-07-02
CN201410313067.0A CN104079835A (zh) 2014-07-02 2014-07-02 拍摄星云视频的方法和装置

Publications (1)

Publication Number Publication Date
WO2016000514A1 true WO2016000514A1 (zh) 2016-01-07

Family

ID=51600854

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/081015 WO2016000514A1 (zh) 2014-07-02 2015-06-08 拍摄星云视频的方法和装置和计算机存储介质

Country Status (2)

Country Link
CN (1) CN104079835A (zh)
WO (1) WO2016000514A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104079835A (zh) * 2014-07-02 2014-10-01 深圳市中兴移动通信有限公司 拍摄星云视频的方法和装置
CN104469172B (zh) * 2014-12-31 2018-05-08 小米科技有限责任公司 延时拍摄方法及装置
US10235032B2 (en) * 2015-08-05 2019-03-19 Htc Corporation Method for optimizing a captured photo or a recorded multi-media and system and electric device therefor
CN112532859B (zh) * 2019-09-18 2022-05-31 华为技术有限公司 视频采集方法和电子设备
CN112261294B (zh) * 2020-10-21 2022-08-26 维沃移动通信有限公司 一种拍摄方法、装置和电子设备
CN112954201B (zh) * 2021-01-28 2022-09-27 维沃移动通信有限公司 拍摄控制方法、装置和电子设备

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1497945A (zh) * 2002-09-26 2004-05-19 ������������ʽ���� 图像生成设备和图像生成方法
EP1515276A2 (en) * 2003-09-12 2005-03-16 Hewlett-Packard Development Company, L.P. Generating animated image file from video data file frames
CN101242474A (zh) * 2007-02-09 2008-08-13 中国科学院计算技术研究所 一种照片在小尺寸屏幕设备上的动态视频浏览方法
CN102143318A (zh) * 2011-01-21 2011-08-03 北京中星微电子有限公司 一种视频文件的生成方法及装置
US20140025782A1 (en) * 2012-07-18 2014-01-23 Hon Hai Precision Industry Co., Ltd. System and method for playing and transmitting network video
CN103595925A (zh) * 2013-11-15 2014-02-19 深圳市中兴移动通信有限公司 照片合成视频的方法和装置
CN104079835A (zh) * 2014-07-02 2014-10-01 深圳市中兴移动通信有限公司 拍摄星云视频的方法和装置
CN104079833A (zh) * 2014-07-02 2014-10-01 深圳市中兴移动通信有限公司 拍摄星轨视频的方法和装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7948681B2 (en) * 2006-08-30 2011-05-24 Conley Kenneth E Device for displaying a three dimensional image
CN101500082B (zh) * 2008-01-29 2011-08-24 鸿富锦精密工业(深圳)有限公司 相机及其个人化方法
CN102647449B (zh) * 2012-03-20 2016-01-27 西安联客信息技术有限公司 基于云服务的智能摄影方法、装置及移动终端
CN103841323A (zh) * 2014-02-20 2014-06-04 小米科技有限责任公司 配置拍摄参数的方法、装置和终端设备
CN103888683B (zh) * 2014-03-24 2015-05-27 深圳市中兴移动通信有限公司 移动终端及其拍摄方法

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1497945A (zh) * 2002-09-26 2004-05-19 ������������ʽ���� 图像生成设备和图像生成方法
EP1515276A2 (en) * 2003-09-12 2005-03-16 Hewlett-Packard Development Company, L.P. Generating animated image file from video data file frames
CN101242474A (zh) * 2007-02-09 2008-08-13 中国科学院计算技术研究所 一种照片在小尺寸屏幕设备上的动态视频浏览方法
CN102143318A (zh) * 2011-01-21 2011-08-03 北京中星微电子有限公司 一种视频文件的生成方法及装置
US20140025782A1 (en) * 2012-07-18 2014-01-23 Hon Hai Precision Industry Co., Ltd. System and method for playing and transmitting network video
CN103595925A (zh) * 2013-11-15 2014-02-19 深圳市中兴移动通信有限公司 照片合成视频的方法和装置
CN104079835A (zh) * 2014-07-02 2014-10-01 深圳市中兴移动通信有限公司 拍摄星云视频的方法和装置
CN104079833A (zh) * 2014-07-02 2014-10-01 深圳市中兴移动通信有限公司 拍摄星轨视频的方法和装置

Also Published As

Publication number Publication date
CN104079835A (zh) 2014-10-01

Similar Documents

Publication Publication Date Title
WO2016000515A1 (zh) 拍摄星轨视频的方法、装置和计算机存储介质
WO2016023406A1 (zh) 物体运动轨迹的拍摄方法、移动终端和计算机存储介质
WO2016000514A1 (zh) 拍摄星云视频的方法和装置和计算机存储介质
WO2016011859A1 (zh) 拍摄光绘视频的方法、移动终端和计算机存储介质
US20170302848A1 (en) Photographing method, device and computer storage medium
US9538080B2 (en) Digital photographing apparatus, methods of controlling the same, and computer-readable storage medium to increase success rates in panoramic photography
KR101890305B1 (ko) 촬영 장치, 그 제어 방법, 및 컴퓨터 판독가능 기록매체
KR101643321B1 (ko) 디지털 촬영 장치, 그 제어 방법, 및 컴퓨터 판독가능 매체
JP2014120844A (ja) 画像処理装置および撮像装置
US20120274796A1 (en) Digital photographing apparatus, method of controlling the same, and computer-readable storage medium
WO2015143841A1 (zh) 移动终端及其拍摄方法
US9684988B2 (en) Imaging device, image processing method, and recording medium
KR101700366B1 (ko) 디지털 촬영 장치 및 이의 제어 방법
WO2016008359A1 (zh) 物体运动轨迹图像的合成方法、装置及计算机存储介质
WO2016029746A1 (zh) 拍摄方法、拍摄装置及计算机存储介质
JP6325841B2 (ja) 撮像装置、撮像方法、およびプログラム
US20130162853A1 (en) Digital photographing apparatus and method of controlling the same
JP5642344B2 (ja) 画像処理装置、画像処理方法、および、画像処理プログラム
US10127455B2 (en) Apparatus and method of providing thumbnail image of moving picture
JP2010081260A (ja) 撮像装置及びそのプログラム
JP2013172372A (ja) 撮像装置及び撮像方法
KR20130031176A (ko) 디스플레이 장치 및 방법
JP6280780B2 (ja) 撮像装置、撮像装置の制御方法、及びプログラム
WO2017071560A1 (zh) 图片处理方法及装置
US9538071B2 (en) Electronic apparatus having a photographing function and method of controlling the same

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 24/05/17)

122 Ep: pct application non-entry in european phase

Ref document number: 15815054

Country of ref document: EP

Kind code of ref document: A1