Cursor Color Determination Method, Device, PG Device and Storage Medium

By determining the coordinates of the cursor intersection point and obtaining pixel color data, the problem of low testing efficiency and accuracy caused by the fixation of cross-line color in the prior art is solved, and the accurate detection of the bad points or defect positions of the display screen is achieved.

CN114428576BActive Publication Date: 2025-05-30BEIJING MEGAROBO TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111567197.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-20
Publication Date
2025-05-30
Estimated Expiration
2041-12-20

AI Technical Summary

Technical Problem

In the prior art, the color of the crosshair is fixed, which makes it difficult for technicians to accurately determine the location of the bad points or defects on the display screen when the background color of the screen to be tested is largely different, resulting in low testing efficiency and accuracy.

Method used

By determining the intersection coordinates of the cursor, the original pixel color data of the target area is obtained, and the pixel color data of the cursor is determined based on these data, so as to clearly distinguish the background color and cursor color of the dot screen picture.

Benefits of technology

It realizes the ability of technicians to accurately determine the location of bad points or defects on the display screen, and improves testing efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114428576B_ABST
    Figure CN114428576B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention provides a method, device, processor, and storage medium for controlling dynamic change of cursor color. The method includes: determining coordinates at which an intersection point of the cursor is displayed on a display module to be tested; determining a target area as a preset area around the intersection point in a test picture according to the coordinates; obtaining original pixel color data of the target area; and determining pixel color data of the cursor according to the original pixel color data. The above technical solution can clearly distinguish the background color of the dot screen picture displayed on the screen to be tested and the color of the cursor, so that technicians can accurately determine the positions of dead pixels or defects existing on the display screen, thereby improving the test efficiency and test accuracy for the screen to be tested.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of device testing, and particularly to a method and device for determining the cursor color, a PG device, and a storage medium. Background Art

[0002] After the device is produced, it needs to be further tested to ensure the quality of the device. For a display screen, more precise testing is required to avoid bad points or defective points on the display screen. When testing the screen to be tested, technicians often use a crosshair as an aid and determine the bad points or defective positions on the display screen by the naked eye. In the prior art, the color of the crosshair is usually a fixed value. In the actual testing process, if the background color of the dot screen picture displayed on the screen to be tested and the color of the crosshair are not very different, it is not easy for technicians to view and determine the intersection position of the crosshair by visual observation, and thus it is impossible to accurately determine the positions of bad points or defects on the display screen, resulting in low testing efficiency and testing accuracy for the screen to be tested. Summary of the Invention

[0003] The purpose of the embodiments of the present invention is to provide a method and device for determining the cursor color, a PG device, and a storage medium.

[0004] To achieve the above purpose, the first aspect of the present invention provides a method for determining the cursor color, and the method includes:

[0005] Determine the coordinates of the intersection of the cursor displayed on the display module to be tested;

[0006] Determine the target area as the preset area around the intersection of the cursor in the test picture according to the coordinates;

[0007] Obtain the original pixel color data of the target area;

[0008] Determine the pixel color data of the cursor according to the original pixel color data.

[0009] Optionally, the cursor is a cross cursor, and the target area includes at least one of the preset area near the intersection of the cursor, the row and column where the cursor is located, and the display area of the coordinates.

[0010] Optionally, before obtaining the original pixel color data of the target area, it further includes: obtaining and saving the original pixel color data of the test picture; obtaining the original pixel color data of the target area includes: obtaining the original pixel color data of the currently displayed test picture; determining the original pixel color data of the target area from the original pixel color data of the currently displayed test picture.

[0011] Optionally, determining the pixel color data of the cursor based on the original pixel color data includes: determining the average value corresponding to each color pixel according to the original pixel color data of each color pixel of all pixels corresponding to the target area in the test picture; determining the pixel color data of the color pixel corresponding to the cursor according to the average value of each color pixel.

[0012] Optionally, determining the pixel color data of the color pixel corresponding to the cursor according to the average value of each color pixel includes: determining the pixel color data of the color pixel corresponding to the cursor according to the average value of each color pixel and a preset formula, where the preset formulas corresponding to any two color pixels are different.

[0013] Optionally, determining the coordinates at which the intersection point of the cursor is displayed on the display module to be tested includes: obtaining a movement instruction of a pointer for a preset display interface; determining the pointer coordinates of the pointer on the preset display interface in real time or at a preset interval in response to the movement instruction; determining the intersection point coordinates of the corresponding cursor on the display module to be tested according to the determined pointer coordinates and a preset calculation relationship.

[0014] Optionally, determining the coordinates at which the intersection point of the cursor is displayed on the display module to be tested includes: obtaining a coarse adjustment movement instruction of a pointer for a preset display interface; determining the pointer coordinates of the pointer on the preset display interface in response to the coarse adjustment movement instruction; determining the corresponding coordinates on the display module to be tested according to the pointer coordinates determined by the coarse adjustment and a coarse adjustment preset calculation relationship as the intersection point coordinates of the cursor, where the coarse adjustment preset calculation relationship is: the movement distance of the cursor corresponding to the unit movement distance of the pointer is greater than a first preset value.

