CN108470334B - Method and device for collecting screen brightness and chromaticity - Google Patents

Method and device for collecting screen brightness and chromaticity Download PDF

Info

Publication number
CN108470334B
CN108470334B CN201810229789.6A CN201810229789A CN108470334B CN 108470334 B CN108470334 B CN 108470334B CN 201810229789 A CN201810229789 A CN 201810229789A CN 108470334 B CN108470334 B CN 108470334B
Authority
CN
China
Prior art keywords
screen
determining
sub
pixel points
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810229789.6A
Other languages
Chinese (zh)
Other versions
CN108470334A (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.)
Shanghai Shunjiu Electronic Technology Co ltd
Original Assignee
Shanghai Shunjiu Electronic 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 Shanghai Shunjiu Electronic Technology Co ltd filed Critical Shanghai Shunjiu Electronic Technology Co ltd
Priority to CN201810229789.6A priority Critical patent/CN108470334B/en
Publication of CN108470334A publication Critical patent/CN108470334A/en
Application granted granted Critical
Publication of CN108470334B publication Critical patent/CN108470334B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
  • Image Analysis (AREA)

Abstract

The embodiment of the application discloses a method and a device for collecting screen brightness and chromaticity, relates to the technical field of display, and solves the problems of low efficiency and accuracy when manually positioning the area where each sub-screen unit is located. The specific scheme is as follows: the method comprises the steps of obtaining an image to be tested, determining a detection parameter corresponding to each pixel point according to the measured value of each pixel point in the image to be tested, determining the pixel point of the image to be tested, of which the detection parameter is larger than a target threshold value, as the pixel point corresponding to a test pattern, determining the central position information of the test pattern according to the position information of the pixel point of the test pattern, determining the region information of a sub-screen unit, where a pure-color graphic card is displayed, in the image to be tested according to the central position information, and collecting the brightness and the chromaticity information of the sub-screen unit, where the pure-color graphic card is displayed, according to the region information. The method and the device are used for the process of collecting the brightness and the chroma of the screen.

Description

Method and device for collecting screen brightness and chromaticity
Technical Field
The embodiment of the application relates to the technical field of display, in particular to a method and a device for collecting screen brightness and chromaticity.
Background
With the development of display technology, users are increasingly eager for large-screen display effects in the fields of commerce, sports, video conferences, traffic monitoring and the like, and the display technology of large-size screens meets the requirements of the users. However, if a single screen is used to realize the display of a large-sized screen, the cost increases sharply as the screen size increases, and performance indexes such as power consumption are significantly deteriorated.
In order to reduce the cost of large-size screen display and simultaneously improve performance indexes such as power consumption, large-size screen display can be realized in a screen splicing mode. When the spliced screen is generally shipped or initially installed, the image quality parameters of each sub-screen unit of the spliced screen are adjusted to the degree that the brightness and the chroma accord with the uniformity indexes. However, as time goes on, attenuation aging of each sub-screen unit of the spliced screen occurs in different degrees, so that image quality parameters of each sub-screen unit are different, uniformity of brightness and chromaticity of the spliced screen is deteriorated, the spliced screen is apparently composed of different sub-screen units, and image quality effect is affected.
In the prior art, a camera can be used for shooting a spliced screen to obtain a shot image, then, the area where each sub-screen unit in the shot image is located is manually analyzed and positioned, and the brightness and the chromaticity of each sub-screen unit are collected, so that the correction processing module can perform uniformity correction processing according to the collected brightness and chromaticity of each sub-screen unit, and the problem that the uniformity of the brightness and the chromaticity of the spliced screen is poor is solved.
The prior art at least has the following technical problems: because the number of the sub-screen units of the spliced screen is usually multiple, the areas where the sub-screen units are located need to be manually analyzed and positioned before the brightness and the chromaticity of each sub-screen unit are collected, and therefore efficiency and accuracy are low.
Disclosure of Invention
The application provides a method and a device for acquiring screen brightness and chromaticity, and solves the problem that efficiency and accuracy are low when the area where each sub-screen unit is located is manually positioned.
In order to achieve the purpose, the technical scheme is as follows:
in a first aspect, the present application provides a method for acquiring screen brightness and chromaticity, which may include: the device for acquiring the brightness and the chromaticity of the screen acquires an image to be tested, determines a detection parameter corresponding to each pixel point according to a measured value of each pixel point in the image to be tested, and determines the pixel point of which the detection parameter is greater than a target threshold value in the pixel points of the image to be tested as the pixel point corresponding to the test pattern. The device for acquiring the brightness and the chromaticity of the screen determines the central position information of the test pattern according to the position information of the pixel points of the test pattern, determines the region information of the sub-screen unit where the pure color chart is displayed in the image to be tested according to the central position information, and acquires the brightness and the chromaticity information of the sub-screen unit where the pure color chart is displayed according to the region information.
With reference to the first aspect, in a possible implementation manner, the image to be detected includes an image of the mosaic screen in the current gray scale. The spliced screen comprises M rows and N columns of sub-screen units, M and N are integers greater than or equal to 2, the sub-screen units which display the characteristic graphic cards and the sub-screen units which display the pure color graphic cards exist in the sub-screen units, and at least one sub-screen unit in each row of sub-screen units or each column of sub-screen units displays the characteristic graphic cards. The characteristic diagram card comprises K test patterns, wherein K is an integer greater than or equal to 4, and the test patterns are used for determining the area information of the sub-screen unit. The background color of the characteristic graph card is different from the color of the test graph, and the background color of the pure color graph card is different from the color of the test graph. The test patterns in the image to be tested are distributed according to the array, and each feature graph card contains the same number of test patterns.
With reference to the first aspect and the foregoing possible implementation manners, in another possible implementation manner, the determining, by the device for acquiring screen brightness and chromaticity, area information where the sub-screen unit displaying the pure color chart is located in the image to be detected is determined according to the center position information, and specifically may include: the device for acquiring the brightness and the chromaticity of the screen connects the central positions of the test patterns in each line to obtain a horizontal straight line, connects the central positions of the test patterns in each line to obtain a vertical straight line, obtains the position information of the intersection point of the horizontal straight line and the vertical straight line in the pure color chart card, and determines the area information where the sub-screen unit displaying the pure color chart card is located according to the position information of the intersection point in the pure color chart card.
With reference to the first aspect and the possible implementation manners described above, in another possible implementation manner, the position information of the pixel point of the test pattern includes an abscissa and an ordinate. The device for collecting screen brightness and chromaticity determines the center position information of the test pattern according to the position information of the pixel point of the test pattern, and specifically includes: determining pixel points belonging to a test pattern, calculating the average value of the abscissa and the average value of the ordinate of all the pixel points belonging to the test pattern, and determining the average value of the abscissa and the average value of the ordinate as the central position information of the test pattern.
With reference to the first aspect and the foregoing possible implementation manners, in another possible implementation manner, before determining, by the device for acquiring screen brightness and chromaticity, a pixel point of the image to be tested whose detection parameter is greater than the target threshold as a pixel point corresponding to the test pattern, the method may further include: the device for collecting the screen brightness and the screen chromaticity determines pixel points of the image to be tested, of which the detection parameters are larger than the alternative threshold value, as pixel points of the test pattern, and determines row separation lines and column separation lines between the test patterns according to the pixel points of the test pattern, wherein the row separation lines and the column separation lines are intersected to form at least one grid. And the device for collecting the brightness and the chromaticity of the screen counts the number of the pixel points in each grid containing the pixel points of the test pattern in at least one grid, calculates the average value of the number of the pixel points of the test pattern divided by the number of the grids containing the pixel points of the test pattern, calculates the difference value between the average value and the number of the pixel points in each grid containing the pixel points of the test pattern, and determines the largest difference value in all the difference values as a target difference value. In this way, the device for acquiring the screen brightness and the screen chromaticity determines the fraction value corresponding to the alternative threshold according to the target difference value and the average value, and determines the alternative threshold of which the fraction value is greater than the preset value in the alternative threshold included in the alternative threshold interval as the target threshold. The alternative threshold belongs to any value in an alternative threshold interval, and the alternative threshold interval comprises: all values from the minimum value of the detection parameter to the maximum value of the detection parameter are increased by a predetermined step.
With reference to the first aspect and the foregoing possible implementation manners, in another possible implementation manner, the determining, by the device for acquiring luminance and chromaticity of the screen, a row separation line and a column separation line between the test patterns according to pixel points of the test patterns may specifically include: the device for collecting the brightness and the chromaticity of the screen performs denoising and linear fitting on a first row of test patterns in the test patterns according to pixel points of the test patterns to obtain a first horizontal straight line, performs denoising and linear fitting on a last row of test patterns to obtain a second horizontal straight line, performs denoising and linear fitting on a first column of test patterns in the test patterns to obtain a first vertical straight line, and performs denoising and linear fitting on a last column of test patterns to obtain a second vertical straight line. The device for acquiring the brightness and the chromaticity of the screen determines the line separation lines among the test patterns according to the first horizontal straight line, the second horizontal straight line and the number of each row of test patterns in the image to be tested, and determines the column separation lines among the test patterns according to the first vertical straight line, the second vertical straight line and the number of each row of test patterns in the image to be tested.
In a second aspect, the present application provides an apparatus for collecting screen brightness and chromaticity, which may include: the device comprises an acquisition unit, a determination unit and a collection unit. And the acquisition unit is used for acquiring the image to be detected. The determining unit is used for determining a detection parameter corresponding to each pixel point according to the measured value of each pixel point in the image to be detected, which is obtained by the obtaining unit; determining pixel points of the to-be-tested image, of which the detection parameters are larger than the target threshold value, as pixel points corresponding to the test pattern; determining the central position information of the test pattern according to the position information of the pixel points of the test pattern; and determining the area information of the sub-screen unit where the pure color chart is displayed in the image to be detected according to the central position information. And the acquisition unit is used for acquiring the brightness and chromaticity information of the sub-screen unit on which the pure color chart is displayed according to the area information determined by the determination unit.
With reference to the second aspect, in one possible implementation manner, the image to be detected includes an image of the mosaic screen in the current gray scale; the spliced screen comprises M rows and N columns of sub-screen units, M and N are integers greater than or equal to 2, the sub-screen units are provided with sub-screen units displaying the characteristic graphic cards and sub-screen units displaying the pure color graphic cards, and at least one sub-screen unit in each row of sub-screen units or each column of sub-screen units is provided with the characteristic graphic cards; the characteristic graph card comprises K test patterns, wherein K is an integer greater than or equal to 4, and the test patterns are used for determining the area information of the sub-screen unit; the background color of the characteristic graphic card is different from the color of the test pattern, and the background color of the pure color graphic card is different from the color of the test pattern; the test patterns in the image to be tested are distributed according to the array, and each feature graph card contains the same number of test patterns.
With reference to the second aspect and the foregoing possible implementation manners, in another possible implementation manner, the determining unit is specifically configured to: connecting the central positions of the test patterns in each row to obtain a horizontal straight line, and connecting the central positions of the test patterns in each column to obtain a vertical straight line; acquiring position information of an intersection point of the horizontal straight line and the vertical straight line in the pure color chart; and determining the area information where the sub-screen unit displaying the pure color chart is located according to the position information of the intersection point in the pure color chart.
With reference to the second aspect and the possible implementation manners described above, in another possible implementation manner, the position information of the pixel point of the test pattern includes an abscissa and an ordinate. A determination unit, specifically configured to: determining pixel points belonging to a test pattern; calculating the average value of the abscissa and the average value of the ordinate of all the pixel points belonging to one test pattern, and determining the average value of the abscissa and the average value of the ordinate as the central position information of one test pattern.
With reference to the second aspect and the foregoing possible implementation manners, in another possible implementation manner, the apparatus for acquiring screen brightness and chromaticity further includes: a statistic unit and a calculation unit. The determining unit is further used for determining pixel points of the image to be tested, of which the detection parameters are greater than the alternative threshold value, as pixel points of the test pattern; the alternative threshold belongs to any value in an alternative threshold interval, and the alternative threshold interval comprises: all values from the minimum value of the detection parameter to the maximum value of the detection parameter are increased according to a preset step length; and determining row separation lines and column separation lines between the test patterns according to the pixel points of the test patterns, wherein the row separation lines and the column separation lines are intersected to form at least one grid. And the counting unit is used for counting the number of pixel points in each grid containing the pixel points of the test pattern in at least one grid. The calculation unit is used for calculating an average value, wherein the average value is the number of the pixel points of the test pattern divided by the number of grids of all the pixel points containing the test pattern; and calculating the difference value between the average value and the number of the pixel points in each grid containing the pixel points of the test pattern. The determining unit is further used for determining the largest difference value in all the difference values as a target difference value; determining a score value corresponding to the alternative threshold according to the target difference value and the average value; and determining the candidate threshold value with the score value larger than the preset value in the candidate threshold values included in the candidate threshold value interval as the target threshold value.
With reference to the second aspect and the foregoing possible implementation manners, in another possible implementation manner, the determining unit is specifically configured to: according to pixel points of the test patterns, denoising and linearly fitting a first line of test patterns in the test patterns to obtain a first horizontal straight line, and denoising and linearly fitting a last line of test patterns to obtain a second horizontal straight line; denoising and linearly fitting a first row of test patterns in the test patterns to obtain a first vertical straight line, and denoising and linearly fitting a last row of test patterns to obtain a second vertical straight line; determining a line separation line between the test patterns according to the first horizontal straight line, the second horizontal straight line and the number of the test patterns in each column of the image to be tested; and determining column separation lines among the test patterns according to the first vertical straight line, the second vertical straight line and the number of the test patterns in each row in the image to be tested.
Specific implementation manners may refer to behavior functions of the device for acquiring the screen brightness and the screen chromaticity in the method for acquiring the screen brightness and the screen chromaticity provided by the first aspect or the possible implementation manners of the first aspect.
In a third aspect, an apparatus for collecting screen brightness and chrominance is provided, and the apparatus for collecting screen brightness and chrominance includes: at least one processor, a memory, a communication interface, and a communication bus. The processor is connected with the memory and the communication interface through a communication bus, the memory is used for storing computer-executable instructions, and when the device for acquiring the screen brightness and the chromaticity runs, the processor executes the computer-executable instructions stored in the memory, so that the device for acquiring the screen brightness and the chromaticity can execute the method for acquiring the screen brightness and the chromaticity as the first aspect or any one of the possible implementation manners of the first aspect.
In a fourth aspect, there is provided a computer storage medium having stored thereon computer executable instructions, which when run on a computer, cause the computer to perform a method of acquiring screen brightness and chromaticity as in the first aspect or any one of the possible implementations of the first aspect.
According to the method for acquiring the brightness and the chromaticity of the screen, after the device for acquiring the brightness and the chromaticity of the screen acquires the image to be tested containing the spliced screen under the current gray scale, the pixel point of the test pattern can be determined according to the color difference between the test pattern and the background in the image to be tested, the central position information of the test pattern is determined according to the pixel point of the test pattern, then the area information of the sub-screen unit displaying the pure color graphic card is determined according to the central position information of the test pattern, and the brightness and the chromaticity information of the sub-screen unit are acquired. Therefore, before the brightness and the chromaticity of the sub-screen unit are collected, the area information of the sub-screen unit can be determined through the test graph, so that the automatic collection of the brightness and the chromaticity is realized, and the problems of low efficiency and low accuracy when the areas where the sub-screen units are located are manually positioned are solved.
Drawings
Fig. 1 is a simplified schematic diagram of a system architecture to which the embodiments of the present application may be applied, according to the embodiments of the present application;
fig. 2 is a schematic composition diagram of an apparatus for acquiring screen brightness and chromaticity according to an embodiment of the present disclosure;
fig. 3 is a flowchart of a method for acquiring screen brightness and chrominance according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram illustrating a distribution of test patterns in a feature card according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram illustrating that an apparatus for collecting luminance and chrominance of a screen determines area information of a sub-screen unit on which a pure color chart is displayed according to an embodiment of the present application;
fig. 6 is a scene schematic diagram of a method for acquiring screen brightness and chromaticity, to which the embodiments of the present application may be applied;
fig. 7 is a flowchart of a method for acquiring screen brightness and chrominance according to an embodiment of the present disclosure;
FIG. 8 is a schematic diagram of a device for collecting screen brightness and chromaticity to determine row separation lines and column separation lines according to an embodiment of the present disclosure;
fig. 9 is a schematic composition diagram of another apparatus for acquiring screen brightness and chrominance according to an embodiment of the present disclosure;
FIG. 10 is a schematic diagram illustrating an alternative apparatus for collecting luminance and chrominance of a screen according to an embodiment of the present disclosure;
fig. 11 is a schematic composition diagram of another apparatus for acquiring screen brightness and chrominance according to an embodiment of the present disclosure.
Detailed Description
The terms "system" and "network" are often used interchangeably herein. The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
Fig. 1 is a simplified schematic diagram of a system architecture to which the embodiments of the present application may be applied, as shown in fig. 1, the system architecture may include: a spliced screen 11, a collecting device 12 and a device 13 for collecting the brightness and the chromaticity of the screen.
The mosaic screen 11 may include M rows and N columns of sub-screen units, where M and N are integers greater than or equal to 2.
And the acquisition equipment 12 is used for acquiring the image of the spliced screen 11 under the specific gray scale. In a specific implementation, the capturing device 12 may be a camera, a handheld shooting device such as a mobile phone, or a color analyzer. The acquisition device 12 is shown in fig. 1 as a mobile phone.
The device 13 for acquiring the brightness and the chromaticity of the screen is used for acquiring the image acquired by the acquisition device 12, acquiring the brightness and the chromaticity information of each sub-screen unit according to the acquired image, correcting the uniformity of the brightness and the chromaticity of the spliced screen 11 according to the acquired brightness and the chromaticity information of each sub-screen unit, and sending the corrected compensation parameters to the spliced screen 11.
Fig. 2 is a schematic composition diagram of an apparatus for acquiring screen brightness and chromaticity according to an embodiment of the present disclosure, and as shown in fig. 2, the apparatus for acquiring screen brightness and chromaticity may include: at least one processor 21, a memory 22, a communication interface 23, and a communication bus 24.
The following describes the components of the device for acquiring the brightness and chromaticity of the screen in detail with reference to fig. 2:
the processor 21 is a control center of a device for acquiring screen brightness and chromaticity, and may be a single processor or a collective name of a plurality of processing elements. For example, the processor 21 is a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement the embodiments of the present Application, such as: one or more Digital Signal Processors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs).
In particular implementations, processor 21 may include one or more CPUs such as CPU0 and CPU1 shown in fig. 2 as one example. Also, as an example, the means for acquiring screen brightness and chrominance may comprise a plurality of processors, such as the processor 21 and the processor 25 shown in fig. 2. Each of these processors may be a Single-core processor (Single-CPU) or a Multi-core processor (Multi-CPU). A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
The Memory 22 may be a Read-Only Memory (ROM) or other type of static storage device that can store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable Programmable Read-Only Memory (EEPROM), a Compact Disc Read-Only Memory (CD-ROM) or other optical Disc storage, optical Disc storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), a magnetic Disc storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory 22 may be self-contained and coupled to the processor 21 via a communication bus 24. The memory 22 may also be integrated with the processor 21.
In a specific implementation, the memory 22 is used for storing data in the present application and executing software programs of the present application. Processor 21 may perform various functions of the means for acquiring screen brightness and chromaticity by running or executing software programs stored in memory 22 and invoking data stored in memory 22.
The communication interface 23 is a device using any transceiver or the like, and is used for communicating with other devices or communication Networks, such as a tiled screen, a collection device, a Radio Access Network (RAN), a Wireless Local Area Network (WLAN), and the like. The communication interface 23 may include a receiving unit implementing a receiving function and a transmitting unit implementing a transmitting function.
The communication bus 24 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (enhanced Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 2, but it is not intended that there be only one bus or one type of bus.
In order to solve the problem that the efficiency and the accuracy are low when the areas where the sub-screen units are located are manually positioned, the embodiment of the application provides a method for acquiring the brightness and the chromaticity of a screen. Specifically, as shown in fig. 3, the method may include the following steps 301 to 306:
301. and acquiring the image to be detected by a device for acquiring the brightness and the chromaticity of the screen.
The image to be detected comprises an image of the spliced screen under the current gray scale and an image outside the spliced screen, namely an image of a background area; the spliced screen comprises M rows and N columns of sub-screen units, M and N are integers greater than or equal to 2, the sub-screen units are provided with sub-screen units displaying the characteristic graphic cards and sub-screen units displaying the pure color graphic cards, and at least one sub-screen unit in each row of sub-screen units or each column of sub-screen units is provided with the characteristic graphic cards; the characteristic graph card comprises K test patterns, wherein K is an integer greater than or equal to 4, and the test patterns are used for determining the area information of the sub-screen unit; the background color of the characteristic graphic card is different from the color of the test pattern, and the background color of the pure color graphic card is different from the color of the test pattern; the test patterns in the image to be tested are distributed according to the array, and each feature graph card contains the same number of test patterns.
When the uniformity correction of the brightness and the chromaticity of the spliced screen is needed, the device for acquiring the brightness and the chromaticity of the screen can acquire a shot image containing the spliced screen under the current gray scale, namely an image to be detected. Specifically, the method comprises the following steps: in a scene shot by a fixed camera, a device for acquiring the brightness and the chromaticity of a screen can obtain an image to be detected by indicating the fixed camera to shoot; in the scene that is unfavorable for putting of fixed camera support, adopts handheld device to shoot, the device of gathering screen brightness and colourity can receive the image that awaits measuring that handheld device shot.
302. And the device for collecting the brightness and the chromaticity of the screen determines the detection parameters corresponding to each pixel point according to the measured value of each pixel point in the image to be detected.
After the device for acquiring the brightness and the chromaticity of the screen acquires an image to be detected, in the prior art, a region segmentation method can be generally adopted to extract a spliced screen region from the image to be detected, but the spliced screen region is influenced by a shooting environment, and the color of the spliced screen region and the color of a background region are insufficient in discrimination, so that the image of the spliced screen cannot be accurately extracted. Therefore, in the embodiment of the application, in order to avoid the problem that the spliced screen cannot be accurately extracted due to insufficient discrimination of the spliced screen region and the background region, the spliced screen can be positioned according to the feature graphic card including the test graphic displayed by the spliced screen, and the color of the test graphic can be different from that of the feature graphic card and different from that of the pure color graphic card. Therefore, after the device for acquiring the brightness and the chromaticity of the screen acquires the image to be tested, the area of the test pattern can be acquired according to the color difference in the image to be tested, and the area of the sub-screen unit can be acquired according to the area of the test pattern. Specifically, the device for acquiring the brightness and the chromaticity of the screen may determine the detection parameter corresponding to each pixel point according to the measurement value of each pixel point in the image to be detected and a formula stored in advance.
It should be noted that, in the embodiment of the present application, the measured value may be a Red Green Blue (RGB) pixel value or a tristimulus value in the CIE color system. When the image to be measured is shot by a camera or a mobile phone and the like, the measured value is an RGB pixel value, and when the image to be measured is obtained by a color analyzer, the measured value is a tristimulus value in a CIE color system. In the embodiments of the present application, the details are described by taking RGB pixel values as an example. For the case where the measured value is the tristimulus value in the CIE color system, the same method may be adopted after converting the tristimulus value in the CIE color system into the RGB pixel value.
In addition, the pre-stored formula is used for highlighting the detection parameters corresponding to the pixel points of the test pattern according to the color of the test pattern. Illustratively, the formula can satisfy the requirement that the RGB pixel values of the pixel points are brought into the corresponding detection parameters obtained by the formula, and the larger value is the detection parameter obtained according to the RGB pixel values of the pixel points of the test pattern.
For example, assuming that the RGB pixel values of the pixel points are R, G, B respectively, and the detection parameter is X, when the background colors of the feature card and the pure color card are red, and the colors of the test pattern are blue and green, if the following formula (1) or formula (2) is used to calculate the detection parameter corresponding to the pixel point, the larger X is, the higher the possibility that the corresponding pixel point is a blue pixel point and a green pixel point is.
X=pow(max(max(B-max(G,R),G-max(R,B)),0),2) (1)
X=max(B-max(G,R),G-max(R,B)) (2)
Under the condition that the background colors of the feature chart card and the pure color chart card are green and the colors of the test patterns are blue and red, if the following formula (3) or formula (4) is adopted to calculate the detection parameters corresponding to the pixel points, the greater the X is, the greater the possibility that the corresponding pixel points are blue and red is, is.
X=pow(max(max(B-max(G,R),R-max(B,G)),0),2) (3)
X=max(B-max(G,R),R-max(B,G)) (4)
Under the condition that the background colors of the feature chart card and the pure color chart card are blue and the colors of the test pattern are red and green, if the following formula (5) or formula (6) is adopted to calculate the detection parameters corresponding to the pixel points, the greater the X is, the greater the possibility that the corresponding pixel points are the red and green pixel points is.
X=pow(max(max(R-max(G,B),G-max(R,B)),0),2) (5)
X=max(R-max(G,B),G-max(R,B)) (6)
Under the condition that the background colors of the feature chart card and the pure color chart card are white and the colors of the test pattern are red, blue and green, if the following formula (7) is adopted to calculate the detection parameters corresponding to the pixel points, the greater the X is, the greater the possibility that the corresponding pixel points are the red, blue and green pixel points is.
X=pow(max(max(max(R-max(G,B),G-max(R,B)),B-max(R,G)),0),2) (7)
303. And the device for collecting the brightness and the chromaticity of the screen determines the pixel points of which the detection parameters are greater than the target threshold value as the pixel points corresponding to the test pattern in the pixel points of the image to be tested.
304. And the device for collecting the brightness and the chromaticity of the screen determines the central position information of the test pattern according to the position information of the pixel points of the test pattern.
After the device for collecting the brightness and the chromaticity of the screen determines the pixel points of the test pattern, the central position information of the test pattern can be determined according to the position information of the pixel points of the test pattern, and the position information comprises a horizontal coordinate and a vertical coordinate. Specifically, because the test patterns in the image to be tested are distributed according to the array, and each feature card contains the same number of test patterns, the device for acquiring the brightness and the chromaticity of the screen can uniformly divide the pixel points of the obtained test patterns into pixel point sets in rows and columns according to the number of the pixel points included in the image to be tested, the test patterns in rows and columns and the number of the pixel points included in one test pattern, thereby determining the pixel points belonging to one test pattern, calculating the average value of the abscissa of all the pixel points in the pixel points belonging to one test pattern and the average value of the ordinate of all the pixel points, and obtaining the central position information of one test pattern.
It should be noted that, in the embodiment of the present application, the number of the pixel points included in one test pattern not only needs to ensure that the acquisition device can clearly shoot, but also needs to ensure that an enough distance is kept between adjacent test patterns, so as to facilitate distinguishing.
305. And the device for acquiring the brightness and the chromaticity of the screen determines the area information of the sub-screen unit where the pure-color image card is displayed in the image to be tested according to the central position information of the test pattern.
After the device for acquiring the brightness and the chromaticity of the screen determines the central position information of the test pattern, the device can determine the area information where the sub-screen unit displaying the pure color chart is located so as to acquire the brightness and the chromaticity information of the sub-screen unit displaying the pure color chart. The reason why the luminance and chrominance information of the sub-screen unit displaying the feature card is not collected is that if the luminance and chrominance information of the sub-screen unit displaying the feature card is collected, the information contains the information of the test card, and the information of the test card affects the uniformity correction of the luminance and chrominance of the spliced screen.
And the specific process of determining the area information where the sub-screen unit displaying the pure color chart is located by the device for collecting the screen brightness and the screen chromaticity is as follows: the device for acquiring the brightness and the chromaticity of the screen can connect the central positions of the test patterns in each row to obtain a plurality of horizontal straight lines, and connect the central positions of the test patterns in each column to obtain a plurality of vertical straight lines, and at the moment, a plurality of intersection points can be obtained by the intersection of the horizontal straight lines and the vertical straight lines. Because at least one sub-screen unit in each row of sub-screen units or each column of sub-screen units of the spliced screen displays the characteristic graphic card, K intersection points in each pure color graphic card are ensured. Therefore, the device for acquiring the brightness and the chromaticity of the screen can acquire the position information of K intersection points in the pure color chart, wherein the K intersection points are equivalent to the central position of a virtual test pattern in the pure color chart. And because the K test patterns in each feature card are respectively positioned at specific positions, the device for acquiring the brightness and the chromaticity of the screen can position the four vertexes of the sub-screen unit displaying the pure color card according to the position information of the K intersection points and the distance relationship between the central position of the stored test patterns and the boundary of the sub-screen unit, namely determine the area information of the sub-screen unit displaying the pure color card.
It should be noted that, in the embodiment of the present application, a graphic card includes K test patterns for determining the area information of the sub-screen unit on which the graphic card is displayed, and for convenience of calculation, the K test patterns are generally distributed in a matrix. For example, assume that K is 4 and assume that a test pattern includes 3x 3 pixels, as shown in fig. 4, which is a schematic diagram of the distribution of the test pattern in a feature card.
For another example, based on fig. 4, fig. 5 is a schematic diagram of the apparatus for acquiring screen brightness and chromaticity to determine the area information of the sub-screen unit on which the pure color chart is displayed. As shown in a in fig. 5, it is assumed that the tiled screen includes 3 rows and 3 columns of sub-screen units, and the sub-screen display displays the feature card and the pure color card in a checkerboard manner, which meets the requirement that at least one sub-screen unit in each row or column of sub-screen units displays the feature card, and each feature card includes 4 test patterns. As shown in fig. 5B, the device for acquiring screen brightness and chromaticity may connect the center positions of each row of test patterns to obtain a horizontal straight line, and connect the center positions of each column of test patterns to obtain a vertical straight line, where each pure color card includes 4 intersections where the horizontal straight line and the vertical straight line intersect.
Thus, the device for acquiring the brightness and the chromaticity of the screen can determine four vertexes of the sub-screen unit displaying the pure color chart card according to the 4 intersection points and the distance relationship between the central position of the test pattern and the boundary of the sub-screen unit, and assume that the height of one sub-screen unit is H and the width of the sub-screen unit is W, the distance from the central position of the upper left corner test pattern (for convenience of description, the test pattern is numbered as 1) to the upper edge of the sub-screen unit is 0.25H, and the distance from the central position of the upper left corner test pattern to the left edge of the sub-screen unit is 0.25W; the distance from the center position of the lower left corner test pattern (numbered as 2) to the lower edge of the ion screen unit is 0.25H, and the distance from the center position of the lower left corner test pattern to the left edge of the sub-screen unit is 0.25W; the distance from the center position of the upper right corner test pattern (numbered as 3) to the upper edge of the ion screen unit is 0.25H, and the distance from the center position of the upper right corner test pattern to the right edge of the sub-screen unit is 0.25W; the distance from the center position of the lower right corner test pattern (numbered 4) to the lower edge of the ion screen unit is 0.25H, the distance from the right edge of the sub-screen unit is 0.25W, and assuming that the coordinates of the center position of the test pattern 1 determined in step 304 are (1A, 1B), the coordinates of the center position of the test pattern 2 are (2A, 2B), the coordinates of the center position of the test pattern 3 are (3A, 3B), and the coordinates of the center position of the test pattern 4 are (4A, 4B), then according to the above parameters, the following formula (8) and formula (9) can be adopted to determine the coordinates of the four vertices of the sub-screen unit on which the pure color chart card is displayed, and are respectively set: the coordinates of the top left corner vertex are (1X, 1Y), the coordinates of the bottom left corner vertex are (2X, 2Y), the coordinates of the top right corner vertex are (3X, 3Y), and the coordinates of the bottom right corner vertex are (4X, 4Y), then there are:
Figure BDA0001602395900000121
Figure BDA0001602395900000122
it should be noted that, in the embodiment of the present application, if a photographed image is distorted due to an incorrect relative position during a photographing process, the device for acquiring screen brightness and chromaticity may perform analysis according to the obtained coordinates of the four vertices of the sub-screen unit, and perform corresponding correction processing, thereby further improving the accuracy of positioning.
306. The device for acquiring the brightness and the chromaticity of the screen acquires the brightness and the chromaticity information of the sub-screen unit displaying the pure color chart according to the region information of the sub-screen unit displaying the pure color chart.
After the device for acquiring the brightness and the chromaticity of the screen determines the four vertex coordinates of each sub-screen unit displaying the pure color chart, the device can acquire the brightness and the chromaticity information of each sub-screen unit displaying the pure color chart.
It should be noted that, after the steps 301 to 306 are executed, the device for acquiring the brightness and the chromaticity of the screen acquires only the brightness and the chromaticity information of a part of the sub-screen units, at this time, the device for acquiring the brightness and the chromaticity of the screen can acquire another image to be detected, the feature card and the pure color card displayed by the sub-screen unit in the image to be detected are opposite to each other displayed in the step 301, that is, the sub-screen unit displaying the feature card in the image to be detected in the step 301 displays the pure color card in the image to be detected, and the sub-screen unit displaying the pure color card in the image to be detected in the step 301 displays the feature card in the image to be detected, as shown in fig. 6, a in fig. 6 is the image to be detected in the step 301, and B in fig. 6 is another. Therefore, the device for collecting the brightness and the chromaticity of the screen can collect the brightness and the chromaticity information of the sub-screen unit which is displayed with the pure color chart in another image to be detected so as to obtain the brightness and the chromaticity information of all the sub-screen units of the spliced screen, analyze the brightness and the chromaticity information of all the sub-screen units to correct the uniformity of the spliced screen, and send the corrected parameters to the spliced screen, so that the spliced screen can compensate the brightness and the chromaticity of each sub-screen unit according to the corrected parameters.
And the device for acquiring the brightness and the chromaticity of the screen acquires the brightness and the chromaticity information of the sub-screen unit which displays the pure color chart in the other image to be detected, and the adopted modes are different in different scenes. Specifically, in a scene photographed by using a fixed camera, since the positioning information of the sub-screen units at the same position in each image to be measured is the same, the area information of the sub-screen unit on which the feature card is displayed may be determined at the same time when step 305 is executed, so that the luminance and chromaticity information of the sub-screen unit on which the pure color card is displayed at the corresponding position in another image to be measured may be collected according to the area information of the sub-screen unit on which the feature card is displayed, determined in step 305. In a scene shot by the handheld device, because the positioning information of the sub-screen units at the same position in each image to be detected is different, the device for acquiring the brightness and the chromaticity of the screen can execute steps 302-306 to acquire the brightness and the chromaticity information of the sub-screen unit in another image to be detected, wherein the sub-screen unit is displayed with a pure color chart.
In addition, in the embodiment of the present application, since the uniformity correction of the brightness and the chromaticity of the tiled screen at the current gray scale is performed, brightness and chromaticity information of all sub-screen units displaying the pure color graphics card of the tiled screen at the current gray scale, red, green, blue and white, needs to be acquired, so that the device for acquiring the brightness and the chromaticity of the screen can acquire four groups of images to be detected, each group of images to be detected includes two images of one color at the current gray scale, and the device for acquiring the brightness and the chromaticity of the screen can perform steps 302 to 306 for each group of images to be detected. For a group of red images to be tested under the current gray scale, the background colors of the characteristic image card and the pure color image card are red, and the colors of the test images are blue and green; for a group of green images to be tested under the current gray scale, the background colors of the characteristic image card and the pure color image card are green, and the colors of the test images are blue and red; for a group of blue images to be tested under the current gray scale, the background colors of the characteristic image card and the pure color image card are blue, and the colors of the test images are red and green; for a group of white images to be tested under the current gray scale, the background colors of the characteristic image card and the pure color image card are both white, and the colors of the test images are red, blue and green.
Optionally, because the uniformity of the brightness and the chromaticity of the spliced screen may be different under different gray scales, a plurality of characteristic gray scales may be selected, and for each characteristic gray scale, the device for acquiring the brightness and the chromaticity of the screen performs uniformity correction under the corresponding characteristic gray scale by acquiring the brightness and the chromaticity information of the sub-screen unit through executing steps 301 to 306, so as to obtain the compensation parameter. For the gray scale values between the characteristic gray scales, the corresponding compensation parameters can be calculated by adopting an interpolation mode.
Further, the device for acquiring the brightness and the chromaticity of the screen may determine the target threshold before determining the pixel point of which the detection parameter is greater than the target threshold as the pixel point corresponding to the test pattern. Specifically, with reference to fig. 3, as shown in fig. 7, before the step 303 is executed, the method for acquiring the brightness and the chromaticity of the screen according to the embodiment of the present application may further include the following steps 401 to 402:
401. and the device for acquiring the brightness and the chromaticity of the screen determines the fraction value of the alternative threshold according to the detection parameter corresponding to each pixel point.
After the device for acquiring the brightness and the chromaticity of the screen determines the detection parameters corresponding to each pixel point, the device for acquiring the brightness and the chromaticity of the screen can determine the target threshold value from the candidate threshold value interval by adopting a method of calculating the score value corresponding to the candidate threshold value according to the detection parameters. Wherein the alternative threshold interval comprises: all values from the minimum value of the detection parameter to the maximum value of the detection parameter are increased by a predetermined step. For example, for a red image to be detected under a current gray scale, assuming that the minimum value of the detection parameters determined by the device for acquiring the screen brightness and the chromaticity is 0, the maximum value is 100, and the value range of the pixel point is 0 to 255, at this time, the candidate threshold interval includes: 0,100/255 Horn 1, 100/255 Horn 2, 100/255 Horn 3, 100/255 Horn 4.. 100/255 Horn 255 ═ 100, wherein the predetermined step size is 100/255.
Taking an alternative threshold as an example, the specific process of determining the fraction value of the alternative threshold by the device for acquiring the brightness and the chromaticity of the screen is as follows: the device for collecting screen brightness and chromaticity determines pixel points of images to be tested, wherein the pixel points of which the detection parameters are larger than the alternative threshold value, as pixel points of test patterns, and according to the pixel points of the test patterns, denoising and linear fitting are carried out on a first line of test patterns in the test patterns to obtain a first horizontal straight line, wherein the first horizontal straight line is a straight line passing through the center position of the first line of test patterns, denoising and linear fitting are carried out on a last line of test patterns to obtain a second horizontal straight line, and the second horizontal straight line is a straight line passing through the center position of the last line of test patterns. Therefore, the device for acquiring the brightness and the chromaticity of the screen can determine all horizontal straight lines passing through each row of test patterns between the first horizontal straight line and the second horizontal straight line according to the first horizontal straight line, the second horizontal straight line and the number of each column of test patterns, obtain the distance between the adjacent horizontal straight lines, and then determine the line separation line between the test patterns according to half of the distance between the adjacent horizontal straight lines. Similarly, the device for acquiring the brightness and the chromaticity of the screen can perform denoising and linear fitting on a first column of test patterns in the test patterns to obtain a first vertical straight line, perform denoising and linear fitting on a last column of test patterns to obtain a second vertical straight line, and determine column separation lines between the test patterns according to the first vertical straight line, the second vertical straight line and the number of each row of test patterns. After determining the row and column separation lines, the row and column separation lines intersect to form at least one grid.
Illustratively, fig. 8 is a schematic diagram of the determination of the row and column separation lines by the device for acquiring the brightness and chromaticity of the screen. As shown in a in fig. 8, after determining pixel points of the test pattern, the device for acquiring screen brightness and chromaticity obtains a first horizontal straight line and a second horizontal straight line, and obtains 4 rows of test patterns between the first horizontal straight line and the second horizontal straight line according to the number of 6 test patterns in each row, and divides the distance between the first horizontal straight line and the second horizontal straight line by 5 to obtain the distance between adjacent horizontal straight lines, and translates the first horizontal straight line by half of the distance between adjacent horizontal straight lines to obtain a row dividing line between the test patterns, and so on to obtain all row dividing lines, and similarly obtains all column dividing lines to obtain a grid shown as B in fig. 8.
The device for collecting screen brightness and chromaticity can count at least one grid after determining a trip separation line and a row separation line, the number of pixel points in each grid containing the pixel points of the test pattern, the total amount of the pixel points of the test pattern and the grid number of the pixel points containing the test pattern, and the total amount of the pixel points of the test pattern is calculated to be divided by the grid number of the pixel points containing the test pattern, so as to obtain an average value, and the difference value between the average value and the number of the pixel points in each grid containing the pixel points of the test pattern is calculated, and the maximum difference value in all the difference values is taken as a target difference value, at the moment, the score line corresponding to the alternative threshold value is as follows: 1-target difference/average value, wherein the smaller the ratio of the target difference to the average value is, the more uniform the distribution of the pixel points of the test pattern is, i.e. the larger the score value is, the more reasonable the corresponding alternative threshold value is.
It should be noted that, in the embodiment of the present application, in order to prevent the occurrence of a situation where a larger score value is obtained by coincidence, a minimum threshold of the average value may be defined in advance in the device for acquiring the screen brightness and the screen chromaticity, and a minimum threshold of the vertical distance and the horizontal distance of the grid may be defined at the same time.
402. And the device for acquiring the brightness and the chromaticity of the screen determines the alternative threshold value with the score value larger than the preset value as the target threshold value in the alternative threshold values included in the alternative threshold value interval.
After the device for acquiring the screen brightness and the screen chromaticity determines the score values corresponding to all the candidate threshold values, the candidate threshold value of which the score value is greater than the preset value in the candidate threshold values can be determined as the target threshold value, and the candidate threshold value of which the score value is the largest can also be determined as the target threshold value.
According to the method for acquiring the brightness and the chromaticity of the screen, after the device for acquiring the brightness and the chromaticity of the screen acquires the image to be tested containing the spliced screen under the current gray scale, the pixel point of the test pattern can be determined according to the color difference between the test pattern and the background in the image to be tested, the central position information of the test pattern is determined according to the pixel point of the test pattern, then the area information of the sub-screen unit displaying the pure color graphic card is determined according to the central position information of the test pattern, and the brightness and the chromaticity information of the sub-screen unit are acquired. Therefore, before the brightness and the chromaticity of the sub-screen unit are collected, the area information of the sub-screen unit can be determined through the test graph, so that the automatic collection of the brightness and the chromaticity is realized, and the problems of low efficiency and low accuracy when the areas where the sub-screen units are located are manually positioned are solved.
The scheme provided by the embodiment of the application is mainly introduced from the perspective of a device for acquiring the brightness and the chromaticity of a screen. It is understood that the device for acquiring the brightness and the chromaticity of the screen comprises a hardware structure and/or a software module for executing the corresponding functions in order to realize the functions. Those of skill in the art will readily appreciate that the present invention can be implemented in hardware or a combination of hardware and computer software, in conjunction with the exemplary algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiment of the present application, the device for acquiring the screen brightness and the screen chromaticity may be divided into the functional modules according to the method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation.
In the case of dividing each functional module by corresponding functions, fig. 9 shows another possible composition diagram of the apparatus for acquiring screen brightness and chrominance in the above embodiment, as shown in fig. 9, the apparatus for acquiring screen brightness and chrominance may include: an acquisition unit 51, a determination unit 52 and an acquisition unit 53.
Wherein, the obtaining unit 51, the device for supporting collecting screen brightness and chrominance performs step 301 in the method for collecting screen brightness and chrominance shown in fig. 3.
The determining unit 52, the device for supporting the acquisition of the screen brightness and the chromaticity, executes the steps 302, 303, 304 and 305 in the method for acquiring the screen brightness and the chromaticity shown in fig. 3, and the steps 401 and 402 in the method for acquiring the screen brightness and the chromaticity shown in fig. 4.
The acquisition unit 53, the device for supporting acquisition of the screen brightness and the chrominance, executes step 306 in the method for acquiring the screen brightness and the chrominance shown in fig. 3.
Further, in this embodiment of the present application, as shown in fig. 10, the apparatus for acquiring screen brightness and chromaticity may further include: a statistical unit 54 and a calculation unit 55.
The statistical unit 54 is configured to support the device for collecting screen brightness and chromaticity to perform statistics on the number of pixels in each grid including pixels of the test pattern, the total number of pixels of the test pattern, and the number of grids including pixels of the test pattern in the method for collecting screen brightness and chromaticity shown in fig. 4.
The calculating unit 55 is configured to support the device for acquiring the screen brightness and the chromaticity to perform the calculation of the total number of the pixels of the test pattern divided by the number of the grids including the pixels of the test pattern in the method for acquiring the screen brightness and the chromaticity shown in fig. 3, so as to obtain an average value, and calculate a difference value between the average value and the number of the pixels in each grid including the pixels of the test pattern.
It should be noted that all relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
The device for acquiring the screen brightness and the screen chromaticity provided by the embodiment of the application is used for executing the method for acquiring the screen brightness and the screen chromaticity, so that the same effect as that of the method for acquiring the screen brightness and the screen chromaticity can be achieved.
Fig. 11 shows another possible schematic composition diagram of the device for acquiring screen brightness and chromaticity in the above embodiment, in the case of using an integrated unit. As shown in fig. 11, the apparatus for acquiring screen brightness and chrominance includes: a processing module 61 and a communication module 62.
The processing module 61 is used for controlling and managing actions of the device for acquiring the screen brightness and the chromaticity, for example, the processing module 61 is used for enabling the device for acquiring the screen brightness and the chromaticity to execute the steps 301, 302, 303, 304, 305, 306 in fig. 3, 401, 402 in fig. 4, and/or other processes for the technology described herein. The communication module 62 is used to support the communication between the device for collecting screen brightness and chromaticity and other network entities, such as collecting equipment and a spliced screen. The means for capturing screen brightness and chromaticity may further comprise a storage module 63 for storing program codes and data of the means for capturing screen brightness and chromaticity.
The processing module 61 may be the processor in fig. 2. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. A processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, a DSP and a microprocessor, or the like. The communication module 62 may be the communication interface in fig. 2. The storage module 63 may be the memory of fig. 2.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical functional division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another device, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, that is, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partially contributed to by the prior art, or all or part of the technical solutions may be embodied in the form of a software product, where the software product is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only an embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions within the technical scope of the present invention are intended to be covered by the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. A method for collecting screen brightness and chrominance, the method comprising:
acquiring an image to be detected, wherein the image to be detected comprises an image of the spliced screen under the current gray scale; the spliced screen comprises M rows and N columns of sub-screen units, M and N are integers greater than or equal to 2, the sub-screen units comprise sub-screen units displaying feature graphic cards and sub-screen units displaying pure color graphic cards, and at least one sub-screen unit in each row of sub-screen units or each column of sub-screen units displays the feature graphic cards; the characteristic graph card comprises K test graphs, K is an integer greater than or equal to 4, and the test graphs are used for determining the area information of the sub-screen unit; the background color of the characteristic graph card is different from the color of the test graph, and the background color of the pure color graph card is different from the color of the test graph; the test patterns in the image to be tested are distributed according to an array, and each feature graphic card comprises the same number of test patterns;
determining a detection parameter corresponding to each pixel point according to the measured value of each pixel point in the image to be detected;
determining pixel points of the to-be-tested image, of which the detection parameters are larger than a target threshold value, as pixel points corresponding to the test pattern;
determining the central position information of the test pattern according to the position information of the pixel points of the test pattern;
determining the area information of the sub-screen unit where the pure-color image card is displayed in the image to be detected according to the central position information;
and acquiring the brightness and chromaticity information of the sub-screen unit on which the pure color chart is displayed according to the region information.
2. The method according to claim 1, wherein the determining, according to the center position information, the area information where the sub-screen unit of the solid color chart is displayed in the image to be tested comprises:
connecting the central positions of the test patterns in each row to obtain a horizontal straight line, and connecting the central positions of the test patterns in each column to obtain a vertical straight line;
acquiring the position information of the intersection point of the horizontal straight line and the vertical straight line in the pure color chart;
and determining the area information where the sub-screen unit of the pure color chart is displayed according to the position information of the intersection point in the pure color chart.
3. The method of claim 2, wherein the position information of the pixel points of the test pattern comprises an abscissa and an ordinate, and the determining the center position information of the test pattern according to the position information of the pixel points of the test pattern comprises:
determining pixel points belonging to a test pattern;
and calculating the average value of the abscissa and the average value of the ordinate of all the pixel points belonging to one test pattern, and determining the average value of the abscissa and the average value of the ordinate as the central position information of the one test pattern.
4. The method according to any one of claims 1 to 3, wherein before determining, among the pixel points of the image to be tested, the pixel point of which the detection parameter is greater than the target threshold as a pixel point corresponding to a test pattern, the method further comprises:
determining pixel points of the to-be-tested image, of which the detection parameters are larger than the alternative threshold value, as pixel points of the test pattern; wherein the candidate threshold belongs to any value in a candidate threshold interval, and the candidate threshold interval includes: all values from the minimum value of the detection parameter to the maximum value of the detection parameter according to a preset step length;
determining a row separation line and a column separation line between the test patterns according to pixel points of the test patterns, wherein the row separation line and the column separation line are intersected to form at least one grid;
counting the number of pixel points in each grid containing the pixel points of the test pattern in the at least one grid;
calculating an average value, wherein the average value is the number of the pixel points of the test pattern divided by the number of grids of all the pixel points containing the test pattern;
calculating the difference value between the average value and the number of pixel points in each grid containing the pixel points of the test pattern, and determining the maximum difference value in all the difference values as a target difference value;
determining a score value corresponding to the alternative threshold according to the target difference value and the average value;
and determining the candidate threshold value with the fraction value larger than a preset value in the candidate threshold values included in the candidate threshold value interval as the target threshold value.
5. The method of claim 4, wherein determining the row and column separation lines between the test patterns according to the pixel points of the test patterns comprises:
according to the pixel points of the test patterns, denoising and linearly fitting a first row of test patterns in the test patterns to obtain a first horizontal straight line, and denoising and linearly fitting a last row of test patterns to obtain a second horizontal straight line;
denoising and linearly fitting a first row of test patterns in the test patterns to obtain a first vertical straight line, and denoising and linearly fitting a last row of test patterns to obtain a second vertical straight line;
determining the line separation lines among the test patterns according to the first horizontal straight line, the second horizontal straight line and the number of the test patterns in each column of the image to be tested;
and determining the column separation lines among the test patterns according to the first vertical straight line, the second vertical straight line and the number of the test patterns in each row in the image to be tested.
6. An apparatus for collecting screen brightness and chrominance, the apparatus comprising: the device comprises an acquisition unit, a determination unit and an acquisition unit;
the acquisition unit is used for acquiring an image to be detected, and the image to be detected comprises an image of the spliced screen under the current gray scale; the spliced screen comprises M rows and N columns of sub-screen units, M and N are integers greater than or equal to 2, the sub-screen units comprise sub-screen units displaying feature graphic cards and sub-screen units displaying pure color graphic cards, and at least one sub-screen unit in each row of sub-screen units or each column of sub-screen units displays the feature graphic cards; the characteristic graph card comprises K test graphs, K is an integer greater than or equal to 4, and the test graphs are used for determining the area information of the sub-screen unit; the background color of the characteristic graph card is different from the color of the test graph, and the background color of the pure color graph card is different from the color of the test graph; the test patterns in the image to be tested are distributed according to an array, and each feature graphic card comprises the same number of test patterns;
the determining unit is used for determining a detection parameter corresponding to each pixel point according to the measured value of each pixel point in the image to be detected, which is obtained by the obtaining unit; determining pixel points of the to-be-tested image, of which the detection parameters are larger than a target threshold value, as pixel points corresponding to the test pattern; determining the central position information of the test pattern according to the position information of the pixel points of the test pattern; determining the area information of the sub-screen unit where the pure-color image card is displayed in the image to be detected according to the central position information;
and the acquisition unit is used for acquiring the brightness and chromaticity information of the sub-screen unit on which the pure color chart card is displayed according to the area information determined by the determination unit.
7. The apparatus according to claim 6, wherein the determining unit is specifically configured to:
connecting the central positions of the test patterns in each row to obtain a horizontal straight line, and connecting the central positions of the test patterns in each column to obtain a vertical straight line;
acquiring the position information of the intersection point of the horizontal straight line and the vertical straight line in the pure color chart;
and determining the area information where the sub-screen unit of the pure color chart is displayed according to the position information of the intersection point in the pure color chart.
8. The apparatus according to claim 7, wherein the position information of the pixel points of the test pattern includes an abscissa and an ordinate, and the determining unit is specifically configured to:
determining pixel points belonging to a test pattern;
and calculating the average value of the abscissa and the average value of the ordinate of all the pixel points belonging to one test pattern, and determining the average value of the abscissa and the average value of the ordinate as the central position information of the one test pattern.
9. The apparatus of any of claims 6-8, wherein the means for acquiring screen brightness and chromaticity further comprises: a counting unit and a calculating unit;
the determining unit is further configured to determine, as the pixel point of the test pattern, a pixel point of the to-be-tested image, where the detection parameter is greater than the candidate threshold; wherein the candidate threshold belongs to any value in a candidate threshold interval, and the candidate threshold interval includes: all values from the minimum value of the detection parameter to the maximum value of the detection parameter according to a preset step length; determining a row separation line and a column separation line between the test patterns according to pixel points of the test patterns, wherein the row separation line and the column separation line are intersected to form at least one grid;
the statistical unit is used for counting the number of pixel points in each grid containing the pixel points of the test pattern in the at least one grid;
the calculation unit is used for calculating an average value, wherein the average value is the number of the pixel points of the test pattern divided by the number of grids of all the pixel points containing the test pattern; calculating the difference value between the average value and the number of pixel points in each grid containing the pixel points of the test pattern;
the determining unit is further configured to determine a maximum difference value of all difference values as a target difference value; determining a score value corresponding to the alternative threshold according to the target difference value and the average value; and determining the candidate threshold value with the fraction value larger than a preset value in the candidate threshold values included in the candidate threshold value interval as the target threshold value.
10. The apparatus according to claim 9, wherein the determining unit is specifically configured to:
according to the pixel points of the test patterns, denoising and linearly fitting a first row of test patterns in the test patterns to obtain a first horizontal straight line, and denoising and linearly fitting a last row of test patterns to obtain a second horizontal straight line;
denoising and linearly fitting a first row of test patterns in the test patterns to obtain a first vertical straight line, and denoising and linearly fitting a last row of test patterns to obtain a second vertical straight line;
determining the line separation lines among the test patterns according to the first horizontal straight line, the second horizontal straight line and the number of the test patterns in each column of the image to be tested;
and determining the column separation lines among the test patterns according to the first vertical straight line, the second vertical straight line and the number of the test patterns in each row in the image to be tested.
CN201810229789.6A 2018-03-20 2018-03-20 Method and device for collecting screen brightness and chromaticity Active CN108470334B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810229789.6A CN108470334B (en) 2018-03-20 2018-03-20 Method and device for collecting screen brightness and chromaticity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810229789.6A CN108470334B (en) 2018-03-20 2018-03-20 Method and device for collecting screen brightness and chromaticity

Publications (2)

Publication Number Publication Date
CN108470334A CN108470334A (en) 2018-08-31
CN108470334B true CN108470334B (en) 2020-10-30

Family

ID=63264539

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810229789.6A Active CN108470334B (en) 2018-03-20 2018-03-20 Method and device for collecting screen brightness and chromaticity

Country Status (1)

Country Link
CN (1) CN108470334B (en)

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111238119A (en) * 2018-11-28 2020-06-05 宁波泽锦电器科技有限公司 Desk type freezer based on food sufficiency detection
CN109473077A (en) * 2018-12-25 2019-03-15 惠科股份有限公司 Display panel driving method and system and display device
CN109819245B (en) * 2019-01-24 2020-10-02 武汉精立电子技术有限公司 On-line measuring method and device for chroma and brightness data based on AOI platform
CN109919933B (en) * 2019-03-08 2023-08-29 歌尔光学科技有限公司 VR device, picture detection method and device thereof, and computer-readable storage medium
CN112118428B (en) * 2019-06-19 2022-08-26 海信视像科技股份有限公司 Image processing method and device and laser television
CN110225336B (en) * 2019-06-21 2022-08-26 京东方科技集团股份有限公司 Method and device for evaluating image acquisition precision, electronic equipment and readable medium
CN110769232B (en) * 2019-08-12 2021-09-28 成都极米科技股份有限公司 Brightness detection method, device and system of ultra-short focus projector
CN111445455B (en) * 2020-03-26 2023-04-07 北京润科通用技术有限公司 Image acquisition method and device
CN111402827B (en) * 2020-04-01 2022-06-14 浙江宇视科技有限公司 LCD spliced screen correction method, device and system and control system
CN112232345B (en) * 2020-10-10 2022-10-04 安徽淘云科技股份有限公司 Configuration information determination and image effective area extraction method and device
CN112348905B (en) * 2020-10-30 2023-12-19 深圳市优必选科技股份有限公司 Color recognition method and device, terminal equipment and storage medium
CN113453069B (en) * 2021-06-18 2022-11-11 海信视像科技股份有限公司 Display device and thumbnail generation method
CN114025095B (en) * 2021-11-10 2024-07-02 维沃移动通信有限公司 Brightness adjustment method and device and electronic equipment
CN113870727A (en) * 2021-11-11 2021-12-31 深圳市芯智科技有限公司 Display adjusting method and device of spliced screen, computer equipment and storage medium
CN115049747B (en) * 2022-08-16 2022-11-01 深圳市华汉伟业科技有限公司 Chromaticity measurement method and system of high dynamic range screen
CN116091392B (en) * 2022-08-16 2023-10-20 荣耀终端有限公司 Image processing method, system and storage medium
CN116229856B (en) * 2023-05-10 2023-07-28 山西晋聚轩科技有限公司 Automatic control screen detection system and method for computer
CN117054052B (en) * 2023-08-16 2024-04-05 昆山迈致治具科技有限公司 Screen brightness testing device, assembly method and testing method
CN116777910B (en) * 2023-08-18 2023-11-28 武汉精立电子技术有限公司 Display screen sub-pixel brightness extraction precision evaluation method and system and electronic equipment
CN117116173B (en) * 2023-10-25 2024-01-16 深圳市汇宝翔科技有限公司 Quality detection method of liquid crystal display screen

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105336286A (en) * 2014-07-29 2016-02-17 杭州海康威视数字技术股份有限公司 Spliced screen color adjusting method and device
CN107515669B (en) * 2016-06-17 2021-01-29 北京小米移动软件有限公司 Display method and device
CN106782429B (en) * 2016-12-30 2019-09-17 上海顺久电子科技有限公司 Eliminate the method and device of screen inhomogeneities
CN107221306B (en) * 2017-06-29 2019-07-16 上海顺久电子科技有限公司 The method, apparatus and display equipment of brightness of image in correction splicing device screen
CN107749268B (en) * 2017-10-27 2021-06-29 歌尔光学科技有限公司 Screen detection method and equipment

Also Published As

Publication number Publication date
CN108470334A (en) 2018-08-31

Similar Documents

Publication Publication Date Title
CN108470334B (en) Method and device for collecting screen brightness and chromaticity
CN108234824B (en) Shadow correction detection parameter determination method, shadow correction detection device, storage medium and fisheye camera
CN105678700B (en) Image interpolation method and system based on prediction gradient
CN111564131B (en) Gamma debugging method and device
US20150009226A1 (en) Color chart detection apparatus, color chart detection method, and color chart detection computer program
CN111031311B (en) Imaging quality detection method and device, electronic equipment and readable storage medium
CN113126937B (en) Display terminal adjusting method and display terminal
CN108074237B (en) Image definition detection method and device, storage medium and electronic equipment
CN109920004A (en) Image processing method, device, the combination of calibration object, terminal device and calibration system
EP4220547A1 (en) Method and apparatus for determining heat data of global region, and storage medium
CN115049658B (en) RGB-D camera quality detection method, electronic device and storage medium
CN111383254A (en) Depth information acquisition method and system and terminal equipment
CN113014908A (en) Image detection method, device and system and computer readable storage medium
CN111163301A (en) Color adjustment method, device and computer readable storage medium
CN112927307A (en) Calibration method, calibration device, electronic equipment and storage medium
CN113989392A (en) Color chessboard calibration method and device of splicing camera and camera
CN115065814B (en) Screen color accuracy detection method and device
CN117392161B (en) Calibration plate corner point for long-distance large perspective distortion and corner point number determination method
CN111768396B (en) Distortion measurement method and device for virtual display equipment
KR20120015980A (en) Method, system and computer program product for object color correction
CN109323691B (en) Positioning system and positioning method
CN111226437A (en) Method and device for evaluating shooting quality of shooting device and terminal equipment
CN115334247A (en) Camera module calibration method, visual positioning method and device and electronic equipment
CN114078094A (en) Image edge brightness correction method, device and system
CN111551346A (en) Method, device and system for measuring field angle and computer storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant