CN110913138B - Continuous shooting method, device, terminal and computer readable storage medium - Google Patents

Continuous shooting method, device, terminal and computer readable storage medium Download PDF

Info

Publication number
CN110913138B
CN110913138B CN201911186044.7A CN201911186044A CN110913138B CN 110913138 B CN110913138 B CN 110913138B CN 201911186044 A CN201911186044 A CN 201911186044A CN 110913138 B CN110913138 B CN 110913138B
Authority
CN
China
Prior art keywords
continuous shooting
instruction
shooting
camera
picture
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201911186044.7A
Other languages
Chinese (zh)
Other versions
CN110913138A (en
Inventor
邹剑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201911186044.7A priority Critical patent/CN110913138B/en
Publication of CN110913138A publication Critical patent/CN110913138A/en
Application granted granted Critical
Publication of CN110913138B publication Critical patent/CN110913138B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Abstract

The application belongs to the technical field of photographing, and particularly relates to a continuous shooting method, a continuous shooting device, a terminal and a computer-readable storage medium, wherein the continuous shooting method comprises the following steps: acquiring a continuous shooting starting instruction; sending a repeated shooting instruction to a camera according to the continuous shooting starting instruction, and acquiring a continuous shooting picture shot by the camera; the repeated shooting instruction is used for instructing a camera to perform picture generation processing on the collected multi-frame images at the highest processing priority to obtain the continuous shooting picture; receiving a continuous shooting ending instruction, and finishing continuous shooting operation according to the received continuous shooting ending instruction; the technical problems that when the terminal carries out continuous shooting operation, the continuous shooting speed is low, and multiple continuous shooting images cannot be quickly obtained are solved.

Description

Continuous shooting method, device, terminal and computer readable storage medium
Technical Field
The present application belongs to the field of photographing technologies, and in particular, to a continuous photographing method, apparatus, terminal, and computer-readable storage medium.
Background
Along with the development of science and technology, intelligent terminal's the function of shooing is more and more abundant, when needs shoot the object of motion or need shoot people's attitude, the terminal can reach the effect of taking a candid photograph through the function of taking a candid photograph in succession.
However, when the terminal performs continuous shooting operation, the continuous shooting speed is slow, and the problem that multiple continuous shooting images cannot be obtained quickly is solved.
Disclosure of Invention
The embodiment of the application provides a continuous shooting method, a continuous shooting device, a terminal and a computer readable storage medium, which can solve the technical problems that when the terminal carries out continuous shooting operation, the continuous shooting speed is low, and multiple continuous shooting images cannot be quickly obtained.
A first aspect of an embodiment of the present application provides a continuous shooting method, including:
acquiring a continuous shooting starting instruction;
sending a repeated shooting instruction to a camera according to the continuous shooting starting instruction, and acquiring a continuous shooting picture shot by the camera; the repeated shooting instruction is used for instructing a camera to perform picture generation processing on the collected multi-frame images at the highest processing priority to obtain the continuous shooting picture;
and receiving a continuous shooting ending instruction, and finishing continuous shooting operation according to the received continuous shooting ending instruction.
A second aspect of the embodiments of the present application provides a continuous shooting device, including:
the acquisition unit is used for acquiring a continuous shooting starting instruction;
the continuous shooting unit is used for sending a repeated shooting instruction to the camera according to the continuous shooting starting instruction and acquiring a continuous shooting picture shot by the camera; the repeated shooting instruction is used for instructing a camera to perform picture generation processing on the collected multi-frame images at the highest processing priority to obtain the continuous shooting picture;
and the ending unit is used for receiving the continuous shooting ending instruction and finishing the continuous shooting operation according to the received continuous shooting ending instruction.
A third aspect of the embodiments of the present application provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method when executing the computer program.
A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of the above method.
In the embodiment of the application, the repeated shooting instruction is sent to the camera according to the obtained continuous shooting starting instruction, and the continuous shooting picture obtained by carrying out picture generation processing on the collected multi-frame image by the camera according to the repeated shooting instruction with the highest processing priority is obtained, so that the terminal can ensure the shooting frame rate of the continuous shooting picture to the maximum extent, and the shooting speed of the continuous shooting picture is improved. For example, in the process of performing picture generation processing on a certain frame of image acquired by a camera, if a new frame of image needs to be previewed or other photographing flows need to be processed at this time, the picture generation processing is preferentially completed, and then the new frame of image is previewed or other photographing flows are executed, so that the image is not interrupted when the picture generation processing is performed on the image, the time required by newly inserting the new frame of image acquired by the camera to be previewed or executing the other photographing flows is saved, the continuous shooting picture acquisition efficiency is improved, and the technical problems that the continuous shooting speed is slow and multiple continuous shooting images cannot be quickly obtained when a terminal performs continuous shooting operation are solved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
FIG. 1 is a schematic diagram of a processing procedure of a current continuous shooting method;
fig. 2 is a schematic flow chart of an implementation of a continuous shooting method provided in an embodiment of the present application;
FIG. 3 is a schematic processing diagram of a continuous shooting method provided in an embodiment of the present application;
FIG. 4a is a graph of data from a first test experiment provided in an embodiment of the present application;
FIG. 4b is a graph of data from a second test experiment provided in an example of the present application;
fig. 5 is a schematic diagram of continuous shooting during video recording according to an embodiment of the present application;
FIG. 6 is a timing diagram of outputting burst information provided by an embodiment of the present application;
fig. 7 is a schematic flow chart of an implementation of deleting a continuously shot picture according to an embodiment of the present application;
FIG. 8 is a schematic structural diagram of a continuous shooting device provided in an embodiment of the present application;
fig. 9 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
In order to explain the technical means of the present application, the following description will be given by way of specific examples.
At present, when a terminal performs continuous shooting operation, in the process of performing picture generation processing on image data acquired by a camera to obtain a continuous shooting picture, when an image needing preview processing or other shooting flows needing to be executed exist, the process of performing picture generation processing on the image data acquired by the camera is interrupted, the preview processing of the image or other shooting flows needing to be executed is preferentially completed, and then the process of performing picture generation processing on the image data acquired by the camera is continued, so that the time for acquiring the continuous shooting picture is increased, and the continuous shooting speed is reduced.
For example, as shown in fig. 1, assuming that it takes 100ms of processing time to perform one picture generation process and 30ms of processing time to perform one preview process, assuming that the terminal starts the first picture generation process at 0ms (shown by a solid line in the figure), and at 30ms, there is one image to be previewed, it is necessary to interrupt the first picture generation process, preferentially perform the preview process (shown by a dotted line in the figure), and continue the first picture generation process at 60ms (completion of the preview process), and at 80ms, there are two images to be previewed, and similarly, the terminal interrupts the first picture generation process, preferentially performs the preview process, and continues the first picture generation process at 140ms (completion of the two preview processes), and does not complete the first picture generation process until 190ms, since the second picture generation processing is performed, the first picture generation processing takes 60ms more time, and the time required for acquiring a plurality of pictures increases each time the picture generation processing is interrupted, which reduces the continuous shooting speed.
Based on this, the embodiments of the present application provide a continuous shooting method, apparatus, terminal and computer-readable storage medium, which can be applied to various image processing application scenarios.
Fig. 2 shows a schematic flow chart of an implementation of a continuous shooting method provided in an embodiment of the present application, where the method is applied to a terminal, and can be executed by a continuous shooting device configured on the terminal, and is suitable for a situation where a continuous shooting speed needs to be increased. The terminal can be an intelligent terminal which can realize a photographing function and is used for mobile phones, computers, wearable equipment and the like. The continuous shooting method may include steps 201 to 203.
Step 201, acquiring a continuous shooting starting instruction.
In the embodiment of the present application, continuous shooting refers to a shooting mode for continuously shooting a plurality of pictures. For example, 5, 10 or other more or less pictures may be taken.
In some embodiments of the present application, the obtaining of the continuous shooting start instruction may include: the method comprises the steps of obtaining a continuous shooting starting instruction triggered by pressing a touch key, and/or obtaining a continuous shooting starting instruction triggered by clicking a preview interface, and/or obtaining a continuous shooting starting instruction triggered according to a detected preset touch gesture, and/or obtaining a continuous shooting starting instruction triggered by voice.
The pressing of the touch key may include pressing a movable key suspended on the preview interface, or pressing a fixed key fixed on the preview interface; or, the pressing touch key is a hidden key which is hidden in a menu bar on the preview interface.
The continuous shooting starting instruction triggered by the click preview interface can comprise a continuous shooting starting instruction triggered by a single click or a continuous shooting starting instruction triggered by continuous multiple click preview interfaces, or a continuous shooting starting instruction triggered by a long-time press preview interface.
The preset touch gesture may include a user-defined touch screen gesture, for example, a touch screen gesture of sliding in various directions (sliding left, sliding right, etc.), a touch screen gesture of drawing a polygon (drawing a circle, drawing a triangle), and the like.
The voice may include a user-defined voice, and for example, the user may trigger a continuous shooting operation by inputting "continuous shooting", "start continuous shooting", "continuous shooting", and the like.
It should be noted that the above triggering mode has the characteristics of diversification, intuition and simplicity, and a user can easily and conveniently trigger the continuous shooting starting instruction through the above triggering mode, so that the operating efficiency of the user in continuous shooting is improved.
Step 202, sending a repeated shooting instruction to a camera according to the continuous shooting starting instruction, and acquiring a continuous shooting picture shot by the camera; and the repeated shooting instruction is used for instructing the camera to carry out picture generation processing on the collected multi-frame images at the highest processing priority so as to obtain the continuous shooting picture.
After the continuous shooting starting instruction is obtained, the terminal can send a repeated shooting instruction to the camera according to the continuous shooting starting instruction, so that the camera can acquire multi-frame images according to the continuous shooting starting instruction, and the acquired multi-frame images are subjected to image generation processing at the highest processing priority to obtain continuous shooting images.
The processing of generating a picture for a plurality of acquired images with the highest processing priority to obtain a continuous shooting picture may refer to that, in the process of generating a picture for a certain frame of image acquired by a camera, if a new frame of image needs to be previewed or other shooting flows need to be processed, the generation of the picture is preferentially completed, and then the preview processing is performed on the new frame of image or other shooting flows are executed, so that the generation of the picture is not interrupted when the image is generated.
Specifically, if the photographing application of the terminal adopts a CameraII architecture in the google framework, the repeated photographing instruction may be a photographing instruction sent by calling a repeated photographing function setrepeat burst () provided by the framework.
It should be noted that, at present, setretastating burst () function is generally used for video shooting, and is not used for shooting one picture or shooting (continuous shooting) of multiple pictures. The traditional shooting of one picture or multiple pictures adopts a snapshot function captureBurst () provided by a CameraII framework. When a captureBurst () function is used for shooting (continuously shooting) a plurality of pictures, a continuous shooting request with a preset continuous shooting quantity needs to be packaged in the captureBurst () function, only a plurality of pictures corresponding to the preset continuous shooting quantity can be shot at most at one time, and when the captureBurst () function is used for continuously shooting, in the process of generating pictures for image data collected by a camera to obtain continuously shot pictures, when images needing preview processing or other shooting flows needing to be executed exist, the process of generating pictures for the image data collected by the camera is interrupted, the preview processing of the images or other shooting flows needing to be executed is preferentially completed, and then the process of generating pictures for the image data collected by the camera is continued. Therefore, when the captureBurst () function provided by the frame is used for continuous shooting, the continuous shooting frequency is at the upper limit value, and continuous shooting pictures as many as possible can not be taken in a short time, so that the shooting frame rate of the continuous shooting pictures is reduced.
In the setreprintingburst () function adopted by the application, continuous shooting requests with preset continuous shooting quantity do not need to be packaged inside, so that no upper limit value exists for the continuous shooting times, and a user can determine the continuous shooting times according to needs in practical application.
Further, the repeated shooting instruction can instruct the camera of the terminal to perform picture generation processing on the collected multi-frame images at the highest processing priority, and then perform preview processing on a new frame of image collected by the camera or execute processing of other shooting processes, so that the shooting frame rate of the continuous shooting pictures can be guaranteed to the maximum extent, the shooting speed of the continuous shooting pictures is improved, and the technical problems that the continuous shooting speed is low when the terminal performs continuous shooting operation and multiple continuous shooting images cannot be obtained quickly are solved.
For example, as shown in fig. 3, it is assumed that it takes 100ms of processing time to perform picture generation processing and 30ms of processing time to perform preview processing, and it is assumed that the terminal starts the first picture generation processing at 0ms, and during the first picture generation processing, there are two images that need to be previewed, but the terminal still preferentially performs the first picture generation processing, so at 100ms, the terminal has already completed the first picture generation processing, and at this time, it performs the preview processing again, and then starts the second picture generation processing again, and therefore, time to perform the preview processing in each picture generation processing is saved.
As shown in fig. 4a, the continuous shooting method provided by the present application is tested for continuously shooting 20 pictures, and the total time consumed is 14.079-13.154-925 ms.
In the conventional continuous shooting method, when a terminal performs picture generation processing on a certain collected frame of image, if preview processing or other shooting processes to be executed are required to be performed on a new frame of image collected by a camera at the moment, the preview processing or other shooting processes to be executed are firstly completed, and then the picture generation processing is continuously completed.
As shown in fig. 4b, the current continuous shooting method is tested for continuously shooting 20 pictures, and the total time is 59.488-58.085-1403 ms.
From the experimental data, the speed of continuously shooting 20 pictures by using the continuous shooting method provided by the application can be improved by 34.07%.
In some other embodiments of the present application, in order to further increase the continuous shooting speed, the continuous shooting picture obtained by performing the picture generation processing on the acquired multiple frames of images with the highest priority according to the repeated shooting instruction may further include: and only carrying out picture generation processing on the frame image acquired by the camera, and not carrying out preview processing until the continuous shooting operation is finished, namely, the preview image stays in the preview image when the continuous shooting is started, and is not refreshed, so that the continuous shooting speed is further improved.
It should be noted that, in practical applications, the picture generation process may include: the terminal collects a certain frame of image through a camera, and performs 3A image processing of Automatic White Balance (AWB), Automatic Focusing (AF) and Automatic Exposure (AE) on the image; or, performing AI image processing such as face recognition and scene recognition on the image; or, after the image is subjected to image processing such as beauty processing, blurring processing, anti-shake processing, etc., the processed image is sent to a Jpeg encoder to be encoded, and the Jpeg encoder encodes the image to generate a picture in a Jpeg format, or sent to an encoder in another format to generate a picture in a corresponding format.
And 203, receiving a continuous shooting ending instruction, and finishing continuous shooting operation according to the received continuous shooting ending instruction.
In the embodiment of the application, the repeated shooting instruction is sent to the camera according to the obtained continuous shooting starting instruction, and the continuous shooting picture obtained by carrying out picture generation processing on the collected multi-frame image by the camera according to the repeated shooting instruction is obtained, so that the terminal can ensure the shooting frame rate of the continuous shooting picture to the maximum extent, and the shooting speed of the continuous shooting picture is improved. For example, in the process of performing picture generation processing on a certain frame of image acquired by a camera, if a new frame of image needs to be previewed or other photographing flows need to be processed at this time, the picture generation processing is preferentially completed, and then the new frame of image is previewed or other photographing flows are executed, so that the image is not interrupted when the picture generation processing is performed on the image, the time required by newly inserting the new frame of image acquired by the camera to be previewed or executing the other photographing flows is saved, the continuous shooting picture acquisition efficiency is improved, and the technical problems that the continuous shooting speed is slow and multiple continuous shooting images cannot be quickly obtained when a terminal performs continuous shooting operation are solved.
In practical application, when a moving object needs to be shot or a human expression needs to be shot, a user often uses a video recording function of a terminal to record a video and captures an interested picture in the recording process.
At present, a terminal can only shoot one picture at a time in a video recording process, and due to the fact that the object moves at a high speed, a snapshot opportunity is easily missed, the shot picture possibly does not meet the requirements of a user, and the success rate of snapshot is reduced.
Since the above repeated shooting instruction, for example, setRepeatingBurst () function, may be applied to both video recording operation and continuous shooting operation, that is, a video image and a continuous shooting picture may be generated by using the same metadata while recording a video, in some embodiments of the present application, the obtaining of the continuous shooting start instruction may further include obtaining a continuous shooting start instruction triggered in the video recording process.
For example, as shown in fig. 5, when the user views the preview image 51, a video recording instruction is triggered to record a video, when the user views the preview image 52, the video is kept continuously recorded, a continuous shooting start instruction is triggered to start continuous shooting, when continuous shooting of 10 pictures is completed, a continuous shooting end instruction is triggered to start continuous shooting, and when the user previews the preview image 53, a video recording end instruction is triggered to complete video recording.
In the embodiment of the application, the continuous shooting starting instruction triggered in the video recording process is acquired, and continuous shooting operation is completed according to the continuous shooting starting instruction, so that the terminal can realize continuous shooting in the video recording process, and the success rate of the continuous shooting is improved.
When carrying out the continuous shooting operation, in order to reach better interactive effect, in some embodiments of this application, according to continuous shooting start instruction, send repeated shooting instruction to the camera to the in-process of obtaining the continuous shooting picture that the camera was shot and is obtained can also include: and outputting continuous shooting information.
The continuous shooting information comprises one or more of continuous shooting reminding information, continuous shooting times and continuous shooting sound effect.
For example, as shown in fig. 6, when the CameraII framework is used for continuous shooting, the Hardware Abstraction Layer (HAL) notifies the application layer of completing frame image acquisition through the notification function oneimageavailable () function, and then the application layer may start to perform picture generation processing on the acquired image, at this time, the application layer may further call a continuous shooting frequency display function showburstcapturenber (), and display the continuous shooting frequency in a shooting interface or a video recording interface, or the application layer may call a continuous shooting sound effect play function playCaptureSound () function to play a continuous shooting sound effect during continuous shooting, so as to achieve an effect of prompting a user of continuous shooting information.
In practical applications, a user may need to fast obtain a continuous shooting picture in some shooting scenes, for example, when shooting an object with a fast motion speed, and some shooting scenes still need to perform continuous shooting at a slow speed, for example, when shooting an object with a slow motion speed, and therefore, in some embodiments of the present application, when the continuous shooting start instruction is a continuous shooting start instruction triggered by pressing a touch key, in order to implement adjustment of two continuous shooting speeds, after obtaining the continuous shooting start instruction triggered by pressing the touch key, the method may further include: and acquiring the pressure value of the pressed touch key.
The step of pressing the pressure value of the touch key may include acquiring the pressure value of pressing the touch key through a force sensor of the terminal.
Correspondingly, the above-mentioned sending is shot the instruction repeatedly to the camera according to the start instruction of taking a continuous photograph to obtain the continuous photograph picture that the camera was shot and is obtained, can include: and if the pressure value is larger than the pressure threshold value, sending a repeated shooting instruction to the camera according to the continuous shooting starting instruction, and acquiring a continuous shooting picture shot by the camera.
In some embodiments of the present application, if the pressure value is less than or equal to the pressure threshold, a continuous shooting instruction is sent to the camera according to the continuous shooting start instruction, for example, the continuous shooting instruction sent to the camera by calling a continuous shooting function captureBurst () is called, and a continuous shooting picture obtained by performing picture generation processing on a captured multi-frame image by the camera according to the continuous shooting instruction is obtained.
It should be noted that, after the pressure value obtained by pressing the touch key is obtained, if the pressure value is greater than the pressure threshold value, it indicates that the user needs to perform fast shooting, at this time, the continuous shooting method provided by the present application may be adopted, that is, a repeated shooting instruction is sent to the camera according to the continuous shooting start instruction, and a continuous shooting picture obtained by performing picture generation processing on the acquired multi-frame image with the highest priority by the camera according to the repeated shooting instruction is obtained; if the pressure value is smaller than or equal to the pressure threshold value, the user is indicated to carry out slow shooting, at the moment, a traditional continuous shooting method can be adopted, namely, a continuous shooting instruction is sent to the camera according to the continuous shooting starting instruction, and continuous shooting pictures obtained by carrying out picture generation processing on collected multi-frame images according to the continuous shooting instruction by the camera are obtained.
It should be noted that other methods for achieving continuous shooting speed adjustment are also applicable to the present application, for example, different continuous shooting start instructions are triggered by using different preset touch gestures to perform continuous shooting speed adjustment, or different continuous shooting start instructions are triggered by using different voice instructions to perform continuous shooting speed adjustment, which is not limited in this application.
In practical applications, for a plurality of similar pictures in a continuously shot picture, a user often only needs to keep one of the pictures and delete the rest of the pictures to reduce occupation of a memory of a terminal, in some embodiments of the present application, in order to improve deletion efficiency of the pictures, as shown in fig. 7, the sending a repeat shooting instruction to a camera according to a continuous shooting start instruction and acquiring the continuously shot picture shot by the camera may include: step 701 to step 703.
Step 701, calculating the similarity between the continuous shooting pictures to obtain a plurality of groups of continuous shooting pictures; and the similarity between the continuous shooting pictures of each group of continuous shooting pictures in the multiple groups of continuous shooting pictures is greater than or equal to a similarity threshold value.
In the embodiment of the present application, after a plurality of continuously shot pictures are obtained by the continuous shooting method shown in fig. 2 to 6, a group of continuously shot pictures can be formed by calculating the similarity between every two continuously shot pictures, and when the similarity between the two continuously shot pictures is greater than or equal to the similarity threshold value; and when the similarity between the two continuous shooting pictures is smaller than a similarity threshold value, dividing the two continuous shooting pictures into different groups of continuous shooting pictures, and finally obtaining a plurality of groups of continuous shooting pictures.
For example, in 10 continuous-shot pictures shown in fig. 5, the similarity between five continuous-shot pictures, namely the continuous-shot pictures 54 to 55, is greater than or equal to the similarity threshold, and at this time, the five continuous-shot pictures can be divided into the same group of continuous-shot pictures; similarly, the similarity between five continuous-shot pictures 56 to 57 is greater than or equal to the similarity threshold, and at this time, the five continuous-shot pictures can be divided into the same group of continuous-shot pictures; the similarity between any one of the continuously shot pictures 54 to 55 and any one of the continuously shot pictures 56 to 57 is smaller than the similarity threshold, and therefore, any one of the continuously shot pictures 54 to 55 and any one of the continuously shot pictures 56 to 57 are continuous shot pictures of different groups.
Specifically, the similarity between the continuously shot pictures may be calculated by a structural similarity measurement method, a cosine similarity calculation method, an image similarity calculation method based on a histogram, and the like, which is not limited in the present application.
And step 702, reserving any one continuous shooting picture in each group of continuous shooting pictures, and marking the continuous shooting pictures which are not reserved as images to be deleted.
In some embodiments of the present application, after an unreserved continuously-shot picture is marked as an image to be deleted, a cancellation marking instruction of the image to be deleted may be received, and the image to be deleted corresponding to the cancellation marking instruction is reserved; and/or receiving a marking instruction for the reserved continuous shooting pictures, and marking the reserved continuous shooting pictures corresponding to the marking instruction as images to be deleted.
That is to say, if a user is unsatisfied with the continuous-shot pictures reserved in a group of continuous-shot pictures, the reserved continuous-shot pictures can be marked as images to be deleted, one or more images to be deleted meeting the user requirements are selected from the images to be deleted, and the marks of the images to be deleted are cancelled.
Step 703, receiving a deletion confirmation instruction of the image to be deleted, and deleting the image to be deleted according to the deletion confirmation instruction.
The embodiment of the application obtains the multiunit continuous shooting picture that obtains by many continuous shooting pictures that the similarity is greater than or equal to the similarity threshold value through calculating the similarity between the continuous shooting picture, then keeps arbitrary one continuous shooting picture in every group continuous shooting picture to with the continuous shooting picture mark that does not keep wait to delete the image, receive at last right wait to delete the affirmation instruction of image, according to affirmation deletion instruction deletes waiting to delete the image for when carrying out the deletion of continuous shooting picture, can select the photo that needs to delete in batches automatically, and realize deleting in batches, improved the deletion efficiency of continuous shooting picture, reduced the occupation to terminal storage space simultaneously.
While, for purposes of simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present invention is not limited by the order of acts or combination of acts, as some steps may occur in other orders based on the present invention.
Fig. 8 shows a schematic structural diagram of a continuous shooting device 800 provided in an embodiment of the present application, including an acquisition unit 801, a continuous shooting unit 802, and an end unit 803.
An acquisition unit 801 configured to acquire a continuous shooting start instruction;
a continuous shooting unit 802, configured to send a repeated shooting instruction to a camera according to the continuous shooting start instruction, and obtain a continuous shooting picture obtained by shooting with the camera; the repeated shooting instruction is used for instructing a camera to perform picture generation processing on the collected multi-frame images at the highest processing priority to obtain the continuous shooting picture;
an ending unit 803, configured to receive a continuous shooting ending instruction, and complete a continuous shooting operation according to the received continuous shooting ending instruction.
In some embodiments of the present application, the obtaining unit 801 is further configured to obtain the continuous shooting start instruction triggered in a video recording process.
In some embodiments of the present application, the obtaining unit 801 is further configured to obtain a continuous shooting start instruction triggered by pressing a touch key, and/or obtain a continuous shooting start instruction triggered by clicking a preview interface, and/or obtain a continuous shooting start instruction triggered according to a detected preset touch gesture, and/or obtain a continuous shooting start instruction triggered by a voice.
In some embodiments of the present application, the continuous shooting unit 802 is further configured to obtain a pressure value for pressing the touch key; if the pressure value is larger than the pressure threshold value, sending a repeated shooting instruction to the camera head according to the continuous shooting starting instruction, and acquiring a continuous shooting picture obtained by the camera head preferentially performing picture generation processing on the collected multi-frame image according to the repeated shooting instruction.
In some embodiments of the present application, the continuous shooting apparatus may further include an output unit configured to output continuous shooting information; the continuous shooting information comprises one or more of continuous shooting starting reminding information, continuous shooting times and continuous shooting sound effect.
In some embodiments of the present application, the continuous shooting device may further include a deleting unit, configured to calculate similarities between the continuous shooting pictures to obtain multiple groups of continuous shooting pictures; the similarity between the continuous shooting pictures of each group of continuous shooting pictures in the multiple groups of continuous shooting pictures is greater than or equal to a similarity threshold value; reserving any one continuous shooting picture in each group of continuous shooting pictures, and marking the continuous shooting pictures which are not reserved as images to be deleted; and receiving a deletion confirmation instruction of the image to be deleted, and deleting the image to be deleted according to the deletion confirmation instruction.
In some embodiments of the present application, the continuous shooting apparatus may further include a marking unit, configured to receive a cancellation marking instruction for the image to be deleted, and retain the image to be deleted corresponding to the cancellation marking instruction; and/or receiving a marking instruction for the reserved continuous shooting pictures, and marking the reserved continuous shooting pictures corresponding to the marking instruction as images to be deleted.
As shown in fig. 9, the present application provides a terminal for implementing the continuous shooting method, where the terminal may include: a processor 91, a memory 92, one or more input devices 93 (only one shown in fig. 9), and one or more output devices 94 (only one shown in fig. 9). The processor 91, memory 92, input device 93 and output device 94 are connected by a bus 95.
It should be understood that, in the embodiment of the present Application, the Processor 91 may be a Central Processing Unit (CPU), and the Processor may also be other general processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 93 may include a virtual keyboard, a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), a microphone, etc., and the output device 94 may include a display, a speaker, etc.
The memory 92 stores a computer program that can be executed by the processor 91, and the computer program is, for example, a program of a continuous shooting method. The processor 91 implements the steps in the continuous shooting method embodiment, such as the steps 201 to 203 shown in fig. 2, when executing the computer program. Alternatively, the processor 91 may implement the functions of the units in the device embodiment, for example, the functions of the units 801 to 803 shown in fig. 8, when executing the computer program.
The computer program may be divided into one or more modules/units, which are stored in the memory 92 and executed by the processor 91 to complete the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used for describing the execution process of the computer program in the first terminal for continuous shooting. For example, the computer program may be divided into an acquisition unit, a continuous shooting unit, and an end unit, and each unit functions as follows:
the acquisition unit is used for acquiring a continuous shooting starting instruction;
the continuous shooting unit is used for sending a repeated shooting instruction to the camera head according to the continuous shooting starting instruction and acquiring a continuous shooting picture obtained by the camera head preferentially performing picture generation processing on the collected multi-frame image according to the repeated shooting instruction;
and the ending unit is used for receiving the continuous shooting ending instruction and finishing the continuous shooting operation according to the received continuous shooting ending instruction.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned functions may be distributed as different functional units and modules according to needs, that is, the internal structure of the apparatus may be divided into different functional units or modules to implement all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The embodiment of the present application provides a computer program product, which when running on a terminal device, enables the terminal device to implement the steps of the continuous shooting method in the foregoing embodiments when executed.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal are merely illustrative, and for example, the division of the above-described modules or units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units described above, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above may be implemented by a computer program, which may be stored in a computer readable storage medium and used by a processor to implement the steps of the embodiments of the methods described above. The computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file or some intermediate form. The computer readable medium may include: any entity or device capable of carrying the above-described computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signal, telecommunication signal, software distribution medium, etc. It should be noted that the computer readable medium described above may include content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media that does not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A continuous shooting method, comprising:
acquiring a continuous shooting starting instruction;
sending a repeated shooting instruction to a camera according to the continuous shooting starting instruction, and acquiring a continuous shooting picture shot by the camera; the repeated shooting instruction is used for instructing a camera to perform picture generation processing on the collected multi-frame images at the highest processing priority to obtain the continuous shooting picture; the processing of generating the picture of the collected multi-frame image with the highest processing priority comprises: in the process of generating and processing a certain frame of image collected by a camera, if a new frame of image needs to be previewed or other photographing processes need to be processed, the image generation processing is preferentially finished;
and receiving a continuous shooting ending instruction, and finishing continuous shooting operation according to the received continuous shooting ending instruction.
2. The continuous shooting method according to claim 1, wherein the obtaining of the continuous shooting start instruction comprises:
and acquiring the continuous shooting starting instruction triggered in the video recording process.
3. The continuous shooting method according to claim 1, wherein the obtaining of the continuous shooting start instruction comprises:
acquiring the continuous shooting starting instruction triggered by pressing the touch key, and/or,
acquiring the continuous shooting starting instruction triggered by clicking a preview interface, and/or,
acquiring the continuous shooting starting instruction triggered according to the detected preset touch gesture, and/or,
and acquiring the continuous shooting starting instruction triggered by voice.
4. The continuous shooting method according to claim 3, wherein after the obtaining of the continuous shooting start instruction triggered by pressing a touch key, the method comprises:
acquiring a pressure value for pressing the touch key;
according to the continuous shooting starting instruction, sending a repeated shooting instruction to the camera and acquiring the continuous shooting picture shot by the camera, the method comprises the following steps:
and if the pressure value is larger than the pressure threshold value, sending a repeated shooting instruction to the camera according to the continuous shooting starting instruction, and acquiring a continuous shooting picture shot by the camera.
5. The continuous shooting method according to any one of claims 1 to 4, wherein in the process of sending a repeat shooting instruction to a camera according to the continuous shooting start instruction and acquiring a continuous shooting picture obtained by shooting by the camera, the method comprises:
outputting continuous shooting information; the continuous shooting information comprises one or more of continuous shooting starting reminding information, continuous shooting times and continuous shooting sound effect.
6. The continuous shooting method according to claim 1, wherein after sending a repeat shooting instruction to a camera according to the continuous shooting start instruction and acquiring a continuous shooting picture taken by the camera, the method comprises:
calculating the similarity between the continuous shooting pictures to obtain a plurality of groups of continuous shooting pictures; the similarity between the continuous shooting pictures of each group of continuous shooting pictures in the multiple groups of continuous shooting pictures is greater than or equal to a similarity threshold value;
reserving any one continuous shooting picture in each group of continuous shooting pictures, and marking the continuous shooting pictures which are not reserved as images to be deleted;
and receiving a deletion confirmation instruction of the image to be deleted, and deleting the image to be deleted according to the deletion confirmation instruction.
7. The continuous shooting method according to claim 6, wherein before the receiving of the confirmation deletion instruction for the image to be deleted, the method comprises:
receiving a canceling mark instruction for the image to be deleted, and reserving the image to be deleted corresponding to the canceling mark instruction; and/or the presence of a gas in the gas,
and receiving a marking instruction for the reserved continuous shooting picture, and marking the reserved continuous shooting picture corresponding to the marking instruction as an image to be deleted.
8. A continuous shooting device, comprising:
the acquisition unit is used for acquiring a continuous shooting starting instruction;
the continuous shooting unit is used for sending a repeated shooting instruction to the camera according to the continuous shooting starting instruction and acquiring a continuous shooting picture shot by the camera; the repeated shooting instruction is used for instructing a camera to perform picture generation processing on the collected multi-frame images at the highest processing priority to obtain the continuous shooting picture; the processing of generating the picture of the collected multi-frame image with the highest processing priority comprises: in the process of generating and processing a certain frame of image collected by a camera, if a new frame of image needs to be previewed or other photographing processes need to be processed, the image generation processing is preferentially finished;
and the ending unit is used for receiving the continuous shooting ending instruction and finishing the continuous shooting operation according to the received continuous shooting ending instruction.
9. A terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN201911186044.7A 2019-11-28 2019-11-28 Continuous shooting method, device, terminal and computer readable storage medium Active CN110913138B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911186044.7A CN110913138B (en) 2019-11-28 2019-11-28 Continuous shooting method, device, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911186044.7A CN110913138B (en) 2019-11-28 2019-11-28 Continuous shooting method, device, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110913138A CN110913138A (en) 2020-03-24
CN110913138B true CN110913138B (en) 2021-03-02

