Picture gray scale display method and device and computer readable storage medium

By mapping the target picture to the preset area of ​​the display lamp bead distribution area and adjusting the lamp bead brightness according to the brightness value, the problem of low grayscale processing efficiency of full-screen pixel points in the prior art is solved, and efficient grayscale picture display is achieved.

CN119516940APending Publication Date: 2025-02-25AVATR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411581004.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-07
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

The prior art performs grayscale processing on each pixel point in the full screen area, resulting in large amount of data and low efficiency.

Method used

By determining the distribution area of ​​the lamp beads in the display screen, the target picture is mapped to the preset area in the area. Each lamp bead corresponds to a picture block area, and the brightness of the lamp beads is adjusted according to the brightness value of the picture block area to display the grayscale picture.

Benefits of technology

The amount of data in grayscale display processing is reduced, the efficiency of grayscale processing is improved, and the brightness of the lamp bead is adjusted in parallel multi-threading, further improving efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119516940A_ABST
    Figure CN119516940A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to the technical field of image processing, and discloses a picture gray scale display method and device and a computer readable storage medium, and the method comprises the steps: determining a lamp bead distribution region in a display screen; mapping the target picture to a preset area in the lamp bead distribution area; wherein each lamp bead in the preset area corresponds to one picture block area of the target picture; and according to the brightness value of the picture block area corresponding to each lamp bead in the preset area, adjusting the current brightness of the lamp beads in the preset area so as to display the target picture as a gray-scale picture. According to the technical scheme, gray scale processing does not need to be carried out on the pixel points of the whole image, only the lamp bead brightness of the preset area of the lamp bead distribution area needs to be adjusted, the target picture is displayed as the gray scale picture, the data size of gray scale display processing can be effectively reduced, and therefore the gray scale processing efficiency can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of image processing technology, and specifically to a method and device for grayscale display of an image, and a computer-readable storage medium. Background Art

[0002] At present, there are many scenarios on the application side that require customized LED grayscale images. For example, users need to display grayscale images on a display screen.

[0003] The existing grayscale display method of an image usually uses a method that calls the bitmap image class in the Android system to perform grayscale processing on each pixel of the display screen to convert the color image on the display screen into a grayscale image and display it. However, the existing technology performs grayscale processing on each pixel in the full-screen area, which requires a large amount of processing, resulting in low efficiency in grayscale display of the image. Summary of the invention

[0004] In view of the above problems, the embodiments of the present application provide a method, device and computer-readable storage medium for grayscale processing of images, which are used to solve the technical problem that the existing technology performs grayscale processing on each pixel in the full-screen area, which requires a large amount of data to be processed, resulting in low efficiency in grayscale display of images.

[0005] According to one aspect of an embodiment of the present application, a method for grayscale display of an image is provided, the method comprising:

[0006] Determine the distribution area of ​​the lamp beads in the display screen;

[0007] Mapping the target image to a preset area in the lamp bead distribution area; wherein each lamp bead in the preset area corresponds to an image block area of ​​the target image;

[0008] According to the brightness value of the picture block area corresponding to each lamp bead in the preset area, the current brightness of the lamp bead in the preset area is adjusted to display the target picture as a grayscale picture.

[0009] According to another aspect of an embodiment of the present application, a grayscale display device for an image is provided, the device comprising:

[0010] A lamp bead distribution area determination module determines the lamp bead distribution area in the display screen;

[0011] An image mapping module is used to map a target image to a preset area in the lamp bead distribution area; wherein each lamp bead in the preset area corresponds to an image block area of ​​the target image;

[0012] The lamp bead brightness adjustment module is used to adjust the current brightness of the lamp beads in the preset area according to the brightness value of the image block area corresponding to each lamp bead in the preset area, so as to display the target image as a grayscale image.

[0013] In an optional manner, the lamp bead distribution area determination module is further used to:

[0014] Obtain a display screen lamp bead file, and parse the display screen lamp bead file to obtain lamp bead distribution position information;

[0015] Based on the lamp bead distribution position information, the lamp bead distribution area of ​​the display screen is determined.

[0016] In an optional manner, the picture mapping module is further used for:

[0017] Determining the location information and size information of the preset area;

[0018] Adjusting the size of the target image to be the same as the size of the preset area;

[0019] According to the position information of the preset area, the adjusted target image is mapped into the preset area.

[0020] In an optional manner, the lamp bead brightness adjustment module is also used for:

[0021] Determine the brightness value of each of the image block areas, and determine the lamp beads corresponding to the image block areas whose brightness values ​​are greater than a preset value as the lamp beads to be processed;

[0022] Adjust the current brightness of the lamp bead to be processed to a preset grayscale brightness interval value.

[0023] In an optional manner, determining the brightness value of each of the picture block regions includes:

[0024] Determine the brightness values ​​of all pixels in the image block area;

