[go: up one dir, main page]

CN109819188A - Video processing method and terminal device - Google Patents

Video processing method and terminal device Download PDF

Info

Publication number
CN109819188A
CN109819188A CN201910092667.1A CN201910092667A CN109819188A CN 109819188 A CN109819188 A CN 109819188A CN 201910092667 A CN201910092667 A CN 201910092667A CN 109819188 A CN109819188 A CN 109819188A
Authority
CN
China
Prior art keywords
video
frames
video images
input
definition
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.)
Granted
Application number
CN201910092667.1A
Other languages
Chinese (zh)
Other versions
CN109819188B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201910092667.1A priority Critical patent/CN109819188B/en
Publication of CN109819188A publication Critical patent/CN109819188A/en
Application granted granted Critical
Publication of CN109819188B publication Critical patent/CN109819188B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Devices (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The invention discloses a video processing method and terminal equipment, wherein the method comprises the following steps: recording the depth of field information of N frames of video images collected by a camera in the video recording process; after the video recording is finished, outputting a first video and receiving a first input of a user to the first video; responding to the first input, and adjusting the definition of M frames of video images in the N frames of video images according to the recorded depth-of-field information of the N frames of video images to obtain the adjusted M frames of video images; generating a target video according to the adjusted M frames of video images; wherein N, M is a positive integer, N is more than or equal to M. The method of the embodiment of the invention can adjust the definition of the recorded video and meet the requirements of users.

Description

The processing method and terminal device of video
Technical field
The present embodiments relate to field of image processing more particularly to the processing methods and terminal device of a kind of video.
Background technique
Camera function is one of the major function of terminal (for example, mobile phone), and it is interested that user can use terminal recording Picture generates video and is saved in terminal to be watched.User can only adjust focusing position during recorded video at present It sets, or keeps picture clear by terminal continuous autofocus, once user can not be again in video after video record is completed Picture adjust focus.
Multimedia Encoder carries out real-time coding to data recording during recorded video, by the collected recording number of camera It is compressed into reference format video file, such as MP4, AVI format etc. according to frame coding, after generating these video files, can not be compiled again Collect the focus of picture.
In practical applications, because user can not adjust focus to the video recorded, cause occurring having recorded There is part picture is unintelligible or user is desired to be edited the video recorded to show with artistry in video Video when, be unable to satisfy the demand of user.
Summary of the invention
The embodiment of the present invention provides the processing method and terminal device of a kind of video, with solve in the prior art because user without Method adjusts focus to the video recorded, leads to have in the video recorded that part picture is unintelligible or user wants When being edited to the video recorded to show the video with artistry, it is unable to satisfy the demand of user Problem.
In order to solve the above-mentioned technical problem, the present invention is implemented as follows:
In a first aspect, a kind of processing method of video is provided, this method comprises:
In video process, the depth of view information of the N frame video image of recording camera acquisition;
After video recording, the first video is exported;
Receive first input of the user to first video;
In response to first input, according to the depth of view information of the N frame video image recorded, the N frame video is adjusted The clarity of M frame video image in image, the M frame image after being adjusted;
According to the M frame image adjusted, target video is generated;
Wherein, N, M are positive integer, N >=M.
Second aspect provides a kind of terminal device, which includes:
Processing module is used in video process, the depth of view information of the N frame video image of recording camera acquisition;
Display module, for exporting the first video after video recording;
Receiving module, for being adjusted in response to first input according to the depth of view information of the N frame video image recorded The clarity of M frame video image in the whole N frame video image, the N frame image after being adjusted;
The processing module is also used to generate target video according to the M frame image adjusted;
Wherein, N, M are positive integer, N >=M.
The third aspect provides a kind of terminal device, which includes processor, memory and be stored in described deposit On reservoir and the computer program that can run on the processor, the computer program are realized when being executed by the processor The step of method as described in relation to the first aspect.
Fourth aspect provides a kind of computer readable storage medium, which is characterized in that the computer-readable storage medium Computer program is stored in matter, and the step of method as described in relation to the first aspect is realized when the computer program is executed by processor Suddenly.
It in embodiments of the present invention, can be using the corresponding depth of view information of video image in video, to the view recorded The clarity of video image in frequency is adjusted, in this way, having part picture unintelligible in the video recorded or using It, can be according to user couple when family is wanted to edit the video recorded to show the video with artistry The input of video, adjusts the clarity of video image, and then meets the needs of users.
Detailed description of the invention
Fig. 1 is the flow chart of the processing method of the video of one embodiment of the present of invention.
Fig. 2 is a kind of schematic diagram of display interface of the embodiment of the present invention.
Fig. 3 is the schematic diagram of the display interface of another embodiment of the present invention.
Fig. 4 is the signal of the identification information of video image according to an embodiment of the present invention and the corresponding relationship of depth of view information Figure.
Fig. 5 is the flow chart of the processing method of the video of a specific embodiment according to the present invention.
Fig. 6 is the structural schematic diagram of the terminal device of one embodiment of the present of invention.
Fig. 7 is the structural schematic diagram of the terminal device of another embodiment of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Fig. 1 is the flow chart of the processing method for the video that one embodiment of the present of invention provides.Video as shown in Figure 1 Processing method may comprise steps of:
Step 102, in video process, recording camera acquisition N frame video image depth of view information.
Optionally, in a step 102, it is recorded a video by dual camera.In this case, terminal device receives use After camera instruction is opened at family, into camera preview working interface, if receiving user again opens double camera instructions, double camera shootings Head is powered on enabled in order and is initialized, and obtains the depth of view information in the optical information and picture in picture, and by optical information It is converted into handling digital signal after digital signal, obtains the data for user's preview, this preview data is shown On the screen of terminal device, the preview of camera is realized.Preview screen shows the collected image information of main camera, while into The recording of row picture and the acquisition of acoustic information, and real-time perfoming coding work generate video file (for example, generating default Video recording MP4 video file).
Step 104, after video recording, export the first video.Step 106 receives user to the of first video One input.
It is understood that in step 106, user the first input of the first video is determined for terminal device need by The clarity that video image is adjusted to.
Optionally, as illustrated in FIG. 2, before step 106, in the output interface of the first video, show that aperture is adjusted Control;It is corresponding, in step 106, receive first input of the user to the first video, comprising: receive user to aperture tune Save the first input of control.Thus, it is possible to realize based on the relationship between f-number and clarity, determines and need to be adjusted to clear Clear degree, it is easy to operate, the realization of terminal device can be simplified.
Optionally, in some embodiments, before step 106, further includes: in the output interface of the first video, display Prompt information, prompt information are the adjustable video of clarity for prompting the first video.Thus, it is possible to facilitate which user knows The clarity of a little videos is adjustable, user-friendly.
For example, shown in Fig. 3, display " video recording focusing " icon in the display interface, user when seeing the icon, It can know that current video is the adjustable video of clarity, and then clarity adjusting can be carried out according to their needs.For example, User clicks " video recording focusing " icon, can pop up aperture on display interface at this time and adjust control, user can be by adjusting light Size is enclosed, realizes the adjustment of image sharpness.
Step 108, in response to first input, according to the depth of view information of the N frame video image recorded, described in adjustment The clarity of M frame video image in N frame video image, the M frame image after being adjusted.
Specifically, in some embodiments, the first input is the first input that user adjusts control to aperture.In this feelings Under condition, in adjustment N frame video image before the clarity of M frame video image, method shown in FIG. 1 further include: determining and institute State the corresponding f-number of the first input;According to the f-number, target sharpness is determined.It is corresponding, it in step 108, will The clarity of the M frame video image is adjusted to the target sharpness.Thus, it is possible to which user is made to pass through up and down adjustment aperture Size realizes the adjustment of the clarity of video image, facilitates the operation of user.
Further, the depth of view information associated storage of the identification information of N frame video image and N frame video image.This In the case of, the clarity of M frame video image is adjusted to target sharpness, comprising: determining every frame with M frame video image regards The associated depth of view information of the identification information of frequency image;According to the depth of view information of every frame video image, by the M frame video figure The clarity of picture is adjusted to the target sharpness.By the way that the depth of view information of the identification information of video image and video image is closed Connection storage can be convenient for carrying out video image searching the corresponding depth of view information of video image when clarity adjustment.
For example, the depth of view information of the identification information of video image and video image is stored in a look-up table. Look-up table can be as shown in figure 4, Frame 0, Frame 1, Frame 2, Frame 3 and Frame 4 in Fig. 4 be video image Identification information, Depth 0, Depth 1, Depth 2, Depth 3 and Depth 4 be respectively it is corresponding with Frame0-Frame4 Depth of view information.
Optionally, in some embodiments, it is also wrapped before the clarity of N frame video image in adjustment M frame video image It includes: showing the N frame video image frame by frame;Receive second input of the user to the M frame video image;In response to described second Input, determines target position to be adjusted in the M frame video image;And then adjust M frame video in N frame video image it is clear Degree, comprising: the clarity of the image of the target location in adjustment M frame video image.
That is, video image can be played frame by frame, user can be selected on the display interface of video image wait adjust The position of whole clarity.Thus, it is possible to make adjustment of the user to the different location progress clarity of the video image of different frame, It realizes the unrestricted choice of the position to be adjusted in each frame video image, improves user experience.
Further, in the case where playing video image frame by frame, user can raise in the display interface of video image Whole the first input that control is adjusted to aperture.For example, being directed to different video images, f-number is adjusted to different values, by This may be implemented different video Image Adjusting to different clarity generating more interesting and artistry video image, Further increase user experience.
Above-mentioned broadcasting frame by frame, can be and play according to prefixed time interval, be also possible to receiving user's input touching Broadcast plays next frame video image when putting down the input of a frame video image.
Step 110, according to the M frame video image adjusted, target video is generated;Wherein, N, M be positive integer, N >= M。
It specifically, can be by the M frame video figure before being adjusted in M frame video image adjusted the first video of corresponding replacement Picture generates target video.
Certainly, in practical applications, target only by M frame video image adjusted, can also be generated according to user demand Video.
The embodiment of the present invention, can be using the corresponding depth of view information of video image in video, in the video recorded The clarity of video image be adjusted.In this way, having in the video recorded, part picture is unintelligible or user thinks It, can be according to user to video when being edited to the video recorded to show the video with artistry Input, adjust the clarity of image, and then meet the needs of users.
Fig. 5 is the flow chart of the processing method of the video of a specific embodiment of the invention.Video as shown in Figure 5 Processing method may comprise steps of:
Step 201, prompt user video is the adjustable video of clarity.
For example, user can browse the video for checking recording in photograph album, if it is double videos for shooting with video-corder system, then pre- It lookes at the suitable position (for example, upper right corner) of figure, marks icon or signal language, prompt user that can edit video file again Depth of view information realizes the adjusting of the clarity of video image.
Step 202, the input for responding user, into weight edit pattern.
For example, user clicks " video recording focusing " icon in Fig. 3, terminal device carries out video image weight edit pattern.
Step 203, the picture for needing to readjust clarity is determined.
User can click the position for arbitrarily wanting to adjust clarity in preview screen, pop up aperture in preview interface later Adjust control.
Step 204, it determines that user adjusts the corresponding f-number of input of control to aperture, video figure is adjusted based on f-number The clarity of picture.
User can realize the adjusting of aperture size by the input for adjusting control to aperture, and terminal device is big according to aperture The small determining clarity for needing to be adjusted to, is later handled the depth of view information of the video image of record, and user is needed weight Preview effect simulation at the new position for adjusting clarity comes out.
Terminal device can play at a slow speed video image frame by frame automatically, and user can be in the view for needing to carry out clarity adjustment Slide aperture on frequency image and adjust control, or click and need to adjust the position of clarity on video image, terminal device according to The size of f-number, the image at position clicked to user carry out the adjustment of clarity.
Step 205, after editing frame by frame, confirmation is saved.
After the completion of user edits, the video file of generation is saved, completion, which is rearranged, collects.The video file generated before can be by Covering, user obtain oneself customized edited video.
Fig. 6 is the structural schematic diagram of the terminal device of one embodiment of the present of invention.As shown in fig. 6, terminal device includes:
Processing module 11 is used in video process, the depth of view information of the N frame video image of recording camera acquisition;
Display module 12, for exporting the first video after video recording;
Receiving module 13, in response to first input, according to the depth of view information of the N frame video image recorded, The clarity for adjusting M frame video image in the N frame video image, the N frame image after being adjusted;
The processing module 11 is also used to generate target video according to the M frame image adjusted;
Wherein, N, M are positive integer, N >=M.
The terminal device of the embodiment of the present invention, can be using the corresponding depth of view information of video image in video, to having recorded The clarity of video image in the video of system is adjusted.In this way, there is part picture unintelligible in the video recorded It, being capable of basis or when user wants to edit the video recorded to show the video with artistry Input of the user to video, adjusts the clarity of video image, and then meets the needs of users.
In embodiments of the present invention, optionally, the display module 12 is also used to:
Before the receiving module receives user to the first input of first video, in the defeated of first video Interface out, display aperture adjust control;
Wherein, the receiving module 13 is specifically used for:
Receive the first input that the user adjusts control to the aperture.
In embodiments of the present invention, optionally, the processing module 11 is also used to:
In adjusting the N frame video image before the clarity of M frame video image, determination is corresponding with the first input is told F-number;
According to the f-number, target sharpness is determined;
Wherein, in adjusting the N frame video image in terms of the clarity of M frame video image, the processing module 11 has Body is used for:
The clarity of the N frame video image is adjusted to the target sharpness.
In embodiments of the present invention, optionally, the processing module 11 is specifically used for:
By the depth of view information associated storage of the identification information of the N frame video image and the N frame video image;
The determining associated depth of view information of identification information with every frame video image in the M frame video image;
According to the depth of view information of every frame video image, the clarity of the M frame video image is adjusted to the mesh Mark clarity.
In embodiments of the present invention, optionally, the display module 12 is specifically used for:
It is adjusted in the M frame video image before the clarity of N frame video image in the processing module, shows institute frame by frame State N frame video image;
The receiving module is also used to: receiving second input of the user to the M frame video image;
The processing module 11 is specifically used for: in response to second input, determining to be adjusted in the M frame video image Target position;
Adjust the clarity of the image of the target location in the M frame video image.
In embodiments of the present invention, optionally, the display module 12 is also used to:
Before the receiving module receives user to the first input of first video, in the defeated of first video Interface out, display reminding information, the prompt information are the adjustable video of clarity for prompting first video.
Terminal device provided in an embodiment of the present invention can be realized terminal device in the embodiment of the method for Fig. 1 to Fig. 4 and realize Each process, to avoid repeating, which is not described herein again.
Fig. 7 is the hardware structural diagram of the terminal device equipment of another embodiment of the present invention, which includes But be not limited to: radio frequency unit 701, network module 702, audio output unit 703, input unit 704, sensor 705, display are single The components such as member 706, user input unit 707, interface unit 708, memory 709, processor 710 and power supply 711.Ability Field technique personnel are appreciated that terminal device structure shown in Fig. 7 does not constitute the restriction to terminal device, and terminal device can To include perhaps combining certain components or different component layouts than illustrating more or fewer components.Implement in the present invention In example, terminal device includes but is not limited to mobile phone, tablet computer, laptop, palm PC, car-mounted terminal, wearable sets Standby and pedometer etc..
Wherein, processor 710 are used for:
In video process, the depth of view information of the N frame video image of recording camera acquisition;
After video recording, the first video is exported;
Receive first input of the user to first video;
In response to first input, according to the depth of view information of the N frame video image recorded, the N frame video is adjusted The clarity of M frame video image in image, the M frame image after being adjusted;
According to the M frame video image adjusted, target video is generated;
Wherein, N, M are positive integer, N >=M.
Terminal device provided in an embodiment of the present invention, can the corresponding depth of view information of video image in video, to having recorded The clarity of video image in the video of system is adjusted, in this way, there is part picture unintelligible in the video recorded It, being capable of basis or when user wants to edit the video recorded to show the video with artistry Input of the user to video, adjusts the clarity of image, and then can satisfy the demand of user.
It should be understood that the embodiment of the present invention in, radio frequency unit 701 can be used for receiving and sending messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, to processor 710 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 701 includes but is not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 701 can also by wireless communication system and network and other set Standby communication.
Terminal device provides wireless broadband internet by network module 702 for user and accesses, and such as user is helped to receive It sends e-mails, browse webpage and access streaming video etc..
Audio output unit 703 can be received by radio frequency unit 701 or network module 702 or in memory 709 The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 703 can also provide and end The relevant audio output of specific function that end equipment 700 executes is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 703 includes loudspeaker, buzzer and receiver etc..
Input unit 704 is for receiving audio or video signal.Input unit 704 may include graphics processor (Graphics Processing Unit, GPU) 7041 and microphone 7042, graphics processor 7041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 706.Through graphics processor 7041, treated that picture frame can be deposited Storage is sent in memory 709 (or other storage mediums) or via radio frequency unit 701 or network module 702.Mike Wind 7042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be The format output that mobile communication base station can be sent to via radio frequency unit 701 is converted in the case where telephone calling model.
Terminal device 700 further includes at least one sensor 705, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 7061, and proximity sensor can close when terminal device 700 is moved in one's ear Display panel 7061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify terminal device posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes Sensor 705 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 706 is for showing information input by user or being supplied to the information of user.Display unit 706 can wrap Display panel 7061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 7061.
User input unit 707 can be used for receiving the number or character information of input, and generate the use with terminal device Family setting and the related key signals input of function control.Specifically, user input unit 707 include touch panel 7071 and Other input equipments 7072.Touch panel 7071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 7071 or in touch panel 7071 Neighbouring operation).Touch panel 7071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects touch operation bring signal, transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 710, receiving area It manages the order that device 710 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Seed type realizes touch panel 7071.In addition to touch panel 7071, user input unit 707 can also include other input equipments 7072.Specifically, other input equipments 7072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 7071 can be covered on display panel 7061, when touch panel 7071 is detected at it On or near touch operation after, send processor 710 to determine the type of touch event, be followed by subsequent processing device 710 according to touching The type for touching event provides corresponding visual output on display panel 7061.Although in Fig. 7, touch panel 7071 and display Panel 7061 is the function that outputs and inputs of realizing terminal device as two independent components, but in some embodiments In, can be integrated by touch panel 7071 and display panel 7061 and realize the function that outputs and inputs of terminal device, it is specific this Place is without limitation.
Interface unit 708 is the interface that external device (ED) is connect with terminal device 700.For example, external device (ED) may include having Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 708 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and By one or more elements that the input received is transferred in terminal device 700 or can be used in 700 He of terminal device Data are transmitted between external device (ED).
Memory 709 can be used for storing software program and various data.Memory 709 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 709 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 710 is the control centre of terminal device, utilizes each of various interfaces and the entire terminal device of connection A part by running or execute the software program and/or module that are stored in memory 709, and calls and is stored in storage Data in device 709 execute the various functions and processing data of terminal device, to carry out integral monitoring to terminal device.Place Managing device 710 may include one or more processing units;Preferably, processor 710 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 710.
Terminal device 700 can also include the power supply 711 (such as battery) powered to all parts, it is preferred that power supply 711 Can be logically contiguous by power-supply management system and processor 710, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
In addition, terminal device 700 includes some unshowned functional modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of terminal device, including processor 710, and memory 709 is stored in On memory 709 and the computer program that can run on the processor 710, the computer program are executed by processor 710 Each process of the processing method embodiment of the above-mentioned video of Shi Shixian, and identical technical effect can be reached, to avoid repeating, this In repeat no more.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize each process of the processing method embodiment of above-mentioned video when being executed by processor, and Identical technical effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as Read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic or disk etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form belongs within protection of the invention.

