WO2023005060A1 - Image capture method, mobile terminal and storage medium - Google Patents

Image capture method, mobile terminal and storage medium Download PDF

Info

Publication number
WO2023005060A1
WO2023005060A1 PCT/CN2021/130373 CN2021130373W WO2023005060A1 WO 2023005060 A1 WO2023005060 A1 WO 2023005060A1 CN 2021130373 W CN2021130373 W CN 2021130373W WO 2023005060 A1 WO2023005060 A1 WO 2023005060A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
special effect
video
mobile terminal
frame
Prior art date
Application number
PCT/CN2021/130373
Other languages
French (fr)
Chinese (zh)
Inventor
王士龙
Original Assignee
上海传英信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 上海传英信息技术有限公司 filed Critical 上海传英信息技术有限公司
Publication of WO2023005060A1 publication Critical patent/WO2023005060A1/en

Links

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

Definitions

  • the present application relates to the technical field of image processing, and in particular to a photographing method, a mobile terminal and a storage medium.
  • the mobile terminal when recording a photographic video, the mobile terminal often only provides the recording function itself, that is, the user clicks to start recording and stop recording.
  • the inventor found that it has at least the following problems: Photography videos (such as time-lapse photography videos) have relatively monotonous screen content, resulting in low user experience.
  • the present application provides a shooting method, a mobile terminal and a storage medium, so as to enrich the pictures of photographic video recorded by the mobile terminal and improve user experience.
  • the application provides a shooting method, including:
  • a target video is generated based on the image frame and the target special effect template.
  • the step of generating a target video based on the image frame and the target special effect template includes:
  • the target video is generated based on the key frame.
  • the step of performing special effect processing on the image frame by using the target special effect template it further includes:
  • the image frame after the special effect processing is displayed on the preview interface.
  • the step of generating a target video based on the image frame and the target special effect template includes:
  • the target video is generated based on the key frame after special effect processing.
  • the method further includes:
  • the target quantity for extracting the key frames is determined according to the target frame extraction frequency.
  • the target special effect template includes: a filter template and/or a video image reversal template.
  • the step of generating the target video based on the image frame and the target special effect template it also includes:
  • the target video is saved.
  • the recording end instruction after receiving the recording end instruction, it also includes:
  • the cached target time-lapse photography includes at least two, splicing at least two of the target videos.
  • the step of splicing at least two of the target videos includes:
  • the step of splicing at least two of the target videos includes:
  • the present application also provides a mobile terminal, including: a memory and a processor, where a photographing program is stored in the memory, and when the photographing program is executed by the processor, the steps of the above method are implemented.
  • the present application also provides a computer storage medium, where the computer storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above method are realized.
  • the shooting method of the present application is applied to a mobile terminal, and when the special effect template operation is triggered on the preview interface, the target special effect template is obtained; when a shooting request is received, an image frame is collected; based on the image frame and the target special effect template Generate target video.
  • the content of the photographic video picture recorded by the mobile terminal is enriched, thereby improving the user experience.
  • FIG. 1 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present application
  • FIG. 2 is a system architecture diagram of a communication network provided by an embodiment of the present application.
  • Fig. 3 is a schematic flowchart of a photographing method according to the first embodiment
  • Fig. 4 is a preview interface diagram shown according to the first embodiment
  • Fig. 5 is a schematic flowchart of a photographing method according to a second embodiment
  • Fig. 6 is a schematic flowchart of a photographing method according to a third embodiment
  • Fig. 7 is a schematic diagram of an interface for adjusting the splicing sequence of target videos 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.
  • first, second, third, etc. may be used herein to describe various information, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of this document, first information may also be called second information, and similarly, second information may also be called first information.
  • first information may also be called second information, and similarly, second information may also be called first information.
  • second information may also be called first information.
  • the word “if” as used herein may be interpreted as “at” or “when” or “in response to a determination”.
  • the singular forms "a”, “an” and “the” are intended to include the plural forms as well, unless the context indicates otherwise.
  • 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
  • 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”. Exceptions to this definition will only arise when combinations of elements, functions, steps or operations are inherently mutually exclusive in some way.
  • the words “if”, “if” as used herein may be interpreted as “at” or “when” or “in response to determining” or “in response to detecting”.
  • the phrases “if determined” or “if detected (the stated condition or event)” could be interpreted as “when determined” or “in response to the determination” or “when detected (the stated condition or event) )” or “in response to detection of (stated condition or event)”.
  • step codes such as S10 and S20 are used, the purpose of which is to express the corresponding content more clearly and concisely, and does not constitute a substantive limitation on the order.
  • S20 will be executed first, followed by S10, etc., but these should be within the scope of protection of this application.
  • Mobile terminals may be implemented in various forms.
  • the mobile terminals described in this application may include mobile phones, tablet computers, notebook computers, palmtop computers, personal digital assistants (Personal Digital Assistant, PDA), portable media players (Portable Media Player, PMP), navigation devices, wearable devices, smart bracelets, pedometers and other mobile terminals, as well as fixed terminals such as digital TVs and desktop computers.
  • PDA Personal Digital Assistant
  • PMP portable media players
  • navigation devices wearable devices, smart bracelets, pedometers and other mobile terminals
  • wearable devices wearable devices
  • smart bracelets smart bracelets
  • pedometers pedometers and other mobile terminals
  • fixed terminals such as digital TVs and desktop computers.
  • a mobile terminal will be taken as an example, and those skilled in the art will understand that, in addition to elements specially used for mobile purposes, the configurations according to the embodiments of the present application can also be applied to fixed-type terminals.
  • FIG. 1 is a schematic diagram of the hardware structure of a mobile terminal implementing various embodiments of the present application.
  • the mobile terminal 100 may include: an RF (Radio Frequency, radio frequency) unit 101, a WiFi module 102, an 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 and other components.
  • RF Radio Frequency, radio frequency
  • the radio frequency unit 101 can be used for sending and receiving information or receiving and sending signals during a call. Specifically, after receiving the downlink information of the base station, it is processed by the processor 110; in addition, the uplink data is sent to the base station.
  • the 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.
  • the radio frequency unit 101 may also communicate with a network and other devices through wireless communication.
  • the above wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication, Global System for Mobile Communications), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access, Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, Time Division Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing- Long Term Evolution, frequency division duplex long-term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, Time Division Duplexing Long Term Evolution) and so on.
  • GSM Global System of Mobile communication, Global System for Mobile Communications
  • GPRS General Packet Radio Service, general packet radio service
  • CDMA2000 Code Division Multiple Access 2000, Code Division Multiple Access 2000
  • WCDMA Wideband Code Division Multiple Access
  • TD-SCDMA Time Division-Synchronous Code Division Multiple Access,
  • WiFi is a short-distance wireless transmission technology.
  • the mobile terminal can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 102, which provides users with wireless broadband Internet access.
  • Fig. 1 shows the WiFi module 102, it can be understood that it is not an essential component of the mobile terminal, and can be completely omitted as required without changing the essence of the invention.
  • the audio output unit 103 can store the audio received by the radio frequency unit 101 or the WiFi module 102 or in the memory 109 when the mobile terminal 100 is in a call signal receiving mode, a call mode, a recording mode, a voice recognition mode, a broadcast receiving mode, or the like.
  • the audio data is converted into an audio signal and output as sound.
  • the audio output unit 103 can also provide audio output related to a specific function performed by the mobile terminal 100 (eg, call signal reception sound, 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.
  • A/V input unit 104 may include a graphics processor (Graphics Processing Unit (GPU) 1041 and a microphone 1042, the graphics processor 1041 processes image data of still pictures or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The processed image frames may be displayed on the display unit 106 .
  • the image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage media) or sent via the radio frequency unit 101 or the WiFi module 102 .
  • the microphone 1042 may receive sound (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, and the like operating modes, and can process such sound as audio data.
  • the processed audio (voice) data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 101 for output in the 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 process 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.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light, and the proximity sensor can turn off the display when the mobile terminal 100 moves to the ear. panel 1061 and/or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used for applications that recognize the posture of mobile phones (such as horizontal and vertical screen switching, related Games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; as for mobile phones, fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, Other sensors such as thermometers and infrared sensors will not be described in detail here.
  • the display unit 106 is used to display information input by the 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 (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.
  • LCD Liquid Crystal Display
  • OLED Organic Light-Emitting Diode
  • the user input unit 107 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile terminal.
  • 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, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 1071 or near the touch panel 1071). operation), and drive the corresponding connection device according to the preset program.
  • the touch panel 1071 may include two parts, a touch detection device and a touch controller.
  • the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into contact coordinates , and then sent to the processor 110, and can receive the command sent by the processor 110 and execute it.
  • the touch panel 1071 may be realized by various types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 107 may also include other input devices 1072 .
  • other input devices 1072 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, etc., which are not specifically described here. limited.
  • the touch panel 1071 may cover the display panel 1061.
  • the touch panel 1071 detects a touch operation on or near it, it transmits to the processor 110 to determine the type of the touch event, and then the processor 110 determines the touch event according to the touch event.
  • the corresponding visual output is provided on the display panel 1061 .
  • the touch panel 1071 and the display panel 1061 are used as two independent components to realize the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated.
  • the implementation of the input and output functions of the mobile terminal is not specifically limited here.
  • the interface unit 108 serves as an interface through which at least one external device can be connected with the mobile terminal 100 .
  • an external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) ports, video I/O ports, headphone ports, and more.
  • the interface unit 108 may be used to receive input from an external device (for example, data information, power, etc.) and transmit the received input to one or more at least two elements within the mobile terminal 100 or may be used to 100 to transfer data between external devices.
  • the memory 109 can be used to store software programs as well as various data.
  • the memory 109 can mainly include a program storage area and a data storage area.
  • the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.) and the like;
  • the storage data area can be Stores data (such as audio data, phonebook, etc.) created according to the use of the mobile phone, etc.
  • the memory 109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
  • the processor 110 is the control center of the mobile terminal, and uses various interfaces and lines to connect various parts of the entire mobile terminal, by running or executing software programs and/or modules stored in the memory 109, and calling data stored in the memory 109 , execute various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole.
  • the processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor.
  • the application processor mainly processes operating systems, user interfaces, and application programs, etc.
  • the demodulation processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110 .
  • the mobile terminal 100 may also include a power source 111 (such as a battery) for supplying power to various components.
  • a power source 111 such as a battery
  • the power source 111 may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. and other functions.
  • the mobile terminal 100 may also include a Bluetooth module, etc., which will not be repeated here.
  • the following describes the communication network system on which the mobile terminal of the present application is based.
  • FIG. 2 is a structure diagram of a communication network system provided by an embodiment of the present application.
  • the communication network system is an LTE system of general mobile communication technology, and the LTE system includes UEs (User Equipment, User Equipment, ) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, Evolved UMTS Terrestrial Radio Access Network) 202, EPC (Evolved Packet Core, Evolved Packet Core Network) 203 and the operator's IP service 204.
  • UEs User Equipment, User Equipment,
  • E-UTRAN Evolved UMTS Terrestrial Radio Access Network
  • EPC Evolved Packet Core, Evolved Packet Core Network
  • the UE 201 may be the above-mentioned terminal 100, which will not be repeated here.
  • E-UTRAN 202 includes eNodeB 2021 and other eNodeB 2022 and so on.
  • the eNodeB 2021 can be connected to other eNodeB 2022 through a backhaul (for example, X2 interface), the eNodeB 2021 is connected to the EPC 203 , and the eNodeB 2021 can provide access from the UE 201 to the EPC 203 .
  • a backhaul for example, X2 interface
  • EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home user server) 2032, other MME2033, SGW (Serving Gate Way, serving gateway) 2034, PGW (PDN Gate Way, packet data network gateway) 2035 and PCRF ( Policy and Charging Rules Function, policy and tariff function entity) 2036, etc.
  • MME2031 is a control node that processes signaling between UE201 and EPC203, and provides bearer and connection management.
  • HSS2032 is used to provide some registers to manage functions such as the home location register (not shown in the figure), and save some user-specific information about service characteristics and data rates.
  • PCRF2036 is the policy and charging control policy decision point of service data flow and IP bearer resources, it is the policy and charging execution function A unit (not shown) selects and provides available policy and charging control decisions.
  • the IP service 204 may include Internet, Intranet, IMS (IP Multimedia Subsystem, IP Multimedia Subsystem) or other IP services.
  • IMS IP Multimedia Subsystem, IP Multimedia Subsystem
  • LTE system is used as an example above, those skilled in the art should know that this application is not only applicable to the LTE system, but also applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA and future new wireless communication systems.
  • the network system, etc. are not limited here.
  • the first embodiment of the present application proposes a shooting method, the method includes the following steps:
  • Step S10 acquiring the target special effect template when the special effect template operation is triggered on the preview interface
  • Step S20 when a shooting request is received, image frames are collected
  • Step S30 generating a target video based on the image frame and the target special effect template.
  • the preview interface is an interface for previewing the photographed video images.
  • the preview interface includes the elements of the special effect template.
  • the special effect template operation is the operation of selecting a special effect template. This operation is triggered by the user, and the target special effect template is the special effect selected by the user.
  • Templates, target special effect templates are used to process photographic videos, the types of target special effect templates include filter templates and or video screen flip templates, filter templates include various processing templates for changing the color of captured video screens, filter templates For example, a gray filter template, a blue filter template, a red filter template and a yellow filter template, and the video image inversion template includes mirror image inversion, up-down inversion and left-right inversion of the video image.
  • the video mobile terminal can detect the operation of the special effect template by detecting the operation of the controls in the preview interface, and obtain the target special effect template.
  • Template operation, and the special effect template corresponding to the clicked special effect template control can be used as the target special effect template, or, after the user's voice command is detected, the keyword in the voice command can be extracted, and the trigger associated with the keyword can be found.
  • Figure 4 is a preview interface diagram.
  • the preview interface shown in Figure 4 includes a recording button element at the bottom and a special effect template located above the recording button element, optionally showing 5 special effect templates , the quadrilateral marked with a solid line indicates the selected special effect template, that is, the target special effect template, and the one marked with a dotted line is an unselected candidate special effect template.
  • the special effect template located directly above the recording button can be used as the currently selected target special effect template. You can slide the special effect template left and right, and slide a certain special effect template directly above the recording button to select the target special effect template, or you can directly click on a special effect template to select the target special effect template.
  • a preview screen can also be displayed; optionally, the way to trigger the operation of the filter template is not limited to the way shown in Figure 4, and the special effect template can also be displayed in other areas, such as displayed on the right or above the preview interface, or Display the special effect templates in the preview interface in the form of a grid or a list.
  • 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 screen. Therefore, after each selection of a target special effect template, the user can view the corresponding effect.
  • the photography video shooting request is a request to trigger shooting a photography video
  • a shooting control can be displayed in the preview interface, such as the recording button control shown in Figure 4, or the photography video shooting request can also be detected based on the received user voice signal, optional Specifically, when it is detected that the user clicks the recording button or the voice signal includes a request for shooting a photographic video, it is determined that the shooting request is received, and image frames are collected at this time.
  • the target video is the finally generated photographic video with special effects.
  • each image frame can be saved first, and then a specific image frame is extracted from the saved image frames according to a specific frame extraction frequency, and the target special effect
  • the template performs special effect processing on the extracted specific image frames, and generates a time-series video of the specific image frames after the special effect processing to obtain the target video, that is, extract the target number of key frames from the image frames, and the total number of key frames extracted by the target number
  • the target number can be a preset number, or it can also be a number determined based on the frame extraction frequency selected by the user; or, each image frame can be processed with special effects first, and a specific image frame can be extracted from each image frame after the special effect processing , and generate a time-series video according to the specific image frame processed by special effects to obtain the target video.
  • the target special effect template is obtained, and when a 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 a special effect template can be obtained.
  • the photographic video enriches the picture effect of the photographic video and enhances the user experience.
  • step S30 includes:
  • Step S31 using the target special effect template to perform special effect processing on the image frame
  • Step S32 extracting a target number of key frames from the image frames after special effect processing
  • Step S33 generating the target video based on the key frame.
  • the target special effect template is used to perform special effect processing on each collected image frame, and the special effect processing is based on the difference of the target special effect template, including filter processing and/or image inversion processing; optionally, special effect processing It can be divided into different processing effects or processing precision. In the case of high processing effect or processing precision, the performance consumed by special effect processing is high, and in the case of low processing effect or processing precision, the performance consumed by special effect processing is low.
  • the special effect processing process of the first processing precision is used to process each captured image frame, and after the target number of key frames are extracted from the image frames after special effect processing , the key frame can also be processed again based on the second processing precision, or the original image corresponding to the key frame stored in the memory can also be called, and the original image corresponding to the key frame can be processed with special effects by using the second processing precision, optionally , the second processing accuracy is greater than the first processing accuracy, and the processing accuracy refers to the degree of processing each area in the image when processing the image with special effects. For example, when the first processing accuracy is low, the edge area in the image can be omitted processing and special effects processing of detail parts.
  • special effects processing can be performed on the edge area and detail parts as much as possible, so that it is convenient for the user to preview the special effect processing screen, and it can also be avoided.
  • the power consumption of the special effect processing process is too high, and the special effect effect or special effect precision of the final generated target video can be made higher, a better photographic video can be obtained, and the user's shooting video experience can be improved.
  • the image frame after the special effect processing is also displayed on the preview interface, so that the user can view the effect of the special effect processing.
  • the target number When extracting image frames, it is necessary to extract the target number of key frames, the target number can be preset, or the target number can be determined according to the frame extraction frequency set by the user, optionally, after the collected image frames , can output prompt information for setting the frame pumping frequency.
  • the prompt information can be an interface element for setting the frame pumping frequency displayed on the interface, or a voice prompt message. The user can trigger the setting of the frame pumping frequency based on the prompt information.
  • setting the frame frequency command obtain the target frame rate corresponding to the setting command, and determine the target number of key frames to be extracted according to the target frame rate.
  • the target frame rate is to extract one frame every 15 seconds
  • a key frame is extracted every 15 seconds, including 120 key frames
  • the target number is 120.
  • the target video is generated at a frame rate of 30 frames per second
  • the final generated target delay Photography includes a 4-second video, so that based on the target video, the object changes in a long period of time can be presented in a short period of time. Since the generated target video has special effects, it can improve the picture richness of the photography video and improve the user experience. According to the needs of users, different frame extraction frequencies can be set to obtain photography videos with different time-lapse photography effects.
  • the target special effect template to perform special effect processing on the image frame, extract a target number of key frames from the image frames after special effect processing, and generate a target video based on the key frames, thereby obtaining a photographic video with special effects, enriching The display effect of the picture of the photographed video is improved, thereby improving the user experience.
  • the third embodiment of the present application proposes a shooting method. Based on the first embodiment, after step S30, it also includes:
  • Step S40 buffering the target video
  • Step S50 when receiving the recording end instruction, save the target video.
  • the target video is cached in the memory.
  • the mobile terminal can periodically generate the target video and cache it during the shooting video, or can generate The target video from the start of shooting to the pause of shooting is cached; optionally, the purpose of regularly generating the target video and caching is that during the actual shooting process, if the shooting application crashes, it may result in the loss of the captured photography video, In order to prevent it from being lost, the target video is regularly generated and cached.
  • caching the target video is an internal processing process of the mobile terminal. In the exemplary technology, when the shooting application crashes, the mobile terminal will save it by default. The target video is stored in the album. At this time, the recording process of the user may not be over.
  • the mobile terminal can also detect whether the target video includes at least two, at least two means more than two, and when it includes at least two, splice each target video to obtain a spliced video, and save the spliced video.
  • the splicing may be performed according to the buffer sequence of the target videos, or may be spliced according to the splicing sequence selected by the user.
  • the cache time of each target video can be obtained, and each target video can be automatically spliced according to the order of the cache time; when splicing is performed according to the splicing sequence selected by the user, a prompt message of the splicing sequence can be output , the prompt information of splicing order is the prompt information used to prompt the user to adjust the sequence of video splicing.
  • the prompt information can display each target video in the interface based on the form of grid or list, and let the user adjust each target in the interface
  • the splicing sequence of the video after detecting that the user has adjusted it, splicing each target video based on the splicing sequence adjusted by the user to obtain a spliced video, save the spliced video, and output it to the photo album.
  • the prompt information of the splicing sequence output can be displayed based on a grid form.
  • an implementation of the prompt information when adjusting the splicing sequence is shown.
  • "1", "2", and "3" in the figure indicate the sequence of splicing, that is, during splicing, 1, 2, and 3 are spliced in sequence.
  • Thumbnail the user can adjust the splicing order by sliding the thumbnail left and right, and adjust each target video in the order of 1, 2, and 3. After the adjustment is completed, click the " ⁇ " below to save the spliced target video. If you need to cancel the adjustment order, you can click “ ⁇ ”.
  • this embodiment also provides an implementation of segmented recording of photographic videos.
  • the mobile terminal provides three options: start recording, pause recording, and end recording. Operation, optionally, start recording is used to trigger shooting of photographic video, pause recording is used to trigger caching of target video, and end recording is used to trigger splicing of cached target video, refer to Figure 4, Figure 8 and Figure 9, based on Figure 4 As shown, after clicking "Record", the recording will start, and it will be converted to display the interface shown in Figure 8. In the interface shown in Figure 8, the recording button will change to a pause recording button.
  • the The interface shown in Figure 8 is transformed into the interface shown in Figure 9, and a segment of the target video before pausing the recording is cached, and the thumbnail of the generated target video is displayed in the "Cached Video Thumbnail" column at the bottom left, which is used to remind the user that the current For each target video that has been cached, optionally, if the user clicks on the "cached video thumbnail", it can also enter the interface for adjusting the splicing order.
  • the interface for adjusting the splicing order can be as shown in Figure 7.
  • the splicing sequence can be saved, but the video splicing will not be performed temporarily until the user returns to the interface shown in Figure 9, and then save after clicking " ⁇ ", if the user still needs to continue recording For the next video, you can click the button to continue recording, and the display screen of the mobile terminal will switch from the interface shown in Figure 9 to the interface shown in Figure 8. If the user clicks " ⁇ " at the bottom right, the mobile terminal will automatically splice the current video.
  • the multi-segment target videos that have been cached are saved and output to the photo album after the spliced video is obtained, and can be returned to the interface shown in Figure 4 to start recording a new target video.
  • the target video by caching the target video; when the recording end instruction is received, the target video is saved; thus, the problem of loss or unexpected termination of the target video caused by application crashes and the like can be avoided, and the multi-segment recording target can be further realized video.
  • the present application also provides a mobile terminal.
  • the mobile terminal includes a memory and a processor.
  • the memory stores a photographing program.
  • the photographing program is executed by the processor, the steps of the photographing method in any of the foregoing embodiments are implemented.
  • the present application also provides a computer-readable storage medium, on which a photographing program is stored, and when the photographing program is executed by a processor, the steps of the photographing method in any of the foregoing embodiments are implemented.
  • An embodiment of the present application further provides a computer program product, the computer program product includes computer program code, and when the computer program code is run on the computer, the computer is made to execute the methods in the above various possible implementation manners.
  • the embodiment of the present application also provides a chip, including a memory and a processor.
  • the memory is used to store a computer program
  • the processor is used to call and run the computer program from the memory, so that the device installed with the chip executes the above various possible implementation modes. Methods.
  • Units in the device in the embodiment of the present application may be combined, divided and deleted according to actual needs.
  • the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation.
  • the technical solution of the present application can be embodied in the form of a software product in essence or in other words, the part that contributes to the prior art, and the computer software product is stored in one of the above storage media (such as ROM/RAM, magnetic CD, CD), including several instructions to make a terminal device (which may be a mobile phone, computer, server, controlled terminal, or network device, etc.) execute the method of each embodiment of the present application.
  • all or part of them may be implemented by software, hardware, firmware or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • a computer program product comprises one or at least two computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part.
  • the computer can be a general purpose computer, special purpose computer, a computer network, or other programmable apparatus.
  • Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server, a data center, etc. integrated with one or more available media.
  • Usable media can be magnetic media, (for example, floppy disks, memory disks, magnetic tape), optical media (for example, DVD), or semiconductor media (for example, solid State Disk (SSD)), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The present application discloses an image capture method, a mobile terminal and a storage medium, the method comprising: triggering a special effect template operation in a preview interface, and acquiring a target special effect template; receiving an image capture request, and collecting an image frame; and generating a target video on the basis of the image frame and the target special effect template. According to the present application, image-captured video scenes recorded by a mobile terminal are richer, and the user experience is improved.

Description

拍摄方法、移动终端及存储介质Shooting method, mobile terminal and storage medium
本申请要求于2021年7月27日提交中国专利局、申请号为202110851878.6、申请名称为“拍摄方法、移动终端及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在申请中。This application claims priority to a Chinese patent application filed with the China Patent Office on July 27, 2021, with application number 202110851878.6 and titled "Shooting method, mobile terminal and storage medium", the entire contents of which are incorporated by reference .
技术领域technical field
本申请涉及图像处理技术领域,具体涉及一种拍摄方法、移动终端及存储介质。The present application relates to the technical field of image processing, and in particular to a photographing method, a mobile terminal and a storage medium.
背景技术Background technique
一些实现中,在录制摄影视频时,移动终端往往仅提供录制功能本身,即用户点击开始录制以及停止录制,在构思及实现本申请过程中,发明人发现其至少存在如下问题:移动终端录制的摄影视频(如延时摄影视频)画面内容较为单调,导致用户体验度较低。In some implementations, when recording a photographic video, the mobile terminal often only provides the recording function itself, that is, the user clicks to start recording and stop recording. During the process of conceiving and implementing this application, the inventor found that it has at least the following problems: Photography videos (such as time-lapse photography videos) have relatively monotonous screen content, resulting in low user experience.
前面的叙述在于提供一般的背景信息,并不一定构成现有技术。The foregoing description is provided to provide general background information and does not necessarily constitute prior art.
技术问题technical problem
针对上述技术问题,本申请提供一种拍摄方法、移动终端及存储介质,使移动终端录制的摄影视频画面更为丰富,提升用户体验。In view of the above technical problems, the present application provides a shooting method, a mobile terminal and a storage medium, so as to enrich the pictures of photographic video recorded by the mobile terminal and improve user experience.
技术解决方案technical solution
为解决上述技术问题,本申请提供一种拍摄方法,包括:In order to solve the above technical problems, the application provides a shooting method, including:
于预览界面触发特效模板操作,获取目标特效模板;Trigger the special effect template operation on the preview interface to obtain the target special effect template;
接收到拍摄请求,采集图像帧;Receive the shooting request and collect the image frame;
基于所述图像帧以及所述目标特效模板生成目标视频。A target video is generated based on the image frame and the target special effect template.
可选地,所述根据基于所述图像帧以及所述目标特效模板生成目标视频的步骤包括:Optionally, the step of generating a target video based on the image frame and the target special effect template includes:
采用所述目标特效模板对所述图像帧进行特效处理;performing special effect processing on the image frame by using the target special effect template;
从特效处理后的所述图像帧中抽取目标数量的关键帧;Extract key frames of a target number from the image frames after special effect processing;
基于所述关键帧生成所述目标视频。The target video is generated based on the key frame.
可选地,所述采用所述目标特效模板对所述图像帧进行特效处理的步骤之后,还包括:Optionally, after the step of performing special effect processing on the image frame by using the target special effect template, it further includes:
在所述预览界面显示特效处理后的所述图像帧。The image frame after the special effect processing is displayed on the preview interface.
可选地,所述基于所述图像帧以及所述目标特效模板生成目标视频的步骤包括:Optionally, the step of generating a target video based on the image frame and the target special effect template includes:
从所述图像帧中抽取目标数量的关键帧;Extracting a target number of key frames from the image frame;
采用所述目标特效模板对所述关键帧进行特效处理;performing special effect processing on the key frame by using the target special effect template;
基于特效处理后的所述关键帧生成所述目标视频。The target video is generated based on the key frame after special effect processing.
可选地,所述接收到拍摄请求时,采集图像帧的步骤之后,所述方法还包括:Optionally, after receiving the shooting request, after the step of collecting image frames, the method further includes:
接收到抽帧频率的设置指令时,获取所述设置指令对应的目标抽帧频率;When receiving the setting instruction of the frame drawing frequency, obtain the target frame drawing frequency corresponding to the setting instruction;
根据所述目标抽帧频率确定抽取所述关键帧的所述目标数量。The target quantity for extracting the key frames is determined according to the target frame extraction frequency.
可选地,所述目标特效模板包括:滤镜模板和/或视频画面反转模板。Optionally, the target special effect template includes: a filter template and/or a video image reversal template.
可选地,所述基于所述图像帧以及所述目标特效模板生成目标视频的步骤之后,还包括:Optionally, after the step of generating the target video based on the image frame and the target special effect template, it also includes:
缓存所述目标视频;cache the target video;
接收到录制结束指令时,保存所述目标视频。When the recording end instruction is received, the target video is saved.
可选地,所述接收到录制结束指令之后,还包括:Optionally, after receiving the recording end instruction, it also includes:
在检测到缓存的目标延时摄影包括至少两个时,拼接至少两个所述目标视频。When it is detected that the cached target time-lapse photography includes at least two, splicing at least two of the target videos.
可选地,所述拼接至少两个所述目标视频的步骤包括:Optionally, the step of splicing at least two of the target videos includes:
按照缓存时间的顺序,拼接至少两个所述目标视频。Splicing at least two of the target videos according to the order of cache time.
可选地,所述拼接至少两个所述目标视频的步骤包括:Optionally, the step of splicing at least two of the target videos includes:
输出拼接顺序的提示信息;Output the prompt information of splicing sequence;
检测到所述提示信息对应的目标拼接顺序的设定操作时,按照所述目标拼接顺序拼接至少两个所述目标视频。When the setting operation of the target splicing sequence corresponding to the prompt information is detected, at least two of the target videos are spliced according to the target splicing sequence.
本申请还提供一种移动终端,包括:存储器、处理器,所述存储器上存储有拍摄程序,所述拍摄程序被所述处理器执行时实现如上述方法的步骤。The present application also provides a mobile terminal, including: a memory and a processor, where a photographing program is stored in the memory, and when the photographing program is executed by the processor, the steps of the above method are implemented.
本申请还提供一种计算机存储介质,所述计算机存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如上述方法的步骤。The present application also provides a computer storage medium, where the computer storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above method are realized.
有益效果Beneficial effect
如上所述,本申请的拍摄方法,应用于移动终端,于预览界面触发特效模板操作时,获取目标特效模板;接收到拍摄请求时,采集图像帧;基于所述图像帧以及所述目标特效模板生成目标视频。通过上述方式,使移动终端录制的摄影视频画面内容更为丰富,从而提升用户体验。As mentioned above, the shooting method of the present application is applied to a mobile terminal, and when the special effect template operation is triggered on the preview interface, the target special effect template is obtained; when a shooting request is received, an image frame is collected; based on the image frame and the target special effect template Generate target video. Through the above method, the content of the photographic video picture recorded by the mobile terminal is enriched, thereby improving the user experience.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。为了更清楚地说明本申请实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the 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 accompanying drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, for those of ordinary skill in the art, the Under the premise, other drawings can also be obtained based on these drawings.
图1为实现本申请各个实施例的一种移动终端的硬件结构示意图;FIG. 1 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present application;
图2为本申请实施例提供的一种通信网络系统架构图;FIG. 2 is a system architecture diagram of a communication network provided by an embodiment of the present application;
图3是根据第一实施例示出的拍摄方法的流程示意图;Fig. 3 is a schematic flowchart of a photographing method according to the first embodiment;
图4是根据第一实施例示出的预览界面图;Fig. 4 is a preview interface diagram shown according to the first embodiment;
图5是根据第二实施例示出的拍摄方法的流程示意图;Fig. 5 is a schematic flowchart of a photographing method according to a second embodiment;
图6是根据第三实施例示出的拍摄方法的流程示意图;Fig. 6 is a schematic flowchart of a photographing method according to a third embodiment;
图7是根据第三实施例示出的调整目标视频的拼接顺序的界面示意图;Fig. 7 is a schematic diagram of an interface for adjusting the splicing sequence of target videos according to the third embodiment;
图8是根据第三实施例示出的暂停录制的界面示意图;Fig. 8 is a schematic diagram of an interface for pausing recording according to the third embodiment;
图9是根据第三实施例示出的继续录制的界面示意图。Fig. 9 is a schematic diagram of an interface for continuing recording according to the third embodiment.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。通过上述附图,已示出本申请明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本申请构思的范围,而是通过参考特定实施例为本领域技术人员说明本申请的概念。The realization, functional features and advantages of the present application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. By means of the above drawings, specific embodiments of the present application have been shown, which will be described in more detail hereinafter. These drawings and text descriptions are not intended to limit the scope of the concept of the application in any way, but to illustrate the concept of the application for those skilled in the art by referring to specific embodiments.
本发明的实施方式Embodiments of the present invention
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。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, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present application as recited in the appended claims.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素,可选地,本申请不同实施例中具有同样命名的部件、特征、要素可能具有相同含义,也可能具有不同含义,其具体含义需以其在该具体实施例中的解释或者进一步结合该具体实施例中上下文进行确定。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the statement "comprising a..." does not exclude the existence of other identical elements in the process, method, article or device that includes the element. Optionally, the present application Components, features, and elements with the same name in different embodiments may have the same meaning, or may have different meanings, and the specific meaning shall be determined based on the explanation in the specific embodiment or further combined with the context in the specific embodiment.
应当理解,尽管在本文可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本文范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语"如果"可以被解释成为"在……时"或"当……时"或"响应于确定"。再者,如同在本文中所使用的,单数形式“一”、“一个”和“该”旨在也包括复数形式,除非上下文中有相反的指示。应当进一步理解,术语“包含”、“包括”表明存在所述的特征、步骤、操作、元件、组件、项目、种类、和/或组,但不排除一个或多个其他特征、步骤、操作、元件、组件、项目、种类、和/或组的存在、出现或添加。本申请使用的术语“或”、“和/或”、“包括以下至少一个”等可被解释为包括性的,或意味着任一个或任何组合。例如,“包括以下至少一个:A、B、C”意味着“以下任一个:A;B;C;A和B;A和C;B和C;A和B和C”,再如,“A、B或C”或者“A、B和/或C”意味着“以下任一个:A;B;C;A和B;A和C;B和C;A和B和C”。仅当元件、功能、步骤或操作的组合在某些方式下内在地互相排斥时,才会出现该定义的例外。It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of this document, first information may also be called second information, and similarly, second information may also be called first information. Depending on the context, the word "if" as used herein may be interpreted as "at" or "when" or "in response to a determination". Furthermore, 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 should be further understood that the terms "comprising", "comprising" indicate the presence of stated features, steps, operations, elements, components, items, species, and/or groups, but do not exclude one or more other features, steps, operations, The existence, occurrence or addition of an element, component, item, species, and/or group. The terms "or", "and/or", "comprising at least one of" and the like used in this application may be interpreted as inclusive, or mean any one or any combination. For example, "including at least one of the following: 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", another 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". Exceptions to this definition will only arise when combinations of elements, functions, steps or operations are inherently mutually exclusive in some way.
应该理解的是,虽然本申请实施例中的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flow chart in the embodiment of the present application are displayed sequentially as indicated by the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some of the steps in the figure may include multiple sub-steps or multiple stages, these sub-steps or stages are not necessarily executed at the same time, but may be executed at different times, and the execution order is not necessarily sequential Instead, it may be performed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.
取决于语境,如在此所使用的词语“如果”、“若”可以被解释成为“在……时”或“当……时”或“响应于确定”或“响应于检测”。类似地,取决于语境,短语“如果确定”或“如果检测(陈述的条件或事件)”可以被解释成为“当确定时”或“响应于确定”或“当检测(陈述的条件或事件)时”或“响应于检测(陈述的条件或事件)”。Depending on the context, the words "if", "if" as used herein may be interpreted as "at" or "when" or "in response to determining" or "in response to detecting". Similarly, depending on the context, the phrases "if determined" or "if detected (the stated condition or event)" could be interpreted as "when determined" or "in response to the determination" or "when detected (the stated condition or event) )" or "in response to detection of (stated condition or event)".
需要说明的是,在本文中,采用了诸如S10、S20等步骤代号,其目的是为了更清楚简要地表述相应内容,不构成顺序上的实质性限制,本领域技术人员在具体实施时,可能会先执行S20后执行S10等,但这些均应在本申请的保护范围之内。It should be noted that, in this article, step codes such as S10 and S20 are used, the purpose of which is to express the corresponding content more clearly and concisely, and does not constitute a substantive limitation on the order. Those skilled in the art may, during specific implementation, S20 will be executed first, followed by S10, etc., but these should be within the scope of protection of this application.
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.
在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或者“单元”的后缀仅为了有利于本申请的说明,其本身没有特定的意义。因此,“模块”、“部件”或者“单元”可以混合地使用。In the following description, the use of suffixes such as 'module', 'part' or 'unit' for denoting elements is only for facilitating the description of the present application and has no specific meaning by itself. Therefore, 'module', 'part' or 'unit' may be mixedly used.
移动终端可以以各种形式来实施。例如,本申请中描述的移动终端可以包括诸如手机、平板电脑、笔记本电脑、掌上电脑、个人数字助理(Personal Digital Assistant,PDA)、便捷式媒体播放器(Portable Media Player,PMP)、导航装置、可穿戴设备、智能手环、计步器等移动终端,以及诸如数字TV、台式计算机等固定终端。Mobile terminals may be implemented in various forms. For example, the mobile terminals described in this application may include mobile phones, tablet computers, notebook computers, palmtop computers, personal digital assistants (Personal Digital Assistant, PDA), portable media players (Portable Media Player, PMP), navigation devices, wearable devices, smart bracelets, pedometers and other mobile terminals, as well as fixed terminals such as digital TVs and desktop computers.
后续描述中将以移动终端为例进行说明,本领域技术人员将理解的是,除了特别用于移动目的的元件之外,根据本申请的实施方式的构造也能够应用于固定类型的终端。In the subsequent description, a mobile terminal will be taken as an example, and those skilled in the art will understand that, in addition to elements specially used for mobile purposes, the configurations according to the embodiments of the present application can also be applied to fixed-type terminals.
请参阅图1,其为实现本申请各个实施例的一种移动终端的硬件结构示意图,该移动终端100可以包括:RF(Radio Frequency,射频)单元101、WiFi模块102、音频输出单元103、A/V(音频/视频)输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、处理器110、以及电源111等部件。本领域技术人员可以理解,图1中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Please refer to FIG. 1, which is a schematic diagram of the hardware structure of a mobile terminal implementing various embodiments of the present application. The mobile terminal 100 may include: an RF (Radio Frequency, radio frequency) unit 101, a WiFi module 102, an 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 and other components. Those skilled in the art can understand that the structure of the mobile terminal shown in Figure 1 does not constitute a limitation on the mobile terminal, and the mobile terminal may include more or less components than those shown in the figure, or combine some components, or different components layout.
下面结合图1对移动终端的各个部件进行具体的介绍:Each component of the mobile terminal is specifically introduced below in combination with FIG. 1:
射频单元101可用于收发信息或通话过程中,信号的接收和发送,具体的,将基站的下行信息接收后,给处理器110处理;另外,将上行的数据发送给基站。通常,射频单元101包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。可选地,射频单元101还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于GSM (Global System of Mobile communication,全球移动通讯系统)、GPRS(General Packet Radio Service,通用分组无线服务)、CDMA2000(Code Division Multiple Access 2000,码分多址2000)、WCDMA(Wideband Code Division Multiple Access, 宽带码分多址)、TD-SCDMA(Time Division-Synchronous Code Division Multiple Access,时分同步码分多址)、FDD-LTE(Frequency Division Duplexing- Long Term Evolution,频分双工长期演进)和TDD-LTE (Time Division Duplexing- Long Term Evolution,分时双工长期演进)等。The radio frequency unit 101 can be used for sending and receiving information or receiving and sending signals during a call. Specifically, after receiving the downlink information of the base station, it is processed by the processor 110; in addition, the uplink data is sent to the base station. Generally, the 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. Optionally, the radio frequency unit 101 may also communicate with a network and other devices through wireless communication. The above wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication, Global System for Mobile Communications), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access, Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, Time Division Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing- Long Term Evolution, frequency division duplex long-term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, Time Division Duplexing Long Term Evolution) and so on.
WiFi属于短距离无线传输技术,移动终端通过WiFi模块102可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图1示出了WiFi模块102,但是可以理解的是,其并不属于移动终端的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. The mobile terminal can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 102, which provides users with wireless broadband Internet access. Although Fig. 1 shows the WiFi module 102, it can be understood that it is not an essential component of the mobile terminal, and can be completely omitted as required without changing the essence of the invention.
音频输出单元103可以在移动终端100处于呼叫信号接收模式、通话模式、记录模式、语音识别模式、广播接收模式等等模式下时,将射频单元101或WiFi模块102接收的或者在存储器109中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元103还可以提供与移动终端100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元103可以包括扬声器、蜂鸣器等等。The audio output unit 103 can store the audio received by the radio frequency unit 101 or the WiFi module 102 or in the memory 109 when the mobile terminal 100 is in a call signal receiving mode, a call mode, a recording mode, a voice recognition mode, a broadcast receiving mode, or the like. The audio data is converted into an audio signal and output as sound. Also, the audio output unit 103 can also provide audio output related to a specific function performed by the mobile terminal 100 (eg, call signal reception sound, message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
A/V输入单元104用于接收音频或视频信号。A/V输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元106上。经图形处理器1041处理后的图像帧可以存储在存储器109(或其它存储介质)中或者经由射频单元101或WiFi模块102进行发送。麦克风1042可以在电话通话模式、记录模式、语音识别模式等等运行模式中经由麦克风1042接收声音(音频数据),并且能够将这样的声音处理为音频数据。处理后的音频(语音)数据可以在电话通话模式的情况下转换为可经由射频单元101发送到移动通信基站的格式输出。麦克风1042可以实施各种类型的噪声消除(或抑制)算法以消除(或抑制)在接收和发送音频信号的过程中产生的噪声或者干扰。The A/V input unit 104 is used to receive audio or video signals. A/V input unit 104 may include a graphics processor (Graphics Processing Unit (GPU) 1041 and a microphone 1042, the graphics processor 1041 processes image data of still pictures or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The processed image frames may be displayed on the display unit 106 . The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage media) or sent via the radio frequency unit 101 or the WiFi module 102 . The microphone 1042 may receive sound (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, and the like operating modes, and can process such sound as audio data. The processed audio (voice) data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 101 for output in the 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 process of receiving and transmitting audio signals.
移动终端100还包括至少一种传感器105,比如光传感器、运动传感器以及其他传感器。可选地,光传感器包括环境光传感器及接近传感器,可选地,环境光传感器可根据环境光线的明暗来调节显示面板1061的亮度,接近传感器可在移动终端100移动到耳边时,关闭显示面板1061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。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 and a proximity sensor. Optionally, the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light, and the proximity sensor can turn off the display when the mobile terminal 100 moves to the ear. panel 1061 and/or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used for applications that recognize the posture of mobile phones (such as horizontal and vertical screen switching, related Games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; as for mobile phones, fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, Other sensors such as thermometers and infrared sensors will not be described in detail here.
显示单元106用于显示由用户输入的信息或提供给用户的信息。显示单元106可包括显示面板1061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode, OLED)等形式来配置显示面板1061。The display unit 106 is used to display information input by the 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 (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.
用户输入单元107可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。可选地,用户输入单元107可包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1071上或在触控面板1071附近的操作),并根据预先设定的程式驱动相应的连接装置。触控面板1071可包括触摸检测装置和触摸控制器两个部分。可选地,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器110,并能接收处理器110发来的命令并加以执行。可选地,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1071。除了触控面板1071,用户输入单元107还可以包括其他输入设备1072。可选地,其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种,具体此处不做限定。The user input unit 107 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile terminal. Optionally, 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, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 1071 or near the touch panel 1071). operation), and drive the corresponding connection device according to the preset program. The touch panel 1071 may include two parts, a touch detection device and a touch controller. Optionally, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into contact coordinates , and then sent to the processor 110, and can receive the command sent by the processor 110 and execute it. Optionally, the touch panel 1071 may be realized by various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071 , the user input unit 107 may also include other input devices 1072 . Optionally, other input devices 1072 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, etc., which are not specifically described here. limited.
可选地,触控面板1071可覆盖显示面板1061,当触控面板1071检测到在其上或附近的触摸操作后,传送给处理器110以确定触摸事件的类型,随后处理器110根据触摸事件的类型在显示面板1061上提供相应的视觉输出。虽然在图1中,触控面板1071与显示面板1061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板1071与显示面板1061集成而实现移动终端的输入和输出功能,具体此处不做限定。Optionally, the touch panel 1071 may cover the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits to the processor 110 to determine the type of the touch event, and then the processor 110 determines the touch event according to the touch event. The corresponding visual output is provided on the display panel 1061 . Although in FIG. 1, the touch panel 1071 and the display panel 1061 are used as two independent components to realize the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated. The implementation of the input and output functions of the mobile terminal is not specifically limited here.
接口单元108用作至少一个外部装置与移动终端100连接可以通过的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元108可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端100内的一个或多个至少两个元件或者可以用于在移动终端100和外部装置之间传输数据。The interface unit 108 serves as an interface through which at least one external device can be connected with the mobile terminal 100 . For example, an external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 108 may be used to receive input from an external device (for example, data information, power, etc.) and transmit the received input to one or more at least two elements within the mobile terminal 100 or may be used to 100 to transfer data between external devices.
存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序区和存储数据区,可选地,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。可选地,存储器109可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 109 can be used to store software programs as well as various data. The memory 109 can mainly include a program storage area and a data storage area. Optionally, the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.) and the like; the storage data area can be Stores data (such as audio data, phonebook, etc.) created according to the use of the mobile phone, etc. Optionally, the memory 109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
处理器110是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器109内的软件程序和/或模块,以及调用存储在存储器109内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器110可包括一个或多个处理单元;优选的,处理器110可集成应用处理器和调制解调处理器,可选地,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。The processor 110 is the control center of the mobile terminal, and uses various interfaces and lines to connect various parts of the entire mobile terminal, by running or executing software programs and/or modules stored in the memory 109, and calling data stored in the memory 109 , execute various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole. The 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 processes operating systems, user interfaces, and application programs, etc. The demodulation processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110 .
移动终端100还可以包括给各个部件供电的电源111(比如电池),优选的,电源111可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile terminal 100 may also include a power source 111 (such as a battery) for supplying power to various components. Preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. and other functions.
尽管图1未示出,移动终端100还可以包括蓝牙模块等,在此不再赘述。Although not shown in FIG. 1 , the mobile terminal 100 may also include a Bluetooth module, etc., which will not be repeated here.
为了便于理解本申请实施例,下面对本申请的移动终端所基于的通信网络系统进行描述。In order to facilitate understanding of the embodiments of the present application, the following describes the communication network system on which the mobile terminal of the present application is based.
请参阅图2,图2为本申请实施例提供的一种通信网络系统架构图,该通信网络系统为通用移动通信技术的LTE系统,该LTE系统包括依次通讯连接的UE(User Equipment,用户设备)201, E-UTRAN(Evolved UMTS Terrestrial Radio Access Network,演进式UMTS陆地无线接入网)202,EPC(Evolved Packet Core,演进式分组核心网)203和运营商的IP业务204。Please refer to FIG. 2. FIG. 2 is a structure diagram of a communication network system provided by an embodiment of the present application. The communication network system is an LTE system of general mobile communication technology, and the LTE system includes UEs (User Equipment, User Equipment, ) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, Evolved UMTS Terrestrial Radio Access Network) 202, EPC (Evolved Packet Core, Evolved Packet Core Network) 203 and the operator's IP service 204.
可选地,UE201可以是上述终端100,此处不再赘述。Optionally, the UE 201 may be the above-mentioned terminal 100, which will not be repeated here.
E-UTRAN202包括eNodeB2021和其它eNodeB2022等。可选地,eNodeB2021可以通过回程(backhaul)(例如X2接口)与其它eNodeB2022连接,eNodeB2021连接到EPC203,eNodeB2021可以提供UE201到EPC203的接入。E-UTRAN 202 includes eNodeB 2021 and other eNodeB 2022 and so on. Optionally, the eNodeB 2021 can be connected to other eNodeB 2022 through a backhaul (for example, X2 interface), the eNodeB 2021 is connected to the EPC 203 , and the eNodeB 2021 can provide access from the UE 201 to the EPC 203 .
EPC203可以包括MME(Mobility Management Entity,移动性管理实体)2031, HSS(Home Subscriber Server,归属用户服务器)2032,其它MME2033, SGW(Serving Gate Way,服务网关)2034, PGW(PDN Gate Way,分组数据网络网关)2035和PCRF(Policy and Charging Rules Function,政策和资费功能实体)2036等。可选地,MME2031是处理UE201和EPC203之间信令的控制节点,提供承载和连接管理。HSS2032用于提供一些寄存器来管理诸如归属位置寄存器(图中未示)之类的功能,并且保存有一些有关服务特征、数据速率等用户专用的信息。所有用户数据都可以通过SGW2034进行发送,PGW2035可以提供UE 201的IP地址分配以及其它功能,PCRF2036是业务数据流和IP承载资源的策略与计费控制策略决策点,它为策略与计费执行功能单元(图中未示)选择及提供可用的策略和计费控制决策。EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home user server) 2032, other MME2033, SGW (Serving Gate Way, serving gateway) 2034, PGW (PDN Gate Way, packet data network gateway) 2035 and PCRF ( Policy and Charging Rules Function, policy and tariff function entity) 2036, etc. Optionally, MME2031 is a control node that processes signaling between UE201 and EPC203, and provides bearer and connection management. HSS2032 is used to provide some registers to manage functions such as the home location register (not shown in the figure), and save some user-specific information about service characteristics and data rates. All user data can be sent through SGW2034, PGW2035 can provide UE 201 IP address allocation and other functions, PCRF2036 is the policy and charging control policy decision point of service data flow and IP bearer resources, it is the policy and charging execution function A unit (not shown) selects and provides available policy and charging control decisions.
IP业务204可以包括因特网、内联网、IMS(IP Multimedia Subsystem,IP多媒体子系统)或其它IP业务等。The IP service 204 may include Internet, Intranet, IMS (IP Multimedia Subsystem, IP Multimedia Subsystem) or other IP services.
虽然上述以LTE系统为例进行了介绍,但本领域技术人员应当知晓,本申请不仅仅适用于LTE系统,也可以适用于其他无线通信系统,例如GSM、CDMA2000、WCDMA、TD-SCDMA以及未来新的网络系统等,此处不做限定。Although the LTE system is used as an example above, those skilled in the art should know that this application is not only applicable to the LTE system, but also applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA and future new wireless communication systems. The network system, etc., are not limited here.
基于上述移动终端硬件结构以及通信网络系统,提出本申请各个实施例。Based on the above mobile terminal hardware structure and communication network system, various embodiments of the present application are proposed.
第一实施例first embodiment
参照图3,本申请第一实施例提出一种拍摄方法,所述方法包括以下步骤:Referring to Fig. 3, the first embodiment of the present application proposes a shooting method, the method includes the following steps:
步骤S10,于预览界面触发特效模板操作时,获取目标特效模板;Step S10, acquiring the target special effect template when the special effect template operation is triggered on the preview interface;
步骤S20,接收到拍摄请求时,采集图像帧;Step S20, when a shooting request is received, image frames are collected;
步骤S30,基于所述图像帧以及所述目标特效模板生成目标视频。Step S30, generating a target video based on the image frame and the target special effect template.
预览界面是用于预览所拍摄的摄影视频画面的界面,预览界面中包括特效模板的元素,特效模板操作为选择特效模板的操作,该操作由用户触发,目标特效模板为被用户所选中的特效模板,目标特效模板用于对摄影视频进行处理,目标特效模板的类型包括滤镜模板和或视频画面翻转模板,滤镜模板包括各类对拍摄的视频画面颜色进行更改的处理模板,滤镜模板比如灰色滤镜模板、蓝色滤镜模板、红色滤镜模板以及黄色滤镜模板,视频画面反转模板包括对视频画面进行镜像反转、上下反转以及左右反转。The preview interface is an interface for previewing the photographed video images. The preview interface includes the elements of the special effect template. The special effect template operation is the operation of selecting a special effect template. This operation is triggered by the user, and the target special effect template is the special effect selected by the user. Templates, target special effect templates are used to process photographic videos, the types of target special effect templates include filter templates and or video screen flip templates, filter templates include various processing templates for changing the color of captured video screens, filter templates For example, a gray filter template, a blue filter template, a red filter template and a yellow filter template, and the video image inversion template includes mirror image inversion, up-down inversion and left-right inversion of the video image.
视频移动终端可以通过检测对预览界面中的控件的操作,以检测该特效模板的操作,并获取目标特效模板,比如移动终端检测到预览界面中点击了特效模板的控件时,可以检测到触发特效模板操作,并且可以将点击的特效模板控件对应的特效模板作为目标特效模板,或者,也可以在检测到用户的语音指令之后,提取语音指令中的关键词,查找与该关键词相关联的触发特效模板的操作,并从语音指令中查询出所选择的目标特效模板。The video mobile terminal can detect the operation of the special effect template by detecting the operation of the controls in the preview interface, and obtain the target special effect template. Template operation, and the special effect template corresponding to the clicked special effect template control can be used as the target special effect template, or, after the user's voice command is detected, the keyword in the voice command can be extracted, and the trigger associated with the keyword can be found The operation of the special effect template, and query the selected target special effect template from the voice command.
参照图4所示,图4为预览界面图,在图4示出的预览界面中,包括位于底部的录制按钮元素、位于录制按钮元素上方的特效模板,可选地示出了5个特效模板,实线标注的四边形表示被选中的特效模板,即目标特效模板,虚线标注的为未被选中的待选特效模板,可以将位于录制按钮正上方的特效模板作为当前选择的目标特效模板,用户可以左右滑动特效模板,将某一特效模板滑动至录制按钮正上方,以选中目标特效模板,或者,也可以直接点击某一特效模板以选中目标特效模板,在检测到用户选中目标特效模板之后,还可以显示预览画面;可选地,触发滤镜模板操作的方式并不仅限于图4所示的方式,还可以将特效模板显示在其他区域,比如显示在预览界面的右方或者上方,还可以将特效模板以网格形式或者列表显示在预览界面中。Referring to Figure 4, Figure 4 is a preview interface diagram. In the preview interface shown in Figure 4, it includes a recording button element at the bottom and a special effect template located above the recording button element, optionally showing 5 special effect templates , the quadrilateral marked with a solid line indicates the selected special effect template, that is, the target special effect template, and the one marked with a dotted line is an unselected candidate special effect template. The special effect template located directly above the recording button can be used as the currently selected target special effect template. You can slide the special effect template left and right, and slide a certain special effect template directly above the recording button to select the target special effect template, or you can directly click on a special effect template to select the target special effect template. After detecting that the user has selected the target special effect template, A preview screen can also be displayed; optionally, the way to trigger the operation of the filter template is not limited to the way shown in Figure 4, and the special effect template can also be displayed in other areas, such as displayed on the right or above the preview interface, or Display the special effect templates in the preview interface in the form of a grid or a list.
在获取到目标特效模板之后,为了便于用户预览目标特效模板的效果,此时移动终端可以将通过摄像头采集到的图像,通过目标特效模板进行处理,并将处理后的图像作为预览画面进行显示,从而使得用户在每选择一目标特效模板之后,均能够查看对应的效果。After obtaining the target special effect template, 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 screen. Therefore, after each selection of a target special effect template, the user can view the corresponding effect.
摄影视频拍摄请求为触发拍摄摄影视频的请求,可以在预览界面中显示拍摄控件,比如图4所示的录制按钮控件,或者,也可以基于接收到的用户语音信号检测摄影视频拍摄请求,可选地,在检测到用户点击录制按钮或者检测到语音信号中包括拍摄摄影视频的请求时,则确定接收到拍摄请求,此时采集图像帧。The photography video shooting request is a request to trigger shooting a photography video, and a shooting control can be displayed in the preview interface, such as the recording button control shown in Figure 4, or the photography video shooting request can also be detected based on the received user voice signal, optional Specifically, when it is detected that the user clicks the recording button or the voice signal includes a request for shooting a photographic video, it is determined that the shooting request is received, and image frames are collected at this time.
目标视频为最终生成的具有特效的摄影视频,在采集到图像帧之后,可以先将各个图像帧保存,此后并按照特定的抽帧频率从保存的图像帧中抽取特定图像帧,并通过目标特效模板对抽取的特定图像帧进行特效处理,将特效处理后的特定图像帧生成时间序列视频,以得到目标视频,即从图像帧中抽取目标数量的关键帧,目标数量抽取的关键帧的总数量,目标数量可以是预先设定的数量,或者也可以是基于用户选择的抽帧频率确定的数量;或者,也可以先特效处理各个图像帧,在特效处理后的各个图像帧中抽取特定图像帧,并根据特效处理后的特定图像帧生成时间序列视频,以得到目标视频。The target video is the finally generated photographic video with special effects. After the image frames are collected, each image frame can be saved first, and then a specific image frame is extracted from the saved image frames according to a specific frame extraction frequency, and the target special effect The template performs special effect processing on the extracted specific image frames, and generates a time-series video of the specific image frames after the special effect processing to obtain the target video, that is, extract the target number of key frames from the image frames, and the total number of key frames extracted by the target number , the target number can be a preset number, or it can also be a number determined based on the frame extraction frequency selected by the user; or, each image frame can be processed with special effects first, and a specific image frame can be extracted from each image frame after the special effect processing , and generate a time-series video according to the specific image frame processed by special effects to obtain the target video.
在本实施例中,通过于移动终端的预览界面触发特效模板操作时,获取目标特效模板,接收到拍摄请求时,采集图像帧,基于图像帧以及目标特效模板生成目标视频,从而能够得到具有特效的摄影视频,丰富摄影视频的画面效果,提升用户的体验。In this embodiment, when the special effect template operation is triggered on the preview interface of the mobile terminal, the target special effect template is obtained, and when a 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 a special effect template can be obtained. The photographic video enriches the picture effect of the photographic video and enhances the user experience.
第二实施例second embodiment
参照图5,本申请第二实施例提出一种拍摄方法,基于第一实施例,步骤S30包括:Referring to FIG. 5 , the second embodiment of the present application proposes a shooting method. Based on the first embodiment, step S30 includes:
步骤S31,采用所述目标特效模板对所述图像帧进行特效处理;Step S31, using the target special effect template to perform special effect processing on the image frame;
步骤S32,从特效处理后的所述图像帧中抽取目标数量的关键帧;Step S32, extracting a target number of key frames from the image frames after special effect processing;
步骤S33,基于所述关键帧生成所述目标视频。Step S33, generating the target video based on the key frame.
在采集到图像帧之后,采用目标特效模板对采集到的每一图像帧进行特效处理,特效处理基于目标特效模板的不同,包括滤镜处理和/或画面反转处理;可选地,特效处理可以分为不同的处理效果或者处理精度,处理效果或者处理精度较高的情况下,特效处理所耗费的性能较高,处理效果或者处理精度较低的情况下,特效处理所耗费的性能较低,基于此,为了降低在预览摄影视频画面时所耗费的性能,采用第一处理精度的特效处理过程处理采集的每一图像帧,而在特效处理后的图像帧中抽取目标数量的关键帧之后,还可以对关键帧再次基于第二处理精度进行处理,或者,还可以调取存储器存储的关键帧对应的原始图像,采用第二处理精度对关键帧对应的原始图像进行特效处理,可选地,第二处理精度大于第一处理精度,处理精度指对在特效处理图像时,对图像中各个区域进行处理的程度,比如,对于第一处理精度较低的情况下,可以省略图像中边缘区域的处理以及细节部分的特效处理,在第二特效处理精度较高的情况下,可以尽可能对边缘区域以及细节部分进行特效处理,从而能够在方便用户预览特效处理画面的情况下,还能够避免特效处理过程的功耗过高,以及能够使得最终生成的目标视频的特效效果或者特效精度更高,得到效果更优的摄影视频,提升用户拍摄摄影视频的体验。After the image frame is collected, the target special effect template is used to perform special effect processing on each collected image frame, and the special effect processing is based on the difference of the target special effect template, including filter processing and/or image inversion processing; optionally, special effect processing It can be divided into different processing effects or processing precision. In the case of high processing effect or processing precision, the performance consumed by special effect processing is high, and in the case of low processing effect or processing precision, the performance consumed by special effect processing is low. , based on this, in order to reduce the performance consumed when previewing photographic video images, the special effect processing process of the first processing precision is used to process each captured image frame, and after the target number of key frames are extracted from the image frames after special effect processing , the key frame can also be processed again based on the second processing precision, or the original image corresponding to the key frame stored in the memory can also be called, and the original image corresponding to the key frame can be processed with special effects by using the second processing precision, optionally , the second processing accuracy is greater than the first processing accuracy, and the processing accuracy refers to the degree of processing each area in the image when processing the image with special effects. For example, when the first processing accuracy is low, the edge area in the image can be omitted processing and special effects processing of detail parts. In the case of high precision of the second special effect processing, special effects processing can be performed on the edge area and detail parts as much as possible, so that it is convenient for the user to preview the special effect processing screen, and it can also be avoided. The power consumption of the special effect processing process is too high, and the special effect effect or special effect precision of the final generated target video can be made higher, a better photographic video can be obtained, and the user's shooting video experience can be improved.
在对图像帧进行特效处理之后,为了便于用户查看,还在预览界面显示特效处理后的图像帧,以使用户查看特效处理的效果。After the special effect processing is performed on the image frame, in order to facilitate the user to view, the image frame after the special effect processing is also displayed on the preview interface, so that the user can view the effect of the special effect processing.
在抽取图像帧时,需要抽取目标数量的关键帧,目标数量可以是预先设定的,或者,也可以是根据用户设置的抽帧频率确定目标数量,可选地,在采集到的图像帧之后,可以输出设置抽帧频率的提示信息,提示信息可以是界面上显示的设置抽帧频率的界面元素,或者是语音提示信息,用户基于提示信息可以触发抽帧频率的设置,移动终端检测到抽帧频率的设置指令时,获取设置指令对应的目标抽帧频率,根据目标抽帧频率确定抽取关键帧的目标数量,比如,目标抽帧频率为每15秒抽取一帧,那么在拍摄的1800秒的图像帧中,每15秒抽取一帧关键帧,则包括120帧关键帧,目标数量为120,此时若按照每秒播放30帧图像的帧率生成目标视频,则最终生成的目标延时摄影包括4秒的视频,从而可以基于该目标视频在短时间内呈现长时间内的物体变化情况,由于生成的目标视频有特效,因此能够提升摄影视频的画面丰富度,提升用户的体验,并且能够按照用户的需要,设置不同的抽帧频率,以得到不同延时摄影效果的摄影视频。When extracting image frames, it is necessary to extract the target number of key frames, the target number can be preset, or the target number can be determined according to the frame extraction frequency set by the user, optionally, after the collected image frames , can output prompt information for setting the frame pumping frequency. The prompt information can be an interface element for setting the frame pumping frequency displayed on the interface, or a voice prompt message. The user can trigger the setting of the frame pumping frequency based on the prompt information. When setting the frame frequency command, obtain the target frame rate corresponding to the setting command, and determine the target number of key frames to be extracted according to the target frame rate. For example, if the target frame rate is to extract one frame every 15 seconds, then in Among the image frames, a key frame is extracted every 15 seconds, including 120 key frames, and the target number is 120. At this time, if the target video is generated at a frame rate of 30 frames per second, the final generated target delay Photography includes a 4-second video, so that based on the target video, the object changes in a long period of time can be presented in a short period of time. Since the generated target video has special effects, it can improve the picture richness of the photography video and improve the user experience. According to the needs of users, different frame extraction frequencies can be set to obtain photography videos with different time-lapse photography effects.
在本实施例中,通过采用目标特效模板对图像帧进行特效处理,从特效处理后的图像帧中抽取目标数量的关键帧,基于关键帧生成目标视频,从而得到了具有特效的摄影视频,丰富了所拍摄的摄影视频的画面的显示效果,从而提升了用户体验。In this embodiment, by using the target special effect template to perform special effect processing on the image frame, extract a target number of key frames from the image frames after special effect processing, and generate a target video based on the key frames, thereby obtaining a photographic video with special effects, enriching The display effect of the picture of the photographed video is improved, thereby improving the user experience.
第三实施例third embodiment
参照图6,本申请第三实施例提出一种拍摄方法,基于第一实施例,步骤S30之后,还包括:Referring to FIG. 6 , the third embodiment of the present application proposes a shooting method. Based on the first embodiment, after step S30, it also includes:
步骤S40,缓存所述目标视频;Step S40, buffering the target video;
步骤S50,接收到录制结束指令时,保存所述目标视频。Step S50, when receiving the recording end instruction, save the target video.
在生成目标视频之后,缓存目标视频至存储器中,在本实施例中,移动终端在拍摄摄影视频的过程中,可以定时生成目标视频并缓存,或者,可以在检测到暂停拍摄的情况下,生成开始拍摄至暂停拍摄的过程中的目标视频并缓存;可选地,定时生成目标视频并缓存的目的在于,在实际拍摄过程中,如果拍摄应用崩溃,则可能会导致已拍摄的摄影视频丢失,为了防止其丢失,而定时生成并缓存目标视频,可选地,本实施例缓存目标视频是移动终端的内部处理过程,在示例性技术中,移动终端在出现拍摄应用崩溃的情况,会默认保存目标视频至相册中,此时可能用户录制摄影视频的过程并未结束,对用户而言,即使重启拍摄应用,也仅能录制新的一段摄影视频,而无法在上一段摄影视频的基础上继续录制,若需要将新录制的摄影视频与此前录制的延时摄影摄影合并成一段视频,只能手动进行剪辑,剪辑过程较为繁琐,从而使得用户体验较差,而本实施例会首先缓存目标视频,而不是直接将其作为最终输出至相册的视频进行保存,在缓存目标视频之后,还会检测是否录制结束,在接收到录制结束指令时,才会获取缓存的目标视频,并保存缓存的目标视频,保存目标视频时可以将其保存至相册、或者保存至其他应用中。After the target video is generated, the target video is cached in the memory. In this embodiment, the mobile terminal can periodically generate the target video and cache it during the shooting video, or can generate The target video from the start of shooting to the pause of shooting is cached; optionally, the purpose of regularly generating the target video and caching is that during the actual shooting process, if the shooting application crashes, it may result in the loss of the captured photography video, In order to prevent it from being lost, the target video is regularly generated and cached. Optionally, in this embodiment, caching the target video is an internal processing process of the mobile terminal. In the exemplary technology, when the shooting application crashes, the mobile terminal will save it by default. The target video is stored in the album. At this time, the recording process of the user may not be over. For the user, even if the shooting application is restarted, a new recording video can only be recorded, and it cannot continue on the basis of the previous recording video. Recording, if you need to combine the newly recorded photography video with the previously recorded time-lapse photography photography into a video, you can only edit it manually, the editing process is more cumbersome, which makes the user experience poorer, and this embodiment will first cache the target video, Instead of directly saving it as the final video output to the album, after the target video is cached, it will also detect whether the recording is over. When the recording end command is received, the cached target video will be obtained and the cached target video will be saved. , when saving the target video, you can save it to the camera roll or save it to other applications.
在获取缓存的目标视频之后,移动终端还可以检测目标视频是否包括至少两个,至少两个指两个以上,在包括至少两个时,将各个目标视频进行拼接,得到拼接视频,并保存拼接视频。After obtaining the cached target video, the mobile terminal can also detect whether the target video includes at least two, at least two means more than two, and when it includes at least two, splice each target video to obtain a spliced video, and save the spliced video.
在拼接至少两个目标视频时,可以按照目标视频的缓存顺序进行拼接,也可以根据用户选择的拼接顺序进行拼接。When splicing at least two target videos, the splicing may be performed according to the buffer sequence of the target videos, or may be spliced according to the splicing sequence selected by the user.
在按照目标视频的缓存顺序进行拼接时,可以获取各个目标视频的缓存时间,按照缓存时间的顺序,自动拼接各个目标视频;在根据用户选择的拼接顺序进行拼接时,可以输出拼接顺序的提示信息,拼接顺序的提示信息是用于提示用户调整视频拼接顺序的提示信息,该提示信息可以是基于网格或者列表的形式将各个目标视频显示于界面中,并令用户在该界面中调整各个目标视频的拼接顺序,检测到用户调整完毕后,基于用户调整后的拼接顺序,对各个目标视频进行拼接,得到拼接视频,保存该拼接视频,并可以输出至相册中。When splicing according to the cache order of the target videos, the cache time of each target video can be obtained, and each target video can be automatically spliced according to the order of the cache time; when splicing is performed according to the splicing sequence selected by the user, a prompt message of the splicing sequence can be output , the prompt information of splicing order is the prompt information used to prompt the user to adjust the sequence of video splicing. The prompt information can display each target video in the interface based on the form of grid or list, and let the user adjust each target in the interface The splicing sequence of the video, after detecting that the user has adjusted it, splicing each target video based on the splicing sequence adjusted by the user to obtain a spliced video, save the spliced video, and output it to the photo album.
参照图7,输出的拼接顺序的提示信息可以基于网格形式显示,如图7所示,示出了调整拼接顺序时的提示信息的一种实现方式,该图中,包括3个目标视频,图中“1”、“2”、“3”表示拼接的前后顺序,即在拼接时,依次对1、2、3进行拼接,1、2、3下方示出的为三个目标视频的缩略图,用户可以通过左右滑动缩略图调整拼接顺序,按照1、2、3的顺序调整各个目标视频,在调整完成后,点击下方的“√”即可保存拼接后的目标视频,若需要取消调整顺序,则可以点击“×”。Referring to FIG. 7, the prompt information of the splicing sequence output can be displayed based on a grid form. As shown in FIG. 7, an implementation of the prompt information when adjusting the splicing sequence is shown. "1", "2", and "3" in the figure indicate the sequence of splicing, that is, during splicing, 1, 2, and 3 are spliced in sequence. Thumbnail, the user can adjust the splicing order by sliding the thumbnail left and right, and adjust each target video in the order of 1, 2, and 3. After the adjustment is completed, click the "√" below to save the spliced target video. If you need to cancel the adjustment order, you can click “×”.
可选地,本实施例还提供分段录制摄影视频的实现方式,若用户需要分别录制每段目标视频,并将各段目标视频进行拼接,移动终端提供开始录制、暂停录制以及结束录制三种操作,可选地,开始录制用于触发拍摄摄影视频、暂停录制用于触发缓存目标视频、结束录制用于触发将缓存的目标视频进行拼接,参照图4、图8以及图9,基于图4所示,在点击“录制”之后,即开始录制,并转换为显示图8的界面,图8的界面中,录制按钮变为暂停录制按钮,在检测到用户点击暂停录制按钮的情况下,将图8所示界面转换为图9所示的界面,并缓存暂停录制之前的一段目标视频,生成目标视频的缩略图呈现在左下方的“缓存视频缩略图”一栏中,用于提示用户当前已缓存的各个目标视频的情况,可选地,若用户点击“缓存视频缩略图”时,还可以进入到调整拼接顺序的界面中,调整拼接顺序的界面可以如图7所示,在检测到用户点击图7中“√”按钮时,可以保存该拼接顺序,但暂时不进行视频拼接,直至用户返回至图9所示界面中,点击“√”后再进行保存,若用户仍然需要继续录制下一段视频,则可以点击继续录制按钮,则移动终端的显示画面从图9所示的界面切换至图8所示的界面,若用户点击右下方的“√”,则移动终端会自动拼接当前已缓存的多段目标视频,得到拼接视频后保存并输出至相册,并可以返回至图4所示的界面中,以开始录制新的目标视频。Optionally, this embodiment also provides an implementation of segmented recording of photographic videos. If the user needs to record each segment of target video separately and stitch each segment of target video, the mobile terminal provides three options: start recording, pause recording, and end recording. Operation, optionally, start recording is used to trigger shooting of photographic video, pause recording is used to trigger caching of target video, and end recording is used to trigger splicing of cached target video, refer to Figure 4, Figure 8 and Figure 9, based on Figure 4 As shown, after clicking "Record", the recording will start, and it will be converted to display the interface shown in Figure 8. In the interface shown in Figure 8, the recording button will change to a pause recording button. When it is detected that the user clicks the pause recording button, the The interface shown in Figure 8 is transformed into the interface shown in Figure 9, and a segment of the target video before pausing the recording is cached, and the thumbnail of the generated target video is displayed in the "Cached Video Thumbnail" column at the bottom left, which is used to remind the user that the current For each target video that has been cached, optionally, if the user clicks on the "cached video thumbnail", it can also enter the interface for adjusting the splicing order. The interface for adjusting the splicing order can be as shown in Figure 7. After detecting When the user clicks the "√" button in Figure 7, the splicing sequence can be saved, but the video splicing will not be performed temporarily until the user returns to the interface shown in Figure 9, and then save after clicking "√", if the user still needs to continue recording For the next video, you can click the button to continue recording, and the display screen of the mobile terminal will switch from the interface shown in Figure 9 to the interface shown in Figure 8. If the user clicks "√" at the bottom right, the mobile terminal will automatically splice the current video. The multi-segment target videos that have been cached are saved and output to the photo album after the spliced video is obtained, and can be returned to the interface shown in Figure 4 to start recording a new target video.
在本实施例中,通过缓存所述目标视频;接收到录制结束指令时,保存所述目标视频;从而能够避免应用崩溃等情况造成的目标视频丢失或者意外终止的问题,并进一步实现录制多段目标视频。In this embodiment, by caching the target video; when the recording end instruction is received, the target video is saved; thus, the problem of loss or unexpected termination of the target video caused by application crashes and the like can be avoided, and the multi-segment recording target can be further realized video.
本申请还提供一种移动终端,移动终端包括存储器、处理器,存储器上存储有拍摄程序,拍摄程序被处理器执行时实现上述任一实施例中的拍摄方法的步骤。The present application also provides a mobile terminal. The mobile terminal includes a memory and a processor. The memory stores a photographing program. When the photographing program is executed by the processor, the steps of the photographing method in any of the foregoing embodiments are implemented.
本申请还提供一种计算机可读存储介质,计算机可读存储介质上存储有拍摄程序,拍摄程序被处理器执行时实现上述任一实施例中的拍摄方法的步骤。The present application also provides a computer-readable storage medium, on which a photographing program is stored, and when the photographing program is executed by a processor, the steps of the photographing method in any of the foregoing embodiments are implemented.
在本申请提供的移动终端和计算机可读存储介质的实施例中,可以包含任一上述拍摄方法实施例的全部技术特征,说明书拓展和解释内容与上述方法的各实施例基本相同,在此不做再赘述。In the embodiment of the mobile terminal and the computer-readable storage medium provided in this application, all the technical features of any of the above-mentioned shooting method embodiments can be included. Do repeat.
本申请实施例还提供一种计算机程序产品,计算机程序产品包括计算机程序代码,当计算机程序代码在计算机上运行时,使得计算机执行如上各种可能的实施方式中的方法。An embodiment of the present application further provides a computer program product, the computer program product includes computer program code, and when the computer program code is run on the computer, the computer is made to execute the methods in the above various possible implementation manners.
本申请实施例还提供一种芯片,包括存储器和处理器,存储器用于存储计算机程序,处理器用于从存储器中调用并运行计算机程序,使得安装有芯片的设备执行如上各种可能的实施方式中的方法。The embodiment of the present application also provides a chip, including a memory and a processor. 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 the device installed with the chip executes the above various possible implementation modes. Methods.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present application are for description only, and do not represent the advantages and disadvantages of the embodiments.
本申请实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。The steps in the methods of the embodiments of the present application can be adjusted, combined and deleted according to actual needs.
本申请实施例设备中的单元可以根据实际需要进行合并、划分和删减。Units in the device in the embodiment of the present application may be combined, divided and deleted according to actual needs.
在本申请中,对于相同或相似的术语概念、技术方案和/或应用场景描述,一般只在第一次出现时进行详细描述,后面再重复出现时,为了简洁,一般未再重复阐述,在理解本申请技术方案等内容时,对于在后未详细描述的相同或相似的术语概念、技术方案和/或应用场景描述等,可以参考其之前的相关详细描述。In this application, descriptions of the same or similar terms, concepts, technical solutions and/or application scenarios are generally only described in detail when they appear for the first time, and when they appear repeatedly later, for the sake of brevity, they are generally not repeated. When understanding the technical solutions and other contents of the present application, for the same or similar term concepts, technical solutions and/or application scenario descriptions that are not described in detail later, you can refer to the previous relevant detailed descriptions.
在本申请中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In this application, the description of each embodiment has its own emphasis. For the parts that are not detailed or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
本申请技术方案的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本申请记载的范围。The various technical features of the technical solution of the present application can be combined arbitrarily. For the sake of concise description, all possible combinations of the various technical features in the above-mentioned embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, all It should be regarded as the scope described in this application.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,被控终端,或者网络设备等)执行本申请每个实施例的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or in other words, the part that contributes to the prior art, and the computer software product is stored in one of the above storage media (such as ROM/RAM, magnetic CD, CD), including several instructions to make a terminal device (which may be a mobile phone, computer, server, controlled terminal, or network device, etc.) execute the method of each embodiment of the present application.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或至少两个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络,或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质,(例如,软盘、存储盘、磁带)、光介质(例如,DVD),或者半导体介质(例如固态存储盘Solid State Disk (SSD))等。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. A computer program product comprises one or at least two computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. The computer can be a general purpose computer, special purpose computer, a computer network, or other programmable apparatus. Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g. coaxial cable, optical fiber, digital subscriber line) or wirelessly (eg, infrared, wireless, microwave, etc.) to another website site, computer, server, or data center. The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server, a data center, etc. integrated with one or more available media. Usable media can be magnetic media, (for example, floppy disks, memory disks, magnetic tape), optical media (for example, DVD), or semiconductor media (for example, solid State Disk (SSD)), etc.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structures or equivalent process transformations made by using the description of the application and the accompanying drawings are directly or indirectly used in other related technical fields. , are all included in the patent protection scope of the present application in the same way.

Claims (10)

  1. 一种拍摄方法,其中,所述方法包括:A shooting method, wherein the method includes:
    于预览界面触发特效模板操作,获取目标特效模板;Trigger the special effect template operation on the preview interface to obtain the target special effect template;
    接收到拍摄请求,采集图像帧;Receive the shooting request and collect the image frame;
    基于所述图像帧以及所述目标特效模板生成目标视频。A target video is generated based on the image frame and the target special effect template.
  2. 如权利要求1所述的拍摄方法,其中,所述根据基于所述图像帧以及所述目标特效模板生成目标视频的步骤包括:The shooting method according to claim 1, wherein said step of generating a target video based on said image frame and said target special effect template comprises:
    采用所述目标特效模板对所述图像帧进行特效处理;performing special effect processing on the image frame by using the target special effect template;
    从特效处理后的所述图像帧中抽取目标数量的关键帧;Extract key frames of a target number from the image frames after special effect processing;
    基于所述关键帧生成所述目标视频。The target video is generated based on the key frame.
  3. 如权利要求1所述的拍摄方法,其中,所述基于所述图像帧以及所述目标特效模板生成目标视频的步骤包括:The shooting method according to claim 1, wherein the step of generating a target video based on the image frame and the target special effect template comprises:
    从所述图像帧中抽取目标数量的关键帧;Extracting a target number of key frames from the image frame;
    采用所述目标特效模板对所述关键帧进行特效处理;performing special effect processing on the key frame by using the target special effect template;
    基于特效处理后的所述关键帧生成所述目标视频。The target video is generated based on the key frame after special effect processing.
  4. 如权利要求2或3所述的拍摄方法,其中,所述接收到拍摄请求时,采集图像帧的步骤之后,所述方法还包括:The shooting method according to claim 2 or 3, wherein, after the step of collecting image frames when the shooting request is received, the method further comprises:
    接收到抽帧频率的设置指令,获取所述设置指令对应的目标抽帧频率;receiving a setting instruction of the frame drawing frequency, and acquiring a target frame drawing frequency corresponding to the setting instruction;
    根据所述目标抽帧频率确定抽取所述关键帧的所述目标数量。The target quantity for extracting the key frames is determined according to the target frame extraction frequency.
  5. 如权利要求1至3中任一项所述的拍摄方法,其中,所述基于所述图像帧以及所述目标特效模板生成目标视频的步骤之后,还包括:The shooting method according to any one of claims 1 to 3, wherein, after the step of generating a target video based on the image frame and the target special effect template, further comprising:
    缓存所述目标视频;cache the target video;
    接收到录制结束指令时,保存所述目标视频。When the recording end instruction is received, the target video is saved.
  6. 如权利要求5所述的拍摄方法,其中,所述接收到录制结束指令之后,还包括:The shooting method according to claim 5, wherein, after receiving the recording end instruction, further comprising:
    在检测到缓存的目标延时摄影包括至少两个时,拼接至少两个所述目标视频。When it is detected that the cached target time-lapse photography includes at least two, splicing at least two of the target videos.
  7. 如权利要求6所述的拍摄方法,其中,所述拼接至少两个所述目标视频的步骤包括:The shooting method according to claim 6, wherein the step of splicing at least two of the target videos comprises:
    按照缓存时间的顺序,拼接至少两个所述目标视频。Splicing at least two of the target videos according to the order of cache time.
  8. 如权利要求6所述的拍摄方法,其中,所述拼接至少两个所述目标视频的步骤包括:The shooting method according to claim 6, wherein the step of splicing at least two of the target videos comprises:
    输出拼接顺序的提示信息;Output the prompt information of splicing sequence;
    检测到所述提示信息对应的目标拼接顺序的设定操作时,按照所述目标拼接顺序拼接至少两个所述目标视频。When the setting operation of the target splicing sequence corresponding to the prompt information is detected, at least two of the target videos are spliced according to the target splicing sequence.
  9. 一种移动终端,其中,所述移动终端包括:存储器、处理器,可选地,所述存储器上存储有拍摄程序,所述拍摄程序被所述处理器执行时实现如权利要求1至8中任一项所述的拍摄方法的步骤。A mobile terminal, wherein the mobile terminal includes: a memory, a processor, optionally, a photographing program is stored in the memory, and when the photographing program is executed by the processor, the process described in claims 1 to 8 is realized. The steps of any one of the photographing methods.
  10. 一种可读存储介质,其中,所述可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至8中任一项所述的拍摄方法的步骤。A readable storage medium, wherein a computer program is stored on the readable storage medium, and when the computer program is executed by a processor, the steps of the photographing method according to any one of claims 1 to 8 are realized.
