A kind of video coding-decoding method, system
Technical field
The invention belongs to video coding and decoding technology field, particularly relate to a kind of video coding-decoding method, system.
Background technology
Owing to the video data volume is huge, network bandwidth is limited, video be typically necessary when network transmits through
Compression is to reduce volume of transmitted data.The method of present Internet video compression is all unidirectional, not basis
The User Status of watching video goes to be compressed processing.
The general visual field only lighting meter about 2 degree at center of the visual system of the mankind is clearly, and this angle
Image beyond degree can be the biggest and the fuzzyyest along with angle.Fuzzy image part great majority are by human brain
Details is filled up in memory, thus rebuilds whole image in brain.Therefore video is in the data in each moment
Amount be all significantly larger than user actual it is observed that data volume.
A kind of method is had to be at present: to utilize instrument to follow the tracks of the sight line of viewing video person (calling user in the following text), thus look for
Go out this sight line focus point on video, then by algorithm the image fog not being focused, make this
The image data in region becomes close to, thus reduces video data volume after compression.The purposes of this method
Mainly make biological study rather than reduce the data volume of video.
Another kind of similar method is: by a high image resolution but the focusing of the little video camera shooting user in visual angle
Point, forms this focus point and a low resolution but the big video camera video image that generated of shooting in visual angle
One with user's focus point, focus point part is clear and the image of remaining image fog.
In sum, prior art needs to use instrument or certain algorithm to process video image,
Need manpower when realizing or there is the cooperation energetically of resource of quick computing capability, inefficient.
Summary of the invention
Embodiments provide a kind of video coding-decoding method, system, it is intended to solve prior art to regarding
Frequently the problem that the treatment effeciency of image is the highest.
On the one hand, it is provided that a kind of video coding-decoding method, described method includes:
Detection user's eyeball focus point on video pictures;
Centered by described focus point, the video image of collection is divided into the imagery zone of predetermined number, institute
State imagery zone and at least include the first image area and bottom image area;
According to the frame of described imagery zone, described video image is split at least two independence video image;
Described independent video image after splitting is performed Vitrification management;
Reducing described independent video image one by one according to the default ratio that reduces, each independent video image is corresponding
The ratio that reduces different, from described focus point distance more close to, the drawdown ratio that described independent video image is corresponding
Example value is the biggest;
Described independent video image after reducing is carried out the most independently Video coding, generates encoded video shadow
Picture;
Described encoded video image is carried out video decoding, obtains the contracting corresponding with described independent video image
Little independent video image;
Reduce described independent video image and recover to the size before reducing according to the described ratio that reduces one by one;
According to the transparent value used when described independent video image is performed Vitrification management, after amplifying
Described reduce independent video image and process;
Centered by described focus point, merge reducing independent video image described in after arranging transparent value,
Generate a secondary complete video image.
Further, the frame of the form and dimension of the frame of described bottom image area and described video image
Form and dimension is identical, the area of other imagery zone in addition to described bottom image area, with described other
The mode that the frame of imagery zone is gradually increased from the increase of the distance of described focus point sets;
The area of other imagery zone in addition to described bottom image area is default;Or,
Regulating with the distance of display screen according to user, user is the nearest with display screen, the face of described imagery zone
Long-pending the least.
Further, described to split after described independent video image perform Vitrification management specifically include:
Described independent video image after splitting does not have the region of image information be set as a kind of transparent value;
And/or,
The image information repeated between described independent video image after splitting is set as a kind of transparent value.
Further, described according to the default ratio that reduces reduce one by one the plurality of independent video image it
After, also include:
The color resolution of the plurality of independent video image is regulated one by one, often according to default color resolution
Color resolution corresponding to individual independent video image is different, from described focus point distance more close to, independent video
The color resolution that image is corresponding is the biggest.
Further, reduce ratio described according to described to reduce independent video image extensive by the plurality of one by one
Multiple after the size before reducing, also include:
To recovering to reducing to reduce independent video image described in front size and carry out smoothing techniques.
On the other hand, it is provided that a kind of video coding and decoding system, described video coding and decoding system include user side and
Video acquisition end;
Described user side includes:
Focus point acquiring unit, for detecting user's eyeball focus point on video pictures, and sends described
Focus point is to described video acquisition end;
Described video acquisition end includes:
Cutting unit, for centered by described focus point, is divided into predetermined number by the video image of collection
Imagery zone, described imagery zone at least includes the first image area and bottom image area;
Split cells, for according to the frame of the plurality of imagery zone, described video image is split into
Few two independent video images;
First Vitrification management unit, the described independent video image after splitting performs Vitrification management;
Reducing unit, for reducing described independent video image one by one according to the default ratio that reduces, each solely
The ratio that reduces that vertical video image is corresponding is different, from described focus point distance more close to, described independent video shadow
It is the biggest that what picture was corresponding reduces ratio value;
Coding unit, for the described independent video image after reducing is carried out Video coding the most independently,
Generate encoded video image, and send described encoded video image, described in reduce ratio value and to described independence
The transparent value that video image performs to be used during Vitrification management is to described user side;
Described user side also includes:
Decoding unit, for described encoded video image is carried out video decoding, obtains and described independent video
What image was corresponding reduces independent video image;
Amplifying unit, reduces independence by described one by one for the ratio that reduces sent according to described video acquisition end
Video image recovers to the size before reducing;
Second Vitrification management unit, for the transparent value sent according to described video acquisition end, after amplifying
Described in reduce independent video image and process;
Image combining unit, for centered by the focus point that described video acquisition end sends, transparent to arranging
Reduce independent video image described in after value to merge, generate a secondary complete video image.
Further, described user side also includes
Smoothing processing unit, for recovering to reducing to reduce independent video image described in front size and put down
Cunningization processes.
Further, described video acquisition end also includes:
Resolution adjustment unit, for regulating described independent video image one by one according to default color resolution
Color resolution, color resolution corresponding to each independent video image is different, from described focus point away from
Close to more, the color resolution that independent video image is corresponding is the biggest.
Further, the frame of the form and dimension of the frame of described bottom image area and described video image
Form and dimension is identical, the area of other imagery zone in addition to described bottom image area, with described other
The mode that the frame of imagery zone is gradually increased from the increase of the distance of described focus point sets;
The area of other imagery zone in addition to described bottom image area is default;Or,
Regulating with the distance of display screen according to user, user is the nearest with display screen, the face of described imagery zone
Long-pending the least.
Further, described first Vitrification management unit includes:
First Vitrification management module, does not has image information in the described independent video image after splitting
Region be set as a kind of transparent value;And/or,
Second Vitrification management module, the image repeated between the described independent video image after splitting
Information setting is a kind of transparent value.
In embodiments of the present invention, before carrying out Video coding, first obtain user's eyeball on video pictures
Focus point, carries out region division further according to described focus point to video image, then, further according to mark off
Video image is divided at least two independence video image by the frame of each image, then to described independent video
Image reduces the most one by one, and each the independent video image after finally reducing carries out Video coding, follow-up,
System can perform corresponding decoding process according to carrying out the process before Video coding.Due to from focus point
It is the biggest that what the nearest independent video image of distance was corresponding reduces ratio value, therefore can be effectively retained user's eyeball and gather
The definition of the video image of near focal point, reduces the data volume of the video image not being concerned simultaneously.And
Embodiment of the present invention whole process is user side and video acquisition end performs automatically, it is not necessary to other instrument, because of
This can save human cost, it addition, the embodiment of the present invention is also without performing certain algorithm, to process
The computing capability of device requires that ratio is relatively low, simple, and efficiency is high.
Accompanying drawing explanation
Fig. 1 is the flowchart of the video coding-decoding method that the embodiment of the present invention one provides;
Fig. 2 is the schematic diagram after the video image that the embodiment of the present invention one provides carries out region segmentation;
Fig. 3 is the schematic diagram of the multiple independent video image after the carrying out that the embodiment of the present invention one provides decouples;
Fig. 4 be the embodiment of the present invention one provide multiple independent video image reduce process schematic;
Fig. 5 is the structured flowchart of the video coding and decoding system that the embodiment of the present invention two provides.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing and reality
Execute example, the present invention is further elaborated.Only should be appreciated that specific embodiment described herein
Only in order to explain the present invention, it is not intended to limit the present invention.
In embodiments of the present invention, before carrying out Video coding, first obtain user's eyeball on video pictures
Focus point, carries out region division further according to described focus point to video image, then, further according to mark off
Video image is divided at least two independence video image by the frame of each image, then to described independent video
Image reduces the most one by one, and each the independent video image after finally reducing carries out Video coding, follow-up,
System can perform corresponding decoding process according to carrying out the process before Video coding.
Below in conjunction with specific embodiment, the realization of the present invention is described in detail:
Embodiment one
Fig. 1 shows the flowchart of the method for video coding that the embodiment of the present invention one provides, for the ease of
Illustrating, illustrate only the part relevant to the embodiment of the present invention, details are as follows:
In step S101, detect user's eyeball focus point on video pictures.
In embodiments of the present invention, user side utilizes stereo camera to shoot user, and obtains user's eyeball phase
Three-dimensional position to display screen, the most again by detecting the attitude angle of user's eyeball, thus judges user
Focus point on video pictures, finally sends the information of focus point to video acquisition end.It should be noted that
Display screen is the display screen of user side, and video pictures shows on a display screen.
In step s 102, centered by described focus point, the video image of collection is divided into predetermined number
Imagery zone, described imagery zone at least includes the first image area and bottom image area, described bottom image
The form and dimension of the frame in district is identical with the form and dimension of the frame of described video image, except described bottom
The area of other imagery zone beyond image area, with other imagery zone described from the distance of described focus point
The mode being incremented by sets.
In embodiments of the present invention, after user side detection obtains user's eyeball focus point on picture, send
The video image gathered is divided centered by this focus point by this focus point to video acquisition end, video acquisition end
It is slit into multiple imagery zone, as shown in Figure 2.Wherein, the unlimited number of imagery zone, but at least include
One image area and bottom image area, in fig. 2, video image is divided into centered by focus point first
Image area, the second image area, the 3rd image area and bottom image area.The frame of imagery zone can be such as Fig. 2
Shown in be made up of circle, it is also possible to be made up of other difformity;And the shape of the frame of bottom image area
And size is identical with the form and dimension of the frame of video image, so could include whole completely, accurately
Individual video image.In addition to bottom image area, the area of other imagery zone need to be with other imagery zone described
The mode being gradually increased from the increase of distance of described focus point sets.If the first imagery zone is than the second shadow
As region area is little, and the second imagery zone is less than the 3rd imagery zone area, and so on.Other image
The area in region can be default, it is also possible to is with regulating, i.e. user with the distance of display screen according to user
The nearest with display screen distance, the area of imagery zone reduces accordingly.
In step s 103, according to the frame of described imagery zone, described video image is split at least two
Individual independent video image.
In embodiments of the present invention, after video image subregion is completed, according to the multiple images shown in Fig. 2
This video image is split into multiple independent image by the frame in region, as it is shown on figure 3, video image is split
Become 4 independent video images, including the first image, the second image, the 3rd image and bottom image.Independent
The profile of video image is based on rectangle and the frame of each imagery zone can be completely covered.
In step S104, the described independent video image after splitting is performed Vitrification management.
In the present embodiment, the independent video image after splitting can will not have the region of image information to set
For a kind of transparent value;The image information repeated between described independent video image after splitting can also be set
For a kind of transparent value.Such as, with single tone, fill up in independent video image such as black and there is no image information
Region or set a kind of transparent value, fill up with this transparent value and independent video image do not have the district of image information
Territory such as Fig. 3, shown, the image information in this part represents with black.
In step S105, reduce described independent video image one by one according to the default ratio that reduces, each solely
The ratio that reduces that vertical video image is corresponding is different, from described focus point distance more close to, described independent video shadow
It is the biggest that what picture was corresponding reduces ratio value.
In the present embodiment, as shown in Figure 4, the independent video image obtained after decoupling is in the ratio set
Reducing, the color resolution that each independent video image is corresponding is different.One of them effective method is to pass
The mode subtracted sets the ratio of reducing, i.e. from focus point distance more close to drawdown ratio corresponding to independent video image
Example value is the biggest.The ratio that reduces such as the first image is 100%, and the ratio that reduces of the second image is 80%, as
This analogizes.The method can be effectively retained the definition of the video image near user's ocular focusing point, subtracts simultaneously
The data volume of few video image not being concerned.
Additionally, the color resolution of independent video image can also be set, i.e. from focusing in the way of successively decreasing
The color resolution that the nearest independent video image of distance of point is corresponding is the biggest, to lower image data further
Amount.
In step s 106, reduce described independent video image one by one according to the default ratio that reduces, each solely
The ratio that reduces that vertical video image is corresponding is different, from described focus point distance more close to, described independent video shadow
It is the biggest that what picture was corresponding reduces ratio value.
In the present embodiment, the independent video image after reducing process can carry out Video coding independently, as
H.264 wait coding, and be sent to user side through network.Additionally, the transparent value of each independent video image,
Reduce ratio and focus point that step S101 detects can be sent to user side simultaneously in the form of data.
In step s 107, reduce described independent video image one by one according to the default ratio that reduces, each solely
The ratio that reduces that vertical video image is corresponding is different, from described focus point distance more close to, described independent video shadow
It is the biggest that what picture was corresponding reduces ratio value.
In the present embodiment, after user side receives the data and image sent from video acquisition end, meeting
First independent encoded video image is decoded with corresponding coding/decoding method (as H.264), obtains multiple reducing
Independent video image.
In step S108, reduce the recovery of independent video image to contracting by described one by one according to the described ratio that reduces
Size before little.
In the present embodiment, the contracting of each independent video image that user side is sent according to video acquisition end
Small scale, the independent video image that reduces that decoding is obtained resets into original size, after reducing and amplifying
Independent video image can thicken, but these imagery zones fogged are all the regions that user is not concerned with.
In step S109, transparent according to used when described independent video image is performed Vitrification management
Value, reduces independent video image and processes described in after amplifying.
In the present embodiment, reducing independent video image and also can carry out smoothing techniques after amplification, to reduce
Zigzag image.Then apply mechanically the transparent value of each independent video image before carrying out Video coding to put to each
Reducing in independent image after great.
In step s 110, centered by described focus point, independently regard reducing described in after arranging transparent value
Frequently image merges, and generates a secondary complete video image.
In the present embodiment, by multiple independent video image after treatment, finally weight centered by focus point
Repeatedly on bottom image, thus forming the video image that a width is complete, complete video image finally can pass
Deliver to display screen show.
The embodiment of the present invention, before carrying out Video coding, first obtains the focusing on video pictures of user's eyeball
Point, carries out region division further according to described focus point to video image, then, further according to mark off each
Video image is divided at least two independence video image by the frame of image, then to described independent video image
Scaled, each independent video image after finally reducing carries out Video coding, follow-up, and system is i.e.
Corresponding decoding process can be performed according to carrying out the process before Internet video coding.Due to from focus point away from
It is the biggest that what independent video image close to more was corresponding reduces ratio value, therefore can be effectively retained user's ocular focusing
The definition of the video image near point, reduces the data volume of the video image not being concerned simultaneously.And this
Inventive embodiments whole process is user side and video acquisition end performs automatically, it is not necessary to other instrument, therefore
Human cost can be saved, it addition, the embodiment of the present invention is also without performing certain algorithm, to processor
Computing capability require that ratio is relatively low, simple, efficiency is high.
Embodiment two
Fig. 5 shows the structured flowchart of the video coding and decoding system that the embodiment of the present invention two provides, for the ease of
Illustrating, illustrate only the part relevant to the embodiment of the present invention, described video coding and decoding system includes: user
End 51 and video acquisition end 52.
Wherein, described user side 51 includes: focus point acquiring unit 511, decoding unit 512, amplification list
Unit's the 513, second Vitrification management unit 514 and image combining unit 515.
Wherein, focus point acquiring unit 511, for detecting user's eyeball focus point on video pictures,
And send described focus point to described video acquisition end.
Described video acquisition end 52 includes: cutting unit 521, split cells the 522, first Vitrification management
Unit 523, reducing unit 524 and coding unit 525.
Wherein, cutting unit 521, for centered by described focus point, the video image that will gather is split
Becoming the imagery zone of predetermined number, described imagery zone at least includes the first image area and bottom image area, its
In, the frame size of described bottom image area is identical with the frame size of described video image, except described bottom
The frame size of other imagery zone beyond image area;It addition, the frame size that each imagery zone is corresponding
Difference, from described focus point distance more close to, frame is the least, the big I of frame that each imagery zone is corresponding
Being default, it is also possible to regulating with the distance of display screen according to user, user is the nearest with display screen, shadow
The frame corresponding as region is the least;
Split cells 522, for according to the frame of described imagery zone, described video image is split into
Few two independent video images;
First Vitrification management unit 523, the described independent video image after splitting performs transparence
Process;
Reducing unit 524, for reducing described independent video image one by one according to the default ratio that reduces, often
The ratio that reduces corresponding to individual independent video image is different, from described focus point distance more close to, described independently regard
It is the biggest that what image was corresponding frequently reduces ratio value;
Coding unit 525, for carrying out video volume the most independently to the described independent video image after reducing
Code, generate encoded video image, and send described encoded video image, described in reduce ratio value and to described
The transparent value that independent video image performs to be used during Vitrification management is to described user side;
Decoding unit 512, carries out video solution for the encoded video image sending described video acquisition end 52
Code, obtains corresponding with described independent video image reducing independent video image;
Amplifying unit 513, for the ratio that reduces according to the transmission of described video acquisition end 52 one by one by described contracting
Little independent video image recovers to the size before reducing;
Second transparent value arranges unit 514, for the transparent value sent according to described video acquisition end 52, right
Reduce independent video image described in after amplification to process;
Image combining unit 515, for centered by the focus point that described video acquisition end 52 sends, to setting
Reduce independent video image described in after putting transparent value to merge, generate a secondary complete video image.
Further, as a preferred embodiment of the present invention, described user side 51 also includes: smooth place
Reason unit, this unit is for recovering to reduce front size the plurality of to reduce independent video image and put down
Cunningization processes.
Further, as a preferred embodiment of the present invention, described video acquisition end 52 also includes: point
Resolution regulation unit, this unit is for regulating each independent video image one by one according to default color resolution
Color resolution, color resolution corresponding to each independent video image is different, from described focus point away from
Close to more, the color resolution that independent video image is corresponding is the biggest.
Further, described first Vitrification management unit 523 includes: the first Vitrification management module and,
Or the second Vitrification management module, wherein, the first Vitrification management module described independence after splitting
The region not having image information in video image is set as a kind of transparent value;Second Vitrification management module, in
The image information repeated between described independent video image after splitting is set as a kind of transparent value.
It should be noted that in said system embodiment, included unit is according to function logic
Carry out dividing, but be not limited to above-mentioned division, as long as being capable of corresponding function;Separately
Outward, the specific name of each functional unit also only to facilitate mutually distinguish, is not limited to the present invention's
Protection domain.
It addition, one of ordinary skill in the art will appreciate that the whole or portion realizing in the various embodiments described above method
The program that can be by step by step completes to instruct relevant hardware, and corresponding program can be stored in a meter
In calculation machine read/write memory medium, described storage medium, such as ROM/RAM, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all at this
Any amendment, equivalent and the improvement etc. made within bright spirit and principle, should be included in the present invention
Protection domain within.