CN108109186A - A kind of video file processing method, device and mobile terminal - Google Patents
A kind of video file processing method, device and mobile terminal Download PDFInfo
- Publication number
- CN108109186A CN108109186A CN201711241910.9A CN201711241910A CN108109186A CN 108109186 A CN108109186 A CN 108109186A CN 201711241910 A CN201711241910 A CN 201711241910A CN 108109186 A CN108109186 A CN 108109186A
- Authority
- CN
- China
- Prior art keywords
- pixel region
- reference picture
- target pixel
- video file
- adjusted
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/60—Editing figures and text; Combining figures or text
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0483—Interaction with page-structured environments, e.g. book metaphor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04842—Selection of displayed objects or displayed text elements
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Telephone Function (AREA)
Abstract
An embodiment of the present invention provides a kind of video file processing method, device and mobile terminal, wherein the described method includes:Obtain location information of the target pixel region in the reference picture of video file;According to the location information, position of the target pixel region in the non-reference picture in addition to the reference picture of the video file is adjusted, and according to the position relationship between the associated pixel region in the target pixel region and the non-reference picture in addition to the target pixel region, position of the associated pixel region in the non-reference picture is adjusted.The embodiment of the present invention is by adjusting target pixel region and the position in associated pixel region, so that position of the target pixel region in video file keeps opposing stationary, clarity when video file plays can be promoted, user is contributed to clearly to watch target pixel region.
Description
Technical field
The present invention relates to technical field of mobile terminals, more particularly to a kind of method for processing video frequency, device and mobile terminal.
Background technology
With the continuous promotion of camera pixel in mobile terminal, mobile terminal captured image is substantially instead of traditional phase
Machine carries out video recording by the camera of mobile terminal and has become a high spectrum activity, and user can be in a manner of recorded video
Record life.
The object recorded during video record is mostly dynamic, such as:User is recorded by mobile terminal recording function
One section videos of the friend A in jump.In the video of recording, meadow as shown in Figure 1 is static, and personage A is movement.With
During family viewing video, it can need exist for:It is only intended to see clearly the face of the personage A in video, without concern in video
Other scenes (such as meadow), but people ceaselessly jumps in video, and user wants to see the face of the personage A in movement clearly,
Sight can also cause user that can not concentrate and focus on personage A, influence the viewing experience of user with moving up and down.
The content of the invention
The embodiment of the present invention provides a kind of method for processing video frequency, device and mobile terminal, influences to use to solve the prior art
The problem of viewing experience at family.
In order to solve the above-mentioned technical problem, the present invention is realized in:
In a first aspect, a kind of video file processing method is provided, the described method includes:Obtain target pixel region regarding
Location information in the reference picture of frequency file;According to the location information, to the target pixel region in video text
Position in the non-reference picture in addition to the reference picture of part is adjusted, and according to the target pixel region and institute
The position relationship between the associated pixel region in non-reference picture in addition to the target pixel region is stated, to the association picture
Position of the plain region in the non-reference picture is adjusted.
Second aspect provides a kind of video file processing unit, including:Acquisition module, for obtaining object pixel area
Location information of the domain in the reference picture of video file;Module is adjusted, for according to the location information, to the target picture
Position of the plain region in the non-reference picture in addition to the reference picture of the video file is adjusted, and according to institute
State the position between the associated pixel region in target pixel region and the non-reference picture in addition to the target pixel region
Relation is put, position of the associated pixel region in the non-reference picture is adjusted.
The third aspect provides a kind of mobile terminal, including:It memory, processor and is stored on the memory simultaneously
The computer program that can be run on the processor realizes that the present invention is real when the computer program is performed by the processor
The step of applying any one video file processing method described in example.
Fourth aspect provides a kind of computer readable storage medium, is stored on the computer readable storage medium
Computer program realizes any one video text described in the embodiment of the present invention when computer program is executed by processor
The step of part processing method.
Compared with prior art, the present invention has the following advantages:
In embodiments of the present invention, by adjusting target pixel region and the position in associated pixel region so that target picture
Position of the plain region in video file keeps opposing stationary, can promote clarity when video file plays, help to use
Target pixel region is clearly watched at family.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, below the special specific embodiment for lifting the present invention.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, various advantages and benefit are for ordinary skill people
Member will be apparent understanding.Attached drawing is only used for showing preferred embodiment, and is not considered as limitation of the present invention.And
In entire attached drawing, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is the motion state schematic diagram of personage in adjacent two field pictures in video;
Fig. 2 is a kind of step flow chart of according to embodiments of the present invention one video file processing method;
Fig. 3 is a kind of step flow chart of according to embodiments of the present invention two video file processing method;
Fig. 4 is reference picture schematic diagram;
Fig. 5 is the selection schematic diagram of target pixel region in reference picture;
Fig. 6 is the view of target pixel region in adjacent two field pictures in video;
Fig. 7 is a kind of structure diagram of according to embodiments of the present invention three video file processing unit;
Fig. 8 is a kind of structure diagram of according to embodiments of the present invention four mobile terminal.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts
Example, belongs to the scope of protection of the invention.
Embodiment one
Reference Fig. 2 shows a kind of step flow chart of video file processing method of the embodiment of the present invention one.
The video file processing method of the embodiment of the present invention comprises the following steps:
Step 101:Obtain location information of the target pixel region in the reference picture of video file.
Video file is into user can therefrom select any one two field picture as with reference to figure manually by multiple group of picture
Picture.It is used as it is of course also possible to automatically determine a two field picture by mobile terminal with reference to image recommendation to user.User can refer to
Freehandhand-drawing goes out target pixel region in image.Target pixel region can be the contour area for treating stationary objects, or include
Treat the region of stationary objects.
Step 103:According to location information, to target pixel region video file the non-reference in addition to reference picture
Position in image is adjusted, and according to target pixel region and associating in addition to target pixel region in non-reference picture
Position relationship between pixel region is adjusted position of the associated pixel region in non-reference picture.
Target pixel region in each two field picture is adjusted to same position coordinate, video file shows user when playing
Picture in target pixel region then remain static always, convenient for the feature of object in user's object observing pixel region.
Such as:Target pixel region is the image of personage A, and the image of personage A is located at the center of image.For regarding
Every two field picture in frequency file searches the image of personage A as object pixel adjustment region, by each two field picture from each two field picture
The image of middle personage A is adjusted to the center position of place image.
The target pixel region moved originally in video file, in static in target video file;In video text
Originally static target pixel region, moves in target video file in part.Pass through video provided in an embodiment of the present invention text
Part processing method can finally complete the conversion of captured object relative motion relation.
It should be noted that it can also be carried out target pixel region in user is to reference picture during specific implementation
After selection, the reference picture that calibration has target pixel region is sent to server end, is determined to treat static mesh by server end
The location information of pixel region and target pixel region in a reference image is marked, for every frame figure in pending video file
Picture identifies the target pixel region in image, and target pixel region is adjusted into reference picture target pixel region place
Position at, will be sent to mobile terminal after each group of picture synthesis target video file after adjusting and play out.
By method for processing video frequency provided in an embodiment of the present invention, by adjusting target pixel region and associated pixel region
Position so that position of the target pixel region in video file keeps opposing stationary, when can promote video file and playing
Clarity, user is contributed to clearly to watch target pixel region.
Embodiment two
Reference Fig. 3 shows a kind of step flow chart of video file processing method of the embodiment of the present invention two.
The video file processing method of the embodiment of the present invention specifically includes following steps:
Step 201:Sequentially show the thumbnail of each two field picture in pending video file.
Show that the thumbnail of each two field picture selects reference picture convenient for user.
It is manually opened that video file processing method in the embodiment of the present invention can be clicked the corresponding button by user, can also
It is automatically turned on by mobile terminal.It is a kind of to be preferably by the mode of the manually opened video process flow of user:It is treated in sequentially expansion
It handles in file before the thumbnail of each two field picture, mobile terminal receives triggering command of the user to movement relation switching button;
The triggering command is responded, opening movement transformation flow is to open the video process flow of the embodiment of the present invention.
Step 202:User is received to the selection instruction of thumbnail, the corresponding image of selected thumbnail is determined as joining
Examine image.
Specifically, when being made choice to the thumbnail of displaying, the progress bar that user can drag below thumbnail selects one
The corresponding image of selected thumbnail is determined as reference picture and shown by thumbnail, mobile terminal.
It is illustrated below by taking pending video is by a video that bouncer's object is recorded on meadow as an example.Fig. 4
The reference picture selected for user from pending video file.
Step 203:According to user to the selection operation of target pixel region in reference picture, determine that target pixel region exists
First position coordinate in reference picture.
User Freehandhand-drawing can go out target pixel region in a reference image;In addition, user can also joined by choice box
It examines image centre circle and makes target pixel region.Wherein, Fig. 5 is the selection schematic diagram of target pixel region in reference picture, in Fig. 5
The region enclosed with dotted line is then target pixel region.
Wherein first position coordinate can be the coordinate of the central pixel point of target pixel region in the picture;Or
The coordinate of the first, last pixel of target pixel region in the picture.
Step 204:For every frame non-reference picture in video file, target pixel region in non-reference picture is identified.
It determines to treat stationary objects indicated by target pixel region, it can be from every frame non-reference after being determined after stationary objects
Stationary objects are treated in identification in image, determine to treat that the pixel region shared by stationary objects is determined as target picture in each frame non-reference picture
Plain region.
Step 205:Target pixel region is adjusted to the first position coordinate of non-reference picture, and according to object pixel
The position relationship between associated pixel region in region and non-reference picture in addition to target pixel region, to associated pixel area
Position of the domain in non-reference picture is adjusted.
Specifically, according to the associated pixel region in target pixel region and non-reference picture in addition to target pixel region
Between position relationship, when being adjusted to position of the associated pixel region in non-reference picture, by the pixel of image according to
Definite adjustment vector is whole to be adjusted.
It is a kind of preferably target pixel region is adjusted it is as follows to the mode at the first position coordinate of non-reference picture:
First, second position coordinate of the target pixel region in non-reference picture is determined;
Secondly, the offset vector of second position coordinate and first position coordinate is determined;
Finally, each pixel position in non-reference picture is adjusted according to offset vector, by object pixel area
Domain is adjusted to the first position coordinate of non-reference picture.
The non-reference picture in video file is handled frame by frame with reference to above-mentioned preferred embodiment, by the object pixel of movement
Region is still in the specific region of video, and other background pixels adapt to match the regions, just realize movement pixel with it is static
Movement relation conversion between pixel.
Fig. 6 is the view of reference object in adjacent two field pictures in video, as shown in fig. 6, in pending image
Originally the people of movement remains static, and motion state is presented in originally static meadow.
Each group of picture after adjusting is synthesized into target video file, the opposite of captured object is transported in target video file
Dynamic relation completes conversion.
The relative motion relation of the reference object in video file is converted with mobile terminal in the embodiment of the present invention
Exemplified by illustrate, during specific implementation can also by server perform reference object relative motion relation convert behaviour
Make, mobile terminal is sent to after video file is converted into target video.Specifically, mobile terminal in user in reference picture
After target pixel region makes choice, the reference picture that calibration has target pixel region is sent to server end, by server
End determines the first position coordinate of target pixel region in a reference image, for every two field picture in video file, identifies mesh
Pixel region is marked, and target pixel region is adjusted to the first position coordinate of the image, by each group of picture after adjusting
Mobile terminal is sent to after synthesis target video file to play out.
The scheme of the relative motion relation conversion of reference object is performed by server, the processing that can mitigate mobile terminal is born
Load.
Method for processing video frequency provided in an embodiment of the present invention by selecting a frame reference picture in video file, is being joined
It examines and target pixel region is determined in image, cause target pixel region in each frame by adjusting the position of pixel in each two field picture
Position consistency in image can keep opposing stationary, the target pixel region in video of target pixel region in each two field picture
It is opposing stationary, the feature of object in target pixel region is clearly seen clearly convenient for user, so as to promote the viewing experience of user.This
Outside, video file processing method provided in an embodiment of the present invention, can be by the relative motion relation of reference object in video file
It is converted, video interest can be promoted, increase user's stickiness.
Embodiment three
Reference Fig. 7 shows a kind of structure diagram of video file processing unit of the embodiment of the present invention three.
The video file processing unit of the embodiment of the present invention includes:
Acquisition module 301, for obtaining location information of the target pixel region in the reference picture of video file;
Module 302 is adjusted, for according to the location information, being removed to the target pixel region in the video file
The position in non-reference picture outside the reference picture is adjusted, and according to the target pixel region and the non-ginseng
The position relationship between the associated pixel region in image in addition to the target pixel region is examined, to the associated pixel region
Position in the non-reference picture is adjusted.
Preferably, the acquisition module 301 includes:
Submodule 3011 is shown, for sequentially showing the thumbnail of each two field picture in pending video file;
Receiving submodule 3012, it is for receiving selection instruction of the user to thumbnail, selected thumbnail is corresponding
Image is determined as reference picture;
Determination sub-module 3013, for receiving selection operation of the user to target pixel region in the reference picture, really
Set the goal first position coordinate of the pixel region in the reference picture.
Preferably, the adjustment module 302 includes:
It identifies submodule 3021, for being directed to every frame non-reference picture in the video file, identifies the non-reference
The target pixel region in image;
Submodule 3022 is adjusted, for adjusting the target pixel region to described first of the non-reference picture
It puts at coordinate, and according to the target pixel region and associating in addition to the target pixel region in the non-reference picture
Position relationship between pixel region is adjusted position of the associated pixel region in the non-reference picture.
Preferably, the adjustment submodule 3022 includes:
Coordinate determination unit 30221, for determining second of the target pixel region in the non-reference picture
Put coordinate;
Vector determination unit 30222, for determining offseting to for the second position coordinate and the first position coordinate
Amount;
Adjustment unit 30223, for according to the offset vector to each pixel position in the non-reference picture into
Row adjustment, the target pixel region is adjusted to the first position coordinate of the non-reference picture.
Preferably, described device further includes:
Command reception module 303, for it is described displaying submodule sequentially show pending video file in each frame figure
Before the thumbnail of picture, triggering command of the user to movement relation switching button is received;
Opening module 304, for responding the triggering command, opening movement transformation flow.
Video file processing unit provided in an embodiment of the present invention can be realized to be moved in the embodiment of the method for Fig. 1 to Fig. 6
Each process that terminal is realized, to avoid repeating, which is not described herein again.
Video file processing unit provided in an embodiment of the present invention, by adjusting target pixel region and associated pixel region
Position so that position of the target pixel region in video file keeps opposing stationary, when can promote video file and playing
Clarity, user is contributed to clearly to watch target pixel region.
Example IV
A kind of hardware architecture diagram of Fig. 8 mobile terminals of each embodiment to realize the present invention,
The mobile terminal 800 includes but not limited to:It is radio frequency unit 801, network module 802, audio output unit 803, defeated
Enter unit 804, sensor 805, display unit 806, user input unit 807, interface unit 808, memory 809, processor
The components such as 810 and power supply 811.It will be understood by those skilled in the art that the mobile terminal structure shown in Fig. 8 is not formed
Restriction to mobile terminal, mobile terminal can include than illustrate more or fewer components either combine some components or
Different component arrangements.In embodiments of the present invention, mobile terminal include but not limited to mobile phone, tablet computer, laptop,
Palm PC, car-mounted terminal, wearable device and pedometer etc..
Processor 810, for obtaining location information of the target pixel region in the reference picture of video file;According to institute
Location information is stated, to the target pixel region in the non-reference picture in addition to the reference picture of the video file
Position be adjusted, and according in the target pixel region and the non-reference picture in addition to the target pixel region
Associated pixel region between position relationship, position of the associated pixel region in the non-reference picture is adjusted
It is whole.
Mobile terminal provided in an embodiment of the present invention, by selecting a frame reference picture in video file, in reference chart
Target pixel region is determined as in, causes target pixel region in each two field picture by adjusting the position of pixel in each two field picture
In position consistency, the opposing stationary of target pixel region in each two field picture can be kept, clearly see clearly convenient for user and treat mesh
The feature of object in pixel region is marked, so as to promote the viewing experience of user.
It should be understood that in the embodiment of the present invention, radio frequency unit 801 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, handled to processor 810;In addition, by uplink
Data sending is to base station.In general, radio frequency unit 801 includes but not limited to antenna, at least one amplifier, transceiver, coupling
Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 801 can also by wireless communication system and network and other set
Standby communication.
Mobile terminal has provided wireless broadband internet to the user by network module 802 and has accessed, and such as user is helped to receive
It sends e-mails, browse webpage and access streaming video etc..
Audio output unit 803 can be receiving by radio frequency unit 801 or network module 802 or in memory 809
The voice data of storage is converted into audio signal and exports as sound.Moreover, audio output unit 803 can also be provided and moved
The relevant audio output of specific function that dynamic terminal 800 performs is (for example, call signal receives sound, message sink sound etc.
Deng).Audio output unit 803 includes loud speaker, buzzer and receiver etc..
Input unit 804 is used to receive audio or video signal.Input unit 804 can include graphics processor
(Graphics Processing Unit, GPU) 8041 and microphone 8042, graphics processor 8041 is in video acquisition mode
Or the static images or the image data of video obtained in image capture mode by image capture apparatus (such as camera) carry out
Reason.Treated, and picture frame may be displayed on display unit 806.Through graphics processor 8041, treated that picture frame can be deposited
Storage is sent in memory 809 (or other storage mediums) or via radio frequency unit 801 or network module 802.Mike
Wind 8042 can receive sound, and can be voice data by such acoustic processing.Treated voice data can be
The form output of mobile communication base station can be sent to via radio frequency unit 801 by being converted in the case of telephone calling model.
Mobile terminal 800 further includes at least one sensor 805, 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 8061, and proximity sensor can close when mobile terminal 800 is moved in one's ear
Display panel 8061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, size and the direction of gravity are can detect that when static, available for identification mobile terminal posture (ratio
Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes
Sensor 805 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet
Meter, thermometer, infrared ray sensor etc. are spent, details are not described herein.
Display unit 806 is used to show by information input by user or be supplied to the information of user.Display unit 806 can wrap
Display panel 8061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be employed
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 8061.
User input unit 807 can be used for the number for receiving input or character information and generation and the use of mobile terminal
The key signals input that family is set and function control is related.Specifically, user input unit 807 include touch panel 8071 and
Other input equipments 8072.Touch panel 8071, also referred to as touch-screen, collect user on it or neighbouring touch operation
(for example user uses any suitable objects such as finger, stylus or attachment on touch panel 8071 or in touch panel 8071
Neighbouring operation).Touch panel 8071 may include both touch detecting apparatus and touch controller.Wherein, touch detection
Device detects the touch orientation of user, and detects the signal that touch operation is brought, and 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 810, receiving area
It manages the order that device 810 is sent and is performed.It is furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc.
Type realizes touch panel 8071.Except touch panel 8071, user input unit 807 can also include other input equipments
8072.Specifically, other input equipments 8072 can include but is not limited to physical keyboard, function key (such as volume control button,
Switch key etc.), trace ball, mouse, operation lever, details are not described herein.
Further, touch panel 8071 can be covered on display panel 8061, when touch panel 8071 is detected at it
On or near touch operation after, send to processor 810 with determine touch event type, be followed by subsequent processing device 810 according to touch
The type for touching event provides corresponding visual output on display panel 8061.Although in fig. 8, touch panel 8071 and display
Panel 8061 is the component independent as two to realize the function that outputs and inputs of mobile terminal, but in some embodiments
In, can be integrated by touch panel 8071 and display panel 8061 and realize the function that outputs and inputs of mobile terminal, it is specific this
Place does not limit.
Interface unit 808 is the interface that external device (ED) is connected with mobile terminal 800.For example, external device (ED) can include
Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end
Mouth, port, audio input/output (I/O) port, video i/o port, earphone end for connecting the device with identification module
Mouthful etc..Interface unit 808 can be used for receive the input (for example, data message, electric power etc.) from external device (ED) and
One or more elements that the input received is transferred in mobile terminal 800 can be used in 800 He of mobile terminal
Data are transmitted between external device (ED).
Memory 809 can be used for storage software program and various data.Memory 809 can mainly include storing program area
And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as
Voice data, phone directory etc.) etc..In addition, memory 809 can include high-speed random access memory, 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 810 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part is stored in storage by running or performing the software program being stored in memory 809 and/or module and call
Data in device 809 perform the various functions of mobile terminal and processing data, so as to carry out integral monitoring to mobile terminal.Place
Reason device 810 may include one or more processing units;Preferably, processor 810 can integrate application processor and modulatedemodulate is mediated
Device is managed, wherein, the main processing operation system of application processor, user interface and application program etc., modem processor is main
Handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 810.
Mobile terminal 800 can also be included to the power supply 811 (such as battery) of all parts power supply, it is preferred that power supply 811
Can be logically contiguous by power-supply management system and processor 810, so as to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
In addition, mobile terminal 800 includes some unshowned function modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, and including processor 810, memory 809 is stored in
On memory 809 and the computer program that can be run on the processor 810, the computer program are performed by processor 810
Each process of the above-mentioned video file processing method embodiments of Shi Shixian, and identical technique effect can be reached, to avoid repeating,
Which is not described herein again.
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 above-mentioned video file processing method embodiment when being executed by processor,
And identical technique 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, letter
Claim RAM), magnetic disc or CD etc..
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements not only include those elements, and
And it further includes other elements that are not explicitly listed or further includes as this process, method, article or device institute inherently
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this
Also there are other identical elements in the process of element, method, 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 add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme substantially in other words does the prior art
Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), used including some instructions so that a station terminal (can be mobile phone, computer services
Device, air conditioner or network equipment etc.) perform method described in each embodiment of the present invention.
The embodiment of the present invention is described above in conjunction with attached drawing, but the invention is not limited in above-mentioned specific
Embodiment, above-mentioned specific embodiment is only schematical rather than restricted, those of ordinary skill in the art
Under the enlightenment of the present invention, present inventive concept and scope of the claimed protection are not being departed from, can also made very much
Form is belonged within the protection of the present invention.
Claims (10)
1. a kind of video file processing method, which is characterized in that the described method includes:
Obtain location information of the target pixel region in the reference picture of video file;
According to the location information, to the target pixel region in the non-in addition to the reference picture of the video file
Position in reference picture is adjusted, and according to the target pixel region with removing the target picture in the non-reference picture
The position relationship between associated pixel region outside plain region, to the associated pixel region in the non-reference picture
Position is adjusted.
2. the according to the method described in claim 1, it is characterized in that, reference for obtaining target pixel region in video file
Location information in image, including:
Sequentially show the thumbnail of each two field picture in pending video file;
User is received to the selection instruction of thumbnail, the corresponding image of selected thumbnail is determined as reference picture;
User is received to the selection operation of target pixel region in the reference picture, determines target pixel region in the reference
First position coordinate in image.
3. according to the method described in claim 2, it is characterized in that, described according to the location information, to the object pixel
Position of the region in the non-reference picture in addition to the reference picture of the video file is adjusted, and according to described
The position between associated pixel region in target pixel region and the non-reference picture in addition to the target pixel region
Relation is adjusted position of the associated pixel region in the non-reference picture, including:
For every frame non-reference picture in the video file, the object pixel area in the non-reference picture is identified
Domain;
The target pixel region is adjusted to the first position coordinate of the non-reference picture, and according to the target
The position relationship between associated pixel region in pixel region and the non-reference picture in addition to the target pixel region,
Position of the associated pixel region in the non-reference picture is adjusted.
4. according to the method described in claim 3, it is characterized in that, described adjust the target pixel region to the non-ginseng
It examines at the first position coordinate of image, and according to the target pixel region with removing the target in the non-reference picture
The position relationship between associated pixel region outside pixel region, to the associated pixel region in the non-reference picture
Position be adjusted, including:
Determine second position coordinate of the target pixel region in the non-reference picture;
Determine the offset vector of the second position coordinate and the first position coordinate;
Each pixel position in the non-reference picture is adjusted according to the offset vector, by the object pixel
Region is adjusted to the first position coordinate of the non-reference picture.
5. a kind of video file processing unit, which is characterized in that including:
Acquisition module, for obtaining location information of the target pixel region in the reference picture of video file;
Module is adjusted, for according to the location information, the ginseng to be removed in the video file to the target pixel region
The position examined in the non-reference picture outside image is adjusted, and according to the target pixel region and the non-reference picture
In position relationship between associated pixel region in addition to the target pixel region, to the associated pixel region described
Position in non-reference picture is adjusted.
6. device according to claim 5, which is characterized in that the acquisition module includes:
Submodule is shown, for sequentially showing the thumbnail of each two field picture in pending video file;
For receiving selection instruction of the user to thumbnail, the corresponding image of selected thumbnail is determined for receiving submodule
For reference picture;
Determination sub-module for receiving selection operation of the user to target pixel region in the reference picture, determines target picture
First position coordinate of the plain region in the reference picture.
7. device according to claim 6, which is characterized in that the adjustment module includes:
It identifies submodule, for being directed to every frame non-reference picture in the video file, identifies in the non-reference picture
The target pixel region;
Submodule is adjusted, for adjusting the target pixel region to the first position coordinate of the non-reference picture
Place, and according to the associated pixel area in the target pixel region and the non-reference picture in addition to the target pixel region
Position relationship between domain is adjusted position of the associated pixel region in the non-reference picture.
8. device according to claim 7, which is characterized in that the adjustment submodule includes:
Coordinate determination unit, for determining second position coordinate of the target pixel region in the non-reference picture;
Vector determination unit, for determining the offset vector of the second position coordinate and the first position coordinate;
Adjustment unit, for being adjusted according to the offset vector to each pixel position in the non-reference picture, with
The target pixel region is adjusted to the first position coordinate of the non-reference picture.
9. a kind of mobile terminal, which is characterized in that including processor, memory and be stored on the memory and can be described
The computer program run on processor is realized when the computer program is performed by the processor as in Claims 1-4
The step of any one of them video file processing method.
10. a kind of computer readable storage medium, which is characterized in that computer journey is stored on the computer readable storage medium
Sequence realizes video file processing side according to any one of claims 1 to 4 when the computer program is executed by processor
The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711241910.9A CN108109186B (en) | 2017-11-30 | 2017-11-30 | Video file processing method and device and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711241910.9A CN108109186B (en) | 2017-11-30 | 2017-11-30 | Video file processing method and device and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108109186A true CN108109186A (en) | 2018-06-01 |
CN108109186B CN108109186B (en) | 2021-06-11 |
Family
ID=62207933
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711241910.9A Active CN108109186B (en) | 2017-11-30 | 2017-11-30 | Video file processing method and device and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108109186B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110784682A (en) * | 2019-09-27 | 2020-02-11 | 深圳市大拿科技有限公司 | Video processing method and related product thereof |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050069210A1 (en) * | 2001-04-23 | 2005-03-31 | Webtv Networks, Inc. | Systems and methods for MPEG subsample decoding |
CN101763182A (en) * | 2008-12-25 | 2010-06-30 | 索尼株式会社 | Input apparatus, control apparatus, control system, electronic apparatus, and control method |
CN101853145A (en) * | 2009-03-31 | 2010-10-06 | 佳能株式会社 | Image editing apparatus and image edit method |
CN103020248A (en) * | 2012-12-19 | 2013-04-03 | 青岛海信传媒网络技术有限公司 | Video file thumbnail generating method and generating device |
US20160109950A1 (en) * | 2008-07-15 | 2016-04-21 | Immersion Corporation | Systems and methods for mapping message contents to virtual physical properties for vibrotactile messaging |
CN106303225A (en) * | 2016-07-29 | 2017-01-04 | 努比亚技术有限公司 | A kind of image processing method and electronic equipment |
CN106339070A (en) * | 2015-07-09 | 2017-01-18 | 腾讯科技(深圳)有限公司 | Display control method and mobile terminal |
CN106407027A (en) * | 2016-09-23 | 2017-02-15 | 维沃移动通信有限公司 | An information display method for a mobile terminal and a mobile terminal |
-
2017
- 2017-11-30 CN CN201711241910.9A patent/CN108109186B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050069210A1 (en) * | 2001-04-23 | 2005-03-31 | Webtv Networks, Inc. | Systems and methods for MPEG subsample decoding |
US20160109950A1 (en) * | 2008-07-15 | 2016-04-21 | Immersion Corporation | Systems and methods for mapping message contents to virtual physical properties for vibrotactile messaging |
CN101763182A (en) * | 2008-12-25 | 2010-06-30 | 索尼株式会社 | Input apparatus, control apparatus, control system, electronic apparatus, and control method |
CN101853145A (en) * | 2009-03-31 | 2010-10-06 | 佳能株式会社 | Image editing apparatus and image edit method |
CN103020248A (en) * | 2012-12-19 | 2013-04-03 | 青岛海信传媒网络技术有限公司 | Video file thumbnail generating method and generating device |
CN106339070A (en) * | 2015-07-09 | 2017-01-18 | 腾讯科技(深圳)有限公司 | Display control method and mobile terminal |
CN106303225A (en) * | 2016-07-29 | 2017-01-04 | 努比亚技术有限公司 | A kind of image processing method and electronic equipment |
CN106407027A (en) * | 2016-09-23 | 2017-02-15 | 维沃移动通信有限公司 | An information display method for a mobile terminal and a mobile terminal |
Non-Patent Citations (2)
Title |
---|
A. HAMPAPUR .ETAL: "Smart video surveillance: exploring the concept of multiscale spatiotemporal tracking", 《IEEE SIGNAL PROCESSING MAGAZINE》 * |
康晓晶 等: "基于高斯背景建模的目标检测技术", 《液晶与显示》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110784682A (en) * | 2019-09-27 | 2020-02-11 | 深圳市大拿科技有限公司 | Video processing method and related product thereof |
CN110784682B (en) * | 2019-09-27 | 2021-11-09 | 深圳市海雀科技有限公司 | Video processing method and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN108109186B (en) | 2021-06-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107566730B (en) | A kind of panoramic picture image pickup method and mobile terminal | |
CN108446085A (en) | A kind of throwing screen display methods and mobile terminal | |
CN108762640A (en) | A kind of display methods and terminal of barrage information | |
CN108540724A (en) | A kind of image pickup method and mobile terminal | |
CN107566748A (en) | A kind of image processing method, mobile terminal and computer-readable recording medium | |
CN107817939A (en) | A kind of image processing method and mobile terminal | |
CN107888728A (en) | A kind of mobile terminal and the image pickup method based on the mobile terminal | |
CN107635110A (en) | A kind of video interception method and terminal | |
CN107707817A (en) | A kind of video capture method and mobile terminal | |
CN107845057A (en) | One kind is taken pictures method for previewing and mobile terminal | |
CN107908705A (en) | A kind of information-pushing method, information push-delivery apparatus and mobile terminal | |
CN107566749A (en) | Image pickup method and mobile terminal | |
CN107678829A (en) | A kind of application control method and mobile terminal | |
CN107886321A (en) | A kind of method of payment and mobile terminal | |
CN108320263A (en) | A kind of method, device and mobile terminal of image procossing | |
CN108668024A (en) | A kind of method of speech processing and terminal | |
CN108307106A (en) | A kind of image processing method, device and mobile terminal | |
CN113365085B (en) | Live video generation method and device | |
CN108197934A (en) | A kind of method of payment and terminal device | |
CN107749046A (en) | A kind of image processing method and mobile terminal | |
CN108319833A (en) | A kind of control method and mobile terminal of application program | |
CN110198428A (en) | A kind of multimedia file producting method and first terminal | |
CN108768838A (en) | One kind putting out screen information sharing method, transmitting terminal and receiving terminal | |
CN108197286A (en) | A kind of method for information display and mobile terminal | |
CN107959755A (en) | A kind of photographic method and mobile terminal |
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 |