Claims (14)

1.一种视频的处理方法,其特征在于,包括:1. a processing method of video, is characterized in that, comprises: 在录像过程中,记录摄像头采集的N帧视频图像的景深信息;During the recording process, record the depth of field information of N frames of video images collected by the camera; 在录像结束后,输出第一视频;After the video is finished, output the first video; 接收用户对所述第一视频的第一输入;receiving a first input from a user to the first video; 响应于所述第一输入,根据已记录的N帧视频图像的景深信息,调整所述N帧视频图像中M帧视频图像的清晰度,得到调整后的M帧图像;In response to the first input, according to the depth of field information of the recorded N frames of video images, adjust the definition of the M frames of video images in the N frames of video images to obtain the adjusted M frames of images; 根据所述调整后的M帧视频图像,生成目标视频;Generate a target video according to the adjusted M frames of video images; 其中,N、M为正整数,N≥M。Among them, N and M are positive integers, and N≥M. 2.根据权利要求1所述的方法,其特征在于,所述接收用户对所述第一视频的第一输入之前,还包括:2. The method according to claim 1, wherein before receiving the first input of the first video from the user, the method further comprises: 在所述第一视频的输出界面,显示光圈调节控件;On the output interface of the first video, display an aperture adjustment control; 所述接收用户对所述第一视频的第一输入,包括:The receiving the first input from the user to the first video includes: 接收所述用户对所述光圈调节控件的第一输入。A first input from the user to the aperture adjustment control is received. 3.根据权利要求2所述的方法,其特征在于,所述调整所述N帧视频图像中M帧视频图像的清晰度之前,还包括:3. The method according to claim 2, wherein before adjusting the definition of M frames of video images in the N frames of video images, the method further comprises: 确定与所述第一输入对应的光圈值;determining an aperture value corresponding to the first input; 根据所述光圈值,确定目标清晰度;According to the aperture value, determine the target sharpness; 其中,所述调整所述N帧视频图像中M帧视频图像的清晰度,包括:Wherein, the adjusting the definition of M frames of video images in the N frames of video images includes: 将所述M帧视频图像的清晰度调整为所述目标清晰度。The definition of the M frames of video images is adjusted to the target definition. 4.根据权利要求3所述的方法,其特征在于,所述记录摄像头采集的N帧视频图像的景深信息,包括:4. The method according to claim 3, wherein the depth of field information of the N frames of video images collected by the recording camera comprises: 将所述N帧视频图像的标识信息和所述N帧视频图像的景深信息关联存储;Associate and store the identification information of the N frames of video images and the depth of field information of the N frames of video images; 其中,所述将所述M帧视频图像的清晰度调整为所述目标清晰度,包括:Wherein, the adjusting the definition of the M frames of video images to the target definition includes: 确定与所述M帧视频图像中的每帧视频图像的标识信息关联的景深信息;determining the depth of field information associated with the identification information of each frame of video images in the M frames of video images; 根据所述每帧视频图像的景深信息,将所述M帧视频图像的清晰度调整为所述目标清晰度。According to the depth information of each frame of video images, the definition of the M frames of video images is adjusted to the target definition. 5.根据权利要求1至4中任一项所述的方法,其特征在于,在调整所述M帧视频图像中N帧视频图像的清晰度之前,还包括:5. The method according to any one of claims 1 to 4, wherein before adjusting the definition of N frames of video images in the M frames of video images, the method further comprises: 逐帧显示所述N帧视频图像;displaying the N frames of video images frame by frame; 接收用户对所述M帧视频图像的第二输入;receiving a second input from the user to the M frames of video images; 响应于所述第二输入,确定所述M帧视频图像中待调整的目标位置;In response to the second input, determining the target position to be adjusted in the M frames of video images; 所述调整所述N帧视频图像中M帧视频图像的清晰度,包括:The adjusting the definition of M frames of video images in the N frames of video images includes: 调整所述M帧视频图像中的所述目标位置处的图像的清晰度。Adjusting the sharpness of the image at the target position in the M frames of video images. 6.根据权利要求1至4中任一项所述的方法,其特征在于,在接收用户对所述第一视频的第一输入之前,还包括:6. The method according to any one of claims 1 to 4, wherein before receiving the first input of the first video from the user, the method further comprises: 在所述第一视频的输出界面,显示提示信息,所述提示信息用于提示所述第一视频为清晰度可调节的视频。On the output interface of the first video, prompt information is displayed, where the prompt information is used to prompt that the first video is a video with adjustable definition. 7.一种终端设备,其特征在于,包括:7. A terminal device, comprising: 处理模块,用于在录像过程中,记录摄像头采集的N帧视频图像的景深信息;The processing module is used to record the depth of field information of N frames of video images collected by the camera during the recording process; 显示模块,用于在录像结束后,输出第一视频;The display module is used for outputting the first video after the video recording ends; 接收模块,用于响应于所述第一输入,根据已记录的N帧视频图像的景深信息,调整所述N帧视频图像中M帧视频图像的清晰度,得到调整后的N帧图像;A receiving module, configured to adjust the clarity of M frames of video images in the N frames of video images according to the depth of field information of the N frames of video images recorded in response to the first input, to obtain the adjusted N frames of images; 所述处理模块,还用于根据所述调整后的M帧图像,生成目标视频;The processing module is further configured to generate a target video according to the adjusted M frames of images; 其中,N、M为正整数,N≥M。Among them, N and M are positive integers, and N≥M. 8.根据权利要求7所述的终端设备,其特征在于,所述显示模块还用于:8. The terminal device according to claim 7, wherein the display module is further used for: 在所述接收模块接收用户对所述第一视频的第一输入之前,在所述第一视频的输出界面,显示光圈调节控件;Before the receiving module receives the first input of the first video from the user, display an aperture adjustment control on the output interface of the first video; 其中,所述接收模块具体用于:Wherein, the receiving module is specifically used for: 接收所述用户对所述光圈调节控件的第一输入。A first input from the user to the aperture adjustment control is received. 9.根据权利要求8所述的终端设备,其特征在于,所述处理模块还用于:9. The terminal device according to claim 8, wherein the processing module is further configured to: 在调整所述N帧视频图像中M帧视频图像的清晰度之前,确定与所诉第一输入对应的光圈值;Before adjusting the definition of M frames of video images in the N frames of video images, determine the aperture value corresponding to the first input; 根据所述光圈值,确定目标清晰度;According to the aperture value, determine the target sharpness; 其中,在调整所述N帧视频图像中M帧视频图像的清晰度方面,所述处理模块具体用于:Wherein, in terms of adjusting the definition of M frames of video images in the N frames of video images, the processing module is specifically used for: 将所述N帧视频图像的清晰度调整为所述目标清晰度。The definition of the N frames of video images is adjusted to the target definition. 10.根据权利要求9所述的终端设备,其特征在于,所述处理模块具体用于:10. The terminal device according to claim 9, wherein the processing module is specifically configured to: 将所述N帧视频图像的标识信息和所述N帧视频图像的景深信息关联存储;Associate and store the identification information of the N frames of video images and the depth of field information of the N frames of video images; 确定与所述M帧视频图像中的每帧视频图像的标识信息关联的景深信息;determining the depth of field information associated with the identification information of each frame of video images in the M frames of video images; 根据所述每帧视频图像的景深信息,将所述M帧视频图像的清晰度调整为所述目标清晰度。According to the depth information of each frame of video images, the definition of the M frames of video images is adjusted to the target definition. 11.根据权利要求7至10中任一项所述的终端设备,其特征在于,所述显示模块具体用于:11. The terminal device according to any one of claims 7 to 10, wherein the display module is specifically used for: 在所述处理模块调整所述M帧视频图像中N帧视频图像的清晰度之前,逐帧显示所述N帧视频图像;Before the processing module adjusts the definition of N frames of video images in the M frames of video images, displaying the N frames of video images frame by frame; 所述接收模块还用于:接收用户对所述M帧视频图像的第二输入;The receiving module is further configured to: receive the second input of the M frames of video images by the user; 所述处理模块具体用于:响应于所述第二输入,确定所述M帧视频图像中待调整的目标位置;The processing module is specifically configured to: in response to the second input, determine the target position to be adjusted in the M frames of video images; 调整所述M帧视频图像中的所述目标位置处的图像的清晰度。Adjusting the sharpness of the image at the target position in the M frames of video images. 12.根据权利要求7至10中任一项所述的终端设备,其特征在于,所述显示模块还用于:12. The terminal device according to any one of claims 7 to 10, wherein the display module is further configured to: 在所述接收模块接收用户对所述第一视频的第一输入之前,在所述第一视频的输出界面,显示提示信息,所述提示信息用于提示所述第一视频为清晰度可调节的视频。Before the receiving module receives the user's first input to the first video, prompt information is displayed on the output interface of the first video, where the prompt information is used to prompt that the first video is adjustable in definition 's video. 13.一种移动终端,其特征在于,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至6中任一项所述的方法的步骤。13. A mobile terminal, comprising: a memory, a processor, and a computer program stored on the memory and running on the processor, the computer program being executed by the processor to achieve the following: The steps of the method of any one of claims 1 to 6. 14.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至6中任一项所述的方法的步骤。14. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program according to any one of claims 1 to 6 is implemented. steps of the method.
CN201910092667.1A 2019-01-30 2019-01-30 Video processing method and terminal equipment Active CN109819188B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910092667.1A CN109819188B (en) 2019-01-30 2019-01-30 Video processing method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910092667.1A CN109819188B (en) 2019-01-30 2019-01-30 Video processing method and terminal equipment

