CN105933707A - Compression method and device for panoramic video - Google Patents

Compression method and device for panoramic video Download PDF

Info

Publication number
CN105933707A
CN105933707A CN201610507393.4A CN201610507393A CN105933707A CN 105933707 A CN105933707 A CN 105933707A CN 201610507393 A CN201610507393 A CN 201610507393A CN 105933707 A CN105933707 A CN 105933707A
Authority
CN
China
Prior art keywords
panoramic video
row
compression ratio
frame picture
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610507393.4A
Other languages
Chinese (zh)
Other versions
CN105933707B (en
Inventor
朱洲
闻磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201610507393.4A priority Critical patent/CN105933707B/en
Publication of CN105933707A publication Critical patent/CN105933707A/en
Application granted granted Critical
Publication of CN105933707B publication Critical patent/CN105933707B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/172Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a picture, frame or field
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation

Abstract

The embodiment of the invention discloses a compression method and device for a panoramic video. The method comprises the following steps: for a target panoramic video, generating each frame of image of the target panoramic video; determining a compression ratio of each row of the frame of image according to the number of pixel points of rows of the frame of image; compressing the number of the pixel points of the row corresponding to the compression ratio according to the compression ratio; and generating a new panoramic video according to all compressed images. By adopting the embodiment of the invention, the waste of network bandwidth can be reduced.

Description

The compression method of a kind of panoramic video and device
Technical field
The present invention relates to video technique field, particularly to compression method and the device of a kind of panoramic video.
Background technology
Panoramic video, refers to 720 degree or 360 degree of panoramic videos.It is complete at 720 degree or 360 degree On the technology of scape, development extends to.Static panoramic pictures is converted into dynamic video image, entirely by it Scape video can about shooting angle upper and lower 360 degree arbitrarily watch dynamic video.Panoramic video it does not exist It is single static panorama graphic form, is to be together in series by countless Zhang Quanjing pictures to constitute smoothness clearly Dynamic video image.
The player method of panoramic video is at present: panoramic video is sent to client by server;Client Panoramic video source is decoded into panoramic pictures, according to the current angular of beholder, panoramic pictures is carried out Extraction, plays the video being made up of the panoramic pictures after extracting.Wherein, the extraction of panoramic video be based on Picture is attached on spheroid carry out.
But, in actual applications, the panoramic video that user sees is only the panoramic video that server sends A part.But whole panoramic videos can be sent to client by server, cause unnecessary data Transmission, in turn results in the waste of the network bandwidth.
Summary of the invention
The purpose of the embodiment of the present invention is to provide compression method and the device of a kind of panoramic video, to reduce net The waste of network bandwidth.
For reaching above-mentioned purpose, the embodiment of the invention discloses the compression method of a kind of panoramic video, method bag Include:
For target panoramic video, generate each frame picture of described target panoramic video;
According to the pixel number of described frame picture row, determine the compression ratio of described every a line of frame picture;
According to described compression ratio, the quantity of the pixel of the row corresponding to described compression ratio is compressed;
According to all pictures after compression, generate new panoramic video.
Each frame picture of described target panoramic video is generated for target panoramic video it is also preferred that the left described, Including:
For target panoramic video, equidistant column sciagraphy is used to generate each frame of described target panoramic video Picture.
It is also preferred that the left the described pixel number according to described frame picture row, determine described every a line of frame picture Compression ratio, including:
By the pixel number of described frame picture row, it is defined as the first row of described frame picture and last column Compression ratio;
By described frame picture removes the compression ratio of the target line of described the first row and last column, it is defined as sin (the pixel numbers of 2 π y/ row), wherein, y is the line number value of described target line.
For reaching above-mentioned purpose, the embodiment of the invention discloses the compressor of a kind of panoramic video, device bag Include:
First generation module, for for target panoramic video, generates each frame of described target panoramic video Picture;
Determine module, for the pixel number according to described frame picture row, determine described every a line of frame picture Compression ratio;
Compression module, for according to described compression ratio, the quantity of the pixel of the row corresponding to described compression ratio It is compressed;
Second generation module, for according to all pictures after compression, generating new panoramic video.
It is also preferred that the left described first generation module, specifically for:
For target panoramic video, equidistant column sciagraphy is used to generate each frame of described target panoramic video Picture.
Module is determined it is also preferred that the left described, specifically for:
By the pixel number of described frame picture row, it is defined as the first row of described frame picture and last column Compression ratio;
By described frame picture removes the compression ratio of the target line of described the first row and last column, it is defined as sin (the pixel numbers of 2 π y/ row), wherein, y is the line number value of described target line.
As seen from the above technical solutions, the compression method of a kind of video that the embodiment of the present invention provides and device, For target panoramic video, generate each frame picture of described target panoramic video;According to described frame picture row Pixel number, determine the compression ratio of described every a line of frame picture;According to described compression ratio, to described pressure Contracting is compressed than the quantity of the pixel of corresponding row;According to all pictures after compression, generate new complete Scape video.
Visible, panoramic video is compressed, the new panoramic video after compression is sent to visitor by server Unnecessary data are not transmitted by family end, and then decrease the waste of the network bandwidth.
Certainly, arbitrary product or the method for implementing the present invention must be not necessarily required to reach above-described institute simultaneously There is advantage.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to enforcement In example or description of the prior art, the required accompanying drawing used is briefly described, it should be apparent that, describe below In accompanying drawing be only some embodiments of the present invention, for those of ordinary skill in the art, do not paying On the premise of going out creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
The schematic flow sheet of the compression method of a kind of panoramic video that Fig. 1 provides for the embodiment of the present invention;
The structural representation of the compressor of a kind of panoramic video that Fig. 2 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly Chu, be fully described by, it is clear that described embodiment be only a part of embodiment of the present invention rather than Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creation The every other embodiment obtained under property work premise, broadly falls into the scope of protection of the invention.
First below the compression method of a kind of panoramic video that the embodiment of the present invention provides is described in detail.
See the flow process signal of the compression method of a kind of panoramic video that Fig. 1, Fig. 1 provide for the embodiment of the present invention Figure, may include steps of:
S101, for target panoramic video, generates each frame picture of described target panoramic video;
Concrete, each frame picture of the target panoramic video of generation is to use equidistant column sciagraphy to obtain Panoramic pictures.Equidistant column sciagraphy belongs to prior art, also known as spherical projection, sphere rectangular projection etc., The panoramic pictures that obtains of projection be a width length-width ratio be the picture of 2:1, such as: the resolution of the panoramic pictures of generation Rate size can be 2000*1000, represents that the pixel number of the row of this panoramic pictures is 2000, the picture of row Vegetarian refreshments number is 1000.
S102, according to the pixel number of described frame picture row, determines the compression ratio of described every a line of frame picture;
Concrete, by the pixel number of described frame picture row, it is defined as the first row and of described frame picture The compression ratio of rear a line;Described frame picture will remove the compression ratio of the target line of described the first row and last column, Being defined as sin (the pixel numbers of 2 π y/ row), wherein, y is the line number value of described target line.
Exemplary, the resolution dimensions of this frame panoramic pictures is 2000*1000, represents the pixel of the row of picture Point number is 2000, and the pixel number of row is 1000, the most a total of 1000 row pixels, and often row has 2000 pixels.The first row of this frame picture and the compression ratio of last column it is defined as, by sin by 2000 (2 π y/2000) i.e. sin (π y/1000) is defined as in this frame picture except the first row and the target line of last column Compression ratio, y is the line number value of target line, such as, is in the compression ratio of 2000 pixels of the 500th row For sin (500 π/1000)=1.
S103, according to described compression ratio, the quantity of the pixel of the row corresponding to described compression ratio is compressed;
Concrete, according to the compression ratio determined in S102, the pixel quantity to the every a line in this frame picture Compression ratio according to correspondence of being expert at is compressed, the picture after being compressed.
Exemplary, this frame resolution dimensions is the panoramic pictures of 2000*1000, the first row and last column Compression ratio is 2000, is compressed 2000 pixels of the first row and last column, after compression respectively The pixel quantity of the first row and last column is 1;The compression ratio of 2000 pixels being in the 500th is 1,2000 pixels of the 500th row are compressed, the pixel quantity of the 500th row after compression is 2000, I.e. keep constant.The pixel quantity of remaining row can also be compressed according to the compression ratio of correspondence of being expert at, Pixel number value after being compressed.According to the pixel of every a line after compression, new after being compressed Picture.
S104, according to all pictures after compression, generates new panoramic video.
Concrete, according to all frame pictures after the compression obtained, can use prior art such as to all Frame picture carries out the modes such as coding, generates the new panoramic video after compression, repeats no more here.
Visible, panoramic video is compressed, the new panoramic video after compression is sent to visitor by server Unnecessary data are not transmitted by family end, and then decrease the waste of the network bandwidth.
See the structural representation of the compressor of a kind of panoramic video that Fig. 2, Fig. 2 provide for the embodiment of the present invention Figure, corresponding with the flow process shown in Fig. 1, this compressor may include that the first generation module 201, determines Module 202, compression module the 203, second generation module 204.
Wherein, the first generation module 201, for for target panoramic video, generate described target panoramic video Each frame picture;
Concrete, the first generation module 201, specifically may be used for:
For target panoramic video, equidistant column sciagraphy is used to generate each frame of described target panoramic video Picture.
Determine module 202, for the pixel number according to described frame picture row, determine that described frame picture is each The compression ratio of row;
Concrete, in actual applications, determine module 202, specifically may be used for:
By the pixel number of described frame picture row, it is defined as the first row of described frame picture and last column Compression ratio;
By described frame picture removes the compression ratio of the target line of described the first row and last column, it is defined as sin (the pixel numbers of 2 π y/ row), wherein, y is the line number value of described target line.
Compression module 203, for according to described compression ratio, the number of the pixel of the row corresponding to described compression ratio Amount is compressed;
Second generation module 204, for according to all pictures after compression, generating new panoramic video.
Visible, panoramic video is compressed, the new panoramic video after compression is sent to visitor by server Unnecessary data are not transmitted by family end, and then decrease the waste of the network bandwidth.
It should be noted that in this article, the relational terms of such as first and second or the like be used merely to by One entity or operation separate with another entity or operating space, and not necessarily require or imply these Relation or the order of any this reality is there is between entity or operation.And, term " includes ", " comprising " Or its any other variant is intended to comprising of nonexcludability, so that include the mistake of a series of key element Journey, method, article or equipment not only include those key elements, but also other including being not expressly set out Key element, or also include the key element intrinsic for this process, method, article or equipment.Do not having In the case of more restrictions, statement " including ... " key element limited, it is not excluded that including described wanting Process, method, article or the equipment of element there is also other identical element.
Each embodiment in this specification all uses relevant mode to describe, phase homophase between each embodiment As part see mutually, what each embodiment stressed is the difference with other embodiments. For device embodiment, owing to it is substantially similar to embodiment of the method, so the comparison described Simply, relevant part sees the part of embodiment of the method and illustrates.
One of ordinary skill in the art will appreciate that all or part of step realizing in said method embodiment The program that can be by completes to instruct relevant hardware, and described program can be stored in computer-readable Take in storage medium, the storage medium obtained designated herein, such as: ROM/RAM, magnetic disc, CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit protection scope of the present invention. All any modification, equivalent substitution and improvement etc. made within the spirit and principles in the present invention, are all contained in In protection scope of the present invention.

Claims (6)

1. the compression method of a panoramic video, it is characterised in that including:
For target panoramic video, generate each frame picture of described target panoramic video;
According to the pixel number of described frame picture row, determine the compression ratio of described every a line of frame picture;
According to described compression ratio, the quantity of the pixel of the row corresponding to described compression ratio is compressed;
According to all pictures after compression, generate new panoramic video.
Method the most according to claim 1, it is characterised in that described for target panoramic video, raw Become each frame picture of described target panoramic video, including:
For target panoramic video, equidistant column sciagraphy is used to generate each frame of described target panoramic video Picture.
Method the most according to claim 1, it is characterised in that the described picture according to described frame picture row Vegetarian refreshments number, determines the compression ratio of described every a line of frame picture, including:
By the pixel number of described frame picture row, it is defined as the first row of described frame picture and last column Compression ratio;
By described frame picture removes the compression ratio of the target line of described the first row and last column, it is defined as sin (2 The pixel number of π y/ row), wherein, y is the line number value of described target line.
4. the compressor of a panoramic video, it is characterised in that described device includes:
First generation module, for for target panoramic video, generates each frame of described target panoramic video Picture;
Determine module, for the pixel number according to described frame picture row, determine described every a line of frame picture Compression ratio;
Compression module, for according to described compression ratio, the quantity of the pixel of the row corresponding to described compression ratio It is compressed;
Second generation module, for according to all pictures after compression, generating new panoramic video.
Device the most according to claim 4, it is characterised in that described first generation module, specifically uses In:
For target panoramic video, equidistant column sciagraphy is used to generate each frame of described target panoramic video Picture.
Device the most according to claim 4, it is characterised in that described determine module, specifically for:
By the pixel number of described frame picture row, it is defined as the first row of described frame picture and last column Compression ratio;
By described frame picture removes the compression ratio of the target line of described the first row and last column, it is defined as sin (the pixel numbers of 2 π y/ row), wherein, y is the line number value of described target line.
CN201610507393.4A 2016-06-30 2016-06-30 A kind of compression method and device of panoramic video Active CN105933707B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610507393.4A CN105933707B (en) 2016-06-30 2016-06-30 A kind of compression method and device of panoramic video

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610507393.4A CN105933707B (en) 2016-06-30 2016-06-30 A kind of compression method and device of panoramic video

Publications (2)

Publication Number Publication Date
CN105933707A true CN105933707A (en) 2016-09-07
CN105933707B CN105933707B (en) 2019-02-22

Family

ID=56828838

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610507393.4A Active CN105933707B (en) 2016-06-30 2016-06-30 A kind of compression method and device of panoramic video

Country Status (1)

Country Link
CN (1) CN105933707B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106534882A (en) * 2016-12-29 2017-03-22 北京爱奇艺科技有限公司 Encoding and decoding method and device for virtual reality panoramic video
CN107146274A (en) * 2017-05-05 2017-09-08 上海兆芯集成电路有限公司 Image data processing system, texture mapping compression and the method for producing panoramic video
WO2018120888A1 (en) * 2016-12-29 2018-07-05 北京奇艺世纪科技有限公司 Panoramic image compression method and apparatus
TWI635461B (en) * 2016-12-20 2018-09-11 北京奇藝世紀科技有限公司 Projection chart construction method and device
CN108573520A (en) * 2018-01-05 2018-09-25 深圳市鼎阳科技有限公司 A kind of display methods and digital spectrum analysis instrument of three-dimensional spectrogram

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5771340A (en) * 1994-01-14 1998-06-23 Oki Electric Industry Co., Ltd. Data compression method and print processing device utilizing the same
US20020147991A1 (en) * 2001-04-10 2002-10-10 Furlan John L. W. Transmission of panoramic video via existing video infrastructure
EP1162830A3 (en) * 2000-06-07 2003-08-13 Be Here Corporation Method and apparatus for electronically distributing motion panoramic images
CN101715133A (en) * 2008-09-30 2010-05-26 雅马哈株式会社 Lossless compression-encoding device and decoding device for image data
CN102202168A (en) * 2010-03-26 2011-09-28 索尼公司 Control device, camera system and program
CN102750724A (en) * 2012-04-13 2012-10-24 广州市赛百威电脑有限公司 Three-dimensional and panoramic system automatic-generation method based on images
CN103916632A (en) * 2014-04-03 2014-07-09 北京工业大学 Real-time panorama video remote monitoring system for runway
CN105631809A (en) * 2015-12-31 2016-06-01 北京理工大学 Method for generating non-uniform resolution spherical panoramic graph

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5771340A (en) * 1994-01-14 1998-06-23 Oki Electric Industry Co., Ltd. Data compression method and print processing device utilizing the same
EP1162830A3 (en) * 2000-06-07 2003-08-13 Be Here Corporation Method and apparatus for electronically distributing motion panoramic images
US20020147991A1 (en) * 2001-04-10 2002-10-10 Furlan John L. W. Transmission of panoramic video via existing video infrastructure
CN101715133A (en) * 2008-09-30 2010-05-26 雅马哈株式会社 Lossless compression-encoding device and decoding device for image data
CN102202168A (en) * 2010-03-26 2011-09-28 索尼公司 Control device, camera system and program
CN102750724A (en) * 2012-04-13 2012-10-24 广州市赛百威电脑有限公司 Three-dimensional and panoramic system automatic-generation method based on images
CN103916632A (en) * 2014-04-03 2014-07-09 北京工业大学 Real-time panorama video remote monitoring system for runway
CN105631809A (en) * 2015-12-31 2016-06-01 北京理工大学 Method for generating non-uniform resolution spherical panoramic graph

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI635461B (en) * 2016-12-20 2018-09-11 北京奇藝世紀科技有限公司 Projection chart construction method and device
US10991068B2 (en) 2016-12-20 2021-04-27 Beijing Qiyi Century Science & Technology Co., Ltd. Projection image construction method and device
CN106534882A (en) * 2016-12-29 2017-03-22 北京爱奇艺科技有限公司 Encoding and decoding method and device for virtual reality panoramic video
WO2018120888A1 (en) * 2016-12-29 2018-07-05 北京奇艺世纪科技有限公司 Panoramic image compression method and apparatus
CN106534882B (en) * 2016-12-29 2019-06-14 北京爱奇艺科技有限公司 The decoding method and device of virtual reality panoramic video
US10812833B2 (en) 2016-12-29 2020-10-20 Beijing Qiyi Century Science & Technology Co., Ltd. Panoramic image compression method and apparatus
CN107146274A (en) * 2017-05-05 2017-09-08 上海兆芯集成电路有限公司 Image data processing system, texture mapping compression and the method for producing panoramic video
CN108573520A (en) * 2018-01-05 2018-09-25 深圳市鼎阳科技有限公司 A kind of display methods and digital spectrum analysis instrument of three-dimensional spectrogram
CN108573520B (en) * 2018-01-05 2022-02-11 深圳市鼎阳科技股份有限公司 Display method of three-dimensional spectrogram and digital spectrum analyzer

Also Published As

Publication number Publication date
CN105933707B (en) 2019-02-22

Similar Documents

Publication Publication Date Title
CN105933707A (en) Compression method and device for panoramic video
US10694102B2 (en) Method to capture, store, distribute, share, stream and display panoramic image or video
CN101689292B (en) Banana codec
CN112219398B (en) Method and apparatus for depth coding and decoding
CN105677279B (en) Desktop area sharing method, system and corresponding shared end and viewing end
JP2022532302A (en) Immersive video coding technology for 3DoF + / MIV and V-PCC
JP7177034B2 (en) Method, apparatus and stream for formatting immersive video for legacy and immersive rendering devices
KR102327972B1 (en) Projection image construction method and device
CN103795961A (en) Video conference telepresence system and image processing method thereof
US11270413B2 (en) Playback apparatus and method, and generation apparatus and method
CN103716643A (en) System and method for improving video encoding using content information
US20200007794A1 (en) Image transmission method, apparatus, and device
US11494870B2 (en) Method and apparatus for reducing artifacts in projection-based frame
CN106162140A (en) The compression method of a kind of panoramic video and device
CN109166178B (en) Panoramic image saliency map generation method and system with fusion of visual characteristics and behavior characteristics
WO2023280266A1 (en) Fisheye image compression method, fisheye video stream compression method and panoramic video generation method
CN107318021B (en) Data processing method and system for remote display
CN111034187A (en) Dynamic image generation method and device, movable platform and storage medium
US20080007648A1 (en) Real time scaling and rotating decoded image data
CN105163124A (en) Image coding method, image decoding method, image coding device and image decoding device
EP2438572A1 (en) Generating images with different fields of view
CN104618733A (en) Image remote projection method and related device
DE102021121674A1 (en) METHOD AND SYSTEM FOR IMAGE PROCESSING OF OMNIDIRECTIONAL IMAGES WITH VIEWPOINT SHIFT
US20150271492A1 (en) Systems and Methods for Group of Pictures Encoding
CN113785591A (en) Method and apparatus for depth coding and decoding

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant