CN113556492B - Thumbnail generation method, mobile terminal and readable storage medium - Google Patents

Thumbnail generation method, mobile terminal and readable storage medium Download PDF

Info

Publication number
CN113556492B
CN113556492B CN202110780200.3A CN202110780200A CN113556492B CN 113556492 B CN113556492 B CN 113556492B CN 202110780200 A CN202110780200 A CN 202110780200A CN 113556492 B CN113556492 B CN 113556492B
Authority
CN
China
Prior art keywords
thumbnail
image
preset
frames
video
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110780200.3A
Other languages
Chinese (zh)
Other versions
CN113556492A (en
Inventor
邢星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Transsion Holdings Co Ltd
Original Assignee
Shenzhen Transsion Holdings Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Transsion Holdings Co Ltd filed Critical Shenzhen Transsion Holdings Co Ltd
Priority to CN202110780200.3A priority Critical patent/CN113556492B/en
Publication of CN113556492A publication Critical patent/CN113556492A/en
Application granted granted Critical
Publication of CN113556492B publication Critical patent/CN113556492B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/73Querying
    • G06F16/738Presentation of query results
    • G06F16/739Presentation of query results in form of a video summary, e.g. the video summary being a video sequence, a composite still image or having synthesized frames
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • H04N19/423Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements
    • H04N19/426Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements using memory downsizing methods
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8549Creating video summaries, e.g. movie trailer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/78Television signal recording using magnetic recording
    • H04N5/781Television signal recording using magnetic recording on disks or drums
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/91Television signal processing therefor
    • H04N5/92Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback

Abstract

The application provides a thumbnail generation method, a mobile terminal and a readable storage medium, wherein the thumbnail generation method comprises the following steps: acquiring key frames from acquired image frames in the video recording process; compressing the key frames according to a preset proportion to form thumbnail images of the key frames; and saving and/or displaying the thumbnail. According to the thumbnail generation method, the thumbnail is directly generated in the video recording process, the thumbnail does not need to be regenerated after the video is completely recorded, the waiting time for generating the thumbnail is greatly shortened, and the thumbnail generation efficiency is improved.

Description

Thumbnail generation method, mobile terminal and readable storage medium
Technical Field
The present application relates to the field of image information processing technologies, and in particular, to a thumbnail generating method, a mobile terminal, and a readable storage medium.
Background
The thumbnail is a small picture after the picture is compressed, and the thumbnail occupies small storage space and has very high loading speed, so the thumbnail is used for fast browsing and plays roles of picture file previewing and catalogue. After the mobile terminal finishes photographing or recording the video, a thumbnail of the image or the video is generally formed, and the thumbnail is displayed in a gallery.
In the course of conception and implementation of the present application, the inventors found that at least the following problems exist: the generation time of the thumbnail of the video is longer, the video is required to be stored after the video is recorded, then the video is analyzed through the media metadata retriever, the image frame corresponding to the video is obtained, and one of the image frames is acquired from the image frames and is used as the thumbnail to be displayed. In addition, in this method of obtaining a thumbnail, it is necessary to obtain a thumbnail through the processes of ending video recording, saving video obtained by video recording, analyzing video, and obtaining an image frame from the analyzed video, which is cumbersome and takes a long time.
The foregoing description is provided for general background information and does not necessarily constitute prior art.
Disclosure of Invention
The application provides a thumbnail generation method, a mobile terminal and a readable storage medium, aiming at solving the problems of complicated mode and long time consumption for obtaining a thumbnail.
In order to solve the technical problem, the present application provides a thumbnail generating method, which includes:
acquiring key frames from acquired image frames in the video recording process;
compressing the key frames according to a preset proportion to form thumbnail images of the key frames;
And saving and/or displaying the thumbnail.
Optionally, the step of acquiring a key frame from the acquired image frames comprises:
acquiring an image frame;
and configuring the image frame as the key frame when the image frame accords with a preset image standard.
Optionally, after the step of acquiring the image frames, the method further comprises:
acquiring display parameters of the image frame, optionally, the display parameters include at least one of resolution of the image frame and color values of various pixel points in the image frame;
and when the display parameters meet preset conditions, determining that the image frames meet the preset image standards.
Optionally, after the step of acquiring the image frames, the method further comprises:
acquiring the current recording time length corresponding to the image frame;
and when the current recording time length corresponding to the image frame is greater than or equal to the preset time length, determining that the image frame accords with the preset image standard.
Optionally, the step of saving the thumbnail includes:
encoding the thumbnail to obtain a thumbnail with a preset picture format;
and storing the thumbnail in the preset picture format in a storage area corresponding to a preset storage path.
Optionally, the step of displaying the thumbnail includes:
when the recording ending operation of the video is detected, acquiring the thumbnail from a storage area corresponding to the preset storage path;
and displaying the thumbnail at the thumbnail display position corresponding to the video.
Optionally, the method further comprises:
acquiring image information of the key frame;
and storing the thumbnail of the key frame and the image information of the key frame in a storage area corresponding to the preset storage path in an associated mode, and displaying the image information of the key frame while displaying the thumbnail.
Optionally, the method further comprises:
acquiring at least two reference image frames from the acquired image frames in the video recording process;
generating a reference video according to the reference image frame;
and storing the thumbnail of the key frame and the reference video in a storage area corresponding to the preset storage path in an associated mode, and playing the reference video while displaying the thumbnail.
The application also provides a mobile terminal, comprising: the device comprises a memory and a processor, wherein the memory stores a thumbnail generation program, and the thumbnail generation program realizes the steps of the method when being executed by the processor.
The application also provides a readable storage medium storing a computer program which, when executed by a processor, implements the steps of the method as described above.
As described above, in the thumbnail generation method of the present application, first, in the video recording process, key frames are acquired from acquired image frames; then, compressing the key frames according to a preset proportion to form thumbnail corresponding to the key frames; finally, the thumbnail is saved and/or displayed. According to the thumbnail generation method, on one hand, the thumbnail can be directly generated in the video recording process, the thumbnail does not need to be regenerated after the video is completely recorded, the waiting time for generating the thumbnail is greatly shortened, and the thumbnail generation efficiency is improved; on the other hand, the problem that the thumbnail cannot be obtained due to the damage of the media metadata retrieval is avoided, the thumbnail generation mode is simpler, the thumbnail generation accuracy is higher, and the user experience is further improved.
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 drawings that are needed in the description of the embodiments will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
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 schematic diagram of a communication network system according to an embodiment of the present application;
FIG. 3 is a flow chart of a first embodiment of a thumbnail generating method of the present application;
FIG. 4 is a flowchart illustrating a method for determining a key frame according to a first embodiment of the thumbnail generating method of the present application;
FIG. 5-1 is a schematic view of a first interface for outputting a thumbnail and simultaneously outputting image information in a first embodiment of a thumbnail generating method according to the present application;
FIG. 5-2 is a schematic diagram of a second interface for outputting image information while outputting a thumbnail in the first embodiment of the thumbnail generating method of the present application;
FIG. 6 is a flowchart of a second embodiment of the thumbnail generation method of the present application;
fig. 7 is a flowchart of a thumbnail generating method according to an embodiment of the present application.
The achievement of the objects, functional features and advantages of the present application will be further described with reference to the accompanying drawings, in conjunction with the embodiments. Specific embodiments of the present application have been shown by way of the above drawings and will be described in more detail below. The drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but rather to illustrate the inventive concepts to those skilled in the art by reference to the specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the element defined by the phrase "comprising one … …" does not exclude the presence of additional identical elements in a process, method, article, or apparatus that comprises the element, and alternatively, elements having the same name in different embodiments of the application may have the same meaning or may have different meanings, a particular meaning of which is to be determined by its interpretation in this particular embodiment or further in connection with the context of this particular embodiment.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope herein. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "responsive to a determination", depending on the context. 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 will be further understood that the terms "comprises," "comprising," "includes," and/or "including" specify the presence of stated features, steps, operations, elements, components, items, categories, and/or groups, but do not preclude the presence, presence or addition of one or more other features, steps, operations, elements, components, items, categories, and/or groups. The terms "or", "and/or", "including at least one of", and the like, as used herein, may be construed as inclusive, or mean any one or any combination. For example, "including at least one of: A. b, C "means" any one of the following: a, A is as follows; b, a step of preparing a composite material; c, performing operation; a and B; a and C; b and C; a and B and C ", again as examples," A, B or C "or" A, B and/or C "means" any of the following: a, A is as follows; b, a step of preparing a composite material; c, performing operation; a and B; a and C; b and C; a and B and C). An exception to this definition will occur only when a combination of elements, functions, steps or operations are in some way inherently mutually exclusive.
It should be understood that, although the steps in the flowcharts in the embodiments of the present application are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the figures may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily occurring in sequence, but may be performed alternately or alternately with other steps or at least a portion of the other steps or stages.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrase "if determined" or "if detected (stated condition or event)" may be interpreted as "when determined" or "in response to determination" or "when detected (stated condition or event)" or "in response to detection (stated condition or event), depending on the context.
It should be noted that, in this document, step numbers such as S10 and S20 are adopted, and the purpose of the present application is to more clearly and briefly describe the corresponding content, and not to constitute a substantial limitation on the sequence, and those skilled in the art may execute S20 first and then execute S10 when implementing the present application, which is within the scope of protection of the present application.
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
In the following description, suffixes such as "module", "part" or "unit" for representing elements are used only for facilitating the description of the present application, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
Mobile terminals may be implemented in a variety of forms. For example, mobile terminals described in the present application may include mobile terminals such as cell phones, tablet computers, notebook computers, palm computers, personal digital assistants (Personal Digital Assistant, PDA), portable media players (Portable Media Player, PMP), navigation devices, wearable devices, smart bracelets, pedometers, and stationary terminals such as digital TVs, desktop computers, and the like.
The following description will be given taking a mobile terminal as an example, and those skilled in the art will understand that the configuration according to the embodiment of the present application can be applied to a fixed type terminal in addition to elements particularly used for a moving purpose.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present application, the mobile terminal 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an a/V (audio/video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111. Those skilled in the art will appreciate that the mobile terminal structure shown in fig. 1 is not limiting of the mobile terminal and that the mobile terminal may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The following describes the components of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be used for receiving and transmitting signals during the information receiving or communication process, specifically, after receiving downlink information of the base station, processing the downlink information by the processor 110; optionally, the uplink data is sent to the base station. Typically, 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 networks and other devices via wireless communication. The wireless communication may 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 ), CDMA2000 (Code Division Multiple Access, CDMA 2000), WCDMA (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 Duplex Long term evolution), etc.
WiFi belongs to a short-distance wireless transmission technology, and a mobile terminal can help a user to send and receive e-mails, browse web pages, access streaming media and the like through the WiFi module 102, so that wireless broadband Internet access is provided for the user. Although fig. 1 shows a WiFi module 102, it is understood that it does not belong to the necessary constitution of a mobile terminal, and can be omitted entirely as required within a range that does not change the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the mobile terminal 100. The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive an audio or video signal. The a/V input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, and the like, and can process such sound into audio data. The processed audio (voice) data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting the audio signal.
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 may adjust the brightness of the display panel 1061 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 1061 and/or the backlight when the mobile terminal 100 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for applications of recognizing the gesture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; as for other sensors such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured in the mobile phone, the detailed description thereof will be omitted.
The display unit 106 is used to display information input by a user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the mobile terminal. Alternatively, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 1071 or thereabout by using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Optionally, the touch detection device detects the touch azimuth of the user, detects a signal brought by touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 110, and can receive and execute commands sent from the processor 110. Alternatively, the touch panel 1071 may be implemented in various types of resistive, capacitive, infrared, surface acoustic wave, and the like. The user input unit 107 may include other input devices 1072 in addition to the touch panel 1071. Alternatively, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc., as specifically not limited herein.
Alternatively, the touch panel 1071 may overlay the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or thereabout, the touch panel 1071 is transferred to the processor 110 to determine the type of touch event, and the processor 110 then provides a corresponding visual output on the display panel 1061 according to the type of touch event. Although in fig. 1, the touch panel 1071 and the display panel 1061 are two independent components for implementing the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 may be integrated with the display panel 1061 to implement the input and output functions of the mobile terminal, which is not limited herein.
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, the external devices 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 having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and an external device.
Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, and alternatively, the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. Alternatively, the memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, the application processor optionally handling mainly an operating system, a user interface, an application program, etc., the modem processor handling mainly wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power source 111 (e.g., a battery) for supplying power to the respective components, and preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to perform functions of managing charging, discharging, and power consumption management through the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described herein.
In order to facilitate understanding of the embodiments of the present application, a communication network system on which the mobile terminal of the present application is based will be described below.
Referring to fig. 2, fig. 2 is a schematic diagram of a communication network system according to an embodiment of the present application, where the communication network system is an LTE system of a general mobile communication technology, and the LTE system includes a UE (User Equipment) 201, an e-UTRAN (Evolved UMTS Terrestrial Radio Access Network ) 202, an epc (Evolved Packet Core, evolved packet core) 203, and an IP service 204 of an operator that are sequentially connected in communication.
Alternatively, the UE201 may be the terminal 100 described above, which is not described here again.
The E-UTRAN202 includes eNodeB2021 and other eNodeB2022, etc. Alternatively, the eNodeB2021 may connect with other enodebs 2022 over a backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide access for the UE201 to the EPC 203.
EPC203 may include MME (Mobility Management Entity ) 2031, hss (Home Subscriber Server, home subscriber server) 2032, other MMEs 2033, SGW (Serving Gate Way) 2034, pgw (PDN Gate Way) 2035 and PCRF (Policy and Charging Rules Function, policy and tariff function entity) 2036, and so on. Optionally, MME2031 is a control node that handles signaling between UE201 and EPC203, providing bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location registers (not shown) and to hold user specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034 and PGW2035 may provide IP address allocation and other functions for UE201, PCRF2036 is a policy and charging control policy decision point for traffic data flows and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem ), or other IP services, etc.
Although the LTE system is described above as an example, it should be understood by those skilled in the art that the present application is not limited to LTE systems, but may be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above-mentioned mobile terminal hardware structure and communication network system, various embodiments of the present application are presented.
First embodiment
Referring to fig. 3, fig. 3 is a flowchart of a first embodiment of a thumbnail generating method according to the present application, where the thumbnail generating method includes:
step S10, acquiring key frames from acquired image frames in the video recording process;
the image frame is the smallest unit that makes up a video, and the key frame is a certain image frame in the video. It should be noted that, the key frame refers to an image frame that satisfies a preset image standard.
As an alternative implementation manner, referring to fig. 4, fig. 4 is a schematic flow chart of determining a key frame in the first embodiment of the thumbnail generating method of the present application, and step S10 of acquiring the key frame from the acquired image frame includes: step S11, acquiring image frames; step S13, when the image frame accords with the preset image standard, the image frame is configured as a key frame.
Optionally, the preset image standard may be set according to an actual application scenario, for example, the preset image standard may be that the image frame has valid image information, or the current recording time length corresponding to the image frame is longer than or equal to a preset duration, or the image frame has valid image information, and the current recording time length of the image frame is longer than or equal to the preset duration. And when the image frame is determined to be a key frame through a preset image standard and the thumbnail is obtained through the key frame, the method can be conveniently used for quickly acquiring the related information of the video through the thumbnail.
It should be noted that, the image frame having the valid image information refers to an image frame whose display parameter satisfies a preset condition, and optionally, the display parameter of the image frame includes at least one of resolution of the image frame and color values of respective pixel points in the image frame. For example, the display parameters of the image frame include a resolution of the image frame and color values of pixels in the image frame, the preset image standard includes that the resolution of the image frame is greater than or equal to the preset resolution, the color values of pixels in the image frame are greater than or equal to the preset color values, such as a hue value is greater than or equal to a first hue value, a brightness is greater than or equal to a first brightness, and a saturation is greater than or equal to a first saturation.
Optionally, the current recording duration is a difference between a recording time corresponding to the currently acquired image frame and a starting time of the video, and the recording time and the starting time corresponding to the image frame can be obtained through timing software. The preset time length can be preset according to specific application scenes, for example, the preset time length is determined according to the whole recording time length of video recording, so that the preset time length is prevented from being longer than the whole recording time length of video recording; the preset duration can also be set according to factory defaults of the mobile terminal for recording the video.
Alternatively, the number of key frames may be one frame or at least two frames. During the video recording process, whether each acquired image frame accords with a preset image standard or not can be confirmed, the image frames can be acquired according to a preset time interval or a preset interval frame number, and whether each acquired image frame accords with the preset image standard or not is confirmed. Alternatively, the preset time interval and the preset interval frame number may be set according to an actual application scenario, which is not specifically limited in this embodiment. If the image frame conforming to the image standard is a frame, the image frame can be directly used as a key frame, and if the image frame conforming to the image standard is at least two frames, the at least two frames of image frames can be used as key frames to be selected, and the key frames to be selected with the highest color saturation and/or the highest brightness and/or the largest color variety are obtained from the key frames to be selected as the key frames.
Optionally, it may be further configured to detect the acquired image frame when video recording begins, and determine whether the acquired image frame meets a preset image standard. And stopping detecting and taking the current image frame as a key frame when detecting that a certain image frame accords with a preset image standard.
In the practical application process, the situation that the acquired image frames are seriously blurred and blurred due to manual operations such as shaking can be caused during video recording, and the situation that the acquired image frames are seriously blurred and blurred due to the fact that the mobile terminal of the video recording is blocked can be caused. Whether the image frame is a key frame may be determined by determining whether the image frame meets a preset image standard. It is readily understood that an image frame may be determined to be a key frame when the image frame meets a preset image standard.
As an optional implementation manner, after the image frame is acquired in step S11, a display parameter of the image frame is acquired, where the display parameter includes at least one of resolution of the image frame and a color value of each pixel point; and when the display parameters meet preset conditions, determining that the image frames meet preset image standards.
The resolution of an image frame refers to the amount of information stored in the image frame, which is how many Pixels Per Inch of image, the resolution being in PPI (Pixels Per Inch), the image resolution being used to change the sharpness of the image. The color value of each pixel point can be uniquely determined by the color value of the corresponding RGB channel in each pixel point.
The acquisition of the display parameters of the image frames, i.e. at least one of the resolution of the image frames and the color values of the individual pixels, may be performed by image processing software, such as PS or image analysis software. And when the display parameters meet the preset conditions, the image frames are clear, and effective information is acquired from the image frames, such as at least one of places, scenic spots, people and animals in the image frames can be acquired by identifying the image frames, and the image frames are determined to meet the preset image standards.
Accordingly, the preset condition includes that the resolution of the image frame is greater than or equal to the preset resolution, the color values of the pixels in the image frame are at least partially different, and the difference between the color values of the pixels in the image frame is greater than or equal to at least one of the preset color differences.
Alternatively, the preset resolution is an empirical value, which can be set by the user as desired. The color values of all the pixel points in the image frame are at least partially different, and when the color values of the pixel points are not equal, the color values of all the pixel points in the image frame can be determined to be at least partially different by comparing the color values of all the pixel points; the difference value between the color values of the different pixel points in the image frame is larger than or equal to the preset color difference value, namely, the difference value between the color values of the pixel points is acquired based on the acquired color value of each pixel point, so that when the difference value is larger than or equal to the preset color difference value, the image frame is indicated to accord with the preset image standard. Optionally, the preset color difference is determined based on a minimum color difference between different color values that can be distinguished by human eyes.
It should be noted that, the resolution of the image frame being greater than or equal to the preset resolution may be used to ensure that the acquired image frame is clearly visible; the color values of all pixel points in the image frame are at least partially different, so that the problem that the image frame is a solid-color image, namely the image frames with the same color values of all pixel points cannot acquire effective information from the image frame is avoided; the difference value between the color values of different pixel points in the image frame is larger than or equal to the preset color difference value, so that the diversification of the colors of the image frame is ensured, and the image frame has richer colors, so that the probability of acquiring effective information from the image frame is improved.
Optionally, the preset condition includes that the resolution of the image frame is greater than or equal to the preset resolution, the color values of the pixels in the image frame are at least partially different, and a situation that the difference between the color values of the different pixels in the image frame is greater than or equal to at least two or at least three of the preset color differences exists in the image frame, which is not described herein.
As an optional implementation manner, after the image frames are acquired in step S11, a current recording duration corresponding to the image frames is acquired; and when the current recording time length corresponding to the image frame is greater than or equal to the preset time length, determining that the image frame accords with the preset image standard.
Optionally, the preset duration is the shortest duration that can ensure to acquire the key frame after the video recording starts, and the preset duration can be obtained through multiple video recording test experiments, and is determined based on statistics of test experiment data obtained by each recording time point of each video recording and the image frame acquired correspondingly to each time point. And counting each time of video recording through test experimental data, recording the recording time points of the image frames once the acquired display parameters of the image frames accord with preset image standards serving as key frames according to the recording time sequence, and determining the shortest time length for judging the image frames to serve as the key frames based on the acquired test experimental data of the recording time points of the key frames determined in each video recording.
It can be understood that under the condition of ensuring normal video recording, taking the preset time length as the shortest time length for judging the image frame as the key frame, acquiring the key frame after the video recording starts the preset time length, namely, when the current recording time length corresponding to the image frame is greater than or equal to the preset time length, determining that the image frame meets the preset image standard, and taking the image frame as the key frame.
In the practical application process, the situation that the acquired image frames are seriously blurred and blurred can be caused by manual operation at the beginning of video recording, or the situation that the acquired image frames are seriously blurred and blurred can be caused by the preparation time delay of video recording when a mobile terminal for video recording exists, so that in order to better acquire the key frames, whether the acquired image frames in the video recording process are qualified or not, namely whether the image frames can be used as the key frames or not can be judged by the recording time length of the video recording, for example, the currently acquired image frames are used as the key frames when the recording time length is longer than or equal to the preset time length.
As an optional implementation manner, after the image frame is acquired in step S11, a current recording duration corresponding to the image frame is acquired, and display parameters of the image frame are acquired; and when the current recording time length corresponding to the image frame is longer than or equal to the preset time length and the display parameters of the image frame meet the preset conditions, determining that the image frame meets the preset image standard.
For specific implementation, reference may be made to the two implementation manners of determining that the image frame meets the preset image standard in this embodiment, which are not described herein.
In the technical scheme disclosed in the embodiment, in the video recording process, by acquiring the image frames meeting the preset image standard as the key frames, and further when the thumbnail is acquired through the key frames, the output thumbnail can be prevented from being a pure black image or a picture without effective information, so that a user can conveniently and quickly acquire the related information content of the recorded video through the thumbnail.
Step S20, compressing the key frames according to a preset proportion to form thumbnail images of the key frames;
optionally, the key frames are compressed according to a preset proportion to form thumbnail images of the key frames, so that memory occupation is reduced. Optionally, the preset ratio includes, but is not limited to: 4:3, 16:9, 16:10, 5:4, etc., for example, 720P, with a total of 1280 x 720 pixels, since the thumbnail generated does not require such high resolution, for example, 320 x 240, the preset ratio can be set to a size of 4:3 ratio.
And step S30, saving and/or displaying the thumbnail.
Optionally, the thumbnail is saved and/or displayed, which may be saved and/or displayed before the video recording is completed; the thumbnail may also be saved and/or displayed after the video recording is completed; the thumbnail can be stored before the video recording is finished, the stored thumbnail is obtained after the video recording is finished, and the thumbnail is adopted as the thumbnail of the video, so that a user can conveniently and quickly acquire the related information content of the video based on the thumbnail of the video, and the specific implementation of the step is not limited in the embodiment.
Alternatively, the thumbnail obtained by compressing at a preset ratio may be directly saved and/or displayed. The thumbnail obtained by compression according to the preset proportion can be encoded to obtain the thumbnail with the preset picture format, and the thumbnail with the preset picture format is stored in the storage area corresponding to the preset storage path. Optionally, the preset picture format may be any image format, for example, the preset picture format may be a. Jpg format, or may be a. Png format, or a bitmap format. For example, the thumbnail may be encoded to encode the thumbnail as bitmap data, alternatively, the bitmap data may be in the standard encoding manner of the thumbnail.
In the practical application process, in order to obtain the recorded video and the thumbnail corresponding to the video in the video recording process, the storage area corresponding to the second storage path may be preset to store the image frame acquired in the video recording process, and the thumbnail may be stored in the storage area corresponding to the first storage path.
As an alternative embodiment, step S30 includes: and storing the thumbnail in a storage area corresponding to the preset storage path.
Alternatively, the preset storage path may be used to uniquely determine a storage area of the thumbnail, and the thumbnail may be acquired from the storage area corresponding to the preset storage path through the preset storage path. The preset storage path can be preset according to the needs of the user, and can also be automatically set based on the default storage path of the system, which is not limited. It is easy to understand that the preset storage path is a path for storing or saving, that is, saving the data to be stored, such as pictures, picture files, programs, etc., in a certain storage area of the hard disk or a certain folder in the storage area.
The storage method includes a method of storing in a database based on disk persistence and a redis cache method. It is easy to understand that the manner of saving the thumbnail may be based on the manner of persisting the thumbnail in the database, or may be in the manner of redis caching. Optionally, compared with the manner of persisting in the database based on the disk, the thumbnail is saved in the storage area corresponding to the preset storage path in a redis cache manner. When the thumbnail is needed to be used, the thumbnail can be directly acquired in the redis cache, so that the response time for acquiring the thumbnail is shortened, and the acquisition speed of the thumbnail is improved.
As an alternative embodiment, the step S30 is performed simultaneously with or after that, including: and storing the image frames in a storage area corresponding to the first preset storage path.
For example, the first storage path may be represented in the form of C, my documents/pictures/thumbnails store, i.e., folders indicating that the thumbnails stored in C-disc have file names of pictures in My documents. Similarly, the first preset storage path may be used to uniquely determine a storage area of an image frame acquired during video recording, and all acquired image frames may be acquired from the storage area corresponding to the first preset storage path through the first preset storage path, which is not described in detail herein. The mode of storing the image frames acquired by recording the video adopts a mode of storing the image frames in a database based on disk persistence.
Alternatively, the preset storage path may be the same as or different from the first storage path. It should be noted that, when the preset storage path is the same as the first storage path, that is, the storage area determined by the preset storage path and the first storage path is the same, the thumbnail and the image frame are stored in the same storage area, in order to facilitate the respective acquisition of the thumbnail and the image frame from the same storage area, the image identifier may be set in advance for the thumbnail and the image frame, for example, the image identifier set for the thumbnail is "S", the image identifier set for the image frame is "Z", and the thumbnail and the image frame are further distinguished and acquired respectively by the image identifier.
As an alternative embodiment, after step S20, it includes: acquiring image information of a key frame; and storing the thumbnail of the key frame and the image information of the key frame in a storage area corresponding to a preset storage path in an associated mode, and displaying the image information of the key frame while displaying the thumbnail.
Alternatively, the image information may include keywords describing the key frames. For example, the keywords may include identifying at least one of a location, a scenic spot, a person and an animal corresponding to the key frame, and the user may conveniently and quickly learn the image content of the key frame through the keywords. Optionally, the image information may further include a time of generation of the key frame, by which the user is prompted for a time of video recording. For example, the generation time includes at least one of a date and a time point.
For example, image information of a key frame is acquired, that is, keywords in the key frame are identified and acquired, when the keywords are places or scenery spots, the places or the scenery spots can be acquired by identifying characters in the key frame, and the places or the scenery can be determined by identifying landmark identifiers in the key frame, such as landmark buildings or landmark scenery; when the key words are human, the face information in the key frames can be identified, so that when the face information is matched with the preset face information, the person corresponding to the preset face information, such as the name of the person, is determined; similarly, the term "animal" is not described in detail herein. Optionally, the preset face information may be preconfigured in a database of the intelligent terminal, and the preset face information may be information marked and saved by a user.
And associating and storing the image information and the thumbnail of the key frame so as to output the image information for display while outputting the thumbnail, thereby being beneficial to a user to quickly acquire the video content according to the thumbnail and the image information. Alternatively, the manner of outputting the image information for display while outputting the thumbnail may include: and simultaneously displaying the thumbnail and the image information. For example, image information is displayed on the upper layer of the thumbnail, please refer to fig. 5-1, fig. 5-1 is a first interface schematic diagram of outputting the image information while outputting the thumbnail in the first embodiment of the thumbnail generating method of the present application. Or displaying image information below the thumbnail, please refer to fig. 5-2, fig. 5-2 is a second interface schematic diagram of outputting the thumbnail and outputting the image information at the same time in the first embodiment of the thumbnail generating method of the present application, and it should be noted that a is the thumbnail and B is the image information.
Alternatively, the image information may be displayed hidden when the thumbnail is output, and displayed to be overlaid on top of the thumbnail when the user triggers the thumbnail. Of course, the mode of displaying the thumbnail and the image information simultaneously may be another display mode, and this embodiment is not particularly limited.
It should be noted that, the specific implementation of associating and storing the image information and the thumbnail of the key frame may store the image information and the thumbnail of the key frame in the same file, or may associate the thumbnail of the key frame with the image information through the same index information, and further store the index information of the thumbnail of the key frame and the index information of the image information in the same index file.
In the technical scheme disclosed in the embodiment, by compressing the key frames acquired from the acquired image frames according to a preset proportion in the video recording process, taking the compressed key frames as the thumbnail corresponding to the key frames, and storing and/or displaying the thumbnail, on one hand, the thumbnail is directly generated in the video recording process, the thumbnail does not need to be generated after the video is completely recorded, the time length for generating the thumbnail is greatly shortened, and the thumbnail generating efficiency is improved; on the other hand, the problem that the thumbnail cannot be obtained due to the damage of the media metadata retrieval is avoided, the thumbnail generation mode is simpler, the thumbnail generation accuracy is higher, and the user experience is further improved.
Second embodiment
Referring to fig. 6, fig. 6 is a schematic flow chart of a second embodiment of the thumbnail generating method according to the present application, in which step S30 includes:
step S31, when detecting the recording ending operation for the video, acquiring a thumbnail from a storage area corresponding to a preset storage path;
step S33, displaying the thumbnail at the thumbnail display position corresponding to the video.
Note that, the video recording end operation may be a trigger operation for a video recording button or a key, or may be a voice instruction operation for the video. For example, the user speaks "end recording" for the video, etc. Of course, the video recording ending operation may be any interactive operation mode, which is not limited in this embodiment.
The thumbnail display position is a position for displaying a thumbnail corresponding to a video, for example, a certain position in an album or a video directory of a mobile terminal. The thumbnail display positions corresponding to the video may be preset or may be obtained by sorting according to time sequence or storage size, which is not particularly limited in the present disclosure. The thumbnail may be acquired from the storage area through the preset storage path based on the preset storage path being the storage area for uniquely determining the thumbnail. Optionally, based on the first preset storage path being a storage area for uniquely determining the image frames acquired during video recording, all the acquired image frames can be acquired from the storage area through the first preset storage area.
As an alternative implementation manner, in this embodiment, after step S20, the method further includes:
acquiring image information of a key frame; and storing the key frames and the image information of the key frames in a storage area corresponding to a preset storage path in an associated mode, and displaying the image information of the key frames while displaying the thumbnail.
The image information includes keywords describing the key frames. Optionally, the keywords include at least one of a place, a scenic spot, a person and an animal obtained by identifying the key frame, and the user can conveniently and quickly learn the image content of the key frame through the keywords. Optionally, the image information further includes a time of generation of the key frame, and the time of generation of the key frame can be used for prompting the user for video recording. Optionally, the generation time includes at least one of a date and a point in time.
The image information corresponding to the image information comprises keywords describing the key frames, wherein the keywords comprise at least one of places, scenic spots, people and animals, the image information of the key frames is acquired, namely the keywords in the key frames are identified and acquired, when the keywords are places or scenic spots, the places or the scenic spots can be acquired by identifying characters in the key frames, and landmark identifications in the key frames, such as landmark buildings or landmark scenery, can be identified by the landmark identifications; when the key words are human, the face information in the key frames can be identified, so that when the face information is matched with the preset face information, the person corresponding to the preset face information, such as the name of the person, is determined; similarly, the term "animal" is not described in detail herein. Optionally, the preset face information may be preconfigured in a database of the intelligent terminal, and the preset face information may be information marked and saved by a user.
And storing the key frames and the image information of the key frames in a storage area corresponding to a preset storage path in an associated mode so as to acquire the image information associated with the key frames and display the image information while displaying the thumbnail, so that a user can quickly acquire video content according to the thumbnail and the image information.
As an optional implementation manner, step S60 obtains the thumbnail from the preset storage path, it may be understood that, in the actual application process, if the thumbnail is not obtained from the preset storage path, that is, no key frame exists in the image frames collected by the camera, which indicates that the video recording fails, a prompt message of the video recording failure may be output to prompt the user that the video is not recorded successfully.
In the technical scheme disclosed in the embodiment, when the video recording end operation is detected, all the image frames acquired in the video recording process are acquired from the second storage path to generate the video, the thumbnail is acquired from the preset storage path, and the thumbnail is output to the thumbnail display position corresponding to the video for display, so that the purposes that the thumbnail can be acquired in the video recording process and the time length for generating the thumbnail is greatly shortened are achieved.
Third embodiment
A third embodiment of the thumbnail generating method of the present application is proposed based on any one of the above embodiments, in which step S20 is followed by further including:
acquiring at least two reference image frames from the acquired image frames in the video recording process;
generating a reference video according to the reference image frame;
and storing the thumbnail of the key frame and the reference video in a storage area corresponding to the preset storage type path in an associated mode, and playing the reference video while displaying the thumbnail.
Optionally, at least two reference image frames are acquired from the acquired image frames, and the reference image frames can be acquired from the acquired image frames according to a preset time interval; or can be obtained from the acquired image frames according to the preset interval frame number; the key frame to be selected may be obtained from at least two key frames to be selected, and optionally, the key frames to be selected are image frames meeting the image standard, which is not limited.
Optionally, as an optional implementation manner, the step of acquiring at least two reference image frames from the acquired image frames further includes: image similarity between adjacent image frames can be obtained from the acquired image frames according to the recorded time sequence; acquiring at least two image frames with the image similarity smaller than a preset similarity as reference image frames; face recognition can be performed from the acquired image frames to take one or at least two image frames containing the portrait as reference image frames; the color value of each pixel of each image frame can be obtained from the acquired image frames, the color type corresponding to each image frame is determined according to the color value, and at least two image frames containing the color type greater than or equal to the preset type are used as reference image frames.
It should be noted that, the image similarity between two adjacent image frames is obtained according to the recording time sequence from the collected image frames, the image similarity between two image frames can be obtained according to the image analysis tool or the image analysis software, and at least two image frames with the image similarity smaller than the preset similarity can be obtained to determine different scenes of the recorded video, alternatively, the image similarity smaller than the preset similarity indicates that the picture content of the two image frames has larger difference, and the two image frames can respectively correspond to different scenes in the video recording process.
Generating a reference video according to at least two reference image frames, and directly encoding the at least two reference image frames into the reference video according to a preset encoding mode; the embodiment is not limited to this, and the at least two reference image frames may be compressed according to a preset ratio and encoded into thumbnail images corresponding to the image frames in a preset picture format, and then reference video may be generated according to the thumbnail images corresponding to the at least two reference image frames.
And the thumbnails of the reference video and the key frames are stored in an associated mode so that the reference video is output for playing and displaying at the same time when the thumbnails are output, and a user can quickly acquire specific content in the video according to the thumbnails and the reference video. Optionally, the mode of outputting the reference video for playing and displaying while outputting the thumbnail includes outputting the thumbnail and the reference video simultaneously, or outputting the reference video for playing and displaying when the mouse is positioned at the position where the thumbnail is displayed or when the thumbnail is long pressed when the thumbnail is output.
Optionally, storing the thumbnail of the key frame and the reference video in a storage area corresponding to the preset storage path in an associated manner, and storing the thumbnail of the key frame and the reference video in the same storage area can quickly acquire the reference video for playing while acquiring the thumbnail of the key frame for display.
In the technical scheme disclosed by the embodiment, the reference video is generated by acquiring at least two image frames from the acquired image frames, and the key frames and the reference video are stored in a correlated manner so as to output the reference video for playing and displaying while outputting the thumbnail, so that a user can conveniently acquire at least one image frame scene in the video based on the reference video, and further the user can quickly acquire video content according to the thumbnail and the reference video to acquire the content of the video.
Fourth embodiment
For the sake of understanding the thumbnail generating method of the present application, fig. 7 is a schematic flow chart of the thumbnail generating method according to an embodiment of the present application, as shown in fig. 7, specifically described as follows:
in step S710, in response to starting the video recording operation, original image data is acquired, and an image frame formed by encoding the original image data is used as a target image frame;
In step S720, it is determined whether the target image frame meets a preset image standard;
in step S730, when the target image frame meets a preset image standard, configuring the target image frame as a key frame;
optionally, the preset image criteria include: the display parameters of the image frames satisfy a preset condition. Optionally, the preset conditions include: the resolution of the image frame is larger than or equal to the preset resolution, and at least partial pixel points in the image frame have different color values;
in step S740, when the target image frame does not meet the preset image standard, acquiring the next image frame as a new target image frame, and executing step S720;
in step S750, compressing the key frame according to a preset ratio, and encoding the compressed key frame into a Bitmap data form to form a thumbnail of the key frame;
in step S760, the thumbnail is cached to a storage area corresponding to the preset storage path;
optionally, in the video recording process, encoding each formed image frame according to the recording time sequence to form video data, packaging the video data, and storing the video data in a storage area corresponding to a first preset storage path;
In step S770, in response to ending the video recording operation, it is determined whether or not the thumbnail is stored in the storage area corresponding to the preset storage path;
in step S780, if the thumbnail is stored, acquiring the thumbnail from the storage area corresponding to the preset storage path, and displaying the thumbnail at the thumbnail display position corresponding to the video;
in step S790, if the thumbnail is not stored, a prompt message prompting the user that the video recording has failed is output.
The application also provides a mobile terminal, which comprises a memory and a processor, wherein the memory stores a thumbnail generation program, and the thumbnail generation program is executed by the processor to realize the steps of the thumbnail generation method in any embodiment.
The present application also provides a readable storage medium having stored thereon a thumbnail generation program which, when executed by a processor, implements the steps of the thumbnail generation method in any of the above embodiments.
In the embodiments of the mobile terminal and the readable storage medium provided by the present application, all technical features of each embodiment of the thumbnail generation method are included, and the expansion and explanation contents of the description are basically the same as those of each embodiment of the method, and are not repeated herein.
Embodiments of the present application also provide a computer program product comprising computer program code which, when run on a computer, causes the computer to perform the method as in the various possible embodiments described above.
The embodiment of the application also provides a chip, which comprises a memory and a processor, wherein the memory is used for storing a computer program, and the processor is used for calling and running the computer program from the memory, so that the device provided with the chip executes the method in the various possible implementation manners.
It can be understood that the above scenario is merely an example, and does not constitute a limitation on the application scenario of the technical solution provided by the embodiment of the present application, and the technical solution of the present application may also be applied to other scenarios. For example, as one of ordinary skill in the art can know, with the evolution of the system architecture and the appearance of new service scenarios, the technical solution provided by the embodiment of the present application is also applicable to similar technical problems.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The units in the device of the embodiment of the application can be combined, divided and deleted according to actual needs.
In the present application, the same or similar term concept, technical solution and/or application scenario description will be generally described in detail only when first appearing and then repeatedly appearing, and for brevity, the description will not be repeated generally, and in understanding the present application technical solution and the like, reference may be made to the previous related detailed description thereof for the same or similar term concept, technical solution and/or application scenario description and the like which are not described in detail later.
In the present application, the descriptions of the embodiments are emphasized, and the details or descriptions of the other embodiments may be referred to.
The technical features of the technical scheme of the application can be arbitrarily combined, and all possible combinations of the technical features in the above embodiment are not described for the sake of brevity, however, as long as there is no contradiction between the combinations of the technical features, the application shall be considered as the scope of the description of the application.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, a controlled terminal, or a network device, etc.) to perform the method of each embodiment of the present application.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). Computer readable storage media can be any available media that can be accessed by a computer or data storage devices, such as servers, data centers, etc., that contain an integration of one or more available media. Usable media may be magnetic media (e.g., floppy disks, storage disks, magnetic tape), optical media (e.g., DVD), or semiconductor media (e.g., solid State Disk (SSD)), among others.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the application, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (6)

1. A thumbnail generation method, the method comprising:
acquiring key frames from acquired image frames in the video recording process;
compressing the key frames according to a preset proportion to form thumbnail images of the key frames;
saving and/or displaying the thumbnail;
the step of acquiring key frames from the acquired image frames comprises:
acquiring an image frame, and acquiring display parameters of the image frame, wherein the display parameters of the image frame comprise at least one of resolution and color values of each pixel point;
when the display parameters meet preset conditions, determining that the image frames meet the preset image standard, configuring the image frames into the key frames, wherein the preset image standard comprises that the resolution is larger than or equal to the preset resolution, and the color value of each pixel point in the image frames is larger than the preset color value;
After the step of acquiring image frames, the method further comprises:
acquiring the current recording time length corresponding to the image frame;
when the current recording time length corresponding to the image frame is greater than or equal to a preset time length, determining that the image frame accords with the preset image standard;
the step of saving the thumbnail includes:
encoding the thumbnail to obtain a thumbnail with a preset picture format;
and storing the thumbnail in the preset picture format in a storage area corresponding to a preset storage path.
2. The method of claim 1, wherein the step of displaying the thumbnail comprises:
when the recording ending operation of the video is detected, acquiring the thumbnail from a storage area corresponding to the preset storage path;
and displaying the thumbnail at the thumbnail display position corresponding to the video.
3. The method of claim 2, wherein the method further comprises:
acquiring image information of the key frame;
and storing the thumbnail of the key frame and the image information of the key frame in a storage area corresponding to the preset storage path in an associated mode, and displaying the image information of the key frame while displaying the thumbnail.
4. The method of claim 1, wherein the method further comprises:
acquiring at least two reference image frames from the acquired image frames in the video recording process;
generating a reference video according to the reference image frame;
and storing the thumbnail of the key frame and the reference video in a storage area corresponding to the preset storage path in an associated mode, and playing the reference video while displaying the thumbnail.
5. A mobile terminal, the mobile terminal comprising: a memory, a processor, wherein the memory has stored thereon a thumbnail generation program which, when executed by the processor, implements the steps of the thumbnail generation method of any of claims 1 to 4.
6. A readable storage medium, characterized in that the readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the thumbnail generation method of any of claims 1 to 4.
CN202110780200.3A 2021-07-09 2021-07-09 Thumbnail generation method, mobile terminal and readable storage medium Active CN113556492B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110780200.3A CN113556492B (en) 2021-07-09 2021-07-09 Thumbnail generation method, mobile terminal and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110780200.3A CN113556492B (en) 2021-07-09 2021-07-09 Thumbnail generation method, mobile terminal and readable storage medium

