CN105704398A - Video processing method - Google Patents

Video processing method Download PDF

Info

Publication number
CN105704398A
CN105704398A CN201610153366.1A CN201610153366A CN105704398A CN 105704398 A CN105704398 A CN 105704398A CN 201610153366 A CN201610153366 A CN 201610153366A CN 105704398 A CN105704398 A CN 105704398A
Authority
CN
China
Prior art keywords
image
video
frame
deflection angle
current goal
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
CN201610153366.1A
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.)
Shaanxi Xueqian Normal University
Original Assignee
Xianyang Normal University
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 Xianyang Normal University filed Critical Xianyang Normal University
Priority to CN201610153366.1A priority Critical patent/CN105704398A/en
Publication of CN105704398A publication Critical patent/CN105704398A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/95Computational photography systems, e.g. light-field imaging systems
    • H04N23/951Computational photography systems, e.g. light-field imaging systems by using two or more images to influence resolution, frame rate or aspect ratio
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/60Rotation of a whole image or part thereof
    • G06T3/608Skewing or deskewing, e.g. by two-pass or three-pass rotation
    • G06T5/73
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/85Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/2628Alteration of picture size, shape, position or orientation, e.g. zooming, rotation, rolling, perspective, translation

Abstract

The invention discloses a video processing method. The method comprises the following steps: an acquired video file is analyzed; each image A is drawn again according to the deflection angle of each image A, an image A1 corresponding to each image A is obtained, and all images A1 are synthesized into a video according to coordinate information and time information; the current target frame in the obtained video file is read, and judgment, deletion and storage on an I frame and a P frame are carried out; the noise degree of the obtained video file is extracted, the bit rate and the resolution rate are adjusted according to the noise degree, and the acquired video file is compressed according to the obtained bit rate and the resolution rate; and according to the pixel point edge strength of the obtained video file, a gray scale image for the video image is generated, and based on the gray scale image, sharpening processing is carried out on the video image, and a video after processing is acquired. Thus, the video processing efficiency can be improved, excessive sharpening and a mosaic phenomenon when the video is played can be avoided, and the video watching effects are improved.

Description