Publications (2)

Publication Number Publication Date
CN109819188A true CN109819188A (en) 2019-05-28
CN109819188B CN109819188B (en) 2022-02-08

Family

ID=66605821

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910092667.1A Active CN109819188B (en) 2019-01-30 2019-01-30 Video processing method and terminal equipment

Country Status (1)

Country Link
CN (1) CN109819188B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112492212A (en) * 2020-12-02 2021-03-12 维沃移动通信有限公司 Photographing method and device, electronic equipment and storage medium
CN113010738A (en) * 2021-02-08 2021-06-22 维沃移动通信(杭州)有限公司 Video processing method and device, electronic equipment and readable storage medium
CN114237800A (en) * 2021-12-21 2022-03-25 维沃移动通信有限公司 File processing method, file processing device, electronic device and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070024738A1 (en) * 2005-07-29 2007-02-01 Kunihiko Kanai Image capturing apparatus
CN103763477A (en) * 2014-02-21 2014-04-30 上海果壳电子有限公司 Double-camera after-shooting focusing imaging device and method
US8799167B2 (en) * 2010-07-13 2014-08-05 Tec Solutions, Inc. Biometric authentication system and biometric sensor configured for single user authentication
US20150185473A1 (en) * 2013-12-26 2015-07-02 Canon Kabushiki Kaisha Scanning optical system and image forming apparatus including the same
US20160044234A1 (en) * 2014-08-11 2016-02-11 Acer Incorporated Image capturing device and auto-focus compensation method thereof
CN106534619A (en) * 2016-11-29 2017-03-22 努比亚技术有限公司 Method and apparatus for adjusting focusing area, and terminal
CN107454332A (en) * 2017-08-28 2017-12-08 厦门美图之家科技有限公司 Image processing method, device and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070024738A1 (en) * 2005-07-29 2007-02-01 Kunihiko Kanai Image capturing apparatus
US8799167B2 (en) * 2010-07-13 2014-08-05 Tec Solutions, Inc. Biometric authentication system and biometric sensor configured for single user authentication
US20150185473A1 (en) * 2013-12-26 2015-07-02 Canon Kabushiki Kaisha Scanning optical system and image forming apparatus including the same
CN103763477A (en) * 2014-02-21 2014-04-30 上海果壳电子有限公司 Double-camera after-shooting focusing imaging device and method
US20160044234A1 (en) * 2014-08-11 2016-02-11 Acer Incorporated Image capturing device and auto-focus compensation method thereof
CN106534619A (en) * 2016-11-29 2017-03-22 努比亚技术有限公司 Method and apparatus for adjusting focusing area, and terminal
CN107454332A (en) * 2017-08-28 2017-12-08 厦门美图之家科技有限公司 Image processing method, device and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
华为: "华为nova 2s手机中相机的大光圈特效", 《华为NOVA 2S手机 大光圈特效》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112492212A (en) * 2020-12-02 2021-03-12 维沃移动通信有限公司 Photographing method and device, electronic equipment and storage medium
CN113010738A (en) * 2021-02-08 2021-06-22 维沃移动通信(杭州)有限公司 Video processing method and device, electronic equipment and readable storage medium
CN113010738B (en) * 2021-02-08 2024-01-30 维沃移动通信(杭州)有限公司 Video processing method, device, electronic equipment and readable storage medium
CN114237800A (en) * 2021-12-21 2022-03-25 维沃移动通信有限公司 File processing method, file processing device, electronic device and medium
CN114237800B (en) * 2021-12-21 2025-10-21 维沃移动通信有限公司 File processing method, file processing device, electronic equipment, and medium

