Dot matrix pixel point conversion method and device, computer equipment and storage medium

By acquiring binarized images and performing data segmentation and pixel mapping, the problems of low image quality and low conversion efficiency of dot matrix display systems in the prior art are solved, and more efficient and accurate dot matrix pixel point conversion is achieved.

CN120219152APending Publication Date: 2025-06-27SHENZHEN DAMO DAZHI CONTROL TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510319323.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-18
Publication Date
2025-06-27

AI Technical Summary

Technical Problem

When existing dot matrix display systems map image contents by pixels, the image quality is lower and the conversion efficiency is lower.

Method used

By obtaining a binarized image matching the demonstration data, data segmentation and pixel mapping are performed, and multiple dot matrix pixel point data are generated.

Benefits of technology

The accuracy and efficiency of dot matrix pixel point conversion is improved, and the demonstration data can be converted into dot matrix pixel points more accurately.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120219152A_ABST
    Figure CN120219152A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a dot matrix pixel point conversion method and device, computer equipment and a storage medium, and the method comprises the steps: obtaining a binary image matched with demonstration data, and the binary image comprises at least one piece of to-be-converted data; data segmentation and pixel mapping are carried out on the binarized image to obtain at least one piece of dot matrix pixel point data, one piece of data to be converted corresponds to one piece of dot matrix pixel point data, and one piece of dot matrix pixel point data comprises a plurality of dot matrix pixel points. According to the invention, the conversion precision and conversion efficiency of the dot matrix pixel points can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of dot matrix display, and particularly to a method, device, computer device and storage medium for converting dot matrix pixel points. Background Art

[0002] Dot matrix display technology is widely used in various fields, such as advertising display, smart home devices, drone light shows, etc. Traditional dot matrix display systems usually directly map image content by pixel points to obtain dot matrix pixel points. However, the accuracy of the directly mapped image quality is relatively low, and the conversion efficiency is relatively low. Summary of the Invention

[0003] Embodiments of the present invention provide a method, device, computer device and storage medium for converting dot matrix pixel points, aiming to solve the problems of relatively low accuracy and efficiency of the current dot matrix pixel point conversion method.

[0004] In a first aspect, embodiments of the present invention provide a method for converting dot matrix pixel points, the method comprising:

[0005] Obtaining a binarized image matching the presentation data, wherein the binarized image includes at least one data to be converted;

[0006] Performing data segmentation and pixel mapping on the binarized image respectively to obtain at least one dot matrix pixel point data, wherein one data to be converted corresponds to one dot matrix pixel point data, and one dot matrix pixel point data includes multiple dot matrix pixel points.

[0007] In a second aspect, embodiments of the present invention further provide a device for converting dot matrix pixel points, the device comprising:

[0008] A first obtaining unit, configured to obtain a binarized image matching the presentation data, wherein the binarized image includes at least one data to be converted;

[0009] A segmentation and mapping unit, configured to perform data segmentation and pixel mapping on the binarized image respectively to obtain at least one dot matrix pixel point data, wherein one data to be converted corresponds to one dot matrix pixel point data, and one dot matrix pixel point data includes multiple dot matrix pixel points.

[0010] In a third aspect, embodiments of the present invention further provide a computer device, which includes a memory and a processor, and a computer program is stored on the memory, and when the processor executes the computer program, the above method is implemented.

[0011] Fourthly, an embodiment of the present invention further provides a computer-readable storage medium storing a computer program, which can implement the above method when executed by a processor.

[0012] An embodiment of the present invention provides a dot matrix pixel conversion method, device, computer device, and storage medium. The method includes: obtaining a binarized image matching the presentation data, where the binarized image includes at least one data to be converted; performing data segmentation and pixel mapping on the binarized image respectively to obtain at least one dot matrix pixel data, where one data to be converted corresponds to one dot matrix pixel data, and one dot matrix pixel data includes multiple dot matrix pixels. The present invention can obtain a binarized image of the presentation data when it is necessary to convert the presentation data into dot matrix pixels. The binarized image includes at least one data to be converted, and then perform data segmentation and pixel mapping on the binarized image to obtain dot matrix pixel data. The obtained dot matrix pixel data includes multiple dot matrix pixels, so as to realize the conversion of the presentation data into dot matrix pixels, and can also improve the conversion accuracy and efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] To more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0014] Figure 1 is a flowchart of the dot matrix pixel conversion method provided by an embodiment of the present invention;

[0015] Figure 2 is a second sub-flowchart of the dot matrix pixel conversion method provided by an embodiment of the present invention;

[0016] Figure 3 is a third sub-flowchart of the dot matrix pixel conversion method provided by an embodiment of the present invention;

[0017] Figure 4 is a fourth sub-flowchart of the dot matrix pixel conversion method provided by an embodiment of the present invention;

[0018] Figure 5 is a fifth sub-flowchart of the dot matrix pixel conversion method provided by an embodiment of the present invention;

[0019] Figure 6 is a sixth sub-flowchart of the dot matrix pixel conversion method provided by an embodiment of the present invention;

[0020] Figure 7It is a schematic diagram of the seventh sub - process of the dot - matrix pixel conversion method provided by an embodiment of the present invention;

[0021] Figure 8 It is a schematic block diagram of the dot - matrix pixel conversion device provided by an embodiment of the present invention;

[0022] Figure 9 It is a schematic block diagram of a computer device provided by an embodiment of the present invention. Detailed implementation manners

[0023] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0024] It should be understood that when used in this specification and the appended claims, the terms "comprises" and "comprising" indicate the presence of the described features, wholes, operations, elements and / or components, but do not preclude the presence or addition of one or more other features, wholes, operations, elements, components and / or their combinations.

[0025] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in this specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include the plural forms. It should be further understood that the term " / and / " used in this specification of the present invention and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0026] Please refer to Figure 1 , Figure 1 It is a schematic flow chart of the dot - matrix pixel conversion method provided by an embodiment of the present invention. The dot - matrix pixel conversion method in the embodiment of the present invention is applied to a dot - matrix pixel conversion system for converting presentation data into dot - matrix pixels and presenting them on a dot - matrix display screen. As Figure 1 shown, the method includes steps S110 - S120.

[0027] S110, obtain a binarized image matching the presentation data, where the binarized image includes at least one data to be converted.

[0028] In an embodiment of the present invention, the dot matrix pixel conversion system may include an input module, an image processing module, a pixel mapping module, a display driving module, a storage module, and a control module. The input module is used to receive the text or image content input by the user, and perform preliminary formatting processing to generate standard grayscale images or text data. The image processing module is used to perform complex preprocessing on the input image or text, including grayscale conversion, binarization, character segmentation, rotation, and affine transformation, etc. The pixel mapping module is used to map the processed image or text data to the pixel points on the dot matrix display screen, and perform coordinate transformation and mapping optimization. The display driving module is responsible for driving the hardware of the display screen and controlling the rendering of the display content in the order of pixel points. The storage module is used to store the original input data, intermediate processing results, and finally rendered pixel point data. The control module is responsible for the control of the entire system, including the management of data streams, the adjustment of optimization parameters, and real-time monitoring.

[0029] The user can input demonstration data through the input module. The demonstration data can be text data or pattern data, or can include both text data and pattern data at the same time. Then, a binarized image corresponding to the demonstration data is obtained. Among them, the binarized image includes at least one data to be converted, and the data to be converted corresponds to the text data or pattern data in the demonstration data. For example, if the user inputs text data "HELLO", the binarized image corresponding to "HELLO" contains five data to be converted, namely "H", "E", "L", "L", and "O".

[0030] S120, perform data segmentation and pixel mapping on the binarized image respectively to obtain at least one dot matrix pixel point data, where one data to be converted corresponds to one dot matrix pixel point data, and one dot matrix pixel point data includes multiple dot matrix pixel points.

[0031] In an embodiment of the present invention, characters or patterns can be extracted from the binarized image through morphological operations, such as erosion and dilation, that is, data segmentation. For example, if there are five characters "H", "E", "L", "L", and "O" in the binarized image, the five characters "H", "E", "L", "L", and "O" can be extracted from the binarized image respectively through erosion and dilation. If the size of the character is Wc×Hc, after completing data segmentation, pixel mapping can be performed on the segmented data, that is, mapping the segmented data to an M×N dot matrix on the dot matrix display screen, and the following coordinate transformation formula can be used to achieve it:

[0032]

[0033] Where, W c and H cis the width and height of the character image, and M and N are the height and width of the dot matrix display screen.

[0034] See Figure 2 , in some embodiments, such as this embodiment, the step S120 further includes steps S121 - S122.

[0035] S121, perform character segmentation on the binary image to obtain character images and / or perform pattern segmentation on the binary image to obtain pattern images, wherein the data to be converted includes characters and / or patterns, and one character corresponds to one character image, and one pattern corresponds to one pattern image;

[0036] S122, map the character images and / or the pattern images to the target dot matrix display screen to obtain at least one dot matrix pixel data, wherein one character image corresponds to one dot matrix pixel data, and one pattern image corresponds to one dot matrix pixel data.

[0037] In the embodiments of the present invention, the specific way of data segmentation is determined according to the content included in the binary image. If the binary image contains characters, character segmentation is performed on the binary image. If the binary image contains patterns, pattern segmentation is performed on the binary image. If the binary image contains both characters and patterns, character segmentation and pattern segmentation can be respectively performed on the binary image.

[0038] After character segmentation, character images can be obtained. After pattern segmentation of the pattern, pattern images can be obtained. Then, pixel mapping can be performed on the character images and pattern images, and the character images and pattern images are mapped to the pixel points on the target dot matrix display screen. Taking "HELLO" as an example, through erosion and dilation operations, each character (H, E, L, L, O) in "HELLO" is segmented from the binary image, and character images I H (X, Y), I E (X, Y), I L (X, Y), I L (X, Y) and I O (X, Y) are obtained respectively. Then each character image is mapped to the pixel points on the target dot matrix display screen to obtain dot matrix pixels. If the target dot matrix display screen is a 32×16 dot matrix and the size of the character image is 16×16 pixels, the mapping formula is:

[0039]

[0040] Map I H (X, Y), I E (X, Y), I L (X, Y), IL (X, Y) and I O Substituting (X, Y) and I into formulas (3) and (4) respectively, the dot matrix pixel points corresponding to each character image can be calculated.

[0041] See Figure 3 and Figure 4 , in some embodiments, such as this embodiment, the dot matrix pixel point conversion method further includes steps S130a - S140a and steps S130b - S140b:

[0042] S130a, controlled by a rotation instruction for image rotation, confirm the rotation angle;

[0043] S140a, rotate the dot matrix pixel points in the dot matrix pixel point data according to the rotation angle and a preset rotation matrix.

[0044] In the embodiment of the present invention, after obtaining the dot matrix pixel point data, if the image needs to be rotated, the rotation angle can be confirmed first, and then the dot matrix pixel points can be selected through a preset rotation matrix. For example, if "HELLO" needs to be rotated by 45° as a whole, it can be rotated through the following rotation matrix:

[0045]

[0046] where Mrotation is the rotation matrix and θ is the rotation angle. Substituting 45° into the rotation matrix, we can get:

[0047]

[0048] Then, perform a rotation transformation on each dot matrix pixel point (x, y) to obtain the rotated coordinates (x'y'):

[0049]

[0050] where t x and t y are translation amounts used to adjust the position of the rotated image.

[0051] S130b, controlled by a scaling instruction for image scaling, confirm the scaling ratio;

[0052] S140b, scale the dot matrix pixel points in the dot matrix pixel point data according to the scaling ratio and a preset affine transformation matrix.

