CN113542610A - Shooting method, mobile terminal and storage medium - Google Patents

Shooting method, mobile terminal and storage medium Download PDF

Info

Publication number
CN113542610A
CN113542610A CN202110851878.6A CN202110851878A CN113542610A CN 113542610 A CN113542610 A CN 113542610A CN 202110851878 A CN202110851878 A CN 202110851878A CN 113542610 A CN113542610 A CN 113542610A
Authority
CN
China
Prior art keywords
target
special effect
shooting
mobile terminal
video
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.)
Pending
Application number
CN202110851878.6A
Other languages
Chinese (zh)
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.)
Shanghai Chuanying Information Technology Co Ltd
Original Assignee
Shanghai Chuanying Information Technology Co 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 Shanghai Chuanying Information Technology Co Ltd filed Critical Shanghai Chuanying Information Technology Co Ltd
Priority to CN202110851878.6A priority Critical patent/CN113542610A/en
Publication of CN113542610A publication Critical patent/CN113542610A/en
Priority to PCT/CN2021/130373 priority patent/WO2023005060A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording

Abstract

The application discloses a shooting method, a mobile terminal and a storage medium, wherein the method comprises the following steps: triggering special effect template operation on a preview interface to obtain a target special effect template; receiving a shooting request, and collecting image frames; and generating a target video based on the image frame and the target special effect template. According to the method and the device, the photographic video pictures recorded by the mobile terminal can be richer, and the user experience is improved.

Description

Shooting method, mobile terminal and storage medium
Technical Field
The present application relates to the field of image processing technologies, and in particular, to a shooting method, a mobile terminal, and a storage medium.
Background
In some implementations, when recording a video, a mobile terminal often only provides a recording function itself, that is, a user clicks to start recording and stop recording, and in the process of designing and implementing the present application, the inventors find that at least the following problems exist: the content of the picture of the photographic video (such as the delayed photographic video) recorded by the mobile terminal is monotonous, which results in low user experience.
The foregoing description is provided for general background information and is not admitted to be prior art.
Disclosure of Invention
In view of the above technical problems, the present application provides a shooting method, a mobile terminal and a storage medium, so that a photographic video image recorded by the mobile terminal is richer, and user experience is improved.
In order to solve the above technical problem, the present application provides a shooting method, including:
triggering special effect template operation on a preview interface to obtain a target special effect template;
receiving a shooting request, and collecting image frames;
and generating a target video based on the image frame and the target special effect template.
Optionally, the step of generating a target video according to the image frame and the target special effect template includes:
carrying out special effect processing on the image frame by adopting the target special effect template;
extracting key frames of a target number from the image frames after the special effect processing;
generating the target video based on the key frames.
Optionally, after the step of performing special effect processing on the image frame by using the target special effect template, the method further includes:
and displaying the image frame after the special effect processing on the preview interface.
Optionally, the step of generating a target video based on the image frames and the target special effect template comprises:
extracting a target number of key frames from the image frames;
performing special effect processing on the key frame by adopting the target special effect template;
and generating the target video based on the key frame after the special effect processing.
Optionally, after the step of acquiring an image frame when the shooting request is received, the method further includes:
when a setting instruction of the frame extracting frequency is received, acquiring a target frame extracting frequency corresponding to the setting instruction;
and determining the target number of the key frames according to the target frame extraction frequency.
Optionally, the target special effects template comprises: a filter template and/or a video frame inversion template.
Optionally, after the step of generating the target video based on the image frames and the target special effect template, the method further includes:
caching the target video;
and when a recording ending instruction is received, storing the target video.
Optionally, after receiving the recording end instruction, the method further includes:
and when detecting that the cached target delayed photography comprises at least two videos, splicing the at least two target videos.
Optionally, the step of splicing at least two target videos includes:
and splicing at least two target videos according to the sequence of the cache time.
Optionally, the step of splicing at least two target videos includes:
outputting prompt information of the splicing sequence;
and when the setting operation of the target splicing sequence corresponding to the prompt information is detected, splicing at least two target videos according to the target splicing sequence.
The present application further provides a mobile terminal, including: a memory, a processor, the memory having stored thereon a shooting program, the shooting program when executed by the processor implementing the steps of the method as described above.
The present application also provides a computer storage medium having a computer program stored thereon, which, when being executed by a processor, carries out the steps of the method as described above.
As described above, the shooting method of the application is applied to a mobile terminal, and when a preview interface triggers a special effect template operation, a target special effect template is obtained; when a shooting request is received, collecting image frames; and generating a target video based on the image frame and the target special effect template. By the mode, the content of the photographic video image recorded by the mobile terminal is richer, and therefore the user experience is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application. In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic hardware structure diagram of a mobile terminal implementing various embodiments of the present application;
fig. 2 is a communication network system architecture diagram according to an embodiment of the present application;
fig. 3 is a flowchart illustrating a photographing method according to the first embodiment;
FIG. 4 is a preview interface diagram shown in accordance with the first embodiment;
fig. 5 is a flowchart illustrating a photographing method according to a second embodiment;
fig. 6 is a flowchart illustrating a photographing method according to a third embodiment;
FIG. 7 is a schematic diagram of an interface for adjusting the stitching order of a target video according to the third embodiment;
fig. 8 is a schematic diagram of an interface for pausing recording according to the third embodiment;
fig. 9 is a schematic diagram of an interface for continuing recording according to the third embodiment.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings. With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the recitation of an element by the phrase "comprising an … …" does not exclude the presence of additional like elements in the process, method, article, or apparatus that comprises the element, and optionally, identically named components, features, and elements in different embodiments of the present application may have different meanings, as may be determined by their interpretation in the embodiment or by their further context within the embodiment.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope herein. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context. Also, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes" and/or "including," when used in this specification, specify the presence of stated features, steps, operations, elements, components, items, species, and/or groups, but do not preclude the presence, or addition of one or more other features, steps, operations, elements, components, species, and/or groups thereof. The terms "or," "and/or," "including at least one of the following," and the like, as used herein, are to be construed as inclusive or mean any one or any combination. For example, "includes at least one of: A. b, C "means" any of the following: a; b; c; a and B; a and C; b and C; a and B and C ", again for example," A, B or C "or" A, B and/or C "means" any of the following: a; b; c; a and B; a and C; b and C; a and B and C'. An exception to this definition will occur only when a combination of elements, functions, steps or operations are inherently mutually exclusive in some way.
It should be understood that, although the steps in the flowcharts in the embodiments of the present application are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, in different orders, and may be performed alternately or at least partially with respect to other steps or sub-steps of other steps.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It should be noted that step numbers such as S10 and S20 are used herein for the purpose of more clearly and briefly describing the corresponding content, and do not constitute a substantial limitation on the sequence, and those skilled in the art may perform S20 first and then S10 in specific implementation, which should be within the scope of the present application.
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.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for the convenience of description of the present application, and have no specific meaning in themselves. Thus, "module", "component" or "unit" may be used mixedly.
The mobile terminal may be implemented in various forms. For example, the mobile terminal described in the present application may include mobile terminals such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and fixed terminals such as a Digital TV, a desktop computer, and the like.
The following description will be given taking a mobile terminal as an example, and it will be understood by those skilled in the art that the configuration according to the embodiment of the present application can be applied to a fixed type terminal in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present application, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Alternatively, the radio frequency unit 101 may also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Optionally, the light sensor includes an ambient light sensor that may adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 1061 and/or the backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Alternatively, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Optionally, the touch detection device detects a touch orientation of a user, detects a signal caused by a touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. Alternatively, the touch panel 1071 may be implemented in various types, such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Optionally, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited thereto.
Alternatively, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more at least two elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a program storage area and a data storage area, and optionally, the program storage area may store an operating system, an application program (such as a sound playing function, an image playing function, and the like) required by at least one function, and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Optionally, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, optionally, the application processor mainly handles operating systems, user interfaces, application programs, etc., and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present application, a communication network system on which the mobile terminal of the present application is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present disclosure, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Optionally, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Alternatively, the eNodeB2021 may be connected with other enodebs 2022 through a backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. Optionally, the MME2031 is a control node that handles signaling between the UE201 and the EPC203, providing bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present application is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, various embodiments of the present application are provided.
First embodiment
Referring to fig. 3, a first embodiment of the present application proposes a photographing method, including the steps of:
step S10, when the preview interface triggers the operation of the special effect template, a target special effect template is obtained;
step S20, collecting image frames when receiving a shooting request;
step S30, generating a target video based on the image frames and the target special effect template.
The preview interface is an interface used for previewing a shot video image, the preview interface comprises elements of a special effect template, the special effect template operation is an operation of selecting the special effect template, the operation is triggered by a user, the target special effect template is the special effect template selected by the user, the target special effect template is used for processing the shot video, the type of the target special effect template comprises a filter template and/or a video image turning template, the filter template comprises various processing templates for changing the color of the shot video image, the filter template comprises a gray filter template, a blue filter template, a red filter template and a yellow filter template, and the video image turning template comprises mirror image turning, up-down turning and left-right turning of the video image.
The video mobile terminal may detect an operation of the special effect template by detecting an operation on a control in the preview interface, and acquire the target special effect template, for example, when the mobile terminal detects that the control of the special effect template is clicked in the preview interface, the mobile terminal may detect an operation of triggering the special effect template, and may use the special effect template corresponding to the clicked special effect template control as the target special effect template, or may extract a keyword in a voice instruction after detecting a voice instruction of a user, search for an operation of triggering the special effect template associated with the keyword, and query the selected target special effect template from the voice instruction.
Referring to fig. 4, fig. 4 is a preview interface diagram, in the preview interface shown in fig. 4, the preview interface includes a recording button element located at the bottom, a special effect template located above the recording button element, optionally 5 special effect templates are shown, a quadrangle marked by a solid line indicates a selected special effect template, that is, a target special effect template, a broken line indicates an unselected to-be-selected special effect template, the special effect template located right above the recording button may be used as a currently selected target special effect template, a user may slide the special effect template left and right, slide a certain special effect template right above the recording button to select the target special effect template, or may directly click a certain special effect template to select the target special effect template, and after detecting that the user selects the target special effect template, a preview screen may also be displayed; optionally, the manner of triggering the operation of the filter template is not limited to the manner shown in fig. 4, and the special effect template may be displayed in other areas, such as the right or upper side of the preview interface, or may be displayed in a grid form or a list in the preview interface.
After the target special effect template is obtained, in order to facilitate the user to preview the effect of the target special effect template, the mobile terminal can process the image collected by the camera through the target special effect template and display the processed image as a preview picture, so that the user can check the corresponding effect after selecting one target special effect template.
The shooting request of the photographic video is a request for triggering shooting of the photographic video, and a shooting control, such as a recording button control shown in fig. 4, may be displayed in the preview interface, or the shooting request of the photographic video may also be detected based on a received voice signal of the user, and optionally, when it is detected that the user clicks the recording button or that the voice signal includes the request for shooting the photographic video, it is determined that the shooting request is received, and at this time, an image frame is collected.
The target video is a finally generated shooting video with special effect, after image frames are collected, each image frame can be stored firstly, then a specific image frame is extracted from the stored image frames according to a specific frame extraction frequency, the extracted specific image frame is subjected to special effect processing through a target special effect template, and the specific image frame subjected to the special effect processing is generated into a time sequence video to obtain the target video, namely a target number of key frames are extracted from the image frames, the total number of the key frames extracted by the target number can be a preset number, or can be a number determined based on the frame extraction frequency selected by a user; or, it may also process each image frame with a special effect first, extract a specific image frame from each image frame after the special effect processing, and generate a time-series video according to the specific image frame after the special effect processing, so as to obtain a target video.
In the embodiment, when the preview interface of the mobile terminal triggers the operation of the special effect template, the target special effect template is obtained, when the shooting request is received, the image frame is collected, and the target video is generated based on the image frame and the target special effect template, so that the special shooting video can be obtained, the image effect of the shooting video is enriched, and the user experience is improved.
Second embodiment
Referring to fig. 5, a second embodiment of the present application proposes a shooting method, based on the first embodiment, step S30 includes:
step S31, the target special effect template is adopted to carry out special effect processing on the image frame;
step S32, extracting key frames with target quantity from the image frames after special effect processing;
step S33, generating the target video based on the key frame.
After the image frames are collected, a target special effect template is adopted to carry out special effect processing on each collected image frame, wherein the special effect processing is based on the difference of the target special effect templates and comprises filter processing and/or image reversal processing; optionally, the special effect processing may be divided into different processing effects or processing accuracies, where the processing effect or processing accuracy is high, the performance consumed by the special effect processing is high, and the performance consumed by the special effect processing is low, and based on this, in order to reduce the performance consumed in previewing the photographed video image, each image frame acquired is processed by using the special effect processing process with the first processing accuracy, and after a target number of key frames are extracted from the image frames after the special effect processing, the key frames may be processed again based on the second processing accuracy, or an original image corresponding to the key frames stored in the memory may be retrieved, and the original image corresponding to the key frames may be subjected to the special effect processing with the second processing accuracy, where optionally, the second processing accuracy is greater than the first processing accuracy, and the processing accuracy refers to, when the image is processed by the special effect processing, for example, under the condition that the first processing precision is low, the processing of the edge area and the special effect processing of the detailed part in the image can be omitted, and under the condition that the second special effect processing precision is high, the special effect processing can be performed on the edge area and the detailed part as much as possible, so that under the condition that a user can conveniently preview a special effect processing picture, the power consumption in the special effect processing process can be prevented from being too high, the special effect or the special effect precision of the finally generated target video can be higher, the photographic video with better effect can be obtained, and the experience of the user in photographing the photographic video can be improved.
After the image frames are subjected to the special effect processing, the image frames after the special effect processing are displayed on a preview interface for the convenience of viewing of a user, so that the user can view the effect of the special effect processing.
When the image frames are extracted, a target number of key frames need to be extracted, where the target number may be preset, or may also be a target number determined according to a frame extraction frequency set by a user, optionally, after the image frames are acquired, prompt information for setting the frame extraction frequency may be output, where the prompt information may be an interface element displayed on an interface for setting the frame extraction frequency, or voice prompt information, the user may trigger setting of the frame extraction frequency based on the prompt information, when the mobile terminal detects a setting instruction of the frame extraction frequency, the target frame extraction frequency corresponding to the setting instruction is obtained, the target number of key frames is determined according to the target frame extraction frequency, for example, the target frame extraction frequency is one frame per 15 seconds, then in the image frames of 1800 seconds, one frame key frame is extracted every 15 seconds, which includes 120 key frames, and the target number is 120, at this time, if the target video is generated at a frame rate at which 30 frames of images are played per second, the finally generated target delayed shooting includes 4 seconds of video, so that the object change situation in a long time can be presented in a short time based on the target video.
In the embodiment, the image frames are subjected to special effect processing by adopting the target special effect template, the key frames of the target number are extracted from the image frames subjected to the special effect processing, and the target video is generated based on the key frames, so that the special photographic video is obtained, the display effect of the pictures of the photographed photographic video is enriched, and the user experience is improved.
Third embodiment
Referring to fig. 6, a third embodiment of the present application proposes a shooting method, based on the first embodiment, after step S30, further including:
step S40, caching the target video;
and step S50, storing the target video when receiving the recording ending instruction.
After the target video is generated, caching the target video into a memory, in the embodiment, the mobile terminal can generate and cache the target video at regular time during shooting of the shooting video, or can generate and cache the target video during starting shooting to pausing shooting when the shooting pause is detected; optionally, the target video is generated and cached at regular time, in an actual shooting process, if a shooting application crashes, the shot shooting video may be lost, and in order to prevent the shooting application from being lost, the target video is generated and cached at regular time, optionally, the cached target video in this embodiment is an internal processing process of the mobile terminal, in an exemplary technique, when the shooting application crashes, the mobile terminal stores the target video in an album by default, at this time, the process of recording the shooting video by the user may not be finished, for the user, even if the shooting application is restarted, only a new section of the shooting video can be recorded, and the recording cannot be continued on the basis of the previous section of the shooting video, if a newly recorded shooting video and a previously recorded delayed shooting video need to be combined into a section of the video, only the editing can be performed manually, and the editing process is cumbersome, therefore, user experience is poor, the target video is cached at first instead of being directly stored as the video finally output to the album, whether recording is finished or not is detected after the target video is cached, the cached target video is obtained when a recording finishing instruction is received, the cached target video is stored, and the target video can be stored to the album or other applications when being stored.
After the cached target videos are obtained, the mobile terminal can also detect whether the target videos include at least two videos, wherein the at least two videos refer to more than two videos, and when the target videos include at least two videos, the target videos are spliced to obtain spliced videos, and the spliced videos are stored.
When at least two target videos are spliced, the target videos can be spliced according to the cache sequence of the target videos, and the target videos can also be spliced according to the splicing sequence selected by a user.
When splicing is carried out according to the caching sequence of the target videos, the caching time of each target video can be obtained, and each target video is automatically spliced according to the caching time sequence; when splicing is carried out according to the splicing sequence selected by the user, prompt information of the splicing sequence can be output, the prompt information of the splicing sequence is prompt information for prompting the user to adjust the video splicing sequence, the prompt information can be used for displaying each target video in an interface on the basis of a grid or list mode, the splicing sequence of each target video is adjusted in the interface by the user, after the fact that the user is adjusted is detected, each target video is spliced on the basis of the splicing sequence adjusted by the user, spliced videos are obtained, and the spliced videos can be stored and output to an album.
Referring to fig. 7, the output prompt information of the stitching order may be displayed in a grid form, as shown in fig. 7, an implementation of the prompt information when the stitching order is adjusted is shown, in the figure, 3 target videos are included, in the figure, "1", "2" and "3" indicate the front-back order of the stitching, that is, when the stitching is performed, 1, 2 and 3 are sequentially stitched, thumbnails of three target videos are shown below 1, 2 and 3, a user may adjust the stitching order by sliding the thumbnails left and right, adjust each target video in the order of 1, 2 and 3, after the adjustment is completed, the spliced target videos may be stored by clicking the lower square, and if the adjustment order needs to be cancelled, the square may be clicked.
Optionally, this embodiment further provides an implementation manner of recording the photographic video in segments, if a user needs to record each target video respectively and splice each target video, the mobile terminal provides three operations of starting recording, pausing recording and ending recording, optionally, starting recording for triggering shooting the photographic video, pausing recording for triggering caching the target video, ending recording for triggering splicing the cached target video, referring to fig. 4, 8 and 9, based on fig. 4, after "recording" is clicked, recording is started and converted into an interface displaying fig. 8, in the interface of fig. 8, the recording button is changed into a pause recording button, when it is detected that the user clicks the pause recording button, the interface illustrated in fig. 8 is converted into the interface illustrated in fig. 9, and a target video before recording is paused is cached, and a thumbnail of the generated target video is presented in a column of "thumbnail of cached video" at the lower left, optionally, if the user clicks a "cache video thumbnail", the user may enter an interface for adjusting the splicing sequence, the interface for adjusting the splicing sequence may be as shown in fig. 7, when it is detected that the user clicks a "√" button in fig. 7, the splicing sequence may be saved, but the video splicing is not performed temporarily, until the user returns to the interface shown in fig. 9, the user clicks the "√" and then saves the result, if the user still needs to record the next segment of video, the user may click a continue recording button, the display screen of the mobile terminal is switched from the interface shown in fig. 9 to the interface shown in fig. 8, if the user clicks the "√" on the lower right, the mobile terminal automatically splices the currently cached multiple segments of target videos, obtains the spliced videos, saves the spliced videos, outputs the spliced videos to an album, and returns to the interface shown in fig. 4, to begin recording a new target video.
In this embodiment, the target video is cached; when a recording ending instruction is received, storing the target video; therefore, the problem that the target video is lost or terminated accidentally due to the situation of application breakdown and the like can be avoided, and the recording of multiple sections of target videos is further realized.
The application also provides a mobile terminal, which comprises a memory and a processor, wherein the memory is stored with a shooting program, and the shooting program is executed by the processor to realize the steps of the shooting method in any embodiment.
The present application further provides a computer-readable storage medium having a shooting program stored thereon, where the shooting program is executed by a processor to implement the steps of the shooting method in any of the above embodiments.
In the embodiments of the mobile terminal and the computer-readable storage medium provided in the present application, all technical features of any one of the above-described embodiments of the shooting method may be included, and the expanding and explaining contents of the specification are basically the same as those of the above-described embodiments of the method, and are not described herein again.
Embodiments of the present application also provide a computer program product, which includes computer program code, when the computer program code runs on a computer, the computer is caused to execute the method in the above various possible embodiments.
Embodiments of the present application further provide a chip, which includes a memory and a processor, where the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that a device in which the chip is installed executes the method in the above various possible embodiments.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The units in the device in the embodiment of the application can be merged, divided and deleted according to actual needs.
In the present application, the same or similar term concepts, technical solutions and/or application scenario descriptions will be generally described only in detail at the first occurrence, and when the description is repeated later, the detailed description will not be repeated in general for brevity, and when understanding the technical solutions and the like of the present application, reference may be made to the related detailed description before the description for the same or similar term concepts, technical solutions and/or application scenario descriptions and the like which are not described in detail later.
In the present application, each embodiment is described with emphasis, and reference may be made to the description of other embodiments for parts that are not described or illustrated in any embodiment.
The technical features of the technical solution of the present application may be arbitrarily combined, and for brevity of description, all possible combinations of the technical features in the embodiments are not described, however, as long as there is no contradiction between the combinations of the technical features, the scope of the present application should be considered as being described in the present application.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, a controlled terminal, or a network device) to execute the method of each embodiment of the present application.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product comprises one or at least two computer instructions. The procedures or functions according to the embodiments of the present application are all or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, memory Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (10)