[0025] The average value or median value of the brightness values ​​of all pixels is used as the brightness value of the image block area.

[0026] In an optional manner, the step of adjusting the current brightness of the lamp bead to be processed to a preset grayscale brightness interval value includes:

[0027] According to the correspondence between the brightness of the lamp beads and the preset grayscale brightness interval values, determine the preset grayscale brightness interval value corresponding to the current brightness of the lamp beads to be processed;

[0028] Adjust the current brightness of the lamp bead to be processed to a preset grayscale brightness interval value.

[0029] In an optional manner, the step of adjusting the current brightness of the lamp bead to be processed to a preset grayscale brightness interval value further includes:

[0030] Determine the display area where the lamp beads to be processed are distributed in the display screen, wherein the display area is obtained by dividing the display screen into areas, each of the display areas is provided with a corresponding processor, and the display screen includes at least two display areas;

[0031] In the case that the lamp beads to be processed are distributed in at least two display areas, the processor of each display area is controlled to adjust the current brightness of the lamp beads to be processed to a preset grayscale brightness interval value in parallel.

[0032] According to another aspect of an embodiment of the present application, a grayscale processing device for an image is provided, including:

[0033] A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;

[0034] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform the operation of the above-mentioned image grayscale processing method.

[0035] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, wherein the storage medium stores at least one executable instruction, and the executable instruction enables the image grayscale processing device / apparatus to perform the following operations:

[0036] Determine the distribution area of ​​the lamp beads in the display screen;

[0037] Mapping the target image to a preset area in the lamp bead distribution area; wherein each lamp bead in the preset area corresponds to an image block area of ​​the target image;

[0038] According to the brightness value of the picture block area corresponding to each lamp bead in the preset area, the current brightness of the lamp bead in the preset area is adjusted to display the target picture as a grayscale picture.

[0039] In an optional manner, the executable instruction enables the image grayscale processing device / apparatus to perform the following operations:

[0040] Obtain a display screen lamp bead file, and parse the display screen lamp bead file to obtain lamp bead distribution position information;

[0041] Based on the lamp bead distribution position information, the lamp bead distribution area of ​​the display screen is determined.

[0042] In an optional manner, the executable instruction enables the image grayscale processing device / apparatus to perform the following operations:

[0043] Obtain a display screen lamp bead file, and parse the display screen lamp bead file to obtain lamp bead distribution position information;

[0044] Based on the lamp bead distribution position information, the lamp bead distribution area of ​​the display screen is determined.

[0045] In an optional manner, the executable instruction enables the image grayscale processing device / apparatus to perform the following operations:

[0046] Determine the brightness value of each of the image block areas, and determine the lamp beads corresponding to the image block areas whose brightness values ​​are greater than a preset value as the lamp beads to be processed;

[0047] Adjust the current brightness of the lamp bead to be processed to a preset grayscale brightness interval value.

[0048] In an optional manner, the executable instruction enables the image grayscale processing device / apparatus to perform the following operations:

[0049] Determine the brightness values ​​of all pixels in the image block area;

[0050] The average value or median value of the brightness values ​​of all pixels is used as the brightness value of the image block area.

[0051] In an optional manner, the executable instruction enables the image grayscale processing device / apparatus to perform the following operations:

[0052] According to the correspondence between the brightness of the lamp beads and the preset grayscale brightness interval values, determine the preset grayscale brightness interval value corresponding to the current brightness of the lamp beads to be processed;

[0053] Adjust the current brightness of the lamp bead to be processed to a preset grayscale brightness interval value.

[0054] In an optional manner, the executable instruction enables the image grayscale processing device / apparatus to perform the following operations:

[0055] Determine the display area where the lamp beads to be processed are distributed in the display screen, wherein the display area is obtained by dividing the display screen into areas, each of the display areas is provided with a corresponding processor, and the display screen includes at least two display areas;

[0056] In the case that the lamp beads to be processed are distributed in at least two display areas, the processor of each display area is controlled to adjust the current brightness of the lamp beads to be processed to a preset grayscale brightness interval value in parallel.

[0057] The embodiment of the present application maps the target image to the lamp bead distribution area, and adjusts the current brightness of the lamp beads in the preset area according to the brightness values ​​of the lamp beads corresponding to the image block area. There is no need to perform grayscale processing on the pixels of the entire image, and only the brightness of the lamp beads in the preset area of ​​the lamp bead distribution area needs to be adjusted to display the target image as a grayscale image. This can effectively reduce the amount of data processed in grayscale display, thereby effectively improving the efficiency of grayscale processing.

[0058] Furthermore, the embodiment of the present application determines the display area where the lamp beads to be processed are located according to the pre-divided display area. When the brightness of the lamp beads is adjusted, multiple processors adjust the brightness of the lamp beads in a parallel multi-threaded manner, which can effectively improve the efficiency of the grayscale display of the target image.