[0053] In the embodiment of the present invention, if the image needs to be scaled, the scaling ratio can be confirmed, and the dot matrix pixel points can be scaled according to the preset affine transformation matrix. For example, if "HELLO" needs to be scaled to 150% of the original size as a whole, apply the affine transformation matrix:

[0054]

[0055] Among them, Maffine is an affine transformation matrix, a, b, c, and d are transformation coefficients, and t x and t y are translation amounts. Substituting 150% into the affine transformation matrix gives:

[0056]

[0057] Performing a scaling transformation on each pixel point (x, y) to obtain the scaled coordinates (x′, y′):

[0058] x' = 1.5×x + 0×y + 0(10)

[0059] y' = 0×x + 1.5×y + 0(11)

[0060] See Figure 5 , in some embodiments, such as this embodiment, the dot matrix pixel point conversion method further includes steps S160 - S170.

[0061] S160, obtaining the presentation data and performing formatting processing on the presentation data to obtain standard presentation data;

[0062] S170, rendering the standard presentation data as a grayscale image and performing binarization processing on the grayscale image to obtain the binarized image.

[0063] In the embodiments of the present invention, the presentation data can be text data or pattern data. The input presentation data is formatted to obtain standard presentation data, then the standard presentation data is rendered as a grayscale image, and then the grayscale image is binarized to obtain the binarized image.

[0064] For example, if the input presentation data is a color image, and its RGB values are R(x, y), G(x, y), and B(x, y) respectively, then the calculation formula for the grayscale value is:

[0065] I(x, y) = 0.299×R(x, y) + 0.587G(x, y) + 0.114B(x, y)(12)

[0066] Through formula (12), the grayscale value corresponding to the RGB values of the color image can be calculated to obtain the grayscale image, and then the grayscale image is binarized to obtain the binarized image. The binarized image can be obtained through the following formula:

[0067]

[0068] Among them, threshold is the set grayscale threshold.

[0069] See Figure 6 , in some embodiments, such as this embodiment, the dot matrix pixel point conversion method further includes steps S170 - S173.

[0070] S170, obtain the dot matrix pixel point data;

[0071] S171, render the dot matrix pixel point data through fast Fourier transform, discrete cosine transform, and wavelet transform to obtain rendered data;

[0072] S172, obtain the rendered data and compress the rendered data to obtain compressed data;

[0073] S173, send the compressed data to the target dot matrix display screen so that the target dot matrix display screen displays the presentation data.

[0074] In the embodiments of the present invention, the dot matrix pixel point data can be rendered through fast Fourier transform, discrete cosine transform, and wavelet transform to optimize the image rendering efficiency.

[0075] The character pixel point data after rotation and scaling is processed in the frequency domain through fast Fourier transform (FFT), discrete cosine transform (DCT), and wavelet transform to optimize the image rendering efficiency. Among them, the pixel value I(x, y) in the spatial domain can be converted to the frequency domain F(u, v) through FFT for efficient filtering and transformation operations. The data in the frequency domain can be further compressed and optimized through DCT. The wavelet transform is used to perform multi - resolution analysis on the image to extract high - level features and improve the image quality.

[0076] After obtaining the rendered data, the rendered data can be compressed to obtain compressed data to facilitate improving the transmission efficiency. For example, the image data can be compressed through Huffman coding, RLE (Run - Length Encoding) compression, and LZW (Lempel - Ziv - Welch) compression to reduce the data transmission volume. At the same time, the double - buffer technology can be used during transmission to quickly transmit the compressed data to the target dot matrix display screen. Among them, the double - buffer technology refers to alternately storing image data through two buffer areas to avoid waiting and conflicts during the image data transmission process. For example, if there are two buffer areas B1B_1 and B2B_2, when one buffer area is being read by the display driver module, the other buffer area will be updated with new image data to ensure the continuity and real - time nature of data transmission.

[0077] See Figure 7In some embodiments, such as the present embodiment, the dot matrix pixel conversion method further includes steps S180-S190.

