WO2016019786A1 - Object motion trajectory photographing method and system, and computer storage medium - Google Patents

Object motion trajectory photographing method and system, and computer storage medium Download PDF

Info

Publication number
WO2016019786A1
WO2016019786A1 PCT/CN2015/083992 CN2015083992W WO2016019786A1 WO 2016019786 A1 WO2016019786 A1 WO 2016019786A1 CN 2015083992 W CN2015083992 W CN 2015083992W WO 2016019786 A1 WO2016019786 A1 WO 2016019786A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
object motion
motion track
synthesized
shooting
Prior art date
Application number
PCT/CN2015/083992
Other languages
French (fr)
Chinese (zh)
Inventor
刘林汶
Original Assignee
努比亚技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 努比亚技术有限公司 filed Critical 努比亚技术有限公司
Publication of WO2016019786A1 publication Critical patent/WO2016019786A1/en

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

Definitions

  • the present invention relates to the field of photographing technology, and in particular, to an object motion trajectory photographing method, system, and computer storage medium.
  • the exposure time usually takes 20 to 60 minutes, which requires a professional camera such as a SLR camera, because it is equipped with a photosensitive hardware that can support long-term continuous exposure.
  • a professional camera such as a SLR camera
  • existing terminals such as mobile phones and tablet computers (PADs) can also shoot object motion trajectories through long-time exposure.
  • the shooting time of object motion trajectory is longer, often It takes several hours or even several hours of continuous shooting. If the shooting is interrupted due to special conditions such as insufficient power or storage space, you need to shoot again, which makes shooting difficult.
  • Embodiments of the present invention are directed to providing an object motion trajectory shooting method, system, and computer storage medium, which can implement breakpoint continuous shooting, prevent an object motion trajectory shooting time from being extended due to interruption, and reduce the difficulty of shooting an object motion trajectory.
  • a method for photographing an object motion trajectory includes:
  • the terminal When the terminal detects an object motion trajectory shooting instruction, the terminal takes a picture every preset exposure time;
  • the terminal will capture the image
  • the slice is synthesized with the object motion track picture before the mark position to generate an object motion track video.
  • the terminal when determining that a flag is set in the preset storage path, the terminal combines the captured picture with an object motion track picture before the flag bit to generate an object motion track video.
  • the terminal uses the last object motion track picture before the flag bit as the first synthesized object motion track picture;
  • the terminal When the picture is captured, the terminal synthesizes the captured picture with the last synthesized object motion track picture to generate a new object motion track picture;
  • the terminal stores the synthesized plurality of object motion trajectory pictures to the preset storage path and based on the plurality of object motion trajectory pictures synthesized during the shooting, and the object motion trajectory before the flag position
  • the picture generates an object motion track video.
  • the terminal when determining that a flag is set in the preset storage path, the terminal combines the captured picture with an object motion track picture before the flag bit to generate an object motion track video.
  • the terminal sorts the captured pictures according to the shooting time, and extracts the captured pictures according to the arrangement order;
  • the terminal uses the last object motion track picture before the flag position as the first synthesized object motion track picture
  • the terminal synthesizes the extracted picture with the last synthesized object motion track picture to generate a new object motion track picture;
  • the terminal stores the synthesized plurality of object motion trajectory pictures to the preset storage path and generates an object motion trajectory video based on the plurality of object motion trajectory pictures synthesized during the shooting process and the picture before the flag position.
  • the method for capturing an object motion track before the terminal captures a picture every preset exposure time when detecting an object motion trajectory shooting instruction further includes:
  • the terminal detects the interrupt request in real time or periodically;
  • the terminal When detecting the interrupt request, the terminal dumps the captured data in the cache to the preset storage path, and adds a preset flag bit at the end of the captured data.
  • the terminal detects an interrupt request in real time or periodically, including:
  • the terminal triggers the interrupt request when the remaining power value of the terminal is less than a preset power threshold; or the terminal triggers when the remaining storage space of the terminal is less than a preset storage space threshold The interrupt request.
  • the method for shooting the object motion track further includes:
  • the first picture is used as the first synthesized object motion track picture
  • the terminal After capturing the first picture, the terminal combines the captured picture with the last synthesized object motion track picture to generate a new object motion track picture for each picture captured;
  • the terminal stores the synthesized plurality of object motion trajectory pictures to the preset storage path slice and generates an object motion trajectory video based on the plurality of object motion trajectory pictures synthesized during the shooting process.
  • the method for capturing the object motion track further includes:
  • the terminal sorts the captured pictures according to the shooting time, and extracts the captured pictures according to the arrangement order;
  • the terminal When extracting the first picture, the terminal takes the first picture as the first time a composite motion picture of the object;
  • the terminal After extracting the first picture, the terminal extracts a picture, and combines the extracted picture with the last synthesized object motion track picture to generate a new object motion track picture;
  • the terminal stores the synthesized plurality of object motion trajectory pictures to the preset storage path and generates an object motion trajectory video based on the plurality of object motion trajectory pictures synthesized during the shooting process.
  • An embodiment of the present invention further provides an object motion trajectory photographing system, where the object motion trajectory photographing system includes:
  • the shooting module is further configured to: when detecting an object motion trajectory shooting instruction, the terminal takes a picture every preset exposure time;
  • Determining a module configured to determine whether a preset flag bit is set in the preset storage path
  • a generating module configured to: when the determining module determines that a flag is set in the preset storage path, synthesize a picture captured by the shooting module with a last picture before the flag bit to generate an object motion Track image or object motion track video.
  • the generating module includes:
  • the processing unit is configured to determine, when the flag is set in the preset storage path, the last object motion track picture before the flag bit as the first synthesized object motion track picture;
  • a picture synthesizing unit configured to: when the picture is captured, synthesize the captured picture with the object motion track picture synthesized last time in the processing unit to generate a new object motion track picture;
  • a generating unit configured to store, at the end of shooting, a plurality of object motion track images synthesized by the picture synthesizing unit to the preset storage path and based on a plurality of object motion track pictures synthesized in the current shooting process, and The motion picture of the object before the flag is generated to generate an object motion track video.
  • the generating module includes:
  • a sorting unit configured to determine that a flag is set in the preset storage path, and the captured pictures are sorted according to a shooting time at the end of shooting;
  • a picture extracting unit configured to extract the captured picture according to an arrangement order obtained by the sorting unit
  • the processing unit is configured to use the last object motion track picture before the flag bit as the first synthesized object motion track picture
  • a picture synthesizing unit configured to, when the picture extracting unit extracts one picture, synthesize the extracted picture with the object motion track picture synthesized last time in the processing unit to generate a new object motion track picture
  • a generating unit configured to store a plurality of object motion trajectory images synthesized by the picture synthesizing unit to the preset storage path and based on a plurality of object motion trajectory pictures synthesized during the shooting process, and a picture before the flag bit Generate an object motion track video.
  • the object motion trajectory photographing system further includes:
  • the detecting module is configured to detect an interrupt request in real time or timing during the shooting process of the object motion track;
  • a storage module configured to: when the detecting module detects the interrupt request, dump the captured data in the cache to the preset storage path, and add a preset flag at the end of the captured data .
  • the object motion trajectory photographing system further includes:
  • the triggering module is configured to trigger the interrupt request when the remaining power value of the terminal is less than a preset power threshold; or trigger the interrupt request when the remaining storage space of the terminal is less than a preset storage space threshold.
  • the object motion trajectory photographing system further includes:
  • a processing module configured to determine that a flag is not set in the preset storage path When the first picture is captured, the first picture is used as the first synthesized object motion track picture;
  • a picture synthesizing module configured to, after capturing the first picture, synthesize a picture, and combine the captured picture with the last synthesized object motion track picture in the processing module to generate a new object motion Track picture
  • the generating module is configured to, when the shooting ends, store the plurality of object motion track images synthesized by the picture synthesizing module to the preset storage path piece and generate the plurality of object motion track images synthesized during the shooting process.
  • Object motion track video is configured to, when the shooting ends, store the plurality of object motion track images synthesized by the picture synthesizing module to the preset storage path piece and generate the plurality of object motion track images synthesized during the shooting process.
  • the object motion trajectory photographing system further includes:
  • a sorting module configured to determine that the captured image is not set in the preset storage path, and the captured images are sorted according to the shooting time at the end of the shooting;
  • a picture extraction module configured to extract the captured picture according to an arrangement order obtained by the sorting module
  • a processing module configured to use the first picture as the first synthesized object motion track picture when the picture extraction module extracts the first picture
  • a picture synthesizing module configured to: after the picture extraction module extracts the first picture, each time a picture is extracted, the extracted picture is combined with the last synthesized object motion track picture to generate a new object motion Track picture
  • the generating module is further configured to store the plurality of object motion track images synthesized by the picture synthesis module to the preset storage path and generate an object motion track video based on the plurality of object motion track pictures synthesized during the shooting process.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are configured to execute the object motion trajectory shooting method according to the embodiment of the invention.
  • Method, system and computer storage medium for shooting an object motion trajectory When an object motion trajectory shooting instruction is detected, and a flag bit is set in a preset storage path, a corresponding object motion trajectory video is generated based on the shooting data corresponding to the flag bit and the shooting data of the shooting, to ensure object motion.
  • the camera can be re-shooted and the corresponding object motion trajectory video is generated based on the previously captured shooting data and the currently captured image, preventing the object trajectory shooting time from being extended due to the interruption, and reducing the motion trajectory of the object. Difficulty.
  • FIG. 1 is a schematic flow chart of a first embodiment of a method for photographing an object motion trajectory according to the present invention
  • FIG. 2 is a schematic flow chart of the refinement of the first embodiment of step S30 of FIG. 1;
  • FIG. 3 is a schematic flow chart of the second embodiment of step S30 of FIG. 1;
  • FIG. 4 is a schematic flow chart of a second embodiment of a method for photographing an object motion trajectory according to the present invention.
  • FIG. 5 is a schematic flow chart of a third embodiment of a method for photographing an object motion trajectory according to the present invention.
  • FIG. 6 is a schematic flow chart of a fourth embodiment of a method for photographing an object motion trajectory according to the present invention.
  • FIG. 7 is a schematic diagram of functional modules of a first embodiment of an object motion trajectory photographing system according to the present invention.
  • FIG. 8 is a schematic diagram of a refinement function module of the first embodiment of the generation module of FIG. 7;
  • FIG. 9 is a schematic diagram of a refinement function module of the second embodiment of the generation module of FIG. 7;
  • FIG. 10 is a schematic diagram of functional modules of a second embodiment of an object motion trajectory photographing system according to the present invention.
  • Figure 11 is a block diagram showing the main electrical configuration of a camera of one embodiment of the present invention.
  • the implementation body of the object motion trajectory photographing method of the present invention may be a mobile phone, a tablet computer, a camera, a camera, etc., or any The motion track of the object of the invention can be realized
  • the terminal or device of the photographing method is not limited in the embodiment of the present invention.
  • the types of object motion include: object motion, the photographer is stationary; or, the object Still, the photographer moves; or, the relative motion between the object and the photographer.
  • Embodiments of the present invention provide a method for photographing an object motion trajectory.
  • FIG. 1 is a schematic flow chart of a first embodiment of a method for photographing an object motion trajectory according to the present invention.
  • step S10 when detecting the object motion track shooting instruction, the terminal takes a picture every preset exposure time.
  • the terminal may set photographing parameters such as exposure time, sensitivity (ISO), resolution, exposure compensation, noise reduction, etc., when detecting an object motion trajectory shooting instruction or before shooting, the photographing parameter may be
  • the terminal automatically sets or adjusts, and the terminal may preset different parameters according to different object motion scenes over different regions, for the user to select a suitable object motion scene for shooting, or the terminal automatically selects according to the current state of the sky space.
  • the object is moving in the scene for shooting.
  • the step S10 includes: when detecting an object motion trajectory shooting instruction, the terminal displays an object motion scene selection interface, so that the user selects a corresponding object motion scene based on the object motion scene selection interface displayed by the terminal;
  • the terminal locks an object motion scene corresponding to the selection instruction, and adjusts a corresponding shooting parameter based on the locked object motion scene; Take a picture with the exposure time set.
  • the object motion trajectory shooting instruction may be triggered based on a physical shooting button, a virtual shooting button, a voice, a gesture, and a control command sent by a third-party control terminal on the terminal.
  • the terminal may immediately start taking a picture, or The preset preset duration starts to take a picture; wherein the delaying the preset duration to start taking the picture is advantageous to avoid taking a picture when the user shakes the mobile phone by pressing the shooting button or triggering the virtual shooting button.
  • step S20 the terminal determines whether a preset flag bit is set in the preset storage path.
  • the flag bit is configured to indicate that there may be an interruption in the picture data during the shooting process, and the flag bit can be set by the user or the developer.
  • Step S30 When it is determined that the flag is set in the preset storage path, the terminal combines the captured picture with the object motion track picture before the flag bit to generate an object motion track video.
  • the terminal when the flag is set in the preset storage path, the terminal combines the captured picture with the object motion track picture before the flag bit to generate an object motion track video.
  • Ways include:
  • FIG. 2 is a schematic diagram of a refinement process of the first embodiment of step S30.
  • step S30 includes:
  • Step S31 when it is determined that the flag bit is set in the preset storage path, the terminal uses the last object motion track picture before the flag bit as the first synthesized object motion track picture;
  • Step S32 when the picture is captured, the terminal synthesizes the captured picture with the last synthesized object motion track picture to generate a new object motion track picture;
  • Step S33 at the end of the shooting, the terminal stores the synthesized plurality of object motion track pictures to the preset storage path and based on the plurality of object motion track pictures synthesized during the shooting process, and before the flag bit
  • the object motion trajectory image generates an object motion trajectory video.
  • FIG. 3 is a schematic diagram of the refinement process of the second embodiment of step S30.
  • step S30 includes:
  • Step S34 determining that a flag is set in the preset storage path, at the end of shooting,
  • the terminal sorts the captured pictures according to the shooting time, and extracts the captured pictures according to the arrangement order;
  • Step S35 the terminal uses the last object motion track picture before the flag bit as the first synthesized object motion track picture
  • Step S36 the terminal combines the extracted picture with the last synthesized object motion track picture to generate a new object motion track picture every time a picture is extracted;
  • Step S37 the terminal stores the synthesized plurality of object motion track images to the preset storage path and generates an object motion track based on the plurality of object motion track pictures synthesized in the shooting process and the picture before the flag bit. video.
  • the method for synthesizing the first picture captured by the terminal and the last object motion track picture before the previously captured flag may be: The picture pixel and the pixel of the last object motion track picture before the flag bit are superimposed to generate a picture to be synthesized; or, according to the brightness value information of the pixel in the first picture and the last object motion track picture before the flag bit The brightness value information of the middle pixel generates a picture to be synthesized.
  • the terminal displays the selection interface for the user to select whether Generating an object motion trajectory picture or video based on the previously taken picture; when detecting an instruction to generate an object motion trajectory video based on the previous picture, the terminal will capture the first picture before the previously captured flag The last object motion track picture is synthesized as the picture to be combined.
  • a new object motion trajectory picture may be generated by performing pixel superposition or pixel replacement in the image synthesis.
  • a preferred scheme may generate a new object motion trajectory image for pixel replacement. As follows: determining whether the brightness value of the pixel in the picture captured at the same position is greater than the brightness value of the pixel of the last synthesized object motion track picture; determining that the brightness value of the pixel in the picture captured at the same position is greater than the last synthesized When the brightness value of the pixel of the object motion track picture is used, the pixel in the last synthesized object motion track picture is replaced with the pixel corresponding to the position in the captured picture, and a new object motion track picture is generated.
  • the preset exposure time is preferably 5 to 10 seconds (S).
  • the synthesized motion trajectory picture can be subjected to noise reduction processing, and at the same time, according to the exposure degree of the current captured picture, the synthesis ratio of the motion picture of the newly synthesized object is controlled, and overexposure is suppressed.
  • each of the pictures to be combined is video-encoded and processed into common video codes such as MPEG-4, H264, H263, and VP8 to generate an object motion track video.
  • common video codes such as MPEG-4, H264, H263, and VP8.
  • the object motion trajectory shooting method of the embodiment is configured to detect an object motion trajectory shooting instruction and set a flag bit in a preset storage path, based on the shooting data corresponding to the flag bit and the shooting data of the shooting.
  • Corresponding object motion trajectory video to ensure that when the object motion trajectory is interrupted, the camera can be re-shooted and the corresponding object motion trajectory video is generated based on the previously captured shooting data and the currently captured image to prevent the object from being interrupted.
  • the trajectory shooting time is extended, which reduces the difficulty of shooting the object's motion trajectory.
  • the present invention is proposed based on the first embodiment.
  • the method before the step S10, the method further includes:
  • step S40 during the shooting of the object motion track, the terminal detects the interrupt request in real time or timing.
  • the interrupt request may be triggered in multiple manners, which may be illustrated by the following example:
  • the terminal When the power value of the terminal is less than a preset power threshold, the terminal triggers the interrupt request.
  • the remaining power of the terminal can be detected in real time or at a time, and the interrupt request can be triggered when the remaining power of the terminal is less than the preset power threshold.
  • the terminal triggers the interrupt request when the remaining storage space of the terminal is less than a preset storage space threshold.
  • the remaining storage space of the terminal may be detected in real time or periodically, and the interrupt request may be triggered when the remaining storage space of the terminal is less than the preset storage space threshold.
  • Step S50 When detecting the interrupt request, the terminal dumps the captured data in the cache to the preset storage path, and adds a preset flag bit at the end of the captured data.
  • the preset storage path corresponds to a certain folder of a certain storage device, and the corresponding storage device is a non-volatile storage device, and the stored data is not erased while power is off, the preset The storage path can be set by the user.
  • the terminal when detecting that the user generates an instruction of the star track video or the star track picture based on the shooting data of the end adding the identification bit, the terminal generates a star track video or a star track picture based on the shooting data, and Deleting the shooting data corresponding to the flag bit; or, in a preset time interval, the user re-shooting the star track video, the terminal is based on the number of shots According to the generated star track video or the star track picture, the shooting data corresponding to the flag bit is deleted.
  • the method for shooting an object motion trajectory includes:
  • Step S60 When it is determined that the flag is not set in the preset storage path, when the first picture is captured, the first picture is used as the first synthesized object motion track picture;
  • Step S70 after the first picture is captured, the terminal combines the captured picture with the last synthesized object motion track picture to generate a new object motion track picture every time a picture is captured;
  • Step S80 at the end of the shooting, the terminal stores the synthesized plurality of object motion track pictures to the preset storage path piece and generates an object motion track video based on the plurality of object motion track pictures synthesized during the shooting process.
  • a new object motion trajectory picture may be generated by performing pixel superposition or pixel replacement in the image synthesis.
  • a preferred scheme may generate a new object motion trajectory image for pixel replacement. As follows: determining whether the brightness value of the pixel in the picture captured at the same position is greater than the brightness value of the pixel of the last synthesized object motion track picture; determining that the brightness value of the pixel in the picture captured at the same position is greater than the last synthesized When the brightness value of the pixel of the object motion track picture is used, the pixel in the last synthesized object motion track picture is replaced with the pixel corresponding to the position in the captured picture, and a new object motion track picture is generated.
  • the preset exposure time is preferably 5 to 10 s.
  • the synthesized motion trajectory picture can be subjected to noise reduction processing, and at the same time, according to the exposure degree of the captured picture, the synthesis ratio of the motion picture of the newly synthesized object is controlled, and the overexposure is suppressed.
  • the video to be combined is video encoded and processed as Common video encoding such as MPEG-4, H264, H263, VP8, etc., to generate object motion trajectory video.
  • Common video encoding such as MPEG-4, H264, H263, VP8, etc.
  • the fourth embodiment of the object motion trajectory shooting method of the present invention is proposed based on the first to third embodiments,
  • the method for shooting an object motion trajectory includes:
  • Step S90 When it is determined that the flag is not set in the preset storage path, the terminal sorts the captured pictures according to the shooting time, and extracts the captured pictures according to the arrangement order;
  • Step S100 when extracting the first picture, the terminal uses the first picture as the first synthesized object motion track picture;
  • Step S110 after extracting the first picture, the terminal extracts a picture, and combines the extracted picture with the last synthesized object motion track picture to generate a new object motion track picture;
  • Step S120 The terminal stores the synthesized plurality of object motion track pictures to the preset storage path and generates an object motion track video based on the plurality of object motion track pictures synthesized during the shooting process.
  • a new object motion trajectory picture may be generated by performing pixel superposition or pixel replacement in the image synthesis.
  • a preferred scheme may generate a new object motion trajectory image for pixel replacement. As follows: determining whether the brightness value of the pixel in the picture extracted by the same position is greater than the brightness value of the pixel of the last synthesized object motion track picture; determining the brightness value of the pixel in the picture extracted at the same position is greater than the last synthesized When the brightness value of the pixel of the object motion track picture is the motion track of the object synthesized last time The pixels in the slice are replaced with pixels of corresponding positions in the captured picture, and a new object motion track picture is generated.
  • the preset exposure time is preferably 5 to 10 s.
  • the synthesized motion trajectory picture can be subjected to noise reduction processing, and at the same time, according to the exposure degree of the current captured picture, the synthesis ratio of the motion picture of the newly synthesized object is controlled, and overexposure is suppressed.
  • each of the pictures to be combined is video-encoded and processed into common video codes such as MPEG-4, H264, H263, and VP8 to generate an object motion track video.
  • common video codes such as MPEG-4, H264, H263, and VP8.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are configured to execute the object motion trajectory shooting method according to the embodiment of the invention.
  • the invention further provides an object motion trajectory photographing system of the invention.
  • FIG. 7 is a schematic diagram of functional modules of a first embodiment of an object motion trajectory photographing system according to the present invention.
  • the functional block diagram shown in FIG. 7 is merely an exemplary diagram of an embodiment, and those skilled in the art can surround the functional module of the object motion trajectory shooting system shown in FIG.
  • the function modules of the present invention are not limited to the technical solutions of the present invention.
  • the core is the function that each functional module of the defined name has to achieve.
  • the shooting module 10 is further configured to preset every time an object motion shooting instruction is detected. Taking a picture of the exposure time;
  • the determining module 20 is configured to determine whether a preset flag bit is set in the preset storage path
  • the generating module 30 is configured to: when the determining module 20 determines that the flag is set in the preset storage path, synthesize the picture captured by the shooting module 10 and the object motion track picture before the flag position, Generate an object motion track video.
  • the terminal when the shooting module 10 detects an object motion trajectory shooting instruction or before shooting, the terminal may set a current exposure time, ISO, resolution, exposure compensation, noise reduction, and the like, the camera parameters.
  • the terminal can be automatically set or adjusted by the terminal, and the terminal can also preset different parameters according to different object motion scenes over different regions, for the user to select an appropriate object motion scene for shooting, or the terminal automatically selects according to the state of the current starry sky. Shoot the scene with the appropriate object motion.
  • the photographing module 10 includes: an interface providing unit configured to display an object motion scene selection interface when the object motion track shooting instruction is detected, so that the user selects a corresponding object motion based on the object motion scene selection interface displayed by the terminal. a scene; when detecting a selection instruction triggered by the user based on the object motion scene selection interface, locking an object motion scene corresponding to the selection instruction, and adjusting a shooting parameter thereof based on the locked object motion scene; the shooting module 10, Configure to take a picture every preset exposure time.
  • the object motion trajectory shooting instruction may be triggered based on a physical shooting button, a virtual shooting button, a voice, a gesture, and a control command sent by a third-party control terminal on the terminal.
  • the terminal may immediately start capturing a picture, or may delay the preset time length to start taking a picture; wherein the delaying the preset time length to start taking the picture is beneficial to avoid the user pressing Take a picture when you shoot the button or trigger the virtual shooting button to shake the phone.
  • the flag bit is configured to indicate that the picture data may be interrupted during the shooting process, and the flag bit may be set by a user or a developer.
  • the manner in which the terminal combines the captured picture with the object motion track picture before the flag bit to generate the object motion track video includes:
  • FIG. 8 is a schematic diagram of a refinement function module of the first embodiment of the generating module 30.
  • the generating module 30 includes:
  • the processing unit 31 is configured to determine, when the flag is set in the preset storage path, the last object motion track picture before the flag bit as the first synthesized object motion track picture;
  • the picture synthesizing unit 32 is configured to combine the captured picture with the object motion track picture synthesized last time in the processing unit 31 to generate a new object motion track picture when the picture is captured;
  • the generating unit 33 is configured to, when the shooting ends, store the plurality of object motion track images synthesized by the picture synthesizing unit 32 to the preset storage path and based on the plurality of object motion track pictures synthesized during the shooting, and The object motion track picture before the flag bit generates an object motion track video.
  • FIG. 9 is a schematic diagram of the refinement function module of the second embodiment of the generation module 30.
  • the generation module 30 includes:
  • the sorting unit 34 is configured to determine that when the flag is set in the preset storage path, the captured pictures are sorted according to the shooting time at the end of shooting;
  • the picture extracting unit 35 is configured to extract the captured picture according to the sorting order obtained by the sorting unit 34;
  • the processing unit 36 is configured to use the last object motion track picture before the flag bit as the first synthesized object motion track picture
  • the picture synthesizing unit 37 is configured to synthesize the extracted picture with the object motion track picture synthesized last time in the processing unit 36 every time the picture extracting unit 35 extracts a picture to generate a new object motion track picture. ;
  • the generating unit 38 is configured to store the plurality of object motion track pictures synthesized by the picture synthesizing unit 37 to the preset storage path and based on the plurality of object motion track pictures synthesized during the shooting process, and before the flag bit The picture generates an object motion track video.
  • the picture synthesizing unit may combine the currently captured first picture with the last picture before the previously captured flag bit: the picture synthesizing unit will be the first A picture pixel and a pixel of the last object motion track picture before the flag bit are superimposed to generate a new object motion track picture; or the picture synthesis unit is based on the brightness value information and the flag bit of the pixel in the first picture The brightness value information of the pixel in the last object motion track picture is generated, and a new object motion track picture is generated.
  • the image synthesizing unit is further configured to display the selection interface when the flag is set in the preset storage path. For the user to select whether to generate an object motion trajectory video based on the previously taken picture; when receiving the instruction based on the previous shooting of the picture to generate the object video, the first picture taken before the last picture before the previously taken flag is moved The trajectory picture is synthesized as a new object motion trajectory picture.
  • a new object motion track picture may be generated by means of pixel superposition or pixel replacement.
  • one of the solutions generates a new object in a pixel replacement manner.
  • the picture synthesis unit specifically includes: a determination subunit configured to determine whether a brightness value of a pixel in a picture captured at the same location is greater than a brightness value of a pixel of the last synthesized object motion track picture; Configuring, by the determining subunit, determining a brightness value of a pixel in a picture currently captured at the same location When the brightness value of the pixel of the motion track image of the object synthesized last time is greater than the pixel of the corresponding position in the currently captured image, a pixel of the corresponding object motion track is generated.
  • the preset exposure time is preferably 5 to 10 s.
  • the generating module 30 can perform noise reduction processing on the synthesized motion track picture when synthesizing the new object motion track picture, and also control the synthetic ratio of the motion picture of the newly synthesized object according to the exposure degree of the current captured picture, thereby suppressing overexposure. produce.
  • the generating module 30 may perform video encoding processing on each picture to be combined at the end of shooting, and process it into common video encodings such as MPEG-4, H264, H263, and VP8 to generate an object motion track. video. It can be understood by those skilled in the art that each time a new object motion track picture is synthesized, the processing module 30 performs video coding on the synthesized object motion track picture, and based on each video coded when the shooting is completed. The object motion trajectory image generates an object motion trajectory video.
  • the object motion trajectory photographing system proposed in this embodiment generates an object motion trajectory shooting instruction, and when a flag is set in a preset storage path, the shooting data corresponding to the flag bit and the shooting data of the shooting are generated.
  • Corresponding object motion trajectory video to ensure that when the object motion trajectory is interrupted, it can be re-shooted and generate corresponding object motion trajectory video based on the previously captured shooting data and the currently captured image to prevent object motion caused by interruption.
  • the trajectory shooting time is extended to reduce the difficulty of shooting the object's motion trajectory.
  • the object motion trajectory photographing system further includes:
  • the detecting module 40 is configured to detect an interrupt request in real time or periodically during the shooting process of the object motion track;
  • the storage module 50 is configured to: when the detecting module 40 detects the interrupt request, dump the captured data in the cache to the preset storage path, and add a preset at the end of the captured data. Sign bit.
  • the interrupt request may be triggered in multiple manners, which may be illustrated by the following example:
  • the triggering module is configured to trigger the interrupt request when the remaining power value of the terminal is less than a preset power threshold.
  • the detecting module 40 can detect the remaining power of the terminal in real time or timing. When the remaining power of the terminal is less than the preset power threshold, the triggering module can trigger the terminal request.
  • the triggering module is configured to trigger the interrupt request when the remaining storage space of the terminal is less than a preset storage space threshold.
  • the detecting module 40 can detect the remaining storage space of the terminal in real time or timing. When the remaining storage space of the terminal is less than the preset storage space threshold, the trigger module can trigger the terminal request. .
  • the object motion trajectory photographing system further includes a storage module 50 configured to: when the detecting module detects the interrupt request, dump the captured data in the cache to the preset storage path, and Add a preset flag to the end of the shooting data.
  • the preset storage path corresponds to a certain folder of a certain storage device, and the corresponding storage device is a non-volatile storage device, and the stored data is not erased while power is off, the preset storage The path can be set by the user.
  • the processing module 30 when the user is detected to add an identifier based on the end, the processing module 30 generates a star track video or a star track picture based on the shooting data, and deletes the shooting data corresponding to the flag bit; or, in a preset During the time interval, the user re-shoots the star track video, and the processing module 30 generates a star track video or a star track picture based on the shooting data, and deletes the shooting data corresponding to the flag bit.
  • the object motion trajectory photographing system further includes:
  • a processing module configured to determine that a flag is not set in the preset storage path, and when the first picture is captured, the first picture is used as a first synthesized object motion track picture;
  • a picture synthesizing module configured to, after capturing the first picture, synthesize a picture, and combine the captured picture with the last synthesized object motion track picture in the processing module to generate a new object motion Track picture
  • the generating module 30 is further configured to: when the shooting ends, store the plurality of object motion track images synthesized by the picture synthesizing module to the preset storage path piece and based on the plurality of object motion tracks synthesized during the shooting process The picture generates an object motion track video.
  • the image synthesizing module may generate a new object motion trajectory image by means of pixel superposition or pixel replacement in the image synthesis.
  • the image synthesizing module may perform the image synthesizing.
  • the pixel replacement method generates a new object motion trajectory picture.
  • the picture synthesizing module includes: a determining unit configured to determine whether a brightness value of a pixel in a picture captured at the same location is greater than a brightness value of a pixel of the last synthesized object motion track picture; When the determining unit determines that the brightness value of the pixel in the picture captured at the same position is greater than the brightness value of the pixel of the last synthesized object motion track picture, the pixel in the last synthesized object motion track picture is replaced with the shooting. A pixel corresponding to the position in the picture is generated, and a new object motion track picture is generated.
  • the preset exposure time is preferably 5 to 10 s.
  • the picture synthesis module can perform noise reduction processing on the synthesized motion track picture when synthesizing the new object motion track picture, and also control the synthetic ratio of the motion picture of the newly synthesized object according to the exposure degree of the current captured picture, thereby suppressing overexposure. produce.
  • the generating module 30 may perform video encoding processing on each picture to be combined at the end of shooting, and process the image into MPEG-4, H264, H263, VP8 and other common video coding to generate object motion track video. It can be understood by those skilled in the art that each time a new object motion track picture is synthesized, the generating module 30 video-encodes the synthesized object motion track picture, and generates an object based on each video-coded object motion track picture. Motion track video.
  • the object motion trajectory photographing system further includes:
  • a sorting module configured to determine that the captured image is not set in the preset storage path, and the captured images are sorted according to the shooting time at the end of the shooting;
  • a picture extraction module configured to extract the captured picture according to an arrangement order obtained by the sorting module
  • a processing module configured to use the first picture as the first synthesized object motion track picture when the picture extraction module extracts the first picture
  • a picture synthesizing module configured to: after the picture extraction module extracts the first picture, each time a picture is extracted, the extracted picture is combined with the last synthesized object motion track picture to generate a new object motion Track picture
  • the generating module 30 is further configured to store a plurality of object motion track images synthesized by the picture synthesis module to the preset storage path and generate an object motion track video based on the plurality of object motion track pictures synthesized during the shooting process. .
  • the picture synthesis module when the picture synthesis module performs image synthesis, it may be superimposed by pixels or In a manner of pixel replacement, a new object motion trajectory picture is generated.
  • a preferred scheme of the picture synthesis module for performing picture synthesis may generate a new object motion track picture in a pixel replacement manner.
  • the picture synthesizing module includes: a determining unit configured to determine whether a brightness value of a pixel in a picture extracted by the same location is greater than a brightness value of a pixel of the last synthesized object motion track picture; When the determining unit determines that the brightness value of the pixel in the picture extracted by the same location is greater than the brightness value of the pixel of the last synthesized object motion track picture, the pixel in the last synthesized object motion track picture is replaced with the A pixel corresponding to the position in the extracted image is generated, and a new motion picture of the object is generated.
  • the preset exposure time is preferably 5 to 10 s.
  • the picture synthesis module can perform noise reduction processing on the synthesized motion track picture when synthesizing the new object motion track picture, and also control the synthetic ratio of the motion picture of the newly synthesized object according to the exposure degree of the current captured picture, thereby suppressing overexposure. produce.
  • the generating module 30 may perform video encoding processing on each picture to be combined at the end of shooting, and process the image into MPEG-4, H264, H263, VP8 and other common video coding to generate object motion track video. It can be understood by those skilled in the art that each time a new object motion trajectory picture is synthesized, the generating module 30 performs video coding on the synthesized object motion trajectory picture, and generates a motion trajectory picture based on each video encoded object. Object motion track video.
  • the object motion trajectory photographing system may be implemented by a digital camera, a device having a camera (such as a mobile phone, a tablet computer, a notebook computer, etc.) in an actual application, and the object motion trajectory photographing system
  • the imaging module 10, the determining module 20, the generating module 30, and the detecting module 40 are all applicable to a central processing unit (CPU) and a digital signal processor in the object motion tracking system.
  • DSP Digital Signal Processor
  • FPGA Field-Programmable Gate Array
  • FIG 11 is a block diagram showing the main electrical configuration of a camera of one 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.
  • Photodiodes constituting each pixel are two-dimensionally arranged in a matrix on the imaging element 102. 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 OB subtraction on image data based on the output of the image pickup element 102.
  • image processing such as texture, white balance adjustment, color matrix operation, gamma conversion, color difference signal processing, noise removal processing, simultaneous processing, edge processing, and the like.
  • 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. At the time of decompression, 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. Further, in the present embodiment, the JPEG method is adopted as the image compression/decompression method. However, the compression/decompression method is not limited thereto, and other compression/decompression methods such as MPEG, TIFF, and H.264 may be used.
  • 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 operation unit 113 includes but is not limited to a physical button or a virtual button, and the entity or virtual button may be a power button, a camera button, an edit button, a dynamic image button, a reproduction button, a menu button, a cross button, an OK button, a delete button, and an enlarge button.
  • the operation members such as various input buttons and various input keys are detected, and the operation states of these operation members are detected.
  • 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. (Similarly, 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 on the 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 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 disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative, examples
  • the division of the unit is only a logical function division, and the actual implementation may have another division manner, for example, multiple units or components may be combined, or may be integrated into another system, or some features may be ignored. Or not.
  • the coupling, or direct coupling, or communication connection of the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical, mechanical or other forms. of.
  • the units described above as separate components may or may not be physically separated, and the components displayed as the unit may or may not be physical units, that is, may be located in one place or distributed to multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated into one unit;
  • the unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed.
  • the foregoing storage device includes the following steps: the foregoing storage medium includes: a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
  • ROM read-only memory
  • RAM random access memory
  • magnetic disk or an optical disk.
  • optical disk A medium that can store program code.
  • the above-described integrated unit of the present invention may be stored in a computer readable storage medium if it is implemented in the form of a software function module and sold or used as a standalone product.
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions. Enabling a computer device (which may be a personal computer, server, or network device, etc.) to perform all of the methods of the various embodiments of the present invention or section.
  • the foregoing storage medium includes various media that can store program codes, such as a mobile storage device, a ROM, a RAM, a magnetic disk, or an optical disk.
  • a corresponding object motion trajectory video is generated based on the shooting data corresponding to the flag bit and the shooting data of the shooting.
  • the camera can be re-shooted and the corresponding object motion track video can be generated based on the previously captured shooting data and the currently captured picture to prevent the object movement track from being delayed due to the interruption. Reduce the difficulty of shooting the motion of the object.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Image Processing (AREA)

Abstract

Disclosed is an object motion trajectory photographing method. When an object motion trajectory photographing instruction is detected by a terminal, same photographs one picture at every preset exposure time; the terminal determines whether or not a preset flag is provided in a preset storage path; upon determination that the flag is provided in the preset storage path, the terminal composites the photographed pictures with object motion trajectory pictures coming before the flag to produce an object motion trajectory video. Also disclosed are an object motion trajectory photographing system and a computer storage medium.

Description

物体运动轨迹拍摄方法、系统及计算机存储介质Object motion trajectory shooting method, system and computer storage medium 技术领域Technical field
本发明涉及拍摄技术领域,尤其涉及物体运动轨迹拍摄方法、系统及计算机存储介质。The present invention relates to the field of photographing technology, and in particular, to an object motion trajectory photographing method, system, and computer storage medium.
背景技术Background technique
在进行物体运动轨迹的拍摄时,曝光时间通常需要20~60分钟,需要专业的摄像装置如单反相机才能实现,因其配置了能够支持长时间持续曝光的感光硬件。随着技术的发展,现有的终端如手机、平板电脑(PAD)也可通过长时间曝光进行物体运动轨迹的拍摄,但由于终端上拍摄硬件的限制,物体运动轨迹的拍摄时间较长,往往需要几个小时甚至几个小时的连续拍摄,如遇到电量不足或者存储空间的等特殊情况导致拍摄中断,则需要重新拍摄,因此导致拍摄难度较高。When shooting an object's motion trajectory, the exposure time usually takes 20 to 60 minutes, which requires a professional camera such as a SLR camera, because it is equipped with a photosensitive hardware that can support long-term continuous exposure. With the development of technology, existing terminals such as mobile phones and tablet computers (PADs) can also shoot object motion trajectories through long-time exposure. However, due to the limitation of shooting hardware on the terminal, the shooting time of object motion trajectory is longer, often It takes several hours or even several hours of continuous shooting. If the shooting is interrupted due to special conditions such as insufficient power or storage space, you need to shoot again, which makes shooting difficult.
发明内容Summary of the invention
本发明实施例期望提供一种物体运动轨迹拍摄方法、系统及计算机存储介质,能够实现断点续拍,防止因中断导致物体运动轨迹拍摄时间延长,降低物体运动轨迹拍摄的难度。Embodiments of the present invention are directed to providing an object motion trajectory shooting method, system, and computer storage medium, which can implement breakpoint continuous shooting, prevent an object motion trajectory shooting time from being extended due to interruption, and reduce the difficulty of shooting an object motion trajectory.
为实现上述目的,本发明实施例提供的一种物体运动轨迹拍摄方法,所述物体运动轨迹拍摄方法包括:In order to achieve the above object, a method for photographing an object motion trajectory according to an embodiment of the present invention includes:
终端在侦测到物体运动轨迹拍摄指令时,每隔预设的曝光时间拍摄一张图片;When the terminal detects an object motion trajectory shooting instruction, the terminal takes a picture every preset exposure time;
所述终端判断预设的存储路径中是否设置预设的标志位;Determining, by the terminal, whether a preset flag bit is set in the preset storage path;
确定所述预设的存储路径中设置有标志位时,所述终端将拍摄到的图 片与所述标志位之前的物体运动轨迹图片进行合成,生成物体运动轨迹视频。Determining, when the flag is set in the preset storage path, the terminal will capture the image The slice is synthesized with the object motion track picture before the mark position to generate an object motion track video.
作为一种实施方式,所述确定所述预设的存储路径中设置有标志位时,所述终端将拍摄到的图片与所述标志位之前的物体运动轨迹图片进行合成,生成物体运动轨迹视频,包括:As an implementation manner, when determining that a flag is set in the preset storage path, the terminal combines the captured picture with an object motion track picture before the flag bit to generate an object motion track video. ,include:
确定所述预设的存储路径中设置有标志位时,所述终端将所述标志位之前的最后一张物体运动轨迹图片作为第一次合成的物体运动轨迹图片;When it is determined that the flag is set in the preset storage path, the terminal uses the last object motion track picture before the flag bit as the first synthesized object motion track picture;
在拍摄到图片时,所述终端将拍摄到的图片与上一次合成的物体运动轨迹图片进行合成生成新的物体运动轨迹图片;When the picture is captured, the terminal synthesizes the captured picture with the last synthesized object motion track picture to generate a new object motion track picture;
在拍摄结束时,所述终端将合成的多个物体运动轨迹图片存储至所述预设的存储路径并基于拍摄过程中合成的多个物体运动轨迹图片,以及所述标志位之前的物体运动轨迹图片生成物体运动轨迹视频。At the end of the shooting, the terminal stores the synthesized plurality of object motion trajectory pictures to the preset storage path and based on the plurality of object motion trajectory pictures synthesized during the shooting, and the object motion trajectory before the flag position The picture generates an object motion track video.
作为一种实施方式,所述确定所述预设的存储路径中设置有标志位时,所述终端将拍摄到的图片与所述标志位之前的物体运动轨迹图片进行合成,生成物体运动轨迹视频,包括:As an implementation manner, when determining that a flag is set in the preset storage path, the terminal combines the captured picture with an object motion track picture before the flag bit to generate an object motion track video. ,include:
确定所述预设的存储路径中设置有标志位时,在拍摄结束时,所述终端按照拍摄时间对拍摄到的图片进行排序,并按照排列顺序提取拍摄得到的图片;When it is determined that the flag is set in the preset storage path, when the shooting ends, the terminal sorts the captured pictures according to the shooting time, and extracts the captured pictures according to the arrangement order;
所述终端将标志位之前的最后一张物体运动轨迹图片作为第一次合成的物体运动轨迹图片;The terminal uses the last object motion track picture before the flag position as the first synthesized object motion track picture;
在每提取一张图片时,所述终端将提取的图片与上一次合成的物体运动轨迹图片进行合成以生成新的物体运动轨迹图片;Each time a picture is extracted, the terminal synthesizes the extracted picture with the last synthesized object motion track picture to generate a new object motion track picture;
所述终端将合成的多个物体运动轨迹图片存储至所述预设的存储路径并基于拍摄过程中合成的多个物体运动轨迹图片,以及所述标志位之前的图片生成物体运动轨迹视频。 The terminal stores the synthesized plurality of object motion trajectory pictures to the preset storage path and generates an object motion trajectory video based on the plurality of object motion trajectory pictures synthesized during the shooting process and the picture before the flag position.
作为一种实施方式,所述终端在侦测到物体运动轨迹拍摄指令时,每隔预设的曝光时间拍摄一张图片之前,所述物体运动轨迹拍摄方法还包括:In one embodiment, the method for capturing an object motion track before the terminal captures a picture every preset exposure time when detecting an object motion trajectory shooting instruction further includes:
在物体运动轨迹拍摄过程中,所述终端实时或定时侦测中断请求;During the shooting of the object motion track, the terminal detects the interrupt request in real time or periodically;
当侦测到所述中断请求时,所述终端将缓存中的拍摄数据转存至所述预设的存储路径,在所述拍摄数据的末端添加预设的标志位。When detecting the interrupt request, the terminal dumps the captured data in the cache to the preset storage path, and adds a preset flag bit at the end of the captured data.
作为一种实施方式,所述终端实时或定时侦测中断请求,包括:As an implementation manner, the terminal detects an interrupt request in real time or periodically, including:
在所述终端的剩余电量值小于预设的电量阀值时,所述终端触发所述中断请求;或者,在所述终端的剩余存储空间小于预设的存储空间阀值时,所述终端触发所述中断请求。The terminal triggers the interrupt request when the remaining power value of the terminal is less than a preset power threshold; or the terminal triggers when the remaining storage space of the terminal is less than a preset storage space threshold The interrupt request.
作为一种实施方式,所述终端判断预设的存储路径中是否设置预设的标志位之后,所述物体运动轨迹拍摄方法还包括:As an implementation manner, after the terminal determines whether a preset flag is set in the preset storage path, the method for shooting the object motion track further includes:
确定所述预设的存储路径中未设置标志位时,在拍摄到第一张图片时,将所述第一张图片作为第一次合成的物体运动轨迹图片;When it is determined that the flag is not set in the preset storage path, when the first picture is captured, the first picture is used as the first synthesized object motion track picture;
在拍摄到所述第一张图片之后,所述终端每拍摄到一张图片,将拍摄到的图片与上一次合成的物体运动轨迹图片进行合成生成新的物体运动轨迹图片;After capturing the first picture, the terminal combines the captured picture with the last synthesized object motion track picture to generate a new object motion track picture for each picture captured;
在拍摄结束时,所述终端将合成的多个物体运动轨迹图片存储至所述预设的存储路径片并基于拍摄过程中合成的多个物体运动轨迹图片生成物体运动轨迹视频。At the end of the shooting, the terminal stores the synthesized plurality of object motion trajectory pictures to the preset storage path slice and generates an object motion trajectory video based on the plurality of object motion trajectory pictures synthesized during the shooting process.
作为一种实施方式,所述终端确定预设的存储路径中是否设置预设的标志位之后,所述物体运动轨迹拍摄方法还包括:As an embodiment, after the terminal determines whether a preset flag is set in the preset storage path, the method for capturing the object motion track further includes:
确定所述预设的存储路径中未设置标志位时,则在拍摄结束时,所述终端按照拍摄时间对拍摄到的图片进行排序,并按照排列顺序提取拍摄得到的图片;When it is determined that the flag is not set in the preset storage path, when the shooting ends, the terminal sorts the captured pictures according to the shooting time, and extracts the captured pictures according to the arrangement order;
在提取到所述第一张图片时,所述终端将所述第一张图片作为第一次 合成的物体运动轨迹图片;When extracting the first picture, the terminal takes the first picture as the first time a composite motion picture of the object;
在提取到所述第一张图片之后,所述终端每提取到一张图片,将提取到的图片与上一次合成的物体运动轨迹图片进行合成生成新的物体运动轨迹图片;After extracting the first picture, the terminal extracts a picture, and combines the extracted picture with the last synthesized object motion track picture to generate a new object motion track picture;
所述终端将合成的多个物体运动轨迹图片存储至所述预设的存储路径并基于拍摄过程中合成的多个物体运动轨迹图片生成物体运动轨迹视频。The terminal stores the synthesized plurality of object motion trajectory pictures to the preset storage path and generates an object motion trajectory video based on the plurality of object motion trajectory pictures synthesized during the shooting process.
本发明实施例还提出一种物体运动轨迹拍摄系统,所述物体运动轨迹拍摄系统包括:An embodiment of the present invention further provides an object motion trajectory photographing system, where the object motion trajectory photographing system includes:
拍摄模块,还配置为在侦测到物体运动轨迹拍摄指令时,所述终端每隔预设的曝光时间拍摄一张图片;The shooting module is further configured to: when detecting an object motion trajectory shooting instruction, the terminal takes a picture every preset exposure time;
确定模块,配置为判断预设的存储路径中是否设置预设的标志位;Determining a module, configured to determine whether a preset flag bit is set in the preset storage path;
生成模块,配置为所述确定模块确定所述预设的存储路径中设置有标志位时,将所述拍摄模块拍摄到的图片与所述标志位之前的最后一张图片进行合成,生成物体运动轨迹图片或者物体运动轨迹视频。a generating module, configured to: when the determining module determines that a flag is set in the preset storage path, synthesize a picture captured by the shooting module with a last picture before the flag bit to generate an object motion Track image or object motion track video.
作为一种实施方式,所述生成模块包括:As an implementation manner, the generating module includes:
处理单元,配置为确定所述预设的存储路径中设置有标志位时,将所述标志位之前的最后一张物体运动轨迹图片作为第一次合成的物体运动轨迹图片;The processing unit is configured to determine, when the flag is set in the preset storage path, the last object motion track picture before the flag bit as the first synthesized object motion track picture;
图片合成单元,配置为在拍摄到图片时,将拍摄到的图片与所述处理单元中上一次合成的物体运动轨迹图片进行合成生成新的物体运动轨迹图片;a picture synthesizing unit configured to: when the picture is captured, synthesize the captured picture with the object motion track picture synthesized last time in the processing unit to generate a new object motion track picture;
生成单元,配置为在拍摄结束时,将所述图片合成单元合成的多个物体运动轨迹图片存储至所述预设的存储路径并基于当前拍摄过程中合成的多个物体运动轨迹图片,以及所述标志位之前的物体运动轨迹图片生成物体运动轨迹视频。 a generating unit configured to store, at the end of shooting, a plurality of object motion track images synthesized by the picture synthesizing unit to the preset storage path and based on a plurality of object motion track pictures synthesized in the current shooting process, and The motion picture of the object before the flag is generated to generate an object motion track video.
作为一种实施方式,所述生成模块包括:As an implementation manner, the generating module includes:
排序单元,配置为确定所述预设的存储路径中设置有标志位时,在拍摄结束时,按照拍摄时间对拍摄到的图片进行排序;a sorting unit configured to determine that a flag is set in the preset storage path, and the captured pictures are sorted according to a shooting time at the end of shooting;
图片提取单元,配置为按照所述排序单元获得的排列顺序提取拍摄得到的图片;a picture extracting unit configured to extract the captured picture according to an arrangement order obtained by the sorting unit;
处理单元,配置为将标志位之前的最后一张物体运动轨迹图片作为第一次合成的物体运动轨迹图片;The processing unit is configured to use the last object motion track picture before the flag bit as the first synthesized object motion track picture;
图片合成单元,配置为在所述图片提取单元每提取一张图片时,将提取的图片与所述处理单元中上一次合成的物体运动轨迹图片进行合成以生成新的物体运动轨迹图片;a picture synthesizing unit configured to, when the picture extracting unit extracts one picture, synthesize the extracted picture with the object motion track picture synthesized last time in the processing unit to generate a new object motion track picture;
生成单元,配置为将所述图片合成单元合成的多个物体运动轨迹图片存储至所述预设的存储路径并基于拍摄过程中合成的多个物体运动轨迹图片,以及所述标志位之前的图片生成物体运动轨迹视频。a generating unit configured to store a plurality of object motion trajectory images synthesized by the picture synthesizing unit to the preset storage path and based on a plurality of object motion trajectory pictures synthesized during the shooting process, and a picture before the flag bit Generate an object motion track video.
作为一种实施方式,所述物体运动轨迹拍摄系统还包括:As an embodiment, the object motion trajectory photographing system further includes:
侦测模块,配置为在物体运动轨迹拍摄过程中,实时或定时侦测中断请求;The detecting module is configured to detect an interrupt request in real time or timing during the shooting process of the object motion track;
存储模块,配置为当所述侦测模块侦测到所述中断请求时,将缓存中的拍摄数据转存至所述预设的存储路径,在所述拍摄数据的末端添加预设的标志位。a storage module, configured to: when the detecting module detects the interrupt request, dump the captured data in the cache to the preset storage path, and add a preset flag at the end of the captured data .
作为一种实施方式,所述物体运动轨迹拍摄系统还包括:As an embodiment, the object motion trajectory photographing system further includes:
触发模块,配置为在终端的剩余电量值小于预设的电量阀值时,触发所述中断请求;或者,在终端剩余存储空间小于预设的存储空间阀值时,触发所述中断请求。The triggering module is configured to trigger the interrupt request when the remaining power value of the terminal is less than a preset power threshold; or trigger the interrupt request when the remaining storage space of the terminal is less than a preset storage space threshold.
作为一种实施方式,所述物体运动轨迹拍摄系统还包括:As an embodiment, the object motion trajectory photographing system further includes:
处理模块,配置为确定所述预设的存储路径中未设置标志位时,在拍 摄到第一张图片时,将所述第一张图片作为第一次合成的物体运动轨迹图片;a processing module configured to determine that a flag is not set in the preset storage path When the first picture is captured, the first picture is used as the first synthesized object motion track picture;
图片合成模块,配置为在拍摄到所述第一张图片之后,每拍摄到一张图片,将拍摄到的图片与所述处理模块中上一次合成的物体运动轨迹图片进行合成生成新的物体运动轨迹图片;a picture synthesizing module configured to, after capturing the first picture, synthesize a picture, and combine the captured picture with the last synthesized object motion track picture in the processing module to generate a new object motion Track picture
所述生成模块,配置为在拍摄结束时,将所述图片合成模块合成的多个物体运动轨迹图片存储至所述预设的存储路径片并基于拍摄过程中合成的多个物体运动轨迹图片生成物体运动轨迹视频。The generating module is configured to, when the shooting ends, store the plurality of object motion track images synthesized by the picture synthesizing module to the preset storage path piece and generate the plurality of object motion track images synthesized during the shooting process. Object motion track video.
作为一种实施方式,所述物体运动轨迹拍摄系统还包括:As an embodiment, the object motion trajectory photographing system further includes:
排序模块,配置为确定所述预设的存储路径中未设置标志位时,则在拍摄结束时,按照拍摄时间对拍摄到的图片进行排序;a sorting module configured to determine that the captured image is not set in the preset storage path, and the captured images are sorted according to the shooting time at the end of the shooting;
图片提取模块,配置为按照所述排序模块获得的排列顺序提取拍摄得到的图片;a picture extraction module, configured to extract the captured picture according to an arrangement order obtained by the sorting module;
处理模块,配置为在所述图片提取模块提取到第一张图片时,将所述第一张图片作为第一次合成的物体运动轨迹图片;a processing module, configured to use the first picture as the first synthesized object motion track picture when the picture extraction module extracts the first picture;
图片合成模块,配置为在所述图片提取模块提取到所述第一张图片之后,每提取到一张图片,将提取到的图片与上一次合成的物体运动轨迹图片进行合成生成新的物体运动轨迹图片;a picture synthesizing module, configured to: after the picture extraction module extracts the first picture, each time a picture is extracted, the extracted picture is combined with the last synthesized object motion track picture to generate a new object motion Track picture
所述生成模块,还配置为将所述图片合成模块合成的多个物体运动轨迹图片存储至所述预设的存储路径并基于拍摄过程中合成的多个物体运动轨迹图片生成物体运动轨迹视频。The generating module is further configured to store the plurality of object motion track images synthesized by the picture synthesis module to the preset storage path and generate an object motion track video based on the plurality of object motion track pictures synthesized during the shooting process.
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令配置为执行本发明实施例所述的物体运动轨迹拍摄方法。The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are configured to execute the object motion trajectory shooting method according to the embodiment of the invention.
本发明实施例提出的物体运动轨迹拍摄方法、系统及计算机存储介质, 在侦测到物体运动轨迹拍摄指令,且在预设的存储路径中设置有标志位时,基于标志位对应的拍摄数据以及此次拍摄的拍摄数据生成对应的物体运动轨迹视频,以保证物体运动轨迹的拍摄过程中在出现中断时,可重新进行拍摄并基于之前拍摄的拍摄数据以及当前拍摄的图片生成对应的物体运动轨迹视频,防止因中断导致物体运动轨迹拍摄时间延长,降低物体运动轨迹拍摄的难度。Method, system and computer storage medium for shooting an object motion trajectory according to embodiments of the present invention, When an object motion trajectory shooting instruction is detected, and a flag bit is set in a preset storage path, a corresponding object motion trajectory video is generated based on the shooting data corresponding to the flag bit and the shooting data of the shooting, to ensure object motion. During the interruption of the trajectory, when the interruption occurs, the camera can be re-shooted and the corresponding object motion trajectory video is generated based on the previously captured shooting data and the currently captured image, preventing the object trajectory shooting time from being extended due to the interruption, and reducing the motion trajectory of the object. Difficulty.
附图说明DRAWINGS
图1为本发明物体运动轨迹拍摄方法第一实施例的流程示意图;1 is a schematic flow chart of a first embodiment of a method for photographing an object motion trajectory according to the present invention;
图2为图1中步骤S30第一实施例的细化流程示意图;2 is a schematic flow chart of the refinement of the first embodiment of step S30 of FIG. 1;
图3为图1中步骤S30第二实施例的细化流程示意图;3 is a schematic flow chart of the second embodiment of step S30 of FIG. 1;
图4为本发明物体运动轨迹拍摄方法第二实施例的流程示意图;4 is a schematic flow chart of a second embodiment of a method for photographing an object motion trajectory according to the present invention;
图5为本发明物体运动轨迹拍摄方法第三实施例的流程示意图;5 is a schematic flow chart of a third embodiment of a method for photographing an object motion trajectory according to the present invention;
图6为本发明物体运动轨迹拍摄方法第四实施例的流程示意图;6 is a schematic flow chart of a fourth embodiment of a method for photographing an object motion trajectory according to the present invention;
图7为本发明物体运动轨迹拍摄系统第一实施例的功能模块示意图;7 is a schematic diagram of functional modules of a first embodiment of an object motion trajectory photographing system according to the present invention;
图8为图7中生成模块第一实施例的细化功能模块示意图;8 is a schematic diagram of a refinement function module of the first embodiment of the generation module of FIG. 7;
图9为图7中生成模块第二实施例的细化功能模块示意图;9 is a schematic diagram of a refinement function module of the second embodiment of the generation module of FIG. 7;
图10为本发明物体运动轨迹拍摄系统第二实施例的功能模块示意图;10 is a schematic diagram of functional modules of a second embodiment of an object motion trajectory photographing system according to the present invention;
图11是表示本发明的一个实施例的相机的主要电气结构的框图。Figure 11 is a block diagram showing the main electrical configuration of a camera of one embodiment of the present invention.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本领域技术人员可以理解的,本发明物体运动轨迹拍摄方法的下述实施例中,实施本发明物体运动轨迹拍摄方法的实施主体可以为手机、平板电脑、照相机、摄影机等终端,也可以是任何可实现本发明物体运动轨迹 拍摄方法的终端或装置,本发明实施例中并不对此进行限定,在本发明物体运动轨迹拍摄方法和系统的下述实施例中物体运动的类型包括:物体运动,拍摄者静止;或者,物体静止,拍摄者运动;或者,物体和拍摄者之间相对运动。It can be understood by those skilled in the art that in the following embodiments of the object motion trajectory photographing method of the present invention, the implementation body of the object motion trajectory photographing method of the present invention may be a mobile phone, a tablet computer, a camera, a camera, etc., or any The motion track of the object of the invention can be realized The terminal or device of the photographing method is not limited in the embodiment of the present invention. In the following embodiments of the object motion trajectory photographing method and system of the present invention, the types of object motion include: object motion, the photographer is stationary; or, the object Still, the photographer moves; or, the relative motion between the object and the photographer.
本发明实施例提供一种物体运动轨迹拍摄方法。Embodiments of the present invention provide a method for photographing an object motion trajectory.
参照图1,图1为本发明物体运动轨迹拍摄方法第一实施例的流程示意图。1 is a schematic flow chart of a first embodiment of a method for photographing an object motion trajectory according to the present invention.
本实施例提出的物体运动轨迹拍摄方法,包括:The method for shooting an object motion trajectory proposed in this embodiment includes:
步骤S10,终端在侦测到物体运动轨迹拍摄指令时,每隔预设的曝光时间拍摄一张图片。In step S10, when detecting the object motion track shooting instruction, the terminal takes a picture every preset exposure time.
这里,所述终端在侦测到物体运动轨迹拍摄指令时或者拍摄之前,可设定曝光时间、感光度(ISO)、分辨率、曝光补偿、降噪等拍照参数,所述拍照参数可由所述终端自动设定或调整,所述终端还可以根据不同地区上空不同的物体运动场景预设不同的参数,供用户拍摄时选择合适的物体运动场景进行拍摄,或者终端根据当前星空的状态自动选择合适的物体运动场景进行拍摄。Here, the terminal may set photographing parameters such as exposure time, sensitivity (ISO), resolution, exposure compensation, noise reduction, etc., when detecting an object motion trajectory shooting instruction or before shooting, the photographing parameter may be The terminal automatically sets or adjusts, and the terminal may preset different parameters according to different object motion scenes over different regions, for the user to select a suitable object motion scene for shooting, or the terminal automatically selects according to the current state of the sky space. The object is moving in the scene for shooting.
例如,步骤S10包括:在侦测到物体运动轨迹拍摄指令时,所述终端显示物体运动场景选择界面,以供用户基于终端显示的所述物体运动场景选择界面选择对应的物体运动场景;在侦测到用户基于所述物体运动场景选择界面触发的选择指令时,所述终端锁定所述选择指令对应的物体运动场景,并基于锁定的物体运动场景调整对应的拍摄参数;所述终端每隔预设的曝光时间拍摄一张图片。For example, the step S10 includes: when detecting an object motion trajectory shooting instruction, the terminal displays an object motion scene selection interface, so that the user selects a corresponding object motion scene based on the object motion scene selection interface displayed by the terminal; When the user selects a selection instruction triggered by the object motion scene selection interface, the terminal locks an object motion scene corresponding to the selection instruction, and adjusts a corresponding shooting parameter based on the locked object motion scene; Take a picture with the exposure time set.
所述物体运动轨迹拍摄指令,可基于终端上的实体拍摄按钮、虚拟拍摄按钮、语音、手势以及第三方控制终端发送的控制指令等触发。所述终端在侦测到所述物体运动轨迹拍摄指令时,可立即开始拍摄图片,也可以 延迟预设时长开始拍摄图片;其中,所述延迟预设时长开始拍摄图片有利于避免在用户因按动拍摄按钮或触发虚拟拍摄按钮而对手机造成抖动时,拍摄图片。The object motion trajectory shooting instruction may be triggered based on a physical shooting button, a virtual shooting button, a voice, a gesture, and a control command sent by a third-party control terminal on the terminal. When the terminal detects the motion track shooting instruction of the object, the terminal may immediately start taking a picture, or The preset preset duration starts to take a picture; wherein the delaying the preset duration to start taking the picture is advantageous to avoid taking a picture when the user shakes the mobile phone by pressing the shooting button or triggering the virtual shooting button.
步骤S20,所述终端判断预设的存储路径中是否设置预设的标志位。In step S20, the terminal determines whether a preset flag bit is set in the preset storage path.
所述标志位配置为表示图片数据在拍摄过程中可能存在中断的情况,所述标志位可由用户或者开发人员进行设定。The flag bit is configured to indicate that there may be an interruption in the picture data during the shooting process, and the flag bit can be set by the user or the developer.
步骤S30,确定所述预设的存储路径中设置有标志位时,所述终端将拍摄到的图片与标志位之前的物体运动轨迹图片进行合成,生成物体运动轨迹视频。Step S30: When it is determined that the flag is set in the preset storage path, the terminal combines the captured picture with the object motion track picture before the flag bit to generate an object motion track video.
在本实施例中,所述确定所述预设的存储路径中设置有标志位时,所述终端将拍摄到的图片与所述标志位之前的物体运动轨迹图片进行合成,生成物体运动轨迹视频的方式包括:In this embodiment, when the flag is set in the preset storage path, the terminal combines the captured picture with the object motion track picture before the flag bit to generate an object motion track video. Ways include:
1)参照图2,图2为步骤S30第一实施例的细化流程示意图,在本实施例中,步骤S30包括:1) Referring to FIG. 2, FIG. 2 is a schematic diagram of a refinement process of the first embodiment of step S30. In this embodiment, step S30 includes:
步骤S31,确定所述预设的存储路径中设置有标志位时,所述终端将所述标志位之前的最后一张物体运动轨迹图片作为第一次合成的物体运动轨迹图片;Step S31, when it is determined that the flag bit is set in the preset storage path, the terminal uses the last object motion track picture before the flag bit as the first synthesized object motion track picture;
步骤S32,在拍摄到图片时,所述终端将拍摄到的图片与上一次合成的物体运动轨迹图片进行合成生成新的物体运动轨迹图片;Step S32, when the picture is captured, the terminal synthesizes the captured picture with the last synthesized object motion track picture to generate a new object motion track picture;
步骤S33,在拍摄结束时,所述终端将合成的多个物体运动轨迹图片存储至所述预设的存储路径并基于拍摄过程中合成的多个物体运动轨迹图片,以及所述标志位之前的物体运动轨迹图片生成物体运动轨迹视频。Step S33, at the end of the shooting, the terminal stores the synthesized plurality of object motion track pictures to the preset storage path and based on the plurality of object motion track pictures synthesized during the shooting process, and before the flag bit The object motion trajectory image generates an object motion trajectory video.
2)参照图3,图3为步骤S30第二实施例的细化流程示意图,在本实施例中,步骤S30包括:2) Referring to FIG. 3, FIG. 3 is a schematic diagram of the refinement process of the second embodiment of step S30. In this embodiment, step S30 includes:
步骤S34,确定所述预设的存储路径中设置有标志位时,在拍摄结束时, 所述终端按照拍摄时间对拍摄到的图片进行排序,按照排列顺序提取拍摄得到的图片;Step S34, determining that a flag is set in the preset storage path, at the end of shooting, The terminal sorts the captured pictures according to the shooting time, and extracts the captured pictures according to the arrangement order;
步骤S35,所述终端将标志位之前的最后一张物体运动轨迹图片作为第一次合成的物体运动轨迹图片;Step S35, the terminal uses the last object motion track picture before the flag bit as the first synthesized object motion track picture;
步骤S36,在每提取一张图片时,所述终端将提取的图片与上一次合成的物体运动轨迹图片进行合成生成新的物体运动轨迹图片;Step S36, the terminal combines the extracted picture with the last synthesized object motion track picture to generate a new object motion track picture every time a picture is extracted;
步骤S37,所述终端将合成的多个物体运动轨迹图片存储至所述预设的存储路径并基于拍摄过程中合成的多个物体运动轨迹图片,以及所述标志位之前的图片生成物体运动轨迹视频。Step S37, the terminal stores the synthesized plurality of object motion track images to the preset storage path and generates an object motion track based on the plurality of object motion track pictures synthesized in the shooting process and the picture before the flag bit. video.
以上所列举出的两种生成物体运动轨迹视频的方式仅仅为示例性的,本领域技术人员利用本发明的技术思想,根据其具体需求所提出的其他生成物体运动轨迹视频的方式均在本发明的保护范围内,在此不进行一一穷举。The manners of generating the motion trajectory video of the object listed above are merely exemplary. Those skilled in the art utilize the technical idea of the present invention, and other methods for generating motion trajectories of the object according to the specific needs thereof are all in the present invention. Within the scope of protection, it is not exhaustive here.
本实施例中,所述终端在拍摄到第一张图片后,将拍摄到的第一张图片与之前拍摄的标志位之前的最后一张物体运动轨迹图片进行合成的方法可以是:将第一张图片像素和标志位之前的最后一张物体运动轨迹图片的像素进行叠加,生成待合成图片;或者,根据第一张图片中像素的亮度值信息及标志位之前的最后一张物体运动轨迹图片中像素的亮度值信息,生成待合成图片。In this embodiment, after the first picture is captured, the method for synthesizing the first picture captured by the terminal and the last object motion track picture before the previously captured flag may be: The picture pixel and the pixel of the last object motion track picture before the flag bit are superimposed to generate a picture to be synthesized; or, according to the brightness value information of the pixel in the first picture and the last object motion track picture before the flag bit The brightness value information of the middle pixel generates a picture to be synthesized.
本领域技术人员可以理解的是,为提高物体运动轨迹拍摄过程中图片合成的准确率,所述在预设的存储路径中设置有标志位时,所述终端显示选择界面,以供用户选择是否基于之前拍摄图片生成物体运动轨迹图片或视频;在侦测到选择基于之前拍摄图片生成物体运动轨迹视频的指令时,所述终端将拍摄到的第一张图片与之前拍摄的所述标志位之前的最后一张物体运动轨迹图片进行合成,作为待合成图片。 It can be understood by those skilled in the art that, in order to improve the accuracy of the image synthesis during the shooting process of the object, when the flag is set in the preset storage path, the terminal displays the selection interface for the user to select whether Generating an object motion trajectory picture or video based on the previously taken picture; when detecting an instruction to generate an object motion trajectory video based on the previous picture, the terminal will capture the first picture before the previously captured flag The last object motion track picture is synthesized as the picture to be combined.
在本实施例中,进行图片合成时可通过像素叠加或者像素替换的方式生成新的物体运动轨迹图片,在本实施例中优选方案可以为像素替换的方式生成新的物体运动轨迹图片,具体过程如下:判断同一位置拍摄到的图片中的像素的亮度值是否大于上一次合成的物体运动轨迹图片的像素的亮度值;在判定同一位置拍摄到的图片中的像素的亮度值大于上一次合成的物体运动轨迹图片的像素的亮度值时,则将上一次合成的物体运动轨迹图片中的像素替换为所述拍摄到的图片中对应位置的像素,生成新的物体运动轨迹图片。In this embodiment, a new object motion trajectory picture may be generated by performing pixel superposition or pixel replacement in the image synthesis. In this embodiment, a preferred scheme may generate a new object motion trajectory image for pixel replacement. As follows: determining whether the brightness value of the pixel in the picture captured at the same position is greater than the brightness value of the pixel of the last synthesized object motion track picture; determining that the brightness value of the pixel in the picture captured at the same position is greater than the last synthesized When the brightness value of the pixel of the object motion track picture is used, the pixel in the last synthesized object motion track picture is replaced with the pixel corresponding to the position in the captured picture, and a new object motion track picture is generated.
在本实施例中,所述预设的曝光时间优选5至10秒(S)。在合成新的物体运动轨迹图片时,可对合成的运动轨迹图片进行降噪处理,同时还根据当前拍摄图片曝光度,控制新合成物体运动轨迹图片的合成比例,抑制过曝产生。In the present embodiment, the preset exposure time is preferably 5 to 10 seconds (S). When synthesizing a new object motion trajectory picture, the synthesized motion trajectory picture can be subjected to noise reduction processing, and at the same time, according to the exposure degree of the current captured picture, the synthesis ratio of the motion picture of the newly synthesized object is controlled, and overexposure is suppressed.
在拍摄结束时,对各个待合成图片进行视频编码处理,将其处理为MPEG-4、H264、H263、VP8等常见视频编码,以生成物体运动轨迹视频。本领域技术人员可以理解的是,也可每合成一张新的物体运动轨迹图片,对合成的物体运动轨迹图片进行视频编码,基于各个经视频编码的物体运动轨迹图片生成物体运动轨迹视频。At the end of the shooting, each of the pictures to be combined is video-encoded and processed into common video codes such as MPEG-4, H264, H263, and VP8 to generate an object motion track video. It can be understood by those skilled in the art that each time a new object motion track picture is synthesized, the synthesized object motion track picture is video-encoded, and the object motion track video is generated based on each video-encoded object motion track picture.
本实施例提出的物体运动轨迹拍摄方法,在侦测到物体运动轨迹拍摄指令,且在预设的存储路径中设置有标志位时,基于标志位对应的拍摄数据以及此次拍摄的拍摄数据生成对应的物体运动轨迹视频,以保证物体运动轨迹的拍摄过程中在出现中断时,可重新进行拍摄并基于之前拍摄的拍摄数据以及当前拍摄的图片生成对应的物体运动轨迹视频,防止因中断导致物体运动轨迹拍摄时间延长,降低物体运动轨迹拍摄的难度。The object motion trajectory shooting method of the embodiment is configured to detect an object motion trajectory shooting instruction and set a flag bit in a preset storage path, based on the shooting data corresponding to the flag bit and the shooting data of the shooting. Corresponding object motion trajectory video, to ensure that when the object motion trajectory is interrupted, the camera can be re-shooted and the corresponding object motion trajectory video is generated based on the previously captured shooting data and the currently captured image to prevent the object from being interrupted. The trajectory shooting time is extended, which reduces the difficulty of shooting the object's motion trajectory.
作为另一实施方式,为防止因拍摄中断导致数据丢失,并避免在终端时重新进行物体运动轨迹的拍摄,参照图4,基于第一实施例提出本发明第 二实施例,在本实施例中,所述步骤S10之前还包括:As another embodiment, in order to prevent data loss due to interruption of shooting, and to avoid re-taking the motion trajectory of the object at the terminal, referring to FIG. 4, the present invention is proposed based on the first embodiment. In the second embodiment, before the step S10, the method further includes:
步骤S40,在物体运动轨迹拍摄过程中,所述终端实时或定时侦测中断请求。In step S40, during the shooting of the object motion track, the terminal detects the interrupt request in real time or timing.
在本实施例中,所述中断请求可通过多种方式触发,具体可通过以下示例进行说明:In this embodiment, the interrupt request may be triggered in multiple manners, which may be illustrated by the following example:
1)在所述终端的电量值小于预设的电量阀值时,所述终端触发所述中断请求。1) When the power value of the terminal is less than a preset power threshold, the terminal triggers the interrupt request.
在物体运动轨迹拍摄过程中,可实时或者定时侦测终端的剩余电量,在终端的剩余电量小于预设的电量阀值时,可触发中断请求。During the shooting process of the object motion track, the remaining power of the terminal can be detected in real time or at a time, and the interrupt request can be triggered when the remaining power of the terminal is less than the preset power threshold.
2)在所述终端的剩余存储空间小于预设的存储空间阀值时,所述终端触发所述中断请求。2) The terminal triggers the interrupt request when the remaining storage space of the terminal is less than a preset storage space threshold.
在物体运动轨迹拍摄过程中,可实时或者定时侦测终端的剩余存储空间,在终端的剩余存储空间小于预设的存储空间阀值时,可触发中断请求。During the shooting process of the object motion track, the remaining storage space of the terminal may be detected in real time or periodically, and the interrupt request may be triggered when the remaining storage space of the terminal is less than the preset storage space threshold.
以上所列举出的两种触发所述中断请求的方式仅仅为示例性的,本领域技术人员利用本发明的技术思想,根据其具体需求所提出的其他方式触发所述中断请求均在本发明的保护范围内,在此不进行一一穷举。The two methods for triggering the interrupt request listed above are merely exemplary. Those skilled in the art may use the technical idea of the present invention to trigger the interrupt request according to other manners of the specific needs thereof. Within the scope of protection, it is not exhaustive here.
步骤S50,当侦测到所述中断请求时,所述终端将缓存中的拍摄数据转存至所述预设的存储路径,在所述拍摄数据的末端添加预设的标志位。Step S50: When detecting the interrupt request, the terminal dumps the captured data in the cache to the preset storage path, and adds a preset flag bit at the end of the captured data.
所述预设的存储路径对应于某个存储装置的某个文件夹,所对应的存储装置为非易失性存储装置,不会在掉电的同时擦除存储的数据,所述预设的存储路径可由用户进行设置。The preset storage path corresponds to a certain folder of a certain storage device, and the corresponding storage device is a non-volatile storage device, and the stored data is not erased while power is off, the preset The storage path can be set by the user.
本领域技术人员可以理解的时,在侦测到用户基于末端添加标识位的拍摄数据生成星轨视频或者星轨图片的指令时,终端基于所述拍摄数据生成星轨视频或者星轨图片,并删除所述标志位对应的拍摄数据;或者,在预设的时间间隔内,用户为重新拍摄星轨视频,所述终端基于所述拍摄数 据生成星轨视频或者星轨图片,并删除所述标志位对应的拍摄数据。As can be understood by those skilled in the art, when detecting that the user generates an instruction of the star track video or the star track picture based on the shooting data of the end adding the identification bit, the terminal generates a star track video or a star track picture based on the shooting data, and Deleting the shooting data corresponding to the flag bit; or, in a preset time interval, the user re-shooting the star track video, the terminal is based on the number of shots According to the generated star track video or the star track picture, the shooting data corresponding to the flag bit is deleted.
作为另一实施方式,为提高在物体运动轨迹拍摄过程中物体运动轨迹图片合成的准确性,参照图5,基于第一和第二实施例提出本发明物体运动轨迹拍摄方法第三实施例,在本实施例中,所述步骤S20之后,所述物体运动轨迹拍摄方法包括:As another embodiment, in order to improve the accuracy of image motion trajectory image synthesis during object motion trajectory shooting, referring to FIG. 5, a third embodiment of the object motion trajectory photographing method of the present invention is proposed based on the first and second embodiments, In this embodiment, after the step S20, the method for shooting an object motion trajectory includes:
步骤S60,确定所述预设的存储路径中未设置标志位时,在拍摄到第一张图片时,将所述第一张图片作为第一次合成的物体运动轨迹图片;Step S60: When it is determined that the flag is not set in the preset storage path, when the first picture is captured, the first picture is used as the first synthesized object motion track picture;
步骤S70,在拍摄到第一张图片之后,所述终端每拍摄到一张图片,将拍摄到的图片与上一次合成的物体运动轨迹图片进行合成生成新的物体运动轨迹图片;Step S70, after the first picture is captured, the terminal combines the captured picture with the last synthesized object motion track picture to generate a new object motion track picture every time a picture is captured;
步骤S80,在拍摄结束时,所述终端将合成的多个物体运动轨迹图片存储至所述预设的存储路径片并基于拍摄过程中合成的多个物体运动轨迹图片生成物体运动轨迹视频。Step S80, at the end of the shooting, the terminal stores the synthesized plurality of object motion track pictures to the preset storage path piece and generates an object motion track video based on the plurality of object motion track pictures synthesized during the shooting process.
在本实施例中,进行图片合成时可通过像素叠加或者像素替换的方式生成新的物体运动轨迹图片,在本实施例中优选方案可以为像素替换的方式生成新的物体运动轨迹图片,具体过程如下:判断同一位置拍摄到的图片中的像素的亮度值是否大于上一次合成的物体运动轨迹图片的像素的亮度值;在判定同一位置拍摄到的图片中的像素的亮度值大于上一次合成的物体运动轨迹图片的像素的亮度值时,则将上一次合成的物体运动轨迹图片中的像素替换为所述拍摄到的图片中对应位置的像素,生成新的物体运动轨迹图片。In this embodiment, a new object motion trajectory picture may be generated by performing pixel superposition or pixel replacement in the image synthesis. In this embodiment, a preferred scheme may generate a new object motion trajectory image for pixel replacement. As follows: determining whether the brightness value of the pixel in the picture captured at the same position is greater than the brightness value of the pixel of the last synthesized object motion track picture; determining that the brightness value of the pixel in the picture captured at the same position is greater than the last synthesized When the brightness value of the pixel of the object motion track picture is used, the pixel in the last synthesized object motion track picture is replaced with the pixel corresponding to the position in the captured picture, and a new object motion track picture is generated.
在本实施例中,所述预设的曝光时间优选5至10S。在合成新的物体运动轨迹图片时,可对合成的运动轨迹图片进行降噪处理,同时还根据拍摄图片曝光度,控制新合成物体运动轨迹图片的合成比例,抑制过曝产生。In the embodiment, the preset exposure time is preferably 5 to 10 s. When synthesizing a new object motion trajectory picture, the synthesized motion trajectory picture can be subjected to noise reduction processing, and at the same time, according to the exposure degree of the captured picture, the synthesis ratio of the motion picture of the newly synthesized object is controlled, and the overexposure is suppressed.
在拍摄结束时,对各个待合成图片进行视频编码处理,将其处理为 MPEG-4、H264、H263、VP8等常见视频编码,以生成物体运动轨迹视频。本领域技术人员可以理解的是,也可每合成一张新的物体运动轨迹图片,对所述合成的物体运动轨迹图片进行视频编码,基于各个经视频编码的物体运动轨迹图片生成物体运动轨迹视频。At the end of the shooting, the video to be combined is video encoded and processed as Common video encoding such as MPEG-4, H264, H263, VP8, etc., to generate object motion trajectory video. It can be understood by those skilled in the art that each of the synthesized object motion track pictures can be video-encoded for each new object motion track picture, and the object motion track video is generated based on each video-coded object motion track picture. .
作为另一实施方式,为提高在物体运动轨迹拍摄过程中物体运动轨迹图片合成的准确性,参照图6,基于第一至第三实施例提出本发明物体运动轨迹拍摄方法第四实施例,在本实施例中,所述步骤S20之后,所述物体运动轨迹拍摄方法包括:As another embodiment, in order to improve the accuracy of the object motion trajectory picture synthesis during the object motion trajectory shooting, referring to FIG. 6, the fourth embodiment of the object motion trajectory shooting method of the present invention is proposed based on the first to third embodiments, In this embodiment, after the step S20, the method for shooting an object motion trajectory includes:
步骤S90,确定所述预设的存储路径中未设置标志位时,则在拍摄结束时,所述终端按照拍摄时间对拍摄到的图片进行排序,并按照排列顺序提取拍摄得到的图片;Step S90: When it is determined that the flag is not set in the preset storage path, the terminal sorts the captured pictures according to the shooting time, and extracts the captured pictures according to the arrangement order;
步骤S100,在提取到第一张图片时,所述终端将所述第一张图片作为第一次合成的物体运动轨迹图片;Step S100, when extracting the first picture, the terminal uses the first picture as the first synthesized object motion track picture;
步骤S110,在提取到所述第一张图片之后,所述终端每提取到一张图片,将提取到的图片与上一次合成的物体运动轨迹图片进行合成生成新的物体运动轨迹图片;Step S110, after extracting the first picture, the terminal extracts a picture, and combines the extracted picture with the last synthesized object motion track picture to generate a new object motion track picture;
步骤S120,所述终端将合成的多个物体运动轨迹图片存储至所述预设的存储路径并基于拍摄过程中合成的多个物体运动轨迹图片生成物体运动轨迹视频。Step S120: The terminal stores the synthesized plurality of object motion track pictures to the preset storage path and generates an object motion track video based on the plurality of object motion track pictures synthesized during the shooting process.
在本实施例中,进行图片合成时可通过像素叠加或者像素替换的方式生成新的物体运动轨迹图片,在本实施例中优选方案可以为像素替换的方式生成新的物体运动轨迹图片,具体过程如下:判断同一位置提取到的图片中的像素的亮度值是否大于上一次合成的物体运动轨迹图片的像素的亮度值;在判定同一位置提取到的图片中的像素的亮度值大于上一次合成的物体运动轨迹图片的像素的亮度值时,则将上一次合成的物体运动轨迹图 片中的像素替换为所述拍摄到的图片中对应位置的像素,生成新的物体运动轨迹图片。In this embodiment, a new object motion trajectory picture may be generated by performing pixel superposition or pixel replacement in the image synthesis. In this embodiment, a preferred scheme may generate a new object motion trajectory image for pixel replacement. As follows: determining whether the brightness value of the pixel in the picture extracted by the same position is greater than the brightness value of the pixel of the last synthesized object motion track picture; determining the brightness value of the pixel in the picture extracted at the same position is greater than the last synthesized When the brightness value of the pixel of the object motion track picture is the motion track of the object synthesized last time The pixels in the slice are replaced with pixels of corresponding positions in the captured picture, and a new object motion track picture is generated.
在本实施例中,所述预设的曝光时间优选5至10S。在合成新的物体运动轨迹图片时,可对合成的运动轨迹图片进行降噪处理,同时还根据当前拍摄图片曝光度,控制新合成物体运动轨迹图片的合成比例,抑制过曝产生。In the embodiment, the preset exposure time is preferably 5 to 10 s. When synthesizing a new object motion trajectory picture, the synthesized motion trajectory picture can be subjected to noise reduction processing, and at the same time, according to the exposure degree of the current captured picture, the synthesis ratio of the motion picture of the newly synthesized object is controlled, and overexposure is suppressed.
在拍摄结束时,对各个待合成图片进行视频编码处理,将其处理为MPEG-4、H264、H263、VP8等常见视频编码,以生成物体运动轨迹视频。本领域技术人员可以理解的是,也可每合成一张新的物体运动轨迹图片,对该合成的物体运动轨迹图片进行视频编码,基于各个经视频编码的物体运动轨迹图片生成物体运动轨迹视频。At the end of the shooting, each of the pictures to be combined is video-encoded and processed into common video codes such as MPEG-4, H264, H263, and VP8 to generate an object motion track video. It can be understood by those skilled in the art that each time a new object motion trajectory picture is synthesized, the synthesized object motion trajectory picture is video-encoded, and an object motion trajectory video is generated based on each video-coded object motion trajectory picture.
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令配置为执行本发明实施例所述的物体运动轨迹拍摄方法。The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are configured to execute the object motion trajectory shooting method according to the embodiment of the invention.
本发明进一步提供一种本发明物体运动轨迹拍摄系统。The invention further provides an object motion trajectory photographing system of the invention.
参照图7,图7为本发明物体运动轨迹拍摄系统第一实施例的功能模块示意图。Referring to FIG. 7, FIG. 7 is a schematic diagram of functional modules of a first embodiment of an object motion trajectory photographing system according to the present invention.
需要强调的是,对本领域的技术人员来说,图7所示功能模块图仅仅是一个实施例的示例图,本领域的技术人员围绕图7所示的物体运动轨迹拍摄系统的功能模块,可轻易进行新的功能模块的补充;各功能模块的名称是自定义名称,仅用于辅助理解该物体运动轨迹拍摄系统的各个程序功能块,不用于限定本发明的技术方案,本发明技术方案的核心是,各自定义名称的功能模块所要达成的功能。It should be emphasized that, for those skilled in the art, the functional block diagram shown in FIG. 7 is merely an exemplary diagram of an embodiment, and those skilled in the art can surround the functional module of the object motion trajectory shooting system shown in FIG. The function modules of the present invention are not limited to the technical solutions of the present invention. The core is the function that each functional module of the defined name has to achieve.
本实施例提出的物体运动轨迹拍摄系统,包括:The object motion trajectory photographing system proposed in this embodiment includes:
拍摄模块10,还配置为在侦测到物体运动轨迹拍摄指令时,每隔预设 的曝光时间拍摄一张图片;The shooting module 10 is further configured to preset every time an object motion shooting instruction is detected. Taking a picture of the exposure time;
确定模块20,配置为判断预设的存储路径中是否设置预设的标志位;The determining module 20 is configured to determine whether a preset flag bit is set in the preset storage path;
生成模块30,配置为所述确定模块20确定所述预设的存储路径中设置有标志位时,将所述拍摄模块10拍摄到的图片与所述标志位之前的物体运动轨迹图片进行合成,生成物体运动轨迹视频。The generating module 30 is configured to: when the determining module 20 determines that the flag is set in the preset storage path, synthesize the picture captured by the shooting module 10 and the object motion track picture before the flag position, Generate an object motion track video.
本实施例中,所述拍摄模块10在侦测到物体运动轨迹拍摄指令时或者拍摄之前,终端可设定当前曝光时间、ISO、分辨率、曝光补偿、降噪等拍照参数,所述拍照参数可由所述终端自动设定或调整,终端还可以根据不同地区上空不同的物体运动场景预设不同的参数,供用户拍摄时选择合适的物体运动场景进行拍摄,或者终端根据当前星空的状态自动选择合适的物体运动场景进行拍摄。In this embodiment, when the shooting module 10 detects an object motion trajectory shooting instruction or before shooting, the terminal may set a current exposure time, ISO, resolution, exposure compensation, noise reduction, and the like, the camera parameters. The terminal can be automatically set or adjusted by the terminal, and the terminal can also preset different parameters according to different object motion scenes over different regions, for the user to select an appropriate object motion scene for shooting, or the terminal automatically selects according to the state of the current starry sky. Shoot the scene with the appropriate object motion.
例如,所述拍摄模块10包括:界面提供单元,配置为在侦测到物体运动轨迹拍摄指令时,显示物体运动场景选择界面,以供用户基于终端显示的物体运动场景选择界面选择对应的物体运动场景;在侦测到用户基于所述物体运动场景选择界面触发的选择指令时,锁定所述选择指令对应的物体运动场景,并基于锁定的物体运动场景调整其拍摄参数;所述拍摄模块10,配置为每隔预设的曝光时间拍摄一张图片。For example, the photographing module 10 includes: an interface providing unit configured to display an object motion scene selection interface when the object motion track shooting instruction is detected, so that the user selects a corresponding object motion based on the object motion scene selection interface displayed by the terminal. a scene; when detecting a selection instruction triggered by the user based on the object motion scene selection interface, locking an object motion scene corresponding to the selection instruction, and adjusting a shooting parameter thereof based on the locked object motion scene; the shooting module 10, Configure to take a picture every preset exposure time.
所述物体运动轨迹拍摄指令,可基于终端上的实体拍摄按钮、虚拟拍摄按钮、语音、手势以及第三方控制终端发送的控制指令等触发。所述终端在侦测到所述物体运动轨迹拍摄指令时,可立即开始拍摄图片,也可以延迟预设时长开始拍摄图片;其中,所述延迟预设时长开始拍摄图片有利于避免在用户因按动拍摄按钮或触发虚拟拍摄按钮而对手机造成抖动时,拍摄图片。The object motion trajectory shooting instruction may be triggered based on a physical shooting button, a virtual shooting button, a voice, a gesture, and a control command sent by a third-party control terminal on the terminal. When detecting the object motion trajectory shooting instruction, the terminal may immediately start capturing a picture, or may delay the preset time length to start taking a picture; wherein the delaying the preset time length to start taking the picture is beneficial to avoid the user pressing Take a picture when you shoot the button or trigger the virtual shooting button to shake the phone.
本实施例中,所述标志位配置为表示图片数据在拍摄过程中可能存在中断的情况,所述标志位可由用户或者开发人员进行设定。 In this embodiment, the flag bit is configured to indicate that the picture data may be interrupted during the shooting process, and the flag bit may be set by a user or a developer.
在本实施例中,所述终端将拍摄到的图片与标志位之前的物体运动轨迹图片进行合成,以生成物体运动轨迹视频的方式包括:In this embodiment, the manner in which the terminal combines the captured picture with the object motion track picture before the flag bit to generate the object motion track video includes:
1)参照图8,图8为所述生成模块30第一实施例的细化功能模块示意图,在本实施例中,所述生成模块30包括:1) Referring to FIG. 8, FIG. 8 is a schematic diagram of a refinement function module of the first embodiment of the generating module 30. In this embodiment, the generating module 30 includes:
处理单元31,配置为确定所述预设的存储路径中设置有标志位时,将所述标志位之前的最后一张物体运动轨迹图片作为第一次合成的物体运动轨迹图片;The processing unit 31 is configured to determine, when the flag is set in the preset storage path, the last object motion track picture before the flag bit as the first synthesized object motion track picture;
图片合成单元32,配置为在拍摄到图片时,将拍摄到的图片与所述处理单元31中上一次合成的物体运动轨迹图片进行合成生成新的物体运动轨迹图片;The picture synthesizing unit 32 is configured to combine the captured picture with the object motion track picture synthesized last time in the processing unit 31 to generate a new object motion track picture when the picture is captured;
生成单元33,配置为在拍摄结束时,将所述图片合成单元32合成的多个物体运动轨迹图片存储至所述预设的存储路径并基于拍摄过程中合成的多个物体运动轨迹图片,以及所述标志位之前的物体运动轨迹图片生成物体运动轨迹视频。The generating unit 33 is configured to, when the shooting ends, store the plurality of object motion track images synthesized by the picture synthesizing unit 32 to the preset storage path and based on the plurality of object motion track pictures synthesized during the shooting, and The object motion track picture before the flag bit generates an object motion track video.
2)参照图9,图9为所述生成模块30第二实施例的细化功能模块示意图,在本实施例中,所述生成模块30包括:2) FIG. 9 is a schematic diagram of the refinement function module of the second embodiment of the generation module 30. In this embodiment, the generation module 30 includes:
排序单元34,配置为确定所述预设的存储路径中设置有标志位时,则在拍摄结束时,按照拍摄时间对拍摄到的图片进行排序;The sorting unit 34 is configured to determine that when the flag is set in the preset storage path, the captured pictures are sorted according to the shooting time at the end of shooting;
图片提取单元35,配置为按照所述排序单元34获得的排列顺序提取拍摄得到的图片;The picture extracting unit 35 is configured to extract the captured picture according to the sorting order obtained by the sorting unit 34;
处理单元36,配置为将标志位之前的最后一张物体运动轨迹图片作为第一次合成的物体运动轨迹图片;The processing unit 36 is configured to use the last object motion track picture before the flag bit as the first synthesized object motion track picture;
图片合成单元37,配置为在所述图片提取单元35每提取一张图片时,将提取的图片与所述处理单元36中上一次合成的物体运动轨迹图片进行合成以生成新的物体运动轨迹图片; The picture synthesizing unit 37 is configured to synthesize the extracted picture with the object motion track picture synthesized last time in the processing unit 36 every time the picture extracting unit 35 extracts a picture to generate a new object motion track picture. ;
生成单元38,配置为将所述图片合成单元37合成的多个物体运动轨迹图片存储至所述预设的存储路径并基于拍摄过程中合成的多个物体运动轨迹图片,以及所述标志位之前的图片生成物体运动轨迹视频。The generating unit 38 is configured to store the plurality of object motion track pictures synthesized by the picture synthesizing unit 37 to the preset storage path and based on the plurality of object motion track pictures synthesized during the shooting process, and before the flag bit The picture generates an object motion track video.
以上所列举出的两种生成物体运动轨迹视频的方式仅仅为示例性的,本领域技术人员利用本发明的技术思想,根据其具体需求所提出的其他生成物体运动轨迹视频的方式均在本发明的保护范围内,在此不进行一一穷举。The manners of generating the motion trajectory video of the object listed above are merely exemplary. Those skilled in the art utilize the technical idea of the present invention, and other methods for generating motion trajectories of the object according to the specific needs thereof are all in the present invention. Within the scope of protection, it is not exhaustive here.
终端在拍摄到第一张图片后,所述图片合成单元将当前拍摄到的第一张图片与之前拍摄的标志位之前的最后一张图片进行合成的方法可以是:所述图片合成单元将第一张图片像素和标志位之前的最后一张物体运动轨迹图片的像素进行叠加,生成新的物体运动轨迹图片;或者,所述图片合成单元根据第一张图片中像素的亮度值信息及标志位之前的最后一张物体运动轨迹图片中像素的亮度值信息,生成新的物体运动轨迹图片。After the first picture is captured by the terminal, the picture synthesizing unit may combine the currently captured first picture with the last picture before the previously captured flag bit: the picture synthesizing unit will be the first A picture pixel and a pixel of the last object motion track picture before the flag bit are superimposed to generate a new object motion track picture; or the picture synthesis unit is based on the brightness value information and the flag bit of the pixel in the first picture The brightness value information of the pixel in the last object motion track picture is generated, and a new object motion track picture is generated.
本领域技术人员可以理解的是,为提高物体运动轨迹拍摄过程中图片合成的准确率,所述图片合成单元还配置为,在预设的存储路径中设置有标志位时,显示选择界面,以供用户选择是否基于之前拍摄图片生成物体运动轨迹视频;在接收到选择基于之前拍摄图片生成物体视频的指令时,将拍摄到的第一张图片与之前拍摄的标志位之前的最后一张物体运动轨迹图片进行合成,作为新的物体运动轨迹图片。It can be understood by those skilled in the art that, in order to improve the accuracy of the image synthesis during the shooting process of the object, the image synthesizing unit is further configured to display the selection interface when the flag is set in the preset storage path. For the user to select whether to generate an object motion trajectory video based on the previously taken picture; when receiving the instruction based on the previous shooting of the picture to generate the object video, the first picture taken before the last picture before the previously taken flag is moved The trajectory picture is synthesized as a new object motion trajectory picture.
在本实施例中,所述图片合成单元进行图片合成时可通过像素叠加或者像素替换的方式生成新的物体运动轨迹图片,在本实施例中其中一种方案为像素替换的方式生成新的物体运动轨迹图片,所述图片合成单元具体包括:判断子单元,配置为判断同一位置拍摄到的图片中的像素的亮度值是否大于上一次合成的物体运动轨迹图片的像素的亮度值;替换子模块,配置为所述判断子单元判定同一位置当前拍摄到的图片中的像素的亮度值 大于上一次合成的物体运动轨迹图片的像素的亮度值时,将上一次合成的物体运动轨迹图片中的像素替换为当前拍摄到的图片中对应位置的像素,生成新的物体运动轨迹图片。In this embodiment, when the picture synthesizing unit performs picture synthesis, a new object motion track picture may be generated by means of pixel superposition or pixel replacement. In this embodiment, one of the solutions generates a new object in a pixel replacement manner. a motion picture, the picture synthesis unit specifically includes: a determination subunit configured to determine whether a brightness value of a pixel in a picture captured at the same location is greater than a brightness value of a pixel of the last synthesized object motion track picture; Configuring, by the determining subunit, determining a brightness value of a pixel in a picture currently captured at the same location When the brightness value of the pixel of the motion track image of the object synthesized last time is greater than the pixel of the corresponding position in the currently captured image, a pixel of the corresponding object motion track is generated.
在本实施例中,所述预设的曝光时间优选5至10S。所述生成模块30在合成新的物体运动轨迹图片时,可对合成的运动轨迹图片进行降噪处理,同时还根据当前拍摄图片曝光度,控制新合成物体运动轨迹图片的合成比例,抑制过曝产生。In the embodiment, the preset exposure time is preferably 5 to 10 s. The generating module 30 can perform noise reduction processing on the synthesized motion track picture when synthesizing the new object motion track picture, and also control the synthetic ratio of the motion picture of the newly synthesized object according to the exposure degree of the current captured picture, thereby suppressing overexposure. produce.
在本实施例中,所述生成模块30可在拍摄结束时,对各个待合成图片进行视频编码处理,将其处理为MPEG-4、H264、H263、VP8等常见视频编码,以生成物体运动轨迹视频。本领域技术人员可以理解的是,也可每合成一张新的物体运动轨迹图片,所述处理模块30对合成的物体运动轨迹图片进行视频编码,并在拍摄完成时,基于各个经视频编码的物体运动轨迹图片生成物体运动轨迹视频。In this embodiment, the generating module 30 may perform video encoding processing on each picture to be combined at the end of shooting, and process it into common video encodings such as MPEG-4, H264, H263, and VP8 to generate an object motion track. video. It can be understood by those skilled in the art that each time a new object motion track picture is synthesized, the processing module 30 performs video coding on the synthesized object motion track picture, and based on each video coded when the shooting is completed. The object motion trajectory image generates an object motion trajectory video.
本实施例提出的物体运动轨迹拍摄系统,在侦测到物体运动轨迹拍摄指令,且在预设的存储路径中设置有标志位时,基于标志位对应的拍摄数据以及此次拍摄的拍摄数据生成对应的物体运动轨迹视频,以保证物体运动轨迹的拍摄过程中在出现中断时,可重新进行拍摄并基于之前拍摄的拍摄数据以及当前拍摄的图片生成对应物体运动轨迹视频,防止因中断导致物体运动轨迹拍摄时间延长,降低物体运动轨迹拍摄的难度。The object motion trajectory photographing system proposed in this embodiment generates an object motion trajectory shooting instruction, and when a flag is set in a preset storage path, the shooting data corresponding to the flag bit and the shooting data of the shooting are generated. Corresponding object motion trajectory video, to ensure that when the object motion trajectory is interrupted, it can be re-shooted and generate corresponding object motion trajectory video based on the previously captured shooting data and the currently captured image to prevent object motion caused by interruption. The trajectory shooting time is extended to reduce the difficulty of shooting the object's motion trajectory.
作为一种实施方式,为防止因拍摄中断导致数据丢失,并避免在终端时重新进行物体运动轨迹的拍摄,参照图10,基于本发明第一实施例提出本发明物体运动轨迹拍摄系统第二实施例,在本实施例中,所述物体运动轨迹拍摄系统还包括:As an embodiment, in order to prevent data loss caused by interruption of shooting, and to avoid re-taking the motion trajectory of the object at the terminal, referring to FIG. 10, a second implementation of the object motion trajectory photographing system of the present invention is proposed based on the first embodiment of the present invention. For example, in the embodiment, the object motion trajectory photographing system further includes:
侦测模块40,配置为在物体运动轨迹拍摄过程中,实时或定时侦测中断请求; The detecting module 40 is configured to detect an interrupt request in real time or periodically during the shooting process of the object motion track;
存储模块50,配置为当所述侦测模块40侦测到所述中断请求时,将缓存中的拍摄数据转存至所述预设的存储路径,在所述拍摄数据的末端添加预设的标志位。The storage module 50 is configured to: when the detecting module 40 detects the interrupt request, dump the captured data in the cache to the preset storage path, and add a preset at the end of the captured data. Sign bit.
在本实施例中,所述中断请求可通过多种方式触发,具体可通过以下示例进行说明:In this embodiment, the interrupt request may be triggered in multiple manners, which may be illustrated by the following example:
1)触发模块,配置为在所述终端的剩余电量值小于预设的电量阀值时,触发所述中断请求。1) The triggering module is configured to trigger the interrupt request when the remaining power value of the terminal is less than a preset power threshold.
在物体运动轨迹拍摄过程中,所述侦测模块40可实时或者定时侦测终端的剩余电量,在终端的剩余电量小于预设的电量阀值时,所述触发模块可触发终端请求。During the shooting of the object motion track, the detecting module 40 can detect the remaining power of the terminal in real time or timing. When the remaining power of the terminal is less than the preset power threshold, the triggering module can trigger the terminal request.
2)触发模块,配置为在所述终端的剩余存储空间小于预设的存储空间阀值时,触发所述中断请求。2) The triggering module is configured to trigger the interrupt request when the remaining storage space of the terminal is less than a preset storage space threshold.
在物体运动轨迹拍摄过程中,所述侦测模块40可实时或者定时侦测终端的剩余存储空间,在终端的剩余存储空间小于预设的存储空间阀值时,所述触发模块可触发终端请求。During the shooting process of the object motion track, the detecting module 40 can detect the remaining storage space of the terminal in real time or timing. When the remaining storage space of the terminal is less than the preset storage space threshold, the trigger module can trigger the terminal request. .
以上所列举出的两种触发所述中断请求的方式仅仅为示例性的,本领域技术人员利用本发明的技术思想,根据其具体需求所提出的其他方式触发所述中断请求均在本发明的保护范围内,在此不进行一一穷举。The two methods for triggering the interrupt request listed above are merely exemplary. Those skilled in the art may use the technical idea of the present invention to trigger the interrupt request according to other manners of the specific needs thereof. Within the scope of protection, it is not exhaustive here.
所述物体运动轨迹拍摄系统还包括存储模块50,配置为当所述侦测模块侦测到所述中断请求时,将缓存中的拍摄数据转存至所述预设的存储路径,并在所述拍摄数据的末端添加预设的标志位。The object motion trajectory photographing system further includes a storage module 50 configured to: when the detecting module detects the interrupt request, dump the captured data in the cache to the preset storage path, and Add a preset flag to the end of the shooting data.
所述预设的存储路径对应于某个存储装置的某个文件夹,所对应的存储装置为非易失性存储装置,不会在掉电的同时擦除存储的数据,该预设的存储路径可由用户进行设置。The preset storage path corresponds to a certain folder of a certain storage device, and the corresponding storage device is a non-volatile storage device, and the stored data is not erased while power is off, the preset storage The path can be set by the user.
本领域技术人员可以理解的时,在侦测到用户基于末端添加标识位的 拍摄数据生成星轨视频或者星轨图片的指令时,所述处理模块30基于所述拍摄数据生成星轨视频或者星轨图片,并删除所述标志位对应的拍摄数据;或者,在预设的时间间隔内,用户为重新拍摄星轨视频,所述处理模块30基于所述拍摄数据生成星轨视频或者星轨图片,并删除所述标志位对应的拍摄数据。Those skilled in the art can understand that when the user is detected to add an identifier based on the end When the shooting data generates an instruction of the star track video or the star track picture, the processing module 30 generates a star track video or a star track picture based on the shooting data, and deletes the shooting data corresponding to the flag bit; or, in a preset During the time interval, the user re-shoots the star track video, and the processing module 30 generates a star track video or a star track picture based on the shooting data, and deletes the shooting data corresponding to the flag bit.
作为另一实施方式,为提高在物体运动轨迹拍摄过程中物体运动轨迹图片合成的准确性,所述物体运动轨迹拍摄系统还包括:As another embodiment, in order to improve the accuracy of image motion trajectory image synthesis during object motion trajectory shooting, the object motion trajectory photographing system further includes:
处理模块,配置为确定所述预设的存储路径中未设置标志位时,在拍摄到第一张图片时,将所述第一张图片作为第一次合成的物体运动轨迹图片;a processing module, configured to determine that a flag is not set in the preset storage path, and when the first picture is captured, the first picture is used as a first synthesized object motion track picture;
图片合成模块,配置为在拍摄到所述第一张图片之后,每拍摄到一张图片,将拍摄到的图片与所述处理模块中上一次合成的物体运动轨迹图片进行合成生成新的物体运动轨迹图片;a picture synthesizing module configured to, after capturing the first picture, synthesize a picture, and combine the captured picture with the last synthesized object motion track picture in the processing module to generate a new object motion Track picture
所述生成模块30,还配置为在拍摄结束时,将所述图片合成模块合成的多个物体运动轨迹图片存储至所述预设的存储路径片并基于拍摄过程中合成的多个物体运动轨迹图片生成物体运动轨迹视频。The generating module 30 is further configured to: when the shooting ends, store the plurality of object motion track images synthesized by the picture synthesizing module to the preset storage path piece and based on the plurality of object motion tracks synthesized during the shooting process The picture generates an object motion track video.
在本实施例中,所述图片合成模块进行图片合成时可通过像素叠加或者像素替换的方式生成新的物体运动轨迹图片,在本实施例中所述图片合成模块进行图片合成的优选方案可以为像素替换的方式生成新的物体运动轨迹图片。具体的,所述图片合成模块包括:判断单元,配置为判断同一位置拍摄到的图片中的像素的亮度值是否大于上一次合成的物体运动轨迹图片的像素的亮度值;替换单元,配置为所述判断单元判定同一位置拍摄到的图片中的像素的亮度值大于上一次合成的物体运动轨迹图片的像素的亮度值时,则将上一次合成的物体运动轨迹图片中的像素替换为所述拍摄到的图片中对应位置的像素,生成新的物体运动轨迹图片。 In this embodiment, the image synthesizing module may generate a new object motion trajectory image by means of pixel superposition or pixel replacement in the image synthesis. In this embodiment, the image synthesizing module may perform the image synthesizing. The pixel replacement method generates a new object motion trajectory picture. Specifically, the picture synthesizing module includes: a determining unit configured to determine whether a brightness value of a pixel in a picture captured at the same location is greater than a brightness value of a pixel of the last synthesized object motion track picture; When the determining unit determines that the brightness value of the pixel in the picture captured at the same position is greater than the brightness value of the pixel of the last synthesized object motion track picture, the pixel in the last synthesized object motion track picture is replaced with the shooting. A pixel corresponding to the position in the picture is generated, and a new object motion track picture is generated.
在本实施例中,所述预设的曝光时间优选5至10S。所述图片合成模块在合成新的物体运动轨迹图片时,可对合成的运动轨迹图片进行降噪处理,同时还根据当前拍摄图片曝光度,控制新合成物体运动轨迹图片的合成比例,抑制过曝产生。In the embodiment, the preset exposure time is preferably 5 to 10 s. The picture synthesis module can perform noise reduction processing on the synthesized motion track picture when synthesizing the new object motion track picture, and also control the synthetic ratio of the motion picture of the newly synthesized object according to the exposure degree of the current captured picture, thereby suppressing overexposure. produce.
在本实施例中,在当前拍摄模式为物体运动轨迹图片拍摄模式时,所述生成模块30可在拍摄结束时,对各个待合成图片进行视频编码处理,将其处理为MPEG-4、H264、H263、VP8等常见视频编码,以生成物体运动轨迹视频。本领域技术人员可以理解的是,也可每合成一张新的物体运动轨迹图片,述生成模块30对该合成的物体运动轨迹图片进行视频编码,基于各个经视频编码的物体运动轨迹图片生成物体运动轨迹视频。In this embodiment, when the current shooting mode is the object motion track picture shooting mode, the generating module 30 may perform video encoding processing on each picture to be combined at the end of shooting, and process the image into MPEG-4, H264, H263, VP8 and other common video coding to generate object motion track video. It can be understood by those skilled in the art that each time a new object motion track picture is synthesized, the generating module 30 video-encodes the synthesized object motion track picture, and generates an object based on each video-coded object motion track picture. Motion track video.
作为另一实施方式,为提高在物体运动轨迹拍摄过程中物体运动轨迹图片合成的准确性,所述物体运动轨迹拍摄系统还包括:As another embodiment, in order to improve the accuracy of image motion trajectory image synthesis during object motion trajectory shooting, the object motion trajectory photographing system further includes:
排序模块,配置为确定所述预设的存储路径中未设置标志位时,则在拍摄结束时,按照拍摄时间对拍摄到的图片进行排序;a sorting module configured to determine that the captured image is not set in the preset storage path, and the captured images are sorted according to the shooting time at the end of the shooting;
图片提取模块,配置为按照所述排序模块获得的排列顺序提取拍摄得到的图片;a picture extraction module, configured to extract the captured picture according to an arrangement order obtained by the sorting module;
处理模块,配置为在所述图片提取模块提取到第一张图片时,将所述第一张图片作为第一次合成的物体运动轨迹图片;a processing module, configured to use the first picture as the first synthesized object motion track picture when the picture extraction module extracts the first picture;
图片合成模块,配置为在所述图片提取模块提取到所述第一张图片之后,每提取到一张图片,将提取到的图片与上一次合成的物体运动轨迹图片进行合成生成新的物体运动轨迹图片;a picture synthesizing module, configured to: after the picture extraction module extracts the first picture, each time a picture is extracted, the extracted picture is combined with the last synthesized object motion track picture to generate a new object motion Track picture
所述生成模块30,还配置为将所述图片合成模块合成的多个物体运动轨迹图片存储至所述预设的存储路径并基于拍摄过程中合成的多个物体运动轨迹图片生成物体运动轨迹视频。The generating module 30 is further configured to store a plurality of object motion track images synthesized by the picture synthesis module to the preset storage path and generate an object motion track video based on the plurality of object motion track pictures synthesized during the shooting process. .
在本实施例中,所述图片合成模块进行图片合成时可通过像素叠加或 者像素替换的方式生成新的物体运动轨迹图片,在本实施例中所述图片合成模块进行图片合成的优选方案可以为像素替换的方式生成新的物体运动轨迹图片。具体的,所述图片合成模块包括:判断单元,配置为判断同一位置提取到的图片中的像素的亮度值是否大于上一次合成的物体运动轨迹图片的像素的亮度值;替换单元,配置为在所述判断单元判定同一位置提取到的图片中的像素的亮度值大于上一次合成的物体运动轨迹图片的像素的亮度值时,则将上一次合成的物体运动轨迹图片中的像素替换为所述提取到的图片中对应位置的像素,生成新的物体运动轨迹图片。In this embodiment, when the picture synthesis module performs image synthesis, it may be superimposed by pixels or In a manner of pixel replacement, a new object motion trajectory picture is generated. In this embodiment, a preferred scheme of the picture synthesis module for performing picture synthesis may generate a new object motion track picture in a pixel replacement manner. Specifically, the picture synthesizing module includes: a determining unit configured to determine whether a brightness value of a pixel in a picture extracted by the same location is greater than a brightness value of a pixel of the last synthesized object motion track picture; When the determining unit determines that the brightness value of the pixel in the picture extracted by the same location is greater than the brightness value of the pixel of the last synthesized object motion track picture, the pixel in the last synthesized object motion track picture is replaced with the A pixel corresponding to the position in the extracted image is generated, and a new motion picture of the object is generated.
在本实施例中,所述预设的曝光时间优选5至10S。所述图片合成模块在合成新的物体运动轨迹图片时,可对合成的运动轨迹图片进行降噪处理,同时还根据当前拍摄图片曝光度,控制新合成物体运动轨迹图片的合成比例,抑制过曝产生。In the embodiment, the preset exposure time is preferably 5 to 10 s. The picture synthesis module can perform noise reduction processing on the synthesized motion track picture when synthesizing the new object motion track picture, and also control the synthetic ratio of the motion picture of the newly synthesized object according to the exposure degree of the current captured picture, thereby suppressing overexposure. produce.
在本实施例中,在当前拍摄模式为物体运动轨迹图片拍摄模式时,所述生成模块30可在拍摄结束时,对各个待合成图片进行视频编码处理,将其处理为MPEG-4、H264、H263、VP8等常见视频编码,以生成物体运动轨迹视频。本领域技术人员可以理解的是,也可每合成一张新的物体运动轨迹图片,所述生成模块30对该合成的物体运动轨迹图片进行视频编码,基于各个经视频编码的物体运动轨迹图片生成物体运动轨迹视频。In this embodiment, when the current shooting mode is the object motion track picture shooting mode, the generating module 30 may perform video encoding processing on each picture to be combined at the end of shooting, and process the image into MPEG-4, H264, H263, VP8 and other common video coding to generate object motion track video. It can be understood by those skilled in the art that each time a new object motion trajectory picture is synthesized, the generating module 30 performs video coding on the synthesized object motion trajectory picture, and generates a motion trajectory picture based on each video encoded object. Object motion track video.
在本发明系统实施例中,所述物体运动轨迹拍摄系统在实际应用中,可由数码相机、具有摄像头的设备(如手机、平板电脑、笔记本电脑等)实现,所述物体运动轨迹拍摄系统中的拍摄模块10、确定模块20、生成模块30和侦测模块40,在实际应用中,均可通过所述物体运动轨迹拍摄系统中的中央处理器(CPU,Central Processing Unit)、数字信号处理器(DSP,Digital Signal Processor)或可编程门阵列(FPGA,Field-Programmable Gate Array)实现;所述物体运动轨迹拍摄系统在实际应用中,可通过所述物体 运动轨迹拍摄系统中的存储器实现。In an embodiment of the system of the present invention, the object motion trajectory photographing system may be implemented by a digital camera, a device having a camera (such as a mobile phone, a tablet computer, a notebook computer, etc.) in an actual application, and the object motion trajectory photographing system The imaging module 10, the determining module 20, the generating module 30, and the detecting module 40 are all applicable to a central processing unit (CPU) and a digital signal processor in the object motion tracking system. DSP (Digital Signal Processor) or a Field-Programmable Gate Array (FPGA) implementation; the object motion trajectory imaging system can pass the object in practical applications Memory implementation in a motion trajectory system.
图11是表示本发明的一个实施例的相机的主要电气结构的框图。摄影镜头101由用于形成被摄体像的多个光学镜头构成,是单焦点镜头或变焦镜头。摄影镜头101能够通过镜头驱动部111在光轴方向上移动,根据来自镜头驱动控制部112的控制信号,控制摄影镜头101的焦点位置,在变焦镜头的情况下,也控制焦点距离。镜头驱动控制电路112按照来自微型计算机107的控制命令进行镜头驱动部111的驱动控制。Figure 11 is a block diagram showing the main electrical configuration of a camera of one 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.
在摄影镜头101的光轴上、由摄影镜头101形成被摄体像的位置附近配置有摄像元件102。摄像元件102发挥作为对被摄体像摄像并取得摄像图像数据的摄像部的功能。在摄像元件102上二维地呈矩阵状配置有构成各像素的光电二极管。各光电二极管产生与受光量对应的光电转换电流,该光电转换电流由与各光电二极管连接的电容器进行电荷蓄积。各像素的前表面配置有拜耳排列的RGB滤色器。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. Photodiodes constituting each pixel are two-dimensionally arranged in a matrix on the imaging element 102. 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.
摄像元件102与摄像电路103连接,该摄像电路103在摄像元件102中进行电荷蓄积控制和图像信号读出控制,对该读出的图像信号(模拟图像信号)降低重置噪声后进行波形整形,进而进行增益提高等以成为适当的信号电平。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.
摄像电路103与A/D转换部104连接,该A/D转换部104对模拟图像信号进行模数转换,向总线199输出数字图像信号(以下称之为图像数据)。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.
总线199是用于传送在相机的内部读出或生成的各种数据的传送路径。在总线199连接着上述A/D转换部104,此外还连接着图像处理器105、JPEG处理器106、微型计算机107、SDRAM(Synchronous DRAM)108、存储器接口(以下称之为存储器I/F)109、LCD(液晶显示器:Liquid Crystal Display)驱动器110。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.
图像处理器105对基于摄像元件102的输出的图像数据进行OB相减处 理、白平衡调整、颜色矩阵运算、伽马转换、色差信号处理、噪声去除处理、同时化处理、边缘处理等各种图像处理。The image processor 105 performs OB subtraction on image data based on the output of the image pickup element 102. Various image processing such as texture, white balance adjustment, color matrix operation, gamma conversion, color difference signal processing, noise removal processing, simultaneous processing, edge processing, and the like.
JPEG处理器106在将图像数据记录于记录介质115时,按照JPEG压缩方式压缩从SDRAM108读出的图像数据。此外,JPEG处理器106为了进行图像再现显示而进行JPEG图像数据的解压缩。进行解压缩时,读出记录在记录介质115中的文件,在JPEG处理器106中实施了解压缩处理后,将解压缩的图像数据暂时存储于SDRAM108中并在LCD116上进行显示。另外,在本实施方式中,作为图像压缩解压缩方式采用的是JPEG方式,然而压缩解压缩方式不限于此,当然可以采用MPEG、TIFF、H.264等其他的压缩解压缩方式。When the image data is recorded on the recording medium 115, 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. At the time of decompression, 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. Further, in the present embodiment, the JPEG method is adopted as the image compression/decompression method. However, the compression/decompression method is not limited thereto, and other compression/decompression methods such as MPEG, TIFF, and H.264 may be used.
微型计算机107发挥作为该相机整体的控制部的功能,统一控制相机的各种处理序列。微型计算机107连接着操作单元113和闪存114。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.
操作单元113包括但不限于实体按键或者虚拟按键,该实体或虚拟按键可以为电源按钮、拍照键、编辑按键、动态图像按钮、再现按钮、菜单按钮、十字键、OK按钮、删除按钮、放大按钮等各种输入按钮和各种输入键等操作部材,检测这些操作部材的操作状态。The operation unit 113 includes but is not limited to a physical button or a virtual button, and the entity or virtual button may be a power button, a camera button, an edit button, a dynamic image button, a reproduction button, a menu button, a cross button, an OK button, a delete button, and an enlarge button. The operation members such as various input buttons and various input keys are detected, and the operation states of these operation members are detected.
将检测结果向微型计算机107输出。此外,在作为显示部的LCD116的前表面设有触摸面板,检测用户的触摸位置,将该触摸位置向微型计算机107输出。微型计算机107根据来自操作单元113的操作部材的检测结果,执行与用户的操作对应的各种处理序列。(同样,可以把这个地方改成计算机107根据LCD116前面的触摸面板的检测结果,执行与用户的操作对应的各种处理序列。)The detection result is output to the microcomputer 107. Further, 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. (Similarly, 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 on the front of the LCD 116.)
闪存114存储用于执行微型计算机107的各种处理序列的程序。微型计算机107根据该程序进行相机整体的控制。此外,闪存114存储相机的各种调整值,微型计算机107读出调整值,按照该调整值进行相机的控制。 SDRAM108是用于对图像数据等进行暂时存储的可电改写的易失性存储器。该SDRAM108暂时存储从A/D转换部104输出的图像数据和在图像处理器105、JPEG处理器106等中进行了处理后的图像数据。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.
存储器接口109与记录介质115连接,进行将图像数据和附加在图像数据中的文件头等数据写入记录介质115和从记录介质115中读出的控制。记录介质115例如为能够在相机主体上自由拆装的存储器卡等记录介质,然而不限于此,也可以是内置在相机主体中的硬盘等。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. However, the recording medium 115 is not limited thereto, and may be a hard disk or the like built in the camera body.
LCD驱动器110与LCD116连接,将由图像处理器105处理后的图像数据存储于SDRAM,需要显示时,读取SDRAM存储的图像数据并在LCD116上显示,或者,JPEG处理器106压缩过的图像数据存储于SDRAM,在需要显示时,JPEG处理器106读取SDRAM的压缩过的图像数据,再进行解压缩,将解压缩后的图像数据通过LCD116进行显示。The LCD driver 110 is connected to the LCD 116, and stores image data processed by the image processor 105 in the SDRAM. When display is required, 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. In the SDRAM, when display is required, the JPEG processor 106 reads the compressed image data of the SDRAM, decompresses it, and displays the decompressed image data on the LCD 116.
LCD116配置在相机主体的背面等上,进行图像显示。该LCD116设有检测用户的触摸操作的触摸面板。另外,作为显示部,在本实施方式中配置的是液晶表示面板(LCD116),然而不限于此,也可以采用有机EL等各种显示面板。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. Further, in the present embodiment, the liquid crystal display panel (LCD 116) is disposed as the display portion. However, the present invention is not limited thereto, and various display panels such as an organic EL may be employed.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个......”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It is to be understood that the term "comprises", "comprising", or any other variants thereof, is intended to encompass a non-exclusive inclusion, such that a process, method, article, or It also includes other elements that are not explicitly listed, or elements that are inherent to such a process, method, item, or system. An element defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in a process, method, article, or system that includes the element, without further limitation.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例 如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The device embodiments described above are merely illustrative, examples For example, the division of the unit is only a logical function division, and the actual implementation may have another division manner, for example, multiple units or components may be combined, or may be integrated into another system, or some features may be ignored. Or not. In addition, the coupling, or direct coupling, or communication connection of the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical, mechanical or other forms. of.
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed as the unit may or may not be physical units, that is, may be located in one place or distributed to multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各实施例中的各功能单元可以全部集成在一个处理单元中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; The unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to the program instructions. The foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The foregoing storage device includes the following steps: the foregoing storage medium includes: a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk. A medium that can store program code.
或者,本发明上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或 部分。而前述的存储介质包括:移动存储设备、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Alternatively, the above-described integrated unit of the present invention may be stored in a computer readable storage medium if it is implemented in the form of a software function module and sold or used as a standalone product. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions. Enabling a computer device (which may be a personal computer, server, or network device, etc.) to perform all of the methods of the various embodiments of the present invention or section. The foregoing storage medium includes various media that can store program codes, such as a mobile storage device, a ROM, a RAM, a magnetic disk, or an optical disk.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the appended claims.
工业实用性Industrial applicability
本发明实施例通过在侦测到物体运动轨迹拍摄指令,且在预设的存储路径中设置有标志位时,基于标志位对应的拍摄数据以及此次拍摄的拍摄数据生成对应的物体运动轨迹视频,以保证物体运动轨迹的拍摄过程中在出现中断时,可重新进行拍摄并基于之前拍摄的拍摄数据以及当前拍摄的图片生成对应的物体运动轨迹视频,防止因中断导致物体运动轨迹拍摄时间延长,降低物体运动轨迹拍摄的难度。 In the embodiment of the present invention, when a shooting instruction of an object motion trajectory is detected, and a flag is set in a preset storage path, a corresponding object motion trajectory video is generated based on the shooting data corresponding to the flag bit and the shooting data of the shooting. In order to ensure the motion track of the object during the shooting process, the camera can be re-shooted and the corresponding object motion track video can be generated based on the previously captured shooting data and the currently captured picture to prevent the object movement track from being delayed due to the interruption. Reduce the difficulty of shooting the motion of the object.

Claims (15)

  1. 一种物体运动轨迹拍摄方法,所述物体运动轨迹拍摄方法包括以下步骤:A method for photographing an object motion trajectory, the method for photographing an object motion trajectory comprising the following steps:
    终端在侦测到物体运动轨迹拍摄指令时,每隔预设的曝光时间拍摄一张图片;When the terminal detects an object motion trajectory shooting instruction, the terminal takes a picture every preset exposure time;
    所述终端判断预设的存储路径中是否设置预设的标志位;Determining, by the terminal, whether a preset flag bit is set in the preset storage path;
    确定所述预设的存储路径中设置有标志位时,所述终端将拍摄到的图片与所述标志位之前的物体运动轨迹图片进行合成,生成物体运动轨迹视频。When it is determined that the flag is set in the preset storage path, the terminal combines the captured picture with the object motion track picture before the flag bit to generate an object motion track video.
  2. 如权利要求1所述的物体运动轨迹拍摄方法,其中,所述确定所述预设的存储路径中设置有标志位时,所述终端将拍摄到的图片与所述标志位之前的物体运动轨迹图片进行合成,生成物体运动轨迹视频,包括:The method of photographing an object motion trajectory according to claim 1, wherein when the flag is set in the preset storage path, the terminal will take a captured picture and an object motion track before the flag bit. The image is synthesized to generate a video of the object's motion track, including:
    确定所述预设的存储路径中设置有标志位时,所述终端将所述标志位之前的最后一张物体运动轨迹图片作为第一次合成的物体运动轨迹图片;When it is determined that the flag is set in the preset storage path, the terminal uses the last object motion track picture before the flag bit as the first synthesized object motion track picture;
    在拍摄到图片时,所述终端将拍摄到的图片与上一次合成的物体运动轨迹图片进行合成生成新的物体运动轨迹图片;When the picture is captured, the terminal synthesizes the captured picture with the last synthesized object motion track picture to generate a new object motion track picture;
    在拍摄结束时,所述终端将合成的多个物体运动轨迹图片存储至所述预设的存储路径并基于拍摄过程中合成的多个物体运动轨迹图片,以及所述标志位之前的物体运动轨迹图片生成物体运动轨迹视频。At the end of the shooting, the terminal stores the synthesized plurality of object motion trajectory pictures to the preset storage path and based on the plurality of object motion trajectory pictures synthesized during the shooting, and the object motion trajectory before the flag position The picture generates an object motion track video.
  3. 如权利要求1所述的物体运动轨迹拍摄方法,其中,所述确定所述预设的存储路径中设置有标志位时,所述终端将拍摄到的图片与所述标志位之前的物体运动轨迹图片进行合成,生成物体运动轨迹视频,包括:The method of photographing an object motion trajectory according to claim 1, wherein when the flag is set in the preset storage path, the terminal will take a captured picture and an object motion track before the flag bit. The image is synthesized to generate a video of the object's motion track, including:
    确定所述预设的存储路径中设置有标志位时,在拍摄结束时,所述终端按照拍摄时间对拍摄到的图片进行排序,并按照排列顺序提取拍摄得到的图片; When it is determined that the flag is set in the preset storage path, when the shooting ends, the terminal sorts the captured pictures according to the shooting time, and extracts the captured pictures according to the arrangement order;
    所述终端将标志位之前的最后一张物体运动轨迹图片作为第一次合成的物体运动轨迹图片;The terminal uses the last object motion track picture before the flag position as the first synthesized object motion track picture;
    在每提取一张图片时,所述终端将提取的图片与上一次合成的物体运动轨迹图片进行合成以生成新的物体运动轨迹图片;Each time a picture is extracted, the terminal synthesizes the extracted picture with the last synthesized object motion track picture to generate a new object motion track picture;
    所述终端将合成的多个物体运动轨迹图片存储至所述预设的存储路径并基于拍摄过程中合成的多个物体运动轨迹图片,以及所述标志位之前的图片生成物体运动轨迹视频。The terminal stores the synthesized plurality of object motion trajectory pictures to the preset storage path and generates an object motion trajectory video based on the plurality of object motion trajectory pictures synthesized during the shooting process and the picture before the flag position.
  4. 如权利要求1至3任一项所述的物体运动轨迹拍摄方法,其中,所述终端在侦测到物体运动轨迹拍摄指令时,每隔预设的曝光时间拍摄一张图片之前,所述物体运动轨迹拍摄方法还包括:The object motion trajectory photographing method according to any one of claims 1 to 3, wherein the terminal, before detecting an object motion trajectory shooting instruction, takes a picture before every preset exposure time, the object The method of shooting the motion track also includes:
    在物体运动轨迹拍摄过程中,所述终端实时或定时侦测中断请求;During the shooting of the object motion track, the terminal detects the interrupt request in real time or periodically;
    当侦测到所述中断请求时,所述终端将缓存中的拍摄数据转存至所述预设的存储路径,在所述拍摄数据的末端添加预设的标志位。When detecting the interrupt request, the terminal dumps the captured data in the cache to the preset storage path, and adds a preset flag bit at the end of the captured data.
  5. 如权利要求4所述的物体运动轨迹拍摄方法,其中,所述终端实时或定时侦测中断请求,包括:The method for photographing an object motion trajectory according to claim 4, wherein the terminal detects an interrupt request in real time or at a time, including:
    在所述终端的剩余电量值小于预设的电量阀值时,所述终端触发所述中断请求;或者,在所述终端的剩余存储空间小于预设的存储空间阀值时,所述终端触发所述中断请求。The terminal triggers the interrupt request when the remaining power value of the terminal is less than a preset power threshold; or the terminal triggers when the remaining storage space of the terminal is less than a preset storage space threshold The interrupt request.
  6. 如权利要求1所述的物体运动轨迹拍摄方法,其中,所述终端判断预设的存储路径中是否设置预设的标志位之后,所述物体运动轨迹拍摄方法还包括:The object motion trajectory photographing method according to claim 1, wherein the method for photographing the object motion trajectory after the terminal determines whether a preset flag is set in the preset storage path, the method further includes:
    确定所述预设的存储路径中未设置标志位时,在拍摄到第一张图片时,将所述第一张图片作为第一次合成的物体运动轨迹图片;When it is determined that the flag is not set in the preset storage path, when the first picture is captured, the first picture is used as the first synthesized object motion track picture;
    在拍摄到所述第一张图片之后,所述终端每拍摄到一张图片,将拍摄到的图片与上一次合成的物体运动轨迹图片进行合成生成新的物体运动轨 迹图片;After the first picture is captured, the terminal combines the captured picture with the last synthesized object motion track picture to generate a new object motion track. Trace picture
    在拍摄结束时,所述终端将合成的多个物体运动轨迹图片存储至所述预设的存储路径片并基于拍摄过程中合成的多个物体运动轨迹图片生成物体运动轨迹视频。At the end of the shooting, the terminal stores the synthesized plurality of object motion trajectory pictures to the preset storage path slice and generates an object motion trajectory video based on the plurality of object motion trajectory pictures synthesized during the shooting process.
  7. 如权利要求6所述的物体运动轨迹拍摄方法,其中,所述终端确定预设的存储路径中是否设置预设的标志位之后,所述物体运动轨迹拍摄方法还包括:The method for photographing an object motion trajectory according to claim 6, wherein the method for photographing the object motion trajectory after the terminal determines whether a preset flag is set in the preset storage path, the method further includes:
    确定所述预设的存储路径中未设置标志位时,则在拍摄结束时,所述终端按照拍摄时间对拍摄到的图片进行排序,并按照排列顺序提取拍摄得到的图片;When it is determined that the flag is not set in the preset storage path, when the shooting ends, the terminal sorts the captured pictures according to the shooting time, and extracts the captured pictures according to the arrangement order;
    在提取到第一张图片时,所述终端将所述第一张图片作为第一次合成的物体运动轨迹图片;When extracting the first picture, the terminal uses the first picture as the first synthesized object motion track picture;
    在提取到所述第一张图片之后,所述终端每提取到一张图片,将提取到的图片与上一次合成的物体运动轨迹图片进行合成生成新的物体运动轨迹图片;After extracting the first picture, the terminal extracts a picture, and combines the extracted picture with the last synthesized object motion track picture to generate a new object motion track picture;
    所述终端将合成的多个物体运动轨迹图片存储至所述预设的存储路径并基于拍摄过程中合成的多个物体运动轨迹图片生成物体运动轨迹视频。The terminal stores the synthesized plurality of object motion trajectory pictures to the preset storage path and generates an object motion trajectory video based on the plurality of object motion trajectory pictures synthesized during the shooting process.
  8. 一种物体运动轨迹拍摄系统,所述物体运动轨迹拍摄系统包括:An object motion trajectory photographing system, the object motion trajectory photographing system comprising:
    拍摄模块,配置为在侦测到物体运动轨迹拍摄指令时,每隔预设的曝光时间拍摄一张图片;The shooting module is configured to take a picture every preset exposure time when detecting an object motion track shooting instruction;
    确定模块,配置为判断预设的存储路径中是否设置预设的标志位;Determining a module, configured to determine whether a preset flag bit is set in the preset storage path;
    生成模块,配置为所述确定模块确定所述预设的存储路径中设置有标志位时,将所述拍摄模块拍摄到的图片与所述标志位之前的物体运动轨迹图片进行合成,生成物体运动轨迹视频。a generating module, configured to: when the determining module determines that a flag is set in the preset storage path, synthesize a picture captured by the shooting module and an object motion track picture before the flag bit to generate an object motion Track video.
  9. 如权利要求8所述的物体运动轨迹拍摄系统,其中,所述生成模块 包括:The object motion trajectory photographing system according to claim 8, wherein said generating module include:
    处理单元,配置为确定所述预设的存储路径中设置有标志位时,将所述标志位之前的最后一张物体运动轨迹图片作为第一次合成的物体运动轨迹图片;The processing unit is configured to determine, when the flag is set in the preset storage path, the last object motion track picture before the flag bit as the first synthesized object motion track picture;
    图片合成单元,配置为在拍摄到图片时,将拍摄到的图片与所述处理单元中上一次合成的物体运动轨迹图片进行合成生成新的物体运动轨迹图片;a picture synthesizing unit configured to: when the picture is captured, synthesize the captured picture with the object motion track picture synthesized last time in the processing unit to generate a new object motion track picture;
    生成单元,配置为在拍摄结束时,将所述图片合成单元合成的多个物体运动轨迹图片存储至所述预设的存储路径并基于拍摄过程中合成的多个物体运动轨迹图片,以及所述标志位之前的物体运动轨迹图片生成物体运动轨迹视频。a generating unit configured to, when the shooting ends, store a plurality of object motion trajectory images synthesized by the picture synthesizing unit to the preset storage path and based on a plurality of object motion trajectory pictures synthesized during the shooting, and the The object motion track picture before the flag bit generates the object motion track video.
  10. 如权利要求8所述的物体运动轨迹拍摄系统,其中,所述生成模块包括:The object motion trajectory photographing system of claim 8, wherein the generating module comprises:
    排序单元,配置为确定所述预设的存储路径中设置有标志位时,在拍摄结束时,按照拍摄时间对拍摄到的图片进行排序;a sorting unit configured to determine that a flag is set in the preset storage path, and the captured pictures are sorted according to a shooting time at the end of shooting;
    图片提取单元,配置为按照所述排序单元获得的排列顺序提取拍摄得到的图片;a picture extracting unit configured to extract the captured picture according to an arrangement order obtained by the sorting unit;
    处理单元,配置为将标志位之前的最后一张物体运动轨迹图片作为第一次合成的物体运动轨迹图片;The processing unit is configured to use the last object motion track picture before the flag bit as the first synthesized object motion track picture;
    图片合成单元,配置为在所述图片提取单元每提取一张图片时,将提取的图片与所述处理单元中上一次合成的物体运动轨迹图片进行合成以生成新的物体运动轨迹图片;a picture synthesizing unit configured to, when the picture extracting unit extracts one picture, synthesize the extracted picture with the object motion track picture synthesized last time in the processing unit to generate a new object motion track picture;
    生成单元,配置为将所述图片合成单元合成的多个物体运动轨迹图片存储至所述预设的存储路径并基于拍摄过程中合成的多个物体运动轨迹图片,以及所述标志位之前的图片生成物体运动轨迹视频。 a generating unit configured to store a plurality of object motion trajectory images synthesized by the picture synthesizing unit to the preset storage path and based on a plurality of object motion trajectory pictures synthesized during the shooting process, and a picture before the flag bit Generate an object motion track video.
  11. 如权利要求8至10任一项所述的物体运动轨迹拍摄系统,其中,所述物体运动轨迹拍摄系统还包括:The object motion trajectory photographing system according to any one of claims 8 to 10, wherein the object motion trajectory photographing system further comprises:
    侦测模块,配置为在物体运动轨迹拍摄过程中,实时或定时侦测中断请求;The detecting module is configured to detect an interrupt request in real time or timing during the shooting process of the object motion track;
    存储模块,配置为当所述侦测模块侦测到所述中断请求时,将缓存中的拍摄数据转存至所述预设的存储路径,在所述拍摄数据的末端添加预设的标志位。a storage module, configured to: when the detecting module detects the interrupt request, dump the captured data in the cache to the preset storage path, and add a preset flag at the end of the captured data .
  12. 如权利要求11所述的物体运动轨迹拍摄系统,其中,所述物体运动轨迹拍摄系统还包括:The object motion trajectory photographing system of claim 11, wherein the object motion trajectory photographing system further comprises:
    触发模块,配置为在终端的剩余电量值小于预设的电量阀值时,触发所述中断请求;或者,在终端剩余存储空间小于预设的存储空间阀值时,触发所述中断请求。The triggering module is configured to trigger the interrupt request when the remaining power value of the terminal is less than a preset power threshold; or trigger the interrupt request when the remaining storage space of the terminal is less than a preset storage space threshold.
  13. 如权利要求8任一项所述的物体运动轨迹拍摄系统,其中,所述物体运动轨迹拍摄系统还包括:The object motion trajectory photographing system according to any one of claims 8 to 8, wherein the object motion trajectory photographing system further comprises:
    处理模块,配置为确定所述预设的存储路径中未设置标志位时,在拍摄到第一张图片时,将所述第一张图片作为第一次合成的物体运动轨迹图片;a processing module, configured to determine that a flag is not set in the preset storage path, and when the first picture is captured, the first picture is used as a first synthesized object motion track picture;
    图片合成模块,配置为在拍摄到所述第一张图片之后,每拍摄到一张图片,将拍摄到的图片与所述处理模块中上一次合成的物体运动轨迹图片进行合成生成新的物体运动轨迹图片;a picture synthesizing module configured to, after capturing the first picture, synthesize a picture, and combine the captured picture with the last synthesized object motion track picture in the processing module to generate a new object motion Track picture
    所述生成模块,还配置为在拍摄结束时,将所述图片合成模块合成的多个物体运动轨迹图片存储至所述预设的存储路径片并基于拍摄过程中合成的多个物体运动轨迹图片生成物体运动轨迹视频。The generating module is further configured to: when the shooting ends, store the plurality of object motion track images synthesized by the picture synthesizing module to the preset storage path piece and based on the plurality of object motion track pictures synthesized during the shooting process Generate an object motion track video.
  14. 如权利要求13任一项所述的物体运动轨迹拍摄系统,其中,所述物体运动轨迹拍摄系统还包括: The object motion trajectory photographing system according to any one of claims 13 to 3, wherein the object motion trajectory photographing system further comprises:
    排序模块,配置为确定所述预设的存储路径中未设置标志位时,则在拍摄结束时,按照拍摄时间对拍摄到的图片进行排序;a sorting module configured to determine that the captured image is not set in the preset storage path, and the captured images are sorted according to the shooting time at the end of the shooting;
    图片提取模块,配置为按照所述排序模块获得的排列顺序提取拍摄得到的图片;a picture extraction module, configured to extract the captured picture according to an arrangement order obtained by the sorting module;
    处理模块,配置为在所述图片提取模块提取到第一张图片时,将所述第一张图片作为第一次合成的物体运动轨迹图片;a processing module, configured to use the first picture as the first synthesized object motion track picture when the picture extraction module extracts the first picture;
    图片合成模块,配置为在所述图片提取模块提取到所述第一张图片之后,每提取到一张图片,将提取到的图片与上一次合成的物体运动轨迹图片进行合成生成新的物体运动轨迹图片;a picture synthesizing module, configured to: after the picture extraction module extracts the first picture, each time a picture is extracted, the extracted picture is combined with the last synthesized object motion track picture to generate a new object motion Track picture
    所述生成模块,还配置为将所述图片合成模块合成的多个物体运动轨迹图片存储至所述预设的存储路径并基于拍摄过程中合成的多个物体运动轨迹图片生成物体运动轨迹视频。The generating module is further configured to store the plurality of object motion track images synthesized by the picture synthesis module to the preset storage path and generate an object motion track video based on the plurality of object motion track pictures synthesized during the shooting process.
  15. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令配置为执行权利要求1至7任一项所述的物体运动轨迹拍摄方法。 A computer storage medium having computer executable instructions stored thereon, the computer executable instructions being configured to perform the object motion trajectory photographing method of any one of claims 1 to 7.
PCT/CN2015/083992 2014-08-06 2015-07-14 Object motion trajectory photographing method and system, and computer storage medium WO2016019786A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410385000.8A CN104135627B (en) 2014-08-06 2014-08-06 Movement locus of object image pickup method and system
CN201410385000.8 2014-08-06

Publications (1)

Publication Number Publication Date
WO2016019786A1 true WO2016019786A1 (en) 2016-02-11

Family

ID=51808140

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/083992 WO2016019786A1 (en) 2014-08-06 2015-07-14 Object motion trajectory photographing method and system, and computer storage medium

Country Status (2)

Country Link
CN (1) CN104135627B (en)
WO (1) WO2016019786A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104135627B (en) * 2014-08-06 2018-03-30 努比亚技术有限公司 Movement locus of object image pickup method and system
CN105072350B (en) 2015-06-30 2019-09-27 华为技术有限公司 A kind of photographic method and device
CN109743508A (en) * 2019-01-08 2019-05-10 深圳市阿力为科技有限公司 A kind of time-lapse photography device and method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1692631A (en) * 2002-12-06 2005-11-02 卡西欧计算机株式会社 Image pickup device and image pickup method
CN1805505A (en) * 2005-01-12 2006-07-19 上海乐金广电电子有限公司 Method of managing digital slow-speed shutter mode of monitoring camera
US20120257071A1 (en) * 2011-04-06 2012-10-11 Prentice Wayne E Digital camera having variable duration burst mode
CN203191666U (en) * 2013-03-27 2013-09-11 深圳市优威视讯科技有限公司 Camera with function of taking picture at regular time
CN103575406A (en) * 2012-08-10 2014-02-12 弗卢克公司 Thermal imaging camera with intermittent image capture
CN103905730A (en) * 2014-03-24 2014-07-02 深圳市中兴移动通信有限公司 Shooting method of mobile terminal and mobile terminal
CN104135627A (en) * 2014-08-06 2014-11-05 深圳市中兴移动通信有限公司 A method and a system for shooting an object motion trail

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7574016B2 (en) * 2003-06-26 2009-08-11 Fotonation Vision Limited Digital image processing using face detection information
CN103871075B (en) * 2013-12-30 2015-11-18 华中科技大学 A kind of large oval remote sensing satellite earth background relative motion method of estimation

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1692631A (en) * 2002-12-06 2005-11-02 卡西欧计算机株式会社 Image pickup device and image pickup method
CN1805505A (en) * 2005-01-12 2006-07-19 上海乐金广电电子有限公司 Method of managing digital slow-speed shutter mode of monitoring camera
US20120257071A1 (en) * 2011-04-06 2012-10-11 Prentice Wayne E Digital camera having variable duration burst mode
CN103575406A (en) * 2012-08-10 2014-02-12 弗卢克公司 Thermal imaging camera with intermittent image capture
CN203191666U (en) * 2013-03-27 2013-09-11 深圳市优威视讯科技有限公司 Camera with function of taking picture at regular time
CN103905730A (en) * 2014-03-24 2014-07-02 深圳市中兴移动通信有限公司 Shooting method of mobile terminal and mobile terminal
CN104135627A (en) * 2014-08-06 2014-11-05 深圳市中兴移动通信有限公司 A method and a system for shooting an object motion trail

Also Published As

Publication number Publication date
CN104135627B (en) 2018-03-30
CN104135627A (en) 2014-11-05

Similar Documents

Publication Publication Date Title
US10546615B2 (en) Digital image processing apparatus and method of controlling the same
US10244184B2 (en) Method and apparatus for shooting star trail video, and computer storage medium
WO2016023406A1 (en) Shooting method for motion trace of object, mobile terminal and computer storage medium
WO2016008359A1 (en) Object movement track image synthesizing method, device and computer storage medium
US10419661B2 (en) Shooting method and shooting device
US20090033754A1 (en) Signal processing circuit and image shooting apparatus
US10171753B2 (en) Shooting method, shooting device and computer storage medium
US9413922B2 (en) Photographing apparatus and method for synthesizing images
US9185294B2 (en) Image apparatus, image display apparatus and image display method
JP6574878B2 (en) Image processing apparatus, image processing method, imaging apparatus, program, and storage medium
WO2016019817A1 (en) Object motion trajectory photographing method and system, and computer storage medium
WO2016011872A1 (en) Image photographing method and apparatus and computer storage medium
WO2015180683A1 (en) Mobile terminal, method and device for setting image pickup parameters, and computer storage medium
US9609167B2 (en) Imaging device capable of temporarily storing a plurality of image data, and control method for an imaging device
JP2015162779A (en) imaging device, imaging method, and program
US8654204B2 (en) Digtal photographing apparatus and method of controlling the same
WO2016019786A1 (en) Object motion trajectory photographing method and system, and computer storage medium
US11622175B2 (en) Electronic apparatus and control method thereof
KR20150088200A (en) Imaging apparatus, imaging control method and program
CN105357447B (en) Picture processing method and device
JP2010068222A (en) Face detection controller, face detection control program and face detection control method
US11523052B2 (en) Electronic apparatus, control method of electronic apparatus, and non-transitory computer readable medium
US9955135B2 (en) Image processing apparatus, image processing method, and program wherein a RAW image to be subjected to special processing is preferentially subjected to development
JP6450107B2 (en) Image processing apparatus, image processing method, program, and storage medium
KR20100018330A (en) Digital image processing apparatus, method for controlling the same and medium of recording the method

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

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 20/05/2017)

122 Ep: pct application non-entry in european phase

Ref document number: 15829261

Country of ref document: EP

Kind code of ref document: A1