Dot matrix screen control method, field of view detection method, electronic device and storage medium
Patent Information
- Application Number
- CN202311620201.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-30
- Publication Date
- 2026-09-04
- Estimated Expiration
- 2043-11-30
AI Technical Summary
由于传统的写入算法生成的随机数具有不确定性,第一个生成的随机数很大程度上影响程序中算法的判断复杂程度,每次判断有与上次随机数重复的列,就要重新又生成一次随机数
[0021] The dot matrix screen control method of this invention is simpler than traditional writing algorithms. It can quickly generate a dot matrix screen with a random, disordered, and dispersed distribution, ensuring that each column has exactly one bright spot. This allows for the rapid generation of a dot matrix screen composed of multiple cascaded dot matrix screens with a randomly and disordered distributed bright spot distribution. This method is simple and executable, effectively reducing computational complexity, significantly improving CPU utilization and execution efficiency, and reducing CPU usage.
Smart Images

Figure CN117672122B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of human factors engineering, medical care, driving, and safety, and in particular to a dot matrix screen control method, a field of view detection method, an electronic device, and a storage medium. Background Technology
[0002] To improve accuracy when testing a person's field of vision, it's necessary to simulate the interference present in the real environment when a person is looking at a target. For this purpose, an 8x96 LED dot matrix screen is typically used to generate a set of randomly distributed bright spots, which are then used as noise during the test to simulate the aforementioned interference.
[0003] The 8x96 LED dot matrix screen is based on a cascaded MAX7219 display driver chip and uses the SPI protocol to control the LED lighting and LED dot matrix generation. The 8x96 LED dot matrix screen is composed of 12 cascaded 8x8 LED dot matrix screens, totaling 8 rows and 96 columns. Please refer to [link / reference]. Figure 1 Because the scanning method of the dot matrix screen based on the SPI protocol is row-wise rather than column-wise, writing random numbers to the address in the dot matrix screen is also done row-wise. However, this method cannot guarantee that exactly one LED in each column will be lit.
[0004] Therefore, traditional write algorithms analyze the highlights of each possible generation method to eliminate cases where there are more than two highlights in the same column. Specifically: 1) Generate random numbers from 0 to 255 using a random number generator, for example, please refer to [link to relevant documentation]. Figure 2 1-8; 2) Expand the generated random number in binary form to determine which column is lit (see 1-8); Figure 2 1) Solid dots in the matrix; 2) Judge each column sequentially, the row containing the dots lit in the previous column cannot be lit in the next column; 3) Generate random dots after the exclusion in step 3) using a random number generator; 4) Put all the calculated random dots into an array, and then write them to the dot matrix screen in sequence to achieve non-repeating lighting. Because the random numbers generated by the traditional writing algorithm are uncertain, the first generated random number greatly affects the complexity of the algorithm's judgment in the program. Every time a column is judged to be repeated with the previous random number, a random number must be generated again. Therefore, the traditional algorithm is relatively complex. Generating a random array for just one 8*8 dot matrix screen consumes a lot of CPU time for calculation and processing. The amount of data brought by cascading 12 or more 8*8 screens is even greater, and the CPU processing time is also more, which puts an extra heavy burden on the CPU and greatly reduces the execution efficiency. Summary of the Invention
[0005] In view of this, embodiments of the present invention provide a dot matrix screen control method, a field of view detection method, an electronic device, and a storage medium to eliminate or improve one or more defects existing in the prior art.
[0006] One aspect of the present invention provides a dot matrix screen control method, the method comprising the following steps:
[0007] The layout determination step involves determining the layout of the dot matrix screen so that each column has exactly one bright spot.
[0008] The array formation process involves obtaining the write data corresponding to the determined highlight layout method and forming a write data array.
[0009] The write data array update step involves randomly arranging the write data in the write data array to form an updated write data array, and / or randomly generating a position data array to indicate the position of the write data, and rearranging the write data array based on the order of the write data indicated by the randomly generated position data array to form an updated write data array.
[0010] The bright spot dot matrix generation step involves writing the updated write data in the write data array into the dot matrix screen row by row, thereby generating the corresponding bright spot dot matrix.
[0011] In some embodiments of the present invention, the bright spot layout is determined according to a set task, the set task including generating interference signals for field of view detection.
[0012] In some embodiments of the present invention, the highlight layout is such that in a row-by-row driven full-cycle dot matrix screen, only one dot in each column is lit, and one dot is lit in each row during driving.
[0013] In some embodiments of the present invention, the step of writing the data array update and the step of generating the bright spot matrix are repeatedly executed in a complete cycle driven by row to form a dynamic bright spot matrix.
[0014] In some embodiments of the present invention, the method is applied to a cascaded dot matrix screen composed of multiple cascaded dot matrix screens; for different dot matrix screens in the cascaded dot matrix screen, the write data array update step and the bright spot dot matrix generation step are repeatedly executed according to the complete cycle of row-by-row driving to form a dynamic bright spot dot matrix of the cascaded dot matrix screen.
[0015] In some embodiments of the present invention, the method is applied to a cascaded dot matrix screen composed of multiple dot matrix screens cascaded together; different dot matrix screens in the cascaded dot matrix screen are independently controlled to generate their own bright dot matrix.
[0016] In some embodiments of the present invention, for different dot matrix screens in the cascaded dot matrix screen, the randomly generated position data arrays are the same or different; and / or, for different dot matrix screens in the cascaded dot matrix screen, the randomly arranged write data arrays are the same or different.
[0017] In some embodiments of the present invention, when a location data array for indicating the location of written data is randomly generated, the step of writing the written data in the updated written data array to the dot matrix screen in a row-by-row manner includes: using the location data array as the index of the written data array input to the dot matrix screen, extracting the written data in the input written data array in the order indicated by the index, and writing it to the dot matrix screen in a row-by-row manner.
[0018] Another aspect of the present invention provides a field of view detection method, wherein the method utilizes a bright dot matrix generated by a cascaded dot matrix screen composed of multiple cascaded dot matrix screens as interference points in the human visual field range testing process to test the human eye's visual field range, wherein the bright dot matrix corresponding to each dot matrix screen in the cascaded dot matrix screen is generated by the aforementioned dot matrix screen control method.
[0019] Another aspect of the present invention provides an electronic device including a processor and a memory, wherein the memory stores computer instructions, and the processor is configured to execute the computer instructions stored in the memory. When the computer instructions are executed by the processor, the electronic device implements the steps of the aforementioned dot matrix screen control method and / or the steps of the aforementioned field of view detection method.
[0020] Another aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the aforementioned dot matrix screen control method and / or the steps of the aforementioned field of view detection method.
[0021] The dot matrix screen control method of this invention is simpler than traditional writing algorithms. It can quickly generate a dot matrix screen with a random, disordered, and dispersed distribution, ensuring that each column has exactly one bright spot. This allows for the rapid generation of a dot matrix screen composed of multiple cascaded dot matrix screens with a randomly and disordered distributed bright spot distribution. This method is simple and executable, effectively reducing computational complexity, significantly improving CPU utilization and execution efficiency, and reducing CPU usage.
[0022] Therefore, the field of view detection method of the present invention can better simulate the real environment when a person looks at a target, based on the random and disordered scattered distribution of bright spot dot matrix generated by the above dot matrix screen control method, and realize field of view detection more quickly.
[0023] Additional advantages, objects, and features of the invention will be set forth in part in the description which follows, and will also become apparent in part to those skilled in the art upon studying the description, or may be learned by practice of the invention. The objects and other advantages of the invention can be realized and obtained by means of the structures specifically pointed out in the description and drawings.
[0024] Those skilled in the art will understand that the objectives and advantages achievable with the present invention are not limited to those specifically described above, and that the above and other objectives achievable with the present invention will become clearer from the following detailed description. Attached Figure Description
[0025] The accompanying drawings, which are provided to further illustrate the invention and form part of this application, are not intended to limit the scope of the invention.
[0026] Figure 1 This is a structural diagram of an 8*96 LED dot matrix screen in the prior art.
[0027] Figure 2 This is a schematic diagram of steps 1) and 2) in the traditional writing algorithm of the prior art.
[0028] Figure 3 This is a flowchart illustrating an LED dot matrix screen control method according to an embodiment of the present invention.
[0029] Figure 4 This is a schematic diagram of a predetermined bright spot layout for an 8*8 dot matrix screen in one embodiment of the present invention.
[0030] Figure 5 This is a schematic diagram of a bright dot matrix generated by an 8*8 dot matrix screen in one embodiment of the present invention.
[0031] Figure 6 This is a schematic diagram of a predetermined bright spot layout for a 16*16 dot matrix screen in one embodiment of the present invention.
[0032] Figure 7 This is a schematic diagram of a bright dot matrix generated by a 16*16 dot matrix screen in one embodiment of the present invention.
[0033] Figure 8 This is a schematic diagram of a predetermined bright spot layout for a 5*7 dot matrix screen in one embodiment of the present invention.
[0034] Figure 9 This is a schematic diagram of a bright dot matrix generated by a 5*7 dot matrix screen in one embodiment of the present invention. Detailed Implementation
[0035] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the embodiments and accompanying drawings. Here, the illustrative embodiments and descriptions of this invention are used to explain the invention, but are not intended to limit the invention.
[0036] It should also be noted that, in order to avoid obscuring the invention with unnecessary details, only the structures and / or processing steps closely related to the solution according to the invention are shown in the accompanying drawings, while other details that are not closely related to the invention are omitted.
[0037] It should be emphasized that the term "including / comprises" as used herein refers to the presence of a feature, element, step, or component, but does not exclude the presence or addition of one or more other features, elements, steps, or components.
[0038] In the following description, embodiments of the invention will be illustrated with reference to the accompanying drawings. In the drawings, the same reference numerals represent the same or similar parts, or the same or similar steps.
[0039] To simplify the control algorithm for writing to a dot matrix display, effectively reduce computational complexity, improve algorithm execution efficiency, and enable the dot matrix display to generate a random dot matrix that guarantees exactly one light in each column, this invention provides a dot matrix display control method. Please see below. Figure 3 An embodiment of the dot matrix screen control method of the present invention includes the following steps:
[0040] Step S110, layout determination step, determines the highlight layout method in which each column of the dot matrix screen has one and only one highlight.
[0041] The dot matrix screen is, for example, an LED dot matrix screen or an OLED dot matrix screen. The bright spot layout in this step can be, for example, a sub-diagonal bright spot matrix, a main diagonal bright spot matrix, or a V-shaped bright spot matrix layout, or other bright spot layout methods, as long as each column has exactly one illuminated LED. Other bright spot layout methods include, but are not limited to, ordered dispersed bright spot matrices, disordered dispersed bright spot matrices, bright spot matrices with at least one row without bright spots, and dot matrices with exactly one bright spot in each row and each column.
[0042] In this embodiment of the invention, a highlight layout method that ensures each column of the dot matrix screen has exactly one highlight can be preset or stored, and this layout method can be used as the determined highlight layout method. Alternatively, a highlight layout method can be randomly generated or randomly selected from a plurality of pre-stored highlight layout methods as the determined highlight layout method.
[0043] Step S120, array formation step: obtain the write data corresponding to the determined highlight layout method, and form a write data array.
[0044] In this embodiment of the invention, the determined bright spot layout method provides a method for writing data to a certain dot matrix screen row by row, and the order in which these data are written to the dot matrix screen row by row. Based on this order, a data writing array can be formed. In this step S120, the number of data to be written when writing data to the current dot matrix screen is the same as the number of rows of the current dot matrix screen.
[0045] Step S130, write data array update step, randomly arrange the write data in the write data array to form an updated write data array, and / or randomly generate a position data array to indicate the position of the write data, and rearrange the write data array based on the order of the write data indicated by the randomly generated position data array to form an updated write data array.
[0046] In this step, an updated write data array is generated either by randomly sorting the write data in the write data array directly, or by randomly generating a set of position data arrays indicating the write order (or position) of the write data in the write data array, and then reordering the write data in the write data array based on these position data arrays. In other words, this step keeps the content of the write data in the write data array unchanged, only changing the write order of the write data.
[0047] Step S140, the bright spot matrix generation step, involves writing the updated write data in the write data array row by row into the dot matrix screen to generate the corresponding bright spot matrix.
[0048] The determined bright spot layout ensures that only one light is lit in each column. Since step S130 only changes the writing order of the written data without changing the size of the written data, the bright spot array generated in step S140 also satisfies the condition that only one light is lit in each column, that is, there is only 1 bright spot, and the distribution of bright spots is random and disordered.
[0049] More specifically, in this embodiment of the invention, a dot matrix layout with one and only one bright spot per column is determined, and then the data to be written to the dot matrix screen and the writing order are determined based on this layout. Then, by regenerating a write data array with a changed writing order (i.e., updating the write data array), the dot matrix generated by the dot matrix screen is made random and disordered. There are two ways to update the write data array. The first way is to directly randomly rearrange the write data in the write data array and input the rearranged write data group into the dot matrix screen. This method randomly shuffles the order of the write data each time before inputting the write data array into the dot matrix screen. The order of the write data can be randomly shuffled at predetermined intervals or in each line-by-line scan cycle. The second method is based on a randomly generated position data array indicating the order of written data. This generated position data array is used as the index of the written data array input to the dot matrix screen. The written data is extracted from the input written data array according to the index indication order and written to the dot matrix screen row by row. In this case, the input written data array can be the written data array before the update, or it can be the written data array rearranged using the previous method (i.e., combined with the first method). However, since the written data is extracted according to the index indication order, it is actually written to the dot matrix screen row by row according to the order of the written data in the updated written data array, thereby generating a new bright dot matrix. Either the first or second method can be chosen, or they can be combined. This also achieves a more random and dispersed interference signal, thus improving the accuracy of the main task of field-of-view detection. Based on the above steps of this invention, when the bright dot layout is a dot matrix with one bright dot in each row and column, the final bright dot matrix generated by the dot matrix screen has the characteristics of random disorder and dispersed distribution.
[0050] In some embodiments of the present invention, the above-described dot matrix screen control method can be applied to different display cycles of the dot matrix screen. For different display cycles of the dot matrix screen, the bright dot matrix generated by the dot matrix screen can be the same or different.
[0051] In some embodiments of the present invention, the step of writing the data array update and the step of generating the bright spot matrix can be repeatedly executed according to the complete cycle of row-by-row driving, so as to form a dynamic bright spot matrix.
[0052] In some embodiments of the present invention, the bright spot layout can be determined according to a set task, which may include generating interference signals for visual field detection. During visual field detection, the test signal seen by the subject needs to be a column of bright spots (called the "stimulus signal"), while the interference signal needs to be designed with different column lighting layouts to avoid the interference signal added to the dot matrix screen being the same as the stimulus signal. Further, as an example, the task of generating interference signals for visual field detection may require the dot matrix screen to meet the following bright spot layout: in a row-by-row driving complete cycle dot matrix screen, each column has exactly one point lit, and each row is driven with one point lit. However, the present invention is not limited to this. For example, it may also require that each column of the dot matrix screen has exactly one light lit, and each row is not required to have one point lit. For example, one point may be lit every other row, or one point may be lit when each of the first few rows is driven. That is, different bright spot layouts can be determined according to specific task requirements. The present invention can also quickly control the dot matrix screen to display in a random, disordered, and dispersed manner.
[0053] In some embodiments of the present invention, the data to be written to the dot matrix screen can be in binary, decimal, or hexadecimal form. In these embodiments, 0 and 1 in the binary expanded data can represent the results of the LEDs on the dot matrix screen being off and on, respectively. Further optionally, the data to be written to the dot matrix screen can be data without zeros. When the data is non-zero, under the premise that only one LED in each column is lit, the data written to each row of the dot matrix screen will be different. Alternatively, the data to be written to the dot matrix screen can also contain zeros; however, to ensure that the randomly generated bright dot matrix has a random, disordered, and dispersed distribution, the number of zeros must be limited according to the number of rows in the dot matrix screen. For example, when the dot matrix screen is an 8*8 LED dot matrix screen, the data to be written can contain a maximum of 3 zeros, and each zero should ideally be written in three non-adjacent rows.
[0054] In one embodiment of the present invention, the dot matrix screen can be an n*n or m*p dot matrix screen, where n, m, and p are all integers greater than or equal to 2, and m < p. For example, the dot matrix screen can be a 4*4, 4*5, 5*7, 8*8, or 16*16 dot matrix screen with different rows and columns. Preferably, the dot matrix screen is an n*n dot matrix screen, and the data to be written to the dot matrix screen is data without zeros. This ensures that the dot matrix screen's dot matrix layout satisfies that each column has exactly one dot matrix and each row also has exactly one dot matrix. Consequently, the dot matrix generated by the dot matrix screen's dot matrix screen dot matrix by the above-described dot matrix screen dot matrix generation method not only has the characteristics of random and disordered dispersion, but also can be randomly and disorderedly and uniformly distributed on the dot matrix screen.
[0055] In some embodiments of the present invention, each location data in the location data array is different, and each location data in the location data array serves as an index of the write data array. Then, the write data at that index in the write data array is extracted sequentially according to the data order in the location data array, and the sequentially extracted write data is then used to form an updated write data array. For details, please refer to Examples 1 and 2 below.
[0056] In some embodiments of the present invention, the provided dot matrix screen control method can be used to control a cascaded dot matrix screen composed of multiple cascaded dot matrix screens. In this case, different dot matrix screens in the cascaded dot matrix screen can be independently controlled to generate their own bright dot matrices. Alternatively, for different dot matrix screens in the cascaded dot matrix screen, the write data array update step and the bright dot matrix generation step can be repeatedly executed according to a complete cycle of row-by-row driving, thereby forming a dynamic bright dot matrix of the cascaded dot matrix screen.
[0057] In some embodiments of the present invention, in certain application scenarios, such as in field-of-view detection tasks, it is necessary to dynamically control the dot matrix screen or cascaded dot matrix screen. This can be achieved by repeatedly executing the write data array update step and the bright dot matrix generation step according to the complete cycle of line-by-line driving.
[0058] This invention can quickly generate bright dot matrices for cascaded dot matrix displays, thereby significantly improving CPU utilization and execution efficiency while reducing CPU usage. For different dot matrix displays within the cascaded display, the bright dot matrices generated by the displays may be the same or different. Specifically, for different dot matrix displays, the position data arrays randomly generated in step S130 can all be the same, all different, or partially the same with other parts different. Similarly, the updated write data arrays corresponding to these position data arrays can also all be the same, all different, or partially the same with other parts different. Finally, step S140 writes the write data from the updated write data array row by row into the dot matrix display, ensuring that the bright dot matrices generated by different dot matrix displays can all be different, all be the same, or partially the same with other parts different. This results in the entire bright dot matrix generated by the cascaded display having a random, disordered, and dispersed distribution of bright spots, even without repetition. Simultaneously, the generated bright dot matrix ensures that all lights in each column are lit, and only one light is lit at a time.
[0059] Specific examples are listed below:
[0060] Example 1:
[0061] The dot matrix screen is an 8x8 LED dot matrix screen or an OLED dot matrix screen. In this embodiment, the dot matrix layout method determined in step S110, where each column of the current 8x8 dot matrix screen has exactly one bright spot, is a sub-diagonal dot matrix. Please refer to [link to relevant documentation]. Figure 4 A lattice of bright spots formed by solid dots in the center.
[0062] In step S120, according to Figure 4 The pre-determined dot matrix layout shown generates write data to be sequentially written row-by-row to the current 8x8 dot matrix screen, consisting of 1, 2, 4, 8, 16, 32, 64, and 128. These data can also be converted to their corresponding hexadecimal numbers: 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, and 0x80. The position data contains eight distinct values, ranging from 0 to 7. The values 0, 1, 2, 3, 4, 5, 6, and 7 correspond one-to-one with 1, 2, 4, 8, 16, 32, 64, and 128, respectively. The initial data array to be written is Buffer[8] = {1, 2, 4, 8, 16, 32, 64, 128}, where Buffer[0] = 1, Buffer[1] = 2, Buffer[2] = 4, Buffer[3] = 8, Buffer[4] = 16, Buffer[5] = 32, Buffer[6] = 64, Buffer[7] = 128; or Buffer[8] = {0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80}, where Buffer[0] = 0x01, Buffer[1] = 0x02, Buffer[2] = 0x04, Buffer[3] = 0x08, Buffer[4] = 0x10, Buffer[5] = 0x20, Buffer[6] = 0x40, Buffer[7] = 0x80.
[0063] In step S130, one of the randomly generated position data arrays is 5, 2, 0, 7, 3, 1, 6, 4. According to the one-to-one correspondence between the position data and the written data, the corresponding written data is extracted from Buffer[8] in the order of the data in the above array. That is, the extracted written data are Buffer[5] = 32 or 0x20, Buffer[2] = 4 or 0x04, Buffer[0] = 1 or 0x01, Buffer[7] = 128 or 0x80, Buffer[3] = 8 or 0x08, Buffer[1] = 2 or 0x02, Buffer[6] = 64 or 0x40, Buffer[4] = 16 or 0x10. The resulting updated written data array is Value[8] = {32, 4, 1, 128, 8, 2, 64, 16} or Value[8] = {0x20, 0x04, 0x01, 0x80, 0x08, 0x02, 0x40, 0x10}.
[0064] In step S140, the data 32, 4, 1, 128, 8, 2, 64, 16 or 0x20, 0x04, 0x01, 0x80, 0x08, 0x02, 0x40, 0x10 in Value[8] are written sequentially row by row into the 8*8 dot matrix screen to generate the corresponding bright dot matrix. Please refer to [link to relevant documentation]. Figure 5 A lattice of bright spots formed by solid dots in the center.
[0065] Example 2:
[0066] The dot matrix screen is a 16*16 LED dot matrix screen or an OLED dot matrix screen. In this embodiment, the dot matrix layout method determined in step S110, where each column of the current 16*16 dot matrix screen has exactly one bright spot, is a sub-diagonal bright spot dot matrix. Please refer to [link to relevant documentation]. Figure 6 A lattice of bright spots formed by solid dots in the center.
[0067] In step S120, the write data generated according to the above-mentioned highlight layout method and to be written sequentially to the current 16*16 dot matrix screen are 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, and 32768. The position data contains sixteen different data, which can be 0-15. 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, and 15 correspond one-to-one with 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, and 32768, respectively. The initial data array to be written is Buffer
[16] = {1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768}, where Buffer[0] = 1, Buffer[1] = 2, Buffer[2] = 4, Buffer[3] = 8, Buffer[4] = 16, Buffer[5] = 32, Buffer[6] = 64, Buffer[7] = 128, Buffer[8] = 256, Buffer[9] = 512, Buffer
[10] = 1024, Buffer
[11] = 2048, Buffer
[12] = 4096, Buffer
[13] = 8192, Buffer
[14] = 16384, Buffer
[15] = 32768.
[0068] In step S130, one of the randomly generated position data arrays is 5, 12, 10, 7, 3, 11, 6, 4, 15, 14, 0, 13, 2, 1, 9, 8. According to the one-to-one correspondence between the position data and the written data, the corresponding written data is extracted from Buffer
[16] in the order of the data in the above array. That is, the extracted written data are Buffer[5] = 32, Buffer
[12] = 4096, Buffer
[10] = 1024, Buffer[7] = 128, Buffer[3] = 8, Buffer
[11] = 2048, Buffer
[12] = 2048, Buffer
[13] = 2048, Buffer
[14] = 2048, Buffer
[15] = 2048, Buffer[16 ...6] = 2048, Buffer
[17] = 2048, Buffer
[18] = 2048, Buffer
[19] = 2048, Buffer
[10] = 2048, Buffer
[11] = 2048, Buffer
[12] = 2048, Buffer
[19] = 2048, Buffer
[11] = 2048, Buffer
[12] = 2048, Buffer
[12] = 2048, Buffer
[12] = 2048, Buffer
[13] = 2048, Buffer
[12] = 2048, Buffer
[13] = [6] = 64, Buffer[4] = 16, Buffer
[15] = 32768, Buffer
[14] = 16384, Buffer[0] = 1, Buffer
[13] = 8192, Buffer[2] = 4, Buffer[1] = 2, Buffer[9] = 512, Buffer[8] = 256, and the resulting update write data array is Value
[16] = {32, 4096, 1024, 128, 8, 2048, 64, 16, 32768, 16384, 1, 8192, 4, 2, 512, 256}.
[0069] In step S140, the data 32, 4096, 1024, 128, 8, 2048, 64, 16, 32768, 16384, 1, 8192, 4, 2, 512, 256 in Value
[16] are written sequentially row by row into a 16*16 dot matrix screen, thereby generating the corresponding bright dot matrix. Please refer to [link to relevant documentation]. Figure 7 A lattice of bright spots formed by solid dots in the center.
[0070] Example 3:
[0071] The dot matrix screen is a 5*7 dot matrix screen or an OLED dot matrix screen. In this embodiment, the dot matrix layout determined in step S110, where each column of the current 5*7 dot matrix screen has exactly one bright spot, is a V-shaped dot matrix with the left side higher than the right side. Please refer to [link to relevant documentation]. Figure 8 A lattice of bright spots formed by solid dots in the center.
[0072] In step S120, the write data generated according to the above-mentioned highlight layout method and to be written to the current 5*7 dot matrix screen in rows are 64, 32, 17, 10, and 4. The position data contains five different data, which can be 11-15. 11, 12, 13, 14, and 15 correspond to 64, 32, 17, 10, and 4, respectively. The initial write data array formed is Buffer[5] = {64, 32, 17, 10, 4}, where Buffer[0] = 64, Buffer[1] = 32, Buffer[2] = 17, Buffer[3] = 10, and Buffer[4] = 4. Subtract 11 from each number in 11-15 to get the corresponding 0-4.
[0073] In step S130, one of the randomly generated position data arrays is 14, 12, 15, 11, 13. According to the correspondence between position data and written data, the corresponding written data is extracted from Buffer[5] in the order of the data in the above array. That is, the arrays 3, 1, 4, 0, 2 obtained by subtracting 11 from the position data arrays 14, 12, 15, 11, 13 are used as the subscripts of Buffer[5]. The corresponding written data is extracted from Buffer[5] in the order of the data in this array. That is, the extracted written data are Buffer[3] = 10, Buffer[1] = 32, Buffer[4] = 4, Buffer[0] = 64, Buffer[2] = 17. The resulting updated written data array is Value[5] = {10, 32, 4, 64, 17}.
[0074] In step S140, the data 10, 32, 4, 64, and 17 in Value[5] are written sequentially row by row into a 5*7 dot matrix screen to generate the corresponding bright dot matrix. Please refer to [link to relevant documentation]. Figure 9 A lattice of bright spots formed by solid dots in the center.
[0075] This invention also provides a field of view detection method. The method uses a bright dot matrix generated by a cascaded dot matrix screen composed of multiple cascaded dot matrix screens as an interference signal in the human eye's field of view range test process to detect the human eye's field of view range. The bright dot matrix corresponding to each dot matrix screen in the cascaded dot matrix screen is generated by the aforementioned dot matrix screen control method.
[0076] In this embodiment of the invention, since the bright spots in the bright spot array generated by the cascaded dot matrix screen have the characteristics of random and disordered dispersion, using them as interference signals when testing the field of view can simulate interference signals generated in the real environment, thereby helping to improve the accuracy of the test human eye's field of view range.
[0077] Furthermore, in a preferred embodiment of the present invention, the dot matrix screen is an 8*8 dot matrix screen, and the cascaded number of 8*8 dot matrix screens is 12. Generally speaking, the visual field range of a person's left and right eyes is within 100 degrees, but it varies from person to person. During the testing of a person's visual field, the cascaded LED dot matrix screens are set on the left and right sides at a certain distance directly in front of the test subject. Each LED dot matrix screen in the cascaded LED dot matrix screen is an 8*8 dot matrix screen, and the cascaded number of these 8*8 dot matrix screens is set to 12. This can accurately test the specific visual field range of different people and avoid the wasteful use of dot matrix screens.
[0078] This invention generates more random and dispersed interference signals in time by shuffling the arrangement of written data in a random data array with different line-by-line scanning cycles, thereby helping to improve the accuracy of detection results for primary tasks such as field-of-view detection. This invention is not only applicable to field-of-view detection scenarios but also to situations requiring rapid, random, and disordered spotting on a matrix screen.
[0079] The field-of-view detection method of the present invention can better simulate the real environment when a person looks at a target, based on the random and disordered scattered distribution of bright spot arrays generated by the above dot matrix screen control method, and achieve field-of-view detection more quickly.
[0080] Corresponding to the above method, an electronic device according to an embodiment of the present invention includes a processor and a memory. The memory stores computer instructions, and the processor executes the computer instructions stored in the memory. When the computer instructions are executed by the processor, the electronic device implements the steps of the aforementioned dot matrix screen control method and / or the steps of the aforementioned field of view detection method. This electronic device may be a computer device or a tablet computer, etc.
[0081] This invention also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the aforementioned dot-matrix screen control method and / or the steps of the aforementioned field-of-view detection method. The computer-readable storage medium may be a tangible storage medium, such as random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, register, floppy disk, hard disk, removable storage disk, CD-ROM, or any other form of storage medium known in the art.
[0082] Those skilled in the art will understand that the exemplary components, systems, and methods described in conjunction with the embodiments disclosed herein can be implemented in hardware, software, or a combination of both. Whether implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this invention. When implemented in hardware, it can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this invention are programs or code segments used to perform the desired tasks. The programs or code segments can be stored in a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried in a carrier wave.
[0083] It should be clarified that the present invention is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of the present invention.
[0084] In this invention, features described and / or illustrated for one embodiment may be used in the same or similar manner in one or more other embodiments, and / or combined with or in place of features of other embodiments.
[0085] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, various modifications and variations of the embodiments of the present invention are possible. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A dot matrix screen control method, characterized in that, include: The layout determination step involves determining the layout method where each column of the dot matrix screen has exactly one bright spot. The array formation process involves obtaining the write data corresponding to the determined highlight layout method and forming a write data array. The write data array update step involves randomly arranging the write data in the write data array to form an updated write data array, or randomly generating a position data array to indicate the position of the write data, and rearranging the write data array based on the order of the write data indicated by the randomly generated position data array to form an updated write data array. The bright spot dot matrix generation step involves writing the updated write data in the write data array into the dot matrix screen row by row to generate the corresponding bright spot dot matrix. In the case of a randomly generated position data array for indicating the location of the written data, the step of writing the written data in the updated written data array to the dot matrix screen in a row-by-row manner includes: using the position data array as the index of the written data array input to the dot matrix screen, extracting the written data in the input written data array in the order indicated by the index, and writing it to the dot matrix screen in a row-by-row manner.
2. The method according to claim 1, characterized in that, The layout of the highlights is determined according to a set task, which includes generating interference signals for field of view detection.
3. The method according to claim 2, characterized in that, The highlight layout method is a row-by-row driven full-cycle dot matrix screen where only one dot in each column is lit, and one dot is lit when each row is driven.
4. The method according to claim 1, characterized in that, The data array update step and the bright spot matrix generation step are repeatedly executed in a row-by-row driving cycle to form a dynamic bright spot matrix.
5. The method according to claim 1, characterized in that, The method is applied to a cascaded dot matrix screen composed of multiple cascaded dot matrix screens. For different dot matrix screens in the cascaded dot matrix screen, the write data array update step and the bright spot dot matrix generation step are repeatedly executed according to the complete cycle of row-by-row driving to form a dynamic bright spot dot matrix of the cascaded dot matrix screen.
6. The method according to claim 1, characterized in that, The method is applied to a cascaded dot matrix screen composed of multiple cascaded dot matrix screens. The different dot matrix screens in the cascaded dot matrix screen are independently controlled to generate their own bright dot matrix.
7. The method according to claim 5 or 6, characterized in that, For different dot matrix screens in the cascaded dot matrix screen, the randomly generated position data arrays may be the same or different; and / or, For different dot matrix screens in the cascaded dot matrix screen, the randomly arranged write data arrays may be the same or different.
8. A method for detecting a field of view, characterized in that, The method utilizes the bright dot matrix generated by a cascaded dot matrix screen composed of multiple cascaded dot matrix screens as interference points in the human visual field range testing process to test the human eye's visual field range, wherein the bright dot matrix corresponding to each dot matrix screen in the cascaded dot matrix screen is generated by the dot matrix screen control method as described in any one of claims 1 to 7.
9. An electronic device comprising a processor and a memory, characterized in that, The memory stores computer instructions, and the processor executes the computer instructions stored in the memory. When the computer instructions are executed by the processor, the electronic device implements the steps of the dot matrix screen control method as described in any one of claims 1 to 7 and / or the steps of the field of view detection method as described in claim 8.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the steps of the dot matrix screen control method as described in any one of claims 1 to 7 and / or the steps of the field of view detection method as described in claim 8.
Citation Information
Patent Citations
Attention breadth detection method and device and computing equipment
CN111714139A
Display apparatus and controlling method thereof
US20200312228A1