CN106534928A - Device and method for video processing - Google Patents

Device and method for video processing Download PDF

Info

Publication number
CN106534928A
CN106534928A CN201610978908.9A CN201610978908A CN106534928A CN 106534928 A CN106534928 A CN 106534928A CN 201610978908 A CN201610978908 A CN 201610978908A CN 106534928 A CN106534928 A CN 106534928A
Authority
CN
China
Prior art keywords
colour
picture frame
video file
pixel
pixel point
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.)
Pending
Application number
CN201610978908.9A
Other languages
Chinese (zh)
Inventor
孙垚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201610978908.9A priority Critical patent/CN106534928A/en
Publication of CN106534928A publication Critical patent/CN106534928A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/414Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
    • H04N21/41407Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance embedded in a portable device, e.g. video client on a mobile phone, PDA, laptop
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44008Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440263Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the spatial resolution, e.g. for displaying on a connected PDA
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440281Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the temporal resolution, e.g. by frame skipping

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses a device for video processing. The device comprises an extraction module, wherein the extraction module is used for carrying image frame extraction for a to-be-processed video file and a reference video file, a first image frame group corresponding to the to-be-processed video file and a second image frame group corresponding to the reference video file are acquired, and sharpness of the reference video file is higher than sharpness of the to-be-processed video file; an acquiring module, wherein the acquiring module is used for comparing the first image frame group with the second image frame group, the first image frames and the second image frames which are in matching are acquired, the first image frames are image frames of the first image frame group, and the second image frames are image frames of the second image frame group; and a processing module, wherein the processing module is used for adjusting color of the first image frames according to color of the second image frames so as to update the first image frames, and sharpness of the to-be-processed video file is adjusted. The invention further discloses a method for video processing. The device is advantaged in that sharpness of the video files is effectively improved.

Description

Video process apparatus and method
Technical field
The present invention relates to technical field of mobile terminals, more particularly to a kind of video process apparatus and method.
Background technology
With developing rapidly for science and technology, the mobile terminal such as the mobile phone with camera function, PAD (panel computer) has been obtained extensively Using meeting the demand shot whenever and wherever possible by people.When user shoots video using mobile terminal, due to by user The impact of each side factors such as shooting level, reference object movement, it is easy to just shoot the video of fuzzy pictures, namely video The definition of file is not high.The video file relatively low for definition, comes generally by the parameters such as its resolution, code check are changed Strengthen the definition of video file, but due to not being in absolute direct ratio between the definition and resolution and code check of video file Or inverse relation, therefore, by the resolution and code check that change video file, can not effectively strengthen the clear of video file Degree.
The content of the invention
Present invention is primarily targeted at proposing a kind of video process apparatus and method, it is intended to cannot in solving prior art Effectively strengthen the technical problem of the definition of video file.
For achieving the above object, a kind of video process apparatus that the present invention is provided, the video process apparatus include:
Extraction module, for carrying out picture frame extraction by pending video file and with reference to video file, obtain described in treat Process the corresponding first picture frame group of video file and described with reference to the corresponding second picture frame group of video file, wherein, it is described The high definition of reference video file is in the definition of the pending video file;
Acquisition module, for described first image frame group is contrasted with the second picture frame group, obtains matching First picture frame and the second picture frame, wherein, described first image frame is the picture frame in described first image frame group, described the Two picture frames are the picture frame in the second picture frame group;
Processing module, for the colour according to second picture frame, adjusts the colour of described first image frame, to update Described first image frame, is adjusted to the definition of the pending video file.
Alternatively, the video process apparatus also include:
Identification module, for recognize in the first object in described first image frame, and second picture frame with institute State the second object of the first object matching;
The processing module, for the colour according to corresponding each pixel of second object, adjusts described first The colour of corresponding each pixel of object.
Alternatively, the processing module includes:
Comparing unit, for successively using each pixel of first object as current pixel point, will be described current Colour of the colour of pixel with the current pixel point corresponding to the first pixel of second object is contrasted, and will The colour of the vicinity points of the current pixel point corresponds to the second pixel of second object with the vicinity points The colour of point is contrasted, wherein, the vicinity points include the left pixel of the current pixel point, right pixel, on Pixel, lower pixel, top left pixel point, bottom left pixel point, top right pel point, bottom right pixel point;
Processing unit, for the colour in the current pixel point and corresponding first pixel colour not Match somebody with somebody, and the colour of the colour of the vicinity points and corresponding second pixel is when matching, by the current pixel point Colour be adjusted to the colour of corresponding first pixel.
Alternatively, the comparing unit, is additionally operable to the neighbour of the colour of the current pixel point and the current pixel point The colour of nearly pixel is contrasted;
The processing unit, is additionally operable to match with the colour of the vicinity points in the colour of the current pixel point, And the colour of the colour of the current pixel point and corresponding first pixel is when mismatching, the current pixel point is kept Colour it is constant.
Alternatively, the video process apparatus also include:
Modular converter, for resolution and frame per second according to the pending video file, to described with reference to video file Enter row format conversion, so that the resolution of the reference video file after form conversion and dividing for the pending video file Resolution is identical, and the frame per second with reference to video file is identical with the frame per second of the pending video file.
Additionally, for achieving the above object, the present invention also proposes a kind of method for processing video frequency, and the method for processing video frequency includes Following steps:
Picture frame extraction is carried out by pending video file and with reference to video file, the pending video file pair is obtained The the first picture frame group answered and the corresponding second picture frame group of the reference video file, wherein, the reference video file High definition is in the definition of the pending video file;
Described first image frame group is contrasted with the second picture frame group, first picture frame and the of matching is obtained Two picture frames, wherein, described first image frame is the picture frame in described first image frame group, and second picture frame is described Picture frame in second picture frame group;
According to the colour of second picture frame, the colour of described first image frame is adjusted, to update described first image Frame, is adjusted to the definition of the pending video file.
Alternatively, the colour according to second picture frame, adjust described first image frame colour the step of it Before, also include:
Identification described first image frame in the first object, and in second picture frame with first object matching The second object;
The step of colour according to second picture frame, colour for adjusting described first image frame, includes:
According to the colour of corresponding each pixel of second object, corresponding each pixel of first object is adjusted The colour of point.
Alternatively, the colour according to corresponding each pixel of second object, adjusts first object pair The step of colour of each pixel answered, includes:
Successively using each pixel of first object as current pixel point, by the colour of the current pixel point with The current pixel point is contrasted corresponding to the colour of the first pixel of second object, and by the current pixel point Vicinity points colour and the vicinity points corresponding to the second pixel of second object colour carry out it is right Than, wherein, the vicinity points include the left pixel of the current pixel point, right pixel, upper pixel, lower pixel Point, top left pixel point, bottom left pixel point, top right pel point, bottom right pixel point;
Mismatch with the colour of corresponding first pixel in the colour of the current pixel point, and the neighbouring picture When the colour of vegetarian refreshments is matched with the colour of corresponding second pixel, the colour of the current pixel point is adjusted to into correspondence First pixel colour.
Alternatively, the colour according to corresponding each pixel of second object, adjusts first object pair The step of colour of each pixel answered, also includes:
Colour of the colour of the current pixel point with the vicinity points of the current pixel point is contrasted;
Match with the colour of the vicinity points in the colour of the current pixel point, and the color of the current pixel point When being worth the colour mismatch with corresponding first pixel, keep the colour of the current pixel point constant.
Alternatively, it is described to carry out picture frame extraction by pending video file and with reference to video file, obtain described in wait to locate Before the step of corresponding first picture frame group of reason video file and the second picture frame group corresponding with reference to video file, also Including:
According to the resolution and frame per second of the pending video file, enter row format conversion with reference to video file to described, So that the resolution with reference to video file after form conversion is identical with the resolution of the pending video file, and institute State identical with the frame per second of the pending video file with reference to the frame per second of video file.
Video process apparatus proposed by the present invention and method, by the extraction module pending video file low to definition Picture frame extraction is carried out with reference to video file with high definition, acquisition module obtains the first of the pending video file of matching Picture frame and with reference to video file the second picture frame, then processing module according to the colour of the second picture frame to the first picture frame Colour be adjusted, namely the first picture frame of pending video file is entered by referring to the second picture frame of video file Row color value optimizing, so as to effectively strengthen the definition of pending video file.
Description of the drawings
Fig. 1 is the hardware architecture diagram for realizing the optional mobile terminal of each embodiment one of the invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the module diagram of video process apparatus first embodiment of the present invention;
Fig. 4 is the module diagram of video process apparatus second embodiment of the present invention;
Fig. 5 is the refinement module schematic diagram of processing module in video process apparatus second embodiment of the present invention;
Fig. 6 is the module diagram of video process apparatus 3rd embodiment of the present invention;
Fig. 7 is the schematic flow sheet of method for processing video frequency first embodiment of the present invention;
Fig. 8 is the schematic flow sheet of method for processing video frequency second embodiment of the present invention;
Fig. 9 is the schematic flow sheet of method for processing video frequency 3rd embodiment of the present invention.
The realization of the object of the invention, functional characteristics and advantage will be described further in conjunction with the embodiments referring to the drawings.
Specific embodiment
It should be appreciated that specific embodiment described herein is not intended to limit the present invention only to explain the present invention.
The mobile terminal of each embodiment of the invention is realized referring now to Description of Drawings.In follow-up description, use For representing the suffix of such as " module ", " part " or " unit " of element only for being conducive to the explanation of the present invention, itself Not specific meaning.Therefore, " module " mixedly can be used with " part ".
Mobile terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as moving Phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP The mobile terminal of (portable media player), guider etc. and such as numeral TV, desk computer etc. are consolidated Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that, except being used in particular for movement Outside the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is that the hardware configuration of the mobile terminal for realizing each embodiment of the invention is illustrated.
Mobile terminal 1 00 can include wireless communication unit 110, A/V (audio/video) input block 120, user input Unit 130, output unit 150, memorizer 160, controller 180 and power subsystem 190 etc..Fig. 1 is shown with various groups The mobile terminal of part, it should be understood that being not required for implementing all components for illustrating.Can alternatively implement more or more Few component.Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assemblies, and which allows mobile terminal 1 00 and radio communication device Or the radio communication between network.For example, wireless communication unit can include broadcasting reception module 111, mobile communication module 112nd, 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 can include satellite channel and/or terrestrial channel.Broadcast management server can be generated and sent The broadcast singal generated before the server or reception of broadcast singal and/or broadcast related information and/or broadcast related information And send it to the server of terminal.Broadcast singal can include TV broadcast singals, radio signals, data broadcasting Signal etc..And, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase Pass information can also be provided via mobile communications network, and in this case, broadcast related information can be by mobile communication mould Block 112 is receiving.Broadcast singal can be present in a variety of manners, and for example, which can be with the electronics of DMB (DMB) The form of program guide (EPG), the electronic service guidebooks (ESG) of digital video broadcast-handheld (DVB-H) etc. and exist.Broadcast Receiver module 111 can receive signal broadcast by using various types of broadcasters.Especially, broadcasting reception module 111 Can be wide by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video Broadcast-hand-held (DVB-H), forward link media (MediaFLO@) data broadcasting device, received terrestrial digital broadcasting integrated service Etc. (ISDB-T) digital broadcast apparatus receive digital broadcasting.Broadcasting reception module 111 may be constructed such that and be adapted to provide for extensively Broadcast the various broadcasters and above-mentioned digital broadcast apparatus of signal.Via broadcasting reception module 111 receive broadcast singal and/ Or broadcast related information can be stored in memorizer 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 can be logical including voice Words signal, video calling signal or the various types of data for sending and/or receiving according to text and/or Multimedia Message.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.The module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by the module can including WLAN (WLAN) (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 junction service.Some examples of short-range communication technology include indigo plant ToothTM, RF identification (RFID), Infrared Data Association (IrDA), ultra broadband (UWB), purple honeybeeTMEtc..
Location information module 115 is the module for checking or obtaining the positional information of mobile terminal.Location information module Typical case be GPS (global pick device).According to current technology, GPS module 115 is calculated from three or more satellites Range information and correct time information and for calculate Information application triangulation, so as to according to longitude, latitude Three-dimensional current location information is calculated highly accurately.Currently, defended using three for calculating the method for position and temporal information The error of star and the position that calculated by using other satellite correction and temporal information.Additionally, GPS module 115 Can be by Continuous plus current location information in real time come calculating speed information.
A/V input blocks 120 are used to receive audio or video signal.A/V input blocks 120 can include 121 He of camera Mike 122, the static images that 121 pairs, camera is obtained by image capture apparatus in Video Capture pattern or image capture mode Or the view data of video is processed.Picture frame after process is may be displayed on display unit 151.Jing cameras 121 are processed Carry out sending out during picture frame afterwards can be stored in memorizer 160 (or other storage mediums) or via wireless communication unit 110 Send, two or more cameras 121 can be provided according to the construction of mobile terminal.Mike 122 can be in telephone calling model, note Sound (voice data) is received via mike in record pattern, speech recognition mode etc. operational mode, and can be by so Acoustic processing be voice data.Audio frequency (voice) data after process can be converted in the case of telephone calling model can The form output of mobile communication base station is sent to via mobile communication module 112.Mike 122 can implement various types of making an uproar Sound eliminates (or suppression) algorithm to eliminate the noise or dry that (or suppression) is produced during reception and transmission audio signal Disturb.
User input unit 130 can generate key input data to control each of mobile terminal according to the order of user input Plant operation.User input unit 130 allows the various types of information of user input, and can include keyboard, metal dome, touch Plate (for example, detection is due to the sensitive component of the change of touched and caused resistance, pressure, electric capacity etc.), roller, rocking bar etc. Deng.Especially, when touch pad is superimposed upon on display unit 151 in the form of layer, touch screen can be formed.
The information that display unit 151 is processed in may be displayed on mobile terminal 1 00.For example, when mobile terminal 1 00 is in electricity During words call mode, display unit 151 can show and converse or other communicate (for example, text messaging, multimedia files Download etc.) related user interface (UI) or graphic user interface (GUI).When mobile terminal 1 00 is in video calling pattern Or during image capture mode, display unit 151 can show the image of capture and/or the image of reception, illustrate video or figure UI or GUI of picture and correlation function etc..
Meanwhile, when the display unit 151 and touch pad touch screen with formation superposed on one another in the form of layer, display unit 151 can serve as input equipment and output device.Display unit 151 can 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 display may be constructed such that transparence to allow user from outside viewing, and 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 The embodiment wanted, mobile terminal 1 00 can include two or more display units (or other display devices), for example, move Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch screen can be used for detection and touch Input pressure and touch input position and touch input area.
Dio Output Modules 152 can mobile terminal in call signal reception pattern, call mode, logging mode, It is when under the isotypes such as speech recognition mode, broadcast reception mode, that wireless communication unit 110 is received or in memorizer 160 The voice data transducing audio signal of middle storage and it is output as sound.And, dio Output Modules 152 can be provided and movement The audio output (for example, call signal receives sound, message sink sound etc.) of the specific function correlation that terminal 100 is performed. Dio Output Modules 152 can include pick up, buzzer etc..
Memorizer 160 can store software program for the process and control operation performed by controller 180 etc., Huo Zheke With the data (for example, telephone directory, message, still image, video etc.) for temporarily storing own Jing outputs or will export.And And, memorizer 160 can be storing the vibration of various modes with regard to exporting when touching and being applied to touch screen and audio signal Data.
Memorizer 160 can include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, many Media card, card-type memorizer (for example, SD or DX memorizeies etc.), random access storage device (RAM), static random-access storage Device (SRAM), read only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..And, mobile terminal 1 00 can perform memorizer with by network connection The network storage device cooperation of 160 store function.
The overall operation of the generally control mobile terminal of controller 180.For example, controller 180 is performed and voice call, data The related control of communication, video calling etc. and process.In addition, controller 180 can be included for reproducing (or playback) many matchmakers The multi-media module 181 of volume data, multi-media module 181 can be constructed in controller 180, or it is so structured that and control Device 180 is separated.Controller 180 can be with execution pattern identifying processing, by the handwriting input for performing on the touchscreen or picture Draw input and be identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each unit Appropriate electric power needed for part and component.
Various embodiments described herein can be with use such as computer software, hardware or its any combination of calculating Machine computer-readable recording medium is implementing.For 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), processor, controller, microcontroller, microprocessor, it is designed to perform function described herein At least one in electronic unit implementing, in some cases, can be implemented in controller 180 by such embodiment. For software is implemented, the embodiment of such as process or function can with allow to perform the single of at least one function or operation Software module is implementing.Software code can be come by the software application (or program) write with any appropriate programming language Implement, perform during software code can be stored in memorizer 160 and by controller 180.
So far, own Jing describes mobile terminal according to its function.Below, 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. is used as showing Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
As shown in Figure 1 mobile terminal 1 00 may be constructed such that using via frame or packet transmission data it is all if any Line and radio communication device and satellite-based communicator are operating.
The communicator that mobile terminal wherein of the invention is operable to is described referring now to Fig. 2.
Such communicator can use different air interfaces and/or physical layer.For example, used by communicator Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications dress Put (UMTS) (especially, Long Term Evolution (LTE)), global mobile communication device (GSM) etc..As non-limiting example, under The description in face is related to cdma communication device, but such teaching is equally applicable to other types of device.
With reference to Fig. 2, cdma wireless communication device can include multiple mobile terminal 1s 00, 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. If back haul link can be constructed according to any one in the interface that Ganji knows, the interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that device can 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 sensing specific direction Each subregion that line is covered is radially away from BS270.Or, each subregion can by for diversity reception two or more Antenna is covered.Each BS270 may be constructed such that the multiple frequency distribution of support, and each frequency distribution with specific frequency spectrum (for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed intersect can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver Device (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly representing single BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Or, each subregion of specific BS270 can be claimed For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to broadcsting transmitter (BT) 295 mobile terminal operated in device 100.Broadcasting reception module 111 is arranged at mobile terminal 1 00 to receive the broadcast sent by BT295 as shown in Figure 1 Signal.In fig. 2 it is shown that several global pick device (GPS) satellites 300.Satellite 300 helps position multiple mobile terminals At least one of 100.
In fig. 2, multiple satellites 300 are depicted, but it is understood that, it is possible to use any number of satellite is obtained Useful location information.GPS module 115 is generally configured to coordinate with satellite 300 with determining that acquisition is wanted as shown in Figure 1 Position information.Substitute GPS tracking techniques or outside GPS tracking techniques, it is possible to use the position of mobile terminal can be tracked Other technologies.In addition, at least one gps satellite 300 can optionally or additionally process satellite dmb transmission.
Used as a typical operation of radio communication device, BS270 receives the reverse link from various mobile terminal 1s 00 Signal.Mobile terminal 1 00 generally participates in call, information receiving and transmitting and other types of communication.Each of the reception of certain base station 270 is anti- Processed in specific BS270 to link signal.The data of acquisition are forwarded to the BSC275 of correlation.BSC provides call Resource allocation and the mobile management function of the coordination including the soft switching process between BS270.BSC275 is also by the number for receiving According to MSC280 is routed to, which is provided for the extra route service with PSTN290 formation interfaces.Similarly, PSTN290 with MSC280 forms interface, and MSC and BSC275 form interface, and BSC275 correspondingly controls BS270 with by forward link signals It is sent to mobile terminal 1 00.
Based on above-mentioned mobile terminal hardware configuration and communication system, each is implemented to propose video process apparatus of the present invention Example.
As shown in figure 3, in the first embodiment, the video process apparatus include:
Extraction module 10, for carrying out picture frame extraction by pending video file and with reference to video file, obtains described The pending corresponding first picture frame group of video file and the corresponding second picture frame group of the reference video file, wherein, institute The high definition of reference video file is stated in the definition of the pending video file;
In daily life, user can the mobile terminal such as commonly used smart mobile phone, PAD (panel computer) carry out video bat Take the photograph, but due to being affected by each side reasons such as user's shooting level, reference object movements, in video, often there is fuzzy picture Face, affects the definition of video.In order to be optimized to the definition of video, in the present embodiment, user first selects needs and carries out The pending video file of optimization, and the pending video file is corresponding with reference to video file, wherein, reference the video is literary In the definition of pending video file, alternatively, this with reference to video file with pending video file is the high definition of part The video file of Same Scene shooting is directed to, with the definition with reference to video file as reference, to pending video file It is optimized.
Specifically, extraction module 10 to pending video file and carries out picture frame with reference to video file and carries respectively first Take, obtain the corresponding first picture frame group of pending video file, and with reference to the corresponding second picture frame group of video file.
Acquisition module 20, for described first image frame group is contrasted with the second picture frame group, obtains matching The first picture frame and the second picture frame, wherein, described first image frame be described first image frame group in picture frame, it is described Second picture frame is the picture frame in the second picture frame group;
When getting the corresponding first picture frame group of pending video file and with reference to corresponding second image of video file After frame group, the first picture frame group is contrasted by acquisition module 20 with the second picture frame group, obtains the first picture frame of matching The second picture frame in the first picture frame and the second picture frame group in group, namely find out the first picture frame group and the second picture frame Matching picture frame in group.It is understood that the first picture frame can be multiple with the quantity of the second picture frame, namely obtain Module 20 obtains the picture frame of multigroup matching.
Processing module 30, for the colour according to second picture frame, adjusts the colour of described first image frame, with more New described first image frame, is adjusted to the definition of the pending video file.
After acquisition module 20 gets first picture frame and the second picture frame of matching, processing module 30 obtains second The colour parameter of picture frame, the then colour according to the second picture frame, the color of the first picture frame that the second picture frame is matched Value is adjusted, and is optimized with the colour to the first picture frame, updates the first picture frame.For example, processing module 30 is according to The colour of each pixel of two picture frames, is adjusted to the colour of each pixel of the first picture frame, so as to first The colour of picture frame is optimized.It is optimized by the first picture frame corresponding to pending video file, so that treating The definition for processing video file is strengthened.
When acquisition module 20 gets first picture frame and the second picture frame of multigroup matching, processing module 30 is according to upper State mode to be adjusted the colour of each the first picture frame successively, so as to strengthen the definition of pending video file.
Further, first picture frame and the second picture frame of matching are obtained in acquisition module 20, processing module 30 pairs the Before the colour of one picture frame is adjusted, processing module 30 is first detected to the definition of the first picture frame, if the first figure As the definition of frame is very high, such as more than a certain default clarity threshold, then processing module 30 is not to first picture frame It is adjusted;If the definition of the first picture frame is relatively low, the second image that processing module 30 is matched according to the first picture frame The colour of frame, is adjusted to the colour of the first picture frame.
Alternatively, when acquisition module 20 gets first picture frame and the second picture frame of multigroup matching, it is possible to use Family need not all carry out colour regulation to each group of the first picture frame, user can select in multiple first picture frames need into The key images frame that row colour is adjusted, the key images frame that processing module 30 is selected according to user, and key images frame institute The colour of the second picture frame matched somebody with somebody, is adjusted to the colour of key images frame, so as to optimize key images frame, waits to locate to strengthen The definition of reason video file.
The scheme that the present embodiment is proposed, by the pending video file low to definition of extraction module 10 and high definition Carry out picture frame extraction with reference to video file, acquisition module 20 obtain the first picture frame of the pending video file of matching and With reference to the second picture frame of video file, then colour of the processing module 30 according to the colour of the second picture frame to the first picture frame It is adjusted, namely colour is carried out to the first picture frame of pending video file by referring to the second picture frame of video file Optimization, so as to effectively strengthen the definition of pending video file, improves the experience that user watches video.
Further, as shown in figure 4, proposing video process apparatus second embodiment of the present invention.Video process apparatus second Embodiment with the difference of video process apparatus first embodiment is, in video process apparatus second embodiment, the video Processing meanss also include:
Identification module 40, for recognize in the first object in described first image frame, and second picture frame with Second object of first object matching;
The processing module 30 is used for:
According to the colour of corresponding each pixel of second object, corresponding each pixel of first object is adjusted The colour of point.
In the present embodiment, after acquisition module 20 gets first picture frame and the second picture frame of matching, identification module 40 identify the first object in the first picture frame, and the second object in the second picture frame with the first object matching.For example, The crucial focus in crucial focus and the second picture frame in first picture frame is all building A, and identification module 40 is by image Recognizer, identifies that first object and the second object of matching is building A.
Afterwards, processing module 30 obtains the colour of corresponding each pixel of the second object, and according to the second object correspondence Each pixel colour, adjust the colour of corresponding each pixel of the first object.For example, still by taking building A as an example, place Colour of the reason module 30 according to corresponding each pixel of the building A in the second picture frame, in adjusting the first picture frame, this is built The colour of corresponding each pixel of thing A is built, so that the definition of the building A reaches the second image in the first picture frame The definition of the building A in frame, so as to enhance the definition of pending video file.
Specifically, as shown in figure 5, in the present embodiment, the processing module 30 includes:
Comparing unit 31, for successively using each pixel of first object as current pixel point, working as described Colour of the colour of preceding pixel point with the current pixel point corresponding to the first pixel of second object is contrasted, and The colour of the vicinity points of the current pixel point and the vicinity points are corresponded to into the second picture of second object The colour of vegetarian refreshments is contrasted, wherein, the vicinity points include the left pixel of the current pixel point, right pixel, Upper pixel, lower pixel, top left pixel point, bottom left pixel point, top right pel point, bottom right pixel point;
Processing unit 32, for the colour in the current pixel point and corresponding first pixel colour not Match somebody with somebody, and the colour of the colour of the vicinity points and corresponding second pixel is when matching, by the current pixel point Colour be adjusted to the colour of corresponding first pixel.
When the colour of each pixel to the first object is adjusted, comparing unit 31 is successively by each of the first object Individual pixel is used as current pixel point, it is then determined that the vicinity points of current pixel point, wherein, the neighbouring picture of current pixel point Vegetarian refreshments includes the left pixel of current pixel point, right pixel, upper pixel, lower pixel, top left pixel point, bottom left pixel Point, top right pel point, bottom right pixel point.Meanwhile, first pixel of the current pixel point corresponding to the second object is also determined that, and Second pixel of the vicinity points of current pixel point corresponding to the second object.
Comparing unit 31 is by the colour of current pixel point with current pixel point corresponding to the first pixel of the second object Colour is contrasted, and the colour of the vicinity points of current pixel point is corresponded to the second of the second object with vicinity points The colour of pixel is contrasted.Judge whether the colour of current pixel point is matched with the colour of corresponding first pixel, with And whether the colour of the vicinity points of current pixel point is matched with the colour of corresponding second pixel.
If the colour of current pixel point is same or like with the colour of corresponding first pixel, current pixel is judged The colour of point is matched with the colour of corresponding first pixel.If conversely, the colour of current pixel point and corresponding first pixel The colour difference of point is larger, then judge that the colour of current pixel point is mismatched with the colour of corresponding first pixel.For example, in advance One default colour difference limen value is first set, if the colour of current pixel point is poor with the colour of the colour of corresponding first pixel definitely Value then judges the colour of current pixel point and the colour of corresponding first pixel less than or equal to the default colour difference limen value Match somebody with somebody;If the colour of current pixel point is more than the default colour difference limen with the poor absolute value of colour of the colour of corresponding first pixel Value, then judge that the colour of current pixel point is mismatched with the colour of corresponding first pixel.
Similarly, if the colour of the vicinity points of current pixel point it is identical with the colour of corresponding second pixel or It is close, then judge that the colour of vicinity points of current pixel point is matched with the colour of corresponding second pixel.If conversely, working as The colour of the vicinity points of preceding pixel point differs larger with the colour of corresponding second pixel, then judge current pixel point The colour of vicinity points is mismatched with the colour of corresponding second pixel.
If the colour of current pixel point is mismatched with the colour of corresponding first pixel, and the neighbouring picture of current pixel point The colour of vegetarian refreshments is matched with the colour of corresponding second pixel, namely the very possible distortion of colour of explanation current pixel point, Now, the colour of current pixel point is adjusted to processing unit 32 colour of corresponding first pixel of current pixel point.
Further, the comparing unit 31 is additionally operable to:
Colour of the colour of the current pixel point with the vicinity points of the current pixel point is contrasted;
The processing unit 32 is additionally operable to:
Match with the colour of the vicinity points in the colour of the current pixel point, and the color of the current pixel point When being worth the colour mismatch with corresponding first pixel, keep the colour of the current pixel point constant.
In order to avoid colour adjust distortion, in the present embodiment, comparing unit 31 also by the colour of current pixel point with it is current The colour of the vicinity points of pixel is contrasted, and judges the colour of current pixel point and the vicinity points of current pixel point Colour whether match.Similarly, if the colour of current pixel point it is identical with the colour of the vicinity points of current pixel point or Person is close, then judge that the colour of current pixel point and the colour of the vicinity points of current pixel point are matched.Otherwise, if current picture The colour of vegetarian refreshments differs larger with the colour of the vicinity points of current pixel point, then judge the colour of current pixel point with it is current The colour of the vicinity points of pixel is mismatched.
If the colour of the colour of current pixel point and corresponding first pixel is mismatched, but the colour of current pixel point with The colour matching of the vicinity points of current pixel point, now, if being adjusted to the colour of current pixel point, is likely to Cause image fault, therefore, in this case, processing unit 32 keeps the colour of current pixel point constant.
The scheme that the present embodiment is proposed, recognizes the first object in the first picture frame, and first by identification module 40 The second object that object is matched in the second picture frame, color of the processing module 30 according to corresponding each pixel of the second object Value, is adjusted to the colour of corresponding each pixel of the first object, carries out color to whole first picture frame so as to avoid Value is adjusted, and improves the efficiency of picture frame colour regulation, namely the efficiency that improve the process of video file definition.
Further, as shown in fig. 6, proposing video process apparatus 3rd embodiment of the present invention.Video process apparatus the 3rd Embodiment with the difference of video process apparatus first embodiment and second embodiment is, in video process apparatus 3rd embodiment In, the video process apparatus also include:
Modular converter 50, for resolution and frame per second according to the pending video file, to described with reference to video text Part enters row format conversion, so that the resolution and the pending video file with reference to video file after form conversion Resolution is identical, and the frame per second with reference to video file is identical with the frame per second of the pending video file.
In the present embodiment, extraction module 10 is to pending video file and carries out picture frame with reference to video file and extracts it Before, modular converter 50 first obtains the resolution and frame per second of pending video file, then according to the pending video file for obtaining Resolution and frame per second, to reference to video file enter row format conversion, change with reference to video file resolution and frame per second, make lattice The resolution of the reference video file after formula conversion is identical with the resolution of pending video file, and with reference to the frame of video file Rate is also identical with the frame per second of pending video file.
Afterwards, extraction module 10 is the same from pending video file to resolution and frame per second again and enters with reference to video file Row picture frame is extracted, and the frame per second due to pending video file and the frame per second with reference to video file are all identical, are easy to acquisition module 20 are contrasted by pending video file corresponding picture frame and with reference to the corresponding picture frame of video file, so as to obtain matching The first picture frame and the second picture frame.Also, the resolution due to pending video file and the resolution with reference to video file Rate is identical, namely the resolution of first picture frame and the second picture frame of matching is identical, therefore, it is easy to processing module 30 pairs first Each pixel of each pixel and the second picture frame of picture frame carries out Corresponding matching, determines the first picture frame each Corresponding matching pixel of the pixel corresponding to the second picture frame, so as to the colour of the pixel according to Corresponding matching, to first The colour of each pixel of picture frame is adjusted, and reaches the effect of the definition for strengthening the first picture frame.
The scheme that the present embodiment is proposed, the resolution and frame per second first according to pending video file of modular converter 50, to ginseng According to video file enter row format conversion, make form conversion after reference video file resolution and frame per second all with pending video The resolution of file is identical with frame per second, consequently facilitating acquisition module 20 obtains first picture frame and the second picture frame of matching, with And processing module 30 is adjusted to the colour of the first picture frame according to the colour of the second picture frame, therefore, further increase The efficiency that picture frame colour is adjusted, namely further increase the efficiency of video file definition process.
The present invention further provides a kind of method for processing video frequency.
With reference to Fig. 7, Fig. 7 is the schematic flow sheet of method for processing video frequency first embodiment of the present invention, in the first embodiment, The method for processing video frequency is comprised the following steps:
Step S10, carries out picture frame extraction by pending video file and with reference to video file, obtains described pending regard The corresponding first picture frame group of frequency file and the corresponding second picture frame group of the reference video file, wherein, the reference is regarded The high definition of frequency file is in the definition of the pending video file;
In daily life, user can the mobile terminal such as commonly used smart mobile phone, PAD (panel computer) carry out video bat Take the photograph, but due to being affected by each side reasons such as user's shooting level, reference object movements, in video, often there is fuzzy picture Face, affects the definition of video.In order to be optimized to the definition of video, in the present embodiment, user first selects needs and carries out The pending video file of optimization, and the pending video file is corresponding with reference to video file, wherein, reference the video is literary In the definition of pending video file, alternatively, this with reference to video file with pending video file is the high definition of part The video file of Same Scene shooting is directed to, with the definition with reference to video file as reference, to pending video file It is optimized.
Specifically, mobile terminal carries out picture frame extraction to pending video file and with reference to video file first respectively, The corresponding first picture frame group of pending video file is obtained, and with reference to the corresponding second picture frame group of video file.
Step S20, described first image frame group is contrasted with the second picture frame group, obtains the first figure of matching As frame and the second picture frame, wherein, described first image frame is the picture frame in described first image frame group, second image Frame is the picture frame in the second picture frame group;
It is when acquisition for mobile terminal to the corresponding first picture frame group of pending video file and corresponding with reference to video file After second picture frame group, the first picture frame group is contrasted with the second picture frame group, obtained the first picture frame group of matching In the first picture frame and the second picture frame group in the second picture frame, namely find out the first picture frame group and the second picture frame group In matching picture frame.It is understood that the first picture frame can be multiple with the quantity of the second picture frame, namely obtain many The picture frame of group matching.
Step S30, according to the colour of second picture frame, adjusts the colour of described first image frame, described to update First picture frame, is adjusted to the definition of the pending video file.
After the first picture frame and the second picture frame that get matching, the colour of the second picture frame of acquisition for mobile terminal Parameter, the then colour according to the second picture frame, the colour of the first picture frame matched to the second picture frame are adjusted, with The colour of the first picture frame is optimized, the first picture frame is updated.For example, each picture of mobile terminal according to the second picture frame The colour of vegetarian refreshments, is adjusted to the colour of each pixel of the first picture frame, so as to the colour to the first picture frame is carried out Optimization.It is optimized by the first picture frame corresponding to pending video file, so that pending video file is clear Clear degree is strengthened.
When first picture frame and the second picture frame of multigroup matching is got, in the manner described above successively to each first The colour of picture frame is adjusted, so as to strengthen the definition of pending video file.
Further, first picture frame and the second picture frame of matching are being obtained, the colour of the first picture frame is being adjusted Before section, first the definition of the first picture frame is detected, if the definition of the first picture frame is very high, such as more than certain One default clarity threshold, then be not adjusted to first picture frame;If the definition of the first picture frame is relatively low, according to The colour of the second picture frame that one picture frame is matched, is adjusted to the colour of the first picture frame.
Alternatively, when first picture frame and the second picture frame of multigroup matching is got, it is possible to which user need not be right Each group of the first picture frame all carries out colour regulation, and user can be selected in multiple first picture frames to be needed to carry out colour regulation Key images frame, the key images frame that mobile terminal is selected according to user, and the second image that key images frame is matched The colour of frame, is adjusted to the colour of key images frame, so as to optimize key images frame, to strengthen pending video file Definition.
The scheme that the present embodiment is proposed, mobile terminal is by the pending video file low to definition and high definition Picture frame extraction is carried out with reference to video file, the first picture frame of the pending video file of matching is obtained and with reference to video file The second picture frame, then the colour of the first picture frame is adjusted according to the colour of the second picture frame, namely by referring to Second picture frame of video file carries out color value optimizing to the first picture frame of pending video file, waits to locate so as to effectively strengthen The definition of reason video file, improves the experience that user watches video.
Further, as shown in figure 8, proposing method for processing video frequency second embodiment of the present invention.Method for processing video frequency second Embodiment with the difference of method for processing video frequency first embodiment is, in method for processing video frequency second embodiment, the step Before S30, also including step:
Step S40, recognizes the first object in described first image frame, and with described first in second picture frame Second object of object matching;
Step S30 includes:
Step S31, according to the colour of corresponding each pixel of second object, adjusts first object corresponding The colour of each pixel.
In the present embodiment, after first picture frame and the second picture frame of acquisition for mobile terminal to matching, first is identified The first object in picture frame, and the second object in the second picture frame with the first object matching.For example, in the first picture frame Crucial focus and the second picture frame in crucial focus be all building A, mobile terminal is identified by image recognition algorithm First object and the second object of matching is building A.
Afterwards, the colour of corresponding each pixel of the second object of acquisition for mobile terminal, and it is corresponding according to the second object The colour of each pixel, adjusts the colour of corresponding each pixel of the first object.For example, it is still by taking building A as an example, mobile Colour of the terminal according to corresponding each pixel of the building A in the second picture frame, adjusts the building A in the first picture frame The colour of corresponding each pixel, so that the definition of the building A is reached in the second picture frame in the first picture frame The definition of the building A, so as to enhance the definition of pending video file.
Specifically, in the present embodiment, step S31 includes:
Step a, successively using each pixel of first object as current pixel point, by the current pixel point Colour of the colour with the current pixel point corresponding to the first pixel of second object is contrasted, and will be described current The colour of the vicinity points of pixel corresponds to the colour of the second pixel of second object with the vicinity points Contrasted, wherein, the vicinity points include the left pixel of the current pixel point, right pixel, upper pixel, under Pixel, top left pixel point, bottom left pixel point, top right pel point, bottom right pixel point;
Step b, is mismatched with the colour of corresponding first pixel in the colour of the current pixel point, and described When the colour of vicinity points is matched with the colour of corresponding second pixel, the colour of the current pixel point is adjusted For the colour of corresponding first pixel.
Mobile terminal when the colour of each pixel to the first object is adjusted, successively by the first object each Pixel is used as current pixel point, it is then determined that the vicinity points of current pixel point, wherein, the neighborhood pixels of current pixel point Point include the left pixel of current pixel point, right pixel, upper pixel, lower pixel, top left pixel point, bottom left pixel point, Top right pel point, bottom right pixel point.Meanwhile, first pixel of the current pixel point corresponding to the second object is also determined that, and is worked as Second pixel of the vicinity points of preceding pixel point corresponding to the second object.
The colour of current pixel point is corresponded to mobile terminal the color of the first pixel of the second object with current pixel point Value is contrasted, and the colour of the vicinity points of current pixel point and vicinity points are corresponded to the second picture of the second object The colour of vegetarian refreshments is contrasted.Judge whether the colour of current pixel point is matched with the colour of corresponding first pixel, and Whether the colour of the vicinity points of current pixel point is matched with the colour of corresponding second pixel.
If the colour of current pixel point is same or like with the colour of corresponding first pixel, current pixel is judged The colour of point is matched with the colour of corresponding first pixel.If conversely, the colour of current pixel point and corresponding first pixel The colour difference of point is larger, then judge that the colour of current pixel point is mismatched with the colour of corresponding first pixel.For example, in advance One default colour difference limen value is first set, if the colour of current pixel point is poor with the colour of the colour of corresponding first pixel definitely Value then judges the colour of current pixel point and the colour of corresponding first pixel less than or equal to the default colour difference limen value Match somebody with somebody;If the colour of current pixel point is more than the default colour difference limen with the poor absolute value of colour of the colour of corresponding first pixel Value, then judge that the colour of current pixel point is mismatched with the colour of corresponding first pixel.
Similarly, if the colour of the vicinity points of current pixel point it is identical with the colour of corresponding second pixel or It is close, then judge that the colour of vicinity points of current pixel point is matched with the colour of corresponding second pixel.If conversely, working as The colour of the vicinity points of preceding pixel point differs larger with the colour of corresponding second pixel, then judge current pixel point The colour of vicinity points is mismatched with the colour of corresponding second pixel.
If the colour of current pixel point is mismatched with the colour of corresponding first pixel, and the neighbouring picture of current pixel point The colour of vegetarian refreshments is matched with the colour of corresponding second pixel, namely the very possible distortion of colour of explanation current pixel point, Now, the colour of current pixel point is adjusted to mobile terminal the colour of corresponding first pixel of current pixel point.
Further, step S31 also includes:
Step c, it is right that the colour of the current pixel point and the colour of the vicinity points of the current pixel point are carried out Than;
Step d, is matched with the colour of the vicinity points in the colour of the current pixel point, and the current pixel When the colour of point is mismatched with the colour of corresponding first pixel, keep the colour of the current pixel point constant.
In order to avoid colour adjusts distortion, in the present embodiment, mobile terminal is also by the colour of current pixel point and current picture The colour of the vicinity points of vegetarian refreshments is contrasted, and judges the colour of current pixel point and the vicinity points of current pixel point Whether colour matches.Similarly, if the colour of current pixel point it is identical with the colour of the vicinity points of current pixel point or It is close, then judge that the colour of current pixel point and the colour of the vicinity points of current pixel point are matched.Otherwise, if current pixel The colour of point differs larger with the colour of the vicinity points of current pixel point, then judge the colour and current picture of current pixel point The colour of the vicinity points of vegetarian refreshments is mismatched.
If the colour of the colour of current pixel point and corresponding first pixel is mismatched, but the colour of current pixel point with The colour matching of the vicinity points of current pixel point, now, if being adjusted to the colour of current pixel point, is likely to Cause image fault, therefore, in this case, keep the colour of current pixel point constant.
The scheme that the present embodiment is proposed, by recognizing the first object in the first picture frame, and the first object second The second object matched in picture frame, it is according to the colour of corresponding each pixel of the second object, corresponding to the first object each The colour of individual pixel is adjusted, and carries out colour regulation to whole first picture frame so as to avoid, improves picture frame color The efficiency that value is adjusted, namely improve the efficiency of video file definition process.
Further, as shown in figure 9, proposing method for processing video frequency 3rd embodiment of the present invention.Method for processing video frequency the 3rd Embodiment with the difference of method for processing video frequency first embodiment and second embodiment is, in method for processing video frequency 3rd embodiment In, before step S10, also including step:
Step S50, according to the resolution and frame per second of the pending video file, carries out lattice with reference to video file to described Formula is changed, so that the resolution phase of the resolution with reference to video file after form conversion and the pending video file Together, and the frame per second with reference to video file is identical with the frame per second of the pending video file.
In the present embodiment, to pending video file and before carrying out picture frame extraction with reference to video file, first obtain The resolution and frame per second of pending video file, then, according to the resolution and frame per second of the pending video file for obtaining, to ginseng Enter row format conversion according to video file, resolution and frame per second of the change with reference to video file make the reference video after form conversion The resolution of file is identical with the resolution of pending video file, and also literary with pending video with reference to the frame per second of video file The frame per second of part is identical.
Afterwards, then to resolution and frame per second it is the same from pending video file and carries out picture frame with reference to video file carrying Take, the frame per second due to pending video file and the frame per second with reference to video file are all identical, are easy to mobile terminal to regard pending The corresponding picture frame of frequency file and contrasted with reference to the corresponding picture frame of video file, so as to obtain the first picture frame of matching With the second picture frame.Also, the resolution due to pending video file is identical with the resolution with reference to video file, namely The first picture frame matched somebody with somebody and the resolution of the second picture frame are identical, therefore, it is easy to each picture of mobile terminal to the first picture frame Each pixel of vegetarian refreshments and the second picture frame carries out Corresponding matching, determines each pixel of the first picture frame corresponding to the The Corresponding matching pixel of two picture frames, so as to the colour of the pixel according to Corresponding matching, each picture to the first picture frame The colour of vegetarian refreshments is adjusted, and reaches the effect of the definition for strengthening the first picture frame.
The scheme that the present embodiment is proposed, first resolution and frame per second according to pending video file, to reference to video file Enter row format conversion, make the resolution of the resolution and frame per second of the reference video file after form conversion all with pending video file Rate is identical with frame per second, consequently facilitating first picture frame and the second picture frame of acquisition for mobile terminal matching, and according to the second figure As the colour of frame is adjusted to the colour of the first picture frame, therefore, the efficiency of picture frame colour regulation is further increased, The efficiency of video file definition process is further increased.
It should be noted that herein, term " including ", "comprising" or its any other variant are intended to non-row His property is included, so that a series of process, method, article or device including key elements not only include those key elements, and And also include other key elements being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element for being limited by sentence "including a ...", it is not excluded that including being somebody's turn to do Also there is other identical element in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
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 is substantially done to prior art in other words The part for going out contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), use so that a station terminal equipment including some instructions (can be mobile phone, computer, clothes Business device, or the network equipment etc.) perform method described in each embodiment of the invention.
The preferred embodiments of the present invention are these are only, the scope of the claims of the present invention is not thereby limited, it is every using this Equivalent structure or equivalent flow conversion that bright description and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of video process apparatus, it is characterised in that the video process apparatus include:
Extraction module, for carrying out picture frame extraction by pending video file and with reference to video file, obtains described pending The corresponding first picture frame group of video file and the corresponding second picture frame group of the reference video file, wherein, the reference The high definition of video file is in the definition of the pending video file;
Acquisition module, for described first image frame group is contrasted with the second picture frame group, obtains the first of matching Picture frame and the second picture frame, wherein, described first image frame is the picture frame in described first image frame group, second figure As frame is the picture frame in the second picture frame group;
Processing module, for the colour according to second picture frame, adjusts the colour of described first image frame, described to update First picture frame, is adjusted to the definition of the pending video file.
2. video process apparatus as claimed in claim 1, it is characterised in that the video process apparatus also include:
Identification module, for recognizing in the first object in described first image frame, and second picture frame with described Second object of one object matching;
The processing module, for the colour according to corresponding each pixel of second object, adjusts first object The colour of corresponding each pixel.
3. video process apparatus as claimed in claim 2, it is characterised in that the processing module includes:
Comparing unit, for successively using each pixel of first object as current pixel point, by the current pixel Colour of the colour of point with the current pixel point corresponding to the first pixel of second object is contrasted, and will be described The colour of the vicinity points of current pixel point is with the vicinity points corresponding to the second pixel of second object Colour is contrasted, wherein, the vicinity points include the left pixel of the current pixel point, right pixel, upper pixel Point, lower pixel, top left pixel point, bottom left pixel point, top right pel point, bottom right pixel point;
Processing unit, is mismatched with the colour of corresponding first pixel for the colour in the current pixel point, and When the colour of the vicinity points is matched with the colour of corresponding second pixel, by the colour of the current pixel point It is adjusted to the colour of corresponding first pixel.
4. video process apparatus as claimed in claim 3, it is characterised in that the comparing unit, being additionally operable to will be described current The colour of pixel is contrasted with the colour of the vicinity points of the current pixel point;
The processing unit, is additionally operable to match with the colour of the vicinity points in the colour of the current pixel point, and institute When the colour of current pixel point is stated with the colour mismatch of corresponding first pixel, keep the color of the current pixel point Value is constant.
5. video process apparatus as described in any one of claim 1-4, it is characterised in that the video process apparatus are also wrapped Include:
Modular converter, for resolution and frame per second according to the pending video file, is carried out with reference to video file to described Form is changed, so that the resolution of the resolution with reference to video file after form conversion and the pending video file It is identical, and the frame per second with reference to video file is identical with the frame per second of the pending video file.
6. a kind of method for processing video frequency, it is characterised in that the method for processing video frequency includes step:
Picture frame extraction is carried out by pending video file and with reference to video file, the pending video file is obtained corresponding First picture frame group and the corresponding second picture frame group of the reference video file, wherein, it is described with reference to the clear of video file Definition of the degree higher than the pending video file;
Described first image frame group is contrasted with the second picture frame group, first picture frame and the second figure of matching is obtained As frame, wherein, described first image frame is the picture frame in described first image frame group, and second picture frame is described second Picture frame in picture frame group;
According to the colour of second picture frame, the colour of described first image frame is adjusted, it is to update described first image frame, right The definition of the pending video file is adjusted.
7. method for processing video frequency as claimed in claim 6, it is characterised in that the colour according to second picture frame, Before the step of adjusting the colour of described first image frame, also include:
The first object in identification described first image frame, and in second picture frame with first object matching the Two objects;
The step of colour according to second picture frame, colour for adjusting described first image frame, includes:
According to the colour of corresponding each pixel of second object, corresponding each pixel of first object is adjusted Colour.
8. method for processing video frequency as claimed in claim 7, it is characterised in that it is described according to second object it is corresponding each The step of colour of pixel, colour for adjusting corresponding each pixel of first object, includes:
Successively using each pixel of first object as current pixel point, by the colour of the current pixel point with it is described Current pixel point is contrasted corresponding to the colour of the first pixel of second object, and by the neighbour of the current pixel point Colour of the colour of nearly pixel with the vicinity points corresponding to the second pixel of second object is contrasted, its In, the vicinity points include the left pixel of the current pixel point, right pixel, upper pixel, lower pixel, upper left Pixel, bottom left pixel point, top right pel point, bottom right pixel point;
Mismatch with the colour of corresponding first pixel in the colour of the current pixel point, and the vicinity points The colour of colour and corresponding second pixel when matching, the colour of the current pixel point is adjusted to into corresponding institute State the colour of the first pixel.
9. method for processing video frequency as claimed in claim 8, it is characterised in that it is described according to second object it is corresponding each The step of colour of pixel, colour for adjusting corresponding each pixel of first object, also includes:
Colour of the colour of the current pixel point with the vicinity points of the current pixel point is contrasted;
Match with the colour of the vicinity points in the colour of the current pixel point, and the colour of the current pixel point with When the colour of corresponding first pixel is mismatched, keep the colour of the current pixel point constant.
10. the method for processing video frequency as described in any one of claim 6-9, it is characterised in that described by pending video file Picture frame extraction is carried out with reference to video file, the pending corresponding first picture frame group of video file and the ginseng is obtained Before the step of the second picture frame group corresponding according to video file, also include:
According to the resolution and frame per second of the pending video file, enter row format conversion with reference to video file to described, so that The resolution with reference to video file after form conversion is identical with the resolution of the pending video file, and the ginseng It is identical with the frame per second of the pending video file according to the frame per second of video file.
CN201610978908.9A 2016-10-28 2016-10-28 Device and method for video processing Pending CN106534928A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610978908.9A CN106534928A (en) 2016-10-28 2016-10-28 Device and method for video processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610978908.9A CN106534928A (en) 2016-10-28 2016-10-28 Device and method for video processing

Publications (1)

Publication Number Publication Date
CN106534928A true CN106534928A (en) 2017-03-22

Family

ID=58351024

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610978908.9A Pending CN106534928A (en) 2016-10-28 2016-10-28 Device and method for video processing

Country Status (1)

Country Link
CN (1) CN106534928A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110798709A (en) * 2019-11-01 2020-02-14 腾讯科技(深圳)有限公司 Video processing method and device, storage medium and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009153733A1 (en) * 2008-06-17 2009-12-23 Koninklijke Philips Electronics N.V. Color adjustment
CN101938661A (en) * 2009-06-30 2011-01-05 中国移动通信集团公司 Method and device for processing image and video image frame
WO2012091878A2 (en) * 2010-12-27 2012-07-05 3Dmedia Corporation Primary and auxiliary image capture devices for image processing and related methods
CN104751195A (en) * 2013-12-27 2015-07-01 英特尔公司 Image Processing Utilizing Reference Images
US20160026891A1 (en) * 2011-12-13 2016-01-28 The Nielsen Company (Us), Llc Video comparison using color histograms
CN105391949A (en) * 2015-10-29 2016-03-09 深圳市金立通信设备有限公司 Photographing method and terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009153733A1 (en) * 2008-06-17 2009-12-23 Koninklijke Philips Electronics N.V. Color adjustment
CN101938661A (en) * 2009-06-30 2011-01-05 中国移动通信集团公司 Method and device for processing image and video image frame
WO2012091878A2 (en) * 2010-12-27 2012-07-05 3Dmedia Corporation Primary and auxiliary image capture devices for image processing and related methods
US20160026891A1 (en) * 2011-12-13 2016-01-28 The Nielsen Company (Us), Llc Video comparison using color histograms
CN104751195A (en) * 2013-12-27 2015-07-01 英特尔公司 Image Processing Utilizing Reference Images
CN105391949A (en) * 2015-10-29 2016-03-09 深圳市金立通信设备有限公司 Photographing method and terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110798709A (en) * 2019-11-01 2020-02-14 腾讯科技(深圳)有限公司 Video processing method and device, storage medium and electronic device
CN110798709B (en) * 2019-11-01 2021-11-19 腾讯科技(深圳)有限公司 Video processing method and device, storage medium and electronic device

Similar Documents

Publication Publication Date Title
CN106131450B (en) Image processing method and device and terminal
CN106303225A (en) A kind of image processing method and electronic equipment
CN106453538A (en) Screen sharing apparatus and method
CN105827866A (en) Mobile terminal and control method
CN106097284A (en) The processing method of a kind of night scene image and mobile terminal
CN105160628A (en) Method and device for acquiring RGB data
CN106850941A (en) Method, photo taking and device
CN106250081A (en) A kind of display packing based on double screen terminal and device
CN104917965A (en) Shooting method and device
CN105306787A (en) Image processing method and device
CN105242483B (en) The method and apparatus that a kind of method and apparatus for realizing focusing, realization are taken pictures
CN106534553A (en) Mobile terminal and shooting method thereof
CN106534552A (en) Mobile terminal and photographing method thereof
CN104731484B (en) The method and device that picture is checked
CN105681654A (en) Photographing method and mobile terminal
CN106341687A (en) Method and device for locating video decoding abnormality
CN106303259A (en) A kind of method and apparatus realizing taking pictures
CN106055407A (en) Process resource adjusting device and method
CN106375602B (en) Terminal photographic method and device
CN106413064B (en) Mobile terminal control device and method
CN105405108A (en) Image sharpening method and mobile terminal
CN106778557A (en) Fingerprint identification device and method
CN106534446A (en) Mobile terminal dialing apparatus and method
CN106780295A (en) Image processing method and device
CN106101318A (en) The control method of a kind of mobile terminal and mobile terminal

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170322

RJ01 Rejection of invention patent application after publication