1. A photographing method, characterized in that the method comprises:
triggering special effect template operation on a preview interface to obtain a target special effect template;
receiving a shooting request, and collecting image frames;
and generating a target video based on the image frame and the target special effect template.
2. The photographing method of claim 1, wherein the generating of the target video according to the image frame and the target special effect template includes:
carrying out special effect processing on the image frame by adopting the target special effect template;
extracting key frames of a target number from the image frames after the special effect processing;
generating the target video based on the key frames.
3. The photographing method of claim 1, wherein the generating of the target video based on the image frame and the target special effect template comprises:
extracting a target number of key frames from the image frames;
performing special effect processing on the key frame by adopting the target special effect template;
and generating the target video based on the key frame after the special effect processing.
4. The photographing method according to claim 2 or 3, wherein the step of acquiring an image frame upon receiving a photographing request is followed by the method further comprising:
receiving a setting instruction of a frame extracting frequency, and acquiring a target frame extracting frequency corresponding to the setting instruction;
and determining the target number of the key frames according to the target frame extraction frequency.
5. The shooting method according to any one of claims 1 to 3, wherein the step of generating a target video based on the image frames and the target special effect template further comprises:
caching the target video;
and when a recording ending instruction is received, storing the target video.
6. The shooting method according to claim 5, wherein after receiving a recording end instruction, further comprising:
and when detecting that the cached target delayed photography comprises at least two videos, splicing the at least two target videos.
7. The photographing method of claim 6, wherein the step of splicing at least two of the target videos comprises:
and splicing at least two target videos according to the sequence of the cache time.
8. The photographing method of claim 6, wherein the step of splicing at least two of the target videos comprises:
outputting prompt information of the splicing sequence;
and when the setting operation of the target splicing sequence corresponding to the prompt information is detected, splicing at least two target videos according to the target splicing sequence.
9. A mobile terminal, characterized in that the mobile terminal comprises: memory, optionally having stored thereon a shooting program, which when executed by the processor implements the steps of the shooting method according to any one of claims 1 to 8.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the photographing method according to any one of claims 1 to 8.
CN202110851878.6A 2021-07-27 2021-07-27 Shooting method, mobile terminal and storage medium Pending CN113542610A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110851878.6A CN113542610A (en) 2021-07-27 2021-07-27 Shooting method, mobile terminal and storage medium
PCT/CN2021/130373 WO2023005060A1 (en) 2021-07-27 2021-11-12 Image capture method, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110851878.6A CN113542610A (en) 2021-07-27 2021-07-27 Shooting method, mobile terminal and storage medium