PCT/CN2021/130373 2021-07-27 2021-11-12 Image capture method, mobile terminal and storage medium WO2023005060A1 (en)

Applications Claiming Priority (2)

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

Publications (1)

Publication Number Publication Date
WO2023005060A1 true WO2023005060A1 (en) 2023-02-02

Family

ID=78121003

Family Applications (1)

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

Country Status (2)

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

Families Citing this family (5)

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

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108377334A (en) * 2018-04-03 2018-08-07 优视科技有限公司 Short-sighted frequency image pickup method, device and electric terminal
CN109040615A (en) * 2018-08-10 2018-12-18 北京微播视界科技有限公司 Special video effect adding method, device, terminal device and computer storage medium
CN111163274A (en) * 2020-01-21 2020-05-15 海信视像科技股份有限公司 Video recording method and display equipment
CN111429341A (en) * 2020-03-27 2020-07-17 咪咕文化科技有限公司 Video processing method, video processing equipment and computer readable storage medium
CN112052897A (en) * 2020-09-03 2020-12-08 北京达佳互联信息技术有限公司 Multimedia data shooting method, device, terminal, server and storage medium
CN112887584A (en) * 2019-11-29 2021-06-01 华为技术有限公司 Video shooting method and electronic equipment
CN113115099A (en) * 2021-05-14 2021-07-13 北京市商汤科技开发有限公司 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

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108377334A (en) * 2018-04-03 2018-08-07 优视科技有限公司 Short-sighted frequency image pickup method, device and electric terminal
CN109040615A (en) * 2018-08-10 2018-12-18 北京微播视界科技有限公司 Special video effect adding method, device, terminal device and computer storage medium
CN112887584A (en) * 2019-11-29 2021-06-01 华为技术有限公司 Video shooting method and electronic equipment
CN111163274A (en) * 2020-01-21 2020-05-15 海信视像科技股份有限公司 Video recording method and display equipment
CN111429341A (en) * 2020-03-27 2020-07-17 咪咕文化科技有限公司 Video processing method, video processing equipment and computer readable storage medium
CN112052897A (en) * 2020-09-03 2020-12-08 北京达佳互联信息技术有限公司 Multimedia data shooting method, device, terminal, server and storage medium
CN113115099A (en) * 2021-05-14 2021-07-13 北京市商汤科技开发有限公司 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