Publications (2)

Publication Number Publication Date
CN113556492A CN113556492A (en) 2021-10-26
CN113556492B true CN113556492B (en) 2023-10-20

Family

ID=78131492

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110780200.3A Active CN113556492B (en) 2021-07-09 2021-07-09 Thumbnail generation method, mobile terminal and readable storage medium

Country Status (1)

Country Link
CN (1) CN113556492B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114666667A (en) * 2022-03-03 2022-06-24 海宁奕斯伟集成电路设计有限公司 Video key point generation method and device, electronic equipment and storage medium
CN114827714B (en) * 2022-04-11 2023-11-21 咪咕文化科技有限公司 Video fingerprint-based video restoration method, terminal equipment and storage medium
CN114915851A (en) * 2022-05-31 2022-08-16 展讯通信(天津)有限公司 Video recording and playing method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011151605A (en) * 2010-01-21 2011-08-04 Sharp Corp Image creation device, image creation method, and program
CN107452407A (en) * 2017-08-17 2017-12-08 北京达佳互联信息技术有限公司 Storage, display methods and the device and intelligent glasses of video data
CN107465954A (en) * 2014-12-04 2017-12-12 广东欧珀移动通信有限公司 The generation method and Related product of dynamic thumbnail
CN108810622A (en) * 2018-07-09 2018-11-13 腾讯科技(深圳)有限公司 Extracting method, device, computer-readable medium and the electronic equipment of video frame
CN109413350A (en) * 2017-08-18 2019-03-01 深圳市傲冠软件股份有限公司 A kind of remote desktop is recorded a video crucial frame creation method and device
CN110392306A (en) * 2019-07-29 2019-10-29 腾讯科技(深圳)有限公司 A kind of data processing method and equipment
CN110851652A (en) * 2019-11-29 2020-02-28 京东方科技集团股份有限公司 Method and device for assisting in viewing driving record video
CN111131881A (en) * 2019-12-30 2020-05-08 深圳Tcl数字技术有限公司 PVR (personal video recorder) recording method, smart television and computer readable storage medium
CN112004108A (en) * 2020-08-26 2020-11-27 深圳创维-Rgb电子有限公司 Live video recording processing method and device, intelligent terminal and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011151605A (en) * 2010-01-21 2011-08-04 Sharp Corp Image creation device, image creation method, and program
CN107465954A (en) * 2014-12-04 2017-12-12 广东欧珀移动通信有限公司 The generation method and Related product of dynamic thumbnail
CN107452407A (en) * 2017-08-17 2017-12-08 北京达佳互联信息技术有限公司 Storage, display methods and the device and intelligent glasses of video data
CN109413350A (en) * 2017-08-18 2019-03-01 深圳市傲冠软件股份有限公司 A kind of remote desktop is recorded a video crucial frame creation method and device
CN108810622A (en) * 2018-07-09 2018-11-13 腾讯科技(深圳)有限公司 Extracting method, device, computer-readable medium and the electronic equipment of video frame
CN110392306A (en) * 2019-07-29 2019-10-29 腾讯科技(深圳)有限公司 A kind of data processing method and equipment
CN110851652A (en) * 2019-11-29 2020-02-28 京东方科技集团股份有限公司 Method and device for assisting in viewing driving record video
CN111131881A (en) * 2019-12-30 2020-05-08 深圳Tcl数字技术有限公司 PVR (personal video recorder) recording method, smart television and computer readable storage medium
CN112004108A (en) * 2020-08-26 2020-11-27 深圳创维-Rgb电子有限公司 Live video recording processing method and device, intelligent terminal and storage medium

