CN105304058A - Method and device for automatically adjusting display parameters - Google Patents

Method and device for automatically adjusting display parameters Download PDF

Info

Publication number
CN105304058A
CN105304058A CN201410309497.5A CN201410309497A CN105304058A CN 105304058 A CN105304058 A CN 105304058A CN 201410309497 A CN201410309497 A CN 201410309497A CN 105304058 A CN105304058 A CN 105304058A
Authority
CN
China
Prior art keywords
image
pixel points
effective pixel
display parameter
binary
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
CN201410309497.5A
Other languages
Chinese (zh)
Other versions
CN105304058B (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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201410309497.5A priority Critical patent/CN105304058B/en
Publication of CN105304058A publication Critical patent/CN105304058A/en
Application granted granted Critical
Publication of CN105304058B publication Critical patent/CN105304058B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method for automatically adjusting display parameters. The method includes: collecting a current image; on the basis of a preset first sample image, binarizing the collected image to obtain a binarized image, and acquiring number of effective pixel points corresponding to the binarized image; when the number of the effective pixel points of the binarized image is larger than a preset value, entering a step S4, and entering a step S1 if not; calculating an adjusting ratio of the collected image on the basis of the number of the effective pixel points, and adjusting current display parameters on the basis of the adjusting ratio and standard display parameters. The invention further discloses a device for automatically adjusting the display parameters. Compared with the prior art, the method and the device have the advantages that the display parameters can be adjusted automatically, and a user does not need to manually adjust the display parameters, so that convenience is brought to the user to use.

Description

The method of automatic adjustment display parameter and device
Technical field
The present invention relates to field of display, particularly relate to the method and device that automatically regulate display parameter.
Background technology
The effect that user watches the image that display shows because of user and display spacing different and there are differences, this is because the display parameter of display are certain, if user needs to regulate display parameter, user is then needed manually to regulate the display parameter of display, and display can not automatically adjust to display parameter according to user and the distance between it, cause the inconvenience that user uses.
Foregoing, only for auxiliary understanding technical scheme of the present invention, does not represent and admits that foregoing is prior art.
Summary of the invention
Fundamental purpose of the present invention is that the distance that can realize according between user and display regulates display parameter automatically.
For achieving the above object, the invention provides a kind of method of automatic adjustment display parameter, the method for described automatic adjustment display parameter comprises the following steps:
S1, collection present image;
S2, based on the first preset sample image, gathered image is carried out binary conversion treatment, obtains binary image, obtain the effective pixel points number that this binary image is corresponding;
S3, when the effective pixel points number of described binary image is greater than preset value, turn to step S4, otherwise forward described step S1 to;
S4, calculate the resize ratio of the image gathered based on described effective pixel points number;
S5, adjust current display parameter based on described resize ratio and benchmark display parameter.
Preferably, described step S2 specifically comprises:
S21, based on predetermined threshold value and the first sample image, gathered image is carried out binary conversion treatment, obtains binary image; Described first sample image be unmanned as time benchmark image;
The effective pixel points number of S22, calculating binary image.
Preferably, described step S21 adopts following formula to carry out:
i 2(x,y)=255,if|i 1(x,y)-F A(x,y)|>T1
i 2(x,y)=0,if|i 1(x,y)-F A(x,y)|≤T1
Wherein, described i 1(x, y) is gathered image, F a(x, y) is described first sample image, i 2(x, y) is the binary image of gathered image, and T1 is predetermined threshold value.
Preferably, described step S4 is specially:
Adopt following formula to calculate described resize ratio:
h=N/N0,N0≠0
Wherein N is described effective pixel points number, and described N0 is the effective pixel points number that the second sample image is corresponding, and h is resize ratio.
Preferably, the computation process of the pixel number that described second sample image is corresponding is:
Gather benchmark image when having portrait, as the second sample image, based on the first preset sample image, described second sample image is carried out binary conversion treatment, obtain binary image, obtain the effective pixel points number that this binary image is corresponding, calculate the effective pixel points number that described second sample image is corresponding.
In addition, for achieving the above object, the present invention also provides a kind of device of automatic adjustment display parameter, and the device of described automatic adjustment display parameter comprises:
Acquisition module, for gathering present image;
Binary conversion treatment module, for based on the first preset sample image, carries out binary conversion treatment by gathered image, obtains binary image, obtains the effective pixel points number that this binary image is corresponding;
Statistical module, for when the effective pixel points number of described binary image is greater than preset value, turns to computing module to calculate the resize ratio of the image gathered based on described effective pixel points number, otherwise forwards acquisition module collection present image to;
Computing module, for calculating the resize ratio of the image gathered based on described effective pixel points number;
Adjusting module, for adjusting current display parameter based on described resize ratio and benchmark display parameter.
Preferably, described binary conversion treatment module comprises:
Binarization unit, for based on predetermined threshold value and the first sample image, carries out binary conversion treatment by gathered image, obtains binary image; Described first sample image be unmanned as time benchmark image;
Computing unit, for calculating the effective pixel points number of binary image.
Preferably, described binarization unit is used for:
Based on predetermined threshold value and the first sample image, following formula is adopted to carry out gathered image to carry out binary conversion treatment:
i 2(x,y)=255,if|i 1(x,y)-F A(x,y)|>T1
i 2(x,y)=0,if|i 1(x,y)-F A(x,y)|≤T1
Wherein, described i 1(x, y) is gathered image, F a(x, y) is described first sample image, i 2(x, y) is the binary image of gathered image, and T1 is predetermined threshold value.
Preferably, described computing module is used for:
Adopt following formula to calculate described resize ratio:
h=N/N0,N0≠0
Wherein N is described effective pixel points number, and described N0 is the effective pixel points number that the second sample image is corresponding, and h is resize ratio.
Preferably, the computation process of the pixel number that described second sample image is corresponding is:
Gather benchmark image when having portrait, as the second sample image, based on the first preset sample image, described second sample image is carried out binary conversion treatment, obtain binary image, obtain the effective pixel points number that this binary image is corresponding, calculate the effective pixel points number that described second sample image is corresponding.
The present invention gathers present image; Based on the first preset sample image, gathered image is carried out binary conversion treatment, obtains binary image, obtain the effective pixel points number that this binary image is corresponding; When the effective pixel points number of described binary image is greater than preset value, turn to step S4, otherwise forward described step S1 to; The resize ratio of the image gathered is calculated based on described effective pixel points number; Current display parameter are adjusted based on described resize ratio and benchmark display parameter.Compared to prior art, the present invention can regulate display parameter automatically, and does not need user manually to adjust display parameter, convenient for users to use.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet that the present invention regulates method first embodiment of display parameter automatically;
Fig. 2 is the schematic flow sheet that the present invention regulates method second embodiment of display parameter automatically;
Fig. 3 is the high-level schematic functional block diagram that the present invention regulates device first embodiment of display parameter automatically;
Fig. 4 is the high-level schematic functional block diagram that the present invention regulates device second embodiment of display parameter automatically.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
It will be appreciated by those skilled in the art that, the present invention regulates the subject of implementation of the method for display parameter can be the terminal being provided with display automatically, as televisor, computing machine, panel computer, mobile phone etc., also can be the device that other any the present invention of realization regulate the method for display parameter automatically, in the following embodiments.The subject of implementation of following embodiment of the present invention is preferably televisor, but not to automatically regulating the subject of implementation of the method for display parameter to limit.Certainly, the present invention regulates the device of display parameter can arrange in the terminal automatically, also can be arranged on outside terminal, with terminal data cube computation in wired or wireless manner, can also be that other any applicable modes arrange the device that the present invention regulates display parameter automatically, the present invention be not construed as limiting this.
The invention provides a kind of method of automatic adjustment display parameter.
Reference Fig. 1, Fig. 1 are the schematic flow sheet that the present invention regulates method first embodiment of display parameter automatically.
Automatically regulate in method first embodiment of display parameter in the present invention, said method comprising the steps of:
Step S1, collection present image;
Televisor utilizes collecting device to gather image, can be Real-time Collection, timing acquiring, instruction acquisition etc. according to user.
Step S2, based on the first preset sample image, gathered image is carried out binary conversion treatment, obtains binary image, obtain the effective pixel points number that this binary image is corresponding;
Televisor based on the first preset sample image, can be arranged the condition of the image gathered being carried out to binaryzation, or arranges binary-state threshold etc.
The image of collection is carried out binary conversion treatment and obtains binary image, the gray-scale value being about to the pixel in the image gathered is set to 0 or 255.
Televisor obtains the number of the effective pixel points of this binary image.The object obtaining the number of effective pixel points is the number of the pixel obtaining portrait.Televisor or user can arrange and judge that whether pixel is the condition of effective pixel points, such as, be that the pixel of 0 is as effective pixel points using gray-scale value, or, be that the pixel of 255 is as effective pixel points using gray-scale value, or, using gray-scale value be the pixel of 255 a certain region in pixel as effective pixel points.Also can be 255 because the gray-scale value of the pixel of portrait in the image of binaryzation can be 0, therefore, televisor, by identifying the gray-scale value of the pixel of portrait in advance, arranges according to the gray-scale value of the pixel of portrait and judges that whether pixel is the condition of effective pixel points.
S3, when the effective pixel points number of described binary image is greater than preset value, turn to step S4, otherwise forward described step S1 to;
Preset value is that televisor pre-sets according to historical data, or, televisor according to user send arrange instruction arrange, such as, by according to obtain or the minimum number of the pixel of portrait that obtained by repetition test, or, using the mean value of the historical data of the number of the pixel of the portrait of user as preset value.
Due to the pixel of portrait is identified as effective pixel points, therefore, when the effective pixel points number of binary image is greater than preset value, portrait is there is in this binary image of televisor identification, perform next step, when the effective pixel points number of binary image is less than or equal to preset value, in this binary image of televisor identification, there is portrait, re-execute the step gathering present image.When this step is conducive to preventing there is not portrait in binary image or there is the object of other non-portraits, prevent from performing next step, therefore, be conducive to the accuracy of the result improving this method.
S4, calculate the resize ratio of the image gathered based on described effective pixel points number;
Such as, calculate the ratio of the number of this effective pixel points and the number of preset benchmark effective pixel points, be resize ratio.The number of the effective pixel points of benchmark can be televisor according to historical data setting, or user based on experience value or experiment value set by televisor.
Resize ratio can embody the distance of user from display or collecting device, and distance is nearer, then resize ratio is higher, and apart from far away, then resize ratio is lower.
S5, adjust current display parameter based on described resize ratio and benchmark display parameter.
Benchmark display parameter are that televisor or user preset.Benchmark display parameter are corresponding with the number of benchmark effective pixel points.Resize ratio is the ratio of target display parameter and benchmark display parameter or the ratio of benchmark display parameter and target display parameter, under the condition that benchmark display parameter are known, can calculate target resolution.Such as, resize ratio is H, and benchmark display parameter are resolution A, and the resolution B after adjustment obtains by formula B=H × A, exports B to resolution adjustment interface, completes the adjustment of resolution; Or resize ratio is H, and benchmark display parameter are brightness C, the brightness D after adjustment obtains by formula D=C ÷ H, exports D to brightness regulation interface, completes the adjustment of brightness.
In addition; display parameter also comprise contrast, refresh rate, saturation degree, color scheme etc.; the present embodiment does not enumerate the regulation scheme of these display parameter; in addition; the control method of the display parameter of above-mentioned example citing is not limited thereto; those skilled in the art can do suitable conversion to such scheme as required, but all in the scope of protection of the invention.
Compared to prior art, the present embodiment can adjust display parameter automatically by gathering present image, does not need user manually to adjust display parameter, convenient for users to use.
In the present embodiment, also comprise before described step S2:
Pre-service is carried out to the image gathered.
Described pre-service comprises: carry out illumination correction, noise reduction process, Gaussian Blur process successively to user images.
Illumination correction process is mainly to the process of the change information be mingled with in image (as illumination variation, angle change etc.), and adoptable method comprises: Gamma corrects (gamma correction), brightness of image nonlinear transformation, histogram equalization, maximum brightness point illumination compensation etc.Wherein, Gamma correction and brightness of image nonlinear transformation, by the nonlinear adjustment to image slices vegetarian refreshments, can remove some the irrelevant change informations in original image; Histogram equalization and maximum brightness point illumination compensation are a kind of methods for picture contrast adjustment, can strengthen Image Warping.
Noise reduction process mainly carries out filtering to the noise information in original image, and in image, typical noise has Gaussian noise, salt-pepper noise, additive noise etc., and adoptable method comprises: mean filter, medium filtering and gaussian filtering etc.
Gaussian Blur can reduce the picture noise of image and reduce the level of detail of image.
The present embodiment by carrying out pre-service to image, thus improving the signal to noise ratio (S/N ratio) of image, suppressing the ground unrest of image, can go back the original image information of original image the most really, get rid of collecting device and background etc. to the impact of image; In addition, pre-service can also reduce the picture noise of image and reduce the level of detail of image.
In the present embodiment, in described step S2, comprising:
Morphological scale-space is carried out to completing binary image.
Described Morphological scale-space carries out dilation and erosion to binary image, wherein expands and can fill up some potholes, and corrosion can eliminate that some are protruding, finally allows the edge of lines in binary image more level and smooth.
Binary image is carried out Morphological scale-space by the present embodiment makes the edge of lines in binary image more level and smooth.
With reference to Fig. 2, the present invention regulates the schematic flow sheet of method second embodiment of display parameter automatically;
The present invention regulates in method second embodiment of display parameter automatically, and the present embodiment is on the basis of the first embodiment, and described step S2 specifically comprises:
S21, based on predetermined threshold value and the first sample image, gathered image is carried out binary conversion treatment, obtains binary image;
First sample image be unmanned as time benchmark image.Due to the first sample image be unmanned as time benchmark image, therefore, if there is portrait in the image gathered, then different from the first sample image regions is portrait area, the image of collection is carried out binary conversion treatment, obtains binary image.Such as, the image of collection and the first sample image are carried out the contrast of image, the gray-scale value that the Similarity value of the gray-scale value and two images that the Similarity value of two images are greater than to pixel in the region of predetermined threshold value is less than or equal to pixel in the region of predetermined threshold value gives different values, makes it distinguish.
The effective pixel points number of S22, calculating binary image.
Such as, using gray-scale value be the pixel of 0 as effective pixel points, or, using gray-scale value be the pixel of 255 as effective pixel points, or, using gray-scale value be the pixel of 255 a certain region in pixel as effective pixel points.Due to step S21 by portrait with and background separation, therefore, televisor can arrange according to the gray-scale value of the pixel of portrait and judge that whether pixel is the condition of effective pixel points.
The present invention regulates in method the 3rd embodiment of display parameter automatically, and the present embodiment is on the basis of the first embodiment, the second embodiment, and described step S21 adopts following formula to carry out:
i 2(x,y)=255,if|i 1(x,y)-F A(x,y)|>T1
i 2(x,y)=0,if|i 1(x,y)-F A(x,y)|≤T1
Wherein, described i 1(x, y) is gathered image, F a(x, y) is described first sample image, i 2(x, y) is the binary image of gathered image, and T1 is predetermined threshold value.
Now, i 2the pixel of (x, y)=255 is effective pixel points.
It should be noted that the present embodiment does not limit the method obtaining similarity, those skilled in the art can carry out suitably distortion to above-mentioned formula as required and calculate similarity, or obtain similarity by other any applicable modes.
In certain embodiments, described step S21 can also adopt following formula to carry out:
i 2(x,y)=0,if|i 1(x,y)-F A(x,y)|>T1
i 2(x,y)=255,if|i 1(x,y)-F A(x,y)|≤T1
Wherein, described i 1(x, y) is gathered image, F a(x, y) is described first sample image, i 2(x, y) is the binary image of gathered image, and T1 is predetermined threshold value.
Now, i 2the pixel of (x, y)=0 is effective pixel points.
Portrait area in gathered image is set as different gray-scale values from the pixel of background parts by the present embodiment, facilitates the quantity of subsequent calculations portrait area pixel.
In the present embodiment, in step S22, when the pixel value of effective pixel points is 255, utilize the effective pixel points number of formulae discovery binary image below:
N=N+1,if(|i 2(x,y)|>0&&|i 2(x±1,y±1|>0)
N=N,else
When the pixel value of effective pixel points is 0, utilize the effective pixel points number of formulae discovery binary image below:
N=N+1,if(|i 2(x,y)|<255&&|i 2(x±1,y±1|<255)
N=N,else
The effective pixel points that the present embodiment calculates comprises the effective pixel points of multiple continuous print same pixel value, eliminates isolated noise point, to avoid isolated noise point, as the situation of effective pixel points, making result of calculation more accurate.
The present invention regulates in method the 4th embodiment of display parameter automatically, and the present embodiment is on the basis of the first embodiment, the second embodiment, the 3rd embodiment, and described step S4 is specially:
Adopt following formula to calculate described resize ratio:
h=N/N0,N0≠0
Wherein N is described effective pixel points number, and described N0 is the effective pixel points number that the second sample image is corresponding, and h is resize ratio.
The image gathering in advance during the second sample image or simulate.Resize ratio is the ratio of the effective pixel points of effective pixel points in binary image and the second sample image.
It should be noted that the present embodiment does not limit the method obtaining resize ratio, those skilled in the art can carry out suitably distortion to above-mentioned formula as required and calculate resize ratio, or obtain resize ratio by other any applicable modes.
The ratio of the effective pixel points of the effective pixel points in binary image and the second sample image as resize ratio, is simplified computation process, improves efficiency by the present embodiment.
The present invention regulates in method the 5th embodiment of display parameter automatically, and the present embodiment is on the basis of the first embodiment, the second embodiment, the 3rd embodiment, the 4th embodiment, and the computation process of the pixel number that described second sample image is corresponding is:
Gather benchmark image when having portrait, as the second sample image, based on the first preset sample image, described second sample image is carried out binary conversion treatment, obtain binary image, obtain the effective pixel points number that this binary image is corresponding, calculate the effective pixel points number that described second sample image is corresponding.
When user and display or collecting device distance predeterminable range, gather the benchmark image having portrait.Televisor or user can predict predeterminable range.The method of the effective pixel points corresponding with calculating binary image is identical, calculates the number of effective pixel points corresponding to the second sample image.
Second sample image comprises range information, therefore, pass through resize ratio, then can obtain the range information of the image of collection, user distance display or collecting device nearer, the number of its effective pixel points is larger, user distance display or collecting device far away, the number of its effective pixel points is less.
In one embodiment of the present invention, comprise before described step S21:
The optimum viewing distance of prompting user, gathers and stores the second sample image;
The optimum viewing distance of televisor prompting user, user stands in the position from the optimum viewing distance of display after knowing this optimum viewing distance, and televisor gathers the second sample image.Certainly, the collection of the second sample image is carried out in the position that force users must not stand in optimum viewing distance, but the distance in the second sample image gathered between user and display (or collecting device) must be known.
The present invention further provides a kind of device of automatic adjustment display parameter.
Reference Fig. 3, Fig. 3 are the high-level schematic functional block diagram that the present invention regulates device first embodiment of display parameter automatically.
Automatically regulate in device first embodiment of display parameter in the present invention, described device comprises:
Acquisition module 01, for gathering present image;
Binary conversion treatment module 02, for based on the first preset sample image, carries out binary conversion treatment by gathered image, obtains binary image, obtains the effective pixel points number that this binary image is corresponding;
Statistical module 03, for when the effective pixel points number of described binary image is greater than preset value, turns to computing module to calculate the resize ratio of the image gathered based on described effective pixel points number, otherwise forwards acquisition module 01 to and gather present image;
Computing module 04, for calculating the resize ratio of the image gathered based on described effective pixel points number;
Adjusting module 05, for adjusting current display parameter based on described resize ratio and benchmark display parameter.
Acquisition module 01 utilizes collecting device to gather image, can be Real-time Collection, timing acquiring, instruction acquisition etc. according to user.
Binary conversion treatment module 02 based on the first preset sample image, can be arranged the condition of the image gathered being carried out to binaryzation, or arranges binary-state threshold etc.
The image of collection is carried out binary conversion treatment and obtains binary image, the gray-scale value being about to the pixel in the image gathered is set to 0 or 255.
Binary conversion treatment module 02 obtains the number of the effective pixel points of this binary image.The object obtaining the number of effective pixel points is the number of the pixel obtaining portrait.Binary conversion treatment module 02 or user can arrange and judge that whether pixel is the condition of effective pixel points, such as, be that the pixel of 0 is as effective pixel points using gray-scale value, or, be that the pixel of 255 is as effective pixel points using gray-scale value, or, using gray-scale value be the pixel of 255 a certain region in pixel as effective pixel points.Also can be 255 because the gray-scale value of the pixel of portrait in the image of binaryzation can be 0, therefore, binary conversion treatment module 02, by identifying the gray-scale value of the pixel of portrait in advance, arranges according to the gray-scale value of the pixel of portrait and judges that whether pixel is the condition of effective pixel points.
Preset value is that statistical module 03 pre-sets according to historical data, or, statistical module 03 according to user send arrange instruction arrange, such as, by according to obtain or the minimum number of the pixel of portrait that obtained by repetition test, or, using the mean value of the historical data of the number of the pixel of the portrait of user as preset value.
Due to the pixel of portrait is identified as effective pixel points, therefore, when the effective pixel points number of binary image is greater than preset value, statistical module 03 identifies in this binary image to there is portrait, perform next step, when the effective pixel points number of binary image is less than or equal to preset value, statistical module 03 identifies in this binary image to there is portrait, and acquisition module 01 re-executes the step gathering present image.When this step is conducive to preventing there is not portrait in binary image or there is the object of other non-portraits, prevent from performing next step, therefore, be conducive to the accuracy of the result improving this method.
Computing module 04 calculates the resize ratio of the image gathered based on described effective pixel points number.
Such as, calculate the ratio of the number of this effective pixel points and the number of preset benchmark effective pixel points, be resize ratio.The number of the effective pixel points of benchmark can be computing module 04 according to historical data setting, or user based on experience value or experiment value set by computing module 04.
Resize ratio can embody the distance of user from display or collecting device, and distance is nearer, then resize ratio is higher, and apart from far away, then resize ratio is lower.
Benchmark display parameter are that adjusting module 05 or user preset.Benchmark display parameter are corresponding with the number of benchmark effective pixel points.Resize ratio is the ratio of target display parameter and benchmark display parameter or the ratio of benchmark display parameter and target display parameter, under the condition that benchmark display parameter are known, can calculate target resolution.Such as, resize ratio is H, and benchmark display parameter are resolution A, and the resolution B after adjustment obtains by formula B=H × A, exports B to resolution adjustment interface, completes the adjustment of resolution; Or resize ratio is H, and benchmark display parameter are brightness C, the brightness D after adjustment obtains by formula D=C ÷ H, exports D to brightness regulation interface, completes the adjustment of brightness.
In addition; display parameter also comprise contrast, refresh rate, saturation degree, color scheme etc.; the present embodiment does not enumerate the regulation scheme of these display parameter; in addition; the control method of the display parameter of above-mentioned example citing is not limited thereto; those skilled in the art can do suitable conversion to such scheme as required, but all in the scope of protection of the invention.
Compared to prior art, the present embodiment can adjust display parameter automatically by gathering present image, does not need user manually to adjust display parameter, convenient for users to use.
In the present embodiment, described device also comprises:
Pretreatment module (not shown), for carrying out pre-service to the image gathered.
Described pre-service comprises: carry out illumination correction, noise reduction process, Gaussian Blur process successively to user images.
Illumination correction process is mainly to the process of the change information be mingled with in image (as illumination variation, angle change etc.), and adoptable method comprises: Gamma corrects (gamma correction), brightness of image nonlinear transformation, histogram equalization, maximum brightness point illumination compensation etc.Wherein, Gamma correction and brightness of image nonlinear transformation, by the nonlinear adjustment to image slices vegetarian refreshments, can remove some the irrelevant change informations in original image; Histogram equalization and maximum brightness point illumination compensation are a kind of methods for picture contrast adjustment, can strengthen Image Warping.
Noise reduction process mainly carries out filtering to the noise information in original image, and in image, typical noise has Gaussian noise, salt-pepper noise, additive noise etc., and adoptable method comprises: mean filter, medium filtering and gaussian filtering etc.
Gaussian Blur can reduce the picture noise of image and reduce the level of detail of image.
The present embodiment by carrying out pre-service to image, thus improving the signal to noise ratio (S/N ratio) of image, suppressing the ground unrest of image, can go back the original image information of original image the most really, get rid of collecting device and background etc. to the impact of image; In addition, pre-service can also reduce the picture noise of image and reduce the level of detail of image.
In the present embodiment, described binary conversion treatment module 02 also for:
Morphological scale-space is carried out to completing binary image.
Described Morphological scale-space carries out dilation and erosion to binary image, wherein expands and can fill up some potholes, and corrosion can eliminate that some are protruding, finally allows the edge of lines in binary image more level and smooth.
Binary image is carried out Morphological scale-space by the present embodiment makes the edge of lines in binary image more level and smooth.
With reference to Fig. 4, the present invention regulates the high-level schematic functional block diagram of device second embodiment of display parameter automatically;
The present invention regulates in device second embodiment of display parameter automatically, and the present embodiment is on the basis of the first embodiment, and described binary conversion treatment module 02 comprises:
Binarization unit 21, for based on predetermined threshold value and the first sample image, carries out binary conversion treatment by gathered image, obtains binary image;
Computing unit 22, for calculating the effective pixel points number of binary image.
First sample image be unmanned as time benchmark image.Due to the first sample image be unmanned as time benchmark image, therefore, if there is portrait in the image gathered, then different from the first sample image regions is portrait area, the image of collection is carried out binary conversion treatment, obtains binary image.Such as, the image of collection and the first sample image are carried out the contrast of image, the gray-scale value that the Similarity value of the gray-scale value and two images that the Similarity value of two images are greater than to pixel in the region of predetermined threshold value is less than or equal to pixel in the region of predetermined threshold value gives different values, makes it distinguish.
Computing unit 22 calculates the effective pixel points number of binary image
Such as, using gray-scale value be the pixel of 0 as effective pixel points, or, using gray-scale value be the pixel of 255 as effective pixel points, or, using gray-scale value be the pixel of 255 a certain region in pixel as effective pixel points.Due to binarization unit 21 by portrait with and background separation, therefore, computing unit 22 can arrange according to the gray-scale value of the pixel of portrait and judge that whether pixel is the condition of effective pixel points.
The present invention regulates in device the 3rd embodiment of display parameter automatically, the present embodiment on the basis of the first embodiment, the second embodiment, described binarization unit 21 for:
Based on predetermined threshold value and the first sample image, following formula is adopted to carry out gathered image to carry out binary conversion treatment:
i 2(x,y)=255,if|i 1(x,y)-F A(x,y)|>T1
i 2(x,y)=0,if|i 1(x,y)-F A(x,y)|≤T1
Wherein, described i 1(x, y) is gathered image, F a(x, y) is described first sample image, i 2(x, y) is the binary image of gathered image, and T1 is predetermined threshold value.
Now, i 2the pixel of (x, y)=255 is effective pixel points.
It should be noted that the present embodiment does not limit the method obtaining similarity, those skilled in the art can carry out suitably distortion to above-mentioned formula as required and calculate similarity, or obtain similarity by other any applicable modes.
In certain embodiments, based on predetermined threshold value and the first sample image, following formula also can be adopted to carry out gathered image to carry out binary conversion treatment:
i 2(x,y)=0,if|i 1(x,y)-F A(x,y)|>T1
i 2(x,y)=255,if|i 1(x,y)-F A(x,y)|≤T1
Wherein, described i 1(x, y) is gathered image, F a(x, y) is described first sample image, i 2(x, y) is the binary image of gathered image, and T1 is predetermined threshold value.
Now, i 2the pixel of (x, y)=0 is effective pixel points.
Portrait area in gathered image is set as different gray-scale values from the pixel of background parts by the present embodiment, facilitates the quantity of subsequent calculations portrait area pixel.
In the present embodiment, when the pixel value of effective pixel points is 255, utilize the effective pixel points number of formulae discovery binary image below:
N=N+1,if(|i 2(x,y)|>0&&|i 2(x±1,y±1|>0)
N=N,else
When the pixel value of effective pixel points is 0, utilize the effective pixel points number of formulae discovery binary image below:
N=N+1,if(|i 2(x,y)|<255&&|i 2(x±1,y±1|<255)
N=N,else
The effective pixel points that the present embodiment calculates comprises the effective pixel points of multiple continuous print same pixel value, eliminates isolated noise point, to avoid isolated noise point, as the situation of effective pixel points, making result of calculation more accurate.
The present invention regulates in device the 4th embodiment of display parameter automatically, the present embodiment on the basis of the first embodiment, the second embodiment, the 3rd embodiment, described computing module 04 for:
Adopt following formula to calculate described resize ratio:
h=N/N0,N0≠0
Wherein N is described effective pixel points number, and described N0 is the effective pixel points number that the second sample image is corresponding, and h is resize ratio.
The image gathering in advance during the second sample image or simulate.Resize ratio is the ratio of the effective pixel points of effective pixel points in binary image and the second sample image.
It should be noted that the present embodiment does not limit the method obtaining resize ratio, those skilled in the art can carry out suitably distortion to above-mentioned formula as required and calculate resize ratio, or obtain resize ratio by other any applicable modes.
The ratio of the effective pixel points of the effective pixel points in binary image and the second sample image as resize ratio, is simplified computation process, improves efficiency by the present embodiment.
The present invention regulates in device the 5th embodiment of display parameter automatically, and the present embodiment is on the basis of the first embodiment, the second embodiment, the 3rd embodiment, the 4th embodiment, and the computation process of the pixel number that described second sample image is corresponding is:
Gather benchmark image when having portrait, as the second sample image, based on the first preset sample image, described second sample image is carried out binary conversion treatment, obtain binary image, obtain the effective pixel points number that this binary image is corresponding, calculate the effective pixel points number that described second sample image is corresponding.
When user and display or collecting device distance predeterminable range, gather the benchmark image having portrait.Device or the user of automatic adjustment display parameter can predict predeterminable range.The method of the effective pixel points corresponding with calculating binary image is identical, calculates the number of effective pixel points corresponding to the second sample image.
Second sample image comprises range information, therefore, pass through resize ratio, then can obtain the range information of the image of collection, user distance display or collecting device nearer, the number of its effective pixel points is larger, user distance display or collecting device far away, the number of its effective pixel points is less.
In one embodiment of the present invention, described device also comprises collection memory module (not shown), for pointing out user optimum viewing distance, gathering and storing the second sample image;
Gather the optimum viewing distance of memory module prompting user, user stands in the position from the optimum viewing distance of display after knowing this optimum viewing distance, and televisor gathers the second sample image.Certainly, the collection of the second sample image is carried out in the position that force users must not stand in optimum viewing distance, but the distance in the second sample image gathered between user and display (or collecting device) must be known.
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. automatically regulate a method for display parameter, it is characterized in that, the method for described automatic adjustment display parameter comprises the following steps:
S1, collection present image;
S2, based on the first preset sample image, gathered image is carried out binary conversion treatment, obtains binary image, obtain the effective pixel points number that this binary image is corresponding;
S3, when the effective pixel points number of described binary image is greater than preset value, turn to step S4, otherwise forward described step S1 to;
S4, calculate the resize ratio of the image gathered based on described effective pixel points number;
S5, adjust current display parameter based on described resize ratio and benchmark display parameter.
2. the method automatically regulating display parameter as claimed in claim 1, it is characterized in that, described step S2 specifically comprises:
S21, based on predetermined threshold value and the first sample image, gathered image is carried out binary conversion treatment, obtains binary image; Described first sample image be unmanned as time benchmark image;
The effective pixel points number of S22, calculating binary image.
3. the method automatically regulating display parameter as claimed in claim 2, it is characterized in that, described step S21 adopts following formula to carry out:
i 2(x,y)=255,if|i 1(x,y)-F A(x,y)|>T1
i 2(x,y)=0,if|i 1(x,y)-F A(x,y)|≤T1
Wherein, described i 1(x, y) is gathered image, F a(x, y) is described first sample image, i 2(x, y) is the binary image of gathered image, and T1 is predetermined threshold value.
4. the method automatically regulating display parameter as claimed in claim 1, it is characterized in that, described step S4 is specially:
Adopt following formula to calculate described resize ratio:
h=N/N0,N0≠0
Wherein N is described effective pixel points number, and described N0 is the effective pixel points number that the second sample image is corresponding, and h is resize ratio.
5. the method automatically regulating display parameter as claimed in claim 4, it is characterized in that, the computation process of the pixel number that described second sample image is corresponding is:
Gather benchmark image when having portrait, as the second sample image, based on the first preset sample image, described second sample image is carried out binary conversion treatment, obtain binary image, obtain the effective pixel points number that this binary image is corresponding, calculate the effective pixel points number that described second sample image is corresponding.
6. automatically regulate a device for display parameter, it is characterized in that, the device of described automatic adjustment display parameter comprises:
Acquisition module, for gathering present image;
Binary conversion treatment module, for based on the first preset sample image, carries out binary conversion treatment by gathered image, obtains binary image, obtains the effective pixel points number that this binary image is corresponding;
Statistical module, for when the effective pixel points number of described binary image is greater than preset value, turns to computing module to calculate the resize ratio of the image gathered based on described effective pixel points number, otherwise forwards acquisition module collection present image to;
Computing module, for calculating the resize ratio of the image gathered based on described effective pixel points number;
Adjusting module, for adjusting current display parameter based on described resize ratio and benchmark display parameter.
7. the device automatically regulating display parameter as claimed in claim 6, it is characterized in that, described binary conversion treatment module comprises:
Binarization unit, for based on predetermined threshold value and the first sample image, carries out binary conversion treatment by gathered image, obtains binary image; Described first sample image be unmanned as time benchmark image;
Computing unit, for calculating the effective pixel points number of binary image.
8. the device automatically regulating display parameter as claimed in claim 7, it is characterized in that, described binarization unit is used for:
Based on predetermined threshold value and the first sample image, following formula is adopted to carry out gathered image to carry out binary conversion treatment:
i 2(x,y)=255,if|i 1(x,y)-F A(x,y)|>T1
i 2(x,y)=0,if|i 1(x,y)-F A(x,y)|≤T1
Wherein, described i 1(x, y) is gathered image, F a(x, y) is described first sample image, i 2(x, y) is the binary image of gathered image, and T1 is predetermined threshold value.
9. the device automatically regulating display parameter as claimed in claim 6, it is characterized in that, described computing module is used for:
Adopt following formula to calculate described resize ratio:
h=N/N0,N0≠0
Wherein N is described effective pixel points number, and described N0 is the effective pixel points number that the second sample image is corresponding, and h is resize ratio.
10. the device automatically regulating display parameter as claimed in claim 9, it is characterized in that, the computation process of the pixel number that described second sample image is corresponding is:
Gather benchmark image when having portrait, as the second sample image, based on the first preset sample image, described second sample image is carried out binary conversion treatment, obtain binary image, obtain the effective pixel points number that this binary image is corresponding, calculate the effective pixel points number that described second sample image is corresponding.
CN201410309497.5A 2014-06-30 2014-06-30 Automatically adjust the method and device of display parameters Active CN105304058B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410309497.5A CN105304058B (en) 2014-06-30 2014-06-30 Automatically adjust the method and device of display parameters

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410309497.5A CN105304058B (en) 2014-06-30 2014-06-30 Automatically adjust the method and device of display parameters

Publications (2)

Publication Number Publication Date
CN105304058A true CN105304058A (en) 2016-02-03
CN105304058B CN105304058B (en) 2018-01-12

Family

ID=55201233

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410309497.5A Active CN105304058B (en) 2014-06-30 2014-06-30 Automatically adjust the method and device of display parameters

Country Status (1)

Country Link
CN (1) CN105304058B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107948531A (en) * 2017-12-29 2018-04-20 努比亚技术有限公司 A kind of image processing method, terminal and computer-readable recording medium
CN110838236A (en) * 2019-04-25 2020-02-25 邵伟 Mechanical driving platform of electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030234799A1 (en) * 2002-06-20 2003-12-25 Samsung Electronics Co., Ltd. Method of adjusting an image size of a display apparatus in a computer system, system for the same, and medium for recording a computer program therefor
CN101192270A (en) * 2007-11-08 2008-06-04 北京中星微电子有限公司 Display, device and method for accomplishing sight protection
CN101911675A (en) * 2008-01-08 2010-12-08 三星电子株式会社 Image display controlling method and apparatus of mobile terminal
CN102447929A (en) * 2011-09-30 2012-05-09 深圳超多维光电子有限公司 Display control chip and three-dimensional display equipment
CN102510503A (en) * 2011-09-30 2012-06-20 深圳超多维光电子有限公司 Stereoscopic display method and stereoscopic display equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030234799A1 (en) * 2002-06-20 2003-12-25 Samsung Electronics Co., Ltd. Method of adjusting an image size of a display apparatus in a computer system, system for the same, and medium for recording a computer program therefor
CN101192270A (en) * 2007-11-08 2008-06-04 北京中星微电子有限公司 Display, device and method for accomplishing sight protection
CN101911675A (en) * 2008-01-08 2010-12-08 三星电子株式会社 Image display controlling method and apparatus of mobile terminal
CN102447929A (en) * 2011-09-30 2012-05-09 深圳超多维光电子有限公司 Display control chip and three-dimensional display equipment
CN102510503A (en) * 2011-09-30 2012-06-20 深圳超多维光电子有限公司 Stereoscopic display method and stereoscopic display equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107948531A (en) * 2017-12-29 2018-04-20 努比亚技术有限公司 A kind of image processing method, terminal and computer-readable recording medium
CN110838236A (en) * 2019-04-25 2020-02-25 邵伟 Mechanical driving platform of electronic equipment

Also Published As

Publication number Publication date
CN105304058B (en) 2018-01-12

Similar Documents

Publication Publication Date Title
CN103369209B (en) Vedio noise reduction device and method
US20170263198A1 (en) System and method for adjusting luminance of a display screen
CN109003249B (en) Method, device and terminal for enhancing image details
CN104104886B (en) Overexposure image pickup method and device
CN104331863B (en) A kind of image filtering denoising method
CN102855617B (en) Method and system for processing adaptive images
CN105046655B (en) A kind of automatic sharpening method of video image and device
EP2536126A3 (en) Image processing apparatus, image processing method, and program
CN104023166B (en) A kind of environment self-adaption video image noise reducing method and device
CN103295182B (en) Realize Circuits System and the method thereof of infrared image being carried out to contrast stretching process
CN105761231B (en) A method of for removing fringes noise in high-resolution astronomy image
CN104021533B (en) A kind of real time imaging noise-reduction method and device
CN104021527B (en) Rain and snow removal method in image
CN103632153B (en) Region-based image saliency map extracting method
CN103079038A (en) Image sharpening processing method, device and shooting terminal
US20210192251A1 (en) Method and system for selecting image region that facilitates blur kernel estimation
CN105139343A (en) Image processing method and device
CN109584175B (en) Image processing method and device
CN104200426A (en) Image interpolation method and device
CN104200457A (en) Wide-angle camera shooting based discrete type canopy leaf area index detection system and method
CN103176668B (en) A kind of shooting method for correcting image for camera location touch system
CN103489168A (en) Enhancing method and system for infrared image being converted to pseudo color image in self-adaptive mode
CN104010114A (en) Video denoising method and device
CN105809633A (en) Color noise removing method and device
CN105654424B (en) Adjustment ratio display methods, display system, display device and the terminal of image

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