A kind of method for processing video frequency
Technical field
The present invention relates to field of video processing, be specifically related to a kind of method for processing video frequency。
Background technology
Along with the development of information technology, people are more and more higher to the requirement of video-see effect。But, the restriction of bandwidth Network Based, video needs to reduce encoding rate and could be transmitted glibly。And then, how when low encoding rate, the viewing effect improving video becomes one of this area important technological problems。
Meanwhile, when P LOF in the video encoded by H264, will appear from mosaic phenomenon when playing video, affect Consumer's Experience。Therefore, in order to avoid mosaic phenomenon detect before video playback in video whether exist lose P frame situation very necessary。
Summary of the invention
For solving the problems referred to above, the invention provides a kind of method for processing video frequency, can the deflection angle of automatic decision image, the real-time process of video can not only be realized, also reduce the complexity of Video processing, and then improve the efficiency of Video processing, it is to avoid when playing video, mosaic phenomenon occurs, in order to improve Consumer's Experience;Simultaneously selectively the region that the edge strength should being sharpened in video image is high can be sharpened process, compared to the method that whole video image is sharpened process, it is to avoid doing over-sharpening, improve the viewing effect of video。
For achieving the above object, the technical scheme that the present invention takes is:
A kind of method for processing video frequency, comprises the steps:
S1, being obtained video file by capture apparatus, described video file includes multiple continuous print frame of video coordinate information corresponding with each frame of video and temporal information, and described coordinate information is uniquely corresponding with described temporal information;
S2, acquired video file is resolved, obtain at least two image A, determine the deflection angle of each image A, and the deflection angle according to each image A repaints each image A, obtain each image A1 corresponding for image A, then all image A1 are pressed coordinate information and temporal information synthetic video, the video after being processed;
Current goal frame in S3, read step S4 gained video file, wherein, described video file includes I frame and P frame;Judge whether current goal frame is P frame, if I frame, then store described current goal frame;If P frame, then obtain the sequence of current goal frame, and judge that whether the sequence of acquired current goal frame and predetermined sequence be identical, if identical, then store described current goal frame;If differing, then deleting all frames between described current goal frame and described current goal frame and reference frame, wherein, described reference frame is to be positioned at first I frame after described current goal frame in described video file;
S4, extraction step S3 gained the noise level of video file, according to described noise level, adjust bit rate and resolution, and with the acquired video file of the bit rate of gained and resolution compression;
S5, pixel edge strength according to each video image in the video file of step S4 gained, generate the gray-scale map of described video image, and based on described gray-scale map, described video image be sharpened process, it is thus achieved that the video after process。
Preferably, in described gray-scale map, the gray scale of each pixel is the edge strength of corresponding pixel points in described video image。
Preferably, described step S5 passes through arithmetic operators, it is determined that the edge strength of each pixel in described video image。
Preferably, described Edge contrast includes:
Described gray-scale map is carried out expansive working and/or Gaussian Blur operation, obtains intermediate image A;
Described intermediate image A is performed etching operation, obtains intermediate image A1;
Based on described intermediate image A1, described video image is sharpened process。
Preferably, when the sequence of described current goal frame differs with described predetermined sequence, next target frame described is described reference frame。
Preferably, described step S2 determines the deflection angle of each image A by multi-orientation Face or object identification, specifically includes
The image A of predetermined number is chosen from all image A;
Each selected image A is carried out multi-orientation Face or object identification;
Determine the deflection angle of each selected image A according to recognition result, and determine the deflection angle of each unselected image A according to the deflection angle of each selected image A。
Preferably, repaint each image A according to the deflection angle of each image A to specifically include
Deflection angle according to each image A calculates the supplementary deflection angle of each image A;
Supplementary deflection angle according to each image A repaints each image A。
Preferably, also include obtaining three-dimensional point cloud by conversion between coordinate information, rebuild accurate videometer surface model, carry out mapping without the texture of deformation to the videometer surface model of gained, make reconstruction effect closer to real three-dimensional scenic, be then introduced into video-splicing software, it is achieved the demarcation of camera, sensor image distortion correction, the projective transformation of image, match point are chosen, Panorama Mosaic, brightness and color equilibrium treatment, thus obtaining final video。
The method have the advantages that
Can the deflection angle of automatic decision image, the real-time process of video can not only be realized, also reduce the complexity of Video processing, and then improve the efficiency of Video processing, it is to avoid when playing video, mosaic phenomenon occurs, in order to improve Consumer's Experience;Simultaneously selectively the region that the edge strength should being sharpened in video image is high can be sharpened process, compared to the method that whole video image is sharpened process, it is to avoid doing over-sharpening, improve the viewing effect of video。
Detailed description of the invention
In order to make objects and advantages of the present invention clearly understand, below in conjunction with embodiment, the present invention is further elaborated。Should be appreciated that specific embodiment described herein is only in order to explain the present invention, is not intended to limit the present invention。
Embodiments provide a kind of method for processing video frequency, comprise the steps:
S1, being obtained video file by capture apparatus, described video file includes multiple continuous print frame of video coordinate information corresponding with each frame of video and temporal information, and described coordinate information is uniquely corresponding with described temporal information;
S2, acquired video file is resolved, obtain at least two image A, determine the deflection angle of each image A, and the deflection angle according to each image A repaints each image A, obtain each image A1 corresponding for image A, then all image A1 are pressed coordinate information and temporal information synthetic video, the video after being processed;
Current goal frame in S3, read step S4 gained video file, wherein, described video file includes I frame and P frame;Judge whether current goal frame is P frame, if I frame, then store described current goal frame;If P frame, then obtain the sequence of current goal frame, and judge that whether the sequence of acquired current goal frame and predetermined sequence be identical, if identical, then store described current goal frame;If differing, then deleting all frames between described current goal frame and described current goal frame and reference frame, wherein, described reference frame is to be positioned at first I frame after described current goal frame in described video file;
S4, extraction step S3 gained the noise level of video file, according to described noise level, adjust bit rate and resolution, and with the acquired video file of the bit rate of gained and resolution compression;
S5, pixel edge strength according to each video image in the video file of step S4 gained, generate the gray-scale map of described video image, and based on described gray-scale map, described video image be sharpened process, it is thus achieved that the video after process。
In described gray-scale map, the gray scale of each pixel is the edge strength of corresponding pixel points in described video image。
Described step S5 passes through arithmetic operators, it is determined that the edge strength of each pixel in described video image。
Described Edge contrast includes:
Described gray-scale map is carried out expansive working and/or Gaussian Blur operation, obtains intermediate image A;
Described intermediate image A is performed etching operation, obtains intermediate image A1;
Based on described intermediate image A1, described video image is sharpened process。
When the sequence of described current goal frame differs with described predetermined sequence, next target frame described is described reference frame。
Described step S2 determines the deflection angle of each image A by multi-orientation Face or object identification, specifically includes
The image A of predetermined number is chosen from all image A;
Each selected image A is carried out multi-orientation Face or object identification;
Determine the deflection angle of each selected image A according to recognition result, and determine the deflection angle of each unselected image A according to the deflection angle of each selected image A。
Deflection angle according to each image A repaints each image A and specifically includes
Deflection angle according to each image A calculates the supplementary deflection angle of each image A;
Supplementary deflection angle according to each image A repaints each image A。
Also include obtaining three-dimensional point cloud by conversion between coordinate information, rebuild accurate videometer surface model, carry out mapping without the texture of deformation to the videometer surface model of gained, make reconstruction effect closer to real three-dimensional scenic, it is then introduced into video-splicing software, realize the demarcation of camera, sensor image distortion correction, the projective transformation of image, match point are chosen, Panorama Mosaic, brightness and color equilibrium treatment, thus obtaining final video。
Originally be embodied as can the deflection angle of automatic decision image, the real-time process of video can not only be realized, also reduce the complexity of Video processing, and then improve the efficiency of Video processing, it is to avoid when playing video, mosaic phenomenon occurs, in order to improve Consumer's Experience;Simultaneously selectively the region that the edge strength should being sharpened in video image is high can be sharpened process, compared to the method that whole video image is sharpened process, it is to avoid doing over-sharpening, improve the viewing effect of video。
The above is only the preferred embodiment of the present invention; it should be pointed out that, for those skilled in the art, under the premise without departing from the principles of the invention; can also making some improvements and modifications, these improvements and modifications also should be regarded as protection scope of the present invention。

Claims (8)

1. a method for processing video frequency, it is characterised in that comprise the steps:
S1, being obtained video file by capture apparatus, described video file includes multiple continuous print frame of video coordinate information corresponding with each frame of video and temporal information, and described coordinate information is uniquely corresponding with described temporal information;
S2, acquired video file is resolved, obtain at least two image A, determine the deflection angle of each image A, and the deflection angle according to each image A repaints each image A, obtain each image A1 corresponding for image A, then all image A1 are pressed coordinate information and temporal information synthetic video, the video after being processed;
Current goal frame in S3, read step S4 gained video file, wherein, described video file includes I frame and P frame;Judge whether current goal frame is P frame, if I frame, then store described current goal frame;If P frame, then obtain the sequence of current goal frame, and judge that whether the sequence of acquired current goal frame and predetermined sequence be identical, if identical, then store described current goal frame;If differing, then deleting all frames between described current goal frame and described current goal frame and reference frame, wherein, described reference frame is to be positioned at first I frame after described current goal frame in described video file;
S4, extraction step S3 gained the noise level of video file, according to described noise level, adjust bit rate and resolution, and with the acquired video file of the bit rate of gained and resolution compression;
S5, pixel edge strength according to each video image in the video file of step S4 gained, generate the gray-scale map of described video image, and based on described gray-scale map, described video image be sharpened process, it is thus achieved that the video after process。
2. a kind of method for processing video frequency according to claim 1, it is characterised in that in described gray-scale map, the gray scale of each pixel is the edge strength of corresponding pixel points in described video image。
3. a kind of method for processing video frequency according to claim 1, it is characterised in that described step S5 passes through arithmetic operators, it is determined that the edge strength of each pixel in described video image。
4. a kind of method for processing video frequency according to claim 1, it is characterised in that described Edge contrast includes:
Described gray-scale map is carried out expansive working and/or Gaussian Blur operation, obtains intermediate image A;
Described intermediate image A is performed etching operation, obtains intermediate image A1;
Based on described intermediate image A1, described video image is sharpened process。
5. a kind of method for processing video frequency according to claim 1, it is characterised in that when the sequence of described current goal frame differs with described predetermined sequence, next target frame described is described reference frame。
6. a kind of method for processing video frequency according to claim 1, it is characterised in that described step S2 determines the deflection angle of each image A by multi-orientation Face or object identification, specifically includes
The image A of predetermined number is chosen from all image A;
Each selected image A is carried out multi-orientation Face or object identification;
Determine the deflection angle of each selected image A according to recognition result, and determine the deflection angle of each unselected image A according to the deflection angle of each selected image A。
7. a kind of method for processing video frequency according to claim 1, it is characterised in that repaint each image A according to the deflection angle of each image A and specifically include
Deflection angle according to each image A calculates the supplementary deflection angle of each image A;
Supplementary deflection angle according to each image A repaints each image A。
8. a kind of method for processing video frequency according to claim 1, it is characterized in that, also include obtaining three-dimensional point cloud by conversion between coordinate information, rebuild accurate videometer surface model, carry out mapping without the texture of deformation to the videometer surface model of gained, make reconstruction effect closer to real three-dimensional scenic, it is then introduced into video-splicing software, realize the demarcation of camera, sensor image distortion correction, the projective transformation of image, match point are chosen, Panorama Mosaic, brightness and color equilibrium treatment, thus obtaining final video。
CN201610153366.1A 2016-03-11 2016-03-11 Video processing method Pending CN105704398A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610153366.1A CN105704398A (en) 2016-03-11 2016-03-11 Video processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610153366.1A CN105704398A (en) 2016-03-11 2016-03-11 Video processing method

