1. Technical Field
The present disclosure relates to a device and a method for automatically testing image format compatibility of a display device.
2. Description of Related Art
In general, manufacturers will enable display devices to display images of different formats. Accordingly, a corresponding test method to check if the display device is able to display image files of all the formats as it is supposed to.
Typically, image format testing of a display device requires loading image files of each format the display device is designed to be compatible with, then an operator must open each file one at a time and view it, which consumes a lot of time and manpower.
Each of the stored testing images in the storage unit of the display device 100 is composed of at least two color intervals in columns of equal size and typically not the same color as the color interval. The color intervals include, but are not limited to, white, black, red, green, and blue intervals. Each of the color intervals is assigned an identification code. For example, the white interval is coded as “1”, the black interval “2”, the red interval “3”, the green interval “4”, and the blue interval “5”. For each image format to be tested of an image containing a specific sequence of the color intervals will be used. For example, in the exemplary embodiment as shown in
The test device 600 includes an image capturing unit 200, a processing unit 300, a storage unit 400, and a display unit 500. The image capturing unit 200 is configured to capture images of the testing images displayed by the display device 100. In the exemplary embodiment, the image capturing unit 200 can be a built-in camera. In another exemplary embodiment, the image capturing unit 200 can be an external device which is connected to the processing unit 300 via an interface, for example: a camera, a mobile telephone, and so on.
The storage unit 400 is configured to store the captured images and an image format table. The image format table records a plurality of image formats of the images, namely the interval sequences of the images. For example, in the exemplary embodiment as shown below in TABLE. 1, the image format table shows three interval sequences respectively associated with three image formats. That is, the interval sequence “12345” is associated with the GIF format; the interval sequence “21345” is associated with the JPG format; and the interval sequence “23145” is associated with the BMP format.
The processing unit 300 includes an image acquiring module 310, a sample determining module 320, an interval sequence determining module 330, and an image format determining module 340.
The image acquiring module 310 is configured to acquire a horizontal strip of a to-be-tested image which includes at least a portion of each of the color interval columns of the image, as shown in
The sample determining module 320 is configured to compare a standard deviation A of RGB values of pixels in a narrow vertical sample of the horizontal strip with a standard deviation B of RGB values of pixels of an adjacent vertical sample to obtain samples of each color interval from many samples taken. In the exemplary embodiment, the sample determining module 320 determines which of the many vertical samples obtained can be used to represent each of the color intervals according to the following. Initially, the sample determining module 320 defines a coordinate system for the acquired to-be-tested image, as shown in
In another exemplary embodiment, the sample determining module 320 determines which of the many vertical samples obtained can be used to represent each of the color intervals according to following steps. First, the sample determining module 320 acquires known standard deviations of each of known vertical samples of the different color intervals of a known sample image; second, calculates a standard deviation of a vertical sample of the to-be-tested image according to the steps of the above exemplary embodiment; third, calculates a difference between the calculated standard deviation R (x) and each of known standard deviations. The sample determining module 320 defines that the vertical sample of the to-be-tested image and the known vertical sample are in the same color interval if the difference is in a predetermined range and discards one and obtains another one for comparison with the known vertical sample. Otherwise, the vertical sample of the to-be-tested image and the known vertical sample are in the different color intervals if the difference is not in a predetermined range and discards one and obtains another one for comparison with the known vertical sample. Thereafter, the sample determining module 320 determines which of the many vertical samples obtained can be used to represent each of the color intervals according to the above steps.
The interval sequence determining module 330 is configured to take pixels from many vertical samples of each color interval to calculate a mean value of the RGB values of each color interval respectively, determine a color corresponding to each of color intervals according to the calculated mean values of the RGB values, and determine an interval sequence of the to-be-tested image and the code sequence of the color intervals.
The image format determining module 340 is configured to determine an image format corresponding to the code sequence according to the image format table, as shown in
In step S501, the image capturing unit 100 captures an image of the testing images displayed by the display device 100.
In step S502, the image acquiring module 310 acquires a horizontal strip of a to-be-tested image which includes at least a portion of each of the color interval column of the image.
In step S503, the sample determining module 330 compares a standard deviation A of RGB values of pixels in a narrow vertical sample of the horizontal strip with a standard deviation B of RGB values of pixels of an adjacent vertical sample to obtain samples of each color interval from many samples taken, detailed description can refer to that shown in
In step S504, the interval sequence determining module 330 takes pixels from many vertical samples of each color interval to calculate a mean value of the RGB values of each color interval respectively, determines a color corresponding to each of color intervals according to the calculated mean values of the RGB values, and determines an interval sequence of the to-be-tested image and the code sequence of the color intervals.
In step S505, the image format determining module 340 determines an image format corresponding to the code sequence according to the image format table.
Although the present disclosure has been specifically described on the basis of the exemplary embodiment thereof, the disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the embodiment without departing from the scope and spirit of the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
200810304695.7 | Sep 2008 | CN | national |