Publications (1)

Publication Number Publication Date
CN113542610A true CN113542610A (en) 2021-10-22

Family

ID=78121003

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110851878.6A Pending CN113542610A (en) 2021-07-27 2021-07-27 Shooting method, mobile terminal and storage medium

Country Status (2)

Country Link
CN (1) CN113542610A (en)
WO (1) WO2023005060A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115002336A (en) * 2021-11-30 2022-09-02 荣耀终端有限公司 Video information generation method, electronic device and medium
CN115134527A (en) * 2022-06-29 2022-09-30 上海传英信息技术有限公司 Processing method, intelligent terminal and storage medium
WO2023005060A1 (en) * 2021-07-27 2023-02-02 上海传英信息技术有限公司 Image capture method, mobile terminal and storage medium
WO2023217122A1 (en) * 2022-05-10 2023-11-16 北京字跳网络技术有限公司 Video clipping template search method and apparatus, and electronic device and storage medium
WO2024041514A1 (en) * 2022-08-26 2024-02-29 维沃移动通信有限公司 Video playing method and apparatus, and electronic device

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108377334B (en) * 2018-04-03 2021-06-04 阿里巴巴(中国)有限公司 Short video shooting method and device and electronic terminal
CN109040615A (en) * 2018-08-10 2018-12-18 北京微播视界科技有限公司 Special video effect adding method, device, terminal device and computer storage medium
CN116112786A (en) * 2019-11-29 2023-05-12 华为技术有限公司 Video shooting method and electronic equipment
CN111163274B (en) * 2020-01-21 2022-04-22 海信视像科技股份有限公司 Video recording method and display equipment
CN111429341B (en) * 2020-03-27 2023-08-18 咪咕文化科技有限公司 Video processing method, device and computer readable storage medium
CN112052897B (en) * 2020-09-03 2022-06-03 北京达佳互联信息技术有限公司 Multimedia data shooting method, device, terminal, server and storage medium
CN113115099B (en) * 2021-05-14 2022-07-05 北京市商汤科技开发有限公司 Video recording method and device, electronic equipment and storage medium
CN113542610A (en) * 2021-07-27 2021-10-22 上海传英信息技术有限公司 Shooting method, mobile terminal and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023005060A1 (en) * 2021-07-27 2023-02-02 上海传英信息技术有限公司 Image capture method, mobile terminal and storage medium
CN115002336A (en) * 2021-11-30 2022-09-02 荣耀终端有限公司 Video information generation method, electronic device and medium
WO2023217122A1 (en) * 2022-05-10 2023-11-16 北京字跳网络技术有限公司 Video clipping template search method and apparatus, and electronic device and storage medium
CN115134527A (en) * 2022-06-29 2022-09-30 上海传英信息技术有限公司 Processing method, intelligent terminal and storage medium
CN115134527B (en) * 2022-06-29 2024-03-12 上海传英信息技术有限公司 Processing method, intelligent terminal and storage medium
WO2024041514A1 (en) * 2022-08-26 2024-02-29 维沃移动通信有限公司 Video playing method and apparatus, and electronic device