Publications (1)

Publication Number Publication Date
CN105704398A true CN105704398A (en) 2016-06-22

Family

ID=56221860

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610153366.1A Pending CN105704398A (en) 2016-03-11 2016-03-11 Video processing method

Country Status (1)

Country Link
CN (1) CN105704398A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106228513A (en) * 2016-07-18 2016-12-14 黄河科技学院 A kind of Computerized image processing system
CN106507091A (en) * 2016-11-14 2017-03-15 墨宝股份有限公司 A kind of method of utilization 3D animations shooting and producing true man's theme Showmov piece
CN107390278A (en) * 2017-07-08 2017-11-24 贵州理工学院 A kind of radioactivity mineral exploration method
CN107424218A (en) * 2017-07-25 2017-12-01 成都通甲优博科技有限责任公司 A kind of sequence chart bearing calibration tried on based on 3D and device
CN108305218A (en) * 2017-12-29 2018-07-20 努比亚技术有限公司 Panoramic picture processing method, terminal and computer readable storage medium
CN109167980A (en) * 2018-11-01 2019-01-08 苏州旷视智能科技有限公司 For remote high definition video processing method
CN113079334A (en) * 2020-01-06 2021-07-06 宏碁股份有限公司 Computer system and image compensation method thereof
WO2022087826A1 (en) * 2020-10-27 2022-05-05 深圳市大疆创新科技有限公司 Video processing method and apparatus, mobile device, and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101697228A (en) * 2009-10-15 2010-04-21 东莞市步步高教育电子产品有限公司 Method for processing text images
CN102722704A (en) * 2012-06-12 2012-10-10 厦门宸天电子科技有限公司 Method and system for recognizing vehicle license plate by integrating video dynamic tracking
CN103999448A (en) * 2011-11-28 2014-08-20 Ati科技无限责任公司 Method and apparatus for correcting rotation of video frames

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101697228A (en) * 2009-10-15 2010-04-21 东莞市步步高教育电子产品有限公司 Method for processing text images
CN103999448A (en) * 2011-11-28 2014-08-20 Ati科技无限责任公司 Method and apparatus for correcting rotation of video frames
CN102722704A (en) * 2012-06-12 2012-10-10 厦门宸天电子科技有限公司 Method and system for recognizing vehicle license plate by integrating video dynamic tracking

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106228513A (en) * 2016-07-18 2016-12-14 黄河科技学院 A kind of Computerized image processing system
CN106507091A (en) * 2016-11-14 2017-03-15 墨宝股份有限公司 A kind of method of utilization 3D animations shooting and producing true man's theme Showmov piece
CN107390278A (en) * 2017-07-08 2017-11-24 贵州理工学院 A kind of radioactivity mineral exploration method
CN107424218A (en) * 2017-07-25 2017-12-01 成都通甲优博科技有限责任公司 A kind of sequence chart bearing calibration tried on based on 3D and device
CN107424218B (en) * 2017-07-25 2020-11-06 成都通甲优博科技有限责任公司 3D try-on-based sequence diagram correction method and device
CN108305218A (en) * 2017-12-29 2018-07-20 努比亚技术有限公司 Panoramic picture processing method, terminal and computer readable storage medium
CN108305218B (en) * 2017-12-29 2022-09-06 浙江水科文化集团有限公司 Panoramic image processing method, terminal and computer readable storage medium
CN109167980A (en) * 2018-11-01 2019-01-08 苏州旷视智能科技有限公司 For remote high definition video processing method
CN113079334A (en) * 2020-01-06 2021-07-06 宏碁股份有限公司 Computer system and image compensation method thereof
WO2022087826A1 (en) * 2020-10-27 2022-05-05 深圳市大疆创新科技有限公司 Video processing method and apparatus, mobile device, and readable storage medium

Similar Documents

Publication Publication Date Title
CN105704398A (en) Video processing method
JP5492087B2 (en) Content-based image adjustment
US9202263B2 (en) System and method for spatio video image enhancement
US8922718B2 (en) Key generation through spatial detection of dynamic objects
KR20160115466A (en) Apparatus and method for panoramic video stiching
US20200314344A1 (en) Image processing method for photography device, photography device and movable platform
US20180225852A1 (en) Apparatus and method for generating best-view image centered on object of interest in multiple camera images
CN106998430B (en) Multi-camera-based 360-degree video playback method
JP2015180062A (en) Method for processing video sequence and device for processing video sequence
WO2014063373A1 (en) Methods for extracting depth map, judging video scenario switching and optimizing edge of depth map
CN101179745A (en) Preprocessing method of multi-viewpoint image
CN110798634B (en) Image self-adaptive synthesis method and device and computer readable storage medium
CN105791636A (en) Video processing system
Bleyer et al. Temporally consistent disparity maps from uncalibrated stereo videos
Chen et al. Full-frame video stabilization via SIFT feature matching
CN110796689B (en) Video processing method, electronic device and storage medium
Yu et al. A hybrid color matching between stereo image sequences
JP6340675B1 (en) Object extraction device, object recognition system, and metadata creation system
JP6392739B2 (en) Image processing apparatus, image processing method, and image processing program
Lin et al. Video bsckground inpainting using dynamic texture synthesis
KR101718309B1 (en) The method of auto stitching and panoramic image genertation using color histogram
CN113313707A (en) Original image processing method, device, equipment and readable storage medium
CN104981841B (en) The method and apparatus of 3D rendering data segmentation
TWM535848U (en) Apparatus for combining with wavelet transformer and edge detector to generate a depth map from a single image
JP2017111620A (en) Image processing device, image processing method and image processing program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20190717

Address after: 710000 No. 69 Xingshan Temple East Street, Yanta District, Xi'an City, Shaanxi Province

Applicant after: Shaanxi Xueqian Normal University

Address before: 712000 Wenlin Road, Weicheng District, Xianyang City, Shaanxi Province

Applicant before: Xianyang Normal University

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20160622

RJ01 Rejection of invention patent application after publication