[0015] Optionally, determining the coordinates at which the intersection point of the cursor is displayed on the display module to be tested includes: obtaining a fine adjustment movement instruction of a pointer for a preset display interface; determining the pointer coordinates of the pointer on the preset display interface in response to the fine adjustment movement instruction; determining the corresponding coordinates on the display module to be tested according to the pointer coordinates determined by the fine adjustment and a fine adjustment preset calculation relationship, where the preset calculation relationship is that the coarse adjustment preset calculation relationship is: the movement distance of the cursor corresponding to the unit movement distance of the pointer is less than a second preset value.

[0016] Optionally, determining the pointer coordinates of the pointer on the preset display interface in response to the fine adjustment movement instruction includes: determining the pointer coordinates of the pointer on a second preset display interface in response to the fine adjustment movement instruction; determining the pointer coordinates of the pointer on the preset display interface according to the pointer coordinates of the pointer on the second preset display interface, where the second preset display interface is larger than the preset display interface.

[0017] A second aspect of the present invention provides a cursor color determination device, including:

[0018] An intersection point coordinate determination module of the cursor, configured to determine the coordinates at which the intersection point of the cursor is displayed on the display module to be tested;

[0019] A target area determination module, configured to determine a preset area around an intersection point in a test picture as a target area according to coordinates;

[0020] A cursor color determination module, configured to obtain original pixel color data of the target area and determine pixel color data of the cursor according to the original pixel color data.

[0021] A third aspect of the present invention provides a PG device, including:

[0022] The above-mentioned cursor color determination device, configured to send the intersection coordinates of the cursor and the pixel color data of the cursor to a control output device;

[0023] A control output device, configured to control and output a data stream of a test picture with a cursor having a color corresponding to the pixel color data to a display module to be tested according to the obtained intersection coordinates and the pixel color data of the cursor.

[0024] A fourth aspect of the present invention provides a machine-readable storage medium, on which instructions are stored, and when the instructions are executed by a processor, the processor is configured to execute the above-mentioned cursor color determination method.

[0025] Through the above technical solutions, the background color of the dot matrix picture displayed on the screen to be tested and the color of the cursor can be clearly distinguished, so that technicians can accurately determine the positions of dead pixels or defects on the display screen, thereby improving the test efficiency and test accuracy for the screen to be tested.

[0026] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent specific implementation part. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The drawings are used to provide a further understanding of the embodiments of the present invention, and constitute a part of the specification, and are used to explain the embodiments of the present invention together with the following specific implementation manners, but do not constitute a limitation to the embodiments of the present invention. In the drawings:

[0028] Figure 1 Schematically shows a flowchart of a cursor color determination method according to an embodiment of the present invention;

[0029] Figure 2 Schematically shows a structural block diagram of a cursor color determination device according to an embodiment of the present invention;

[0030] Figure 3 Schematically shows a structural block diagram of a PG device according to an embodiment of the present invention;

[0031] Figure 4Schematically shows the internal structure diagram of a computer device according to an embodiment of the present invention. Detailed implementation manners

[0032] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It should be understood that the specific implementation manners described herein are only used to illustrate and explain the embodiments of the present invention, and are not used to limit the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of protection of the present invention.

[0033] Figure 1 Schematically shows a flowchart of a cursor color determination method according to an embodiment of the present invention. As Figure 1 shown, in an embodiment of the present invention, a cursor color determination method is provided, including the following steps:

[0034] Step 101, determine the coordinates of the intersection point of the cursor displayed on the display module to be tested.

[0035] Step 102, determine the target area as the preset area around the intersection point in the test picture according to the coordinates.

[0036] Step 103, obtain the original pixel color data of the target area.

[0037] Step 104, determine the pixel color data of the cursor according to the original pixel color data.

[0038] During the test, the display screen and the display module to be tested synchronously display the same test picture, and there are multiple test pictures that can be switched to achieve different tests. Among them, the cursor can be a cross cursor. The PG device (which can include a host computer system and a PG signal generator) can first determine the coordinates of the intersection point of the cursor on the display module to be tested. Then, the target area can be determined as the preset area around the intersection point of the cursor in the test picture according to the coordinates of the intersection point of the cursor. Further, the target area can include at least one of the preset area near the intersection point of the cursor, the row and column where the cursor is located, and the display area of the coordinates of the cursor. Specifically, the width and height range of the display area of the coordinates of the cursor can be specifically set according to the actual situation. For example, it can be 270 ppi × 100 ppi; the width and height range of the preset area near the intersection point of the cursor can be 100 ppi × 100 ppi. The original pixel color data refers to the original data of the sub-pixels (R, G, and B values, also called color components) of each pixel. Preferably, the preset area near the cursor intersection point is a square, rectangle, circle, etc. area with the intersection point as the center point.

[0039] In one embodiment, determining the coordinates of the intersection point of the cursor displayed on the display module to be measured includes: obtaining a movement instruction of a pointer for a preset display interface; responding to the movement instruction in real time or at a preset interval to determine the pointer coordinates of the pointer on the preset display interface; and determining the intersection point coordinates of the corresponding cursor on the display module to be measured according to the determined pointer coordinates and a preset calculation relationship.

[0040] The execution subject of the above cursor color determination method can be a host computer system. The host computer can refer to a computer that directly issues control instructions, generally the user's computer. The host computer can communicate with a lower computer (PG signal generator), and the lower computer can be connected to the screen to be measured through a connection line, so as to control the screen to be measured. At this time, the preset display interface can be the preset display interface of the host computer system. Of course, the execution subject of the above cursor color determination method can also be a control box independent of the PG signal generator, and the preset display interface is the display interface of the control box. Technicians can control the mouse to move on the preset display interface to control the movement of the cursor on the display module to be measured. During the movement of the mouse, the host computer system can send the intersection point coordinates of the cursor to the PG signal generator in real time, and the coordinates are the coordinates of the intersection point of the cursor displayed on the display module to be measured. Of course, in practical applications, the execution subject of the above cursor color determination method is also the PG signal generator. The PG signal generator is directly connected to the display module to be measured, and the movement of the cursor on the display module to be measured is controlled by the movement of the pointer on the preset display interface displayed on the PG signal generator.

[0041] When the PG device tests the display module to be measured, the PG device needs to determine the coordinates of the cursor on the display module to be measured at each moment to further control the movement of the cursor displayed on the display module to be measured. In this embodiment, the user can operate on the host computer system connected to the PG device to change the cursor coordinates. For example, input the initial cursor coordinates on the host computer system and control the coordinate movement, or control the cursor to move on the display interface of the host computer system through an external device such as a mouse of the host computer system to change the cursor coordinates; of course, in practical applications, an external input device connected to the PG device can also be used, for example, a control box. The initial cursor coordinates can be directly input on the control box and the cursor can be controlled to move. Of course, the control box can also have a display screen, and the user can operate on the display screen to change the cursor coordinates.

[0042] Considering processing efficiency, after obtaining a movement instruction for a pointer on a preset display interface, the movement instruction can be responded to in real time to determine the pointer coordinates of the pointer on the preset display interface, or the movement instruction can be responded to at a preset interval to determine the pointer coordinates of the pointer on the preset display interface. Among them, the pointer coordinates and the preset calculation relationship can calculate the intersection coordinates of the cursor mapped on the to-be-tested screen according to the proportional relationship between the length and width of the preset display interface and the length and width of the resolution of the to-be-tested screen.

[0043] In one embodiment, determining the coordinates at which the intersection of the cursor is displayed on the to-be-tested display module includes: obtaining a coarse adjustment movement instruction for a pointer on a preset display interface; responding to the coarse adjustment movement instruction to determine the pointer coordinates of the pointer on the preset display interface; and determining the corresponding coordinates on the to-be-tested display module according to the pointer coordinates determined by the coarse adjustment and the coarse adjustment preset calculation relationship as the intersection coordinates of the cursor, where the coarse adjustment preset calculation relationship is that the movement distance of the cursor corresponding to the unit movement distance of the pointer is greater than a first preset value.

[0044] In the case of obtaining a coarse adjustment movement instruction, the coarse adjustment movement instruction can be responded to to determine the pointer coordinates of the pointer on the preset display interface. And the corresponding coordinates on the to-be-tested display module can be determined according to the pointer coordinates determined by the coarse adjustment and the coarse adjustment preset calculation relationship as the intersection coordinates of the cursor. Among them, the coarse adjustment preset calculation relationship is that the movement distance of the cursor corresponding to the unit movement distance of the pointer is greater than a first preset value. When adjusting the cursor displayed on the to-be-tested display module, there is a coarse adjustment mode. Specifically, when moving the pointer on the preset display interface, the cursor will move along with the pointer, and the distance that the pointer moves on the preset display interface will be greater than the distance that the cursor moves on the to-be-tested display module. For example, when the pointer on the preset display interface moves 10 pixels, when the cursor moves along, the distance it moves on the to-be-tested display module will be greater than 10 pixels. Adopting this coarse adjustment method can quickly move the cursor near the bad point when the position of the cursor and the bad point is far away, thereby improving the test efficiency.

[0045] In one embodiment, determining the coordinates at which the intersection of the cursor is displayed on the to-be-tested display module includes: obtaining a fine adjustment movement instruction for a pointer on a preset display interface; responding to the fine adjustment movement instruction to determine the pointer coordinates of the pointer on the preset display interface; and determining the corresponding coordinates on the to-be-tested display module according to the pointer coordinates determined by the fine adjustment and the fine adjustment preset calculation relationship, where the preset calculation relationship is that the coarse adjustment preset calculation relationship is that the movement distance of the cursor corresponding to the unit movement distance of the pointer is less than a second preset value.

[0046] When a fine-tuning movement instruction is obtained, the fine-tuning movement instruction can be responded to determine the pointer coordinates of the pointer on the preset display interface. After determining the pointer coordinates, the coordinates corresponding to the pointer coordinates and the fine-tuning preset calculation relationship on the display module to be tested can be determined according to the fine-tuning. Among them, the fine-tuning preset calculation relationship is: the cursor movement distance corresponding to the unit movement distance of the pointer is less than a second preset value. When adjusting the cursor displayed on the display module to be tested, there can also be a fine-tuning mode. For example, when the pointer on the preset display interface moves 10 pixels, when the cursor follows the movement, the movement distance on the display module to be tested will be less than 10 pixels. That is, when moving the pointer on the preset display interface, the unit distance of the pointer movement on the preset display interface and the distance of the corresponding cursor movement on the display screen to be tested are relatively small. The fine-tuning method can move the cursor more accurately when the cursor is close to the position of the bad point.

[0047] Further, determining the pointer coordinates of the pointer on the preset display interface in response to the fine-tuning movement instruction includes: responding to the fine-tuning movement instruction to determine the pointer coordinates of the pointer on the second preset display interface; determining the pointer coordinates of the pointer on the preset display interface according to the pointer coordinates of the pointer on the second preset display interface, where the second preset display interface is larger than the preset display interface. That is to say, when moving the pointer on the preset display interface of the host computer to fine-tune the cursor, the preset display interface will be maximally displayed, that is, it can be globally enlarged or locally enlarged, and the pointer can be accurately moved according to the enlarged interface.

[0048] Usually, the movement of the pointer on the preset display interface is achieved by a technician moving the mouse. Since the accuracy is relatively low when controlling the movement of the pointer by moving the mouse, it can be further determined that the coordinates of the intersection of the cursor displayed on the display module to be tested include: obtaining a fine-tuning movement instruction for the pointer on the preset display interface; responding to the fine-tuning movement instruction to control the pointer to move in a step-by-step manner on the preset display interface; determining the pointer coordinates of the pointer on the preset display interface; determining the coordinates corresponding to the pointer coordinates determined by the fine-tuning and the fine-tuning preset calculation relationship on the display module to be tested as the intersection coordinates of the cursor. The fine-tuning method can accurately control the cursor intersection to reach the position of the bad point.

[0049] When the coordinates of the intersection of the cursor displayed on the display module to be tested are determined, the preset area around the intersection of the cursor in the test picture can be determined as the target area according to the coordinates. After determining the target area, the original pixel color data of the target area can be obtained.

[0050] Before obtaining the original pixel color data of the target area, the original pixel color data of the test picture can be obtained and saved. Specifically, in one embodiment, before obtaining the original pixel color data of the target area, it further includes: obtaining and saving the original pixel color data of the test picture; in this case, obtaining the original pixel color data of the target area includes: obtaining the original pixel color data of the currently displayed test picture; determining the original pixel color data of the target area from the original pixel color data of the currently displayed test picture.

[0051] The original pixel color data of the currently displayed test picture can be obtained. When the original pixel color data is obtained, the original pixel color data of the target area can be determined from the original pixel color data of the currently displayed test picture. Among them, the original pixel color data can refer to the original color data of the sub-pixels (R, G, and B) of each pixel. For example, in the host computer system, the test file is stored in the storage space, and the test file can contain the test picture required for the current display. When controlling the display module under test to perform the dot screen test, the data contained in the picture displayed on the screen under test of the display module under test is consistent with the data contained in the picture displayed on the preset display interface of the host computer system. Each time the dot screen reaches the currently displayed test picture, the host computer system reads the original pixel color data in the currently displayed test picture. Since the data reading methods for different format types of picture files are different, the file format type of the test picture can be preset. Specifically, when the file format of the test picture is not the preset format type, the host computer system can convert the test picture into the preset format type and then obtain the original data of the test picture. For example, if the file format of the test picture is a compressed format, the host computer system can restore the compressed test picture to the original data of the test picture. If the order of the test pictures is in reverse order, the order of the test pictures can also be restored to the normal order. When the host computer system saves the currently displayed test picture, the control device can read the original pixel color data of the target area of the currently displayed test picture.

[0052] When the original pixel color data of the target area is obtained, the pixel color data of the cursor can be determined according to the original pixel color data. In one embodiment, determining the pixel color data of the cursor according to the original pixel color data includes: determining the average value corresponding to each color pixel according to the original pixel color data of each color pixel of all the pixels corresponding to the target area in the test picture; determining the pixel color data of the corresponding color pixel of the cursor according to the average value of each color pixel.

[0053] Determine the average value corresponding to the color pixels according to the original color data of each color pixel of all pixels corresponding to the target area in the test image. Among them, the average value corresponding to the color pixels can include the average value of the R sub-pixels, the average value of the G sub-pixels, and the average value of the B sub-pixels. When determining the average value corresponding to the color pixels, the average values of all color pixels can be differentially processed according to the average value of each color pixel to determine the pixel color data of the color pixels corresponding to the cursor. Specifically, in one embodiment, determining the pixel color data of the color pixels corresponding to the cursor according to the average value of each color pixel includes: determining the pixel color data of the color pixels corresponding to the cursor according to the average value of each color pixel and a preset formula, where the preset formulas corresponding to any two color pixels are different.

[0054] Determine the pixel color data of the color pixels corresponding to the cursor according to the average value of each color pixel and a preset formula, where the preset formulas corresponding to any two color pixels are different. That is, differential processing is performed on the average value, and the way of differential processing is not unique. Further, the differential processing can be performed by making different changes to the R average value, G average value, and B average value included in the average value of each color pixel, and the changed value can be determined as the pixel color data of the color pixels corresponding to the cursor. Specifically, the pixel color data of the R sub-pixel obtained by inverting and shifting the R average value in the average value of the color pixels to the right by a first value can be determined as the pixel color data of the R color pixels corresponding to the cursor. Among them, the first value can be 3. The G average value in the average value of the color pixels can be inverted, and the inverted value can be determined as the pixel color data of the G color pixels corresponding to the cursor. The sum of the B average value in the average value of the color pixels and a second value can be determined as the pixel color data of the B color pixels corresponding to the cursor. Among them, the second value can be 25.

[0055] When determining the color data of the color pixels corresponding to the cursor, the color data can be sent to the embedded control system of the PG signal generator, and the embedded control system can output an image data stream with a cursor to the display module under test according to the color data, so that the cursor color displayed on the display module under test is the color determined by the current determined color data.

[0056] Specifically, the embedded control system can determine the cursor pixels corresponding to the cursor in the test picture according to the cursor intersection coordinates and the cursor pixel positions corresponding to each cursor pixel. In the case of determining the cursor pixel positions, the embedded control system updates the original color data corresponding to the cursor pixels in the current test picture to the determined color data. Then, it can output the data stream of the current test picture to the display module under test to display the current picture with the cursor on the display module under test. Among them, the cursor pixel positions of each cursor pixel store the color values of each cursor pixel. The pixel positions of other pixels in the test picture except the cursor pixels can store the color values of other pixels, which are the original color data, and output the data stream by row.

[0057] Through the above technical solution, it is possible to clearly distinguish the background color of the dot matrix picture displayed on the screen under test and the color of the cursor, enabling technicians to accurately determine the bad pixels or defective positions existing on the display screen, thereby improving the test efficiency and test accuracy for the screen under test.

[0058] Figure 1 It is a schematic flowchart of the cursor color determination method in an embodiment. It should be understood that although Figure 1 the steps in the flowchart are sequentially shown according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, Figure 1 at least a part of the steps in

[0059] In an embodiment, as Figure 2 shown, a cursor color determination device is provided, including a cursor intersection coordinate determination module, a target area determination module, and a cursor color determination module, where:

[0060] The cursor intersection coordinate determination module 201 is used to determine the coordinates of the intersection of the cursor displayed on the display module under test.

[0061] The target area determination module 202 is used to determine the preset area around the intersection in the test picture as the target area according to the coordinates.

[0062] The cursor color determination module 203 is used to obtain the original color data of the pixels in the target area and determine the pixel color data of the cursor according to the original color data of the pixels.

[0063] The cursor can be a cross cursor. The target area can include at least one of a preset area near the intersection of the cursor, the row and column where the cursor is located, and the display area of the coordinates of the cursor. The cursor intersection coordinate determination module 201 can be used to determine, according to the coordinates, that the preset area around the intersection of the cursor in the test picture is the target area. The target area determination module 202 can be used to obtain the original pixel color data of the target area and determine the pixel color data of the cursor according to the original pixel data. The cursor color determination module 203 can be used to obtain the original pixel color data of the target area. Among them, the original pixel color data can be the original color data of the sub-pixels (R, G, B) of each pixel.

[0064] The cursor color determination device includes a processor and a memory. The above-mentioned cursor intersection coordinate determination module, target area determination module, and cursor color determination module are all stored in the memory as program units and implemented corresponding functions by the processor executing the above program modules stored in the memory.

[0065] The processor contains a kernel, and the kernel retrieves the corresponding program unit from the memory. One or more kernels can be set, and the cursor color determination method is implemented by adjusting the kernel parameters.

[0066] The memory may include non-permanent memory in a computer-readable medium, in the form of random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM), and the memory includes at least one storage chip.

[0067] In one embodiment, as Figure 3 shown, a PG device is provided, including a cursor color determination device and a control output device, where:

[0068] The cursor color determination device 301 is used to send the intersection coordinates of the cursor and the pixel color data of the cursor to the control output device. Specifically, the cursor color determination device can be set on the upper computer system, can also be set on the control box, and of course, can also be embedded in the embedded control system of the PG signal generator.

[0069] The control output device 302 is used to control and output a data stream of a test picture with a cursor having a color corresponding to the pixel color data to the display module to be tested according to the obtained intersection coordinates and the pixel color data of the cursor. The output control device 302 can be embedded in the embedded control system of the PG signal generator.

[0070] The cursor color determination device 301 is used to send the intersection coordinates of the cursor and the pixel color data of the cursor to the control output device.

[0071] An embodiment of the present invention provides a storage medium, on which a program is stored, and when the program is executed by a processor, the above-mentioned cursor color determination method is implemented.

[0072] An embodiment of the present invention provides a processor, which is used to run a program. When the program runs, the above-mentioned cursor color determination method is executed.

[0073] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as Figure 4 shown. The computer device includes a processor A01, a network interface A02, a display screen A04, an input device A05, and a memory (not shown in the figure) connected through a system bus. Among them, the processor A01 of the computer device is used to provide computing and control capabilities. The memory of the computer device includes an internal memory A03 and a non-volatile storage medium A06. The non-volatile storage medium A06 stores an operating system B01 and a computer program B02. The internal memory A03 provides an environment for the operation of the operating system B01 and the computer program B02 in the non-volatile storage medium A06. The network interface A02 of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor A01, a cursor color determination method is implemented. The display screen A04 of the computer device may be a liquid crystal display screen or an electronic ink display screen. The input device A05 of the computer device may be a touch layer covered on the display screen, or a button, a trackball, or a touchpad provided on the housing of the computer device, or an external keyboard, touchpad, or mouse, etc.

[0074] Those skilled in the art can understand that Figure 4 the structure shown in

[0075] is only a block diagram of some structures related to the solution of the present invention, and does not constitute a limitation on the computer device to which the solution of the present invention is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.

[0075] An embodiment of the present invention provides a device, which includes a processor, a memory, and a program stored on the memory and executable on the processor. When the processor executes the program, the following steps are implemented: determining the coordinates of the intersection point of the cursor displayed on the to-be-tested display module; determining a target area as a preset area around the intersection point in the test picture according to the coordinates; obtaining the original pixel color data of the target area; and determining the pixel color data of the cursor according to the original pixel color data.

[0076] In one embodiment, the cursor is a cross cursor, and the target area includes at least one of the intersection point of the cursor, the row and column where the cursor is located, and the display area of the coordinates.

[0077] In one embodiment, before obtaining the original pixel color data of the target area, it further includes: obtaining and saving the original pixel color data of the test picture; obtaining the original pixel color data of the target area includes: obtaining the original pixel color data of the currently displayed test picture; determining the original pixel color data of the target area from the original pixel color data of the currently displayed test picture.

[0078] In one embodiment, determining the pixel color data of the cursor according to the original pixel color data includes: determining the average value corresponding to each color pixel according to the original pixel color data of each color pixel of all pixels corresponding to the target area in the test picture; determining the pixel color data of the cursor corresponding to the color pixel according to the average value of each color pixel.

[0079] In one embodiment, determining the pixel color data of the cursor corresponding to the color pixel according to the average value of each color pixel includes: determining the pixel color data of the cursor corresponding to the color pixel according to the average value of each color pixel and a preset formula, where the preset formulas corresponding to any two color pixels are different.

[0080] In one embodiment, determining the coordinates at which the intersection point of the cursor is displayed on the display module to be measured includes: obtaining a movement instruction of a pointer for a preset display interface; determining the pointer coordinates of the pointer on the preset display interface in real time or at a preset interval in response to the movement instruction; determining the intersection point coordinates of the corresponding cursor on the display module to be measured according to the determined pointer coordinates and a preset calculation relationship.

[0081] In one embodiment, determining the coordinates at which the intersection point of the cursor is displayed on the display module to be measured includes: obtaining a coarse adjustment movement instruction of a pointer for a preset display interface; determining the pointer coordinates of the pointer on the preset display interface in response to the coarse adjustment movement instruction; determining the corresponding coordinates on the display module to be measured according to the pointer coordinates determined by the coarse adjustment and a coarse adjustment preset calculation relationship as the intersection point coordinates of the cursor, where the coarse adjustment preset calculation relationship is: the movement distance of the cursor corresponding to the unit movement distance of the pointer is greater than a first preset value.

[0082] In one embodiment, determining the coordinates at which the intersection point of the cursor is displayed on the display module to be measured includes: obtaining a fine adjustment movement instruction of a pointer for a preset display interface; determining the pointer coordinates of the pointer on the preset display interface in response to the fine adjustment movement instruction; determining the corresponding coordinates on the display module to be measured according to the pointer coordinates determined by the fine adjustment and a fine adjustment preset calculation relationship, where the preset calculation relationship is that the coarse adjustment preset calculation relationship is: the movement distance of the cursor corresponding to the unit movement distance of the pointer is less than a second preset value.

[0083] In one embodiment, determining the pointer coordinates of the pointer on the preset display interface in response to the fine-tuning movement instruction includes: in response to the fine-tuning movement instruction, determining the pointer coordinates of the pointer on the second preset display interface; determining the pointer coordinates of the pointer on the preset display interface according to the pointer coordinates of the pointer on the second preset display interface, where the second preset display interface is larger than the preset display interface.

[0084] The present invention also provides a computer program product, which, when executed on a data processing device, is adapted to execute a program initialized with the following method steps: determining the coordinates of the intersection point of the cursor displayed on the display module to be tested; determining a target area as the area around the intersection point in the test picture according to the coordinates; obtaining the original pixel color data of the target area; determining the pixel color data of the cursor according to the original pixel color data.

[0085] In one embodiment, the cursor is a cross cursor, and the target area includes at least one of the intersection point of the cursor, the row and column where the cursor is located, and the display area of the coordinates.

[0086] In one embodiment, before obtaining the original pixel color data of the target area, it further includes: obtaining and saving the original pixel color data of the test picture; obtaining the original pixel color data of the target area includes: obtaining the original pixel color data of the currently displayed test picture; determining the original pixel color data of the target area from the original pixel color data of the currently displayed test picture.

[0087] In one embodiment, determining the pixel color data of the cursor according to the original pixel color data includes: determining the average value corresponding to each color pixel according to the original pixel color data of each color pixel of all pixels corresponding to the target area in the test picture; determining the pixel color data of the color pixel corresponding to the cursor according to the average value of each color pixel.

[0088] In one embodiment, determining the pixel color data of the color pixel corresponding to the cursor according to the average value of each color pixel includes: determining the pixel color data of the color pixel corresponding to the cursor according to the average value of each color pixel and a preset formula, where the preset formulas corresponding to any two color pixels are different.

[0089] In one embodiment, determining the coordinates of the intersection point of the cursor displayed on the display module to be tested includes: obtaining a movement instruction for the pointer on the preset display interface; determining the pointer coordinates of the pointer on the preset display interface in real time or at a preset interval in response to the movement instruction; determining the intersection point coordinates of the corresponding cursor on the display module to be tested according to the determined pointer coordinates and a preset calculation relationship.

[0090] In one embodiment, determining the coordinates at which the intersection of the cursor is displayed on the display module to be measured includes: obtaining a coarse adjustment movement instruction for a pointer with respect to a preset display interface; determining the pointer coordinates of the pointer on the preset display interface in response to the coarse adjustment movement instruction; and determining the corresponding coordinates on the display module to be measured based on the pointer coordinates determined by the coarse adjustment and a coarse adjustment preset calculation relationship as the intersection coordinates of the cursor, where the coarse adjustment preset calculation relationship is that the movement distance of the cursor corresponding to the unit movement distance of the pointer is greater than a first preset value.

[0091] In one embodiment, determining the coordinates at which the intersection of the cursor is displayed on the display module to be measured includes: obtaining a fine adjustment movement instruction for a pointer with respect to a preset display interface; determining the pointer coordinates of the pointer on the preset display interface in response to the fine adjustment movement instruction; and determining the corresponding coordinates on the display module to be measured based on the pointer coordinates determined by the fine adjustment and a fine adjustment preset calculation relationship, where the preset calculation relationship is that the movement distance of the cursor corresponding to the unit movement distance of the pointer is less than a second preset value.

[0092] In one embodiment, determining the pointer coordinates of the pointer on the preset display interface in response to the fine adjustment movement instruction includes: in response to the fine adjustment movement instruction, determining the pointer coordinates of the pointer on a second preset display interface; and determining the pointer coordinates of the pointer on the preset display interface based on the pointer coordinates of the pointer on the second preset display interface, where the second preset display interface is larger than the preset display interface.

[0093] Those skilled in the art should understand that the embodiments of the present invention may be provided as a method, a system, or a computer program product. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0094] The present invention is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to embodiments of the present invention. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to the processors of general-purpose computers, special-purpose computers, embedded processors, or other programmable data processing devices to generate a machine, so that the instructions executed by the processors of the computer or other programmable data processing devices generate means for implementing the functions specified in Figure 1 one process or multiple processes and / or blocks Figure 1 one block or multiple blocks.

[0095] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a particular manner, such that the instructions stored in the computer-readable memory produce a manufacture including an instruction device that implements the functions specified in one or more processes and / or blocks Figure 1 in one or more processes and / or blocks Figure 1 specified in the block or blocks.

[0096] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operational steps are performed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes and / or blocks Figure 1 in one or more processes and / or blocks Figure 1 specified in the block or blocks.

[0097] In a typical configuration, a computing device includes one or more processors (CPUs), an input / output interface, a network interface, and memory.

[0098] The memory may include non-permanent memory in the form of computer-readable media, random access memory (RAM) and / or non-volatile memory such as read-only memory (ROM) or flash memory (flash RAM). The memory is an example of computer-readable media.

[0099] Computer-readable media includes both permanent and non-permanent, removable and non-removable media implemented by any method or technology for storing information. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission media that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transitory media such as modulated data signals and carrier waves.

[0100] It should also be noted that the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, commodity or device comprising a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, commodity or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, commodity or device comprising the element.

[0101] The above are only embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, various modifications and changes can be made to the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the scope of the claims of the present invention.

Claims

1. A method for determining the cursor color, characterized in that, it includes: During the process of testing the display screen to be tested, determine the coordinates of the intersection point of the cursor displayed on the display module to be tested; According to the coordinates, determine the preset area around the intersection point in the test picture as the target area. The cursor is a cross cursor, and the target area includes at least one of the following: the preset area near the intersection point of the cursor, the row and column where the cursor is located, and the display area of the coordinates; Obtain and save the original pixel color data of the test picture; Obtain the original pixel color data of the target area. The obtaining of the original pixel color data of the target area includes: obtaining the original pixel color data of the currently displayed test picture; determining the original pixel color data of the target area from the original pixel color data of the currently displayed test picture; Determine the pixel color data of the cursor according to the original pixel color data, and update the original color data corresponding to the cursor pixels in the current test picture to the determined pixel color data. Then, output the data stream of the current test picture to the display module to be tested, so that the cursor color displayed on the display module to be tested is the color determined by the pixel color data; Among them, the determining the pixel color data of the cursor according to the original pixel color data includes: determining the average value corresponding to each color pixel according to the original pixel color data of each color pixel of all pixels corresponding to the target area in the test picture; determining the pixel color data of the color pixel corresponding to the cursor according to the average value of each color pixel; The determining the pixel color data of the color pixel corresponding to the cursor according to the average value of each color pixel includes: determining the pixel color data of the color pixel corresponding to the cursor according to the average value of each color pixel and a preset formula. Among them, the preset formulas corresponding to any two color pixels are different. The pixel color data of the R color pixel corresponding to the cursor is obtained by taking the inverse of the R average value in the average value of the color pixels and shifting it to the right by the first value. The pixel color data of the G color pixel corresponding to the cursor is obtained by taking the inverse of the G average value in the average value of the color pixels. The pixel color data of the B color pixel corresponding to the cursor is obtained by summing the B average value in the average value of the color pixels and the second value.

2. The cursor color determination method according to claim 1, characterized in that, the determining the coordinates of the intersection point of the cursor displayed on the display module to be tested includes: Obtain the movement instruction of the pointer for the preset display interface; Respond to the movement instruction in real time or at a preset interval to determine the pointer coordinates of the pointer on the preset display interface; Determine the intersection point coordinates of the cursor corresponding to the display module to be tested according to the determined pointer coordinates and the pre-designed calculation relationship.

3. The cursor color determination method according to claim 2, characterized in that, the determining the coordinates of the intersection point of the cursor displayed on the display module to be tested includes: Obtain the coarse adjustment movement instruction of the pointer for the preset display interface; Respond to the coarse adjustment movement instruction to determine the pointer coordinates of the pointer on the preset display interface; Determine the coordinates corresponding to the cursor on the to-be-tested display module according to the pointer coordinates determined by the coarse adjustment and the pre-designed calculation relationship of the coarse adjustment, as the intersection coordinates of the cursor, where the pre-designed calculation relationship of the coarse adjustment is: the moving distance of the cursor corresponding to the unit moving distance of the pointer is greater than a first preset value.

4. The method for determining the cursor color according to claim 2, wherein, the determination of the coordinates where the intersection of the cursor is displayed on the to-be-tested display module includes: obtaining a fine adjustment movement instruction of the pointer for a preset display interface; responding to the fine adjustment movement instruction to determine the pointer coordinates of the pointer on the preset display interface; determine the coordinates corresponding to the to-be-tested display module according to the pointer coordinates determined by the fine adjustment and the pre-designed calculation relationship of the fine adjustment, where the pre-designed calculation relationship of the fine adjustment is: the moving distance of the cursor corresponding to the unit moving distance of the pointer is less than a second preset value.

5. The method for determining the cursor color according to claim 4, wherein, the response to the fine adjustment movement instruction to determine the pointer coordinates of the pointer on the preset display interface includes: responding to the fine adjustment movement instruction to determine the pointer coordinates of the pointer on a second preset display interface; determine the pointer coordinates of the pointer on the preset display interface according to the pointer coordinates of the pointer on the second preset display interface, where the second preset display interface is larger than the preset display interface.

6. The method for determining the cursor color according to claim 2, wherein, the determination of the coordinates where the intersection of the cursor is displayed on the to-be-tested display module includes: obtaining a fine-tuning movement instruction of the pointer for a preset display interface; responding to the fine-tuning movement instruction to control the pointer to move in a step-by-step manner on the preset display interface; determine the pointer coordinates of the pointer on the preset display interface; determine the coordinates corresponding to the to-be-tested display module according to the pointer coordinates determined by the fine-tuning and the pre-designed calculation relationship of the fine-tuning, as the intersection coordinates of the cursor.

7. A cursor color determination device, wherein, it includes: a cursor intersection coordinate determination module, configured to determine the coordinates where the intersection of the cursor is displayed on the to-be-tested display module during the test of the to-be-tested display screen; a target area determination module, configured to determine a preset area around the intersection in the test picture as the target area according to the coordinates, the cursor is a cross cursor, and the target area includes at least one of the following: a preset area near the intersection of the cursor, the row and column where the cursor is located, and the display area of the coordinates. The cursor color determination module is used to obtain and save the original pixel color data of the test picture, obtain the original pixel color data of the target area, determine the pixel color data of the cursor according to the original pixel color data, so as to update the original color data corresponding to the cursor pixels in the current test picture to the determined pixel color data. After that, it outputs the data stream of the current test picture to the display module under test, so that the cursor color displayed on the display module under test is the color determined by the pixel color data. Among them, the obtaining of the original pixel color data of the target area includes: obtaining the original pixel color data of the currently displayed test picture; determining the original pixel color data of the target area from the original pixel color data of the currently displayed test picture. The determining of the pixel color data of the cursor according to the original pixel color data includes: determining the average value corresponding to each color pixel according to the original pixel color data of each color pixel of all pixels corresponding to the target area in the test picture; determining the pixel color data of the color pixel corresponding to the cursor according to the average value of each color pixel. The determining of the pixel color data of the color pixel corresponding to the cursor according to the average value of each color pixel includes: determining the pixel color data of the color pixel corresponding to the cursor according to the average value of each color pixel and a preset formula. Among them, the preset formulas corresponding to any two color pixels are different. The pixel color data of the R color pixel corresponding to the cursor is obtained by taking the inverse of the R average value in the average value of the color pixels and shifting it to the right by a first value. The pixel color data of the G color pixel corresponding to the cursor is obtained by taking the inverse of the G average value in the average value of the color pixels. The pixel color data of the B color pixel corresponding to the cursor is obtained by summing the B average value in the average value of the color pixels and a second value.

8. A PG device, characterized in that, it includes: The cursor color determination device according to claim 7, which is used to send the intersection coordinates of the cursor and the pixel color data of the cursor to the control output device; The control output device is used to control and output the data stream of the test picture with a cursor having a color corresponding to the pixel color data to the display module under test according to the obtained intersection coordinates and the pixel color data of the cursor.

9. A machine-readable storage medium, on which instructions are stored, characterized in that, when the instructions are executed by a processor, the processor is configured to execute the cursor color determination method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method and device for displaying mouse color based on background color

    CN103543908A

  • Device and method for generating cross cursor in display image of to-be-tested display module

    CN112327521A

  • Coordinate input apparatus

    US5195179A