Summary of the invention
The object of the present invention is to provide a kind of image display method and electronic equipments, when the aspect ratio of vision signal occursWhen change, it is capable of the display aspect ratio of adjust automatically electronic equipment, the display area of electronic equipment is made full use of to be shown,Avoid the waste of the display area for electronic equipment.
To achieve the above object, the present invention provides following schemes:
A kind of image display method, is applied to electronic equipment, and the electronic equipment includes at least display unit and communication unitMember, which comprises
The first vision signal is received by the communication unit;
First vision signal is parsed, the first image scaled is obtained;
Determining the first display pattern to match with the first image ratio;
It controls the display unit and first vision signal is shown with first display pattern.
Optionally, the first image scaled of the acquisition, comprising:
Extract the first image data in first vision signal;
The image boundary of the first image data is detected, the first boundary information of the first image data is obtained;
According to first boundary information, the first image ratio is obtained.
Optionally, after first image data extracted in first vision signal, further includes:
The image boundary for detecting the first image data judges that described image near border whether there is black region,Obtain the first judging result;
When first judging result indicates that described image near border there are when black region, removes the black borderRegion obtains the second image data;
The first image scaled of the acquisition, specifically includes:
The image boundary of second image data is detected, the second boundary information of second image data is obtained;According to the second boundary information, the first image ratio is obtained.
Optionally, the electronic equipment also has processing module, and the processing module is used for the video signal sampling,Then first image data extracted in first vision signal, specifically:
First vision signal is sampled according to default resolution ratio by the processing module, obtains the second videoSignal;The default resolution ratio is less than the true resolution of first vision signal, second vision signal and described theThe image scaled of one vision signal is identical;
Extract the first image data in second vision signal.
Optionally, the first display pattern that the determination and the first image ratio match, comprising:
Obtain the preset display mode of the electronic equipment;
Judge whether there is display pattern identical with the first image ratio in the preset display mode, obtains secondJudging result;
When second judging result, which is, is, the display pattern identical with the first image ratio is determined asFirst display pattern;
When first judging result is no, determination makes display of first vision signal on the display unitMaximum second display pattern of the area of picture;
The ratio and the first image ratio phase of display picture of first vision signal on the display unitTogether.
Optionally, the determination keeps the area of display picture of first vision signal on the display unit maximumThe second display pattern, comprising:
Calculate the absolute value of the difference of the preset display mode corresponding preset display scale and the first image ratio;
By the corresponding preset display mode of the smallest absolute value, it is determined as second display pattern.
Optionally, when the near image boundaries of the first image data are there are when black region, the control is described aobviousShow that unit shows first vision signal with first display pattern, comprising:
It controls the display unit and the second display picture is shown with first display pattern;
The second display picture corresponds to second image data.
Optionally, first image data extracted in first vision signal, further includes:
First vision signal is parsed, identifies that the first icon, first icon are present in first vision signalEach frame image frame in;
Extract the first raw image data in first vision signal;
First raw image data is handled, the first model near first icon and first icon area is madePicture material in enclosing is identical, obtains the first image data.
A kind of electronic equipment, the electronic equipment include at least display unit and communication unit, and the electronic equipment includes:
First video reception unit, for receiving the first vision signal by the communication unit;
First image scaled acquiring unit obtains the first image scaled for parsing first vision signal;
First display pattern determination unit, for determining the first display pattern to match with the first image ratio;
First video signal display unit shows described for controlling the display unit with first display patternOne vision signal.
Optionally, the first image ratio acquisition unit, comprising:
First image data extraction subelement, for extracting the first image data in first vision signal;
Image boundary detection sub-unit obtains first figure for detecting the image boundary of the first image dataAs the first boundary information of data;
First image scaled obtains subelement, for obtaining the first image ratio according to first boundary information.
Optionally, further includes:
First judgment sub-unit is extracted in first vision signal for extracting subelement in the first image dataThe first image data after, detect the first image data image boundary, judge whether described image near border depositsIn black region, the first judging result is obtained;
Second image data generates subelement, for indicating that described image near border exists when first judging resultWhen black region, the black border region is removed, obtains the second image data;
The first image ratio obtains subelement, specifically includes:
First image scaled obtains the first subelement, for detecting the image boundary of second image data, obtains instituteState the second boundary information of the second image data;According to the second boundary information, the first image ratio is obtained.
Optionally, the electronic equipment also has processing module, and the processing module is used for the video signal sampling,Then the first image data extract subelement, specifically include:
Subelement is sampled, for adopting according to default resolution ratio to first vision signal by the processing moduleSample obtains the second vision signal;The default resolution ratio is less than the true resolution of first vision signal, second viewFrequency signal is identical as the image scaled of first vision signal;
First image scaled obtains the second subelement, for extracting the first image data in second vision signal.
Optionally, the first display pattern determination unit, comprising:
Preset display mode obtains subelement, for obtaining the preset display mode of the electronic equipment;
Whether the second judgment sub-unit is identical as the first image ratio for judging to have in the preset display modeDisplay pattern, obtain the second judging result;
First display pattern determines subelement, will be described with described first for when second judging result, which is, isThe identical display pattern of image scaled is determined as first display pattern;
Second display pattern determines subelement, makes first view for determining when first judging result is noMaximum second display pattern of area of display picture of the frequency signal on the display unit;
The ratio and the first image ratio phase of display picture of first vision signal on the display unitTogether.
Optionally, second display pattern determines subelement, comprising:
Absolute value computation subunit, for calculating the corresponding preset display scale of the preset display mode and described firstThe absolute value of the difference of image scaled;
Second display pattern first determines subelement, for by the corresponding preset display mould of the smallest absolute valueFormula is determined as second display pattern.
Optionally, first video signal display unit, comprising:
Second display picture controls subelement, and there are black regions for the near image boundaries for working as the first image dataWhen domain, the display unit is controlled with first display pattern and shows the second display picture;
The second display picture corresponds to second image data.
Optionally, the first image data extract subelement, further includes:
First icon-based programming subelement identifies the first icon, first icon for parsing first vision signalIt is present in each frame image frame of first vision signal;
First raw image data extracts subelement, for extracting the first original image number in first vision signalAccording to;
First raw image data, which handles subelement, makes first figure for handling first raw image dataMark is identical as the picture material in the first range near first icon area, obtains the first image data.
The specific embodiment provided according to the present invention, the invention discloses following technical effects:
Image display method and electronic equipment of the invention obtains the first image by parsing first vision signalRatio;Determining the first display pattern to match with the first image ratio;It is aobvious with described first to control the display unitShow that mode shows first vision signal;When the aspect ratio of vision signal changes, after can analyze out changeAspect ratio, and be capable of the display aspect ratio of adjust automatically electronic equipment, make full use of the display area of electronic equipment intoRow display, avoids the waste of the display area for electronic equipment.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, completeSite preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based onEmbodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every otherEmbodiment shall fall within the protection scope of the present invention.
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific realApplying mode, the present invention is described in further detail.
Image display method of the invention, is applied to electronic equipment, and the electronic equipment includes at least display unit and leads toBelieve unit.The display unit can show video pictures according to the vision signal received.The communication unit can be used forReceive vision signal.The electronic equipment can be television set, mobile phone, tablet computer, desktop personal computer, laptop,Projector, large photoelectric diode (OLED) display screen, smartwatch, head-mounted display etc. can also be that multiple display devices are spelledLarge-scale display device made of connecing, such as video wall etc..
Fig. 3 is the flow chart of image display method embodiment 1 of the invention.As shown in figure 3, this method may include:
Step 301: the first vision signal is received by the communication unit;
First vision signal, can be cable TV signal, be also possible to Web TV signal.First videoThe aspect ratio of signal can there are many, for example, it may be 4:3, is also possible to 16:9's.
Step 302: parsing first vision signal obtains the first image scaled;
When first vision signal is digital signal, may believe comprising image scaled in first vision signalBreath.Described image percent information directly identifies the image scaled of first vision signal.Therefore, when first video is believedWhen in number including image scaled information, the first image scaled can be obtained directly according to described image percent information.
It, can be according to the first picture number in first vision signal when first vision signal is analog signalAccording to the first image scaled of acquisition.When first vision signal is digital signal, but does not wherein include image scaled information,The first image scaled can also be obtained according to the first image data in first vision signal.Specifically, can direct rootAccording to the first image data in first vision signal, the image boundary of the first image data is detected, obtains described theFirst boundary information of one image data calculates the first image scaled according to first boundary information and then obtains described firstImage scaled;The can also be calculated first to first video signal sampling, according to the picture that the vision signal after sampling generatesOne image scaled;When there are when black region, can also detect described for the near border of the corresponding image of the vision signalThe image boundary of one image data judges that described image near border with the presence or absence of black region, obtains the first judging result;WhenFirst judging result indicates that described image near border there are when black region, removes the black border region, obtainsSecond image data;The image boundary of second image data is detected, the second boundary of second image data is obtainedInformation;According to the second boundary information, the first image ratio is obtained.
When wherein, to the first video signal sampling, need to keep the image scaled of the first vision signal generation after samplingImage scaled corresponding with the first vision signal before sampling is identical.After to the first video signal sampling, with samplingBefore compare, the number of pixels of obtained vision signal is reduced, therefore is generated video in the subsequent vision signal according to after sampling and drawnFace, the technology complexity for obtaining the process of the first image scaled are also minimized, and the speed for determining the first image scaled can be improvedDegree.
Step 303: determining the first display pattern to match with the first image ratio;
The first display pattern to match with the first image ratio, can refer to and the ratio of the first image ratioThe identical display pattern of example.Under first display pattern, the display unit is shown according to first vision signalVideo pictures, the ratio with the original video frame of first vision signal is identical.
It should be noted that under normal conditions, when the ratio and the first image of the display pattern that electronic equipment usesWhen ratio is identical, display picture that first vision signal is formed on the screen of the electronic equipment after proper proportion is amplifiedThe area in face is the largest.Also, since first display pattern and the first image ratio match, so will notOccur in the prior art, when the aspect ratio of vision signal changes, using different from the aspect ratio of vision signalThe waste of the display area of electronic equipment caused by when display pattern plays out.
Step 304: controlling the display unit with first display pattern and show first vision signal.
In conclusion, by parsing first vision signal, obtaining the first image scaled in the present embodiment;Determine withThe first display pattern that the first image ratio matches;It controls the display unit and institute is shown with first display patternState the first vision signal;When the aspect ratio of vision signal changes, the aspect ratio after changing can analyze out, andIt is capable of the display aspect ratio of adjust automatically electronic equipment, and the picture of amplification display in accordance with the appropriate ratio, makes full use of electronicsThe display area of equipment is shown, the waste of the display area for electronic equipment is avoided.
Fig. 4 is the flow chart of image display method embodiment 2 of the invention.As shown in figure 4, this method may include:
Step 401: the first vision signal is received by the communication unit;
Step 402: extracting the first image data in first vision signal;
Step 403: the image boundary of detection the first image data judges described image near border with the presence or absence of blackColor region obtains the first judging result;If so, executing step 404;Otherwise, step 406 is executed.
There are black regions for the image boundary of the image data of some types.For example, the video of film types, in screenUpper and lower both sides will appear black banner.
Step 404: when first judging result, which is, is, removing the black border region, obtain the second picture numberAccording to;
Because in black region, exist without any pixel with practical significance, i.e. black region and vision signalThe content of image data is unrelated.No matter how the content of vision signal changes, and black region is black always.It therefore, can be withThe black border region is removed, after removing the black region, has no effect on the significant image data in vision signal.In other words, after removing black region, what user watched has the image content of actual displayed meaning not reduce.
Step 405: the image boundary of detection second image data obtains the second side of second image dataBoundary's information;According to the second boundary information, the first image ratio is obtained;
After removing black region, the boundary information of image data can change.Specifically, removing before black regionThe boundary information of one image data may include the length information and width information of the first image data.According to the first picture numberAccording to length information and width information, the length-width ratio of available first image data, the i.e. image scaled of the first image data.The boundary information of the second image data after removing black region may include the length information and width letter of the second image dataBreath.According to the length information and width information of the second image data, the length-width ratio of available second image data, i.e. the second figureAs the image scaled of data.
Step 406: when first judging result is no, detecting the image boundary of the first image data, obtainFirst boundary information of the first image data;
Step 407: according to first boundary information, obtaining the first image ratio.
Step 408: determining the first display pattern to match with the first image ratio;
Step 409: controlling the display unit with first display pattern and show first vision signal.
It should be noted that when the near image boundaries of the first image data are there are when black region, described in controlDisplay unit shows first vision signal with first display pattern, comprising:
It controls the display unit and shows that second in first vision signal shows picture with first display patternFace;The second display picture is according to the second image data after the removal black border region, obtained.
In the present embodiment, by removing the black region of image boundary, can be directed in vision signal has practical significanceDisplay content, determine corresponding display pattern, user made to watch the display area after getting rid of black region biggish aobviousShow picture.
Fig. 5 is the flow chart of image display method embodiment 3 of the invention.In the present embodiment, the electronic equipment also hasThere is processing module, the processing module is used for the video signal sampling.Specifically, the processing module can be a listOnly video memory, compared with the video memory of common television set, sample rate and resolution ratio can be lower.As shown in figure 5, this method can be withInclude:
Step 501: the first vision signal is received by the communication unit;
Step 502: first vision signal being sampled according to default resolution ratio by the processing module, is obtainedSecond vision signal;The default resolution ratio is less than the true resolution of first vision signal, second vision signalIt is identical as the image scaled of first vision signal;
After to the first video signal sampling, compared with before sampling, the number of pixels of obtained vision signal is reduced, becauseThis generates video pictures in the subsequent vision signal according to after sampling, obtains the technology complexity of the process of the first image scaledIt is minimized, the speed for determining the first image scaled can be improved.
Step 503: extracting the first image data in second vision signal.
Step 504: the image boundary of detection the first image data obtains the first boundary of the first image dataInformation;
Step 505: according to first boundary information, obtaining the first image ratio.
Step 506: obtaining the preset display mode of the electronic equipment;
Step 507: judge whether there is display pattern identical with the first image ratio in the preset display mode,Obtain the second judging result;If so, executing step 508, otherwise, step 510 is executed.
The preset display mode includes at least two kinds of display patterns of 4:3 and 16:9.When the first image ratio is 4:3When, the display pattern of 4:3 can be used;When the first image ratio is 16:9, the display pattern of 16:9 can be used.
Step 508:, will the display mould identical with the first image ratio when second judging result, which is, isFormula is determined as first display pattern;
Step 509: controlling the display unit with first display pattern and show first vision signal.
Step 510: when first judging result is no, determination makes first vision signal in the display unitOn display picture maximum second display pattern of area;
When display pattern identical with the first image ratio is not present in the preset display mode, can calculateThe absolute value of the difference of the preset display mode corresponding preset display scale and the first image ratio;
By the corresponding preset display mode of the smallest absolute value, it is determined as second display pattern.
Assuming that the preset display mode only has two kinds of display patterns of 4:3 and 16:9.And the first image ratio is 2:1.Difference between 4:3 and 2:1 is a quarter, and the difference between 16:9 and 2:1 is 1/16th.It is the smallest described absoluteValue is 1/16th, and the corresponding preset display mode is 16:9.The display pattern of 16:9 can be then determined as describedSecond display pattern.
It should be noted that when showing first vision signal with the second display pattern, can't change in the present embodimentBecome the image scaled of first vision signal, the ratio of display picture of first vision signal on the display unitIt is identical as the first image ratio.
Specifically, by taking the above-mentioned display pattern using 16:9 shows the image of 2:1 as an example, it is assumed that a length of 48 lis of imageRice, width are 24 centimetres, and a length of 48 centimetres of display screen, width is 27 centimetres, then described image can be shown as to 48 centimetres long, wide24 centimetres.
Step 511: controlling the display unit with second display pattern and show first vision signal.
It in the present embodiment, is sampled by processing module, the speed for determining the first image scaled can be improved;By judgingWhether have with the first image ratio identical display pattern, when the judgment result is no, determine if stating in preset display modeMaximum second display pattern of area for making display picture of first vision signal on the display unit, can makeThe display area of first vision signal on the display unit is as big as possible.
Fig. 6 is the flow chart of image display method embodiment 4 of the invention.As shown in fig. 6, this method may include:
Step 601: the first vision signal is received by the communication unit;
Step 602: parsing first vision signal identifies that the first icon, first icon are present in described firstIn each frame image frame of vision signal;
First icon can be the logo of TV station.First icon can be located at existing near image boundariesBlack region.
Step 603: extracting the first raw image data in first vision signal;
First raw image data is the image data for including first icon.
Step 604: processing first raw image data makes near first icon and first icon areaThe first range in picture material it is identical, obtain the first image data.
It can be by the color treatments of first icon at identical as the black of black region existing near image boundariesBlack.
Step 605: existing for the near image boundaries of removal the first image data after black region, detecting described theThe image boundary of one image data obtains the first boundary information of the first image data;
In the present embodiment, there are black regions for the near image boundaries of the first image data.
Step 606: according to first boundary information, obtaining the first image ratio.
Step 607: determining the first display pattern to match with the first image ratio;
Step 608: controlling the display unit with first display pattern and show first vision signal.
In the present embodiment, first raw image data is handled, first icon and first icon area are madePicture material in the first neighbouring range is identical, can remove black region near image boundaries there are when black regionThen the first interior icon removes black region again, improve accuracy when determining the first image scaled.
The invention also discloses a kind of electronic equipment.The electronic equipment includes at least display unit and communication unit.Fig. 7For the structure chart of electronic equipment of the invention.As shown in fig. 7, the electronic equipment may include:
First video reception unit 701, for receiving the first vision signal by the communication unit;
First image scaled acquiring unit 702 obtains the first image scaled for parsing first vision signal;
First display pattern determination unit 703, for determining the first display mould to match with the first image ratioFormula;
First video signal display unit 704 shows institute for controlling the display unit with first display patternState the first vision signal.
In practical application, the first image ratio acquisition unit 702 may include:
First image data extraction subelement, for extracting the first image data in first vision signal;
Image boundary detection sub-unit obtains first figure for detecting the image boundary of the first image dataAs the first boundary information of data;
First image scaled obtains subelement, for obtaining the first image ratio according to first boundary information.
The electronic equipment can also include:
First judgment sub-unit is extracted in first vision signal for extracting subelement in the first image dataThe first image data after, detect the first image data image boundary, judge whether described image near border depositsIn black region, the first judging result is obtained;
Second image data generates subelement, for indicating that described image near border exists when first judging resultWhen black region, the black border region is removed, obtains the second image data;
The first image ratio obtains subelement, specifically includes:
First image scaled obtains the first subelement, for detecting the image boundary of second image data, obtains instituteState the second boundary information of the second image data;According to the second boundary information, the first image ratio is obtained.
In practical application, the electronic equipment also has processing module, and the processing module is used for the vision signalSampling, then the first image data extract subelement, can specifically include:
Subelement is sampled, for adopting according to default resolution ratio to first vision signal by the processing moduleSample obtains the second vision signal;The default resolution ratio is less than the true resolution of first vision signal, second viewFrequency signal is identical as the image scaled of first vision signal;
First image scaled obtains the second subelement, for extracting the first image data in second vision signal.
The first display pattern determination unit 703 may include:
Preset display mode obtains subelement, for obtaining the preset display mode of the electronic equipment;
Whether the second judgment sub-unit is identical as the first image ratio for judging to have in the preset display modeDisplay pattern, obtain the second judging result;
First display pattern determines subelement, will be described with described first for when second judging result, which is, isThe identical display pattern of image scaled is determined as first display pattern;
Second display pattern determines subelement, makes first view for determining when first judging result is noMaximum second display pattern of area of display picture of the frequency signal on the display unit;
The ratio and the first image ratio phase of display picture of first vision signal on the display unitTogether.
Wherein, second display pattern determines subelement, may include:
Absolute value computation subunit, for calculating the corresponding preset display scale of the preset display mode and described firstThe absolute value of the difference of image scaled;
Second display pattern first determines subelement, for by the corresponding preset display mould of the smallest absolute valueFormula is determined as second display pattern.
In practical application, first video signal display unit 704 may include:
Second display picture controls subelement, and there are black regions for the near image boundaries for working as the first image dataWhen domain, the display unit is controlled with first display pattern and shows that second in first vision signal shows picture;
The second display picture is according to after the removal black border region, and the second obtained image data generates's.
In practical application, the first image data extract subelement, can also include:
First icon-based programming subelement identifies the first icon, first icon for parsing first vision signalIt is present in each frame image frame of first vision signal;
First raw image data extracts subelement, for extracting the first original image number in first vision signalAccording to;
First raw image data, which handles subelement, makes first figure for handling first raw image dataMark is identical as the picture material in the first range near first icon area, obtains the first image data.
In practical application, the electronic equipment further includes that the second display picture is carried out appropriate equal proportion up and down to amplifyPicture, so that being shown over the display with maximum area.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to byOne entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operationBetween there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaningCovering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes thatA little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article orThe intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arrangedExcept there is also other identical elements in the process, method, article or apparatus that includes the element.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be bySoftware adds the mode of required hardware platform to realize, naturally it is also possible to all implemented by hardware, but in many cases beforePerson is more preferably embodiment.Based on this understanding, technical solution of the present invention contributes to background technique whole orPerson part can be embodied in the form of software products, which can store in storage medium, such asROM/RAM, magnetic disk, CD etc., including some instructions are used so that a computer equipment (can be personal computer, serviceDevice or the network equipment etc.) execute method described in certain parts of each embodiment of the present invention or embodiment.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with otherThe difference of embodiment, the same or similar parts in each embodiment may refer to each other.For electronics disclosed in embodimentFor equipment, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method portionIt defends oneself bright.
Used herein a specific example illustrates the principle and implementation of the invention, and above embodiments are saidIt is bright to be merely used to help understand method and its core concept of the invention;At the same time, for those skilled in the art, foundationThought of the invention, there will be changes in the specific implementation manner and application range.In conclusion the content of the present specification is notIt is interpreted as limitation of the present invention.