A method, device and medium for collecting signal light status on a screen

By acquiring and combining the brightness matrix of the signal light and determining the target brightness matrix, the calculation amount and complexity of the signal light status acquisition in the display screen are solved, and fast and accurate signal light status feedback is achieved.

CN114241176BActive Publication Date: 2025-08-26SHANDONG SYNTHESIS ELECTRONICS TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111561521.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-20
Publication Date
2025-08-26
Estimated Expiration
2041-12-20

AI Technical Summary

Technical Problem

The prior art has a large amount of calculation when acquiring the status of the signal light in the display screen, and the image processing is complex, making it difficult to achieve instant feedback.

Method used

By acquiring the first brightness matrix when the signal lights are in the off state and the multiple second brightness matrix when the partial signal lights are in the on state, combining, selecting the target brightness matrix that is most similar to the current brightness matrix, and determining the indication state of the signal light.

Benefits of technology

It realizes the indication status of the signal lights in the terminal screen with a smaller calculation amount, reducing the computational complexity and calculation amount.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114241176B_ABST
    Figure CN114241176B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device and medium for acquiring the status of signal lights on a screen, wherein the method is used to acquire the indication status of signal lights on an external terminal screen, and the method comprises: acquiring a first brightness matrix, which is acquired from the terminal screen when all signal lights are in an off state; and acquiring multiple second brightness matrices, which are acquired from the terminal screen when at least some of the signal lights are in an on state; combining the multiple second brightness matrices with the first brightness matrix several times to select a different second brightness matrix in each combination to obtain several different third brightness matrices; determining a target brightness matrix based on the several different third brightness matrices and the acquired current brightness matrix, and acquiring the indication status corresponding to the current brightness matrix based on the indication status corresponding to the target brightness matrix.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of screen image acquisition, and in particular to a method, device and medium for acquiring the status of signal lights on a screen. Background Art

[0002] Due to high reliability requirements, some systems do not allow physical access from external systems. Therefore, external systems cannot directly access internal system information, such as the contents of the display screen, through hardware such as the network. In this case, additional methods are required to obtain the contents of the system's internal display screen. For example, an image of the display screen can be captured and then restored to obtain the original display content. However, this method not only requires the support of multiple devices, but also has a complex computational process. In the field of image processing, there are also difficult issues such as image defocus and the presence of reflective spots.

[0003] Especially for display screens that primarily display traffic lights, the computational complexity of capturing images of the display screen using an image acquisition device and then restoring the captured images to obtain the original display content is excessive. Therefore, a computationally efficient acquisition method that can provide instant feedback on the status of traffic lights on the screen is urgently needed. Summary of the Invention

[0004] In order to solve the above problems, the present application proposes a method, device and medium for collecting the status of signal lights on a screen, wherein the method includes: obtaining a first brightness matrix, which is collected from the terminal screen when all the signal lights are in the off state; and obtaining multiple second brightness matrices, which are collected from the terminal screen when at least some of the signal lights are in the on state; combining the multiple second brightness matrices with the first brightness matrix several times to select a different second brightness matrix in each combination to obtain several different third brightness matrices; determining a target brightness matrix based on the several different third brightness matrices and the collected current brightness matrix, and obtaining the indication state corresponding to the current brightness matrix based on the indication state corresponding to the target brightness matrix.

[0005] In one example, obtaining multiple second brightness matrices specifically includes: determining the number of signal lights on the terminal screen; using the brightness matrix obtained by collecting the terminal screen when only one signal light is in the on state and the other signal lights are in the off state as the second brightness matrix; obtaining the multiple second brightness matrices by repeatedly and non-repeatedly replacing the signal lights in the on state, and the number of the second brightness matrices is the same as the number of the signal lights.

[0006] In one example, the multiple second brightness matrices are combined several times with the first brightness matrix to select a different second brightness matrix in each combination to obtain several different third brightness matrices, specifically including: generating all combinations of the signal light indication status according to the number of signal lights; generating the several different third brightness matrices corresponding to all the combinations according to the first brightness matrix, the multiple second brightness matrices, and all the combinations.

[0007] In one example, the target brightness matrix is ​​determined based on the several different third brightness matrices and the collected current brightness matrix, and the indication state corresponding to the current brightness matrix is ​​obtained based on the indication state corresponding to the target brightness matrix, specifically including: determining the similarity between the several third brightness matrices and the current brightness matrix; selecting the third brightness matrix with the highest similarity as the target brightness matrix; and using the combination corresponding to the target brightness matrix as the indication state corresponding to the current brightness matrix.

[0008] In one example, after obtaining multiple second brightness matrices, the method further includes: establishing a two-dimensional coordinate system on the plane where the terminal screen is located based on the second brightness matrix; and determining the coordinates of the multiple signal lights in the two-dimensional coordinate system through the multiple second brightness matrices.

[0009] In one example, before determining the target brightness matrix based on the several different third brightness matrices and the collected current brightness matrix, the method also includes: determining a first area within the terminal screen corresponding to a brightness value in the current brightness matrix that is higher than a first preset threshold; determining the signal lights within the first area based on the coordinates of the multiple signal lights in the two-dimensional coordinate system; and combining the second brightness matrix corresponding to the signal lights within the first area with the first brightness matrix several times to select a different second brightness matrix in each combination to obtain the several different third brightness matrices.

[0010] In one example, before determining the target brightness matrix based on the several different third brightness matrices and the collected current brightness matrix, the method also includes: determining the bright spot in the terminal screen corresponding to the highest brightness value in the current brightness matrix; determining whether the signal light exists at the coordinates corresponding to the bright spot based on the coordinates of the signal light in the two-dimensional coordinate system; if so, the indication state of the signal light corresponding to the bright spot is the on state.

[0011] In one example, before obtaining the first brightness matrix, the method further includes: determining the size of the terminal screen, and determining the number of the light sensors in the light sensor matrix arranged in front of the terminal screen based on the terminal screen size; the light sensor is used to collect the brightness matrix of the terminal screen; after obtaining the indication state corresponding to the current brightness matrix based on the indication state corresponding to the target brightness matrix, the method further includes: obtaining the indication state of the signal light within a preset time period; and determining whether there is a signal light in a flashing state among the multiple signal lights based on the indication state of the signal light within the preset time period.

[0012] The present application also provides a device for acquiring the status of signal lights on a screen, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute: acquiring a first brightness matrix, the first brightness matrix being acquired from the terminal screen when all the signal lights are in an off state; and acquiring multiple second brightness matrices, the second brightness matrices being acquired from the terminal screen when at least some of the signal lights are in an on state; combining the multiple second brightness matrices with the first brightness matrix several times to select a different second brightness matrix in each combination to obtain several different third brightness matrices; determining a target brightness matrix based on the several different third brightness matrices and the acquired current brightness matrix, and obtaining the indication state corresponding to the current brightness matrix based on the indication state corresponding to the target brightness matrix.

[0013] The present application also provides a non-volatile computer storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to: obtain a first brightness matrix, wherein the first brightness matrix is ​​acquired from the terminal screen when all the signal lights are in an off state; and obtain multiple second brightness matrices, wherein the second brightness matrices are acquired from the terminal screen when at least some of the signal lights are in an on state; combine the multiple second brightness matrices with the first brightness matrix several times to select a different second brightness matrix in each combination to obtain several different third brightness matrices; determine a target brightness matrix based on the several different third brightness matrices and the acquired current brightness matrix, and obtain the indication state corresponding to the current brightness matrix based on the indication state corresponding to the target brightness matrix.

[0014] The method proposed in this application can obtain the brightness matrix of the terminal screen and combine various brightness matrices to form a third brightness matrix corresponding to the signal light indication state, and select a target brightness matrix that is most similar to the current brightness matrix in the third brightness matrix, and use the signal light combination corresponding to the target brightness matrix as the signal light combination in the current terminal screen, so as to provide feedback on the signal light indication state inside the current terminal screen more quickly with a smaller amount of calculation. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0016] Figure 1 This is a schematic diagram of a method for collecting the status of a signal light on a screen in an embodiment of the present application;

[0017] Figure 2 This is a schematic diagram of a device for collecting the status of signal lights on a screen in an embodiment of the present application. DETAILED DESCRIPTION

[0018] To make the purpose, technical solutions, and advantages of this application more clear, the technical solutions of this application will be clearly and completely described below in conjunction with the specific embodiments of this application and the corresponding drawings. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0019] The following describes in detail the technical solutions provided by various embodiments of the present application in conjunction with the accompanying drawings.

[0020] Figure 1 This is a flow chart of a method for collecting on-screen signal light status according to one or more embodiments of this specification. The process can be executed by a computing device in the corresponding field, and some input parameters or intermediate results in the process can be manually adjusted to help improve accuracy.

[0021] The analysis method involved in the embodiments of the present application can be implemented by a computing device or a server, and the present application does not impose any special restrictions on this. For ease of understanding and description, the following embodiments are described in detail using a server as an example.

[0022] It should be noted that the server can be a single device or a system composed of multiple devices, that is, a distributed server, and this application does not make any specific restrictions on this.

[0023] like Figure 1 As shown, the embodiment of the present application provides a method for collecting the status of a signal light on a screen, comprising:

[0024] S101: Acquire a first brightness matrix, where the first brightness matrix is ​​acquired from the terminal screen when all the signal lights are in an off state.

[0025] Since the traffic lights are located inside the terminal screen, it is impossible to directly obtain the indication status of the traffic lights, so the server intelligently obtains various types of data from the terminal screen. However, in addition to the traffic lights, there will be other display content on the terminal screen, including other light sources outside the terminal screen, which may cause other reflective points on the terminal screen. In order to eliminate these interferences and obtain the illumination matrix of the traffic lights, it is first necessary to obtain the first brightness matrix of the terminal screen. When all the traffic lights are in the off state, the brightness matrix collected from the terminal screen is the first brightness matrix. If there are 20 traffic lights on the terminal screen, the brightness matrix collected when all 20 traffic lights are in the off state is the first brightness matrix of the terminal screen. It should be noted that the first brightness matrix may include the brightness of light irradiated on the terminal screen by light sources outside the terminal screen.

[0026] S102: Acquire a plurality of second brightness matrices, where the second brightness matrices are acquired from the terminal screen when at least some of the signal lights are in an on state.

[0027] After obtaining the first brightness matrix, you also need to obtain multiple second brightness matrices. The brightness matrix collected from the terminal screen when at least some of the traffic lights are on is called the second brightness matrix. "At least some of the traffic lights are on" here means that if there are 20 traffic lights on the terminal screen, then the second brightness matrix can be the brightness matrix corresponding to when only 2 of them are on and the other 18 are off. Alternatively, it can be the brightness matrix corresponding to when 17 traffic lights are on and the other 3 are off. It should be noted that multiple second brightness matrices are obtained here.

[0028] S103: Combining the plurality of second brightness matrices with the first brightness matrix several times, selecting a different second brightness matrix in each combination, and obtaining several different third brightness matrices.

[0029] After obtaining the first brightness matrix and multiple second brightness matrices, the first brightness matrix and the multiple second brightness matrices are combined. In each combination, multiple brightness matrices are selected for addition and subtraction operations, thereby obtaining multiple different third brightness matrices. It should be noted that each combination uses a different brightness matrix, thereby ensuring the diversity of the third brightness matrix.

[0030] S104: Determine a target brightness matrix according to the plurality of different third brightness matrices and the collected current brightness matrix, and obtain an indication state corresponding to the current brightness matrix according to an indication state corresponding to the target brightness matrix.

[0031] After obtaining several different third brightness matrices, it is necessary to collect the current brightness matrix of the current terminal screen, and determine the target brightness matrix in the third brightness matrix based on the current brightness matrix and the third brightness matrix, and obtain the indication state corresponding to the current brightness matrix based on the indication state corresponding to the target brightness matrix, that is, the current indication state of the signal light in the terminal screen.

[0032] In one embodiment, when acquiring multiple second brightness matrices, if only on-state lights are randomly selected, the resulting second brightness matrices will result in a small number of third brightness matrices in the subsequent combination step, and a large number of duplicate matrices will be generated. To avoid this, when acquiring multiple second brightness matrices, the number of lights on the terminal screen can be determined, and the second brightness matrix can be selected based on this number. During the selection process, the brightness matrix acquired from the terminal screen when only one light is on and all others are off can be used as the second brightness matrix. That is, if there are 20 lights, 20 second brightness matrices will be acquired, and in each second brightness matrix, only one light is on, and the lights that are on in each brightness matrix are different. Selecting the second brightness matrix in this manner maximizes the number of third brightness matrices obtained in the subsequent combination process.

[0033] Furthermore, since only one signal light is in the on state and the other signal lights are in the off state when the second brightness matrix is ​​obtained, and the number of the second brightness matrix is ​​the same as the number of the signal lights, when the first brightness matrix is ​​combined with the second brightness matrix, all combinations of the signal light indication states can be generated according to the number of signal lights. For example, if there are 10 signal lights in total, and the indication state of each signal light only includes two states, on or off, then there are 2 10 After all combinations are generated, appropriate matrices are selected from the first brightness matrix and the plurality of second brightness matrices according to the corresponding combinations, thereby generating a third brightness matrix corresponding to all combinations. Each brightness matrix corresponds to one combination.

[0034] Furthermore, after obtaining a plurality of third brightness matrices, when determining a target brightness matrix based on the third brightness matrices and the collected current brightness matrix, the plurality of third brightness matrices can be traversed, and by comparing the similarities of elements within the third brightness matrices and the current brightness matrix, the overall similarities of the plurality of third brightness matrices with the current brightness matrix can be determined. The third brightness matrix with the highest overall similarity among the plurality of third brightness matrices is then selected as the target brightness matrix, and the corresponding combination of the target brightness matrices is used as the signal light indication state of the current brightness matrix. By using the overall similarity of the brightness matrices as the evaluation criterion for the target brightness matrix, the selection of the target brightness matrix can be made more accurate.

[0035] In one embodiment, after obtaining multiple standard second brightness matrices and before combining the first brightness matrix and multiple second brightness matrices, the standard second brightness matrix refers to a second brightness matrix in which only one signal light is on and all other signal lights are off. Based on the second brightness matrix, a two-dimensional coordinate system can be established on the plane of the terminal screen, and the two-dimensional coordinates of each signal light in this two-dimensional coordinate system can be obtained using the second brightness matrix. Determining the coordinates of the signal lights in the two-dimensional coordinate system facilitates obtaining a more accurate signal light indication status based on the brightness matrix.

[0036] Furthermore, after obtaining the two-dimensional coordinates of each traffic light in the two-dimensional coordinate system, the brightness values ​​in the current brightness matrix can be evaluated to determine the region in the brightness matrix corresponding to brightness values ​​above a first preset threshold, referred to as the first region. The first preset threshold can be set to the brightness value of a traffic light when it is turned on, thereby increasing the probability that a traffic light is turned on in the first region. Furthermore, if the first preset threshold is set to the brightness value corresponding to the traffic light with the lowest brightness value when turned on, then there are no traffic lights turned on in regions outside the first region. Therefore, only the indication states of the traffic lights within the first region need to be combined, significantly reducing the number of traffic lights that need to be combined. Therefore, after determining the first region, the two-dimensional coordinates of each traffic light are used to determine which traffic lights are within the first region. The second brightness matrix corresponding to the traffic lights in the first region is then combined with the first brightness matrix several times to obtain several third brightness matrices.

[0037] In one embodiment, to reduce the number of traffic lights with uncertain indication states, the bright spot corresponding to the highest brightness value on the terminal screen can be determined in the current brightness matrix, and based on the coordinates of the traffic light in the two-dimensional coordinate system, it can be determined whether there is a traffic light at the bright spot. If there is a traffic light at the bright spot, the indication state of the traffic light is on. After that, the preset number of times can be repeated based on the ranking of the brightness values. It should be noted that there may be a traffic light somewhere, and the traffic light is in the off state, but due to the influence of external light sources, the brightness value at that location is higher. Therefore, the greater the preset number of times, the greater the probability of misjudgment. Therefore, the number of repetitions can be set by the staff. By determining whether there is a traffic light at a point with a higher brightness value, the indication state of some traffic lights can be determined, thereby reducing the number of indication state combinations and greatly reducing the amount of calculation.

[0038] In one embodiment, before obtaining the first brightness matrix, the size of the terminal screen should be determined. Based on the screen size, the number of light sensors in the light sensor matrix positioned in front of the terminal screen is determined. The light sensors are used to collect the brightness matrix of the terminal screen. To reduce the impact of external light sources, a light shield may be positioned outside the light sensor matrix.

[0039] In one embodiment, since a signal light's indication state is not limited to being on or off, but may also be in a flashing state, which can be simply understood as alternating between being on and off, after obtaining the indication state corresponding to the current brightness matrix based on the indication state corresponding to the target brightness matrix, all indication states of the signal light within a preset time period can be obtained. Based on the indication states of the signal light within the preset time period, it is determined whether any of the multiple signal lights switches between the on and off states at a fixed frequency. If so, the signal light is considered to be in a flashing state.

[0040] like Figure 2As shown, an embodiment of the present application also provides a device for acquiring the status of signal lights on a screen, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can: obtain a first brightness matrix, the first brightness matrix being acquired from the terminal screen when all the signal lights are in an off state; and obtain multiple second brightness matrices, the second brightness matrices being acquired from the terminal screen when at least some of the signal lights are in an on state; combine the multiple second brightness matrices with the first brightness matrix several times to select a different second brightness matrix in each combination to obtain several different third brightness matrices; determine a target brightness matrix based on the several different third brightness matrices and the acquired current brightness matrix, and obtain the indication state corresponding to the current brightness matrix based on the indication state corresponding to the target brightness matrix.

[0041] An embodiment of the present application also provides a non-volatile computer storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to: obtain a first brightness matrix, wherein the first brightness matrix is ​​acquired from the terminal screen when all the signal lights are in an off state; and obtain multiple second brightness matrices, wherein the second brightness matrices are acquired from the terminal screen when at least some of the signal lights are in an on state; combine the multiple second brightness matrices with the first brightness matrix several times to select a different second brightness matrix in each combination to obtain several different third brightness matrices; determine a target brightness matrix based on the several different third brightness matrices and the acquired current brightness matrix, and obtain the indication state corresponding to the current brightness matrix based on the indication state corresponding to the target brightness matrix.

[0042] The various embodiments in this application are described in a progressive manner. Similar portions between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences between the other embodiments. In particular, the device and medium embodiments are generally similar to the method embodiments, so their descriptions are relatively simple. For relevant portions, refer to the descriptions of the method embodiments.

[0043] The devices and media provided in the embodiments of the present application correspond one-to-one to the methods. Therefore, the devices and media also have similar beneficial technical effects to their corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.

[0044] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0045] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the steps in the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0046] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0047] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

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

[0049] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.

[0050] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store 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 technology, compact disc read-only memory (CD-ROM), digital versatile disc (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 that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0051] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.

[0052] The foregoing is merely an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all be included within the scope of the claims of the present application.

Claims

1. A method for collecting the status of a signal light on a screen, characterized in that: The method for obtaining the indication status of a signal light on an external terminal screen includes: Obtaining a first brightness matrix, where the first brightness matrix is ​​acquired from the terminal screen when all the signal lights are in an off state; and Acquire a plurality of second brightness matrices, where the second brightness matrices are acquired from the terminal screen when at least some of the signal lights are in an on state; Combining the plurality of second brightness matrices with the first brightness matrix several times, so as to select a different second brightness matrix in each combination, thereby obtaining several different third brightness matrices; Determining a target brightness matrix according to the plurality of different third brightness matrices and the collected current brightness matrix, and obtaining an indication state corresponding to the current brightness matrix according to an indication state corresponding to the target brightness matrix; The determining of the target brightness matrix based on the several different third brightness matrices and the collected current brightness matrix specifically includes: obtaining the overall similarity of the several third brightness matrices with the current brightness matrix by comparing the similarity of elements in the third brightness matrix and the current brightness matrix, and then selecting the third brightness matrix with the highest overall similarity among the several third brightness matrices as the target brightness matrix.

2. The method according to claim 1, characterized in that The obtaining of a plurality of second brightness matrices specifically includes: Determining the number of the signal lights on the terminal screen; When only one signal light is in an on state and the other signal lights are in an off state, a brightness matrix acquired from the terminal screen is used as the second brightness matrix; The plurality of second brightness matrices are obtained by replacing the signal lights in the turned-on state multiple times without repetition, and the number of the second brightness matrices is the same as the number of the signal lights.

3. The method according to claim 2, characterized in that Combining the plurality of second brightness matrices with the first brightness matrix several times, so as to select a different second brightness matrix in each combination to obtain several different third brightness matrices, specifically includes: Generating all combinations of signal light indication states according to the number of the signal lights; According to the first brightness matrix, the plurality of second brightness matrices, and the all combination situations, the plurality of different third brightness matrices corresponding to the all combination situations are generated.

4. The method according to claim 2, characterized in that After obtaining the plurality of second brightness matrices, the method further includes: Establishing a two-dimensional coordinate system on the plane where the terminal screen is located according to the second brightness matrix; The coordinates of a plurality of signal lights in the two-dimensional coordinate system are determined by using the plurality of second brightness matrices.

5. The method according to claim 4, characterized in that Before determining the target brightness matrix based on the plurality of different third brightness matrices and the collected current brightness matrix, the method further includes: Determine a first area on the terminal screen corresponding to a brightness value in the current brightness matrix that is higher than a first preset threshold; determining the traffic lights within the first area according to the coordinates of the plurality of traffic lights in the two-dimensional coordinate system; The second brightness matrix corresponding to the signal lights in the first area is combined with the first brightness matrix several times, so as to select a different second brightness matrix in each combination to obtain the several different third brightness matrices.

6. The method according to claim 4, characterized in that Before determining the target brightness matrix based on the plurality of different third brightness matrices and the collected current brightness matrix, the method further includes: Determine a bright spot on the terminal screen corresponding to a highest brightness value in the current brightness matrix; Determining whether the signal light exists at the coordinates corresponding to the bright spot according to the coordinates of the signal light in the two-dimensional coordinate system; If so, the indication state of the signal light corresponding to the bright spot is the on state.

7. The method according to claim 1, characterized in that Before obtaining the first brightness matrix, the method further includes: Determining the size of the terminal screen and, based on the size of the terminal screen, determining the number of light sensors in a light sensor matrix disposed in front of the terminal screen; the light sensors are used to collect a brightness matrix of the terminal screen; After obtaining the indication state corresponding to the current brightness matrix according to the indication state corresponding to the target brightness matrix, the method further includes: Obtaining the indication status of the signal light within a preset time period; According to the indication state of the signal light within a preset time period, it is determined whether there is a signal light in a flashing state among the multiple signal lights.

8. A device for collecting the status of a signal light on a screen, characterized in that: include: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the method according to any one of claims 1 to 7.

9. A non-volatile computer storage medium storing computer executable instructions, characterized in that: The computer executable instructions are configured to perform the steps of the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Indicating light state identification method and device

    CN107103330A

  • Traffic signal lamp state identification method, device and equipment and storage medium

    CN111310708A