Display control method, device and storage medium

By obtaining and analyzing the screen attribute parameters of electronic devices and automatically adjusting the display parameters, the problem of poor interface display effects caused by the diversified screen sizes of smart watches and other devices is solved, a display effect adapted to the screen size is achieved, and dial production is improved. of practicality.

CN113515225BActive Publication Date: 2024-09-17GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010281174.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-04-10
Publication Date
2024-09-17
Estimated Expiration
2040-04-10

AI Technical Summary

Technical Problem

The diverse screen sizes of electronic devices such as smart watches result in poor interface display and the inability to automatically adjust, reducing the practicality of dial production.

Method used

By obtaining the target screen attribute parameters of the electronic device, the corresponding target display parameters are determined, and the data to be displayed is displayed based on these parameters to achieve a display effect suitable for the screen size.

Benefits of technology

It realizes automatic adaptation of display elements under different screen sizes, improving the practicality and user experience of dial production.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113515225B
    Figure CN113515225B
Patent Text Reader

Abstract

The present application discloses a display control method, device and storage medium, which are applied to electronic devices, and the method includes: obtaining data to be displayed; obtaining target screen attribute parameters of the electronic device; determining target display parameters corresponding to the target screen attribute parameters; and displaying the data to be displayed according to the target display parameters. The embodiment of the present application can obtain screen-related attribute parameters, determine corresponding display parameters, and display the data to be displayed according to the display parameters, so as to achieve a display effect suitable for the screen size.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic technology, and in particular to a display control method, device, and storage medium. Background Art

[0002] With the widespread use of electronic devices (such as mobile phones, tablets, smart watches, etc.), electronic devices can support more and more applications and their functions are becoming more and more powerful. Electronic devices are developing in the direction of diversification and personalization, becoming indispensable electronic products in users' lives.

[0003] At present, taking smart watches as an example, because watches come in a variety of sizes and have different screen ratios, if the interface display cannot be automatically adjusted according to the screen, the practicality of dial production will be greatly reduced. Therefore, the problem of how to achieve a display effect suitable for the screen size needs to be solved urgently. Summary of the Invention

[0004] The embodiments of the present application provide a display control method, device, and storage medium, which can achieve a display effect suitable for the screen size.

[0005] In a first aspect, an embodiment of the present application provides a display control method, applied to an electronic device, the method comprising:

[0006] Get the data to be displayed;

[0007] Acquiring target screen attribute parameters of the electronic device;

[0008] determining target display parameters corresponding to the target screen attribute parameters;

[0009] The data to be displayed is displayed according to the target display parameter.

[0010] In a second aspect, an embodiment of the present application provides a display control device, which is applied to an electronic device. The device includes: a first acquisition unit, a second acquisition unit, a first determination unit, and a display unit, wherein:

[0011] The first acquiring unit is configured to acquire data to be displayed;

[0012] The second acquiring unit is configured to acquire target screen attribute parameters of the electronic device;

[0013] The first determining unit is configured to determine a target display parameter corresponding to the target screen attribute parameter;

[0014] The display unit is configured to display the data to be displayed according to the target display parameters.

[0015] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program comprises instructions for executing the steps of the method described in the first aspect of the embodiment of the present application.

[0016] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which is used to store a computer program. The computer program is executed by a processor to implement some or all of the steps described in the method described in the first aspect of the embodiment of the present application.

[0017] In a fifth aspect, embodiments of the present application provide a computer program product, comprising a non-transitory computer-readable storage medium storing a computer program, wherein the computer program is operable to cause a computer to execute some or all of the steps described in the method described in the first aspect of the embodiments of the present application. The computer program product may be a software installation package.

[0018] It can be seen that the display control method, device and storage medium described in the embodiments of the present application are applied to electronic devices to obtain data to be displayed, obtain target screen attribute parameters of the electronic device, determine target display parameters corresponding to the target screen attribute parameters, and display the data to be displayed according to the target display parameters. In this way, it is possible to obtain screen-related attribute parameters, determine the corresponding display parameters, and display the data to be displayed according to the display parameters, thereby achieving a display effect suitable for the screen size. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0020] Figure 1A is a structural diagram of an electronic device provided in an embodiment of the present application;

[0021] Figure 1B This is a flow chart of a display control method provided by an embodiment of the present application;

[0022] Figure 1C This is a schematic diagram illustrating an application scenario provided by an embodiment of the present application;

[0023] Figure 1D This is another schematic diagram illustrating an application scenario provided by an embodiment of the present application;

[0024] Figure 1E This is another schematic diagram illustrating an application scenario provided by an embodiment of the present application;

[0025] Figure 1F This is another schematic diagram illustrating an application scenario provided by an embodiment of the present application;

[0026] Figure 2 is a flow chart of another display control method provided in an embodiment of the present application;

[0027] Figure 3 is a structural diagram of another electronic device provided in an embodiment of the present application;

[0028] Figure 4A is a structural diagram of a display control device provided in an embodiment of the present application;

[0029] Figure 4B is a structural diagram of another display control device provided in an embodiment of the present application;

[0030] Figure 4C It is a structural diagram of another display control device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0031] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this application.

[0032] The following are detailed descriptions of each.