[0078] S180, acquiring real-time parameters and confirming whether the real-time parameters have changed, wherein the real-time parameters include environmental parameters;

[0079] S190: If the real-time parameter changes, perform adaptive adjustment according to the real-time parameter.

[0080] In the embodiment of the present invention, in the process of converting the demonstration data into dot matrix pixels and displaying them on the target dot matrix display screen, real-time parameters can also be collected, and adaptive adjustments can be made according to the real-time parameters to match the transformation of the real-time parameters. The real-time parameters can include environmental parameters, such as environmental brightness, and the real-time parameters can also include motion parameters, such as the speed of the drone.

[0081] After confirming that the real-time parameters have changed, the specific parameters can be further confirmed. For example, if the ambient brightness has changed, the binarization threshold can be adjusted to facilitate the regeneration of the binarized image, and then new dot matrix pixels can be obtained based on the regenerated binarized image to achieve adaptive adjustment. In addition, when the dot matrix display screen changes or a new dot matrix display screen is added, pixel mapping can be re-performed based on the new dot matrix display screen to obtain new dot matrix pixels. For drone formations, if the angle of the drone changes, real-time attitude data, such as pitch and yaw angles, can be obtained, and rotation can be performed based on the new angle to compensate for the change in angle.

[0082] In addition, a hardware accelerator architecture and a power management module can be added to the system, and a parallel processing architecture can be used for the hardware accelerator architecture, so that multiple image processing tasks can be processed simultaneously to improve the efficiency of image conversion. For example, a digital signal processor (DSP) or a graphics processing unit (GPU) can be used to accelerate image convolution, filtering, transformation and other operations to reduce image processing delays. The power management module is used to dynamically monitor and adjust the working status of each hardware component to optimize the overall power consumption of the system. For example, in a drone light show, multiple drones need to work together and display images in real time. If the power consumption of the image processing system is too high, the drone battery may be exhausted prematurely, thus affecting the performance effect. By integrating low-power chips and adopting dynamic frequency adjustment technology, the system power consumption can be effectively reduced and the system operation time can be extended.

[0083] Figure 8 is a schematic block diagram of a dot matrix pixel conversion device 100 provided in an embodiment of the present invention. Figure 8As shown, corresponding to the above dot matrix pixel conversion method, the present invention further provides a dot matrix pixel conversion device 100. The dot matrix pixel conversion device 100 includes units for performing the above dot matrix pixel conversion method. Specifically, please refer to Figure 8 , the dot matrix pixel conversion device 100 includes a first acquisition unit 110 and a segmentation and mapping unit 120.

[0084] Among them, the first acquisition unit 110 is used to acquire a binarized image that matches the presentation data, where the binarized image includes at least one data to be converted;

[0085] The segmentation and mapping unit 120 is used to perform data segmentation and pixel mapping on the binarized image respectively to obtain at least one dot matrix pixel data, where one data to be converted corresponds to one dot matrix pixel data, and one dot matrix pixel data includes multiple dot matrix pixels.

[0086] In some embodiments, such as this embodiment, the segmentation and mapping unit 120 includes a segmentation unit and a mapping unit.

[0087] Among them, the segmentation unit is used to perform character segmentation on the binarized image to obtain a character image and / or perform pattern segmentation on the binarized image to obtain a pattern image, where the data to be converted includes characters and / or patterns, and one character corresponds to one character image, and one pattern corresponds to one pattern image;

[0088] The mapping unit is used to map the character image and / or the pattern image to the target dot matrix display screen to obtain at least one dot matrix pixel data, where one character image corresponds to one dot matrix pixel data, and one pattern image corresponds to one dot matrix pixel data.

[0089] An embodiment of the present invention further provides a dot matrix pixel conversion device. The dot matrix pixel conversion device in this embodiment adds a first confirmation unit, a first rotation unit, a second confirmation unit, and a first scaling unit on the basis of the above embodiment.

[0090] Among them, the first confirmation unit is used to confirm the rotation angle under the control of a rotation instruction for image rotation;

[0091] The first rotation unit is used to rotate the dot matrix pixels in the dot matrix pixel data according to the rotation angle and a preset rotation matrix;

[0092] The second confirmation unit is used to confirm the scaling ratio under the control of a scaling instruction for image scaling;

[0093] A first scaling unit, configured to scale the dot matrix pixel points in the dot matrix pixel point data according to the scaling ratio and a preset affine transformation matrix.

[0094] An embodiment of the present invention further provides a dot matrix pixel point conversion device. The dot matrix pixel point conversion device in this embodiment adds a formatting unit and a binarization unit on the basis of the above embodiment.

[0095] The formatting unit is configured to obtain presentation data and perform formatting processing on the presentation data to obtain standard presentation data.

[0096] The binarization unit is configured to render the standard presentation data into a grayscale image and perform binarization processing on the grayscale image to obtain the binarized image.

[0097] An embodiment of the present invention further provides a dot matrix pixel point conversion device. The dot matrix pixel point conversion device in this embodiment adds a second acquisition unit, a rendering unit, a compression unit, and a sending unit on the basis of the above embodiment.

[0098] The second acquisition unit is configured to acquire the dot matrix pixel point data.

[0099] The rendering unit is configured to render the dot matrix pixel point data through fast Fourier transform, discrete cosine transform, and wavelet transform to obtain rendered data.

[0100] The compression unit is configured to acquire the rendered data and perform compression on the rendered data to obtain compressed data.

[0101] The sending unit is configured to send the compressed data to a target dot matrix display screen so that the target dot matrix display screen displays the presentation data.

[0102] An embodiment of the present invention further provides a dot matrix pixel point conversion device. The dot matrix pixel point conversion device in this embodiment adds a third acquisition unit and an adjustment unit on the basis of the above embodiment.

[0103] The third acquisition unit is configured to acquire real-time parameters and confirm whether the real-time parameters have changed, where the real-time parameters include environmental parameters.

[0104] The adjustment unit is configured to perform adaptive adjustment according to the real-time parameters if the real-time parameters have changed.

[0105] It should be noted that those skilled in the art can clearly understand that the specific implementation processes of the above dot matrix pixel point conversion device and each unit can refer to the corresponding descriptions in the foregoing method embodiments. For the convenience and conciseness of description, they will not be elaborated here.

[0106] The above dot matrix pixel conversion device can be implemented in the form of a computer program, and this computer program can run on a computer device as shown in Figure 9 .

[0107] Please refer to Figure 9 . Figure 9 is a schematic block diagram of a computer device provided by an embodiment of the present application. Referring to Figure 9 , the computer device 500 includes a processor 502, a memory, and an interface 507 connected through a system bus 501. Among them, the memory may include a non-volatile storage medium 503 and an internal memory 504.

[0108] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 can be made to execute a dot matrix pixel conversion method.

[0109] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500.

[0110] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can be made to execute a dot matrix pixel conversion method.

[0111] The interface 505 is used to communicate with other devices. Those skilled in the art can understand that Figure 9 the structure shown in is only a block diagram of some structures related to the solution of the present application, and does not constitute a limitation on the computer device 500 to which the solution of the present application is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.

[0112] It should be understood that in the embodiment of the present application, the processor 502 may be a central processing unit (Central Processing Unit, CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0113] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a storage medium, and the storage medium is a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the process steps of the embodiments of the above methods.

[0114] Therefore, the present invention also provides a storage medium. The storage medium can be a computer-readable storage medium. The storage medium stores a computer program. The computer program, when executed by a processor, implements any one of the embodiments of the above dot matrix pixel conversion method.

[0115] The storage medium can be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disc, etc., various computer-readable storage media that can store program codes.

[0116] Those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the composition and steps of the examples have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0117] In several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of each unit is only a logical function division, and there can be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0118] The steps in the method embodiments of the present invention can be adjusted, combined, and deleted according to actual needs. The units in the device embodiments of the present invention can be combined, divided, and deleted according to actual needs. In addition, the functional units in each embodiment of the present invention can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.

[0119] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device to execute all or part of the steps of the methods described in the various embodiments of the present invention.

[0120] In the above embodiments, the descriptions of the various embodiments have their own emphases. For the parts not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0121] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, provided that these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention is also intended to include these changes and modifications.

[0122] As described above, the above are only the specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of various equivalent modifications or substitutions, and these modifications or substitutions should all be covered by the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A dot matrix pixel conversion method, characterized in that: include: Acquire a binary image matching the demonstration data, wherein the binary image includes at least one data to be converted; The binary image is subjected to data segmentation and pixel mapping respectively to obtain at least one dot matrix pixel data, wherein one of the data to be converted corresponds to one of the dot matrix pixel data, and one of the dot matrix pixel data includes a plurality of dot matrix pixels.

2. The method according to claim 1, characterized in that The step of performing data segmentation and pixel mapping on the binary image to obtain a plurality of dot matrix pixel points comprises: Performing character segmentation on the binary image to obtain a character image and / or performing pattern segmentation on the binary image to obtain a pattern image, wherein the data to be converted includes characters and / or patterns, and one character corresponds to one character image, and one pattern corresponds to one pattern image; The character image and / or the pattern image is mapped to a target dot matrix display screen to obtain at least one dot matrix pixel data, wherein one character image corresponds to one dot matrix pixel data, and one pattern image corresponds to one dot matrix pixel data.

3. The method according to claim 1, characterized in that The method further comprises: Controlled by a rotation instruction for rotating the image, the rotation angle is confirmed; Rotate the dot matrix pixel points in the dot matrix pixel point data according to the rotation angle and a preset rotation matrix; or Controlled by a zoom command for image zooming, the zoom ratio is confirmed; The dot matrix pixel points in the dot matrix pixel point data are scaled according to the scaling ratio and a preset affine transformation matrix.

4. The method according to claim 1, characterized in that The method further comprises: Acquire demonstration data and format the demonstration data to obtain standard demonstration data; The standard demonstration data is rendered into a grayscale image and the grayscale image is binarized to obtain the binarized image.

5. The method according to claim 1, characterized in that The method further comprises: Acquire the dot matrix pixel data; The dot matrix pixel data is rendered by fast Fourier transform, discrete cosine transform and wavelet transform to obtain rendering data.

6. The method according to claim 5, characterized in that The method further comprises: Acquire the rendering data, and compress the rendering data to obtain compressed data; The compressed data is sent to a target dot matrix display screen so that the target dot matrix display screen displays the demonstration data.

7. The method according to claim 1, characterized in that The method further comprises: Acquiring real-time parameters and confirming whether the real-time parameters have changed, wherein the real-time parameters include environmental parameters; If the real-time parameter changes, adaptive adjustment is performed according to the real-time parameter.

8. A dot matrix pixel conversion device, characterized in that: The device comprises: A first acquisition unit, used for acquiring a binary image matching the demonstration data, wherein the binary image includes at least one data to be converted; The segmentation and mapping unit is used to perform data segmentation and pixel mapping on the binary image to obtain at least one dot matrix pixel data, wherein one data to be converted corresponds to one dot matrix pixel data, and one dot matrix pixel data includes multiple dot matrix pixels.

9. A computer device, characterized in that: The computer device comprises a memory and a processor connected to the memory; the memory is used to store a computer program; the processor is used to run the computer program stored in the memory to execute the steps of the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 can be implemented on a computer device.

Citation Information

Patent Citations

  • Image processing apparatus and method of generating binarized image

    CN107666559A

  • Dot matrix character recognition method and device

    CN109543770A

  • Dot matrix text line character projection segmentation method and device

    CN113421256A

  • Target formation dot matrix generation method and device, electronic equipment and storage medium

    CN115185267A

  • Image processing apparatus, computer readable medium storing program, image processing method, and computer data signal

    US20080025625A1