[0059] The above description is only an overview of the technical solution of the embodiment of the present application. In order to more clearly understand the technical means of the embodiment of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present application. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings:

[0061] Figure 1 A schematic diagram showing a process flow of a method for grayscale processing of an image provided by an embodiment of the present application is shown;

[0062] Figure 2 A schematic diagram of the distribution area of ​​lamp beads provided in an embodiment of the present application is shown;

[0063] Figure 3 A schematic diagram showing the correspondence between the brightness of the lamp beads and the grayscale brightness provided in an embodiment of the present application is shown;

[0064] Figure 4 A schematic diagram of the structure of a grayscale processing device for an image provided in an embodiment of the present application is shown;

[0065] Figure 5 A schematic diagram of the structure of the image grayscale processing device provided by the present application is shown. DETAILED DESCRIPTION

[0066] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein.

[0067] Figure 1FIG. 1 is a flow chart showing an embodiment of the method for grayscale processing of an image of the present application, and the method is executed by a grayscale processing device for an image. Figure 1 As shown, the method comprises the following steps:

[0068] Step 110: Determine the distribution area of ​​the lamp beads in the display screen;

[0069] Among them, the display screen includes a special-shaped screen, a flexible screen, etc. In an embodiment of the present application, the working current of the display screen can be obtained by a current sensor, or the working current of the display screen can be obtained by the built-in diagnostic software of the display screen to determine that the lamp beads in the display screen are in normal working condition. The display screen usually has a brightness compensation function, that is, when some of the lamp beads of the display screen are damaged, the control system of the display screen will try to increase the brightness of other lamp beads to compensate for the loss of overall brightness, thereby increasing the working current. In an embodiment of the present application, a preset working range can be set according to the working current of the display screen without affecting the display effect. For example, the maximum number of damaged lamp beads of the display screen without affecting the display effect is determined, and the preset working current range is set according to the working current when the display screen has the maximum number of lamp beads displayed. When the working current of the display screen is within the preset working current range, it is determined that the number of damaged lamp beads in the current display screen is within the maximum number of damaged lamp beads, ensuring that the target image projected on the display screen can be displayed normally, thereby effectively improving the grayscale conversion effect of the target image.

[0070] In an embodiment of the present application, the lamp bead distribution position information of the display screen can be determined based on the lamp bead file of the display screen, and the hardware layout diagram of the display screen can be obtained. The precise position, spacing and arrangement of the lamp beads can be accurately determined based on the hardware distribution diagram, and the lamp bead distribution area can be further determined based on the lamp bead distribution information.

[0071] Step 120: Mapping the target image to a preset area in the lamp bead distribution area; wherein each lamp bead in the preset area corresponds to an image block area of ​​the target image;

[0072] In the embodiment of the present application, the target image may be a color image, the preset area may be at least one, and the preset area may be the middle rectangular area of ​​the lamp bead distribution area. At least one lamp bead may be distributed in the preset area, and after mapping the target image to the preset area in the lamp bead distribution area, each lamp bead corresponds to an image block area of ​​the target image.

[0073] Step 130: According to the brightness value of the image block area corresponding to each lamp bead in the preset area, adjust the current brightness of the lamp beads in the preset area to display the target image as a grayscale image.

[0074] The embodiment of the present application maps the target image to the lamp bead distribution area, and adjusts the current brightness of the lamp beads in the preset area according to the brightness values ​​of the lamp beads corresponding to the image block area. There is no need to perform grayscale processing on the pixels of the entire image, and only the brightness of the lamp beads in the preset area of ​​the lamp bead distribution area needs to be adjusted to display the target image as a grayscale image. This can effectively reduce the amount of data processed in grayscale display, thereby effectively improving the efficiency of grayscale processing.

[0075] In an optional manner, step 110: determining the lamp bead distribution area of ​​the display screen includes:

[0076] Obtain a display screen lamp bead file, and parse the display screen lamp bead file to obtain lamp bead distribution position information;

[0077] In the embodiment of the present application, the lamp bead distribution area of ​​the display screen can be further determined based on the determination of the maximum projection area of ​​the display screen, wherein the maximum projection area of ​​the display screen can be determined by:

[0078] The maximum number of lamp beads that the display can accommodate horizontally and vertically is obtained by reading from the cloud or configuration file, so as to determine the maximum projection area of ​​the display and ensure that the displayed image can adapt to the size of the display.

[0079] In some display technologies, there may be signal loss issues at the edge of the screen, or in order to provide structural support for the display screen, the edge of the display screen is usually set not to display images. The embodiment of the present application determines the maximum projection area and further determines the distribution area of ​​the lamp beads in the display screen, and then projects the target image to be processed in the distribution area of ​​the lamp beads to avoid the situation where the edge area of ​​the display screen cannot display the image normally.

[0080] Based on the lamp bead distribution position information, the lamp bead distribution area of ​​the display screen is determined.

[0081] See also Figure 2 , which is a schematic diagram of a lamp bead distribution area provided in an embodiment of the present application. In an embodiment of the present application, a display screen lamp bead file can be read from a cloud or a local file directory. The display screen lamp bead file contains the lamp bead position distribution information of the current display screen, and the lamp bead position distribution of different display screens may be different. The display screen lamp bead file is parsed to obtain the lamp bead distribution position information, including the row coordinates and vertical coordinates of the lamp bead position in the display screen, which can be converted into horizontal coordinates and vertical coordinates according to the number of rows and columns, respectively. According to the lamp bead position distribution information, it can be determined whether there are lamp beads at each coordinate of the display screen. The embodiment of the present application uses different marks to identify whether there are lamp beads at each coordinate of the display screen. For example, a mark of 1 means that there are lamp beads at a certain position of the display, and a mark of 0 means that there are no lamp beads at a certain position of the display screen. The lamp bead file of the display screen can be converted into Bit data in the form of a data stream.

[0082] The embodiment of the present application can achieve accurate mapping of the position of each lamp bead on the display screen by parsing the lamp bead file of the display screen, thereby accurately determining the distribution position of each lamp bead, and based on the lamp bead distribution position information, can accurately determine the lamp bead distribution area of ​​the display screen.

[0083] In an optional manner, before projecting the target image onto the display screen area, parameters of the display screen may be initialized, including:

[0084] According to the width and height of the display screen, the total number of pixels pixelsTotal is initialized, and the pixel array pixelsOrig is initialized. Then, the display screen is logically divided according to the MCU (Microcontroller Unit), and the boundaries and sizes of each display area are determined to determine multiple display areas. The display area can include the left display area, the middle display area, and the right display area, and byte data is created for each display area.

[0085] In an optional manner, step 120: mapping the target image to a preset area in the lamp bead distribution area includes:

[0086] Determining the location information and size information of the preset area;

[0087] In an embodiment of the present application, the position information and size information of the preset area can be determined based on the information of the lamp bead distribution area. For example, the preset area is a rectangle, and the edge coordinate information of the lamp bead distribution area is determined. The horizontal midpoint of the lamp bead distribution area is used as the horizontal midpoint of the preset area, and the preset value is used as the horizontal length of the preset area. The horizontal midpoint of the preset area and the horizontal length of the preset area are used to determine the maximum vertical height of the preset area within the lamp bead distribution area, thereby determining the rectangular preset area, and then being able to determine the position information and size information of the preset area.

[0088] Adjusting the size of the target image to be the same as the size of the preset area;

[0089] According to the position information of the preset area, the adjusted target image is mapped into the preset area.

[0090] In the embodiment of the present application, since the size of the adjusted target image is the same as the size of the preset area, after mapping the adjusted target image to the preset area and displaying it in grayscale, the final displayed grayscale image can be fit with the preset area without further scaling or cropping operations, so that the final displayed grayscale image can be formed in one go, thereby improving the efficiency of grayscale image display.

[0091] In an optional manner, adjusting the current brightness of the lamp beads in the preset area according to the brightness value of the image block area corresponding to each lamp bead in the preset area includes:

[0092] Determine the brightness value of each of the image block areas, and determine the lamp beads corresponding to the image block areas whose brightness values ​​are greater than a preset value as the lamp beads to be processed;

[0093] In an embodiment of the present application, the lamp beads corresponding to the image block areas with brightness values ​​greater than 0 can be determined as the lamp beads to be processed.

[0094] Adjust the current brightness of the lamp bead to be processed to a preset grayscale brightness interval value.

[0095] In the embodiment of the present application, the current lamp bead brightness can be adjusted according to the corresponding relationship between the brightness value of the image block area and the preset grayscale brightness value.

[0096] In an optional manner, determining the brightness value of each of the picture block regions includes:

[0097] Determine the brightness values ​​of all pixels in the image block area;

[0098] The average value or median value of the brightness values ​​of all pixels is used as the brightness value of the image block area.

[0099] In an embodiment of the present application, a picture block area usually contains multiple pixels. After accumulating the brightness values ​​of all pixels, the average value is taken, or after sorting the brightness values ​​of all pixels according to size, the median value is taken as the brightness value of the picture block area.

[0100] The embodiment of the present application can accurately reflect the overall brightness level of the image block area by calculating the average or median value of the brightness values ​​of all pixels, and can effectively reduce the impact of brightness anomalies on the overall brightness evaluation, so as to accurately determine the brightness value of each of the image block areas.

[0101] In an optional manner, the step of adjusting the current brightness of the lamp bead to be processed to a preset grayscale brightness interval value includes:

[0102] According to the correspondence between the brightness of the lamp beads and the preset grayscale brightness interval values, determine the preset grayscale brightness interval value corresponding to the current brightness of the lamp beads to be processed;

[0103] Adjust the current brightness of the lamp bead to be processed to a preset grayscale brightness interval value.

[0104] See also Figure 3, is a schematic diagram of the correspondence between lamp bead brightness and grayscale brightness provided in an embodiment of the present application. In an embodiment of the present application, according to the correspondence between the lamp bead brightness and the preset grayscale brightness interval value, the current brightness of the current lamp bead is adjusted to the brightness value corresponding to the preset grayscale brightness interval value, and the 256-level target image can be converted into an 8-level grayscale image, thereby obtaining the corresponding grayscale image Bitmap. For example, if the current brightness value of the current lamp bead is between 1-44, it is adjusted to brightness 1.

[0105] The embodiment of the present application can ensure that the grayscale image displayed on the display screen has grayscale levels and detail expression by adjusting the brightness of the lamp beads to a preset grayscale brightness range value, and can effectively improve the display effect of low grayscale detail changes.

[0106] In an optional manner, the step of adjusting the current brightness of the lamp bead to be processed to a preset grayscale brightness interval value further includes:

[0107] Determine the display area where the lamp beads to be processed are distributed in the display screen, wherein the display area is obtained by dividing the display screen into areas, each of the display areas is provided with a corresponding processor, and the display screen includes at least two display areas;

[0108] Each display area may be in a rectangular, circular or other shape, and each display area may be configured with a processor for performing grayscale processing on the pixels of the corresponding display area.

[0109] In the case that the lamp beads to be processed are distributed in at least two display areas, the processor of each display area is controlled to adjust the current brightness of the lamp beads to be processed to a preset grayscale brightness interval value in parallel.

[0110] In an embodiment of the present application, the lamp beads to be processed determined after the target image is mapped to the preset area may be distributed in various positions of the display screen. The display area where these lamp beads to be processed are located can be determined according to the pre-divided display area. When the brightness of the lamp beads is adjusted, multiple processors adjust the brightness of the lamp beads in a parallel multi-threaded manner, which can effectively improve the efficiency of the grayscale display of the target image.

[0111] Implementing the embodiments of the present application has the following beneficial effects:

[0112] The embodiment of the present application maps the target image to the lamp bead distribution area, and adjusts the current brightness of the lamp beads in the preset area according to the brightness values ​​of the lamp beads corresponding to the image block area. There is no need to perform grayscale processing on the pixels of the entire image, and only the brightness of the lamp beads in the preset area of ​​the lamp bead distribution area needs to be adjusted to display the target image as a grayscale image. This can effectively reduce the amount of data processed in grayscale display, thereby effectively improving the efficiency of grayscale processing.

[0113] Furthermore, the embodiment of the present application determines the display area where the lamp beads to be processed are located according to the pre-divided display area. When the brightness of the lamp beads is adjusted, multiple processors adjust the brightness of the lamp beads in a parallel multi-threaded manner, which can effectively improve the efficiency of the grayscale display of the target image.

[0114] Figure 4 The schematic diagram of the structure of an embodiment of the image grayscale processing device of the present application is shown. Figure 3 As shown, the device 400 includes: a lamp bead distribution area determination module 410, a picture mapping module 420 and a lamp bead brightness adjustment module 430.

[0115] A lamp bead distribution area determination module 410 determines the lamp bead distribution area in the display screen;

[0116] The image mapping module 420 is used to map the target image to a preset area in the lamp bead distribution area; wherein each lamp bead in the preset area corresponds to an image block area of ​​the target image;

[0117] The lamp bead brightness adjustment module 430 is used to adjust the current brightness of the lamp beads in the preset area according to the brightness value of the image block area corresponding to each lamp bead in the preset area, so as to display the target image as a grayscale image.

[0118] In an optional manner, the lamp bead distribution area determination module 410 is further used to:

[0119] Obtain a display screen lamp bead file, and parse the display screen lamp bead file to obtain lamp bead distribution position information;

[0120] Based on the lamp bead distribution position information, the lamp bead distribution area of ​​the display screen is determined.

[0121] In an optional manner, the picture mapping module 420 is further used for:

[0122] Determining the location information and size information of the preset area;

[0123] Adjusting the size of the target image to be the same as the size of the preset area;

[0124] According to the position information of the preset area, the adjusted target image is mapped into the preset area.

[0125] In an optional manner, the lamp bead brightness adjustment module 430 is further used for:

[0126] Determine the brightness value of each of the image block areas, and determine the lamp beads corresponding to the image block areas whose brightness values ​​are greater than a preset value as the lamp beads to be processed;

[0127] Adjust the current brightness of the lamp bead to be processed to a preset grayscale brightness interval value.

[0128] In an optional manner, determining the brightness value of each of the picture block regions includes:

[0129] Determine the brightness values ​​of all pixels in the image block area;

[0130] The average value or median value of the brightness values ​​of all pixels is used as the brightness value of the image block area.

[0131] In an optional manner, the step of adjusting the current brightness of the lamp bead to be processed to a preset grayscale brightness interval value includes:

[0132] According to the correspondence between the brightness of the lamp beads and the preset grayscale brightness interval values, determine the preset grayscale brightness interval value corresponding to the current brightness of the lamp beads to be processed;

[0133] Adjust the current brightness of the lamp bead to be processed to a preset grayscale brightness interval value.

[0134] In an optional manner, the step of adjusting the current brightness of the lamp bead to be processed to a preset grayscale brightness interval value further includes:

[0135] Determine the display area where the lamp beads to be processed are distributed in the display screen, wherein the display area is obtained by dividing the display screen into areas, each of the display areas is provided with a corresponding processor, and the display screen includes at least two display areas;

[0136] In the case that the lamp beads to be processed are distributed in at least two display areas, the processor of each display area is controlled to adjust the current brightness of the lamp beads to be processed to a preset grayscale brightness interval value in parallel.

[0137] The embodiment of the present application maps the target image to the lamp bead distribution area, and adjusts the current brightness of the lamp beads in the preset area according to the brightness values ​​of the lamp beads corresponding to the image block area. There is no need to perform grayscale processing on the pixels of the entire image, and only the brightness of the lamp beads in the preset area of ​​the lamp bead distribution area needs to be adjusted to display the target image as a grayscale image. This can effectively reduce the amount of data processed in grayscale display, thereby effectively improving the efficiency of grayscale processing.

[0138] Furthermore, the lamp beads to be processed determined after the target image is mapped to the preset area may be distributed in various positions of the display screen. The embodiment of the present application determines the display area where these lamp beads to be processed are located according to the pre-divided display area. When the brightness of the lamp beads is adjusted, multiple processors adjust the brightness of the lamp beads in a parallel multi-threaded manner, which can effectively improve the efficiency of the grayscale display of the target image.

[0139] Figure 5 A structural schematic diagram of an embodiment of the image grayscale processing device of the present application is shown. The specific embodiment of the present application does not limit the specific implementation of the image grayscale processing device.

[0140] like Figure 5 As shown, the image grayscale processing device may include: a processor (processor) 502 , a communication interface (Communications Interface) 504 , a memory (memory) 506 , and a communication bus 508 .

[0141] The processor 502, the communication interface 504, and the memory 506 communicate with each other via the communication bus 508. The communication interface 504 is used to communicate with other devices such as a client or other server network elements. The processor 502 is used to execute the program 510, which can specifically execute the relevant steps in the above-mentioned embodiment of the method for grayscale processing of an image.

[0142] Specifically, the program 510 may include program code including computer-executable instructions.

[0143] The processor 502 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the image grayscale processing device may be processors of the same type, such as one or more CPUs; or may be processors of different types, such as one or more CPUs and one or more ASICs.

[0144] The memory 506 is used to store the program 510. The memory 506 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0145] The program 510 can be specifically called by the processor 502 to enable the image grayscale processing device to perform the following operations:

[0146] Determine the distribution area of ​​the lamp beads in the display screen;

[0147] Mapping the target image to a preset area in the lamp bead distribution area; wherein each lamp bead in the preset area corresponds to an image block area of ​​the target image;

[0148] According to the brightness value of the picture block area corresponding to each lamp bead in the preset area, the current brightness of the lamp bead in the preset area is adjusted to display the target picture as a grayscale picture.

[0149] In an optional manner, the program 510 is called by the processor 502 to enable the image grayscale processing device to perform the following operations:

[0150] Obtain a display screen lamp bead file, and parse the display screen lamp bead file to obtain lamp bead distribution position information;

[0151] Based on the lamp bead distribution position information, the lamp bead distribution area of ​​the display screen is determined.

[0152] In an optional manner, the program 510 is called by the processor 502 to enable the image grayscale processing device to perform the following operations:

[0153] Determining the location information and size information of the preset area;

[0154] Adjusting the size of the target image to be the same as the size of the preset area;

[0155] According to the position information of the preset area, the adjusted target image is mapped into the preset area.

[0156] In an optional manner, the program 510 is called by the processor 502 to enable the image grayscale processing device to perform the following operations:

[0157] Determine the brightness value of each of the image block areas, and determine the lamp beads corresponding to the image block areas whose brightness values ​​are greater than a preset value as the lamp beads to be processed;

[0158] Adjust the current brightness of the lamp bead to be processed to a preset grayscale brightness interval value.

[0159] In an optional manner, the program 510 is called by the processor 502 to enable the image grayscale processing device to perform the following operations:

[0160] Determine the brightness values ​​of all pixels in the image block area;

[0161] The average value or median value of the brightness values ​​of all pixels is used as the brightness value of the image block area. In an optional manner, the program 510 is called by the processor 502 to enable the image grayscale processing device to perform the following operations:

[0162] According to the correspondence between the brightness of the lamp beads and the preset grayscale brightness interval values, determine the preset grayscale brightness interval value corresponding to the current brightness of the lamp beads to be processed;

[0163] Adjust the current brightness of the lamp bead to be processed to a preset grayscale brightness interval value.

[0164] In an optional manner, the program 510 is called by the processor 502 to enable the image grayscale processing device to perform the following operations:

[0165] Determine the display area where the lamp beads to be processed are distributed in the display screen, wherein the display area is obtained by dividing the display screen into areas, each of the display areas is provided with a corresponding processor, and the display screen includes at least two display areas;

[0166] In the case that the lamp beads to be processed are distributed in at least two display areas, the processor of each display area is controlled to adjust the current brightness of the lamp beads to be processed to a preset grayscale brightness interval value in parallel.

[0167] The embodiment of the present application maps the target image to the lamp bead distribution area, and adjusts the current brightness of the lamp beads in the preset area according to the brightness values ​​of the lamp beads corresponding to the image block area. There is no need to perform grayscale processing on the pixels of the entire image, and only the brightness of the lamp beads in the preset area of ​​the lamp bead distribution area needs to be adjusted to display the target image as a grayscale image. This can effectively reduce the amount of data processed in grayscale display, thereby effectively improving the efficiency of grayscale processing.

[0168] Furthermore, the lamp beads to be processed determined after the target image is mapped to the preset area may be distributed in various positions of the display screen. The embodiment of the present application determines the display area where these lamp beads to be processed are located according to the pre-divided display area. When the brightness of the lamp beads is adjusted, multiple processors adjust the brightness of the lamp beads in a parallel multi-threaded manner, which can effectively improve the efficiency of the grayscale display of the target image.

[0169] An embodiment of the present application provides a computer-readable storage medium, which stores at least one executable instruction. When the executable instruction is executed on a picture grayscale processing device / apparatus, the picture grayscale processing device / apparatus executes the picture grayscale processing method in any of the above method embodiments.

[0170] The executable instructions can be specifically used to enable the image grayscale processing device / apparatus to perform the following operations:

[0171] Determine the distribution area of ​​the lamp beads in the display screen;

[0172] Mapping the target image to a preset area in the lamp bead distribution area; wherein each lamp bead in the preset area corresponds to an image block area of ​​the target image;

[0173] According to the brightness value of the picture block area corresponding to each lamp bead in the preset area, the current brightness of the lamp bead in the preset area is adjusted to display the target picture as a grayscale picture.

[0174] In an optional manner, the executable instruction enables the image grayscale processing device / apparatus to perform the following operations:

[0175] Obtain a display screen lamp bead file, and parse the display screen lamp bead file to obtain lamp bead distribution position information;

[0176] Based on the lamp bead distribution position information, the lamp bead distribution area of ​​the display screen is determined.

[0177] In an optional manner, the executable instruction enables the image grayscale processing device / apparatus to perform the following operations:

[0178] Determining the location information and size information of the preset area;

[0179] Adjusting the size of the target image to be the same as the size of the preset area;

[0180] According to the position information of the preset area, the adjusted target image is mapped into the preset area.

[0181] In an optional manner, the executable instruction enables the image grayscale processing device / apparatus to perform the following operations:

[0182] Determine the brightness value of each of the image block areas, and determine the lamp beads corresponding to the image block areas whose brightness values ​​are greater than a preset value as the lamp beads to be processed;

[0183] Adjust the current brightness of the lamp bead to be processed to a preset grayscale brightness interval value.

[0184] In an optional manner, the executable instruction enables the image grayscale processing device / apparatus to perform the following operations:

[0185] Determine the brightness values ​​of all pixels in the image block area;

[0186] The average value or median value of the brightness values ​​of all pixels is used as the brightness value of the image block area.

[0187] In an optional manner, the executable instruction enables the image grayscale processing device / apparatus to perform the following operations:

[0188] According to the correspondence between the brightness of the lamp beads and the preset grayscale brightness interval values, determine the preset grayscale brightness interval value corresponding to the current brightness of the lamp beads to be processed;

[0189] Adjust the current brightness of the lamp bead to be processed to a preset grayscale brightness interval value.

[0190] In an optional manner, the executable instruction enables the image grayscale processing device / apparatus to perform the following operations:

[0191] Determine the display area where the lamp beads to be processed are distributed in the display screen, wherein the display area is obtained by dividing the display screen into areas, each of the display areas is provided with a corresponding processor, and the display screen includes at least two display areas;

[0192] In the case that the lamp beads to be processed are distributed in at least two display areas, the processor of each display area is controlled to adjust the current brightness of the lamp beads to be processed to a preset grayscale brightness interval value in parallel.

[0193] The embodiment of the present application maps the target image to the lamp bead distribution area, and adjusts the current brightness of the lamp beads in the preset area according to the brightness values ​​of the lamp beads corresponding to the image block area. There is no need to perform grayscale processing on the pixels of the entire image, and only the brightness of the lamp beads in the preset area of ​​the lamp bead distribution area needs to be adjusted to display the target image as a grayscale image. This can effectively reduce the amount of data processed in grayscale display, thereby effectively improving the efficiency of grayscale processing.

[0194] Furthermore, the lamp beads to be processed determined after the target image is mapped to the preset area may be distributed in various positions of the display screen. The embodiment of the present application determines the display area where these lamp beads to be processed are located according to the pre-divided display area. When the brightness of the lamp beads is adjusted, multiple processors adjust the brightness of the lamp beads in a parallel multi-threaded manner, which can effectively improve the efficiency of the grayscale display of the target image.

[0195] The algorithms or displays provided herein are not inherently related to any particular computer, virtual system or other device. In addition, the embodiments of the present application are not directed to any particular programming language.

[0196] In the specification provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. Similarly, in order to simplify the application and help understand one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present application, the various features of the embodiments of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. Wherein, the claims that follow the specific embodiment are thus clearly incorporated into the specific embodiment, wherein each claim itself is used as a separate embodiment of the application.

[0197] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and further may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive.

[0198] It should be noted that the above embodiments illustrate the present application rather than limit the present application, and that those skilled in the art may design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be constructed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of multiple such elements. The present application may be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In a unit claim that lists several devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.

Claims

1. A method for displaying grayscale images, characterized in that: The method comprises: Determine the distribution area of ​​the lamp beads in the display screen; Mapping the target image to a preset area in the lamp bead distribution area; wherein each lamp bead in the preset area corresponds to an image block area of ​​the target image; According to the brightness value of the picture block area corresponding to each lamp bead in the preset area, the current brightness of the lamp bead in the preset area is adjusted to display the target picture as a grayscale picture.

2. The image grayscale display method according to claim 1, characterized in that: The step of determining the lamp bead distribution area of ​​the display screen includes: Obtain a display screen lamp bead file, and parse the display screen lamp bead file to obtain lamp bead distribution position information; Based on the lamp bead distribution position information, the lamp bead distribution area of ​​the display screen is determined.

3. The image grayscale display method according to claim 1, characterized in that: The mapping of the target image to a preset area in the lamp bead distribution area includes: Determining the location information and size information of the preset area; Adjusting the size of the target image to be the same as the size of the preset area; According to the position information of the preset area, the adjusted target image is mapped into the preset area.

4. The image grayscale display method according to claim 1, characterized in that: The adjusting the current brightness of the lamp beads in the preset area according to the brightness value of the picture block area corresponding to each lamp bead in the preset area includes: Determine the brightness value of each of the image block areas, and determine the lamp beads corresponding to the image block areas whose brightness values ​​are greater than a preset value as the lamp beads to be processed; Adjust the current brightness of the lamp bead to be processed to a preset grayscale brightness interval value.

5. The image grayscale display method according to claim 4, characterized in that: The determining the brightness value of each of the picture block regions comprises: Determine the brightness values ​​of all pixels in the image block area; The average value or median value of the brightness values ​​of all pixels is used as the brightness value of the image block area.

6. The image grayscale display method according to claim 4, characterized in that: The step of adjusting the current brightness of the lamp bead to be processed to a preset grayscale brightness interval value includes: According to the correspondence between the brightness of the lamp beads and the preset grayscale brightness interval values, determine the preset grayscale brightness interval value corresponding to the current brightness of the lamp beads to be processed; Adjust the current brightness of the lamp bead to be processed to a preset grayscale brightness interval value.

7. The method for displaying grayscale images according to any one of claims 4 to 6, characterized in that: The step of adjusting the current brightness of the lamp bead to be processed to a preset grayscale brightness interval value also includes: Determine the display area where the lamp beads to be processed are distributed in the display screen, wherein the display area is obtained by dividing the display screen into areas, each of the display areas is provided with a corresponding processor, and the display screen includes at least two display areas; In the case that the lamp beads to be processed are distributed in at least two display areas, the processor of each display area is controlled to adjust the current brightness of the lamp beads to be processed to a preset grayscale brightness interval value in parallel.

8. A grayscale display device for an image, characterized in that: The device comprises: A lamp bead distribution area determination module determines the lamp bead distribution area in the display screen; An image mapping module is used to map a target image to a preset area in the lamp bead distribution area; wherein each lamp bead in the preset area corresponds to an image block area of ​​the target image; The lamp bead brightness adjustment module is used to adjust the current brightness of the lamp beads in the preset area according to the brightness value of the image block area corresponding to each lamp bead in the preset area, so as to display the target image as a grayscale image.

9. A grayscale image display device, characterized in that: include: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform the operation of the image grayscale display method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The storage medium stores at least one executable instruction. When the executable instruction is executed on the image grayscale processing device / apparatus, the image grayscale processing device / apparatus performs the operation of the image grayscale display method as described in any one of claims 1-7.