[go: up one dir, main page]

CN105847816A - Video file thumbnail creation method and electronic device - Google Patents

Video file thumbnail creation method and electronic device Download PDF

Info

Publication number
CN105847816A
CN105847816A CN201610207743.5A CN201610207743A CN105847816A CN 105847816 A CN105847816 A CN 105847816A CN 201610207743 A CN201610207743 A CN 201610207743A CN 105847816 A CN105847816 A CN 105847816A
Authority
CN
China
Prior art keywords
video
pixel
frame
value
image
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
CN201610207743.5A
Other languages
Chinese (zh)
Other versions
CN105847816B (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.)
Guangzhou Cubesili Information Technology Co Ltd
Original Assignee
Guangzhou Huaduo Network 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 Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN201610207743.5A priority Critical patent/CN105847816B/en
Publication of CN105847816A publication Critical patent/CN105847816A/en
Application granted granted Critical
Publication of CN105847816B publication Critical patent/CN105847816B/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/182Methods 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 a pixel
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Processing (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses a video file thumbnail creation method and an electronic device. The method comprises steps the pixel information of a video frame of a video file is acquired; whether an image corresponding to the video frame is a single color image is determined according to the pixel information; if not, the image corresponding to the video frame is acquired for generating a thumbnail of the video frame. Through the method, the generated thumbnail can more accurately present the video content.

Description

The creation method of video file thumbnail and electronic installation
Technical field
The present invention relates to creation method and the electronic installation of a kind of video file thumbnail.
Background technology
In order to make user to facilitate and understand video information quickly, existing client and various Apply when showing list of videos, the most all video can be carried out sectional drawing to produce the thumbnail of video The approximate contents of video is understood in advance for user.
Existing way is typically the first two field picture intercepting video thumbnail as video.But, Owing to existing video production instrument provides the effect of fading in that video comes out gradually mostly, therefore according to video The first frame truncated picture be easy to pure background colour (generally ater) occurs, thus The thumbnail obtained cannot show video content exactly.
Summary of the invention
The technical problem that present invention mainly solves is to provide the establishment side of a kind of video file thumbnail Method and electronic installation so that the thumbnail generated can represent video content more accurately.
For solving above-mentioned technical problem, the technical scheme that the present invention uses is: provide one to regard The creation method of frequency file thumbnail, including: obtain the picture of one of them frame of video of video file Prime information;Judge whether image corresponding to described frame of video is solid color according to described Pixel Information Image;If it is not, then obtain image corresponding to described frame of video to generate the contracting of described video file Sketch map.
Wherein, the step bag of the Pixel Information of one of them frame of video of described acquisition video file Include: obtain the color value of each pixel of described frame of video, to obtain described Pixel Information;Described Judge whether image corresponding to described frame of video is solid color image according to described Pixel Information Step includes: calculate the absolute value that selected pixel is adjacent the difference of pixel color value;Work as detection When the absolute value of the difference being adjacent pixel color value to selected pixel is respectively less than first threshold, make Assessed value adds 1;When described assessed value is less than Second Threshold, then judge that described frame of video is corresponding Image is not solid color image.
Wherein, the step bag of the Pixel Information of one of them frame of video of described acquisition video file Include: obtain the transparence value of each pixel of described frame of video, to obtain described Pixel Information;Institute State and judge whether image corresponding to described frame of video is solid color image according to described Pixel Information Step include: calculate the absolute value that selected pixel is adjacent the difference of pixel transparent angle value;When Detect that selected pixel is adjacent the absolute value of the difference of pixel transparent angle value less than the 3rd threshold value Time, make assessed value add 1;When described assessed value is less than four threshold values, then judge described frame of video Corresponding image is not solid color image.
Wherein, the step bag of the Pixel Information of one of them frame of video of described acquisition video file Include: start to obtain at equal intervals selected pixel and the picture of neighbor thereof described frame of video from reference point Prime information.
Wherein, the step bag of the Pixel Information of one of them frame of video of described acquisition video file Include: the Pixel Information of random one of them frame of video obtaining video file.
Wherein, the step bag of the Pixel Information of one of them frame of video of described acquisition video file Include: from the beginning of first frame of video of described video file, obtain first of described video file The Pixel Information of frame of video, and when judging that described first frame of video is according to described Pixel Information During solid color image, obtain the Pixel Information of next frame of video.
For solving above-mentioned technical problem, another technical solution used in the present invention is: provide one Create the electronic installation of video file thumbnail, including: acquisition module, it is used for obtaining video file The Pixel Information of one of them frame of video;Judge module, for judging according to described Pixel Information Whether image corresponding to described frame of video is solid color image;Generation module, for when judging mould Block judges, when image corresponding to described frame of video is not solid color image, to obtain described frame of video pair The image answered is to generate the thumbnail of described video file.
Wherein, described acquisition module is used for obtaining the color value of each pixel of described frame of video, with Obtain described Pixel Information;Described judge module includes: the first computing unit, is used for calculating selected Pixel is adjacent the absolute value of the difference of pixel color value;First accumulated unit, for when detection When the absolute value of the difference being adjacent pixel color value to selected pixel is respectively less than first threshold, make Assessed value adds 1;First judging unit, for when described assessed value is less than Second Threshold, it is judged that Image corresponding to described frame of video is not solid color image.
Wherein, described acquisition module is used for obtaining the transparence value of each pixel of described frame of video, To obtain described Pixel Information;Described judge module includes: the second computing unit, is used for calculating choosing Fixation element is adjacent the absolute value of the difference of pixel transparent angle value;Second accumulated unit, for working as Detect that selected pixel is adjacent the absolute value of the difference of pixel transparent angle value less than the 3rd threshold value Time, make assessed value add 1;Second judging unit, is used for when described assessed value is less than four threshold values, Judge that image corresponding to described frame of video is not solid color image.
Wherein, described acquisition module selects for starting to obtain at equal intervals described frame of video from reference point Fixation element and the Pixel Information of neighbor thereof.
Wherein, described acquisition module is for the picture of random one of them frame of video obtaining video file Prime information.
Wherein, described acquisition module, for from the beginning of first frame of video of described video file, obtains Take the Pixel Information of first frame of video of described video file, and when described judge module according to Described Pixel Information judges, when described first frame of video is solid color image, to be used for obtaining next The Pixel Information of individual frame of video.
The invention has the beneficial effects as follows: be different from the situation of prior art, the present invention is regarded by judgement Whether the image that frame is corresponding frequently is solid color image, when judgement is not solid color image, says Image corresponding to this frame of video bright is not solid-color image, and the probability with video content is bigger, because of Corresponding for this frame of video image is generated the thumbnail of video file by this, thus can improve to have and regards Frequently the probability of the thumbnail of content, so that the thumbnail generated can more accurately show video Content.
Accompanying drawing explanation
Fig. 1 is the flow chart of creation method one embodiment of video file thumbnail of the present invention;
Fig. 2 is in creation method one embodiment of video file thumbnail of the present invention, believes according to pixel Breath judges that whether image corresponding to frame of video be the flow chart of solid color image;
Fig. 3 is in creation method one embodiment of video file thumbnail of the present invention, and frame of video is corresponding The dot structure schematic diagram of image;
Fig. 4 is in the another embodiment of creation method of video file thumbnail of the present invention, according to pixel Information judges that whether image corresponding to frame of video be the flow chart of solid color image;
Fig. 5 is that the structure of electronic installation one embodiment that the present invention creates video file thumbnail is shown It is intended to;
Fig. 6 is the structure that the present invention creates another embodiment of electronic installation of video file thumbnail Schematic diagram;
Fig. 7 is the structure that the present invention creates the another embodiment of electronic installation of video file thumbnail Schematic diagram.
Detailed description of the invention
Below in conjunction with drawings and embodiments, the present invention is described in detail.
Refering to Fig. 1, in creation method one embodiment of video file thumbnail of the present invention, including Step:
Step S101: obtain the Pixel Information of one of them frame of video of video file.
Wherein, in the present embodiment, from the beginning of the first of video file frame of video, the is obtained The Pixel Information of one frame of video.
Wherein, Pixel Information can include monochrome information, colouring information, high-frequency information and/or transparent Angle value etc..
Step S102: judge whether image corresponding to frame of video is solid color figure according to Pixel Information Picture.
Solid color image refers to the image of same type color, including the image and gradually of same color Become the image of color.Same color image e.g. all black picture, full white image, complete red image etc., Graduated colors image e.g. from dark red gradual change to ruddy image.Solid color image is due to often The color that individual pixel presents is identical or approximately, the therefore picture of each pixel of solid color image Prime information is closer to, and therefore judges whether image corresponding to frame of video is single according to Pixel Information One color image.
Step S103: if it is not, then obtain image corresponding to frame of video to generate the contracting of video file Sketch map.
Unlike solid color image, the image with video content is generally of multiple face Color, such as when video content is personage's head portrait, each position such as the hair of personage, clothes, skin Color distortion the biggest, be not therefore solid color image when the image that the frame of video obtained is corresponding Time, illustrate that this frame of video presents the probability of video content relatively greatly, therefore that this frame of video is corresponding Image generate the thumbnail of video file, thus can improve the thumbnail with video content Probability, so that the thumbnail generated can more accurately show video content.Therefore at electronics This thumbnail can be used as video file when showing video file on equipment such as mobile phone, computer Path indexing show.
Further, when judging that image corresponding to first frame of video obtained is solid color image Time, then obtain the Pixel Information of second frame of video to judge second according to the Pixel Information obtained Whether image corresponding to frame of video is solid color image, by that analogy, according to the broadcasting of frame of video Order is till finding non-solid color image.
Above-mentioned embodiment is from the beginning of the first of video file frame of video, first obtains first The Pixel Information of frame of video judges, in other embodiments of the present invention, it is also possible to be with The Pixel Information of one of them frame of video that machine obtains video file judges, now when judging this When image corresponding to the frame of video of secondary random acquisition is solid color image, obtain another the most at random Whether the Pixel Information of frame of video is single face with the image that judgement another frame of video described is corresponding Color image, by that analogy, till finding non-solid color image.
Refering to Fig. 2, in the embodiment of the invention, obtain one of them of video file The step of the Pixel Information of frame of video includes: obtain the color value of each pixel of frame of video, to obtain Pixel information.
Described color value refers to the grey decision-making of pixel.Multiple pixels that image is arranged by ranks are formed, Each pixel includes R (red), G (green), three primary color sub-pixels of B (blue), each primary colours Sub-pixel has a color value, this color value can between 0~255 value, including endpoint value. Wherein, in present embodiment, the color value of each pixel refers to the RGB tri-by each pixel One color value of the respective pixel that the color value conversion of individual primary color sub-pixels obtains.Due to above-mentioned face The conversion of colour belongs to the category of prior art, and the emphasis place of non-invention, thus the most superfluous State.
Wherein, judge whether image corresponding to frame of video is solid color image bag according to Pixel Information Include following sub-step:
Sub-step S201: calculate the absolute value that selected pixel is adjacent the difference of pixel color value.
Wherein, each pixel during selected pixel is every one-row pixels.In conjunction with Fig. 3, it is assumed that obtained Image corresponding to the frame of video that takes includes 6x4 pixel, then selecting pixel is the first row pixel P11~P16, the second row pixel P21~P26..., the 6th row pixel P61~P66.With selected the third line Pixel P31~P36In pixel P33As a example by, with pixel P33Adjacent pixel has P32、P34、P43、 P23, it is as follows with the calculating process of the absolute value of the difference of the color value of neighbor:
A1=| GP33-GP32|
A2=| GP33-GP34|
A3=| GP33-GP43|
A4=| GP33-GP23|
Wherein, GP33、GP32、GP34、GP43、GP23It is respectively pixel P33And adjacent four pictures Element P32、P34、P43、P23Color value, A1~A4It is respectively pixel P33And adjacent four pictures Element P32、P34、P43、P23The absolute value of difference of color value.
Other pixels are adjacent the absolute value of difference of color value of pixel by that analogy, at this not Do and repeat one by one.
The absolute value of the difference that selected pixel is adjacent the color value of pixel is the least, and selected picture is described The difference that element is adjacent the color shown by pixel is the least, more levels off to same color.Otherwise, Then color distortion is the biggest.Such as, A is worked as1When=0, pixels illustrated P33With pixel P32Shown Color is identical, works as A1When=2, pixels illustrated P33With pixel P32Shown color is closer to, Slightly difference.The absolute value of the difference being adjacent pixel color value when all selected pixels is 0 Time, the color major part all phases shown by each pixel of image corresponding to frame of video obtained are described With, the probability for solid-color image is the biggest.When all selected pixels are adjacent pixel color value The absolute value of difference such as in the range of 3~8, image corresponding to frame of video illustrating to obtain each Color shown by pixel is closer to, it may be possible to the image of graduated colors.
Sub-step S202: when detecting that selected pixel is adjacent the absolute of the difference of pixel color value When value is respectively less than first threshold, assessed value is made to add 1.
Wherein, first threshold can be such as 3,5 or 8 etc..
Wherein, as a example by first threshold is 8, it is assumed that A1=0, A2=2, A3=5, A4=7, because of This pixel P33And adjacent four pixels P32、P34、P43、P23Difference absolute of color value Value is respectively less than first threshold, now thinks in pixel P33Near the color that presented relatively, May be such as only red, light red difference, therefore, it is determined that be pixel P33The color phase of neighbouring display With, therefore make assessed value add 1.
Wherein, due to the color slightly difference of pixel each in the image of graduated colors, in order to reduce by First threshold, as the probability of video thumbnails, can be set to bigger by the image of graduated colors Value, such as, could be arranged to 10,15 or 30 etc..
Sub-step S203: when assessed value is less than Second Threshold, then judge the image that frame of video is corresponding It it not solid color image.
Wherein, assessed value is the biggest, illustrates that the same or like pixel of color is the most, and image is single The probability of color image (solid-color image or graduated colors image) is the biggest, otherwise explanation color is identical Or close pixel is the fewest, image is that the probability of non-solid color image is the fewest.Wherein Second Threshold Can be set according to the pixel total amount of the image of frame of video.When pixel total amount it is such as During 800x600, pixel is 800 at once, and row pixel is 600, is still every with selected pixel As a example by each pixel in one-row pixels, then select pixel and be adjacent the difference of pixel color value Whether absolute value is respectively less than the detection number of times of first threshold is 800 times, now can arrange the second threshold Value is 600.When assessed value is less than Second Threshold, assessed value is less, illustrates that color is identical or phase The negligible amounts of near pixel, now judges that image corresponding to frame of video is not solid color image, When assessed value is more than or equal to Second Threshold, assessed value machine is relatively big, illustrates that color is same or like The quantity of pixel more, now judge that image corresponding to frame of video is solid color image.
By the way, can be compared with accurately judging that image corresponding to frame of video is pure background colour Image, thus reduce the probability using pure background colour as the thumbnail of video file.
Certainly, in other embodiments of the present invention, the color value of each pixel may also mean that often The color value of tri-primary color sub-pixels of RGB included by individual pixel.Now calculate selected pixel and The absolute value of the difference of its neighbor color value includes: calculate selected pixel and neighbor thereof The absolute value of the difference of corresponding primary color sub-pixels color value.More specifically, selected pixel is calculated R sub-pixel respectively with the absolute value of the difference of the color value of the R sub-pixel of described neighbor, with And calculate the G sub-pixel of selected pixel respectively with the color value of the G sub-pixel of described neighbor The absolute value of difference, and calculate the B sub-pixel of selected pixel respectively with the B of described neighbor The absolute value of the difference of the color value of sub-pixel.Wherein, when detecting that selected pixel is adjacent picture When the absolute value of the difference of the color value of each primary color sub-pixels of element is respectively less than first threshold, make assessment Value adds 1, i.e. the absolute value of the difference of the color value of the corresponding primary color sub-pixels between pixel is the least In first threshold, and the color value of selected pixel and the corresponding primary color sub-pixels of all neighbors The absolute value of difference when being respectively less than first threshold, make assessed value add 1.
Refering to Fig. 4, in still another embodiment of the present invention, obtain wherein the one of video file The step of the Pixel Information of individual frame of video includes: obtain the transparency of each pixel of frame of video (Alpha) value, to obtain Pixel Information.
Each pixel, in addition to having color value, also has a transparence value, in order to represent pixel Transparency or opacity.Wherein, transparence value can between 0~255 value, including end Point value, transparence value is that 0 expression is transparent, and transparence value is that 255 expressions are opaque.
Wherein, judge whether image corresponding to frame of video is solid color image according to Pixel Information Principle is similar with Fig. 2 illustrated embodiment, specifically includes following sub-step:
Sub-step S401: the selected pixel of calculating is adjacent the absolute of the difference of pixel transparent angle value Value.
Wherein, each pixel during selected pixel is every a line.In conjunction with Fig. 3, still with selected the Three row pixels P31~P36In pixel P33As a example by, the difference of its transparence value with neighbor The calculating process of absolute value is as follows:
B1=| AP33-AP32|
B2=| AP33-AP34|
B3=| BP33-BP43|
B4=| BP33-BP23|
Wherein, AP33、AP32、AP34、AP43、AP23It is respectively pixel P33And adjacent four pictures Element P32、P34、P43、P23Transparence value, B1~B4It is respectively pixel P33And adjacent four Pixel P32、P34、P43、P23The absolute value of difference of transparence value.
Other pixels are adjacent the absolute value of difference of transparence value of pixel by that analogy, at this Do not do and repeat one by one.
The absolute value of the difference that selected pixel is adjacent the transparence value of pixel is the least, illustrates selected The difference that pixel is adjacent the color shown by pixel is the least, more levels off to same color.Instead It, then color distortion is the biggest.
Sub-step S402: when detecting that selected pixel is adjacent the exhausted of the difference of pixel transparent angle value During to value less than three threshold values, assessed value is made to add 1.
Wherein, the 3rd threshold value can be such as 5,8 or 10 etc..
Sub-step S403: when assessed value is less than four threshold values, then judge the image that frame of video is corresponding It it not solid color image.
Wherein, assessed value is the biggest, illustrates that the same or like pixel of color is the most, and image is single The probability of color image is the biggest, otherwise the explanation same or like pixel of color is the fewest, and image is non- The probability of solid color image is the fewest.
Wherein the 4th threshold value can be set according to the pixel total amount of the image of frame of video, with second The setting principle of threshold value is similar, does not repeats this.
When assessed value is less than four threshold values, assessed value is less, and the picture that color is same or like is described The negligible amounts of element, now judges that image corresponding to frame of video is not solid color image, works as assessment When value is more than or equal to four threshold values, assessed value machine is relatively big, and the pixel that color is same or like is described Quantity more, now judge that image corresponding to frame of video is solid color image.
In the above-described embodiment, each pixel during selected pixel is every one-row pixels.At this In bright another embodiment, selected pixels can be spaced, wherein obtain video file one of them The step of the Pixel Information of frame of video includes: start to obtain at equal intervals frame of video selected from reference point Pixel and the Pixel Information of neighbor thereof.
Such as, when the color value that Pixel Information is pixel, start to obtain at equal intervals to regard from reference point Selected pixel and the color value of neighbor thereof in frequency file.As a example by the dot structure shown in Fig. 3, With the first row pixel as reference point, then obtain at interval of one-row pixels in one-row pixels each pixel and The color value of its neighbor, more specifically, every in the first row, the third line, fifth line pixel Individual pixel is selected pixel, thus obtain is in the first row, the third line and fifth line pixel Each pixel and the color value of neighbor thereof, be the most only to calculate the first row, the third line and the Each pixel in five elements' pixel is adjacent the absolute value of the difference of the color value of pixel.
Certainly, in other embodiments, reference point can also be first in every one-row pixels Pixel, starts with first pixel in every one-row pixels, at interval of a predetermined pixel (can be such as Be spaced 3 or 5 etc.) then choose a pixel for selected pixel, thus obtain selected pixel with The Pixel Information of its neighbor, and then judge whether image corresponding to frame of video is solid color figure Picture.
Refering to Fig. 5, in the present invention creates electronic installation one embodiment of video file thumbnail, Electronic installation includes acquisition module 51, judge module 52 and generation module 53.
Wherein, acquisition module 51 is for obtaining the pixel letter of one of them frame of video of video file Breath.In present embodiment, acquisition module 51, from the beginning of the first of video file frame of video, obtains Take the Pixel Information of first frame of video.
Wherein, Pixel Information can include monochrome information, colouring information, high-frequency information and/or transparent Angle value etc..
According to Pixel Information, judge module 52 is for judging whether image corresponding to frame of video is single Color image.
Solid color image refers to the image of same type color, the image of described same type color Refer to that the color distortion of the entire picture of image is less, it image including same color and gradual change face The image of color.Same color image e.g. all black picture, full white image, complete red image etc., gradually Become color image e.g. from dark red gradual change to ruddy image.Solid color image is due to each The color that pixel presents is identical or approximately, the therefore pixel of each pixel of solid color image Information is closer to, and therefore judges whether image corresponding to frame of video is single according to Pixel Information Color image.
When judge module 52, generation module 53 is for judging that image corresponding to frame of video is not single face During color image, obtain image corresponding to frame of video to generate the thumbnail of video file.
Unlike solid color image, the image with video content is generally of multiple face Color, such as when video content is personage's head portrait, each position such as the hair of personage, clothes, skin Color distortion the biggest, be not therefore solid color image when the image that the frame of video obtained is corresponding Time, illustrate that this frame of video presents the probability of video content relatively greatly, therefore that this frame of video is corresponding Image generate the thumbnail of video file, thus can improve the thumbnail with video content Probability, so that the thumbnail generated can more accurately show video content.Therefore at electronics This thumbnail can be used as video file when showing video file on equipment such as mobile phone, computer Path indexing show.
Further, judge that image corresponding to frame of video is solid color image when judge module 52 Time, then acquisition module 51 obtains the Pixel Information of second frame of video to carry out judging that second regards Whether the image that frame is corresponding frequently is solid color image, until finding non-solid color image.
Above-mentioned embodiment is from the beginning of the first of video file frame of video, first obtains first The Pixel Information of frame of video judges, in other embodiments of the present invention, and acquisition module 51 Can also be that the Pixel Information of one of them frame of video obtaining video file at random judges, this Time judge that image corresponding to this frame of video obtained at random is solid color figure when judge module 52 During picture, then acquisition module 51 obtains the Pixel Information of another frame of video at random to judge, By that analogy, till finding non-solid color image.
Refering to Fig. 6, in electronic installation one detailed description of the invention of the present invention, Pixel Information is pixel Color value.Wherein, acquisition module 51 is specifically for obtaining the color of each pixel of frame of video Value, to obtain Pixel Information.
Wherein, in present embodiment, the color value of each pixel refers to the RGB by each pixel One color value of the respective pixel that the color value conversion of three primary color sub-pixels obtains.
Wherein judge module 52 includes first computing unit the 61, first accumulated unit 62 and first Judging unit 63.
First computing unit 61 is adjacent the difference of pixel color value for calculating selected pixel Absolute value.The absolute value of the difference that selected pixel is adjacent the color value of pixel is the least, and choosing is described The difference that fixation element is adjacent the color shown by pixel is the least, more levels off to same color. Otherwise, then color distortion is the biggest.
First accumulated unit 62 is for when detecting that selected pixel is adjacent the difference of pixel color value When the absolute value of value is respectively less than first threshold, assessed value is made to add 1.Wherein, first threshold such as may be used Being 3,5 or 8 etc..
First judging unit 63 is for when assessed value is less than Second Threshold, it is judged that video is the most corresponding Image be not solid color image.Wherein, assessed value is the biggest, illustrates that color is same or like Pixel is the most, and image is that the probability of solid color image is the biggest, otherwise explanation color is same or like Pixel the fewest, image is that the probability of non-solid color image is the fewest.Wherein Second Threshold can root It is set according to the pixel total amount of the image of frame of video.When assessed value is less than Second Threshold, assessment It is worth less, the negligible amounts of the same or like pixel of color is described, now judge that frame of video is corresponding Image be not solid color image, when assessed value more than or equal to Second Threshold time, assessed value machine Relatively big, illustrate that the quantity of the same or like pixel of color is more, now judge that frame of video is corresponding Image is solid color image.
By the way, can be compared with accurately judging that image corresponding to frame of video is pure background colour Image, thus reduce the probability using pure background colour as the thumbnail of video file.
Certainly, in other embodiments of the present invention, the color value of each pixel may also mean that often The color value of tri-primary color sub-pixels of RGB included by individual pixel.
Refering to Fig. 7, in the another embodiment of electronic installation of the present invention, acquisition module 51 is specifically used In transparency (Alpha) value of each pixel obtaining frame of video, to obtain Pixel Information.
Wherein, it is judged that module 52 includes second computing unit the 71, second accumulated unit 72 and Two judging units 73.
Second computing unit 71 is for calculating the difference that selected pixel is adjacent the transparence value of pixel The absolute value of value.The absolute value of the difference that selected pixel is adjacent the transparence value of pixel is the least, Illustrate that selected pixel is adjacent the difference of the color shown by pixel the least, more level off to same Color.Otherwise, then color distortion is the biggest.
Second accumulated unit 72 is for when detecting that selected pixel is adjacent pixel transparent angle value When the absolute value of difference is less than three threshold values, assessed value is made to add 1.Wherein, the 3rd threshold value such as may be used Being 5,8 or 10 etc..
Second judging unit 73 is for when assessed value is less than four threshold values, it is judged that frame of video is corresponding Image be not solid color image.Wherein, assessed value is the biggest, illustrates that color is same or like Pixel is the most, and image is that the probability of solid color image is the biggest, otherwise explanation color is same or like Pixel the fewest, image is that the probability of non-solid color image is the fewest.Wherein the 4th threshold value can root It is set according to the pixel total amount of the image of frame of video.
In the another embodiment of electronic installation of the present invention, acquisition module 51 is for opening from reference point Begin to obtain at equal intervals selected pixel and the Pixel Information of neighbor thereof in frame of video.
Such as, when the color value that Pixel Information is pixel, acquisition module 51 is from the beginning of reference point Obtain selected pixel and the color value of neighbor thereof in video file at equal intervals.Shown in Fig. 3 As a example by dot structure, with the first row pixel as reference point, then obtain a line picture at interval of one-row pixels Each pixel and the color value of neighbor thereof in element, more specifically, the first row, the third line, Each pixel in five elements' pixel is selected pixel, thus obtain be the first row, the third line and Each pixel in fifth line pixel and the color value of neighbor thereof, be the most only calculating first Each pixel in row, the third line and fifth line pixel is adjacent the difference of the color value of pixel Absolute value.
Certainly, in other embodiments, reference point can also be first in every one-row pixels Pixel, starts with first pixel in every one-row pixels, at interval of a predetermined pixel (can be such as Be spaced 3 or 5 etc.) then choose a pixel for selected pixel, thus obtain selected pixel with The Pixel Information of its neighbor, and then judge whether image corresponding to frame of video is solid color figure Picture.
The foregoing is only embodiments of the present invention, not thereby limit the patent model of the present invention Enclosing, every equivalent structure utilizing description of the invention and accompanying drawing content to be made or equivalence flow process become Change, or be directly or indirectly used in other relevant technical fields, be the most in like manner included in the present invention's In scope of patent protection.

Claims (12)

1. the creation method of a video file thumbnail, it is characterised in that including:
Obtain the Pixel Information of one of them frame of video of video file;
Judge whether image corresponding to described frame of video is solid color figure according to described Pixel Information Picture;
If it is not, then obtain image corresponding to described frame of video to generate the breviary of described video file Figure.
Method the most according to claim 1, it is characterised in that described acquisition video file The step of the Pixel Information of one of them frame of video includes: obtain each pixel of described frame of video Color value, to obtain described Pixel Information;
Described judge whether image corresponding to described frame of video is single face according to described Pixel Information The step of color image includes:
Calculate the absolute value that selected pixel is adjacent the difference of pixel color value;
When absolute value difference that selected pixel is adjacent pixel color value being detected is respectively less than During one threshold value, assessed value is made to add 1;
When described assessed value is less than Second Threshold, then judge that image corresponding to described frame of video is not Solid color image.
Method the most according to claim 1, it is characterised in that described acquisition video file The step of the Pixel Information of one of them frame of video includes: obtain each pixel of described frame of video Transparence value, to obtain described Pixel Information;
Described judge whether image corresponding to described frame of video is single face according to described Pixel Information The step of color image includes:
Calculate the absolute value that selected pixel is adjacent the difference of pixel transparent angle value;
When detecting that selected pixel is adjacent the absolute value of the difference of pixel transparent angle value less than the During three threshold values, assessed value is made to add 1;
When described assessed value is less than four threshold values, then judge that image corresponding to described frame of video is not Solid color image.
Method the most according to claim 1, it is characterised in that described acquisition video file The step of the Pixel Information of one of them frame of video includes: start to obtain at equal intervals described from reference point Selected pixel and the Pixel Information of neighbor thereof in frame of video.
Method the most according to claim 1, it is characterised in that described acquisition video file The step of the Pixel Information of one of them frame of video includes: one of them of random acquisition video file The Pixel Information of frame of video.
Method the most according to claim 1, it is characterised in that described acquisition video file The step of the Pixel Information of one of them frame of video includes: from first video of described video file Frame starts, and obtains the Pixel Information of first frame of video of described video file, and when according to institute State Pixel Information and judge when described first frame of video is solid color image, obtain next video The Pixel Information of frame.
7. the electronic installation creating video file thumbnail, it is characterised in that including:
Acquisition module, for obtaining the Pixel Information of one of them frame of video of video file;
Whether judge module, for judging image corresponding to described frame of video according to described Pixel Information For solid color image;
When judge module, generation module, for judging that image corresponding to described frame of video is not single face During color image, obtain image corresponding to described frame of video to generate the thumbnail of described video file.
Electronic installation the most according to claim 7, it is characterised in that described acquisition module is used In the color value of each pixel obtaining described frame of video, to obtain described Pixel Information;
Described judge module includes:
First computing unit, is adjacent difference exhausted of pixel color value for calculating selected pixel To value;
First accumulated unit, for when detecting that selected pixel is adjacent the difference of pixel color value Absolute value when being respectively less than first threshold, make assessed value add 1;
First judging unit, for when described assessed value is less than Second Threshold, it is judged that described video The image that frame is corresponding is not solid color image.
Electronic installation the most according to claim 7, it is characterised in that described acquisition module is used In the transparence value of each pixel obtaining described frame of video, to obtain described Pixel Information;
Described judge module includes:
Second computing unit, is adjacent the difference of pixel transparent angle value for calculating selected pixel Absolute value;
Second accumulated unit, for when detecting that selected pixel is adjacent the difference of pixel transparent angle value When the absolute value of value is less than three threshold values, assessed value is made to add 1;
Second judging unit, for when described assessed value is less than four threshold values, it is judged that described video The image that frame is corresponding is not solid color image.
Electronic installation the most according to claim 7, it is characterised in that described acquisition module is used In starting to obtain at equal intervals selected pixel and the picture of neighbor thereof in described frame of video from reference point Prime information.
11. electronic installations according to claim 7, it is characterised in that described acquisition module is used Pixel Information in random one of them frame of video obtaining video file.
12. electronic installations according to claim 7, it is characterised in that described acquisition module is used In from the beginning of first frame of video of described video file, obtain first of described video file and regard Frequently the Pixel Information of frame, and when described judge module judges described first according to described Pixel Information When individual frame of video is solid color image, for obtaining the Pixel Information of next frame of video.
CN201610207743.5A 2016-04-01 2016-04-01 The creation method and electronic device of video file thumbnail Active CN105847816B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610207743.5A CN105847816B (en) 2016-04-01 2016-04-01 The creation method and electronic device of video file thumbnail

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610207743.5A CN105847816B (en) 2016-04-01 2016-04-01 The creation method and electronic device of video file thumbnail

Publications (2)

Publication Number Publication Date
CN105847816A true CN105847816A (en) 2016-08-10
CN105847816B CN105847816B (en) 2019-07-12

Family

ID=56597554

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610207743.5A Active CN105847816B (en) 2016-04-01 2016-04-01 The creation method and electronic device of video file thumbnail

Country Status (1)

Country Link
CN (1) CN105847816B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112668546A (en) * 2021-01-13 2021-04-16 海信视像科技股份有限公司 Video thumbnail display method and display equipment
CN113438475A (en) * 2021-06-17 2021-09-24 青岛海信传媒网络技术有限公司 Thumbnail inspection method and display device
CN113453069A (en) * 2021-06-18 2021-09-28 海信视像科技股份有限公司 Display device and thumbnail generation method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070150484A1 (en) * 2005-12-23 2007-06-28 Funge John L Systems and methods for multi-media transfer
CN1327704C (en) * 2003-09-10 2007-07-18 松下电器产业株式会社 Image display method, image display program, and image display apparatus
CN104506968A (en) * 2014-12-31 2015-04-08 北京奇艺世纪科技有限公司 Method and device for determining video abstract figure

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1327704C (en) * 2003-09-10 2007-07-18 松下电器产业株式会社 Image display method, image display program, and image display apparatus
US20070150484A1 (en) * 2005-12-23 2007-06-28 Funge John L Systems and methods for multi-media transfer
CN104506968A (en) * 2014-12-31 2015-04-08 北京奇艺世纪科技有限公司 Method and device for determining video abstract figure

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112668546A (en) * 2021-01-13 2021-04-16 海信视像科技股份有限公司 Video thumbnail display method and display equipment
CN113438475A (en) * 2021-06-17 2021-09-24 青岛海信传媒网络技术有限公司 Thumbnail inspection method and display device
CN113453069A (en) * 2021-06-18 2021-09-28 海信视像科技股份有限公司 Display device and thumbnail generation method
CN113453069B (en) * 2021-06-18 2022-11-11 海信视像科技股份有限公司 Display device and thumbnail generation method

Also Published As

Publication number Publication date
CN105847816B (en) 2019-07-12

Similar Documents

Publication Publication Date Title
CN105096829B (en) Eliminate method, device and the display of ghost
US9886884B2 (en) Pixel arranging method, pixel rendering method and image display device
EP1424675A2 (en) Display apparatus, method and program with selective image smoothing based on subpixel colour values
JP6347958B2 (en) Data processing apparatus and display system having the same
CN107799084A (en) Device and method, the memory of luminance compensation
CN102479482B (en) Image display device and method of driving the same
CN106412549B (en) Brightness of image method of adjustment and device
CN104167193B (en) Signal conversion method for display image
EP3300060B1 (en) Image display method and display device
CN108053797A (en) Driving method and driving device of display device
CN105847816A (en) Video file thumbnail creation method and electronic device
WO2022205915A1 (en) Video processing method, video processing device, and display device
KR100772906B1 (en) Image signal display method and device
US9602800B2 (en) Image processing method
CN104394391B (en) The image processing method of the dot matrix image of collected by camera and system
CN106898291A (en) The driving method and drive device of display panel
CN110321907B (en) Determination method of data processing sequence, display device and display method thereof
CN105430237B (en) A kind of processing method and system of frame missing image
CN108154848A (en) Display methods, device and the display equipment of pixel arrangement
KR102410629B1 (en) Data processing device and display device having the same
US20140139543A1 (en) Image processing device, image processing method, and image display apparatus
JP2014235676A (en) Two-dimensional color code display device and display method for the same, and two-dimensional color code reading device and reading method for the same
CN114093312B (en) Display data generation method and device based on virtual pixels
CN104916247A (en) Strip-shaped screen driving method, strip-shaped screen driving device and display equipment
CN106303496B (en) Picture format determines method and device, display equipment

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
TR01 Transfer of patent right

Effective date of registration: 20210115

Address after: 511442 3108, 79 Wanbo 2nd Road, Nancun Town, Panyu District, Guangzhou City, Guangdong Province

Patentee after: GUANGZHOU CUBESILI INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 511449 B-1 Building, Wanda Commercial Square North District, Wanbo Business District, 79 Wanbo Second Road, Nancun Town, Panyu District, Guangzhou City, Guangdong Province

Patentee before: GUANGZHOU HUADUO NETWORK TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20160810

Assignee: GUANGZHOU HUADUO NETWORK TECHNOLOGY Co.,Ltd.

Assignor: GUANGZHOU CUBESILI INFORMATION TECHNOLOGY Co.,Ltd.

Contract record no.: X2021440000053

Denomination of invention: Video file thumbnail creation method and electronic device

Granted publication date: 20190712

License type: Common License

Record date: 20210208

EE01 Entry into force of recordation of patent licensing contract