Also Published As

Publication number Publication date
CN113542610A (en) 2021-10-22

Similar Documents

Publication Publication Date Title
WO2023005060A1 (en) Image capture method, mobile terminal and storage medium
CN110180181B (en) Method and device for capturing wonderful moment video and computer readable storage medium
WO2015131768A1 (en) Video processing method, apparatus and system
CN113556492B (en) Thumbnail generation method, mobile terminal and readable storage medium
WO2022266907A1 (en) Processing method, terminal device and storage medium
CN114371803B (en) Operation method, intelligent terminal and storage medium
WO2024001853A1 (en) Processing method, intelligent terminal and storage medium
CN110083423B (en) Interface jump method, terminal and computer readable storage medium
WO2023284218A1 (en) Photographing control method, and mobile terminal and storage medium
WO2022252158A1 (en) Photographing method, mobile terminal and readable storage medium
CN114510166B (en) Operation method, intelligent terminal and storage medium
WO2022105874A1 (en) Image display method, terminal device, and storage medium
CN113286106B (en) Video recording method, mobile terminal and storage medium
WO2022262259A1 (en) Image processing method and apparatus, and device, medium and chip
WO2023108444A1 (en) Image processing method, intelligent terminal, and storage medium
WO2023015774A1 (en) Switching method, mobile terminal, and storage medium
CN107566745B (en) Shooting method, terminal and computer readable storage medium
CN113419694A (en) Processing method, mobile terminal and storage medium
WO2022133967A1 (en) Photographing method, and terminal and computer storage medium
WO2023108443A1 (en) Image processing method, smart terminal and storage medium
WO2023102934A1 (en) Data processing method, intelligent terminal and storage medium
WO2024045155A1 (en) Icon display control method, mobile terminal, and storage medium
WO2022267045A1 (en) Page acquisition method, mobile terminal, and storage medium
WO2023108442A1 (en) Image processing method, smart terminal, and storage medium
WO2022261897A1 (en) Processing method, and mobile terminal and storage medium

Legal Events

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

Ref document number: 21951632

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE