CN115798376A - Control method and device for multi-pattern traffic screen and readable storage medium - Google Patents

Control method and device for multi-pattern traffic screen and readable storage medium Download PDF

Info

Publication number
CN115798376A
CN115798376A CN202211439477.0A CN202211439477A CN115798376A CN 115798376 A CN115798376 A CN 115798376A CN 202211439477 A CN202211439477 A CN 202211439477A CN 115798376 A CN115798376 A CN 115798376A
Authority
CN
China
Prior art keywords
display
output module
reference image
acquiring
sub
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211439477.0A
Other languages
Chinese (zh)
Other versions
CN115798376B (en
Inventor
刘嘉文
陈啟信
黄达森
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chainzone Technology Foshan Co Ltd
Original Assignee
Chainzone Technology Foshan Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chainzone Technology Foshan Co Ltd filed Critical Chainzone Technology Foshan Co Ltd
Priority to CN202211439477.0A priority Critical patent/CN115798376B/en
Publication of CN115798376A publication Critical patent/CN115798376A/en
Application granted granted Critical
Publication of CN115798376B publication Critical patent/CN115798376B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The invention discloses a control method, equipment and a readable storage medium of a multi-pattern traffic screen, which relate to the technical field of display screens, and the control method of the multi-pattern traffic screen comprises the following steps: acquiring a reference image, and analyzing the reference image to generate bitmap data; acquiring drive configuration information, and acquiring a corresponding sub reference region of a next output module in a reference image according to the drive configuration information; acquiring the position information of the next image point data in the chip in the output module in the bitmap data according to the display comparison table and the sub reference area of the output module; outputting the image point data to the actual displayed memory position of the target screen body according to the position information to perform display output; and judging whether all the pixel data of the chips in the output modules are traversed or not, if so, judging whether all the output modules are traversed or not, and if so, finishing one-frame display output. By adopting the invention, each display area can be controlled only by analyzing the same reference image, and the synchronism and the universality of control can be ensured.

Description

Control method and device for multi-pattern traffic screen and readable storage medium
Technical Field
The invention relates to the technical field of display screens, in particular to a control method of a multi-pattern traffic screen, computer equipment and a computer readable storage medium.
Background
As shown in fig. 2, the LED screen with multi-pattern display often includes a regular display area and an irregular display area, wherein the regular display area is generally formed by connecting one or more rectangular LED display modules, and the irregular display area is formed by connecting one or more non-rectangular LED display modules.
In the existing technical scheme, a common display control mode of the irregular display area is to directly control on and off of a plurality of serially connected LEDs by controlling on and off of I O. However, this control method has the following drawbacks:
(1) The control mode of the irregular display area is inconsistent with the control mode of the dot matrix pattern display of the regular display area, which can cause asynchronous control;
(2) The control manner of the irregular display area has no versatility.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a control method, a computer device and a computer readable storage medium for a multi-pattern traffic screen, which can control each display area through the same reference image, and ensure the synchronization and the universality of the control.
In order to solve the technical problem, the invention provides a control method of a multi-pattern traffic screen, which comprises the following steps: s1, acquiring a reference image, and analyzing the reference image to generate bitmap data; s2, acquiring drive configuration information, and acquiring a corresponding sub reference region of a next output module in the reference image according to the drive configuration information; s3, acquiring position information of next image point data in a chip in the output module in the bitmap data according to the display comparison table and the sub reference area of the output module; s4, outputting the image point data to an actual displayed memory position of the target screen body according to the position information to perform display output; s5, judging whether all the pixel data of the chips in the output module are traversed or not, if so, entering the step S6, and if not, returning to the step S3; and S6, judging whether all output modules are traversed or not, finishing one-frame display output when the judgment is yes, and returning to the step S2 when the judgment is no.
As an improvement of the above solution, the reference image constructing step includes: and constructing a reference image according to a target display state of a target screen body, wherein the target screen body comprises at least one display area, the reference image comprises at least one reference area, one display area corresponds to one main reference area, the display area comprises at least one display unit, the main reference area comprises at least one sub reference area, the sub reference area comprises at least one reference unit, and one display unit corresponds to one reference unit.
As an improvement of the above scheme, the driving configuration information records a comparison relationship between the display area and a sub reference area, a comparison relationship between the reference unit and a hardware connection line, a comparison relationship between a hardware topological position and the output module, and a quantity relationship between the output module and a chip.
As an improvement of the above, the display comparison table records position information of the pixel data of the output module relative to its sub reference region in the reference image.
As an improvement of the above scheme, before performing step S1, the method further includes: and after power-on, loading the drive configuration information and analyzing the display comparison table.
As an improvement of the above scheme, the sub reference region has an M × N matrix structure, where M is the number of chips of the output module, and N is the number of pixel data of the chips.
As an improvement of the above scheme, the position information includes ordinate information and abscissa information, where the ordinate information represents a sequence number of the chip, and the abscissa information represents a bit offset within the chip.
As a modification of the above, the output module includes one chip or a plurality of chips connected in series with each other.
Correspondingly, the invention also provides computer equipment which comprises a memory and a processor, wherein the memory stores a computer program, and the computer equipment is characterized in that the processor realizes the steps of the control method of the multi-pattern traffic screen when executing the computer program.
Accordingly, the present invention also provides a computer readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the above-described control method of a multi-pattern traffic screen.
The implementation of the invention has the following beneficial effects:
the invention introduces the drive configuration information and the display comparison table, and can traverse from the last output module of each port to the front according to the hardware topology of the port during display; in the traversing process, a sub reference region of the output module in the reference image is obtained according to the driving configuration information; and traversing from the last image point data of the last chip to the front according to the display comparison table corresponding to the output module, acquiring the color of the image point data in the reference image, and sending the color so as to realize the synchronous display control of each display area.
Meanwhile, the method constructs a targeted reference image, and can map the regular display area and the irregular display area in the target screen body to the reference image for unified processing, so that each display area can be controlled by analyzing the same reference image, and the method has good universality and flexibility.
Drawings
FIG. 1 is a flow chart of a first embodiment of a method of controlling a multi-pattern traffic screen of the present invention;
FIG. 2 is a schematic view of a target display state of a target screen body;
FIG. 3 is a schematic illustration of a reference image in the present invention;
FIG. 4 is a schematic diagram of the location of the hardware topology of the present invention;
FIG. 5 is another schematic illustration of a reference image in the present invention;
fig. 6 is a flowchart of a control method of a multi-pattern traffic screen according to a second embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 shows a flowchart of a control method of a multi-pattern traffic screen according to a first embodiment of the present invention, which includes:
s101, acquiring a reference image, and analyzing the reference image to generate bitmap data;
it should be noted that, a reference image can be constructed in advance according to the target display state of the target screen body; the target screen body comprises at least one display area, the reference image comprises at least one reference area, and one display area corresponds to one main reference area; the display area comprises at least one display unit, the main reference area comprises at least one sub-reference area, the sub-reference area comprises at least one reference unit, and one display unit corresponds to one reference unit.
As shown in fig. 2, the target screen includes five display regions, which are a rectangular dot matrix region inside a triangle, a triangular region, a flashing region composed of four dots, a sign region composed of a letter "slow down", and a white full dot matrix region.
As shown in fig. 3, the reference image includes five reference regions, which are a region a, a region B, a region C, a region D, and a region E, wherein the region a corresponds to a rectangular dot matrix region, the region B corresponds to a triangular region, the region C corresponds to a flashing region, the region D corresponds to a logo region, and the region E corresponds to a full dot matrix region. Preferably, the reference image is an image in BMP format, but not limited thereto.
Therefore, by constructing the reference image, regular display areas (such as rectangular dot matrix areas) and irregular display areas (such as triangular areas, flashing areas, mark areas and full dot matrix areas) in the target screen body can be mapped to the reference image for unified processing, and the synchronism of subsequent control can be effectively ensured.
Accordingly, the main reference region may be divided into a plurality of sub reference regions according to the characteristics of the output module. Further, the sub reference region has an M × N matrix structure, where M is the number of chips of the output module, and N is the number of pixel data of the chips.
S102, acquiring drive configuration information, and acquiring a corresponding sub reference region of a next output module in a reference image according to the drive configuration information;
the driving configuration information records the contrast relationship between the display area and the sub-reference area, the contrast relationship between the reference unit and the hardware connecting line, the contrast relationship between the hardware topological position and the output module, and the quantity relationship between the output module and the chip.
It should be noted that different display areas correspond to different driving configuration information, and the driving configuration information is used to describe a relationship between the target screen body, the reference image, and the hardware.
For example, the following information is recorded in the drive configuration information of the full dot matrix area: (1) A corresponding sub reference region of the full lattice region in the reference image; (2) the reference unit is in comparison relation with the hardware connecting line; (3) outputting the number of chips driven by the module; and (4) an output module corresponding to the hardware topological position.
S103, acquiring the position information of the next image point data in the chip in the output module in the bitmap data according to the display comparison table and the sub reference area of the output module;
as shown in fig. 4, the chip in the present invention is a 16 bit shift register, on which 16 pieces of pixel data are stored, and the output module includes one chip or a plurality of chips connected in series; for example, two chips are connected in series to form a 32 bit shift register. According to the characteristics of the shift register, the first sending point is the last point of the last chip in the chips connected in series; then, for each port to send, the first point to send is the last point of the last chip of the last output module; like an in-queue on a data structure.
It should be noted that the display look-up table may be preset according to actual conditions. Specifically, the display comparison table records the position information of the image point data of the output module relative to the sub reference area in the reference image; further, the position information includes ordinate information and abscissa information, wherein the ordinate information represents a sequence number of the chip, and the abscissa information represents a bit offset within the chip. Preferably, the pixel data is RGB data. The specific display control table is shown in the following table 1:
TABLE 1
Bit0 bit1 Bit2 Bit3 Bit4 Bit5 Bit6 Bit7 Bit8 Bit9 Bit10 Bit11 Bit12 Bit13 Bit14 Bit15
IC0 (15,1) (14,1) (13,1) (12,1) (11,1) (10,1) (9,1) (8,1) (7,1) (6,1) (5,1) (4,1) (3,1) (2,1) (1,1) (0,1)
IC1 (15,0) (14,0) (13,0) (12,0) (11,0) (10,0) (9,0) (8,0) (7,0) (6,0) (5,0) (4,0) (3,0) (2,0) (1,0) (0,0)
As shown in fig. 5, when the output module includes 8 chips, the output module corresponds to the child reference region having a matrix structure of 8 × 16, and if "position information (7,0) = value (1,1)" is recorded in the display map, it indicates that the 0 bit of the 7 th chip in the output module corresponds to the RGB data at the coordinate (1,1) position in the child reference region E1 of 8 × 16. When the output module includes 7 chips, the output module corresponds to a sub reference region having a matrix structure of 7 × 16, and if "position information (4,3) = value (2,1)" is recorded in the display map, it indicates that the 3 rd bit of the 4 th chip in the output module corresponds to RGB data at the position of the coordinate (2,1) in the 7 × 16 sub reference region.
S104, outputting the image point data to the memory position of the target screen body for actual display according to the position information to carry out display output;
s105, judging whether all the image point data of the chips in the output module are traversed, if so, entering the step S106, and if not, returning to the step S103;
it should be noted that the present invention starts to traverse from the last pixel data of the last chip of the current output module.
S106, judging whether all output modules are traversed or not, finishing one-frame display output when the judgment is yes, and returning to the step S102 when the judgment is no.
It should be noted that the present invention starts from the last output module of the port and goes forward.
In summary, according to the hardware topology of the ports, the present invention starts to traverse from the last output module of each port; in the traversing process, a sub reference region of the output module in the reference image is obtained according to the driving configuration information; and traversing from the last pixel data of the last chip to the front according to the display comparison table corresponding to the output module, acquiring the color of the last chip in the reference image, and transmitting the color, thereby realizing the synchronous display control of each display area. Meanwhile, each display area can be controlled by only analyzing the same reference image, and the method has good universality and flexibility.
Referring to fig. 6, fig. 6 is a flowchart illustrating a control method of a multi-pattern traffic screen according to a second embodiment of the present invention, which includes:
and S201, after being electrified, loading the drive configuration information and analyzing and displaying the comparison table.
Different from the first embodiment shown in fig. 1, in this embodiment, after the system is powered on, the driver configuration information needs to be loaded and the display mapping table needs to be analyzed, so as to increase the operation speed of steps S202 to S207.
S202, acquiring a reference image, and analyzing the reference image to generate bitmap data;
s203, acquiring drive configuration information, and acquiring a corresponding sub reference region of a next output module in the reference image according to the drive configuration information;
s204, acquiring the position information of the next image point data in the chip in the output module in the bitmap data according to the display comparison table and the sub reference area of the output module;
s205, outputting the image point data to the memory position of the target screen body for actual display according to the position information to perform display output;
s206, judging whether all the pixel data of the chips in the output module are traversed, if so, entering the step S207, and if not, returning to the step S204;
s207, judging whether all output modules are traversed, finishing one-frame display output if the judgment is yes, and returning to the step S203 if the judgment is no.
Therefore, the display areas with different shapes are controlled in the same mode, so that the control synchronism is ensured; in addition, each display area can be controlled by only analyzing the same reference image, and the method has good universality and flexibility.
Correspondingly, the invention also discloses computer equipment which comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps of the control method of the multi-pattern traffic screen when executing the computer program. Meanwhile, the invention also discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and the computer program is executed by a processor to realize the steps of the control method of the multi-pattern traffic screen.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.

Claims (10)

1. A control method of a multi-pattern traffic screen is characterized by comprising the following steps:
s1, acquiring a reference image, and analyzing the reference image to generate bitmap data;
s2, acquiring drive configuration information, and acquiring a corresponding sub reference region of a next output module in the reference image according to the drive configuration information;
s3, acquiring position information of next pixel data in a chip in the output module in the bitmap data according to the display comparison table and the sub reference area of the output module;
s4, outputting the image point data to an actual displayed memory position of the target screen body according to the position information to perform display output;
s5, judging whether all the pixel data of the chips in the output module are traversed or not, if so, entering the step S6, and if not, returning to the step S3;
and S6, judging whether all output modules are traversed or not, finishing one-frame display output when the judgment is yes, and returning to the step S2 when the judgment is no.
2. The control method of a multi-pattern traffic screen according to claim 1, wherein the reference image constructing step comprises: constructing a reference image according to a target display state of a target screen body, wherein,
the target screen body comprises at least one display area, the reference image comprises at least one reference area, one display area corresponds to one main reference area,
the display area comprises at least one display unit, the main reference area comprises at least one sub-reference area, the sub-reference area comprises at least one reference unit, and one display unit corresponds to one reference unit.
3. The method of claim 2, wherein the driving configuration information records a comparison relationship between the display area and a sub-reference area, a comparison relationship between the reference unit and a hardware connection line, a comparison relationship between a hardware topology position and the output module, and a number relationship between the output module and a chip.
4. The method of claim 2, wherein the display reference table records position information of the dot data of the output module relative to its sub-reference area in the reference image.
5. The method for controlling a multi-pattern traffic screen according to claim 1, further comprising, before performing step S1: and after power-on, loading the drive configuration information and analyzing the display comparison table.
6. The control method of a multi-pattern traffic screen according to claim 1, wherein the sub-reference area has an M x N matrix structure, where M is the number of chips of the output module and N is the number of dot data of the chips.
7. The method of claim 1, wherein the position information comprises ordinate information and abscissa information, wherein the ordinate information represents a sequence number of a chip, and the abscissa information represents a bit offset within the chip.
8. The method of claim 1, wherein the output module comprises one chip or a plurality of chips connected in series.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 8.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 8.
CN202211439477.0A 2022-11-17 2022-11-17 Control method and equipment for multi-pattern traffic screen and readable storage medium Active CN115798376B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211439477.0A CN115798376B (en) 2022-11-17 2022-11-17 Control method and equipment for multi-pattern traffic screen and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211439477.0A CN115798376B (en) 2022-11-17 2022-11-17 Control method and equipment for multi-pattern traffic screen and readable storage medium

Publications (2)

Publication Number Publication Date
CN115798376A true CN115798376A (en) 2023-03-14
CN115798376B CN115798376B (en) 2024-05-03

Family

ID=85438467

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211439477.0A Active CN115798376B (en) 2022-11-17 2022-11-17 Control method and equipment for multi-pattern traffic screen and readable storage medium

Country Status (1)

Country Link
CN (1) CN115798376B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19990085013A (en) * 1998-05-13 1999-12-06 구자홍 Pattern inspector of plasma display panel and inspection method
US20020118157A1 (en) * 2001-02-15 2002-08-29 Seung-Woo Lee LCD, and driving device and method thereof
CN104375789A (en) * 2013-08-14 2015-02-25 杭州海康威视数字技术股份有限公司 Synchronous displaying method and system of tiled display screen
CN108630162A (en) * 2018-05-10 2018-10-09 昆山国显光电有限公司 Display panel and display device
CN109410829A (en) * 2018-12-19 2019-03-01 大连集思特科技有限公司 A kind of control system of abnormity flexible LED display screen
CN111427646A (en) * 2020-03-20 2020-07-17 RealMe重庆移动通信有限公司 Display control method and device, mobile terminal and storage medium
WO2020170317A1 (en) * 2019-02-18 2020-08-27 学校法人玉川学園 Information processing device
CN113838384A (en) * 2020-06-05 2021-12-24 广州市浩洋电子股份有限公司 Special-shaped display screen, special-shaped pixel lamp and control method of special-shaped pixel lamp
CN114185507A (en) * 2021-12-10 2022-03-15 西安诺瓦星云科技股份有限公司 Display screen configuration method and device, storage medium and processor

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19990085013A (en) * 1998-05-13 1999-12-06 구자홍 Pattern inspector of plasma display panel and inspection method
US20020118157A1 (en) * 2001-02-15 2002-08-29 Seung-Woo Lee LCD, and driving device and method thereof
CN104375789A (en) * 2013-08-14 2015-02-25 杭州海康威视数字技术股份有限公司 Synchronous displaying method and system of tiled display screen
CN108630162A (en) * 2018-05-10 2018-10-09 昆山国显光电有限公司 Display panel and display device
CN109410829A (en) * 2018-12-19 2019-03-01 大连集思特科技有限公司 A kind of control system of abnormity flexible LED display screen
WO2020170317A1 (en) * 2019-02-18 2020-08-27 学校法人玉川学園 Information processing device
CN111427646A (en) * 2020-03-20 2020-07-17 RealMe重庆移动通信有限公司 Display control method and device, mobile terminal and storage medium
CN113838384A (en) * 2020-06-05 2021-12-24 广州市浩洋电子股份有限公司 Special-shaped display screen, special-shaped pixel lamp and control method of special-shaped pixel lamp
CN114185507A (en) * 2021-12-10 2022-03-15 西安诺瓦星云科技股份有限公司 Display screen configuration method and device, storage medium and processor

Also Published As

Publication number Publication date
CN115798376B (en) 2024-05-03

Similar Documents

Publication Publication Date Title
CN110214348B (en) Apparatus and method for driving display panel in response to image data
CN1707522B (en) Colour compressing system and method utilizing marginal data bit element shade
US11847996B2 (en) Display device with image shift
KR101895530B1 (en) Display device and driving method of the same
EP1892670B1 (en) Method and system for image monitoring
CN108259797B (en) Method and device for carrying out character superposition on image
CN110223643B (en) Data transmission method, assembly and system and display device
US11270675B2 (en) Burst image data reading method and apparatus, electronic device, and readable storage medium
CN113948031B (en) Driving circuit and related driving method
CN106328031A (en) Display panel and display device having the same
CN106448550B (en) Automatic identification method and device for LED screen parameters
KR101509302B1 (en) Display device, and driving circuit and method thereof
CN115798376A (en) Control method and device for multi-pattern traffic screen and readable storage medium
CN113315930A (en) Image display method, device, medium and system of spliced screen
US7525550B2 (en) Controller driver, mobile terminal using the same, and display panel driving method
CN108417181A (en) The interface of driving circuit defines method and apparatus
CN107564460B (en) Display driving circuit, driving method thereof, display driving system and display device
CN109285497B (en) Pixel design and method to create formats to extend OLED lifetime
US6778169B1 (en) Controller driver for display device and driving method thereof
CN113593466A (en) Display panel driving method, display device and storage medium
CN109410829A (en) A kind of control system of abnormity flexible LED display screen
GB2379149A (en) Display controller including display address generator
CN112199047A (en) Storage device, method, driving chip, display panel and electronic equipment
CN113939863A (en) Array substrate, display panel and display device
CN113487993B (en) Display panel driving method, device and storage medium

Legal Events

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