Display control method and device, display module and electronic equipment
By acquiring and configuring the target basic graphics and display parameters of the LED display module, display data is generated to control the display module to display the image to be displayed, which solves the problem of memory space limitation of the LED display module and improves the flexibility of the display screen and Richness.
Patent Information
- Application Number
- CN202311014594.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-11
- Publication Date
- 2025-02-18
AI Technical Summary
Due to memory space limitations, the LED display module cannot effectively display multiple screens, resulting in limited number of screens and fixed display.
By obtaining the target basic graphics and its display parameters in the image to be displayed, the target display function is determined from the display function corresponding to the pre-configured basic graphics, and the target display function is configured based on the display parameters, and display data is generated to control the display module to display the waiting. Show image.
It saves the memory space of the display module, improves the flexibility and richness of the display screen, and can achieve more styles of screen display while occupying less memory space.
Smart Images

Figure CN119473203A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of electronic equipment, and in particular to a display control method, device, display module and electronic equipment. Background Art
[0002] LED (Light Emitting Diode) is widely used in various industries and fields due to its advantages such as simple control, low power consumption and long life.
[0003] In the related art, an LED display module generally uses the module's MCU (Microcontroller Unit) to drive an LED pixel array to realize image display. When displaying an image, the full amount of image data needs to be stored in the MCU's memory space. For LED modules with small memory, this display method takes up more memory space. Due to the limitation of memory space, the number of images that the LED module can display is limited. Summary of the invention
[0004] In order to save memory space of a display module and improve the flexibility and richness of a displayed image, an embodiment of the present disclosure provides a display control method, an apparatus, a display module, an electronic device and a storage medium.
[0005] In a first aspect, an embodiment of the present disclosure provides a display control method, which is applied to an electronic device, and the method includes:
[0006] Acquire at least one target basic graphic included in the image to be displayed, and display parameters corresponding to each target basic graphic;
[0007] Determining a target display function corresponding to the target basic graphic from display functions corresponding to pre-configured basic graphics, configuring the target display function based on display parameters corresponding to the target basic graphic, and generating display data of the image to be displayed;
[0008] The display module of the electronic device is controlled to display the image to be displayed according to the display data.
[0009] In some implementations, the acquiring of at least one target basic graphic included in the image to be displayed and display parameters corresponding to each target basic graphic includes:
[0010] Determine the image to be displayed;
[0011] Based on the pre-configured correspondence between the display image and the image data, the target image data corresponding to the image to be displayed is determined; the image data includes basic graphics included in the corresponding display image and display parameters corresponding to each basic graphic.
[0012] In some implementations, determining the image to be displayed includes:
[0013] In response to receiving a user instruction, determining a display image corresponding to the user instruction as the image to be displayed;
[0014] and / or,
[0015] In response to detecting that the electronic device triggers a preset event, a display image corresponding to the preset event is determined as the image to be displayed.
[0016] In some implementations, the display parameters include position parameters, size parameters, and color parameters of the target basic graphic; and configuring the target display function based on the display parameters corresponding to the target basic graphic to generate display data of the image to be displayed includes:
[0017] According to the position parameters, size parameters and color parameters of the target basic graphic, the parameters to be configured included in the target display function are configured to obtain display data corresponding to the target basic graphic;
[0018] The display data of the image to be displayed is generated according to the display data corresponding to all target basic graphics.
[0019] In some implementations, the process of pre-configuring the display function corresponding to the basic graphics includes:
[0020] Based on the shape of the basic graphic, determining one or more parameters to be configured corresponding to the basic graphic;
[0021] The display function corresponding to the basic graphic is constructed according to one or more parameters to be configured corresponding to the basic graphic.
[0022] In some embodiments, the display module includes an LED display module; and controlling the display module of the electronic device to display the image to be displayed according to the display data includes:
[0023] The corresponding pixels on the LED display module are controlled to emit light according to the display data, so that the LED display module displays the image to be displayed.
[0024] In a second aspect, an embodiment of the present disclosure provides a display control device, which is applied to an electronic device, and the device includes:
[0025] An image acquisition module is configured to acquire at least one target basic graphic included in the image to be displayed, and display parameters corresponding to each target basic graphic;
[0026] A data generation module is configured to determine a target display function corresponding to the target basic graphic from display functions corresponding to pre-configured basic graphics, configure the target display function based on display parameters corresponding to the target basic graphic, and generate display data of the image to be displayed;
[0027] The display control module is configured to control the display module of the electronic device to display the image to be displayed according to the display data.
[0028] In a third aspect, an embodiment of the present disclosure provides a display module, including:
[0029] a pixel array; and
[0030] A controller, wherein the controller is used to execute the method according to any embodiment of the first aspect, so that the pixel array displays an image to be displayed.
[0031] In a fourth aspect, an embodiment of the present disclosure provides an electronic device, including:
[0032] Display module;
[0033] Processor; and
[0034] A memory storing computer instructions, wherein the computer instructions are used to enable a processor to execute the method according to any embodiment of the first aspect.
[0035] In a fifth aspect, an embodiment of the present disclosure provides a storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the method described in any embodiment of the first aspect.
[0036] The display control method of the embodiment of the present disclosure includes obtaining the target basic graphics and display parameters of the target basic graphics included in the image to be displayed, determining the target display function from the display functions corresponding to the pre-configured basic graphics, configuring the target display function based on the display parameters of the target basic graphics, generating display data of the image to be displayed, and controlling the display module to display the image to be displayed according to the display data. In the embodiment of the present disclosure, the display image is combined by pre-configured basic graphics, so that the display module does not need to pre-store the full amount of display image data, saving the memory space of the display module, and the basic graphics can be freely combined to obtain more display images, thereby improving the flexibility and richness of the display screen. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0038] Figure 1 It is a schematic diagram of the structure of a display module according to some embodiments of the present disclosure.
[0039] Figure 2 It is a schematic diagram of the structure of an electronic device according to some embodiments of the present disclosure.
[0040] Figure 3 It is a structural block diagram of an electronic device according to some implementations of the present disclosure.
[0041] Figure 4 is a schematic diagram of displaying an image according to some embodiments of the present disclosure.
[0042] Figure 5 It is a schematic diagram of basic graphics in some embodiments of the present disclosure.
[0043] Figure 6 is a flowchart showing a control method in some embodiments of the present disclosure.
[0044] Figure 7 is a flowchart showing a control method in some embodiments of the present disclosure.
[0045] Figure 8 is a flowchart showing a control method in some embodiments of the present disclosure.
[0046] Fig. 9 It is a schematic diagram showing a control method in some embodiments of the present disclosure.
[0047] Fig.10 is a flowchart showing a control method in some embodiments of the present disclosure.
[0048] Fig.11 It is a structural block diagram of a display control device in some embodiments of the present disclosure.
[0049] Fig.12 It is a structural block diagram of an electronic device according to some implementations of the present disclosure. DETAILED DESCRIPTION
[0050] The technical solution of the present disclosure will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described implementation is a part of the implementation of the present disclosure, rather than all the implementations. Based on the implementation in the present disclosure, all other implementations obtained by ordinary technicians in the field without creative work are within the scope of protection of the present disclosure. In addition, the technical features involved in the different implementations of the present disclosure described below can be combined with each other as long as they do not conflict with each other.
[0051] LED (Light Emitting Diode) is widely used in various industries and fields due to its advantages such as simple control, low power consumption and long life.
[0052] Mini LED, also known as sub-millimeter light-emitting diode, is a type of LED device. Compared with traditional LED devices, Mini LED can achieve smaller pixel volume and pixel spacing, thus having the advantages of high resolution, high brightness, high contrast, and wide color gamut. With the development of Mini LED technology, its application in the field of high-definition display is becoming more and more extensive, for example, in commercial fields such as Internet of Things devices, medical diagnosis, advertising display, virtual reality, and robots.
[0053] Mini LED has a higher resolution than traditional LED devices, so the amount of data corresponding to a frame of a Mini LED module is also larger. In related technologies, LED display modules are generally driven by the module's MCU (Microcontroller Unit) to drive the LED pixel array to display the picture. When displaying the picture, the full amount of picture data needs to be stored in the MCU's memory space.
[0054] For example Figure 1 A Mini LED display module is shown. The display module includes a pixel array and an MCU. The pixel array is the light-emitting unit of the display module. Each square in the figure represents a pixel, and each pixel can further include three sub-pixels: red (R), green (G), and blue (B). Figure 1 In the example, the pixel array is 40*26 with a total of 1040 pixels.
[0055] To display Figure 1Taking the image shown as an example, the MCU of the display module needs to store the full image data of the image in the memory (Flash) device in advance. The data of an image will occupy 40*26*3=3120 bytes, and a 10-frame continuous animation will occupy nearly 30kb of memory space. The more pictures the display module needs to display, the more display data that needs to be stored in the MCU's memory device will increase exponentially. If letters or text need to be displayed, the full data of the font library will also need to be stored in the memory device, and the storage pressure of the memory device is relatively high.
[0056] For some LED display modules with small resources and low cost, the memory space of their MCU is very limited, so the display module can only display a small amount of images. Even if a large-capacity flash memory device can be installed to store data, it will undoubtedly increase the hardware cost. In addition, the images displayed by the display module are also very fixed, and can only display images pre-stored in the memory device, and the flexibility and richness of the displayed images are also poor.
[0057] Based on the defects mentioned in the above-mentioned related technologies, the embodiments of the present disclosure provide a display control method, device, display module, electronic device and storage medium, which aim to change the traditional display driving method and use pre-constructed basic graphics to combine display images, so that the display module does not need to pre-store the full amount of display image data, saving the memory space of the display module, and the basic graphics can be freely combined to obtain more display images, thereby improving the flexibility and richness of the display screen.
[0058] In some embodiments, the present disclosure provides a display control method, which can be applied to any electronic device with a display module, especially for low-cost, small-memory display modules. The method disclosed in the present disclosure can achieve more styles of screen display while occupying less memory space.
[0059] The electronic devices described in the present disclosure may be, for example, Internet of Things devices (such as smart speakers, smart homes, etc.), physiological testing equipment (such as blood pressure monitors, heart rate belts, blood glucose meters, etc.), advertising display devices (such as outdoor large screens, subway advertising screens, etc.), robots (such as bipedal robots, quadrupedal robots, etc.), wearable devices (such as smart watches, bracelets, etc.), and the present disclosure does not impose any restrictions on this.
[0060] For ease of understanding and explanation, Figure 2 FIG. 4 shows a schematic diagram of a scenario in which an embodiment of the present disclosure is applied to a robot. Figure 2 As shown, in this example, the electronic device is a robot, and the display module of the electronic device is the display screen 200 on the head of the robot.
[0061] In the robot application scenario, the display screen 200 on the robot head can display various images to simulate the real feeling of interaction with the user. For example, in one example, when the robot is talking to the user, the display screen 200 can display a "smiling face" image to give the user a sense of intimacy. When the robot fails, the display screen 200 can display a "crying face" image to prompt the staff to repair it.
[0062] In this disclosure example, see Figure 3 As shown, the display screen 200 of the robot can establish a communication connection with the robot's processor 601. In the embodiment of the present disclosure, the display control method below can be executed by the MCU of the display module, or by the robot's processor 601, or by both, and the present disclosure does not limit this.
[0063] On the basis of the above, an embodiment of the present disclosure provides a display control method, through which the display control of the display module of the electronic device is realized.
[0064] It is worth noting that the method process of the embodiment of the present disclosure includes the following two stages: one is the preparation stage, in which it is necessary to pre-configure the display functions of one or more basic graphics and store these display functions in the MCU of the display module; the other is the display stage, in which when displaying an image, the display module calls one or more pre-stored display functions of basic graphics to combine and obtain data for displaying the image.
[0065] For ease of understanding, in the following embodiments of the present disclosure, the process of pre-configuring the display function of the basic graphics in the preparation stage will be described first, and then the display control process in the display stage will be described.
[0066] 1) Preparation
[0067] It can be understood that the content included in an image can often be composed of multiple basic graphics. The basic graphics refer to the smallest graphic units that constitute the image. The basic graphics can generally be selected from graphics of regular shapes.
[0068] For example Figure 4 The image shown in (a) is the letter "H", which can be regarded as consisting of three solid rectangles. Figure 4 The display image shown in (b) is a schematic diagram of a car, which can be regarded as consisting of two hollow rectangles and two solid circles.
[0069] Therefore, in the embodiments of the present disclosure, multiple basic graphics can be constructed and the display function of each basic graphic can be configured. Therefore, when an image is to be displayed, it is only necessary to call the display function of the required basic graphics to combine the image, and there is no need to store the image data in the display module in advance.
[0070] In some embodiments, the basic graphics may be relatively regular graphics, so that these basic graphics appear more frequently on the image, such as circles, rectangles, triangles, ellipses, etc. The basic graphics may also include various curves, such as sine curves, cosine curves, hyperbolas, parabolas, spiral curves, etc.
[0071] For example Figure 5 2 shows several typical basic shapes in some embodiments of the present disclosure, which are circle, rectangle, heart shape, equilateral triangle, ellipse, and sine and cosine curves from left to right. Of course, those skilled in the art will understand that the basic shapes described in the present disclosure are not limited to these, and may also include any other shapes, which will not be described in detail in the present disclosure.
[0072] like Figure 6 As shown, in some embodiments, the display control method of the example of the present disclosure, the process of pre-configuring the display function corresponding to the basic graphic, includes:
[0073] S610: Determine one or more parameters to be configured corresponding to the basic graphic based on the shape of the basic graphic.
[0074] S620: Construct a display function corresponding to the basic graphic according to one or more parameters to be configured corresponding to the basic graphic.
[0075] In the embodiments of the present disclosure, the display function of the basic graphic refers to a functional relationship used to express the shape of the basic graphic, and the parameters in the functional relationship are the parameters to be configured of the display function.
[0076] For example, it is well known that the circular function expression is: (xa)2+(yb)2=r2, which includes three parameters a, b and r, among which (a, b) are the coordinates of the center of the circle and r is the radius. Therefore, given the parameters a, b, r, the size and position of the circle can be uniquely determined.
[0077] Therefore, in this example, the parameters a, b, and r are the parameters to be configured corresponding to the basic graphic "circle", that is, the parameters to be configured of the basic graphic "circle" include the coordinates of the center of the circle (a, b) and the radius r. The expression (xa)2+(yb)2=r2 constructed based on the parameters to be configured a, b, and r is the display function corresponding to the basic graphic "circle".
[0078] Based on the above principle, the corresponding display function can be obtained for each basic graphic configuration. Figure 5 Taking the several basic graphics shown as examples, the process of configuring the display function for each basic graphic using C language will be explained.
[0079] For a circle, the parameters to be configured include the circular coordinates and radius value of the circle. The constructed display function is: (xa)2+(yb)2=r2, and the function code is: {void display_cycle(int x, int y, int r, RGB)}.
[0080] For a rectangle, the parameters to be configured include the coordinates of the lower left corner and the length and width values. The constructed display function code is: {void display_rectangle(int x,int y,int length,int width)}.
[0081] For the heart shape, the parameters to be configured are the coordinates of the heart shape and the size of the heart shape. The constructed display function is: (x 2 +y2–1)3-x 2 y3=0, the function code is: {void display_heart(int x,int y,int size)}.
[0082] For an equilateral triangle, the parameters to be configured include the coordinates of the lower left corner and the side length. The constructed display function code is: {void display_triangle(int x,int y,int length)}.
[0083] For an ellipse, the parameters to be configured include the coordinates of the center of the circle and the lengths of the major and minor axes. The constructed display function is: 2 / a2+y2 / b2=1, the function code is: {void display_oval(int x,int y,int a,int b)}.
[0084] For the sine and cosine curves, the configuration parameters are the starting position of the curve and the maximum display angle. The constructed function code is: {void display_sin(int x,int y,int angle); void display_cos(int x,int y,intangle)}.
[0085] Of course, those skilled in the art will understand that the basic graphics described in the present disclosure are not limited thereto, but may also include any other shapes. Based on the aforementioned disclosure, those skilled in the art can undoubtedly configure display functions for basic graphics of other shapes, and the present disclosure will not go into details therein.
[0086] In the embodiment of the present disclosure, after completing the configuration of the display functions of all basic graphics, these display functions can be stored in the display module, for example Figure 3 As shown, the display function corresponding to the basic graphics can be stored in the storage device (Flash) of the MCU.
[0087] In some implementations, the display functions corresponding to the basic graphics may be stored in the form of a list. For example, in one example, the storage list of the basic graphics and the display functions may be as shown in Table 1 below:
[0088] Table 1
[0089] Basic graphics Display Function Round f1 rectangle f2 Heart f3 …… ……
[0090] In the embodiment of the present disclosure, the above method and process can realize the configuration of the display function of the basic graphics, that is, the display module has the ability to call these basic graphics. However, it can be understood that different image contents include different basic graphics, for example Figure 4 The image shown in (a) includes three basic shapes "rectangles", and for example Figure 4 The image shown in (b) includes two basic graphics "rectangle" and two basic graphics "circle". Therefore, when the display module displays an image, which basic graphics need to be called needs to be determined in advance according to the image content.
[0091] In some implementations, the present disclosure may further pre-configure the correspondence between the displayed image and the image data.
[0092] Display images are various images that electronic devices need to display, such as Figure 4 (a) and (b) can be used as two display images. The image data of the display image described in the present disclosure does not refer to the data for controlling the display module to display the display image, but the display parameters of each basic graphic included in the display image. The display parameters of the basic graphics are the parameters corresponding to the parameters to be configured in the aforementioned display function.
[0093] For example, Figure 4 Taking the display image shown in (b) as an example, it is known that the display image includes 2 basic graphics "rectangle" and 2 basic graphics "circle", so the image data of the display image includes 2 rectangles and 2 circles. Taking the rectangle representing the front of the car as an example, the display parameters of the rectangle can include the position parameter, size parameter and color parameter of the rectangle on the image, etc. The position parameter is used to identify the position of the rectangle on the image, the size parameter is used to identify the size of the rectangle on the image, and the color parameter is used to identify the color of the rectangle on the image.
[0094] In other words, the image data of each displayed image records all the basic graphics included in the displayed image and the display parameters of each basic graphic. The display parameters may include, for example, the position parameters, size parameters, and color parameters of the basic graphics. Of course, the types of display parameters are not limited thereto, and those skilled in the art may select other parameters according to specific scene requirements. For example, when the display module only displays black and white images, the display parameters may not include color parameters.
[0095] For example, in some implementations, the correspondence between the pre-configured display image and the image data may be as shown in Table 2 below:
[0096] Table 2
[0097]
[0098] It can be seen from the corresponding relationship shown in Table 2 that the corresponding relationship is configured with the basic graphics included in each display image and the display parameters corresponding to each basic graphics.
[0099] After completing the configuration of the above display functions and display parameters, the electronic device can call the display functions of these basic graphics in the display stage, arbitrarily combine them to obtain the image to be displayed and output it for display. The display stage is described below.
[0100] 2) Display stage
[0101] like Figure 7 As shown, in some embodiments, the display control method of the present disclosure example includes:
[0102] S710: Acquire at least one target basic graphic included in the image to be displayed, and display parameters corresponding to each target basic graphic.
[0103] In the embodiment of the present disclosure, the image to be displayed refers to the image that the display module needs to display. As shown in Table 2 above, the electronic device is pre-configured with multiple display images, and the image to be displayed is an image determined from the multiple display images.
[0104] In some implementations, the image to be displayed may be determined according to a user instruction, or the image to be displayed may be determined autonomously by the electronic device, which is described below in the present disclosure.
[0105] After determining the image to be displayed, the basic graphics included in the image to be displayed can be determined based on, for example, the corresponding relationship shown in the aforementioned Table 2. The basic graphics included in the image to be displayed are the target basic graphics described in the present disclosure. At the same time, the image data corresponding to the image to be displayed also includes display parameters corresponding to each target basic graphic.
[0106] For example, in one example, the image to be displayed can be Figure 4 As shown in (a), according to the corresponding relationship shown in Table 2, it can be determined that the image to be displayed includes three basic graphics "rectangles" and the display parameters corresponding to each rectangle. The display parameters include, for example, the coordinates of the lower left corner, length and width, and color of each rectangle.
[0107] S720: Determine a target display function corresponding to a target basic graphic from display functions corresponding to pre-configured basic graphics, configure the target display function based on display parameters corresponding to the target basic graphic, and generate display data of an image to be displayed.
[0108] In the embodiment of the present disclosure, after determining the target basic graphics included in the image to be displayed, based on the correspondence between the basic graphics and the display functions configured in the preparation stage, such as shown in Table 1, the target display function corresponding to each target basic graphic can be determined.
[0109] For example, in the previous example, the image to be displayed can be Figure 4 As shown in (a), the target basic graphics included therein are three rectangles. Therefore, according to the corresponding relationship shown in Table 1, it can be determined that the display function corresponding to each rectangle is f2, and the display function f2 is the target display function corresponding to the target basic graphics.
[0110] Taking a target basic graphic included in the image to be displayed as an example, after determining the target display function of the target basic graphic, it can be understood that the target display function represents the expression relationship of the corresponding basic graphic, and the target display function includes one or more parameters to be configured. In order to display the target basic graphic on the display module, it is necessary to configure the parameters to be configured in the target display function according to the display parameters corresponding to the target basic graphic, so as to obtain the display data corresponding to the target basic graphic.
[0111] Still taking the aforementioned basic graphic "rectangle" as an example, by calling the corresponding relationship shown in Table 1, the target display function corresponding to the rectangle is determined to be f2. Combined with the above, it can be known that the target display function f2 includes parameters to be configured, including the lower left corner coordinates, length and width dimensions, and color. Therefore, in the embodiment of the present disclosure, the parameters to be configured in the target display function f2 can be configured according to the display parameters corresponding to the rectangle configured in the aforementioned Table 2, that is, the lower left corner coordinates, length and width dimensions, and color of the parameters to be configured are assigned values, and the display data corresponding to the obtained rectangle can uniquely determine the display position and size of the rectangle on the pixel array of the display module.
[0112] The above only takes one target basic graphic included in the image to be displayed as an example. For other target basic graphics included in the image to be displayed, the corresponding target display functions are called in turn according to the above process, and the target display functions are configured according to the display parameters, so as to obtain the display data corresponding to each target basic graphic on the image to be displayed, that is, the display data corresponding to the image to be displayed is obtained.
[0113] S730: Control a display module of the electronic device to display an image to be displayed according to the display data.
[0114] In the embodiment of the present disclosure, it can be known from the foregoing that the display data of the image to be displayed includes display data corresponding to each target basic graphic on the image to be displayed, so that the MCU of the display module can control the pixels corresponding to the pixel array to emit light according to the display data, thereby displaying each target basic graphic on the pixel array, and finally combining them to obtain the image to be displayed.
[0115] For example, the image to be displayed is Figure 4 As shown in (a), in the method of the embodiment of the present disclosure, firstly, the image data corresponding to the image to be displayed is determined according to the corresponding relationship shown in the aforementioned Table 2 as shown in the following Table 3:
[0116] Table 3
[0117]
[0118] As shown in Table 3, Image 1 is Figure 4 As shown in the image (a), it can be seen that the target basic graphics it includes are "rectangle 1", "rectangle 2" and "rectangle 3", and the display parameters of each target basic graphic are shown in Table III.
[0119] Then, the display module can call the target display function f2 once according to the target basic graphic "Rectangle 1", and then configure the target display function f2 according to the display parameters corresponding to Rectangle 1, and obtain the display data corresponding to the target basic graphic "Rectangle 1". For the target basic graphic "Rectangle 2", the target display function f2 is called again, and then the target display function f2 is configured according to the display parameters corresponding to Rectangle 2, and the display data corresponding to the target basic graphic "Rectangle 2" is obtained. For the target basic graphic "Rectangle 3", the target display function f2 is called again, and then the target display function f2 is configured according to the display parameters corresponding to Rectangle 3, and the display data corresponding to the target basic graphic "Rectangle 3" is obtained.
[0120] Afterwards, the display module controls the pixel array to display the corresponding target basic graphic according to the display data of each target basic graphic, so that the corresponding image to be displayed can be combined on the pixel array.
[0121] From the above, it can be seen that in the embodiments of the present disclosure, display images are combined by using pre-configured basic graphics, so that the display module does not need to pre-store the full amount of display image data, thus saving the memory space of the display module, and the basic graphics can be freely combined to obtain more display images, thereby improving the flexibility and richness of the display screen.
[0122] like Figure 8 As shown, in some embodiments, the display control method of the example of the present disclosure, the process of determining the target basic graphics and display parameters of the image to be displayed includes:
[0123] S810: Determine an image to be displayed.
[0124] In the embodiments of the present disclosure, the image to be displayed may be determined according to a user instruction, or the electronic device may determine the image to be displayed autonomously.
[0125] For example, in some implementations, the electronic device may receive a user instruction, and when receiving the user instruction, determine the display image corresponding to the user instruction as the image to be displayed.
[0126] For example, Figure 2 Taking the robot scene shown in the figure as an example, the user command can be a user voice command. When the robot detects the user voice command "Hello!", it can determine the image to be displayed according to the user voice command, for example Fig. 9 When the robot detects the user's voice command "I feel so sad today", it can determine the image to be displayed according to the user's voice command, for example Fig. 9 The “crying face” image shown in (b).
[0127] It is understood that the user command is not limited to the user voice command, and can also be, for example, a touch command, a remote control command, etc., which is not limited in the present disclosure. Moreover, after receiving the user command, the robot can further determine the intention of the user command through, for example, text conversion, semantic recognition, etc., which is not elaborated in the present disclosure.
[0128] For example, in some other implementations, the electronic device may detect whether a preset event is triggered, and when the preset event is triggered, determine a display image corresponding to the preset event as the image to be displayed.
[0129] For example, Figure 2 Taking the robot scene shown in the figure as an example, the robot starts up and performs a self-test. If an event that triggers the self-test is determined to be passed, the image to be displayed can be determined to be, for example Fig. 9 When the self-test fails, the image to be displayed can be determined to be, for example, Fig. 9 The “crying face” image shown in (b).
[0130] S820: Determine target image data corresponding to the image to be displayed based on a pre-configured correspondence between display images and image data.
[0131] As can be seen from the above, the correspondence between the pre-configured display image and the image data is the correspondence shown in Table 2 in the above preparation stage.
[0132] In the embodiment of the present disclosure, after determining the image to be displayed, the target image data corresponding to the image to be displayed can be determined according to the corresponding relationship shown in the aforementioned Table 2. The target image data includes each target basic graphic included in the image to be displayed, and the target display parameters corresponding to each target basic graphic.
[0133] After determining the target image data corresponding to the image to be displayed, the display module can control the display of the image to be displayed according to the target image data. Fig.10 Provide explanation.
[0134] like Fig.10 As shown, in some embodiments, the display control method of the present disclosure example includes:
[0135] S1010: According to the position parameters, size parameters and color parameters of the target basic graphic, the parameters to be configured included in the target display function are configured to obtain display data corresponding to the target basic graphic.
[0136] S1020: Generate display data of an image to be displayed according to the display data corresponding to all target basic graphics.
[0137] S1030, controlling corresponding pixels on the LED display module to emit light according to the display data, so that the LED display module displays the image to be displayed.
[0138] In the embodiment of the present disclosure, after the target image data of the image to be displayed is determined, the target basic graphics included in the image to be displayed and the display data corresponding to each target basic graphics are determined according to the target image data.
[0139] In some embodiments, the display data of the target basic graphic includes the position parameter, size parameter and color parameter of the target basic graphic. For example, if the target basic graphic is a "circle", the position parameter is the coordinate of the center of the circle, the size parameter is the radius size, and the color parameter is the color. For another example, if the target basic graphic is a "rectangle", the position parameter is the coordinate of the lower left corner, the size parameter is the length and width, and the color parameter is the color.
[0140] For example, in one example, the target basic graphic is a "circle". According to the configuration relationship shown in Table 1, the target display function corresponding to the circle is determined to be f1, which is specifically expressed as: (xa)2+(yb)2=r2. Therefore, the target display function can be configured according to the center coordinates (a, b) included in the position parameters, the radius r included in the size parameters, and the color parameters to obtain the display data corresponding to the target basic graphic "circle".
[0141] The above only takes one target basic graphic included in the image to be displayed as an example. For other target basic graphics included in the image to be displayed, the display data of each target basic graphic can be determined in accordance with the above process. Then, the display data of the image to be displayed can be obtained according to the display data of all target basic graphics included in the image to be displayed, that is, the display data of each target basic graphic is included in the display data of the image to be displayed.
[0142] In some embodiments of the present disclosure, the display module can be Figure 3 Taking the LED display module shown as an example, the display module can be a Mini LED display module. After obtaining the display data of the image to be displayed, the MCU of the LED display module can control the corresponding pixels on the pixel array to emit light, so as to display each target basic graphic on the pixel array, and finally combine to obtain the image to be displayed.
[0143] From the above, it can be seen that in the embodiments of the present disclosure, display images are combined by using pre-configured basic graphics, so that the display module does not need to pre-store the full amount of display image data, thus saving the memory space of the display module, and the basic graphics can be freely combined to obtain more display images, thereby improving the flexibility and richness of the display screen.
[0144] In some embodiments, the present disclosure provides a display control device, which can be applied to any of the above-mentioned electronic devices. Fig.11 As shown, the display control device of the example of the present disclosure includes:
[0145] The image acquisition module 10 is configured to acquire at least one target basic graphic included in the image to be displayed, and display parameters corresponding to each target basic graphic;
[0146] The data generating module 20 is configured to determine a target display function corresponding to the target basic graphic from display functions corresponding to pre-configured basic graphics, configure the target display function based on display parameters corresponding to the target basic graphic, and generate display data of the image to be displayed;
[0147] The display control module 30 is configured to control the display module of the electronic device to display the image to be displayed according to the display data.
[0148] In some embodiments, the present disclosure provides a display module, including:
[0149] a pixel array; and
[0150] A controller is used to execute the method described in any of the above embodiments to enable the pixel array to display an image to be displayed.
[0151] In the embodiment of the present disclosure, the display module may be, for example, the aforementioned LED display module, and further, the display module may be the aforementioned Mini LED display module. The controller of the display module is the aforementioned MCU.
[0152] In some embodiments, the present disclosure provides an electronic device, including:
[0153] Display module;
[0154] Processor; and
[0155] A memory stores computer instructions, wherein the computer instructions are used to enable a processor to execute the method described in any of the above embodiments.
[0156] In some embodiments, the present disclosure provides a storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the method described in any of the aforementioned embodiments.
[0157] In the embodiments of the present disclosure, the electronic device may be a device type described in any of the aforementioned embodiments, and the present disclosure does not limit this.
[0158] Specifically, Fig.12 A schematic diagram of the structure of an electronic device 600 suitable for implementing the method disclosed in the present invention is shown. Fig.12 The robot shown can realize the corresponding functions of the above-mentioned processor and storage medium.
[0159] like Fig.12 As shown, the electronic device 600 includes a processor 601, which can perform various appropriate actions and processes according to the program stored in the memory 602 or the program loaded from the storage part 608 into the memory 602. In the memory 602, various programs and data required for the operation of the electronic device 600 are also stored. The processor 601 and the memory 602 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0160] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.
[0161] In particular, according to an embodiment of the present disclosure, the above method process can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program tangibly contained on a machine-readable medium, and the computer program includes a program code for executing the above method. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 609, and / or installed from a removable medium 611.
[0162] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and a module, a program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0163] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the embodiments. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. The obvious changes or modifications derived therefrom are still within the scope of protection of the present invention.
Claims
1. A display control method, characterized in that: Applied to electronic equipment, the method comprises: Acquire at least one target basic graphic included in the image to be displayed, and display parameters corresponding to each target basic graphic; Determining a target display function corresponding to the target basic graphic from display functions corresponding to pre-configured basic graphics, configuring the target display function based on display parameters corresponding to the target basic graphic, and generating display data of the image to be displayed; The display module of the electronic device is controlled to display the image to be displayed according to the display data.
2. The method according to claim 1, characterized in that The step of acquiring at least one target basic graphic included in the image to be displayed and display parameters corresponding to each target basic graphic includes: Determine the image to be displayed; Based on the pre-configured correspondence between the display image and the image data, the target image data corresponding to the image to be displayed is determined; the image data includes basic graphics included in the corresponding display image and display parameters corresponding to each basic graphic.
3. The method according to claim 2, characterized in that The step of determining the image to be displayed includes: In response to receiving a user instruction, determining a display image corresponding to the user instruction as the image to be displayed; and / or, In response to detecting that the electronic device triggers a preset event, a display image corresponding to the preset event is determined as the image to be displayed.
4. The method according to claim 1, characterized in that: The display parameters include position parameters, size parameters, and color parameters of the target basic graphic; configuring the target display function based on the display parameters corresponding to the target basic graphic to generate display data of the image to be displayed includes: According to the position parameters, size parameters and color parameters of the target basic graphic, the parameters to be configured included in the target display function are configured to obtain display data corresponding to the target basic graphic; The display data of the image to be displayed is generated according to the display data corresponding to all target basic graphics.
5. The method according to claim 1, characterized in that The process of pre-configuring the display function corresponding to the basic graphics includes: Based on the shape of the basic graphic, determining one or more parameters to be configured corresponding to the basic graphic; The display function corresponding to the basic graphic is constructed according to one or more parameters to be configured corresponding to the basic graphic.
6. The method according to claim 1, characterized in that The display module includes an LED display module; and controlling the display module of the electronic device to display the image to be displayed according to the display data includes: The corresponding pixels on the LED display module are controlled to emit light according to the display data, so that the LED display module displays the image to be displayed.
7. A display control device, characterized in that: Applied to electronic equipment, the device comprises: An image acquisition module is configured to acquire at least one target basic graphic included in the image to be displayed, and display parameters corresponding to each target basic graphic; A data generation module is configured to determine a target display function corresponding to the target basic graphic from display functions corresponding to pre-configured basic graphics, configure the target display function based on display parameters corresponding to the target basic graphic, and generate display data of the image to be displayed; The display control module is configured to control the display module of the electronic device to display the image to be displayed according to the display data.
8. A display module, characterized in that: include: Pixel array; as well as A controller, wherein the controller is used to execute the method according to any one of claims 1 to 6, so that the pixel array displays an image to be displayed.
9. An electronic device, characterized in that: include: Display module; processor; as well as A memory storing computer instructions, wherein the computer instructions are used to enable a processor to execute the method according to any one of claims 1 to 6.
10. A storage medium, characterized in that: Computer instructions are stored, and the computer instructions are used to make a computer execute the method according to any one of claims 1 to 6.