Also Published As

Publication number Publication date
CN113556492A (en) 2021-10-26

Similar Documents

Publication Publication Date Title
CN108900790B (en) Video image processing method, mobile terminal and computer readable storage medium
CN113556492B (en) Thumbnail generation method, mobile terminal and readable storage medium
CN108280136B (en) Multimedia object preview method, equipment and computer readable storage medium
CN110180181B (en) Method and device for capturing wonderful moment video and computer readable storage medium
CN111935402B (en) Picture shooting method, terminal device and computer readable storage medium
CN113542610A (en) Shooting method, mobile terminal and storage medium
CN107743198B (en) Photographing method, terminal and storage medium
CN108260009B (en) Video processing method, mobile terminal and computer readable storage medium
CN113286106B (en) Video recording method, mobile terminal and storage medium
CN113572916B (en) Shooting method, terminal equipment and storage medium
CN113901245A (en) Picture searching method, intelligent terminal and storage medium
CN113779285A (en) Dynamic processing method and device for picture library and computer readable storage medium
CN117157989A (en) Photographing method, mobile terminal and readable storage medium
CN107613236B (en) Audio and video recording method, terminal and storage medium
CN107566745B (en) Shooting method, terminal and computer readable storage medium
CN113194227A (en) Processing method, mobile terminal and storage medium
CN115412672B (en) Shooting display method, intelligent terminal and readable storage medium
CN113596350B (en) Image processing method, mobile terminal and readable storage medium
CN113840062B (en) Camera control method, mobile terminal and readable storage medium
WO2023097446A1 (en) Video processing method, smart terminal, and storage medium
CN114040183B (en) Image processing method, mobile terminal and storage medium
CN117221649A (en) Video processing method, intelligent terminal and storage medium
CN116483500A (en) Album display method, intelligent terminal and storage medium
CN116594540A (en) Processing method, intelligent terminal and storage medium
CN116012881A (en) Image processing method, intelligent terminal and storage medium

Legal Events

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