Family

ID=69820151

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911186044.7A Active CN110913138B (en) 2019-11-28 2019-11-28 Continuous shooting method, device, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110913138B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113973172B (en) * 2020-07-23 2023-09-26 北京小米移动软件有限公司 Shooting method, shooting device, storage medium and electronic equipment
CN116055857B (en) * 2022-08-24 2023-11-24 荣耀终端有限公司 Photographing method and electronic equipment
CN117061861B (en) * 2023-10-11 2024-04-12 荣耀终端有限公司 Shooting method, chip system and electronic equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1742481A (en) * 2003-04-07 2006-03-01 圣像实验室有限公司 Method for capturing of real-time image
CN1925563A (en) * 2005-08-31 2007-03-07 卡西欧计算机株式会社 Digital camera, storage medium and image processing device
CN1992772A (en) * 2005-12-26 2007-07-04 华晶科技股份有限公司 Method for browsing image during the process of image compression
CN101873422A (en) * 2009-04-22 2010-10-27 索尼公司 Imaging apparatus and start-up method of imaging apparatus
CN104052926A (en) * 2013-03-14 2014-09-17 Juki株式会社 Image processing device and image processing method
CN104219419A (en) * 2013-06-03 2014-12-17 柯尼卡美能达株式会社 Printing apparatus, terminal apparatus, and non-transitory computer readable recording medium stored with printing program
CN105827942A (en) * 2015-09-24 2016-08-03 维沃移动通信有限公司 Rapid photographing method and electronic device
CN107659722A (en) * 2017-09-25 2018-02-02 维沃移动通信有限公司 A kind of image-selecting method and mobile terminal
CN108345435A (en) * 2017-01-24 2018-07-31 佳能株式会社 Image formation system and image forming method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7738015B2 (en) * 1997-10-09 2010-06-15 Fotonation Vision Limited Red-eye filter method and apparatus
JP2007150439A (en) * 2005-11-24 2007-06-14 Sony Corp Imaging apparatus, imaging method, and program
KR101345290B1 (en) * 2007-08-10 2013-12-27 삼성전자주식회사 Digital signal processor and digital image processing apparatus adopting the same
KR101751347B1 (en) * 2015-06-16 2017-07-11 엘지전자 주식회사 Mobile terminal and method of controlling the same
CN108259741A (en) * 2018-01-10 2018-07-06 上海展扬通信技术有限公司 Method, mobile terminal and the computer readable storage medium of multiple terminals synchronous photo taking

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1742481A (en) * 2003-04-07 2006-03-01 圣像实验室有限公司 Method for capturing of real-time image
CN1925563A (en) * 2005-08-31 2007-03-07 卡西欧计算机株式会社 Digital camera, storage medium and image processing device
CN1992772A (en) * 2005-12-26 2007-07-04 华晶科技股份有限公司 Method for browsing image during the process of image compression
CN101873422A (en) * 2009-04-22 2010-10-27 索尼公司 Imaging apparatus and start-up method of imaging apparatus
CN104052926A (en) * 2013-03-14 2014-09-17 Juki株式会社 Image processing device and image processing method
CN104219419A (en) * 2013-06-03 2014-12-17 柯尼卡美能达株式会社 Printing apparatus, terminal apparatus, and non-transitory computer readable recording medium stored with printing program
CN105827942A (en) * 2015-09-24 2016-08-03 维沃移动通信有限公司 Rapid photographing method and electronic device
CN108345435A (en) * 2017-01-24 2018-07-31 佳能株式会社 Image formation system and image forming method
CN107659722A (en) * 2017-09-25 2018-02-02 维沃移动通信有限公司 A kind of image-selecting method and mobile terminal