[0033] The terms "first," "second," "third," and "fourth," etc., in the specification and claims of this application and the accompanying drawings are used to distinguish between different objects, rather than to describe a specific order. In addition, the terms "including," "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or elements is not limited to the listed steps or elements, but may optionally include steps or elements not listed, or may optionally include other steps or elements inherent to the process, method, product, or apparatus.

[0034] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0035] Electronic devices may include various handheld devices with wireless communication capabilities, vehicle-mounted devices, wearable devices, smart watches, smart glasses, computing devices or other processing devices connected to a wireless modem, as well as various forms of user equipment (UE), mobile stations (MS), virtual reality / augmented reality devices, terminal devices, etc. Electronic devices may also be other devices with display screens or projection display devices.

[0036] Electronic devices may also include smart home devices, which may be at least one of the following: smart speakers, smart cameras, smart rice cookers, smart wheelchairs, smart massage chairs, smart furniture, smart dishwashers, smart televisions, smart refrigerators, smart electric fans, smart heaters, smart clothes drying racks, smart lights, smart routers, smart switches, smart switch panels, smart humidifiers, smart air conditioners, smart doors, smart windows, smart stoves, smart disinfection cabinets, smart toilets, sweeping robots, etc., without limitation here.

[0037] The following is a detailed introduction to the embodiments of the present application.

[0038] like Figure 1A As shown, Figure 1A 1 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device includes a processor, a memory, a random access memory (RAM), and a display screen. The memory, RAM, and display screen are all connected to the processor.

[0039] Furthermore, the electronic device may also include a speaker, a microphone, a camera, a communication interface, a signal processor and a sensor, the speaker, microphone, camera, signal processor and sensor are all connected to the processor, and the communication interface is connected to the signal processor.

[0040] The display screen may be a liquid crystal display (LCD), an organic or inorganic light-emitting diode (OLED), an active matrix organic light-emitting diode (AMOLED), or the like.

[0041] The camera can be a regular camera, an infrared camera, or a wide-angle camera, without limitation. The camera can be a front-facing camera or a rear-facing camera, without limitation. The camera can also be a dual camera, for example, an infrared camera + a visible light camera, or a regular camera + a wide-angle camera. Of course, the number of cameras can be more than two, without limitation.

[0042] The sensor includes at least one of the following: a light sensor, a gyroscope, an infrared proximity sensor, a fingerprint sensor, a pressure sensor, and the like. The light sensor, also known as an ambient light sensor, is used to detect the brightness of ambient light. The light sensor may include a photosensitive element and an analog-to-digital converter. The photosensitive element is used to convert the collected light signal into an electrical signal, and the analog-to-digital converter is used to convert the electrical signal into a digital signal. Optionally, the light sensor may further include a signal amplifier, which may amplify the electrical signal converted by the photosensitive element and output it to the analog-to-digital converter. The photosensitive element may include at least one of a photodiode, a phototransistor, a photoresistor, and a silicon photocell.

[0043] Among them, the processor is the control center of the electronic device, which uses various interfaces and lines to connect the various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory and calling data stored in the memory, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole.

[0044] The processor may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor.

[0045] The memory is used to store software programs and / or modules. The processor executes the various functional applications and data processing of the electronic device by running the software programs and / or modules stored in the memory. The memory may mainly include a program storage area and a data storage area. The program storage area may store the operating system, at least one software program required for a function, etc.; the data storage area may store data created based on the use of the electronic device, etc. In addition, the memory may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0046] See Figure 1B , Figure 1B The embodiment of the present application provides a display control method, which is applied to Figure 1A or Figure 1B The electronic device shown specifically includes the following steps:

[0047] 101. Obtain data to be displayed.

[0048] In the embodiment of the present application, the data to be displayed may be at least one of the following: pictures, videos, icons, text, web pages, etc., which are not limited here. The data to be displayed may be network data or data sent by other devices.

[0049] 102. Obtain target screen attribute parameters of the electronic device.

[0050] In the embodiment of the present application, the target screen attribute parameter may be at least one of the following: screen specifications, screen size, screen model, screen folding degree parameter (for folding screen), screen curvature (for curved screen), screen material, MIPI frequency, screen shape, screen thickness, screen operation parameters, screen sound vibration parameters, screen display control parameters (for example, display driver parameters), virtual screen parameters (for projection display device), etc., which are not limited here. The virtual screen parameter can be understood as the screen parameter of the projection display device. The virtual screen parameter may be at least one of the following: projection screen shape, projection screen resolution, projection screen lumen, projection screen contrast, etc., which are not limited here. The projection screen shape may be at least one of the following: heart-shaped, circular, elliptical, triangular, rectangular, fan-shaped, etc., which are not limited here. In a specific implementation, the target screen attribute parameters of the electronic device may be pre-stored in the electronic device. Of course, the target screen attribute parameters of the electronic device may also be detected by itself. For example, for a folding screen, the folding degree or the characteristics of each screen after folding may be detected. For another example, for a split-screen display application, the characteristics of each split screen may be detected.

[0051] In a possible example, when the display screen of the electronic device is a flexible screen, the above step 102 of obtaining the target screen attribute parameters of the electronic device may include the following steps:

[0052] 21. Determine an area to be displayed in the flexible screen;

[0053] 22. Determine the target screen attribute parameters corresponding to the area to be displayed.

[0054] Among them, the flexible screen can be a folding screen or a rollable flexible screen, and the area to be displayed can be a partial area of ​​the flexible screen. The electronic device can analyze the area to be displayed to obtain the target screen attribute parameters corresponding to the area to be displayed. In addition to the above-mentioned screen attribute parameters, the target screen attribute parameters can also include at least one of the following screen attribute parameters: screen curvature, rolling degree, display area size, etc., which are not limited here.

[0055] 103. Determine target display parameters corresponding to the target screen attribute parameters.

[0056] In the embodiment of the present application, the target display parameter can be at least one of the following: font size, font shape, display resolution, display contrast, font type, display area, display position, display color, display duration, display special effects, etc., which are not limited here. In specific implementations, it is possible to achieve display parameters corresponding to the screen size for different screens, such as curved screens, folding screens, screen sound screens, virtual displays (screens of projection display devices), special-shaped screens, conventional displays, etc., which helps to improve the display effect.

[0057] In the specific implementation, taking a smart watch as an example, Figure 1C As shown, the dial of the smart watch can be used as the first display area and the side area can be used as the second display area. Furthermore, when the first display area and the second display area are switched back and forth, due to the large difference in size between the two screens, the display parameters of the switched screen can be determined in this way to achieve a display effect suitable for the screen.

[0058] In the specific implementation, taking a mobile phone as an example, Figure 1D As shown, the mobile phone can be in split-screen mode, and the display screen can include a first split-screen area and a second split-screen area. Since the screen size used to display the data to be displayed is scaled, the display parameters corresponding to the split-screen area can be determined accordingly. For example, the first split-screen area is used to display the data to be displayed, and the display parameters of the first split-screen area can be adjusted accordingly to achieve a display effect adapted to the first split-screen area.

[0059] In the specific implementation, taking a mobile phone as an example, Figure 1EAs shown, the display screen of the mobile phone can be a folding display screen. After being folded, the folding display screen can include a first display area and a second display area. Since the screen size used to display the data to be displayed changes accordingly according to the degree of folding, the display parameters corresponding to the area after folding can be determined accordingly. For example, the first display area is used to display the data to be displayed, and the display parameters of the first display area can be adjusted accordingly to achieve a display effect adapted to the first display area.

[0060] In a possible example, the above step 103, determining the target display parameters corresponding to the target screen attribute parameters, may include the following steps:

[0061] According to a preset mapping relationship between screen attribute parameters and display parameters, the target display parameters corresponding to the target screen attribute parameters are determined.

[0062] The electronic device may pre-store a mapping relationship between preset screen attribute parameters and display parameters, and then determine the target display parameters corresponding to the target screen attribute parameters based on the mapping relationship. A mapping table is provided below:

[0063] Screen attribute parameters Display parameters Screen attribute parameter 1 Display parameter 1 Screen attribute parameter 2 Display parameter 2 … … Screen attribute parameter n Display parameter n

[0064] That is, corresponding display parameters are set for different screen attribute parameters. For example, screen attribute parameter 2 may correspond to display parameter 2.

[0065] In a possible example, when the target screen attribute parameter is a target operation parameter, the above step 103 of determining the target display parameter corresponding to the target screen attribute parameter may include the following steps:

[0066] A31. Get current display parameters;

[0067] A32. Determine a target adjustment parameter corresponding to the target operating parameter according to a preset mapping relationship between the operating parameter and the adjustment parameter;

[0068] A33. Adjust the current display parameter according to the target adjustment parameter to obtain the target display parameter.

[0069] Among them, in the embodiment of the present application, the operating parameters can be understood as the operating parameters for the touch display screen, the target screen attribute parameters can be broadly understood as the target operating parameters, and the operating parameters can be at least one of the following: the touch parameters of the touch display screen or touch panel, the pressing parameters of pressing physical buttons, the screen touch sensitivity, any numerical value input through the touch display screen or any option content selected, etc., which are not limited here. Among them, the touch parameters can be at least one of the following: the touch trajectory of the touch display screen or touch panel, the number of touches on the touch display screen or touch panel, the touch position of the touch display screen or touch panel, the touch frequency of the touch display screen or touch panel, the touch area of ​​the touch display screen or touch panel, the touch duration of the touch display screen or touch panel, the touch force of the touch display screen or touch panel, etc., which are not limited here. The adjustment parameter can be an adjustment coefficient, for example, the adjustment parameter can be greater than 0.

[0070] In a specific implementation, the current display parameter may be at least one of the following: font size, font shape, font type, display area, display resolution, display contrast, display position, display color, display duration, display special effects, etc., which are not limited here. The electronic device can obtain the current display parameter and the target operation parameter. The electronic device can also pre-store a mapping relationship between preset operation parameters and adjustment parameters. Then, the target adjustment parameter corresponding to the target operation parameter can be determined based on the mapping relationship. Then, the current display parameter can be adjusted based on the target adjustment parameter to obtain the target display parameter.

[0071] 104. Display the data to be displayed according to the target display parameters.

[0072] The target display parameters are used to adjust the display layout of the data to be displayed. The electronic device can display the data to be displayed according to the target display parameters, thereby achieving a display effect suitable for the screen size.

[0073] In a possible example, the above step 104, displaying the data to be displayed according to the target display parameter, may include the following steps:

[0074] 41. Obtain target environment parameters;

[0075] 42. Determine the target fine-tuning parameter corresponding to the target environmental parameter according to the preset mapping relationship between the environmental parameter and the fine-tuning parameter;

[0076] 43. Adjust the target display parameter according to the target fine-tuning parameter to obtain a first display parameter;

[0077] 44. Display the data to be displayed according to the first display parameter.

[0078] The environmental parameter may be at least one of the following: ambient light brightness, number of ambient light sources, geographic location, weather, altitude, atmospheric pressure, distance between the human eye and the display screen, relative angle between the human eye and the display screen, etc., without limitation herein. The electronic device may be provided with an environmental sensor, which may be used to detect the environmental parameters. The environmental sensor may be at least one of the following: an ambient light sensor, a camera, a positioning sensor, a compass, a weather sensor, etc., without limitation herein.

[0079] In a specific implementation, the value range of the fine-tuning parameter can be set by the user or by the system default. For example, the value range of the fine-tuning parameter can be -0.2 to 0.2. The electronic device can obtain the target environmental parameters. The electronic device can also pre-store the mapping relationship between the preset environmental parameters and the fine-tuning parameters. Then, according to the mapping relationship between the preset environmental parameters and the fine-tuning parameters, the target fine-tuning parameters corresponding to the target environmental parameters can be determined, and the target display parameters can be adjusted according to the target fine-tuning parameters to obtain the first display parameter, the first display parameter = (1 + target fine-tuning parameter) * current display parameter, and then, the data to be displayed can be displayed according to the first display parameter. In this way, a display effect suitable for the environment can be achieved.

[0080] In a possible example, after the above step 101 of obtaining the data to be displayed and before step 102 of obtaining the target screen attribute parameters of the electronic device, the following steps may also be included:

[0081] B1. Determine target attribute information of the data to be displayed;

[0082] B2. When the target attribute information does not meet the preset conditions, execute the step of obtaining the target screen attribute parameters of the electronic device.

[0083] The preset conditions may be set by the user or by system default, and the target attribute information of the data to be displayed may be at least one of the following: size, specification, color, format, data source, etc., which are not limited here.

[0084] In a specific implementation, the electronic device can analyze the data to be displayed, thereby obtaining target attribute information of the data to be displayed. When the target attribute information does not meet the preset conditions, step 102 may not be executed. Otherwise, the data can be displayed directly. For example, if the data to be displayed is suitable for the size of the electronic device, it can be displayed directly. Otherwise, the display parameters of the data to be displayed can be adjusted to obtain a display effect adapted to the screen.

[0085] In specific implementation, taking smart watches as an example, in related technologies, the use of code programming to create watch faces requires certain programming skills, and it cannot be made through simple tutorials. Non-developers such as designers cannot make watch faces designed by reading tutorials, and must hand over the design to developers to restore the watch faces. In addition, although ColorOS theme production provides a configuration method, the values ​​set for the position and size of some elements are fixed and will not automatically scale according to the screen size. This has little impact on related fixed mobile phone themes, but is very unfavorable for dial configuration restoration, because watches come in a variety of sizes and have different proportions. If the display of the interface cannot be automatically adjusted according to the screen, the practicality of dial production will be greatly reduced.

[0086] Based on this, an embodiment of the present application is an extension engine of the ColorOS engine, that is, a dial production solution in the ColorOS Watch engine that can automatically adapt to the screen size. The ColorOS Watch engine can directly parse and render the resource compression package on the storage device. Parsing is based on a set of grammatical description rules customized using XML files. Each dial needs to describe the effect it wants to achieve in the XML file according to the designed grammatical rules, such as which pictures or texts to display, how to display them, what the animation rules are, etc. The dial engine can read the XML file and the required image resources and other materials from the compressed package, and parse the rules in the XML to render it into the actual display content.

[0087] For example, the display size and position of a watch face background image require setting the x, y, w, and h coordinates (x, y) from the top left corner of the screen (the specified position), as well as the image's width and height. To ensure the background image displays correctly on watch faces of varying sizes, the width and height must be set to the screen's width and height. Therefore, you can't simply set fixed values; you must convert them based on the screen size.

[0088] The ColorOS Watch engine has added a dial production solution that automatically adapts to the screen size. By using specific expressions, such as letting w = "?x402" and h = "?y476", and a built-in automatic conversion table, the display elements can automatically adapt to the screen size.

[0089] In an embodiment of the present application, the electronic device relies on an engine to parse a special expression set during configuration, and searches an automatic conversion table based on the screen size of the currently running watch, thereby obtaining a numerical value suitable for the current screen size, and then setting it as the relevant attribute of the display element.

[0090] For example, if the width and height of the watch face background image are set to ?x402 and ?y476, when running on a 402x476 watch, the engine will read the x402 and y476 values ​​from the 402x476 automatic conversion table and convert them to 402 and 476; if running on a 320x360 watch, the engine will read the x402 and y476 values ​​from the 320x360 automatic conversion table and convert them to 320 and 360.

[0091] As a result, the width and height of the dial background image will automatically adjust according to the current watch screen size, thus achieving the effect of automatically adapting to the screen size. Similarly, other display elements can also automatically adapt, so that the entire dial can automatically adapt.

[0092] In one embodiment, when the electronic device includes a projection display device, after the step 104 of displaying the data to be displayed according to the target display parameters, the following steps may be further included:

[0093] C1. Obtain the target environment background parameters of the location to be displayed;

[0094] C2. Determine a second display parameter corresponding to the target environmental background parameter according to a preset mapping relationship between environmental background parameters and display parameters;

[0095] C3. Displaying the data to be displayed using the second display parameters via the projection display device.

[0096] In the embodiments of the present application, the location to be displayed can be understood as a projected display location. When the electronic device includes a projection display device, the data to be displayed can be projected onto the location to be displayed for display. The target environment background parameter can be at least one of the following: the color of the location to be displayed, the distance between the location to be displayed and the electronic device, the light intensity at the location to be displayed, etc., without limitation herein. The electronic device can obtain the target environment background parameter via a sensor, which can be at least one of the following: a ranging sensor, a camera, an ambient light sensor, etc., without limitation herein.

[0097] Take smart watches as an example. Figure 1F As shown, the smart watch includes a projection display device. The smart watch can determine the position to be displayed and determine display parameters suitable for the position to be displayed. The position to be displayed is used to display the data to be displayed so as to achieve a display effect adapted to the position to be displayed.

[0098] In a specific implementation, the electronic device can obtain the target environmental background parameters of the position to be displayed, and the electronic device can pre-store the mapping relationship between the preset environmental background parameters and the display parameters. Then, according to the mapping relationship between the preset environmental background parameters and the display parameters, the second display parameters corresponding to the target environmental background parameters can be determined. Then, the data to be displayed can be displayed with the second display parameters through the projection display device. In this way, the display parameters displayed at the projection position can be realized, and the projection display function can be realized with the display parameters.

[0099] In one embodiment, when the electronic device includes a projection display device, the above step 102 of obtaining the target screen attribute parameters of the electronic device may include the following steps:

[0100] D21. Obtain the user's breathing change curve;

[0101] D22, determining the target emotion type of the user based on the breathing change curve;

[0102] D23. Determine the target screen attribute parameter corresponding to the target emotion type according to a preset mapping relationship between the emotion type and the screen attribute parameter.

[0103] Among them, in the embodiment of the present application, the target screen attribute parameters can be understood as virtual screen parameters, and the virtual screen parameters can be understood as screen parameters of the projection display device. The virtual screen parameters can be at least one of the following: projection screen shape, projection screen resolution, projection screen lumen, projection screen contrast, etc., which are not limited here. The breathing change curve can be a breathing change curve within a preset time period. The preset time period can be set by the user or by the system default. The breathing change curve can be detected by a breathing detection sensor. The horizontal axis of the breathing change curve is time, and the vertical axis can be one of the following: breathing strength, breathing sound volume, breathing frequency, breathing amplitude, etc., which are not limited here. The emotion type can be at least one of the following: dull, crying, calm, irritable, excited, depressed, etc., which are not limited here. Since breathing is closely related to the user's emotions, in the embodiment of the present application, emotion detection can be achieved through the user's breathing changes.

[0104] In a specific implementation, the electronic device can obtain the user's breathing change curve, and then determine the user's target emotion type based on the breathing change curve. The electronic device can also pre-store the mapping relationship between the preset emotion type and the screen attribute parameters, and then determine the target screen attribute parameters corresponding to the target emotion type based on the mapping relationship to achieve a personalized display effect. For example, different emotions can achieve different screen shapes, or different emotions can achieve different screen resolutions.

[0105] In one possible example, the above step D22, determining the target emotion type of the user based on the breathing change curve, can be implemented as follows:

[0106] D221, sampling the respiratory change curve to obtain multiple respiratory values;

[0107] D222, performing a mean operation based on the multiple respiratory values ​​to obtain an average respiratory value;

[0108] D223, determining a target respiratory level corresponding to the average respiratory value;

[0109] D224, determining a target first emotion value corresponding to the target breathing level according to a preset mapping relationship between the breathing level and the first emotion value;

[0110] D225. performing a mean square error calculation based on the multiple respiratory values ​​to obtain a target mean square error;

[0111] D226. Determine a target second emotion value corresponding to the target mean square deviation according to a preset mapping relationship between the mean square deviation and the second emotion value;

[0112] D227: Determine a target weight pair corresponding to the target breathing level according to a preset mapping relationship between the breathing level and the weight pair, where the weight pair includes a first weight and a second weight, the first weight being a weight corresponding to the first emotion value, and the second weight being a weight corresponding to the second emotion value;

[0113] D228, performing a weighted operation based on the target first emotion value, the target second emotion value, and the target weight value to obtain a final emotion value;

[0114] D229: Determine the target emotion type corresponding to the target emotion value according to a preset mapping relationship between emotion values ​​and emotion types.

[0115] Among them, the designated time period can be set by the user or by system default, and the electronic device can pre-store the mapping relationship between the preset breathing level and the first emotion value, the mapping relationship between the preset mean square error and the second emotion value, the mapping relationship between the preset breathing level and the weight pair, and the mapping relationship between the preset emotion value and the emotion type. The above-mentioned weight pair may include a first weight and a second weight, the first weight being the weight corresponding to the first emotion value, and the second weight being the weight corresponding to the second emotion value, wherein the sum of the first weight and the second weight can be 1, and the value ranges of the first weight and the second weight are both 0 to 1. In the embodiment of the present application, emotions can be evaluated by the breathing change curve.

[0116] In a specific implementation, the electronic device can sample the breathing change curve, and the specific sampling method can be: uniform sampling or random sampling to obtain multiple breathing values, and the mean operation can be performed based on the multiple breathing values ​​to obtain the average breathing value. The electronic device can pre-store the mapping relationship between the breathing value and the breathing level, and then, the target breathing level corresponding to the average breathing value can be determined based on the mapping relationship, and then, the target first emotion value corresponding to the target breathing level can be determined according to the above-mentioned preset mapping relationship between the breathing level and the first emotion value, and then, the mean square error operation can be performed based on the multiple breathing values ​​to obtain the target mean square error, and the target second emotion value corresponding to the target mean square error can be determined according to the mapping relationship between the preset mean square error and the second emotion value.

[0117] Furthermore, the electronic device may also determine a target weight pair corresponding to the target breathing level according to the above-mentioned preset mapping relationship between the breathing level and the weight pair. The target weight pair may include a target first weight and a target second weight. The target first weight is the weight corresponding to the target first emotion value, and the target second weight is the weight corresponding to the target second emotion value. Then, the electronic device may perform a weighted operation based on the target first emotion value, the target second emotion value, the target first weight, and the target second weight to obtain a final emotion value. The specific calculation formula is as follows:

[0118] Final emotion value = target first emotion value * target first weight + target second emotion value * target second weight

[0119] Furthermore, the target emotion type corresponding to the target emotion value can be determined according to the preset mapping relationship between emotion values ​​and emotion types. The average respiration rate reflects the user's respiration value, and the mean square deviation of respiration reflects respiration stability. By reflecting the user's emotion along these two dimensions, the user's emotion type can be accurately determined.

[0120] It can be seen that the display control method described in the embodiment of the present application is applied to an electronic device to obtain data to be displayed, obtain target screen attribute parameters of the electronic device, determine target display parameters corresponding to the target screen attribute parameters, and display the data to be displayed according to the target display parameters. In this way, it is possible to obtain screen-related attribute parameters, determine the corresponding display parameters, and display the data to be displayed according to the display parameters, thereby achieving a display effect suitable for the screen size.

[0121] With the Figure 1B For details on the embodiment shown, please refer to Figure 2 , Figure 2 This is another display control method provided by the embodiment of the present application, which is applied to Figure 1A The electronic device shown specifically includes the following steps:

[0122] 201. Obtain data to be displayed.

[0123] 202. Determine target attribute information of the data to be displayed.

[0124] 203. When the target attribute information does not meet a preset condition, obtain target screen attribute parameters of the electronic device.

[0125] 204. Determine target display parameters corresponding to the target screen attribute parameters.

[0126] 205. Display the data to be displayed according to the target display parameters.

[0127] It should be noted that the specific implementation process of this embodiment can refer to the specific implementation process described in the above method embodiment, and will not be described again here.

[0128] It can be seen that the display control method described in the embodiment of the present application is applied to an electronic device to obtain data to be displayed, determine target attribute information of the data to be displayed, and when the target attribute information does not meet the preset conditions, obtain the target screen attribute parameters of the electronic device, determine the target display parameters corresponding to the target screen attribute parameters, and display the data to be displayed according to the target display parameters. In this way, the attribute parameters related to the screen can be obtained, and the corresponding display parameters can be determined, and the data to be displayed can be displayed according to the display parameters, so that a display effect suitable for the screen size can be achieved. Specifically, for example, if the data to be displayed is suitable for the size of the electronic device, it can be displayed directly. Otherwise, the display parameters of the data to be displayed can be adjusted, thereby obtaining a display effect adapted to the screen.

[0129] With the above Figure 1B and Figure 2 For details on the embodiments shown, please refer to Figure 3 , Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. As shown in the figure, the electronic device includes a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for performing the following steps:

[0130] Get the data to be displayed;

[0131] Acquiring target screen attribute parameters of the electronic device;

[0132] determining target display parameters corresponding to the target screen attribute parameters;

[0133] The data to be displayed is displayed according to the target display parameter.

[0134] It can be seen that the electronic device described in the embodiment of the present application obtains the data to be displayed, obtains the target screen attribute parameters of the electronic device, determines the target display parameters corresponding to the target screen attribute parameters, and displays the data to be displayed according to the target display parameters. In this way, it is possible to obtain the screen-related attribute parameters, determine the corresponding display parameters, and display the data to be displayed according to the display parameters, thereby achieving a display effect suitable for the screen size.

[0135] In one possible example, in determining the target display parameter corresponding to the target screen attribute parameter, the program includes instructions for executing the following steps:

[0136] According to a preset mapping relationship between screen attribute parameters and display parameters, the target display parameters corresponding to the target screen attribute parameters are determined.

[0137] In one possible example, when the target screen attribute parameter is a target operation parameter, in determining the target display parameter corresponding to the target screen attribute parameter, the program includes instructions for executing the following steps:

[0138] Get the current display parameters;

[0139] Determining the target adjustment parameter corresponding to the target operating parameter according to the preset mapping relationship between the operating parameter and the adjustment parameter;

[0140] The current display parameter is adjusted according to the target adjustment parameter to obtain the target display parameter.

[0141] In one possible example, in terms of displaying the data to be displayed according to the target display parameter, the program includes instructions for executing the following steps:

[0142] Get target environment parameters;

[0143] Determining the target fine-tuning parameters corresponding to the target environmental parameters according to the mapping relationship between the preset environmental parameters and the fine-tuning parameters;

[0144] Adjusting the target display parameter according to the target fine-tuning parameter to obtain a first display parameter;

[0145] The data to be displayed is displayed according to the first display parameter.

[0146] In a possible example, when the display screen of the electronic device is a flexible screen, in terms of obtaining the target screen attribute parameters of the electronic device, the program includes instructions for performing the following steps:

[0147] Determining an area to be displayed in the flexible screen;

[0148] The target screen attribute parameters corresponding to the to-be-displayed area are determined.

[0149] In a possible example, after acquiring the data to be displayed and before acquiring the target screen attribute parameters of the electronic device, the program further includes instructions for executing the following steps:

[0150] Determining target attribute information of the data to be displayed;

[0151] When the target attribute information does not meet the preset condition, the step of obtaining the target screen attribute parameters of the electronic device is performed.

[0152] In a possible example, when the electronic device includes a projection display device, after displaying the data to be displayed according to the target display parameters, the program further includes instructions for executing the following steps:

[0153] Obtain target environment background parameters of the location to be displayed;

[0154] Determining a second display parameter corresponding to the target environmental background parameter according to a preset mapping relationship between environmental background parameters and display parameters;

[0155] The data to be displayed is displayed using the second display parameter via the projection display device.

[0156] The above mainly introduces the solution of the embodiment of the present application from the perspective of the execution process of the method side. It is understandable that, in order to realize the above functions, the electronic device includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiment provided herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in a hardware or computer software driven hardware manner depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0157] The embodiment of the present application can divide the functional units of the electronic device according to the above method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0158] See also Figure 4A , Figure 4A A display control device provided in an embodiment of the present application is applied to an electronic device. The device 400 includes: a first acquisition unit 401, a second acquisition unit 402, a first determination unit 403 and a display unit 404, wherein:

[0159] The first acquiring unit 401 is configured to acquire data to be displayed;

[0160] The second acquiring unit 402 is configured to acquire target screen attribute parameters of the electronic device;

[0161] The first determining unit 403 is configured to determine a target display parameter corresponding to the target screen attribute parameter;

[0162] The display unit 404 is configured to display the data to be displayed according to the target display parameters.

[0163] It can be seen that the display control device described in the embodiment of the present application is applied to an electronic device to obtain data to be displayed, obtain target screen attribute parameters of the electronic device, determine target display parameters corresponding to the target screen attribute parameters, and display the data to be displayed according to the target display parameters. In this way, it is possible to obtain screen-related attribute parameters, determine the corresponding display parameters, and display the data to be displayed according to the display parameters, thereby achieving a display effect suitable for the screen size.

[0164] In a possible example, in determining the target display parameter corresponding to the target screen attribute parameter, the first determining unit 403 is specifically configured to:

[0165] According to a preset mapping relationship between screen attribute parameters and display parameters, the target display parameters corresponding to the target screen attribute parameters are determined.

[0166] In a possible example, when the target screen attribute parameter is a target operation parameter, in determining the target display parameter corresponding to the target screen attribute parameter, the first determining unit 403 is specifically configured to:

[0167] Get the current display parameters;

[0168] Determining the target adjustment parameter corresponding to the target operating parameter according to the preset mapping relationship between the operating parameter and the adjustment parameter;

[0169] The current display parameter is adjusted according to the target adjustment parameter to obtain the target display parameter.

[0170] In a possible example, in terms of displaying the data to be displayed according to the target display parameter, the display unit 404 is specifically configured to:

[0171] Get target environment parameters;

[0172] Determining the target fine-tuning parameters corresponding to the target environmental parameters according to the mapping relationship between the preset environmental parameters and the fine-tuning parameters;

[0173] Adjusting the target display parameter according to the target fine-tuning parameter to obtain a first display parameter;

[0174] The data to be displayed is displayed according to the first display parameter.

[0175] In a possible example, when the display screen of the electronic device is a flexible screen, in acquiring the target screen attribute parameters of the electronic device, the second acquiring unit 502 is specifically configured to:

[0176] Determining an area to be displayed in the flexible screen;

[0177] The target screen attribute parameters corresponding to the to-be-displayed area are determined.

[0178] In one possible example, Figure 4B As shown, Figure 4B for Figure 4A Another variant structure of the display control device shown in FIG. Figure 4A In comparison, the method may further include: a second determining unit 405, specifically as follows:

[0179] The second determining unit 405 is configured to determine target attribute information of the data to be displayed;

[0180] When the target attribute information does not meet a preset condition, the second acquiring unit 402 executes the step of acquiring the target screen attribute parameters of the electronic device.

[0181] In a possible example, when the electronic device includes a projection display device, such as Figure 4C As shown, Figure 4C for Figure 4A Another variant structure of the display control device shown in FIG. Figure 4A In comparison, the method may further include: a third obtaining unit 406 and a third determining unit 407, specifically as follows:

[0182] The third acquisition unit 406 is used to acquire the target environment background parameters of the position to be displayed;

[0183] The third determining unit 407 is configured to determine the second display parameter corresponding to the target environmental background parameter according to a preset mapping relationship between environmental background parameters and display parameters;

[0184] The display unit 404 is further configured to display the data to be displayed using the second display parameters via the projection display device.

[0185] It can be understood that the functions of each program module of the display control device of this embodiment can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment and will not be repeated here.

[0186] An embodiment of the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute some or all of the steps described for the electronic device in the above method embodiment.

[0187] The present application also provides a computer program product, including a non-transitory computer-readable storage medium storing a computer program, wherein the computer program is operable to cause a computer to execute some or all of the steps described for the electronic device in the above method. The computer program product may be a software installation package.

[0188] The steps of the method or algorithm described in the embodiments of the present application can be implemented in hardware or by executing software instructions by a processor. The software instructions can be composed of corresponding software modules, which can be stored in random access memory (RAM), flash memory, read-only memory (ROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, mobile hard disks, read-only compact disks (CD-ROMs), or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and the storage medium can be located in an ASIC. In addition, the ASIC can be located in an access network device, a target network device, or a core network device. Of course, the processor and the storage medium can also exist as discrete components in an access network device, a target network device, or a core network device.

[0189] Those skilled in the art will appreciate that, in one or more of the above examples, the functions described in the embodiments of the present application can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiments of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, computer, server, or data center to another website, computer, server, or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital video disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).

[0190] The specific implementation methods described above further illustrate the purpose, technical solutions and beneficial effects of the embodiments of the present application. It should be understood that the above description is only a specific implementation method of the embodiments of the present application and is not intended to limit the scope of protection of the embodiments of the present application. Any modifications, equivalent replacements, improvements, etc. made on the basis of the technical solutions of the embodiments of the present application should be included in the scope of protection of the embodiments of the present application.

Claims

1. A display control method, characterized in that: Applied to electronic equipment, the method comprises: Get the data to be displayed; Acquire target screen attribute parameters of the electronic device; the target screen attribute parameters include screen size, and the target screen attribute parameters also include at least one of the following: screen folding degree parameter, screen curvature; Determine the target display parameter corresponding to the target screen attribute parameter, specifically by: parsing the special expression set during configuration, and searching the automatic conversion table according to the screen size of the currently running electronic device to obtain a value suitable for the current screen size, and then setting it as the relevant attribute of the display element; The data to be displayed is displayed according to the target display parameter.

2. The method according to claim 1, characterized in that The determining of the target display parameter corresponding to the target screen attribute parameter includes: According to a preset mapping relationship between screen attribute parameters and display parameters, the target display parameters corresponding to the target screen attribute parameters are determined.

3. The method according to claim 1, characterized in that When the target screen attribute parameter is a target operation parameter, determining a target display parameter corresponding to the target screen attribute parameter includes: Get the current display parameters; Determine the target adjustment parameter corresponding to the target operating parameter according to the preset mapping relationship between the operating parameter and the adjustment parameter; The current display parameter is adjusted according to the target adjustment parameter to obtain the target display parameter.

4. The method according to any one of claims 1 to 3, characterized in that: The displaying the data to be displayed according to the target display parameter includes: Get target environment parameters; Determine the target fine-tuning parameter corresponding to the target environmental parameter according to the mapping relationship between the preset environmental parameter and the fine-tuning parameter; Adjusting the target display parameter according to the target fine-tuning parameter to obtain a first display parameter; The data to be displayed is displayed according to the first display parameter.

5. The method according to any one of claims 1 to 3, characterized in that: When the display screen of the electronic device is a flexible screen, the acquiring the target screen attribute parameter of the electronic device includes: Determining a to-be-displayed area in the flexible screen; The target screen attribute parameters corresponding to the area to be displayed are determined.

6. The method according to any one of claims 1 to 3, characterized in that: After acquiring the data to be displayed and before acquiring the target screen attribute parameters of the electronic device, the method further includes: Determining target attribute information of the data to be displayed; When the target attribute information does not meet the preset condition, the step of acquiring the target screen attribute parameters of the electronic device is performed.

7. The method according to any one of claims 1 to 3, characterized in that: When the electronic device includes a projection display device, after displaying the data to be displayed according to the target display parameter, the method further includes: Obtain target environment background parameters of the location to be displayed; Determine the second display parameter corresponding to the target environmental background parameter according to the preset mapping relationship between the environmental background parameter and the display parameter; The data to be displayed is displayed by the projection display device using the second display parameters.

8. A display control device, characterized in that: Applied to electronic equipment, the device comprises: a first acquisition unit, a second acquisition unit, a first determination unit and a display unit, wherein: The first acquisition unit is used to acquire data to be displayed; The second acquisition unit is used to acquire a target screen attribute parameter of the electronic device; the target screen attribute parameter includes a screen size, and the target screen attribute parameter also includes at least one of the following: a screen folding degree parameter and a screen curvature; The first determination unit is used to determine the target display parameter corresponding to the target screen attribute parameter, specifically by parsing the special expression set during configuration, and searching the automatic conversion table according to the screen size of the currently running electronic device to obtain a value suitable for the current screen size, and then setting it as the relevant attribute of the display element; The display unit is used to display the data to be displayed according to the target display parameter.

9. An electronic device, characterized in that: The method comprises a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for executing the steps in the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and the computer program is executed by a processor to implement the method according to any one of claims 1 to 7.