Also Published As

Publication number Publication date
CN109819188B (en) 2022-02-08

Similar Documents

Publication Publication Date Title
CN108762640A (en) A display method and terminal for barrage information
CN109151546A (en) A kind of method for processing video frequency, terminal and computer readable storage medium
CN109743498A (en) A kind of shooting parameter adjustment method and terminal device
CN109461117A (en) A kind of image processing method and mobile terminal
CN108989672A (en) A kind of image pickup method and mobile terminal
CN108920239A (en) A kind of long screenshotss method and mobile terminal
CN109819171A (en) A kind of video capture method and terminal device
CN109102555A (en) A kind of image edit method and terminal
CN109151367A (en) A kind of video call method and terminal device
CN108924412A (en) A kind of image pickup method and terminal device
CN109803087A (en) An image generation method and terminal device
CN109710349A (en) Screen capture method and mobile terminal
CN109120800A (en) A kind of application icon method of adjustment and mobile terminal
CN108984082A (en) A kind of image display method and mobile terminal
CN108898555A (en) An image processing method and terminal equipment
CN109922294A (en) A kind of method for processing video frequency and mobile terminal
CN109814777A (en) Display theme setting method and mobile terminal
CN109862172A (en) A method and terminal for adjusting screen parameters
CN108763540A (en) A kind of file browsing method and terminal
CN109819188A (en) Video processing method and terminal device
CN107959755B (en) Photographing method, mobile terminal and computer readable storage medium
CN109660872A (en) A kind of method of adjustment and terminal of multimedia progress
CN109816759A (en) A kind of expression generation method and device
CN108924035A (en) A kind of sharing files method and terminal
CN110022445A (en) A kind of content outputting method and terminal device

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