User interface adjustment method, device, equipment and storage medium
By configuring the communication connection between the user interface and the terminal information collection unit, analyzing the environmental data category information and extracting the subject elements, the problem of the inability to efficiently and dynamically adjust the user interface in the prior art is solved, and the adjustment efficiency is improved.
Patent Information
- Application Number
- CN202210512800.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-12
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2042-05-12
AI Technical Summary
The prior art cannot efficiently and dynamically adjust the user interface based on a non-single data source, resulting in inefficient adjustment.
By configuring the communication connection between the user interface and the information collection unit on the terminal, we obtain environmental data, analyze data category information, determine the extraction method of the topic element, and adjust the user interface according to the topic element.
Dynamic adjustment based on different data sources is realized, the efficiency of user interface adjustment is improved, and the problem of inability to efficiently dynamic adjustment is solved.
Smart Images

Figure CN114816643B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of user interface processing, and in particular to a user interface adjustment method, device, equipment and storage medium. Background Art
[0002] Adjustment of the user interface is an important part of user interface processing. Existing static user interface adjustment solutions usually fix the corresponding interface adjustment options in the program framework, which makes it difficult to achieve dynamic adjustment of the user interface. In existing dynamic user interface adjustment solutions, adjustments are usually made based on a single data source in accordance with a preset adjustment method, and it is impossible to make corresponding efficient dynamic adjustments to the user interface based on different data sources.
[0003] In summary, the existing technology has the problem of being unable to efficiently and dynamically adjust the user interface based on non-single data source. Summary of the invention
[0004] The main purpose of the present application is to provide a user interface adjustment method, device, equipment and storage medium to solve the problem in the prior art that the user interface cannot be efficiently and dynamically adjusted based on non-single data source.
[0005] A first aspect of the present invention provides a user interface adjustment method, which includes: configuring a communication connection between a user interface and an information acquisition unit on a terminal, wherein the information acquisition unit includes at least one of an image information acquisition unit, a data acquisition unit, an external state monitoring unit, and an internal state monitoring unit; acquiring environmental data collected by the information acquisition unit through the communication connection; parsing the environmental data to obtain category information of the environmental data, wherein the category information includes at least external environmental status and internal environmental status; determining a theme element extraction method based on the category information, and extracting theme elements from the environmental data based on the theme element extraction method; and adjusting the user interface based on the theme elements.
[0006] Optionally, in a first implementation method of the first aspect of the present invention, when the information acquisition unit is the image information acquisition unit, the communication connection between the configuration user interface and the information acquisition unit on the terminal includes: initializing the information storage object corresponding to the image information acquisition unit; obtaining the controller proxy object corresponding to the image information acquisition unit; and establishing a communication connection between the user interface and the image information acquisition unit based on the controller proxy object.
[0007] Optionally, in a second implementation method of the first aspect of the present invention, when the category information is an external environment state, determining a theme element extraction method according to the type of the environment data, and extracting theme elements from the environment data according to the theme element extraction method, includes: parsing the external environment state information to obtain external environment parameter items and corresponding external environment parameter values, wherein the external environment parameter items include at least one of temperature, humidity and atmospheric pressure; constructing color parameters based on the external environment parameter items and the corresponding external environment parameter values to obtain the theme elements.
[0008] Optionally, in a third implementation method of the first aspect of the present invention, when the category information is an internal environment status, determining a theme element extraction method according to the type of the environment data, and extracting theme elements from the environment data according to the theme element extraction method, includes: parsing the internal environment status information to obtain internal environment parameter items and corresponding internal environment parameter values, wherein the internal environment parameter items include at least one of terminal memory occupancy, data throughput of a data interface corresponding to a user interface, and completion of a preset task queue; constructing color parameters based on the internal environment parameter items and the corresponding internal environment parameter values to obtain the theme elements.
[0009] Optionally, in a fourth implementation manner of the first aspect of the present invention, determining a theme element extraction method according to the type of the environmental data, and extracting theme elements from the environmental data according to the theme element extraction method, further includes: extracting pixel information of corresponding positions in the picture information according to a preset pixel extraction method and pixel extraction position; extracting color data from the pixel information according to a preset color extraction method; calling a preset compression algorithm to compress the picture to obtain a corresponding thumbnail; and constructing the theme element according to the color data and the thumbnail.
[0010] Optionally, in a fifth implementation of the first aspect of the present invention, determining a theme element extraction method according to the type of the environmental data, and extracting theme elements from the environmental data according to the theme element extraction method, further includes: parsing the user interface to obtain a corresponding image output interface, and constructing a corresponding output mask based on the image output interface; constructing image information compatible with the image output interface based on the image information and the output mask to obtain the theme elements.
[0011] Optionally, in a sixth implementation of the first aspect of the present invention, adjusting the user interface according to the theme element includes: parsing the theme element to obtain a corresponding theme element identifier; determining an output mode and an output interface of the user interface according to the theme element identifier, and outputting the corresponding theme element on the output interface according to the output mode.
[0012] A second aspect of the present invention provides a user interface adjustment device, comprising: a configuration module, used to configure a communication connection between a user interface and an information acquisition unit on a terminal, wherein the information acquisition unit includes at least one of an image information acquisition unit, a data acquisition unit, an external state monitoring unit, and an internal state monitoring unit; an acquisition module, used to acquire environmental data acquired by the information acquisition unit through the communication connection; a parsing module, used to parse the environmental data to obtain category information of the environmental data, wherein the category information includes at least an external environmental state and an internal environmental state; an extraction module, used to determine a theme element extraction method according to the category information, and extract theme elements from the environment data according to the theme element extraction method; an adjustment module, used to adjust the user interface according to the theme elements.
[0013] Optionally, in a first implementation method of the second aspect of the present invention, the configuration module includes: an initialization unit, used to initialize the information storage object corresponding to the image information acquisition unit; a control agent unit, used to obtain a controller agent object corresponding to the image information acquisition unit; and a connection establishment unit, used to establish a communication connection between the user interface and the image information acquisition unit based on the controller agent object.
[0014] Optionally, in a second implementation of the second aspect of the present invention, the extraction module includes: a first extraction unit, used to parse the external environment state information when the category information is the external environment state, to obtain external environment parameter items and corresponding external environment parameter values, wherein the external environment parameter items include at least one of temperature, humidity and atmospheric pressure; construct color parameters based on the external environment parameter items and the corresponding external environment parameter values to obtain the theme element.
[0015] Optionally, in a third implementation method of the second aspect of the present invention, the extraction module includes: a second extraction unit, used to parse the internal environment status information when the category information is an internal environment status, to obtain internal environment parameter items and corresponding internal environment parameter values, wherein the internal environment parameter items include at least one of the terminal memory occupancy, the data throughput of the data interface corresponding to the user interface, and the completion degree of the preset task queue; constructing color parameters based on the internal environment parameter items and the corresponding internal environment parameter values to obtain the theme element.
[0016] Optionally, in a fourth implementation method of the second aspect of the present invention, the extraction module also includes: a third extraction unit, used to extract pixel information of a corresponding position in the picture information according to a preset pixel extraction method and pixel extraction position; extract color data from the pixel information according to a preset color extraction method; call a preset compression algorithm to compress the picture to obtain a corresponding thumbnail; and construct the theme element according to the color data and the thumbnail.
[0017] Optionally, in a fifth implementation method of the second aspect of the present invention, the third extraction unit is also used to parse the user interface to obtain a corresponding image output interface, and construct a corresponding output mask based on the image output interface; based on the image information and the output mask, image information compatible with the image output interface is constructed to obtain the theme element.
[0018] Optionally, in a sixth implementation of the second aspect of the present invention, the adjustment module includes: a parsing unit, used to parse the theme element to obtain a corresponding theme element identifier; an output unit, used to determine an output method and an output interface of the user interface according to the theme element identifier, and output the corresponding theme element on the output interface according to the output method.
[0019] The third aspect of the present invention provides a computer device, comprising: a memory and at least one processor, wherein the memory stores instructions; the at least one processor calls the instructions in the memory so that the computer device executes each step of the above-mentioned user interface adjustment method.
[0020] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the various steps of the above-mentioned user interface adjustment method.
[0021] In the technical solution of the present invention, the method is specifically configured to configure a communication connection between a user interface and an information collection unit on a terminal, wherein the information collection unit includes at least one of an image information collection unit, a data acquisition unit, an external state monitoring unit, and an internal state monitoring unit; obtain environmental data collected by the information collection unit through the communication connection; parse the environmental data to obtain category information of the environmental data; determine a theme element extraction method based on the category information, and extract theme elements from the environmental data based on the theme element extraction method; adjust the user interface based on the theme elements; thereby solving the problem in the prior art that the user interface cannot be efficiently and dynamically adjusted based on a non-single data source. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 It is a schematic diagram of a first embodiment of a method for adjusting a user interface in an embodiment of the present invention;
[0023] Figure 2 is a schematic diagram of a second embodiment of a method for adjusting a user interface in an embodiment of the present invention;
[0024] Figure 3 is a schematic diagram of a third embodiment of a method for adjusting a user interface in an embodiment of the present invention;
[0025] Figure 4 A schematic diagram of an embodiment of a user interface adjustment device in an embodiment of the present invention;
[0026] Figure 5 It is a schematic diagram of another embodiment of the user interface adjustment device in an embodiment of the present invention;
[0027] Figure 6 FIG. 1 is a schematic diagram of an embodiment of a computer device in an embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to solve the problem that the user interface cannot be efficiently and dynamically adjusted based on a non-single data source in the prior art. The present application provides a user interface adjustment method, device, equipment and storage medium. The method configures a communication connection between the user interface and an information acquisition unit on the terminal, wherein the information acquisition unit includes at least one of an image information acquisition unit, a data acquisition unit, an external state monitoring unit and an internal state monitoring unit; obtains environmental data collected by the information acquisition unit through the communication connection; parses the environmental data to obtain category information of the environmental data; determines a theme element extraction method based on the category information, and extracts theme elements from the environmental data based on the theme element extraction method; adjusts the user interface based on the theme elements; thereby solving the problem that the user interface cannot be efficiently and dynamically adjusted based on a non-single data source in the prior art.
[0029] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 , the first embodiment of the user interface adjustment method in the embodiment of the present invention, the implementation steps of the method are as follows:
[0031] 101. Configure a communication connection between a user interface and an information collection unit on a terminal, wherein the information collection unit includes at least one of an image information collection unit, a data acquisition unit, an external state monitoring unit, and an internal state monitoring unit;
[0032] This step can be implemented in the following ways:
[0033] When the information acquisition unit includes the external state monitoring unit and the internal state monitoring unit, initializing interfaces corresponding to the external state monitoring unit and the internal state monitoring unit;
[0034] The communication connection between the user interface and the external state monitoring unit and the internal state monitoring unit is configured based on the interface.
[0035] 102. Acquire environmental data collected by the information collection unit through a communication connection;
[0036] This step can be implemented in the following ways:
[0037] When the information acquisition unit is the image information acquisition unit, image data acquired by the image information acquisition unit is acquired through a communication connection to obtain environmental data;
[0038] When the information acquisition unit is the data acquisition unit, the data transmitted by the data acquisition unit is acquired through a communication connection to obtain environmental data;
[0039] When the information acquisition unit is the external state monitoring unit, external state monitoring data of the external state monitoring unit is acquired through a communication connection to obtain environmental data;
[0040] When the information acquisition unit is the internal state monitoring unit, the internal state monitoring data of the internal state monitoring unit is acquired through a communication connection to obtain the environmental data.
[0041] 103. Analyze the environmental data to obtain category information of the environmental data, wherein the category information at least includes an external environmental state and an internal environmental state;
[0042] This step can be implemented in the following ways:
[0043] Parsing the environmental data to obtain a corresponding data type identifier;
[0044] According to the data type identifier, corresponding category information is searched in a preset category information table.
[0045] 104. Determine a topic element extraction method according to the category information, and extract the topic element from the environmental data according to the topic element extraction method;
[0046] This step can be implemented in the following ways:
[0047] When the category information is the external environment state, extracting parameter values corresponding to temperature, humidity and atmospheric pressure from the environment data;
[0048] Assign each parameter value to a preset color feature value, construct a color parameter, and obtain the corresponding theme element. For example, normalize the parameter values corresponding to temperature, humidity, and atmospheric pressure, and assign them to color feature items R, G, and B, respectively, to obtain the corresponding color parameter;
[0049] Constructing a color parameter based on the external environment parameter item and the corresponding external environment parameter value to obtain the theme element;
[0050] When the category information is an internal environment state, extracting parameter values corresponding to the terminal memory occupancy, the data throughput of the data interface corresponding to the user interface, and the completion degree of the preset task queue from the environment data;
[0051] Assign each parameter value to a preset color feature value, construct a color parameter, and obtain a corresponding theme element. For example, normalize the parameter values corresponding to the terminal memory occupancy, the data throughput of the data interface corresponding to the user interface, and the completion degree of the preset task queue, and assign them to the color feature items R, G, and B respectively to obtain the corresponding color parameters;
[0052] A color parameter is constructed based on the external environment parameter item and the corresponding external environment parameter value to obtain the theme element.
[0053] 105. Adjust the user interface according to the theme elements.
[0054] This step can be implemented in the following ways:
[0055] Parsing the user interface to obtain a corresponding user interface output mode and user interface output position;
[0056] Determine the corresponding data source type according to the user interface output mode. For example, if the user interface output mode is single color output, the corresponding data source type is a single color parameter. If the user interface output mode is multiple colors alternately output, the corresponding data source type is a color parameter sequence.
[0057] Parsing the subject element to obtain a corresponding subject element data source type;
[0058] Filtering the subject element data source type according to the data source type, and acquiring corresponding subject elements;
[0059] The theme elements are output at the user interface output position according to the user interface output mode, for example, color sequences corresponding to the theme elements are output in sequence in the display frame of the user interface.
[0060] By implementing the above method, by configuring a communication connection between a user interface and an information collection unit on a terminal, wherein the information collection unit includes at least one of an image information collection unit, a data acquisition unit, an external state monitoring unit, and an internal state monitoring unit; obtaining environmental data collected by the information collection unit through the communication connection; parsing the environmental data to obtain category information of the environmental data; determining a theme element extraction method according to the category information, and extracting theme elements from the environmental data according to the theme element extraction method; adjusting the user interface according to the theme elements; as described above, by processing data corresponding to data not limited to external environmental states and internal environmental states, constructing corresponding color parameters, dynamic adjustment of the user interface based on different data sources is achieved, and by configuring a communication connection and outputting according to the output method corresponding to the user interface, the efficiency of adjusting the interface is improved, thereby solving the problem in the prior art that the user interface cannot be efficiently and dynamically adjusted based on non-single data sources.
[0061] See also Figure 2 , the second embodiment of the user interface adjustment method in the embodiment of the present invention, the implementation steps of the method are as follows:
[0062] 201. Configure a communication connection between a user interface and an information collection unit on a terminal, wherein the information collection unit includes at least one of an image information collection unit, a data acquisition unit, an external state monitoring unit, and an internal state monitoring unit;
[0063] In this step, the image information acquisition unit includes at least a camera;
[0064] This step can be implemented in the following ways:
[0065] When the information acquisition unit is an image information acquisition unit, an application programming interface (API) and a corresponding storage object corresponding to the image information acquisition unit are initialized. For example, when the terminal is compatible with the iOS system, objects such as AVCaptureSession, AVCaptureDeviceInput, and AVCaptureVideoDataOutput are initialized;
[0066] Obtain the corresponding permissions of the image information acquisition unit through the current controller following the proxy. For example, when the terminal is compatible with the iOS system, configure AVCaptureVideoDataOutput to obtain the CMSampleBufferRef object returned by the iOS system.
[0067] Configure a data object that supports the communication connection between the user interface and the image information acquisition unit. For example, when the terminal is compatible with the iOS system, configure the CVImageBufferRef object through CMSampleBufferGetImageBuffer, convert the CVImageBufferRef into a CIImage object through imageWithCVImageBuffer, and then convert the CIImage object into a user Image object through the createCGImage: method to establish a communication connection between the user interface and the image information acquisition unit.
[0068] 202. Acquire adjustment source data through a communication connection, and determine a parsing method for the adjustment source data according to user interface adjustment requirements;
[0069] In this step, when the adjustment source data is image data, the process of determining the parsing method for the image data according to the user interface adjustment requirements includes:
[0070] Obtaining the user interface adjustment requirement;
[0071] The user interface adjustment requirement is parsed to obtain a corresponding user interface adjustment method, wherein the user interface adjustment method at least includes directly outputting the image data to an output interface of the user interface, extracting a main color from the image data and performing user interface adjustment, and extracting color parameters of a pixel point at a preset position of the image data and performing user interface adjustment;
[0072] The way to parse the image data is determined according to the user interface adjustment method.
[0073] Specifically, the process of determining the parsing method of the image data according to the user interface adjustment method includes:
[0074] When the user interface adjustment method is to output the image data directly to the output interface of the user interface, the corresponding parsing method is to compress the image data and convert it into a format compatible with the output interface;
[0075] When the user interface adjustment method is to extract the main color from the image data and perform the user interface adjustment, the corresponding parsing method is to extract all pixel information from the image data, construct a color histogram based on the pixel information, and obtain the color parameter peak value in the color histogram;
[0076] When the user interface adjustment method is to extract the color parameters of the pixel points at the preset position of the image data and perform the user interface adjustment, the corresponding analysis method is to extract the pixel information corresponding to the pixel points at the preset position of the image data and obtain the corresponding color parameters.
[0077] 203. Analyze the adjustment source data according to the analysis method, and extract corresponding theme elements;
[0078] In this step, when the adjustment source data is image data, the process of parsing the adjustment source data according to the parsing method and extracting the corresponding theme elements includes:
[0079] When the parsing method is to compress the image data and convert it into a format compatible with the output interface, the image data is compressed and converted into a format compatible with the output interface to obtain a corresponding theme element;
[0080] When the parsing method is to extract all pixel information from the image data, construct a color histogram based on the pixel information, and obtain the color parameter peak value in the color histogram, all pixel information from the image data is extracted, and a color histogram is constructed based on the pixel information, the color parameter peak value in the color histogram is obtained, and the corresponding theme element is obtained;
[0081] When the analysis method is to extract pixel information corresponding to pixel points at preset positions of image data and obtain corresponding color parameters, pixel information corresponding to pixel points at preset positions of image data is extracted and corresponding color parameters are obtained to obtain corresponding theme elements.
[0082] 204. According to the user interface adjustment requirement, adjust the user interface based on the theme elements.
[0083] This step can be implemented in the following ways:
[0084] Determine the user interface adjustment method according to the user interface adjustment requirements;
[0085] When the user interface adjustment method is to directly output the image data to an output interface of the user interface, the theme element is output to the output interface of the user interface according to a preset output method;
[0086] When the user interface adjustment method is to extract the main color from the image data and perform the user interface adjustment, the color parameters in the theme element are extracted and assigned to the color control variables of the user interface;
[0087] When the user interface adjustment method is to extract the color parameters of the pixel points at the preset position of the image data and perform the user interface adjustment, the color parameters in the theme element are extracted and assigned to the color control variables of the user interface.
[0088] By implementing the above method, by configuring the communication connection between the user interface and the information collection unit on the terminal, wherein the information collection unit includes at least one of an image information collection unit, a data acquisition unit, an external state monitoring unit and an internal state monitoring unit; obtaining the environmental data collected by the information collection unit through the communication connection; parsing the environmental data to obtain category information of the environmental data; determining a subject element extraction method according to the category information, and extracting subject elements from the environmental data according to the subject element extraction method; adjusting the user interface according to the subject elements; in the above, by configuring the communication connection between the user interface and the information collection unit on the terminal, obtaining adjustment source data, and determining a parsing method for the adjustment source data according to the user interface adjustment requirements; parsing the adjustment source data and extracting corresponding subject elements; adjusting the user interface based on the subject elements according to the user interface adjustment requirements, thereby solving the problem in the prior art that the user interface cannot be efficiently and dynamically adjusted based on a non-single data source.
[0089] See also Figure 3 , the third embodiment of the user interface adjustment method in the embodiment of the present invention, the implementation steps of the method are as follows:
[0090] 301. Configure the communication connection between the user interface and each information collection unit on the terminal;
[0091] In this step, the information acquisition unit includes at least two of an image information acquisition unit, a data acquisition unit, an external state monitoring unit, and an internal state monitoring unit;
[0092] In this step, the communication connection includes at least two of a communication connection with the image information acquisition unit, a communication connection with the data acquisition unit, a communication connection with the external state monitoring unit, and a communication connection with the internal state monitoring unit.
[0093] 302. Obtaining a user interface adjustment requirement, activating a corresponding communication connection according to the user interface adjustment requirement, and obtaining source data through the communication connection;
[0094] In this step, the process of activating the corresponding communication connection according to the user interface adjustment requirement includes:
[0095] Parsing the user interface adjustment requirement to obtain a data source requirement, wherein the data source requirement includes at least two of an image information requirement, a data acquisition requirement, an external state monitoring requirement, and an internal state monitoring requirement;
[0096] Activate the corresponding communication connection according to the adjustment data source requirement. For example, when the data source requirement is an image information requirement, activate the communication connection with the image information acquisition unit; when the data source requirement is an internal status monitoring requirement, activate the communication connection with the internal status monitoring unit.
[0097] 303. Adjust the user interface based on the source data.
[0098] This step can be implemented in the following ways:
[0099] Parsing the source data to obtain corresponding identification information, wherein the identification information at least includes a picture and a preset task completion degree;
[0100] When the identification information corresponding to the source data is the picture, extracting color parameters corresponding to the pixel points at the preset positions from the source data, and adjusting the user interface based on the color parameters;
[0101] When the identification information corresponding to the source data is the preset task completion degree, the source data is parsed to obtain the preset task completion degree, a color parameter is constructed based on the preset task completion degree, and the user interface is adjusted based on the color parameter.
[0102] Specifically, the process of extracting the color parameters corresponding to the pixel points at the preset positions from the source data includes:
[0103] Initialize array space;
[0104] Convert the UImage object in the source data into a CGImageRef object, and construct an array corresponding to the CGImageRef object based on the array space;
[0105] Add the CGImageRef object and its corresponding array to CGBitmapContextCreate, and create a bitmap context through CGBitmapContextCreate;
[0106] Extract color parameters from array based on bitmap context;
[0107] Specifically, the process of adjusting the user interface based on the color parameter includes:
[0108] Get the user interface theme color control variable;
[0109] Assign the color parameter to the user interface theme color control variable.
[0110] Further, the parsing of the source data to obtain a preset task completion degree, constructing a color parameter based on the preset task completion degree, and adjusting the user interface based on the color parameter also includes:
[0111] When the preset task is a data input task, obtaining input data in a data input interface in a user interface;
[0112] Analyzing and counting the input data to obtain the degree of data input completion;
[0113] According to the degree of completion of the data input, the color variable is adjusted to obtain a real-time color variable;
[0114] Based on the real-time color variable, the user interface is adjusted.
[0115] By implementing the above method, by configuring the communication connection between the user interface and the information collection unit on the terminal, wherein the information collection unit includes at least one of an image information collection unit, a data acquisition unit, an external state monitoring unit and an internal state monitoring unit; obtaining the environmental data collected by the information collection unit through the communication connection; parsing the environmental data to obtain category information of the environmental data; determining a theme element extraction method according to the category information, and extracting theme elements from the environmental data according to the theme element extraction method; adjusting the user interface according to the theme elements; as above, by configuring the communication connection between the user interface and each information collection unit on the terminal; obtaining the user interface adjustment requirement, and activating the corresponding communication connection according to the user interface adjustment requirement, obtaining the source data through the communication connection; adjusting the user interface based on the source data, thereby solving the problem in the prior art that the user interface cannot be efficiently and dynamically adjusted based on a non-single data source.
[0116] The above describes the user interface adjustment method in the embodiment of the present invention. The following describes the user interface adjustment device in the embodiment of the present invention. Figure 4 , an embodiment of the user interface adjustment device in the embodiment of the present invention, the device comprises:
[0117] Configuration module 401, used to configure the communication connection between the user interface and the information acquisition unit on the terminal, wherein the information acquisition unit includes at least one of an image information acquisition unit, a data acquisition unit, an external state monitoring unit, and an internal state monitoring unit;
[0118] A collection module 402, used to obtain the environmental data collected by the information collection unit through the communication connection;
[0119] The parsing module 403 is used to parse the environmental data to obtain category information of the environmental data, wherein the category information at least includes an external environmental state and an internal environmental state;
[0120] An extraction module 404, configured to determine a topic element extraction method according to the category information, and extract topic elements from the environment data according to the topic element extraction method;
[0121] The adjustment module 405 is used to adjust the user interface according to the theme element.
[0122] Through the implementation of the above-mentioned device, by configuring a communication connection between a user interface and an information acquisition unit on a terminal, wherein the information acquisition unit includes at least one of an image information acquisition unit, a data acquisition unit, an external state monitoring unit, and an internal state monitoring unit; acquiring environmental data collected by the information acquisition unit through the communication connection; parsing the environmental data to obtain category information of the environmental data; determining a theme element extraction method according to the category information, and extracting theme elements from the environmental data according to the theme element extraction method; adjusting the user interface according to the theme elements; thereby solving the problem in the prior art that the user interface cannot be efficiently and dynamically adjusted based on a non-single data source.
[0123] See also Figure 5 Another embodiment of the user interface adjustment device in the embodiment of the present invention includes:
[0124] Configuration module 401, used to configure the communication connection between the user interface and the information acquisition unit on the terminal, wherein the information acquisition unit includes at least one of an image information acquisition unit, a data acquisition unit, an external state monitoring unit, and an internal state monitoring unit;
[0125] A collection module 402, used to obtain the environmental data collected by the information collection unit through the communication connection;
[0126] The parsing module 403 is used to parse the environmental data to obtain category information of the environmental data, wherein the category information at least includes an external environmental state and an internal environmental state;
[0127] An extraction module 404, configured to determine a topic element extraction method according to the category information, and extract topic elements from the environment data according to the topic element extraction method;
[0128] An adjustment module 405, configured to adjust the user interface according to the theme element;
[0129] In this embodiment, the configuration module 401 includes:
[0130] An initialization unit 4011 is used to initialize the information storage object corresponding to the image information acquisition unit;
[0131] A control agent unit 4012, used to obtain a controller agent object corresponding to the image information acquisition unit;
[0132] A connection establishing unit 4013, configured to establish a communication connection between the user interface and the image information acquisition unit based on the controller proxy object;
[0133] In this embodiment, the extraction module 404 includes:
[0134] The first extraction unit 4041 is used for, when the category information is an external environment state, parsing the external environment state information to obtain an external environment parameter item and a corresponding external environment parameter value, wherein the external environment parameter item includes at least one of temperature, humidity and atmospheric pressure; constructing a color parameter based on the external environment parameter item and the corresponding external environment parameter value to obtain the theme element;
[0135] The second extraction unit 4042 is configured to, when the category information is an internal environment state, parse the internal environment state information to obtain an internal environment parameter item and a corresponding internal environment parameter value, wherein the internal environment parameter item includes at least one of a terminal memory occupancy, a data throughput of a data interface corresponding to a user interface, and a completion degree of a preset task queue; construct a color parameter based on the internal environment parameter item and the corresponding internal environment parameter value to obtain the theme element;
[0136] The third extraction unit 4043 is used to extract pixel information of a corresponding position in the picture information according to a preset pixel extraction method and pixel extraction position; extract color data from the pixel information according to a preset color extraction method; compress the picture by calling a preset compression algorithm to obtain a corresponding thumbnail; and construct the theme element according to the color data and the thumbnail;
[0137] Furthermore, the third extraction unit 4043 is further used to parse the user interface to obtain a corresponding image output interface, and construct a corresponding output mask based on the image output interface; construct image information compatible with the image output interface based on the image information and the output mask to obtain the theme element;
[0138] In this embodiment, the adjustment module 405 includes:
[0139] The parsing unit 4051 is used to parse the subject element to obtain a corresponding subject element identifier;
[0140] The output unit 4052 is used to determine the output mode and output interface of the user interface according to the theme element identifier, and output the corresponding theme element on the output interface according to the output mode.
[0141] Through the implementation of the above-mentioned device, by configuring a communication connection between a user interface and an information acquisition unit on a terminal, wherein the information acquisition unit includes at least one of an image information acquisition unit, a data acquisition unit, an external state monitoring unit, and an internal state monitoring unit; acquiring environmental data collected by the information acquisition unit through the communication connection; parsing the environmental data to obtain category information of the environmental data; determining a theme element extraction method according to the category information, and extracting theme elements from the environmental data according to the theme element extraction method; adjusting the user interface according to the theme elements; thereby solving the problem in the prior art that the user interface cannot be efficiently and dynamically adjusted based on a non-single data source.
[0142] See also Figure 6 , an embodiment of the computer device in the embodiment of the present invention is described in detail below from the perspective of hardware processing.
[0143] Figure 6 6 is a schematic diagram of the structure of a computer device provided by an embodiment of the present invention. The computer device 600 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 610 (for example, one or more processors) and a memory 620, and one or more storage media 630 (for example, one or more mass storage devices) storing application programs 633 or data 632. Among them, the memory 620 and the storage medium 630 can be short-term storage or permanent storage. The program stored in the storage medium 630 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the computer device 600. Furthermore, the processor 610 can be configured to communicate with the storage medium 630 to execute a series of instruction operations in the storage medium 630 on the computer device 600.
[0144] The computer device 600 may also include one or more power supplies 640, one or more wired or wireless network interfaces 650, one or more input and output interfaces 660, and / or one or more operating systems 631, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. It will be appreciated by those skilled in the art that Figure 6The computer device structure shown does not constitute a limitation on the computer device provided in the present application, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0145] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the above-mentioned user interface adjustment method.
[0146] In practical applications, the above-mentioned methods can be implemented based on artificial intelligence technology, where artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. It can be specifically executed based on a server, which can be an independent server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.
[0147] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0148] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.
[0149] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A user interface adjustment method, characterized in that: The user interface adjustment method comprises: Configuring a communication connection between a user interface and an information acquisition unit on a terminal, wherein the information acquisition unit includes an image information acquisition unit, an external state monitoring unit, and an internal state monitoring unit; Acquiring environmental data collected by the information collection unit through the communication connection; Parsing the environmental data to obtain category information of the environmental data, wherein the category information at least includes a type of image data, a type of external state monitoring data, and a type of internal state monitoring data; Determining a topic element extraction method according to the category information, and extracting topic elements from the environmental data according to the topic element extraction method; The extracting the theme element from the environment data according to the theme element extraction method includes: When the category information is a type of external state monitoring data, the external state monitoring data is parsed to obtain an external environment parameter item and a corresponding external environment parameter value, wherein the external environment parameter item includes at least one of temperature, humidity and atmospheric pressure; a color parameter is constructed based on the external environment parameter item and the corresponding external environment parameter value to obtain a corresponding theme element; When the category information is the type of image data, extract all pixel information in the image data; construct a color histogram based on the pixel information; obtain the color parameter peak in the color histogram to obtain the corresponding theme element; When the category information is a type of internal state monitoring data, the internal state monitoring data is parsed to obtain an internal environment parameter item and a corresponding internal environment parameter value, wherein the internal environment parameter item includes at least one of a terminal memory occupancy, a data throughput of a data interface corresponding to a user interface, and a completion degree of a preset task queue; a color parameter is constructed based on the internal environment parameter item and the corresponding internal environment parameter value to obtain a corresponding theme element; The user interface is adjusted according to the theme element.
2. The user interface adjustment method according to claim 1, characterized in that: When the information acquisition unit is the image information acquisition unit, the communication connection between the configuration user interface and the information acquisition unit on the terminal includes: Initializing the information storage object corresponding to the image information acquisition unit; Obtaining a controller proxy object corresponding to the image information acquisition unit; A communication connection is established between the user interface and the image information acquisition unit based on the controller proxy object.
3. The user interface adjustment method according to claim 1 or 2, characterized in that: The adjusting the user interface according to the theme element includes: Parsing the subject element to obtain a corresponding subject element identifier; According to the theme element identifier, the output mode and output interface of the user interface are determined, and the corresponding theme element is output on the output interface according to the output mode.
4. A user interface adjustment device, characterized in that: The device comprises: A configuration module, used to configure a communication connection between the user interface and an information acquisition unit on the terminal, wherein the information acquisition unit includes an image information acquisition unit, an external state monitoring unit, and an internal state monitoring unit; A collection module, used for acquiring the environmental data collected by the information collection unit through the communication connection; A parsing module, used to parse the environmental data to obtain category information of the environmental data, wherein the category information at least includes a type of image data, a type of external state monitoring data, and a type of internal state monitoring data; An extraction module, used to determine a theme element extraction method according to the category information, and extract theme elements from the environmental data according to the theme element extraction method; The extracting the theme element from the environment data according to the theme element extraction method includes: When the category information is a type of external state monitoring data, the external state monitoring data is parsed to obtain an external environment parameter item and a corresponding external environment parameter value, wherein the external environment parameter item includes at least one of temperature, humidity and atmospheric pressure; a color parameter is constructed based on the external environment parameter item and the corresponding external environment parameter value to obtain a corresponding theme element; When the category information is the type of image data, extract all pixel information in the image data; construct a color histogram based on the pixel information; obtain the color parameter peak in the color histogram to obtain the corresponding theme element; When the category information is a type of internal state monitoring data, the internal state monitoring data is parsed to obtain an internal environment parameter item and a corresponding internal environment parameter value, wherein the internal environment parameter item includes at least one of a terminal memory occupancy, a data throughput of a data interface corresponding to a user interface, and a completion degree of a preset task queue; a color parameter is constructed based on the internal environment parameter item and the corresponding internal environment parameter value to obtain a corresponding theme element; An adjustment module is used to adjust the user interface according to the theme element.
5. A computer device, characterized in that: include: A memory and at least one processor, wherein instructions are stored in the memory, and the memory and the at least one processor are interconnected via a line; The at least one processor calls the instructions in the memory to enable the computer device to execute each step of the user interface adjustment method according to any one of claims 1 to 3.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, each step of the user interface adjustment method according to any one of claims 1 to 3 is implemented.
Citation Information
Patent Citations
Input method program interface adjusting method and device
CN104317592A