Also Published As

Publication number Publication date
CN110913138A (en) 2020-03-24

Similar Documents

Publication Publication Date Title
CN110913138B (en) Continuous shooting method, device, terminal and computer readable storage medium
CN106570110B (en) Image duplicate removal method and device
EP3008729A1 (en) Method, apparatus and computer program product for gathering and presenting emotional response to an event
JP5837922B2 (en) Ranking key video frames based on camera position
KR20140089149A (en) Method for obtaining video data and an electronic device thereof
CN111669502B (en) Target object display method and device and electronic equipment
CN106791535B (en) Video recording method and device
CN112770059B (en) Photographing method and device and electronic equipment
CN112330570B (en) Image processing method, device, electronic equipment and storage medium
CN114025105B (en) Video processing method, device, electronic equipment and storage medium
CN106815803B (en) Picture processing method and device
WO2017107855A1 (en) Picture searching method and device
CN112637490A (en) Video production method and device, electronic equipment and storage medium
CN117479000A (en) Video recording method and related device
CN106161924B (en) Track photo shooting method and device and mobile terminal
CN110717452B (en) Image recognition method, device, terminal and computer readable storage medium
US11163822B2 (en) Emotional experience metadata on recorded images
US11252341B2 (en) Method and device for shooting image, and storage medium
CN113489899A (en) Special effect video recording method and device, computer equipment and storage medium
CN115802148A (en) Method for acquiring image and electronic equipment
CN109257544A (en) Image recording structure, image recording process and recording medium
CN113139560A (en) Training method and device of video processing model, and video processing method and device
US20190034745A1 (en) Information processing module, information processing method, information processing program, and information processing apparatus
CN109981729A (en) Document handling method, device, electronic equipment and computer readable storage medium
CN114500819B (en) Shooting method, shooting device and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant