CN105263049B - A kind of video Scissoring device, method and mobile terminal based on frame coordinate - Google Patents
A kind of video Scissoring device, method and mobile terminal based on frame coordinate Download PDFInfo
- Publication number
- CN105263049B CN105263049B CN201510712589.2A CN201510712589A CN105263049B CN 105263049 B CN105263049 B CN 105263049B CN 201510712589 A CN201510712589 A CN 201510712589A CN 105263049 B CN105263049 B CN 105263049B
- Authority
- CN
- China
- Prior art keywords
- video
- clipping region
- main body
- distance
- ratio
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
Abstract
The invention discloses a kind of video Scissoring device, method and mobile terminal based on frame coordinate, belongs to field of communication technology.The device includes: coordinate information read module, for reading the coordinate information for shooting main body in each frame of video;Clipping region selecting module automatically obtains ratio of the shooting main body in the clipping region according to the coordinate information for selecting clipping region;Cut module, for according to the final clipping region of the ratio-dependent, the video is cut according to the final clipping region, the present invention by calculating ratio of the shooting main body in the clipping region when cutting to video automatically, the size of clipping region is selected according to the ratio, guarantee that influence to video content is minimum after video is cut to greatest extent, video quality caused by avoiding in cutting process due to shooting main information and losing declines.
Description
Technical field
The present invention relates to field of communication technology more particularly to a kind of video Scissoring device, method and shiftings based on frame coordinate
Dynamic terminal.
Background technique
With the raising of mobile phone shooting ability, video capture is very universal, and the shooting of video is also referred to as with sharing
A part of life & amusement, original shooting video is too big, and upload is shared costly under the networks such as 3G, and user can generally pass through
Video size is cut to reduce video size, but can be had an impact in this way to content of shooting.
Summary of the invention
It is a primary object of the present invention to propose a kind of video Scissoring device, method and mobile terminal based on frame coordinate,
It calculates ratio of the shooting main body in the clipping region automatically when cutting to video, is selected according to the ratio
The size of clipping region guarantees that the influence after video is cut to video content is minimum to greatest extent.
The technical scheme to solve the above technical problems is that
According to an aspect of the present invention, a kind of video Scissoring device based on frame coordinate provided, comprising:
Coordinate information read module, for reading the coordinate information for shooting main body in each frame of video;
Clipping region selecting module automatically obtains the shooting according to the coordinate information and leads for selecting clipping region
Ratio of the body in the clipping region;
Module is cut, is used for according to the final clipping region of the ratio-dependent, according to the final clipping region to described
Video is cut.
Optionally, further includes:
Display module, for being shown ratio of the shooting main body in the clipping region by way of percentage
It is cut on interface in video.
Optionally, the cutting module includes:
Final clipping region confirmation unit, for the ratio according to the size of the size and clipping region of the percentage
Value determines final clipping region;
Compression cuts unit, for being cut by compressing trimming algorithm to video.
Optionally, the coordinate information read module includes:
Establishment of coordinate system unit, for establishing a two-dimentional reference frame, including horizontally and vertically;
Coordinate information reading unit, for reading the coordinate information for shooting main body in each frame, the coordinate information includes:
Shooting main body arrives horizontally and vertically corresponding distance up and down.
Optionally, the clipping region selecting module includes:
Traverse reading unit, for read in video shot in all frames main body arrive up and down horizontally and vertically pair
The distance answered;
Optimal crop area selecting unit, for choose in all frames shoot main body to horizontally and vertically it is corresponding most
On distance, most under distance, most left distance and most right distance, and by it is described most on distance, most under distance, most left
Distance and the most right corresponding regional choice of distance be clipping region;Ratio of the shooting main body in the clipping region
For absolutely.
As another method of the invention, a kind of video method of cutting out based on frame coordinate for providing, comprising:
Read the coordinate information that main body is shot in each frame of video;
Clipping region is selected, ratio of the shooting main body in the clipping region is automatically obtained according to the coordinate information
Example;
According to the final clipping region of the ratio-dependent, the video is cut according to the final clipping region.
Optionally, described that ratio of the shooting main body in the clipping region is automatically obtained according to the coordinate information
Later further include:
Ratio of the shooting main body in the clipping region is shown by way of percentage and cuts boundary in video
On face.
Optionally, described according to the final clipping region of the ratio-dependent, according to the final clipping region to the view
Frequency cut
Final clipping region is determined according to the ratio of the size of the percentage and the size of the clipping region;
Video is cut by compressing trimming algorithm.
It is optionally, described to read the coordinate information that main body is shot in each frame of video specifically:
A two-dimentional reference frame is established, including horizontally and vertically;
In each frame shoot main body coordinate information include: shoot main body arrive up and down horizontally and vertically pair
The distance answered.
Optionally, the selection clipping region automatically obtains the shooting main body in the sanction according to the coordinate information
The ratio cut in region includes:
Shoot main body in reading video in all frames arrives horizontally and vertically corresponding distance up and down;
Choose shot in all frames main body to horizontally and vertically it is corresponding most on distance, most under distance, most left
Distance and most right distance, and by it is described most on distance, most under distance, most left distance and most right distance it is corresponding
Regional choice is clipping region;
Ratio of the shooting main body in the clipping region is absolutely.
According to a further aspect of the invention, a kind of mobile terminal provided, including devices discussed above.
The present invention provides a kind of video Scissoring device, method and mobile terminal based on frame coordinate, the device include: to sit
Information reading module is marked, for reading the coordinate information for shooting main body in each frame of video;Clipping region selecting module, for selecting
Clipping region is selected, ratio of the shooting main body in the clipping region is automatically obtained according to the coordinate information;Cut mould
Block, for being cut to the video according to the final clipping region according to the final clipping region of the ratio-dependent, this
Invention by calculating ratio of the shooting main body in the clipping region when cutting to video automatically, according to described
Ratio selects the size of clipping region, guarantees that the influence after video is cut to video content is minimum to greatest extent, avoids sanction
During cutting because shoot main information lose due to caused by video quality decline.
Detailed description of the invention
The hardware structural diagram of Fig. 1 mobile terminal of each embodiment to realize the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is a kind of exemplary block diagram of video Scissoring device based on frame coordinate of the embodiment of the present invention one;
Fig. 4 is the shooting main body frame coordinate schematic diagram of the embodiment of the present invention one;
Fig. 5 is that a kind of best video of the embodiment of the present invention one cuts out surface chart;
Fig. 6 is another video-clips surface chart of the embodiment of the present invention one;
Fig. 7 is a kind of exemplary block diagram of video Scissoring device based on frame coordinate of the embodiment of the present invention two;
Fig. 8 is the exemplary block diagram of the cutting module of the embodiment of the present invention three;
Fig. 9 is the exemplary block diagram of the coordinate information read module of the embodiment of the present invention four;
Figure 10 is the exemplary block diagram of the clipping region selecting module of the embodiment of the present invention five;
Figure 11 is a kind of flow chart of video method of cutting out based on frame coordinate of the embodiment of the present invention six;
Figure 12 is a kind of flow chart of video method of cutting out based on frame coordinate of the embodiment of the present invention seven;
Figure 13 is a kind of flow chart of video method of cutting out based on frame coordinate of the embodiment of the present invention eight;
Figure 14 is a kind of flow chart of video method of cutting out based on frame coordinate of the embodiment of the present invention nine.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Mobile terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, intelligence
Phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP (portable more matchmakers
Body player), the fixed terminal of the mobile terminal of navigation device etc. and such as number TV, desktop computer etc..In the following,
Assuming that terminal is mobile terminal.However, it will be understood by those skilled in the art that in addition to be used in particular for mobile purpose element it
Outside, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Fig. 1 to realize the present invention the mobile terminal of each embodiment hardware configuration signal.
Mobile terminal 100 may include wireless communication unit 110, A/V (audio/video) input unit 120, user's input
Unit 130, sensing unit 140, output unit 150, memory 160, interface unit 170, controller 180 and power supply unit 190
Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups shown
Part.More or fewer components can alternatively be implemented.The element of mobile terminal will be discussed in more detail below.
Wireless communication unit 110 generally includes one or more components, allows mobile terminal 100 and wireless communication system
Or the radio communication between network.For example, wireless communication unit may include broadcasting reception module 111, mobile communication module
112, at least one of wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast from external broadcast management server via broadcast channel
Relevant information.Broadcast channel may include satellite channel and/or terrestrial channel.Broadcast management server, which can be, to be generated and sent
The broadcast singal and/or broadcast related information generated before the server or reception of broadcast singal and/or broadcast related information
And send it to the server of terminal.Broadcast singal may include TV broadcast singal, radio signals, data broadcasting
Signal etc..Moreover, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase
Closing information can also provide via mobile communications network, and in this case, broadcast related information can be by mobile communication mould
Block 112 receives.Broadcast singal can exist in a variety of manners, for example, it can be with the electronics of digital multimedia broadcasting (DMB)
Program guide (EPG), digital video broadcast-handheld (DVB-H) electronic service guidebooks (ESG) etc. form and exist.Broadcast
Receiving module 111 can receive signal broadcast by using various types of broadcast systems.Particularly, broadcasting reception module 111
It can be wide by using such as multimedia broadcasting-ground (DMB-T), digital multimedia broadcasting-satellite (DMB-S), digital video
It broadcasts-holds (DVB-H), forward link media (MediaFLO@) Radio Data System, received terrestrial digital broadcasting integrated service
(ISDB-T) etc. digit broadcasting system receives digital broadcasting.Broadcasting reception module 111, which may be constructed such that, to be adapted to provide for extensively
Broadcast the various broadcast systems and above-mentioned digit broadcasting system of signal.Via the received broadcast singal of broadcasting reception module 111 and/
Or broadcast related information can store in memory 160 (or other types of storage medium).
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal
And at least one of server and/or receive from it radio signal.Such radio signal may include that voice is logical
Talk about signal, video calling signal or according to text and/or Multimedia Message transmission and/or received various types of data.
The Wi-Fi (Wireless Internet Access) of the support mobile terminal of wireless Internet module 113.The module can be internally or externally
It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved in the module may include WLAN (Wireless LAN) (Wi-Fi), Wibro
(WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting short range communication.Some examples of short-range communication technology include indigo plant
ToothTM, radio frequency identification (RFID), Infrared Data Association (IrDA), ultra wide band (UWB), purple honeybeeTMEtc..
Location information module 115 is the module for checking or obtaining the location information of mobile terminal.Location information module
Typical case be GPS (global positioning system).According to current technology, GPS module 115, which calculates, comes from three or more satellites
Range information and correct time information and the Information application triangulation for calculating, thus according to longitude, latitude
Highly accurately calculate three-dimensional current location information.Currently, it is defended for the method for calculating position and temporal information using three
Star and the error that calculated position and temporal information are corrected by using an other satellite.In addition, GPS module 115
It can be by Continuous plus current location information in real time come calculating speed information.
A/V input unit 120 is for receiving audio or video signal.A/V input unit 120 may include 121 He of camera
Microphone 1220, camera 121 is to the static map obtained in video acquisition mode or image capture mode by image capture apparatus
The image data of piece or video is handled.Treated, and picture frame may be displayed on display module 151.At camera 121
Picture frame after reason can store in memory 160 (or other storage mediums) or carry out via wireless communication unit 110
It sends, two or more cameras 1210 can be provided according to the construction of mobile terminal.Microphone 122 can be in telephone relation mould
Sound (audio data) is received via microphone in formula, logging mode, speech recognition mode etc. operational mode, and can be incited somebody to action
Such acoustic processing is audio data.Audio that treated (voice) data can be converted in the case where telephone calling model
For the format output that can be sent to mobile communication base station via mobile communication module 112.Various types can be implemented in microphone 122
Noise eliminate (or inhibit) algorithm with eliminate noise that (or inhibition) generates during sending and receiving audio signal or
Person's interference.
The order that user input unit 130 can be inputted according to user generates key input data to control each of mobile terminal
Kind operation.User input unit 130 allows user to input various types of information, and may include keyboard, metal dome, touch
Plate (for example, the sensitive component of detection due to the variation of resistance, pressure, capacitor etc. caused by being contacted), idler wheel, rocking bar etc.
Deng.Particularly, when touch tablet is superimposed upon in the form of layer on display module 151, touch screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 100, (for example, mobile terminal 100 opens or closes shape
State), the position of mobile terminal 100, user is for the presence or absence of contact (that is, touch input) of mobile terminal 100, mobile terminal
100 orientation, the acceleration or deceleration movement of mobile terminal 100 and direction etc., and generate for controlling mobile terminal 100
The order of operation or signal.For example, sensing unit 140 can sense when mobile terminal 100 is embodied as sliding-type mobile phone
The sliding-type phone is to open or close.In addition, sensing unit 140 be able to detect power supply unit 190 whether provide electric power or
Whether person's interface unit 170 couples with external device (ED).Sensing unit 140 may include that proximity sensor 1410 will combine below
Touch screen is described this.
Interface unit 170 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,
External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Identification module can be storage and use each of mobile terminal 100 for verifying user
It plants information and may include subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM)
Etc..In addition, the device (hereinafter referred to as " identification device ") with identification module can take the form of smart card, therefore, know
Other device can be connect via port or other attachment devices with mobile terminal 100.Interface unit 170, which can be used for receiving, to be come from
The input (for example, data information, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 100
One or more elements can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connect with external base, interface unit 170 may be used as allowing will be electric by it
Power, which is provided from pedestal to the path or may be used as of mobile terminal 100, allows the various command signals inputted from pedestal to pass through it
It is transferred to the path of mobile terminal.The various command signals or electric power inputted from pedestal, which may be used as mobile terminal for identification, is
The no signal being accurately fitted on pedestal.Output unit 150 is configured to provide with vision, audio and/or tactile manner defeated
Signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.) out.Output unit 150 may include display
Module 151, audio output module 152, alarm modules 153 etc..
Display module 151 may be displayed on the information handled in mobile terminal 100.For example, when mobile terminal 100 is in electricity
When talking about call mode, display module 151 can show and converse or other communicate (for example, text messaging, multimedia file
Downloading etc.) relevant user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling mode
Or when image capture mode, display module 151 can show captured image and/or received image, show video or figure
Picture and the UI or GUI of correlation function etc..
Meanwhile when display module 151 and touch tablet in the form of layer it is superposed on one another to form touch screen when, display module
151 may be used as input unit and output device.Display module 151 may include liquid crystal display (LCD), thin film transistor (TFT)
In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least
It is a kind of.Some in these displays may be constructed such that transparence to allow user to watch from outside, this is properly termed as transparent
Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific
Desired embodiment, mobile terminal 100 may include two or more display modules (or other display devices), for example, moving
Dynamic terminal may include external display module (not shown) and internal display module (not shown).Touch screen can be used for detecting touch
Input pressure and touch input position and touch input area.
Audio output module 152 can mobile terminal be in call signal reception pattern, call mode, logging mode,
It is when under the isotypes such as speech recognition mode, broadcast reception mode, wireless communication unit 110 is received or in memory 160
The audio data transducing audio signal of middle storage and to export be sound.Moreover, audio output module 152 can provide and movement
The relevant audio output of specific function (for example, call signal receives sound, message sink sound etc.) that terminal 100 executes.
Audio output module 152 may include loudspeaker, buzzer etc..
Alarm modules 153 can provide output notifying event to mobile terminal 100.Typical event can be with
Including calling reception, message sink, key signals input, touch input etc..Other than audio or video output, alarm modules
153 can provide output in different ways with the generation of notification event.For example, alarm modules 153 can be in the form of vibration
Output is provided, when receiving calling, message or some other entrance communications (incomingcommunication), alarm mould
Block 153 can provide tactile output (that is, vibration) to notify to user.By providing such tactile output, even if
When the mobile phone of user is in the pocket of user, user also can recognize that the generation of various events.Alarm modules 153
The output of the generation of notification event can be provided via display module 151 or audio output module 152.
Memory 160 can store the software program etc. of the processing and control operation that are executed by controller 180, Huo Zheke
Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And
And memory 160 can store about the vibrations of various modes and audio signal exported when touching and being applied to touch screen
Data.
Memory 160 may include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, more
Media card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), static random-access storage
Device (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory
(PROM), magnetic storage, disk, CD etc..Moreover, mobile terminal 100 can execute memory with by network connection
The network storage device of 160 store function cooperates.
The overall operation of the usually control mobile terminal of controller 180.For example, controller 180 executes and voice communication, data
Communication, video calling etc. relevant control and processing.In addition, controller 180 may include for reproducing (or playback) more matchmakers
The multi-media module 1810 of volume data, multi-media module 1810 can construct in controller 180, or can be structured as and control
Device 180 processed separates.Controller 180 can be with execution pattern identifying processing, by the handwriting input executed on the touchscreen or figure
Piece draws input and is identified as character or image.
Power supply unit 190 receives external power or internal power under the control of controller 180 and provides operation each member
Electric power appropriate needed for part and component.
Various embodiments described herein can be to use the calculating of such as computer software, hardware or any combination thereof
Machine readable medium is implemented.Hardware is implemented, embodiment described herein can be by using application-specific IC
(ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can
Programming gate array (FPGA), controller, microcontroller, microprocessor, is designed to execute function described herein processor
At least one of electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180.
For software implementation, the embodiment of such as process or function can with allow to execute the individual of at least one functions or operations
Software module is implemented.Software code can by the software application (or program) write with any programming language appropriate Lai
Implement, software code can store in memory 160 and be executed by controller 180.
So far, oneself is through describing mobile terminal according to its function.In the following, for the sake of brevity, will description such as folded form,
Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc., which is used as, to be shown
Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Mobile terminal 100 as shown in Figure 1 may be constructed such that using via frame or grouping send data it is all if any
Line and wireless communication system and satellite-based communication system operate.
Referring now to Fig. 2 description communication system that wherein mobile terminal according to the present invention can operate.
Different air interface and/or physical layer can be used in such communication system.For example, used by communication system
Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system
System (UMTS) (particularly, long term evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under
The description in face is related to cdma communication system, but such introduction is equally applicable to other types of system.
With reference to Fig. 2, cdma wireless communication system may include multiple mobile terminals 100, multiple base stations (BS) 270, base station
Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN)
290 form interface.MSC280 is also structured to form interface with the BSC275 that can be couple to base station 270 via back haul link.
Back haul link can be constructed according to any in several known interfaces, and the interface includes such as E1/T1, ATM, IP,
PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system may include multiple BSC2750 as shown in Figure 2.
Each BS270 can service one or more subregions (or region), by multidirectional antenna or the day of direction specific direction
Each subregion of line covering is radially far from BS270.Alternatively, each subregion can be by two or more for diversity reception
Antenna covering.Each BS270, which may be constructed such that, supports multiple frequency distribution, and the distribution of each frequency has specific frequency spectrum
(for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed, which intersects, can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver
System (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly indicating single
BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Alternatively, each subregion of specific BS270 can be claimed
For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to the mobile terminal operated in system by broadcsting transmitter (BT) 295
100.Broadcasting reception module 111 as shown in Figure 1 is arranged at mobile terminal 100 to receive the broadcast sent by BT295
Signal.In fig. 2 it is shown that several global positioning system (GPS) satellites 300.The help of satellite 300 positions multiple mobile terminals
At least one of 100.
In Fig. 2, multiple satellites 300 are depicted, it is understood that, it is useful to can use any number of satellite acquisition
Location information.GPS module 115 as shown in Figure 1 is generally configured to cooperate with satellite 300 to obtain desired positioning and believe
Breath.It substitutes GPS tracking technique or except GPS tracking technique, the other of the position that can track mobile terminal can be used
Technology.In addition, at least one 300 property of can choose of GPS satellite or extraly processing satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link from various mobile terminals 100
Signal.Mobile terminal 100 usually participates in call, information receiving and transmitting and other types of communication.Certain base station 270 is received each anti-
It is handled in specific BS270 to link signal.The data of acquisition are forwarded to relevant BSC275.BSC provides call
The mobile management function of resource allocation and the coordination including the soft switching process between BS270.The number that BSC275 will also be received
According to MSC280 is routed to, the additional route service for forming interface with PSTN290 is provided.Similarly, PSTN290 with
MSC280 forms interface, and MSC and BSC275 form interface, and BSC275 controls BS270 correspondingly with by forward link signals
It is sent to mobile terminal 100.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the method for the present invention is proposed.
Embodiment one
Fig. 3 is a kind of exemplary block diagram of video Scissoring device based on frame coordinate of the present embodiment, below with reference to
Fig. 3 describes a kind of video Scissoring device based on frame coordinate of the present embodiment, as shown in figure 3, a kind of view based on frame coordinate
Frequency Scissoring device, comprising:
Coordinate information read module 10, for reading the coordinate information for shooting main body in each frame of video;
Clipping region selecting module 20 automatically obtains the shooting according to the coordinate information for selecting clipping region
Ratio of the main body in the clipping region;
Module 30 is cut, is used for according to the final clipping region of the ratio-dependent, according to the final clipping region to institute
Video is stated to be cut.
In the present embodiment, the video is by the way that made of mobile phone or video camera shooting, in shooting process, record is every
Region where the shooting main body of one frame, the region are written to each frame top of file by way of coordinate, wherein shooting master
Body can have the object of remarkable configuration for personage, object etc..
In the present embodiment, as shown in figure 4, establishing a two-dimentional reference frame, including horizontally and vertically, with the upper left corner
It (0,0) is reference point records photographing main body, difference records photographing main body arrives horizontally and vertically corresponding distance up and down
For MA, MC, NA, NB, this four range informations just constitute the coordinate information (MA, MC, NA, NB) based on frame coordinate.
When only being cut to single frame video, with the personage in Fig. 4 be shooting main body, select wherein a frame video be locate
Object is managed, as selection coordinate information (M1A1, M1C1, N1A1, N1B1) composed by region be clipping region when, clipping region is just
For the rectangle for completely including the minimum area for shooting main body, obtained frequency file is also minimum, namely shooting main body exists at this time
Ratio in the clipping region is that absolutely, here it is optimum clipped region required for us, Fig. 5 is optimum clipped area
Domain schematic diagram.
When only uniformly being cut to multi-frame video, it is still shooting main body with the personage in Fig. 4, at this time altogether includes 1-n
Equal n frame video, in each frame video, the position for shooting main body is all different, and coordinate information is respectively as follows: (M1A1, M1C1,
N1A1, N1B1)、(M2A2, M2C2, N2A2, N2B2)……(MnAn, MnCn, NnAn, NnBn), in order to guarantee that video is cut to greatest extent
Influence to content of shooting is minimum afterwards, read shot in all frames in video main body arrive up and down horizontally and vertically corresponding to
Distance;Choose shot in all frames main body to horizontally and vertically it is corresponding most on distance, most under distance, most left
Distance and most right distance (MAmin, MCmax, NAmin, NBmax), and by it is described most on distance, most under distance, it is most left away from
From with it is most right with a distance from corresponding regional choice be clipping region, clipping region at this time covers the shooting master in all frames
Body, namely shooting ratio of the main body in the clipping region in all frames at this time is absolutely that here it is required for us
Optimum clipped region.
As shown in fig. 6, user can pass through the side such as touch-control when user is dissatisfied to the above-mentioned cutting range obtained automatically
Formula drags clipping region, and how much meeting automatic prompt shoots main body and be in clipping region while dragging, and passes through percentage
Form by the shooting main body the ratio in the clipping region show video cut interface on.
In the present embodiment, by calculating the shooting main body automatically when cutting to video in the clipping region
Interior ratio selects the size of clipping region according to the ratio, to video content after guarantee video is cut to greatest extent
Influence minimum, video quality caused by avoiding in cutting process due to shooting main information and losing declines.
Embodiment two
As shown in fig. 7, a kind of video Scissoring device based on frame coordinate, further includes:
Display module 40, for being shown ratio of the shooting main body in the clipping region by way of percentage
Show and is cut on interface in video.
Embodiment three
As shown in figure 8, in the present embodiment, the cutting module 30 includes:
Final clipping region confirmation unit 31, for according to the size of the size and clipping region of the percentage
Ratio determines final clipping region;
Compression cuts unit 32, for being cut by compressing trimming algorithm to video.
Example IV
As shown in figure 9, in the present embodiment, the coordinate information read module 10 includes:
Establishment of coordinate system unit 11, for establishing a two-dimentional reference frame, including horizontally and vertically;
Coordinate information reading unit 12, for reading the coordinate information for shooting main body in each frame, the coordinate information packet
Include: shoot main body arrives horizontally and vertically corresponding distance up and down.
Embodiment five
As shown in Figure 10, in the present embodiment, the clipping region selecting module 20 includes:
Traverse reading unit 21, for read in video shoot main body in all frames arrive horizontally and vertically institute up and down
Corresponding distance;
Optimal crop area selecting unit 22 shoots main body to horizontally and vertically corresponding for choosing in all frames
Distance on most, most under distance, most left distance and most right distance, and by it is described most on distance, most under distance, most
Left distance and the most right corresponding regional choice of distance are clipping region;Ratio of the shooting main body in the clipping region
Example is absolutely.
When only uniformly being cut to multi-frame video, it is still shooting main body with the personage in Fig. 4, at this time altogether includes 1-n
Equal n frame video, in each frame video, the position for shooting main body is all different, and coordinate information is respectively as follows: (M1A1, M1C1,
N1A1, N1B1)、(M2A2, M2C2, N2A2, N2B2)……(MnAn, MnCn, NnAn, NnBn), in order to guarantee that video is cut to greatest extent
Influence to content of shooting is minimum afterwards, read shot in all frames in video main body arrive up and down horizontally and vertically corresponding to
Distance;Choose shot in all frames main body to horizontally and vertically it is corresponding most on distance, most under distance, most left
Distance and most right distance (MAmin, MCmax, NAmin, NBmax), and by it is described most on distance, most under distance, it is most left away from
From with it is most right with a distance from corresponding regional choice be clipping region, clipping region at this time covers the shooting master in all frames
Body, namely shooting ratio of the main body in the clipping region in all frames at this time is absolutely that here it is required for us
Optimum clipped region.
Embodiment six
As shown in figure 11, in the present embodiment, a kind of video method of cutting out based on frame coordinate, comprising:
S10, the coordinate information that main body is shot in each frame of video is read;
S20, selection clipping region, automatically obtain the shooting main body in the clipping region according to the coordinate information
Ratio;
S30, according to the final clipping region of the ratio-dependent, the video is cut out according to the final clipping region
It cuts.
In the present embodiment, described that the shooting main body is automatically obtained in the clipping region according to the coordinate information
Ratio after further include:
Ratio of the shooting main body in the clipping region is shown by way of percentage and cuts boundary in video
On face.
In the present embodiment, by calculating the shooting main body automatically when cutting to video in the clipping region
Interior ratio selects the size of clipping region according to the ratio, to video content after guarantee video is cut to greatest extent
Influence minimum, video quality caused by avoiding in cutting process due to shooting main information and losing declines.
Embodiment seven
As shown in figure 12, in the present embodiment, the step S30 includes:
S31, final clipping region is determined according to the ratio of the size of the size and clipping region of the percentage;
S32, video is cut by compressing trimming algorithm.
Embodiment eight
As shown in figure 13, in the present embodiment, the step S10 includes:
S11, a two-dimentional reference frame is established, including horizontally and vertically;
The coordinate information that main body is shot in S12, each frame includes: to shoot arriving up and down horizontally and vertically for main body
Corresponding distance.
Embodiment nine
As shown in figure 14, in the present embodiment, the step S20 includes:
Shoot main body in S21, reading video in all frames arrives horizontally and vertically corresponding distance up and down;
S22, choose shooting main body in all frames to horizontally and vertically it is corresponding most on distance, most under distance,
Most left distance and most right distance, and by it is described most on distance, most under distance, most left distance and most right distance pair
The regional choice answered is clipping region;Ratio of the shooting main body in the clipping region is absolutely.
Embodiment ten
In the present embodiment, a kind of mobile terminal cuts dress including the video described in above embodiments based on frame coordinate
It sets.
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.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
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 device (can be mobile phone, computer, clothes
Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (7)
1. a kind of video Scissoring device based on frame coordinate characterized by comprising
Coordinate information read module, for reading the coordinate information for shooting main body in each frame of video;
Clipping region selecting module automatically obtains the shooting main body according to the coordinate information and exists for selecting clipping region
Ratio in the clipping region;
Module is cut, is used for according to the final clipping region of the ratio-dependent, according to the final clipping region to the video
It is cut;
Wherein, the coordinate information read module includes:
Establishment of coordinate system unit, for establishing a two-dimentional reference frame, including horizontally and vertically;
Coordinate information reading unit, for reading the coordinate information for shooting main body in each frame, the coordinate information includes: shooting
Main body arrives horizontally and vertically corresponding distance up and down;
The clipping region selecting module includes:
Traverse reading unit, for read in video shot in all frames main body arrive up and down horizontally and vertically corresponding to
Distance;
Optimal crop area selecting unit, for choose in all frames shoot main body to horizontally and vertically it is corresponding most on
Distance, most under distance, most left distance and most right distance, and by it is described most on distance, most under distance, it is most left away from
From with it is most right with a distance from corresponding regional choice be clipping region;Ratio of the shooting main body in the clipping region is hundred
/ hundred.
2. a kind of video Scissoring device based on frame coordinate according to claim 1, which is characterized in that further include:
Display module is being regarded for being shown ratio of the shooting main body in the clipping region by way of percentage
Frequency is cut on interface.
3. a kind of video Scissoring device based on frame coordinate according to claim 2, which is characterized in that the cutting module
Include:
Final clipping region confirmation unit, the ratio for the size according to the size and clipping region of the percentage are true
Fixed final clipping region;
Compression cuts unit, for being cut by compressing trimming algorithm to video.
4. a kind of video method of cutting out based on frame coordinate characterized by comprising
Read the coordinate information that main body is shot in each frame of video;
Clipping region is selected, ratio of the shooting main body in the clipping region is automatically obtained according to the coordinate information;
According to the final clipping region of the ratio-dependent, the video is cut according to the final clipping region;
It is wherein, described to read the coordinate information that main body is shot in each frame of video, specifically:
A two-dimentional reference frame is established, including horizontally and vertically;
The coordinate information that main body is shot in each frame includes: that arriving up and down for shooting main body is horizontally and vertically corresponding
Distance;
The selection clipping region automatically obtains ratio of the shooting main body in the clipping region according to the coordinate information
Example, comprising:
Shoot main body in reading video in all frames arrives horizontally and vertically corresponding distance up and down;
Choose in all frames shoot main body to horizontally and vertically it is corresponding most on distance, most under distance, it is most left away from
From with it is most right with a distance from, and by it is described most on distance, most under distance, most left distance and the corresponding region of most right distance
It is selected as clipping region;
Ratio of the shooting main body in the clipping region is absolutely.
5. a kind of video method of cutting out based on frame coordinate according to claim 4, which is characterized in that described according to
Coordinate information automatically obtains the shooting main body after the ratio in the clipping region further include:
The shooting main body is shown in the ratio in the clipping region by way of percentage and is cut on interface in video.
6. a kind of video method of cutting out based on frame coordinate according to claim 5, which is characterized in that described according to
The final clipping region of ratio-dependent, carrying out cutting to the video according to the final clipping region includes:
Final clipping region is determined according to the ratio of the size of the percentage and the size of the clipping region;
Video is cut by compressing trimming algorithm.
7. a kind of mobile terminal, which is characterized in that including the described in any item devices of claim 1-3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510712589.2A CN105263049B (en) | 2015-10-28 | 2015-10-28 | A kind of video Scissoring device, method and mobile terminal based on frame coordinate |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510712589.2A CN105263049B (en) | 2015-10-28 | 2015-10-28 | A kind of video Scissoring device, method and mobile terminal based on frame coordinate |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105263049A CN105263049A (en) | 2016-01-20 |
CN105263049B true CN105263049B (en) | 2019-10-29 |
Family
ID=55102528
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510712589.2A Active CN105263049B (en) | 2015-10-28 | 2015-10-28 | A kind of video Scissoring device, method and mobile terminal based on frame coordinate |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105263049B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018039877A1 (en) * | 2016-08-29 | 2018-03-08 | 深圳市大疆创新科技有限公司 | Guideline display method and system, and auxiliary photography device |
CN107580244A (en) * | 2017-07-31 | 2018-01-12 | 上海与德科技有限公司 | The method for cutting film source, the equipment and terminal that cut film source |
CN110830846B (en) * | 2018-08-07 | 2022-02-22 | 阿里巴巴(中国)有限公司 | Video clipping method and server |
CN109640150B (en) * | 2018-10-26 | 2021-10-15 | 广州方硅信息技术有限公司 | Method, equipment and device for adjusting reference video picture |
CN110223306B (en) * | 2019-06-14 | 2021-06-15 | 北京奇艺世纪科技有限公司 | Image clipping method and device |
CN111031178A (en) * | 2019-12-19 | 2020-04-17 | 维沃移动通信有限公司 | Video stream clipping method and electronic equipment |
CN111726688A (en) * | 2020-07-02 | 2020-09-29 | 深圳市鹰硕技术有限公司 | Method and device for self-adapting screen projection picture in network teaching |
CN112004032B (en) * | 2020-09-04 | 2022-02-18 | 北京字节跳动网络技术有限公司 | Video processing method, terminal device and storage medium |
CN112561840A (en) * | 2020-12-02 | 2021-03-26 | 北京有竹居网络技术有限公司 | Video clipping method and device, storage medium and electronic equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101132480A (en) * | 2006-07-25 | 2008-02-27 | 富士胶片株式会社 | Image trimming apparatus |
CN101197907A (en) * | 2006-09-25 | 2008-06-11 | 富士胶片株式会社 | Image data reproducing apparatus, method of controlling same and control program therefor |
CN101739562A (en) * | 2008-11-10 | 2010-06-16 | Nec九州软件株式会社 | Face image pick-up equipment and method, electronic advertising equipment and computer readable recording medium |
CN104301596A (en) * | 2013-07-11 | 2015-01-21 | 炬芯(珠海)科技有限公司 | Video processing method and device |
CN104361329A (en) * | 2014-11-25 | 2015-02-18 | 成都品果科技有限公司 | Photo cropping method and system based on face recognition |
CN104504649A (en) * | 2014-12-30 | 2015-04-08 | 百度在线网络技术(北京)有限公司 | Picture cutting method and device |
-
2015
- 2015-10-28 CN CN201510712589.2A patent/CN105263049B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101132480A (en) * | 2006-07-25 | 2008-02-27 | 富士胶片株式会社 | Image trimming apparatus |
CN101197907A (en) * | 2006-09-25 | 2008-06-11 | 富士胶片株式会社 | Image data reproducing apparatus, method of controlling same and control program therefor |
CN101739562A (en) * | 2008-11-10 | 2010-06-16 | Nec九州软件株式会社 | Face image pick-up equipment and method, electronic advertising equipment and computer readable recording medium |
CN104301596A (en) * | 2013-07-11 | 2015-01-21 | 炬芯(珠海)科技有限公司 | Video processing method and device |
CN104361329A (en) * | 2014-11-25 | 2015-02-18 | 成都品果科技有限公司 | Photo cropping method and system based on face recognition |
CN104504649A (en) * | 2014-12-30 | 2015-04-08 | 百度在线网络技术(北京)有限公司 | Picture cutting method and device |
Also Published As
Publication number | Publication date |
---|---|
CN105263049A (en) | 2016-01-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105263049B (en) | A kind of video Scissoring device, method and mobile terminal based on frame coordinate | |
CN104967744B (en) | Adjust the method and device of terminal parameter | |
CN104918064B (en) | A kind of method and device that mobile terminal video quickly plays | |
CN104850799B (en) | The method and mobile terminal of a kind of data in hiding mobile terminal | |
CN105306631B (en) | A kind of antenna and mobile terminal | |
CN106097284B (en) | A kind of processing method and mobile terminal of night scene image | |
CN104717361A (en) | Mobile terminal and intelligent scene mode adjusting method based on same | |
CN104916270B (en) | A kind of method and apparatus adjusting screen intensity | |
CN105138400B (en) | Application program self-starting management method and device | |
CN105101175B (en) | SIM (Subscriber Identity Module) card switching method and SIM card switching device of mobile terminal | |
CN105430258B (en) | A kind of method and apparatus of self-timer group photo | |
CN105897995B (en) | A kind of method and apparatus for adding contact information | |
CN104679890B (en) | Picture method for pushing and device | |
CN106131280A (en) | Mobile terminal and associated person information acquisition methods | |
CN106302086A (en) | A kind of different mobile terminal carries out the method for content synchronization, Apparatus and system | |
CN104968027A (en) | Wi-Fi control method and apparatus | |
CN106028090A (en) | Mobile terminal and video recording method thereof | |
CN106412328B (en) | A kind of method and apparatus obtaining field feedback | |
CN105187663B (en) | Automatically the method and terminal conversed | |
CN106303044B (en) | A kind of mobile terminal and obtain the method to coke number | |
CN105260096B (en) | A kind of method and mobile terminal controlling user's operation | |
CN105049916B (en) | A kind of video recording method and device | |
CN105049610B (en) | A kind of input method and terminal | |
CN106484534A (en) | Control method for the mobile terminal of displaying and control device | |
CN106227454B (en) | A kind of touch trajectory detection system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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 |