Also Published As

Publication number Publication date
WO2023005060A1 (en) 2023-02-02

Similar Documents

Publication Publication Date Title
CN108900790B (en) Video image processing method, mobile terminal and computer readable storage medium
CN113542610A (en) Shooting method, mobile terminal and storage medium
CN111935402B (en) Picture shooting method, terminal device and computer readable storage medium
CN110180181B (en) Method and device for capturing wonderful moment video and computer readable storage medium
CN113556492B (en) Thumbnail generation method, mobile terminal and readable storage medium
CN112511741A (en) Image processing method, mobile terminal and computer storage medium
CN109739414B (en) Picture processing method, mobile terminal and computer readable storage medium
CN108282608B (en) Multi-region focusing method, mobile terminal and computer readable storage medium
CN108600639B (en) Portrait image shooting method, terminal and computer readable storage medium
CN108495033B (en) Photographing regulation and control method and device and computer readable storage medium
CN113286106B (en) Video recording method, mobile terminal and storage medium
WO2022252158A1 (en) Photographing method, mobile terminal and readable storage medium
CN112532786B (en) Image display method, terminal device, and storage medium
CN112532838B (en) Image processing method, mobile terminal and computer storage medium
CN112040134B (en) Micro-holder shooting control method and device and computer readable storage medium
CN113194227A (en) Processing method, mobile terminal and storage medium
CN113727047A (en) Video processing method, mobile terminal and readable storage medium
CN109495683B (en) Interval shooting method and device and computer readable storage medium
CN113572916A (en) Shooting method, terminal device and storage medium
CN107566745B (en) Shooting method, terminal and computer readable storage medium
CN115412672B (en) Shooting display method, intelligent terminal and readable storage medium
CN114040183B (en) Image processing method, mobile terminal and storage medium
CN113840062B (en) Camera control method, mobile terminal and readable storage medium
CN109194894B (en) Projection recording method, equipment and computer readable storage medium
WO2023108443A1 (en) Image processing method, smart terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication