CN105847816B - The creation method and electronic device of video file thumbnail - Google Patents

The creation method and electronic device of video file thumbnail Download PDF

Info

Publication number
CN105847816B
CN105847816B CN201610207743.5A CN201610207743A CN105847816B CN 105847816 B CN105847816 B CN 105847816B CN 201610207743 A CN201610207743 A CN 201610207743A CN 105847816 B CN105847816 B CN 105847816B
Authority
CN
China
Prior art keywords
pixel
value
video frame
image
color
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.)
Active
Application number
CN201610207743.5A
Other languages
Chinese (zh)
Other versions
CN105847816A (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; CALCULATING OR 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

Abstract

The invention discloses the creation methods and electronic device of a kind of video file thumbnail, and the method includes obtaining the Pixel Information of one of video frame of video file;Judge whether the corresponding image of the video frame is solid color image according to the Pixel Information;If it is not, obtaining the corresponding image of the video frame then to generate the thumbnail of the video file.By the above-mentioned means, the present invention enables to thumbnail generated more accurately to show video content.

Description

The creation method and electronic device of video file thumbnail
Technical field
The present invention relates to the creation methods and electronic device of a kind of video file thumbnail.
Background technique
In order to can be convenient user and quickly understand video information, existing client and various apply are showing view When frequency list, screenshot can be carried out to video all usually with the thumbnail for generating video and understand the general interior of video in advance for user Hold.
Existing way is usually thumbnail of the first frame image of interception video as video.However, due to existing video Tools provide the effect that fades in that video comes out gradually mostly, thus according to the first frame truncated picture of video it is easy to appear Pure background colour (generally ater), the thumbnail thus obtained cannot accurately show video content.
Summary of the invention
The invention mainly solves the technical problem of providing the creation method and electronic device of a kind of video file thumbnail, Thumbnail generated is enabled more accurately to show video content.
In order to solve the above technical problems, one technical scheme adopted by the invention is that: a kind of video file thumbnail is provided Creation method, comprising: obtain the Pixel Information of one of video frame of video file;Institute is judged according to the Pixel Information State whether the corresponding image of video frame is solid color image;If it is not, obtaining the corresponding image of the video frame then to generate The thumbnail of the video file.
Wherein, the step of Pixel Information of the one of video frame for obtaining video file includes: to obtain the view The color value of each pixel of frequency frame, to obtain the Pixel Information;It is described that the video frame is judged according to the Pixel Information The step of whether corresponding image is solid color image includes: the difference for calculating selected pixel pixel color value adjacent thereto Absolute value;When detecting that the absolute value of difference of selected pixel pixel color value adjacent thereto is respectively less than first threshold, make to comment Valuation adds 1;When the assessed value is less than second threshold, then judge that the corresponding image of the video frame is not solid color figure Picture.
Wherein, the step of Pixel Information of the one of video frame for obtaining video file includes: to obtain the view The transparence value of each pixel of frequency frame, to obtain the Pixel Information;It is described that the video is judged according to the Pixel Information The step of whether corresponding image of frame is solid color image includes: the difference for calculating selected pixel pixel transparent angle value adjacent thereto The absolute value of value;When detecting that the absolute value of difference of selected pixel pixel transparent angle value adjacent thereto is less than third threshold value, Assessed value is set to add 1;When the assessed value is less than four threshold values, then judge that the corresponding image of the video frame is not solid color Image.
Wherein, the step of Pixel Information of the one of video frame for obtaining video file includes: to open from reference point Begin to obtain the Pixel Information that pixel and its adjacent pixel are selected in the video frame at equal intervals.
Wherein, the step of Pixel Information of the one of video frame for obtaining video file includes: that random obtain regards The Pixel Information of one of video frame of frequency file.
Wherein, the step of Pixel Information of the one of video frame for obtaining video file includes: from the video First video frame of file starts, and obtains the Pixel Information of first video frame of the video file, and when according to institute When stating Pixel Information and judging first video frame for solid color image, the Pixel Information of next video frame is obtained.
In order to solve the above technical problems, another technical solution used in the present invention is: providing a kind of creation video file The electronic device of thumbnail, comprising: obtain module, the Pixel Information of one of video frame for obtaining video file;Sentence Disconnected module, for judging whether the corresponding image of the video frame is solid color image according to the Pixel Information;Generate mould Block, for obtaining the video frame pair when judgment module judges that the corresponding image of the video frame is not solid color image The image answered is to generate the thumbnail of the video file.
Wherein, the color value for obtaining module and being used to obtain each pixel of the video frame, to obtain the pixel Information;The judgment module includes: the first computing unit, for calculating the difference of selected pixel pixel color value adjacent thereto Absolute value;First accumulated unit, the absolute value for working as the difference for detecting selected pixel pixel color value adjacent thereto are small When first threshold, assessed value is made to add 1;First judging unit is used for when the assessed value is less than second threshold, described in judgement The corresponding image of video frame is not solid color image.
Wherein, the transparence value for obtaining module and being used to obtain each pixel of the video frame, to obtain the picture Prime information;The judgment module includes: the second computing unit, for calculating the difference of selected pixel pixel transparent angle value adjacent thereto The absolute value of value;Second accumulated unit, for when detect selected pixel pixel transparent angle value adjacent thereto difference it is absolute When value is less than third threshold value, assessed value is made to add 1;Second judgment unit, for judging when the assessed value is less than four threshold values The corresponding image of the video frame is not solid color image.
Wherein, since the acquisition module be used to select pixel and its phase in the video frame obtain at equal intervals reference point The Pixel Information of adjacent pixel.
Wherein, the Pixel Information for obtaining module for one of video frame of acquisition video file at random.
Wherein, the acquisition module is used for since first video frame of the video file, obtains the video text The Pixel Information of first video frame of part, and when the judgment module judges first view according to the Pixel Information When frequency frame is solid color image, for obtaining the Pixel Information of next video frame.
The beneficial effects of the present invention are: being in contrast to the prior art, the present invention is by judging the corresponding figure of video frame Seem no for solid color image, when judgement is not solid color image, illustrates that the corresponding image of the video frame is not pure color Image, has that a possibility that video content is bigger, therefore the corresponding image of the video frame is generated to the thumbnail of video file, by The probability of the thumbnail with video content can be improved in this, so that thumbnail generated being capable of more acurrate displaying video Content.
Detailed description of the invention
Fig. 1 is the flow chart of one embodiment of creation method of video file thumbnail of the present invention;
Fig. 2 is to judge video according to Pixel Information in one embodiment of creation method of video file thumbnail of the present invention The corresponding image of frame whether be solid color image flow chart;
Fig. 3 is the picture of the corresponding image of video frame in one embodiment of creation method of video file thumbnail of the present invention Plain structural schematic diagram;
Fig. 4 is to judge to regard according to Pixel Information in the another embodiment of creation method of video file thumbnail of the present invention The corresponding image of frequency frame whether be solid color image flow chart;
Fig. 5 is the structural schematic diagram of one embodiment of electronic device of present invention creation video file thumbnail;
Fig. 6 is the structural schematic diagram of another embodiment of electronic device of present invention creation video file thumbnail;
Fig. 7 is the structural schematic diagram of the another embodiment of electronic device of present invention creation video file thumbnail.
Specific embodiment
Below in conjunction with drawings and embodiments, the present invention is described in detail.
Refering to fig. 1, in one embodiment of creation method of video file thumbnail of the present invention, comprising steps of
Step S101: the Pixel Information of one of video frame of video file is obtained.
Wherein, in the present embodiment, since first video frame of video file, the picture of first video frame is obtained Prime information.
Wherein, Pixel Information may include luminance information, colouring information, high-frequency information and/or transparence value etc..
Step S102: judge whether the corresponding image of video frame is solid color image according to Pixel Information.
Solid color image refers to the image of same type color, the figure of image and graduated colors including same color Picture.Same color image is, for example, all black picture, full white image, complete red image etc., graduated colors image be, for example, from it is dark red gradually Fade to the image of light red.Solid color image is since the color that each pixel is presented is identical or approximately, single face The Pixel Information of each pixel of chromatic graph picture is closer to, therefore whether judges the corresponding image of video frame according to Pixel Information For solid color image.
Step S103: if it is not, obtaining the corresponding image of video frame then to generate the thumbnail of video file.
Unlike solid color image, the image with video content usually has multiple color, such as works as video When content is personage's head portrait, the color difference at each position such as hair, clothes, skin of personage is all larger, therefore when the view obtained When the corresponding image of frequency frame is not solid color image, illustrate that a possibility that video frame presents video content is larger, therefore The thumbnail that the corresponding image of the video frame is generated to video file, it is possible thereby to improve the general of the thumbnail with video content Rate, so that thumbnail generated being capable of more acurrate displaying video content.Therefore on electronic equipment such as mobile phone, computer The thumbnail can be used when showing video file to be shown as the path indexing of video file.
Further, when the corresponding image of first video frame that judgement obtains is solid color image, then the is obtained The Pixel Information of two video frames judges whether the corresponding image of second video frame is single with the Pixel Information according to acquisition Color image, and so on, according to the playing sequence of video frame until finding non-solid color image.
Above embodiment is to obtain the pixel of first video frame first since first video frame of video file Information is judged, in other embodiments of the invention, is also possible to obtain one of video of video file at random The Pixel Information of frame judged, at this time when judging the corresponding image of video frame that this is obtained at random for solid color image When, then obtain the Pixel Information of another video frame at random to judge whether the corresponding image of another video frame is single Color image, and so on, until finding non-solid color image.
Referring to Fig.2, obtaining the pixel letter of one of video frame of video file in the embodiment of the invention The step of breath includes: the color value for obtaining each pixel of video frame, to obtain Pixel Information.
The color value refers to the grayscale value of pixel.Image is formed by multiple pixels that ranks arrange, and each pixel includes R Three (red), G (green), B (indigo plant) primary color sub-pixels, each primary color sub-pixels have a color value, which can be 0 Value between~255, including endpoint value.Wherein, in present embodiment, the color value of each pixel refers to through each pixel One color value of the respective pixel that the color value of tri- primary color sub-pixels of RGB converts.Due to the conversion of above-mentioned color value Belong to the scope of the prior art, and where the emphasis of non-present invention, so it will not go into details.
Wherein, judge that the corresponding image of video frame whether be solid color image includes following sub-step according to Pixel Information It is rapid:
Sub-step S201: the absolute value of the difference of selected pixel pixel color value adjacent thereto is calculated.
Wherein, selecting pixel is each pixel in every one-row pixels.In conjunction with Fig. 3, it is assumed that acquired video frame is corresponding Image include 6x4 pixel, then select pixel be the first row pixel P11~P16, the second row pixel P21~P26..., the 6th Row pixel P61~P66.To select the third line pixel P31~P36In pixel P33For, 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 adjacent pixel:
A1=| GP33-GP32|
A2=| GP33-GP34|
A3=| GP33-GP43|
A4=| GP33-GP23|
Wherein, GP33、GP32、GP34、GP43、GP23Respectively pixel P33And its adjacent four pixel P32、P34、P43、P23Face Color value, A1~A4Respectively pixel P33And its adjacent four pixel P32、P34、P43、P23Color value difference absolute value.
And so on the difference of the color value of other pixels pixel adjacent thereto absolute value, do not do repeat one by one herein.
The absolute value of the difference of the color value of selected pixel pixel adjacent thereto is smaller, illustrates selected pixel picture adjacent thereto The difference of color shown by element is smaller, more levels off to same color.Conversely, then color difference is bigger.For example, working as A1=0 When, pixels illustrated P33With pixel P32Shown color is identical, works as A1When=2, pixels illustrated P33With pixel P32Shown face Color is closer to, slightly difference.When the absolute value of the difference of all selected pixel pixel color values adjacent thereto is 0, say A possibility that color shown by each pixel of the corresponding image of the video frame of bright acquisition is most of all identical, is solid-color image is got over Greatly.When all selected pixel pixel color values adjacent thereto difference absolute value for example in the range of 3~8, illustrate to obtain The corresponding image of video frame each pixel shown by color be closer to, it may be possible to the image of graduated colors.
Sub-step S202: when the absolute value for the difference for detecting selected pixel pixel color value adjacent thereto is respectively less than first When threshold value, assessed value is made to add 1.
Wherein, first threshold for example can be 3,5 or 8 etc..
Wherein, by taking first threshold is 8 as an example, it is assumed that A1=0, A2=2, A3=5, A4=7, therefore pixel P33And its it is adjacent Four pixel P32、P34、P43、P23The absolute value of difference of color value be respectively less than first threshold, thought at this time in pixel P33It is attached The color closely presented relatively, such as may be only red, light red difference, therefore, it is determined that being pixel P33The face nearby shown Color is identical, therefore assessed value is made to add 1.
Wherein, due to the color slightly difference of each pixel in the image of graduated colors, in order to reduce the figure of graduated colors As the probability as video thumbnails, first threshold can be set to the larger value, such as can be set to 10,15 or 30 etc..
Sub-step S203: when assessed value is less than second threshold, then judge that the corresponding image of video frame is not solid color Image.
Wherein, assessed value is bigger, illustrates that the same or similar pixel of color is more, and image is solid color image (pure color Image or graduated colors image) probability it is bigger, otherwise illustrate that the same or similar pixel of color is fewer, image be non-single face The probability of chromatic graph picture is fewer.Wherein second threshold can be set according to the pixel total amount of the image of video frame.Such as work as picture When plain total amount is 800x600, pixel is 800 at once, and column pixel is 600, is still in every one-row pixels with selected pixel For each pixel, then whether the absolute value for selecting the difference of pixel pixel color value adjacent thereto is respectively less than the inspection of first threshold Surveying number is 800 times, and it is 600 that second threshold can be set at this time.When assessed value is less than second threshold, assessed value is smaller, says The negligible amounts of the same or similar pixel of bright color judge that the corresponding image of video frame is not solid color image at this time, when When assessed value is greater than or equal to second threshold, assessment check-in is larger, illustrates that the quantity of the same or similar pixel of color is more, this When judge the corresponding image of video frame for solid color image.
By the above-mentioned means, can image corresponding compared with accurate judgement video frame be pure background color image, to drop The probability of the low thumbnail as video file that uses pure background colour.
Certainly, in other embodiments of the present invention, the color value of each pixel be may also mean that included by each pixel Tri- primary color sub-pixels of RGB color value.The absolute value of the difference of selected pixel and its adjacent pixel color value is calculated at this time It include: the absolute value for calculating the difference of correspondence primary color sub-pixels color value of selected pixel and its adjacent pixel.More specifically, Calculate the R sub-pixel of the selected pixel absolute value with the difference of the color value of the R sub-pixel of the adjacent pixel respectively, Yi Jiji Calculate the G sub-pixel absolute value with the difference of the color value of the G sub-pixel of the adjacent pixel, and calculating respectively of selected pixel The B sub-pixel of the selected pixel absolute value with the difference of the color value of the B sub-pixel of the adjacent pixel respectively.Wherein, work as inspection When measuring the absolute value of the difference of the color value of each primary color sub-pixels of selected pixel pixel adjacent thereto and being respectively less than first threshold, So that assessed value is added 1, i.e., when the absolute value of the difference of the color value of the correspondence primary color sub-pixels between pixel is respectively less than first threshold, And selected pixel is respectively less than the first threshold with the absolute value of the difference of the color value of the corresponding primary color sub-pixels of all adjacent pixels When value, assessed value is made to add 1.
Refering to Fig. 4, in still another embodiment of the present invention, the pixel of one of video frame of video file is obtained The step of information includes: transparency (Alpha) value for obtaining each pixel of video frame, to obtain Pixel Information.
Each pixel also has a transparence value other than with color value, to indicate the transparency or not of pixel Transparency.Wherein, transparence value can between 0~255 value, including endpoint value, transparence value is 0 to indicate transparent, transparent Angle value is that 255 expressions are opaque.
Wherein, according to Pixel Information judge the corresponding image of video frame whether be solid color image principle and Fig. 2 institute Show the similar of embodiment, specifically include following sub-step:
Sub-step S401: the absolute value of the difference of selected pixel pixel transparent angle value adjacent thereto is calculated.
Wherein, selecting pixel is each pixel in every a line.In conjunction with Fig. 3, still to select the third line pixel P31~P36 In pixel P33For, it is as follows with the calculating process of the absolute value of the difference of the transparence value of adjacent pixel:
B1=| AP33-AP32|
B2=| AP33-AP34|
B3=| BP33-BP43|
B4=| BP33-BP23|
Wherein, AP33、AP32、AP34、AP43、AP23Respectively pixel P33And its adjacent four pixel P32、P34、P43、P23It is saturating Brightness value, B1~B4Respectively pixel P33And its adjacent four pixel P32、P34、P43、P23Transparence value difference it is absolute Value.
And so on the difference of the transparence value of other pixels pixel adjacent thereto absolute value, do not do go to live in the household of one's in-laws on getting married one by one herein It states.
The absolute value of the difference of the transparence value of selected pixel pixel adjacent thereto is smaller, illustrates that selected pixel is adjacent thereto The difference of color shown by pixel is smaller, more levels off to same color.Conversely, then color difference is bigger.
Sub-step S402: when the absolute value for the difference for detecting selected pixel pixel transparent angle value adjacent thereto is less than third When threshold value, assessed value is made to add 1.
Wherein, third threshold value for example can be 5,8 or 10 etc..
Sub-step S403: when assessed value is less than four threshold values, then judge that the corresponding image of video frame is not solid color Image.
Wherein, assessed value is bigger, illustrates that the same or similar pixel of color is more, and image is the probability of solid color image It is bigger, on the contrary illustrate that the same or similar pixel of color is fewer, and image is that the probability of non-solid color image is fewer.
Wherein the 4th threshold value can be set according to the pixel total amount of the image of video frame, and the setting with second threshold is former It manages similar, this is not repeated.
When assessed value is less than four threshold values, assessed value is smaller, illustrates the negligible amounts of the same or similar pixel of color, Judge that the corresponding image of video frame is not solid color image at this time, when assessed value is greater than or equal to four threshold values, assessed value Machine is larger, illustrates that the quantity of the same or similar pixel of color is more, judges the corresponding image of video frame for solid color at this time Image.
In the above-described embodiment, selecting pixel is each pixel in every one-row pixels.In the another embodiment party of the present invention In formula, selected pixels can be spaced, wherein obtain video file one of video frame Pixel Information the step of include: from Reference point starts to obtain the Pixel Information that pixel and its adjacent pixel are selected in video frame at equal intervals.
For example, being selected when Pixel Information is the color value of pixel since being obtained at equal intervals reference point in video file The color value of pixel and its adjacent pixel.By taking dot structure shown in Fig. 3 as an example, using the first row pixel as reference point, at interval of One-row pixels then obtain the color value of each pixel and its adjacent pixel in one-row pixels, more specifically, the first row, the third line, Each pixel in fifth line pixel is selected pixel, so that is obtained is in the first row, the third line and fifth line pixel The color value of each pixel and its adjacent pixel, therefore be only to calculate each of the first row, the third line and fifth line pixel The absolute value of the difference of the color value of pixel pixel adjacent thereto.
Certainly, in other embodiments, reference point is also possible to the first pixel in every one-row pixels, every a line picture Started in element with first pixel, then choosing a pixel at interval of predetermined pixel (such as can be and be spaced 3 or 5 etc.) is Whether selected pixel to obtain the Pixel Information of selected pixel pixel adjacent thereto, and then judges the corresponding image of video frame For solid color image.
Refering to Fig. 5, in one embodiment of electronic device of present invention creation video file thumbnail, electronic device includes Obtain module 51, judgment module 52 and generation module 53.
Wherein, the Pixel Information that module 51 is used to obtain one of video frame of video file is obtained.Present embodiment In, module 51 is obtained since first video frame of video file, obtains the Pixel Information of first video frame.
Wherein, Pixel Information may include luminance information, colouring information, high-frequency information and/or transparence value etc..
Judgment module 52 is used to judge whether the corresponding image of video frame is solid color image according to Pixel Information.
Solid color image refers to that the image of same type color, the image of the same type color refer to the whole of image The color difference of width picture is smaller comprising the image of same color and the image of graduated colors.Same color image is, for example, All black picture, full white image, complete red image etc., graduated colors image is, for example, the image from dark red gradual change to light red.It is single Color image is since the color that each pixel is presented is identical or approximately, the pixel of each pixel of solid color image Information is closer to, therefore judges whether the corresponding image of video frame is solid color image according to Pixel Information.
Generation module 53 is used for when judgment module 52 judges that the corresponding image of video frame is not solid color image, is obtained The corresponding image of video frame is to generate the thumbnail of video file.
Unlike solid color image, the image with video content usually has multiple color, such as works as video When content is personage's head portrait, the color difference at each position such as hair, clothes, skin of personage is all larger, therefore when the view obtained When the corresponding image of frequency frame is not solid color image, illustrate that a possibility that video frame presents video content is larger, therefore The thumbnail that the corresponding image of the video frame is generated to video file, it is possible thereby to improve the general of the thumbnail with video content Rate, so that thumbnail generated being capable of more acurrate displaying video content.Therefore on electronic equipment such as mobile phone, computer The thumbnail can be used when showing video file to be shown as the path indexing of video file.
Further, when judgment module 52 judges that the corresponding image of video frame is solid color image, then module is obtained 51 obtain the Pixel Information of second video frame judge whether the corresponding image of second video frame is solid color figure Picture, until finding non-solid color image.
Above embodiment is to obtain the pixel of first video frame first since first video frame of video file Information is judged, in other embodiments of the invention, is obtained module 51 and is also possible to its random for obtaining video file In the Pixel Information of a video frame judged that the video frame for judging that this is obtained at random when judgment module 52 at this time is corresponding When image is solid color image, then obtains module 51 and obtain the Pixel Information of another video frame at random to be judged, with This analogizes, until finding non-solid color image.
Refering to Fig. 6, in one specific embodiment of electronic device of the present invention, Pixel Information is the color value of pixel.Wherein, It obtains module 51 to be specifically used for obtaining the color value of each pixel of video frame, to obtain Pixel Information.
Wherein, in present embodiment, the color value of each pixel refers to tri- primary color sub-pixels of RGB by each pixel The color value of respective pixel that converts of color value.
Wherein judgment module 52 includes the first computing unit 61, the first accumulated unit 62 and the first judging unit 63.
First computing unit 61 is used to calculate the absolute value of the difference of selected pixel pixel color value adjacent thereto.Selected picture The absolute value of the difference of the color value of element pixel adjacent thereto is smaller, illustrates color shown by selected pixel pixel adjacent thereto Difference it is smaller, more level off to same color.Conversely, then color difference is bigger.
First accumulated unit 62, which is used to work as, detects that the absolute value of the difference of selected pixel pixel color value adjacent thereto is equal When less than first threshold, assessed value is made to add 1.Wherein, first threshold for example can be 3,5 or 8 etc..
First judging unit 63 is used to judge that the very corresponding image of video is not single when assessed value is less than second threshold Color image.Wherein, assessed value is bigger, illustrates that the same or similar pixel of color is more, and image is the general of solid color image Rate is bigger, otherwise illustrates that the same or similar pixel of color is fewer, and image is that the probability of non-solid color image is fewer.Wherein Two threshold values can be set according to the pixel total amount of the image of video frame.When assessed value be less than second threshold when, assessed value compared with It is small, illustrate the negligible amounts of the same or similar pixel of color, judges that the corresponding image of video frame is not solid color figure at this time Picture, when assessed value is greater than or equal to second threshold, assessment check-in is larger, illustrate the quantity of the same or similar pixel of color compared with It is more, judge the corresponding image of video frame for solid color image at this time.
By the above-mentioned means, can image corresponding compared with accurate judgement video frame be pure background color image, to drop The probability of the low thumbnail as video file that uses pure background colour.
Certainly, in other embodiments of the present invention, the color value of each pixel be may also mean that included by each pixel Tri- primary color sub-pixels of RGB color value.
Refering to Fig. 7, in the another embodiment of electronic device of the present invention, obtains module 51 and be specifically used for obtaining video frame Transparency (Alpha) value of each pixel, to obtain Pixel Information.
Wherein, judgment module 52 includes the second computing unit 71, the second accumulated unit 72 and second judgment unit 73.
Second computing unit 71 is used to calculate the absolute value of the difference of the transparence value of selected pixel pixel adjacent thereto.Choosing The absolute value for determining the difference of the transparence value of pixel pixel adjacent thereto is smaller, illustrates shown by selected pixel pixel adjacent thereto Color difference it is smaller, more level off to same color.Conversely, then color difference is bigger.
Second accumulated unit 72 is used for the absolute value when the difference for detecting selected pixel pixel transparent angle value adjacent thereto When less than third threshold value, assessed value is made to add 1.Wherein, third threshold value for example can be 5,8 or 10 etc..
Second judgment unit 73 is used for when assessed value is less than four threshold values, judges that the corresponding image of video frame is not single Color image.Wherein, assessed value is bigger, illustrates that the same or similar pixel of color is more, and image is the general of solid color image Rate is bigger, otherwise illustrates that the same or similar pixel of color is fewer, and image is that the probability of non-solid color image is fewer.Wherein Four threshold values can be set according to the pixel total amount of the image of video frame.
In the another embodiment of electronic device of the present invention, module 51 is obtained for obtaining view at equal intervals since reference point The Pixel Information of pixel and its adjacent pixel is selected in frequency frame.
For example, obtaining module 51 when Pixel Information is the color value of pixel and obtaining video at equal intervals since reference point The color value of pixel and its adjacent pixel is selected in file.It is reference with the first row pixel by taking dot structure shown in Fig. 3 as an example Point then obtains the color value of each pixel and its adjacent pixel in one-row pixels at interval of one-row pixels, more specifically, first Row, the third line, each pixel in fifth line pixel are selected pixel, so that is obtained is the first row, the third line and the 5th The color value of each pixel and its adjacent pixel in row pixel, therefore be only to calculate the first row, the third line and fifth line picture The absolute value of the difference of the color value of each pixel pixel adjacent thereto in element.
Certainly, in other embodiments, reference point is also possible to the first pixel in every one-row pixels, every a line picture Started in element with first pixel, then choosing a pixel at interval of predetermined pixel (such as can be and be spaced 3 or 5 etc.) is Whether selected pixel to obtain the Pixel Information of selected pixel pixel adjacent thereto, and then judges the corresponding image of video frame For solid color image.
Mode the above is only the implementation of the present invention is not intended to limit the scope of the invention, all to utilize this Equivalent structure or equivalent flow shift made by description of the invention and accompanying drawing content, it is relevant to be applied directly or indirectly in other Technical field is included within the scope of the present invention.

Claims (2)

1. a kind of creation method of video file thumbnail characterized by comprising
Obtain video file one of video frame Pixel Information, the Pixel Information include each pixel color value/ Transparence value;
The absolute value for calculating selected pixel and the difference of its four adjacent pixel color values, when detecting selected pixel and its four When the absolute value of the difference of adjacent pixel color value is respectively less than first threshold, assessed value is made to add 1, when the assessed value is less than second When threshold value, judge that the corresponding image of the video frame is not solid color image;Alternatively, it is adjacent with its four to calculate selected pixel The absolute value of the difference of pixel transparent angle value, when detecting the exhausted of selected pixel and the difference of its four adjacent pixel transparence values When being respectively less than third threshold value to value, assessed value is made to add 1, when the assessed value is less than the 4th threshold value, judges that the video frame is corresponding Image be not solid color image;Wherein, the solid color image includes the image of graduated colors;
When the corresponding image of the video frame is not solid color image, the corresponding image of the video frame is obtained to generate State the thumbnail of video file;
Wherein, the step of Pixel Information of the one of video frame for obtaining video file includes: since reference point etc. The Pixel Information of pixel and its adjacent pixel is selected in video frame described in interval acquiring;
The step of Pixel Information of the one of video frame for obtaining video file includes: its random for obtaining video file In a video frame Pixel Information;
The first threshold is 3,5 or 8;The third threshold value is 5,8 or 10.
2. a kind of electronic device for creating video file thumbnail characterized by comprising
Module, the Pixel Information of one of video frame for obtaining video file are obtained, the Pixel Information includes each Color value/transparence value of pixel;
Judgment module, comprising: the first computing unit, for calculating selected pixel and the difference of its four adjacent pixel color values Absolute value;First accumulated unit, for the absolute value when the difference for detecting selected pixel and its four adjacent pixel color values Respectively less than first threshold when, so that assessed value is added 1;First judging unit, for judging when the assessed value is less than second threshold The corresponding image of the video frame is not solid color image;Or, comprising: the second computing unit, for calculating selected pixel With the absolute value of the difference of its four adjacent pixel transparence values;Second accumulated unit detects selected pixel and its for working as When the absolute value of the difference of four adjacent pixel transparence values is less than third threshold value, assessed value is made to add 1;Second judgment unit is used In when the assessed value is less than four threshold values, judging that the corresponding image of the video frame is not solid color image;Wherein, institute State the image that solid color image includes graduated colors;Generation module, for judging that the video frame is corresponding when judgment module When image is not solid color image, the corresponding image of the video frame is obtained to generate the thumbnail of the video file;
Wherein, since the acquisition module be used to select pixel and its adjacent picture in the video frame obtain at equal intervals reference point The Pixel Information of element;
The Pixel Information that module is obtained for one of video frame of acquisition video file at random;
The first threshold is 3,5 or 8;The third threshold value is 5,8 or 10.
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 CN105847816A (en) 2016-08-10
CN105847816B true 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)

Families Citing this family (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
CN113453069B (en) * 2021-06-18 2022-11-11 海信视像科技股份有限公司 Display device and thumbnail generation method
CN113438475A (en) * 2021-06-17 2021-09-24 青岛海信传媒网络技术有限公司 Thumbnail inspection method and display device

Citations (2)

* 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
CN104506968A (en) * 2014-12-31 2015-04-08 北京奇艺世纪科技有限公司 Method and device for determining video abstract figure

Family Cites Families (1)

* 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

Patent Citations (2)

* 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
CN104506968A (en) * 2014-12-31 2015-04-08 北京奇艺世纪科技有限公司 Method and device for determining video abstract figure

Also Published As

Publication number Publication date
CN105847816A (en) 2016-08-10

Similar Documents

Publication Publication Date Title
CN105096829B (en) Eliminate method, device and the display of ghost
CN102279189B (en) Defect detecting device, defect restoring device and defect detecting method
CN104704549B (en) Systems and methods for controlling current in display devices
CN105847816B (en) The creation method and electronic device of video file thumbnail
CN102402918B (en) Method for improving picture quality and liquid crystal display (LCD)
JP2017046045A (en) Image processing system
CN104361577B (en) A kind of foreground detection method based on depth image and visual image fusion
US20190057255A1 (en) Image recognition system and information-display method thereof
KR102022699B1 (en) Image Control Display Device and Image Control Method
CN101908216B (en) Method and device for realizing vector fonts
CN108877630A (en) Obtain method, apparatus, computer equipment and the storage medium of Mura offset data
CN112507923B (en) Certificate copying detection method and device, electronic equipment and medium
KR102634812B1 (en) Method, apparatus and electronic device for estimating screen light leakage amount
JP5975606B2 (en) Image processing apparatus and control method thereof
KR20160056708A (en) Apparatus for compensating degradation and display device including the same
CN104143303B (en) Arbitrary order gridiron pattern screen component based on FPGA generates method
TWI752697B (en) Brightness compensation method, brightness compensation circuit and display device
CN109920381A (en) A kind of method and apparatus adjusting backlight value
CN105955754A (en) Method and device for displaying characters of user interface
CN103810985B (en) Improve electronic installation and the method thereof of image readability
CN107111982B (en) Image display method and device
JP2014116706A (en) Two-dimensional color code display apparatus, display method, reading device, and reading method
KR102410629B1 (en) Data processing device and display device having the same
WO2019184569A1 (en) Determination method for data processing sequence, and display device and display method thereof
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

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
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.

EE01 Entry into force of recordation of patent licensing contract
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