Control method and device

文档序号:245516 发布日期:2021-11-12 浏览:6次 中文

阅读说明:本技术 一种控制方法和装置 (Control method and device ) 是由 陈子国 易贤群 于 2021-07-05 设计创作,主要内容包括:本申请实施例公开了一种控制方法和装置,所述控制方法包括:获得作用于电子设备的目标显示界面的控制参数,所述目标显示界面包括基于所述电子设备的输入部件的配置参数得到的所述输入部件的虚拟图像,所述输入部件至少配置有发光器件;至少根据所述控制参数确定对应的目标发光器件;至少根据所述控制参数控制所述目标发光器件的发光参数;其中,所述虚拟图像的外观参数与所述输入部件的外观配置参数相同或满足预设比例阈值。(The embodiment of the application discloses a control method and a control device, wherein the control method comprises the following steps: obtaining control parameters acting on a target display interface of an electronic device, wherein the target display interface comprises a virtual image of an input component of the electronic device based on configuration parameters of the input component, and the input component is at least provided with a light-emitting device; determining a corresponding target light emitting device according to at least the control parameter; controlling the light emitting parameters of the target light emitting device at least according to the control parameters; wherein the appearance parameter of the virtual image is the same as the appearance configuration parameter of the input component or meets a preset proportion threshold.)

1. A control method, comprising:

obtaining control parameters acting on a target display interface of an electronic device, wherein the target display interface comprises a virtual image of an input component of the electronic device based on configuration parameters of the input component, and the input component is at least provided with a light-emitting device;

determining a corresponding target light emitting device according to at least the control parameter;

controlling the light emitting parameters of the target light emitting device at least according to the control parameters;

wherein the appearance parameter of the virtual image is the same as the appearance configuration parameter of the input component or meets a preset proportion threshold.

2. The method of claim 1, the method comprising:

acquiring position information and size information of each sub-component on the input component according to the appearance configuration parameters of the input component, and acquiring the virtual image according to the position information and the size information; or the like, or, alternatively,

and drawing each sub-component of the input component according to the hardware configuration parameters of the input component to obtain the virtual image.

3. The method of claim 1, wherein obtaining control parameters for a target display interface of an electronic device comprises:

if the electronic equipment runs a target application process, obtaining operation data of an application interface acting on the target application process, and obtaining the control parameters based on the operation data; or the like, or, alternatively,

if the target display interface displays the virtual image of the input component, obtaining operation data and corresponding response data for adding a display effect on the virtual image, and obtaining the control parameters based on the operation data and the response data; or the like, or, alternatively,

after the electronic equipment outputs the target display interface, obtaining input data aiming at the light-emitting effect of the input component based on the target display interface, and obtaining the control parameter at least based on the input data.

4. The method of claim 1, the determining a corresponding target light emitting device based at least on the control parameter, comprising:

determining a target sub-component to be responded in the input component according to at least the control parameters, and determining a light-emitting device configured by the target sub-component as the target light-emitting device; or the like, or, alternatively,

determining a target area according to at least control parameters acting on the virtual image, and determining a light-emitting device configured on a target sub-component corresponding to the target area as the target light-emitting device according to the corresponding relation between the virtual image and the input component; wherein the target region is a region on the virtual image selected to perform a corresponding response.

5. The method of claim 4, the controlling a lighting parameter of the target lighting device at least according to the control parameter, comprising:

if the control parameter is obtained based on a preset light effect control logic selected by an operation body, sending a light emitting parameter corresponding to the preset light effect control logic to the target light emitting device so that the target light emitting device outputs a corresponding light emitting effect according to the light emitting parameter; or the like, or, alternatively,

and if the control parameter is obtained based on the editing input of the operation body, generating a corresponding light-emitting parameter according to the editing input so that the target light-emitting device outputs a corresponding light-emitting effect according to the light-emitting parameter.

6. The method of claim 1, further comprising:

obtaining control parameters acting on the virtual image at adjacent moments;

if the control parameter characterization of the adjacent time points acts on the regions of the virtual image, the first condition is met, and the control logics are the same, the regions corresponding to the adjacent time points are fused into a first region, so that the first region and/or the light-emitting device corresponding to the first region outputs the light-emitting effect corresponding to the control logics; or the like, or, alternatively,

if the control parameter representation of the adjacent time points acts on the areas of the virtual image to meet the first condition and the control logics are different, controlling a second area corresponding to the later time point in time sequence and/or a light-emitting device corresponding to the second area to output a light-emitting effect corresponding to the later control logic; or the like, or, alternatively,

if the control parameter characterization at the adjacent time points acts on the regions of the virtual image, the second condition is met, and the control logics are the same, determining a target control logic based on the position relation between the regions corresponding to the adjacent time points, so that the region corresponding to the adjacent time points and/or the light-emitting device corresponding to the region output a light-emitting effect corresponding to the target control logic; or the like, or, alternatively,

and if the control parameter representations of the adjacent moments act on the same area of the virtual image and different control logics, controlling the area and/or the light-emitting device corresponding to the area to simultaneously output the light-emitting effects corresponding to the different control logics.

7. The method of claim 1, further comprising:

controlling display parameters of a target area of the virtual image according to control parameters acting on the target area; or the like, or, alternatively,

controlling display parameters of a corresponding area in the virtual image according to the light emitting state of the target light emitting device; or the like, or, alternatively,

controlling a lighting parameter of the target light emitting device and/or a display parameter of a target area of the virtual image according to the operation data applied to the input part.

8. The method of claim 1, controlling a lighting parameter of the target lighting device at least according to the control parameter, comprising:

and obtaining the environmental parameters of the current environment of the electronic equipment, and determining the light-emitting parameters of the target light-emitting device according to the control parameters and the environmental parameters so that the target light-emitting device outputs the corresponding light-emitting effect according to the light-emitting parameters.

9. The method of claim 1, in the event that other hardware components of the electronic device are configured with light emitting components, further comprising:

controlling the light-emitting parameters of the light-emitting devices corresponding to the target hardware component according to the control parameters aiming at the other hardware components; or the like, or, alternatively,

and controlling the light-emitting parameters of the light-emitting devices corresponding to the input part and the target hardware part according to the control parameters.

10. A control device, the device comprising:

the electronic equipment comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring control parameters acting on a target display interface of the electronic equipment, the target display interface comprises a virtual image of an input component based on configuration parameters of the input component of the electronic equipment, and the input component is at least provided with a light-emitting device;

a determining module for determining a corresponding target light emitting device at least according to the control parameter;

the control module is used for controlling the light-emitting parameters of the target light-emitting device according to the control parameters;

wherein the appearance parameter of the virtual image is the same as the appearance configuration parameter of the input component or meets a preset proportion threshold.

Technical Field

The present application relates to the field of information technologies, and in particular, to a control method and apparatus.

Background

In the related art, since the key layouts on the keyboard in the electronic device may be different, when the backlight keyboard presents the related light effect picture, the specific information of the light emitting device and the like need to be acquired by means of the keyboard comparison table, so that the implementation process of the light effect picture is complex.

Disclosure of Invention

In view of this, the embodiments of the present application are intended to provide a control method and apparatus.

The technical scheme of the application is realized as follows:

an embodiment of the present application provides a control method, including:

obtaining control parameters acting on a target display interface of an electronic device, wherein the target display interface comprises a virtual image of an input component of the electronic device based on configuration parameters of the input component, and the input component is at least provided with a light-emitting device;

determining a corresponding target light emitting device according to at least the control parameter;

controlling the light emitting parameters of the target light emitting device at least according to the control parameters;

wherein the appearance parameter of the virtual image is the same as the appearance configuration parameter of the input component or meets a preset proportion threshold.

An embodiment of the present application provides a control device, the device includes:

the electronic equipment comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring control parameters acting on a target display interface of the electronic equipment, the target display interface comprises a virtual image of an input component based on configuration parameters of the input component of the electronic equipment, and the input component is at least provided with a light-emitting device;

a determining module for determining a corresponding target light emitting device at least according to the control parameter;

the control module is used for controlling the light-emitting parameters of the target light-emitting device according to the control parameters;

wherein the appearance parameter of the virtual image is the same as the appearance configuration parameter of the input component or meets a preset proportion threshold.

An embodiment of the present application further provides an electronic device, where the electronic device includes: a processor, a memory, and a communication bus;

the communication bus is used for realizing communication connection between the processor and the memory;

the processor is used for executing the program in the memory to realize any one of the control methods.

Accordingly, embodiments of the present application also provide a computer-readable storage medium having one or more programs, which are executable by one or more processors to implement the control method described above.

The control method and the control device provided by the embodiment of the application comprise the steps that firstly, control parameters acting on a target display interface of the electronic equipment are obtained, the target display interface comprises a virtual image of an input component obtained based on configuration parameters of the input component of the electronic equipment, and the input component is at least provided with a light-emitting device; determining a corresponding target light emitting device at least according to the control parameters; controlling a light emitting parameter of the target light emitting device at least according to the control parameter; the appearance parameters of the virtual image are the same as the appearance configuration parameters of the input component or meet a preset proportion threshold; thus, the target light-emitting device associated with the control parameter can be efficiently and accurately determined, and the efficiency of generating the lamp effect picture matched with the control parameter based on the target light-emitting device can be improved.

Drawings

FIG. 1 is a logic diagram illustrating a keyboard lamp effect according to the related art;

fig. 2 is a schematic flowchart of a first control method according to an embodiment of the present application;

fig. 3A is a schematic flowchart of a second control method according to an embodiment of the present application;

fig. 3B is a schematic flowchart of a third control method according to an embodiment of the present application;

fig. 3C is a schematic flowchart of a fourth control method provided in the embodiment of the present application;

fig. 4A is a schematic flowchart of a fifth control method according to an embodiment of the present application;

fig. 4B is a schematic flowchart of a sixth control method according to an embodiment of the present application;

fig. 4C is a schematic flowchart of a seventh control method according to the embodiment of the present application;

fig. 4D is a schematic flowchart of an eighth control method according to an embodiment of the present application;

FIG. 5A is a logic diagram illustrating a control method applied to determine keyboard light effects according to an embodiment of the present application;

fig. 5B is a schematic diagram illustrating an effect of determining a keyboard light effect by applying the control method provided in the embodiment of the present application;

fig. 6 is a schematic structural diagram of a control device according to an embodiment of the present disclosure;

fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.

Detailed Description

The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.

It should be appreciated that reference throughout this specification to "an embodiment of the present application" or "an embodiment described previously" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in the embodiments of the present application" or "in the embodiments" in various places throughout this specification are not necessarily all referring to the same embodiments. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.

In a case where no specific description is given, the electronic device may execute any step in the embodiments of the present application, and the processor of the electronic device may execute the step. It should also be noted that the embodiment of the present application does not limit the sequence of the steps executed by the electronic device. In addition, the data may be processed in the same way or in different ways in different embodiments. It should be further noted that any step in the embodiments of the present application may be executed by the electronic device independently, that is, when the electronic device executes any step in the following embodiments, the electronic device may not depend on the execution of other steps.

Electronic products with keyboards are usually provided with light-emitting devices on the keyboards to meet specific visual requirements; in the related art, various keyboard layouts and screen printing information of keyboards corresponding to multiple languages are usually stored in electronic products, so as to correspond to various keyboard layouts. In this way, in the process of implementing the related light effect based on the keyboard provided with the light emitting device, the electronic product generally implements the animation corresponding to the light effect of each frame according to the coordinates and the size of each key in the keyboard.

Fig. 1 is a schematic diagram illustrating logic for implementing a keyboard light effect in the related art. Fig. 1 shows 11 as an upper interface light effect scheme provided by an application layer, 12 as a light effect logic layer for generating a corresponding animation effect by the user selecting the light effect scheme from 11, 13 as a keyboard lookup table, and 14 as bottom hardware.

Meanwhile, the keyboard light effect implementation logic can be divided into two major flows, namely: after the light effect scheme is selected, a corresponding control logic is generated to map to a unique code (ID) of a corresponding light emitting device, that is, the light effect logic layer 12 performs related information drawing based on a certain animation effect in 11 and the keyboard look-up table in 13, and further maps the determined information in the drawing to the light emitting device set in the bottom hardware 14. And a second process: and acquiring the color value of each light-emitting device in the bottom hardware 14, determining the ID of the upper-layer display interface based on the keyboard comparison table in 13 according to the ID of each light-emitting device, and sending the ID to the upper-layer interface.

After determining the animation of each frame, it is necessary to know the ID corresponding to each key in the keyboard, and then associate the ID of each key with each light emitting device on the keyboard. The following problems exist in this process: the keyboard with different layouts has different coordinates and sizes of each key on the keyboard; and different keyboards have different IDs corresponding to each key. Meanwhile, silk-screen printing on keyboards of different electronic products is different, and further, implementation schemes on hardware implementation layers on corresponding keyboards are different; therefore, a large amount of repeated development problems exist in the process of realizing the same keyboard light effect for each electronic product, and further the keyboard light effect realization process is complex.

In view of the above problems, an embodiment of the present application provides a control method applied to an electronic device, and the following description is made with reference to the steps shown in fig. 2:

step 101, obtaining control parameters acting on a target display interface of the electronic equipment.

The target display interface comprises a virtual image of an input component based on configuration parameters of the input component of the electronic equipment, and the input component is at least provided with a light-emitting device.

The appearance parameters of the virtual image are the same as the appearance configuration parameters of the input component or meet a preset proportion threshold value.

In the embodiment of the present application, the electronic device may be any electronic device having a data processing capability. Among others, the electronic device may include but is not limited to: the device comprises a display part, an input part and a main control part; the main control unit is used for receiving related instructions to control the display unit to output related display information, receiving related instructions, data and the like input by the input unit, and converting the related instructions, the data and the like into related control commands and other information.

The target display interface includes, but is not limited to, a virtual image of the input component obtained based on the configuration parameters of the input component in the electronic device, and may also include related virtual icons obtained based on the configuration parameters of other hardware components of the electronic device.

In one possible implementation, in the case where the input component is a keyboard, the virtual image may be a virtual keyboard image that can be displayed on a display interface of the electronic device.

In another possible implementation, in the case that the input component is a mouse, the virtual image may be cursor information that can be displayed on a display interface of the electronic device.

It should be noted that the target display interface may display the virtual image all the time, may display the virtual image periodically, and may display or hide the virtual image based on the relevant instruction. The virtual image can be located at any position of the side edge, the middle part and the like of the target display interface, and the display mode and the display size of the virtual image on the target display interface can be determined according to actual requirements. The embodiment of the present application is not limited to this.

The input unit may be any one or a combination of two or more of a mouse, a keyboard, and a touch panel. The specific hardware display form of the mouse, the keyboard, or the touch pad is based on practical application, and this is not limited in this embodiment. In other embodiments of the present application below, the input means refers to a keyboard. Meanwhile, in the other embodiments of the present application, the sub-components on the input component are referred to, and all can refer to the keys on the keyboard.

In the embodiment of the present application, the configuration parameters of the input component may include, but are not limited to, position information and/or size information of each sub-component in the input component, and the specific parameters of the configuration parameters may be determined based on actual requirements.

In the embodiment of the present application, the input section is provided with at least a light emitting device. The light-emitting device may be any type of light-emitting device configured to emit light, such as electroluminescence or photoluminescence. Meanwhile, the number of the light emitting devices on the input part may be one, two or more. Meanwhile, when the number of the light emitting devices is two or more, the positions of the light emitting devices on the input part can be determined according to actual requirements.

Note that, the light emitting parameters of the light emitting device, such as: the light emission luminance, light emission color, light emission frequency, and the like are not limited in any way in the embodiments of the present application.

In a possible implementation manner, the appearance parameter of the virtual image is the same as the appearance configuration parameter of the input component or meets a preset scale threshold, which may refer to that the layout of each sub-region in the virtual image is the same as the layout of each sub-component on the input component, and meanwhile, the display size of each sub-region in the virtual image and the configuration size of each sub-component on the input component have a scaling relationship.

In another possible implementation manner, the appearance parameter of the virtual image is the same as the appearance configuration parameter of the input component or meets a preset proportion threshold, which may refer to a display parameter presented by the virtual image, that is, the appearance parameter is determined according to the appearance configuration parameter of the input component, and there is a mapping relationship between the two.

Step 102, determining a corresponding target light-emitting device at least according to the control parameters.

In the embodiment of the application, the electronic equipment determines the corresponding target light-emitting device at least according to the control parameters; the target light emitting device may be a part or all of the light emitting devices on the input component, or may refer to a light emitting device of the virtual image on a corresponding area of the display device when the display device of the electronic device displays a target display interface including the virtual image.

In one possible implementation, the electronic device may first determine a target area or target sub-component on the virtual image or input component according to the obtained control parameters; the target light emitting device at the corresponding target location is then determined on the input component based on the target area and the relationship between the virtual image and the input component, or the target light emitting device is directly determined based on the target sub-component.

In another possible implementation manner, the electronic device may further obtain environment information where the electronic device is currently located, and then determine the corresponding target light emitting device based on the environment information and the obtained control parameter.

It should be noted that the number of the target light-emitting devices may be one, or two or more. Meanwhile, when the number of the target light emitting devices is two or more, the positions of the target light emitting devices located on the input part may be adjacent to each other or relatively far away from each other.

And 103, controlling the light emitting parameters of the target light emitting device at least according to the control parameters.

In other embodiments of the present application, the electronic device controls the lighting parameters of the target light emitting device at least according to the control parameters. Among them, the light emitting parameters of the target light emitting device include, but are not limited to: light emission time or length, color, and brightness, etc.

And the electronic equipment controls the light-emitting parameters of the target light-emitting device according to the obtained control parameters, so that the light-emitting effect presented by the target light-emitting device based on the light-emitting parameters corresponds to the light-emitting effect carried by the control parameters.

In a possible implementation manner, the electronic device may control the light emitting parameters of the target light emitting device based on the obtained control parameters and the current environment information of the electronic device.

In another possible implementation, the electronic device may collectively control the light emitting parameters of the target light emitting device based on the obtained control parameters, the light and shadow information of the current surroundings of the input part, and the relative positional relationship between the input part and the display part of the electronic device.

When the number of the target light emitting devices is two or more, the light emitting parameters of each target light emitting device may be the same or different, that is, the light emitting color, the light emitting intensity, and the light emitting duration of each target light emitting device may be completely the same or different or may be partially the same.

In the embodiment of the present application, the electronic device may control not only the light emitting parameters of the target light emitting device based on the control parameters, but also the display parameters of the target area associated with the target light emitting device in the virtual image based on the control parameters, and may also control the light emitting parameters of other hardware components in the electronic device, which are configured with the light emitting device, based on the control parameters.

The control method provided by the embodiment of the application comprises the steps of firstly, obtaining control parameters acting on a target display interface of the electronic equipment, wherein the target display interface comprises a virtual image of an input component obtained based on configuration parameters of the input component of the electronic equipment, and the input component is at least provided with a light-emitting device; determining a corresponding target light emitting device at least according to the control parameters; controlling a light emitting parameter of the target light emitting device at least according to the control parameter; wherein, the appearance parameter of the virtual image is the same as the appearance configuration parameter of the input component or meets the preset proportion threshold, for example, when the virtual image is a virtual image of a keyboard, the appearance parameters such as the size and layout of the virtual keyboard are completely consistent with the size and layout (appearance configuration parameter) of the physical keyboard or are scaled in size so as to meet the preset proportion, the preset proportion threshold not only is the same as the virtual image (virtual keyboard) in overall appearance with the input component (physical keyboard) or meets the preset proportion threshold, but also includes that each part of the virtual image (virtual keys of the virtual keyboard) is the same as each sub-component of the input component (each key of the physical keyboard) in appearance or meets the preset proportion threshold; thus, the target light-emitting device associated with the control parameter can be efficiently and accurately determined, and the efficiency of generating the lamp effect picture matched with the control parameter based on the target light-emitting device can be improved.

Based on the foregoing embodiments, the present application further provides a control method applied to an electronic device, and the following description is made with reference to the steps shown in fig. 2 and fig. 3 (fig. 3 includes fig. 3A to fig. 3C):

in the embodiment of the present application, the electronic device performs obtaining of the control parameter acting on the target display interface of the electronic device, that is, the electronic device performs step 101 in the above embodiment, which can be implemented in the following three ways:

the first embodiment is described below with reference to the steps shown in fig. 2 and 3A:

step 201, if the electronic device runs the target application process, obtaining operation data of an application interface acting on the target application process, and obtaining a control parameter based on the operation data.

In the embodiment of the application, if the electronic equipment runs the target application process, operation data of an application interface acting on the target application process is obtained, and the control parameters are obtained based on the operation data; the target application process can be a control application process associated with the input component, and can also be a control application process associated with a light-emitting device configured on the input component; but also a control application process associated with the virtual image.

The operation data of the application interface acting on the target application process may be generated by the electronic device in response to an operation instruction received by the input component, or may be generated by the electronic device in response to an operation instruction received by the internal touchable display component.

Meanwhile, the operation data of the application interface acting on the target application process can be displayed in characters, codes or graphs.

The control parameter may be the same information as the operation data, or may be obtained by analyzing the operation data by the electronic device.

Mode two, the following description is made with reference to the steps shown in fig. 2 and 3B:

step 202, if the target display interface displays the virtual image of the input component, obtaining operation data and corresponding response data for adding the display effect on the virtual image, and obtaining the control parameters based on the operation data and the response data.

In the embodiment of the application, if the target display interface displays the virtual image of the input component, in response to obtaining the operation data and the corresponding response data for adding the display effect on the virtual image, the control parameter is obtained based on the operation data and the response data. The operation data may be operation data obtained by operating the virtual image, and the response data may be display parameters and the like generated by the virtual image based on the operation data; the operation performed on the virtual image at the same time may be a touch operation performed directly on the virtual image on the target display interface, or a click operation or an editing operation performed via an input unit.

In a possible implementation manner, operation data for adding a display effect to the virtual image is obtained, for example, the display effect is operation data including a display color being a color parameter 1, a display brightness being a brightness parameter 2, a display duration being a duration parameter 3, and the like, and response data corresponding to the display effect is obtained; the response data may be corresponding display parameters presented on the virtual image, and then control parameters are obtained based on the operation data and the display parameters.

Mode three, the following description is made with reference to the steps shown in fig. 2 and 3C:

and 203, after the electronic equipment outputs the target display interface, acquiring input data aiming at the light-emitting effect of the input part based on the target display interface, and acquiring a control parameter based on at least the input data.

In the embodiment of the present application, after the electronic device outputs the target display interface, the input data of the lighting effect for the input component may be obtained in response to being directly based on the target display interface, where the input data may be based on an obtaining module of the electronic device, such as: the image acquisition module or the audio acquisition module receives the limb information output by a user operating the electronic device within a specific time period, such as: the corresponding change information of the hand, the head, the eyeball and the like, and/or the voice information output in a specific time length, and the like, and the body information and/or the voice information are analyzed.

In the embodiment of the application, the electronic device may further acquire display parameters and/or display areas and the like of the virtual image on the target display interface, and then determine the control parameters based on the display parameters and/or the display areas and the like.

In the present embodiment, the following three embodiments are used, that is: and acquiring and determining the control parameters based on the operation data of the application interface acting on the target application process, the operation data for adding the display effect on the virtual image and the corresponding response data, or acquiring the input data aiming at the luminous effect of the input part based on the target display interface. Therefore, the source of the control parameters can be enriched on the basis of efficiently and accurately determining the control parameters, and the matching degree of the control parameters and the actual operation process of the electronic equipment can be improved.

Correspondingly, the electronic device determines the corresponding target light emitting device at least according to the control parameters, i.e. the electronic device performs step 102 in the above embodiment, and may also be implemented by any of the following two steps, i.e. step 202a and step 202b (not shown in the figure):

step 202a, determining a target sub-component to be responded in the input component according to at least the control parameters, and determining the light-emitting device configured by the target sub-component as a target light-emitting device.

In the embodiment of the application, the electronic equipment determines the target sub-component to be responded in the input component at least according to the control parameters, and determines the light-emitting device configured by the target sub-component as the target light-emitting device.

The number of target sub-components to be responded in the input component can be one, two or more. Meanwhile, when the number of the target sub-components is two or more, the target sub-components may be adjacent to, overlapped with, separated from, and the like between the regions corresponding to the input components. The embodiment of the present application is not limited to this.

In a possible implementation manner, the electronic device determines a corresponding control area on the input component according to at least the control parameter, and further determines the light emitting device of the target sub-component configuration to be responded, which is located on the control area, as the target light emitting device.

In another possible implementation, the electronic device parses the obtained control parameters to determine at least one coordinate information and the like on the input component, and further determines the corresponding target sub-component based on the coordinate information, and determines the light emitting device configured by the target sub-component as the target light emitting device.

The light emitting device disposed in the target sub-member may be a light emitting device disposed directly below the target sub-member, or may be a light emitting device disposed around the target sub-member; or a light emitting device disposed over a target sub-component; any combination of the three above cases is also possible.

Step 202b, determining a target area according to at least the control parameters acting on the virtual image, and determining the light emitting device configured on the target sub-component corresponding to the target area as a target light emitting device according to the corresponding relation between the virtual image and the input component.

Wherein the target area is an area on the virtual image selected to perform the corresponding response.

In the embodiment of the application, the electronic equipment determines the area selected to execute the corresponding response as the target area at least according to the control parameters acting on the virtual image, and simultaneously determines the corresponding relation between the virtual image and the input component according to the corresponding relation; the corresponding relation may be that the appearance parameter of the virtual image is the same as the appearance configuration parameter of the input component or meets a preset proportion threshold, and then the light emitting device configured by the target sub-component on the target area is determined as the target light emitting device.

In the embodiment of the present application, the sub-components or sub-regions in the virtual image correspond to the sub-components on the input component one to one, that is, the target sub-component of the target region in the virtual image can be mapped to the corresponding target sub-component on the input component.

It should be noted that, the correspondence between the virtual image and the input component may refer to the layout of each sub-region in the virtual image, which is the same as the layout of each sub-component in the input component, that is, each sub-region in the virtual image has a mapping relationship between each coordinate information of the virtual image and each coordinate information of each sub-component on the input component. Meanwhile, the size of each sub-area in the virtual image has a scaling relation with the size of each sub-component in the input component.

The target area may be selected based on a check area operation applied to the virtual image, or may be determined based on input position information.

In the embodiment of the present application, the target light emitting device may be a light emitting device on a target light emitting area corresponding to a target area in a virtual image and the display device when the display device of the electronic device displays a target display interface including the virtual image, or may be a target light emitting device on an area corresponding to the target area of the virtual image on the input component.

It should be noted that, in the embodiment of the present application, the light emitting device configured by the target sub-component associated with the control parameter on the input component is determined as the target light emitting device, or the light emitting device configured by the target sub-component associated with the control parameter in the virtual image is determined as the target light emitting device, based on two different cases; therefore, a more accurate target light-emitting device can be provided, meanwhile, the corresponding target light-emitting device is determined directly based on the control parameters, the complexity of determining the target light-emitting device can be reduced, and the efficiency of determining the target light-emitting device can be improved.

Correspondingly, the electronic device controls the light emitting parameters of the target light emitting device at least according to the control parameters, i.e. the electronic device performs step 103 in the above embodiment, by the following two steps: i.e. either of step 203a and step 203b (not shown in the figure):

step 203a, if the control parameter is obtained based on the preset light effect control logic selected by the operation body, sending the light emitting parameter corresponding to the preset light effect control logic to the target light emitting device, so that the target light emitting device outputs the corresponding light emitting effect according to the light emitting parameter.

In the embodiment of the application, if the control parameter is obtained based on the preset light effect control logic selected by the operation body; the operation body may be a hardware component or the like capable of being executed by the electronic device, such as: a mouse, a touch pad, or a keyboard. And the electronic equipment sends the light-emitting parameters corresponding to the preset light effect control logic to the target light-emitting device, so that the target light-emitting device outputs the corresponding light-emitting effect according to the light-emitting parameters.

The preset light effect control logic can be determined by relevant instructions input to the electronic equipment, and can also be determined based on the attribute information of the input component and/or the virtual image.

It should be noted that the light emitting effect may be based on a light effect picture exhibited in a form of a water-flowing light, or may be a light effect picture exhibited with fixed brightness and color, which is not limited in this embodiment of the application.

And 203b, if the control parameter is obtained based on the editing input of the operation body, generating a corresponding light-emitting parameter according to the editing input so that the target light-emitting device outputs a corresponding light-emitting effect according to the light-emitting parameter.

In the embodiment of the application, if the control parameter is obtained based on the editing input of the operation body, the corresponding light-emitting parameter is generated according to the editing input, so that the target light-emitting device outputs the corresponding light-emitting effect according to the light-emitting parameter; the control parameter obtained by the editing input by the operator may be any form of information such as a character and a code.

It should be noted that, in the embodiment of the present application, the electronic device selects or inputs a corresponding light emitting parameter based on the operation body, and then sends the light emitting parameter to the corresponding target light emitting device, so as to control the target light emitting device to output the light emitting effect corresponding to the light emitting parameter. Therefore, the operation body is detected to determine the accurate light-emitting parameters, the target light-emitting device is controlled to output the corresponding light-emitting effect according to the light-emitting parameters, and the light-emitting effect matched with the light-emitting parameters can be determined efficiently and accurately.

In a possible implementation manner, the electronic device controls the light emitting parameters of the target light emitting device at least according to the control parameters, i.e. the electronic device performs step 103 in the above embodiment, and the following step a is also implemented:

and step A, obtaining the environmental parameters of the current environment of the electronic equipment, and determining the light-emitting parameters of the target light-emitting device according to the control parameters and the environmental parameters so that the target light-emitting device outputs the corresponding light-emitting effect according to the light-emitting parameters.

In the embodiment of the application, the electronic device acquires environmental parameters of the current environment of the electronic device, such as illumination, temperature, position coordinates of the electronic device, and further determines the light-emitting parameters corresponding to the target light-emitting device based on the acquired light-emitting parameters and the environmental parameters, so that the target light-emitting device outputs the corresponding light-emitting effect according to the light-emitting parameters.

In a feasible implementation manner, the electronic device adjusts the control parameter according to the acquired environmental parameter of the current environment of the electronic device, and determines the light emitting parameter of the target light emitting device according to the adjusted control parameter, so that the target light emitting device outputs the corresponding light emitting effect according to the light emitting parameter.

In another feasible implementation manner, the electronic device first determines the light-emitting parameters of the target light-emitting device according to the control parameters, and then correspondingly adjusts the light-emitting parameters according to the obtained environmental parameters of the current environment of the electronic device, so that the target light-emitting device outputs the corresponding light-emitting effect according to the adjusted light-emitting parameters.

In another possible implementation manner, the electronic device generates an adjustment parameter matched with the environmental parameter through the acquired environmental parameter of the current environment of the electronic device, and further determines the light emitting parameter of the target light emitting device based on the adjustment parameter and the control parameter, so that the target light emitting device outputs the corresponding light emitting effect according to the light emitting parameter.

It should be noted that, the light-emitting parameter of the target light-emitting device is determined based on the environmental parameter and the control parameter of the current environment of the electronic device, and the light-emitting parameter may be determined by adjusting the light-emitting intensity, the light-emitting brightness, the light-emitting color, the light-emitting duration, and the like.

In a feasible implementation manner, when the environmental parameter of the current environment of the electronic device is dark light, the light-emitting brightness of the light-emitting parameter of the target light-emitting device can be determined to be soft light based on the control parameter and the environmental parameter, so that the target light-emitting device outputs a corresponding light-emitting effect according to the light-emitting parameter to match the current environment of the electronic device.

It should be noted that, in the embodiment of the present application, the light emitting parameters of the target light emitting device are determined according to the control parameters and the current environmental parameters of the electronic device, so that the target light emitting device outputs the corresponding light emitting effect according to the light emitting parameters. Therefore, the light emitting effect output by the target light emitting device according to the light emitting parameters can be more matched with the current environment information.

According to the control method provided by the embodiment of the application, multiple sources of control parameters are determined through a target display interface, a target application process, a virtual image and the like, a target light-emitting device corresponding to the virtual image or an input part is provided, and then a target light-emitting device with higher precision and light-emitting parameters corresponding to the target light-emitting device are determined based on relevant operations aiming at an operation body in electronic equipment. Thus, on the basis of efficiently and accurately determining the control parameters, the matching degree of the lamp effect picture generated based on the target light-emitting device and the current operating environment of the electronic equipment can be improved.

Based on the foregoing embodiments, the present application further provides a control method applied to an electronic device, and the following description is made with reference to the steps shown in fig. 2 and fig. 4 (fig. 4 includes fig. 4A to fig. 4D):

and 301, obtaining control parameters acting on the virtual image at adjacent moments.

In the embodiment of the application, the electronic equipment obtains control parameters acting on the virtual image at adjacent moments; the adjacent time action and the control parameter of the virtual image can be the same or different.

The control parameter may be a parameter obtained by operating the virtual image at an adjacent time based on the operating body; while adjacent time instants may refer to two or more adjacent time instants.

It should be noted that, in the embodiment of the present application, in a case where a virtual image is displayed on a target display interface of an electronic device, control parameters acting on the virtual image at adjacent times may be obtained.

Accordingly, as shown in fig. 4A to 4D, respectively, the electronic device may further perform the following four steps, i.e. any one of the steps 302a to 302D:

step 302a, if the control parameter representations of the adjacent moments act on the regions of the virtual image to meet the first condition and the control logics are the same, fusing the regions corresponding to the adjacent moments into a first region, so that the first region and/or the light-emitting device corresponding to the first region outputs the light-emitting effect corresponding to the control logics.

In this embodiment of the application, if the control parameter representations at adjacent times act on the regions of the virtual image to satisfy the first condition and the control logics are the same, the electronic device merges the regions corresponding to the adjacent times into the first region, and controls the first region and/or the light emitting device corresponding to the first region to output the light emitting effect corresponding to the control logics.

Wherein, the first condition may refer to a case that the a region and the B region are completely overlapped, or partially overlapped, or not overlapped but adjacent, or not overlapped but the distance is less than a preset threshold; the A area indicates an area acted on the virtual image by the control parameter representation of the time sequence in the adjacent time, and the area acted on the virtual image by the control parameter representation of the time sequence in the adjacent time; meanwhile, the lamp effect control logic of the area A and the area B is the same.

The electronic device merges the area a and the area B into a first area; wherein the first region may include, but is not limited to, an a region and a B region. In this embodiment, the first area may be an area corresponding to a minimum frame that can enclose the a area and the B area.

The control logics are the same, the lamp effects are the same, the light-emitting parameters of the light-emitting devices are the same, or the light-emitting modes of the light-emitting devices are the same.

In a feasible implementation manner, under the condition that the obtained control parameter representation of the time sequence at the previous time in the adjacent time acts on the A area of the virtual image and partially coincides with the control parameter representation of the time sequence at the later time in the adjacent time acts on the B area of the virtual image, and the control logics are the same, the A area and the B area are fused to generate a C area capable of surrounding the A area and the B area, and the light emitting device corresponding to the C area and/or the C area is controlled to output the light emitting effect corresponding to the control logics; wherein the light emitting device may be a light emitting device disposed on a target region corresponding to the C region of the virtual image on the input part.

It should be noted that, for details of the specific implementation of the light emitting device in the first region outputting the light emitting effect corresponding to the control logic, reference may be made to the light emitting effect described in the foregoing embodiments, and details are not repeated here.

Step 302b, if the control parameter representations of the adjacent moments act on the areas of the virtual image to meet the first condition and the control logics are different, controlling the second area corresponding to the later moment in time sequence and/or the light-emitting device corresponding to the second area to output the light-emitting effect corresponding to the later control logic.

In this embodiment of the application, if the control parameter characterization at adjacent moments satisfies the first condition between the regions acting on the virtual image and the control logics are different, the electronic device outputs the light emitting effect corresponding to the subsequent control logic to the second region corresponding to the later moment in the control sequence and/or the light emitting device corresponding to the second region.

The first condition and the control logic may refer to the related description of the foregoing embodiments, and are not repeated herein.

It should be noted that, in the embodiment of the present application, the control parameter characterization at adjacent times satisfies the first condition and the control logic is different between the regions acting on the virtual image, and the first region corresponding to the first time before the control timing and/or the light emitting device corresponding to the first region output the light emitting effect corresponding to the previous control logic, and the second region corresponding to the second time after the control timing and/or the light emitting device corresponding to the second region output the light emitting effect corresponding to the subsequent control logic. The light-emitting effect corresponding to the first time point before the time sequence may be output simultaneously with the light-emitting effect corresponding to the second time point after the time sequence, or may be output in a sequence before or after the time sequence, and the specific output sequence is not limited in this embodiment.

In a possible implementation manner, the control parameter representation of the time sequence in the adjacent time is obtained to act on the A area of the virtual image, and the control parameter representation of the time sequence in the adjacent time is obtained to act on the B area of the virtual image; and under the condition that the area A and the area B are completely overlapped and the control logics are different, outputting the first area corresponding to the first time and/or the light-emitting device corresponding to the first area in the control sequence to the front control logic, and then outputting the second area corresponding to the second time and/or the light-emitting device corresponding to the second area in the control sequence to the light-emitting effect corresponding to the rear control logic.

And step 302c, if the control parameter characterization at the adjacent time points acts on the regions of the virtual image, the second condition is satisfied, and the control logics are the same, determining a target control logic based on the position relationship between the regions corresponding to the adjacent time points, so that the region corresponding to the adjacent time points and/or the light-emitting device corresponding to the region outputs the light-emitting effect corresponding to the target control logic.

In the embodiment of the application, if the control parameter characterization at the adjacent time points acts on the regions of the virtual image, the second condition is satisfied, and the control logics are the same, the target control logic is determined based on the position relationship between the regions corresponding to the adjacent time points, that is, the target control logic is determined based on the position relationship between the region corresponding to the time point before the time sequence in the adjacent time points and the region corresponding to the time point after the time sequence in the adjacent time points, so that the region corresponding to the adjacent time points and/or the light emitting device corresponding to the region outputs the light emitting effect corresponding to the target control logic.

Wherein the second condition may refer to a case where the a region and the B region are adjacent to each other, or far away from each other, or a distance between the a region and the B region is greater than a threshold value; the A area indicates an area acted on the virtual image by the control parameter representation of the time sequence in the adjacent time, and the area acted on the virtual image by the control parameter representation of the time sequence in the adjacent time; meanwhile, the positional relationship between the a region and the B region may be left-right away, or up-down away, or the like.

The control logic may refer to the related description of the foregoing embodiments, and is not repeated herein.

In a possible implementation manner, the target control logic is determined based on a position relationship between the areas corresponding to adjacent times, and the target control logic may be determined to be the same as the control logic based on a position relationship between the areas corresponding to adjacent times, which is far from each other.

In another possible implementation manner, the target control logic is determined based on the position relationship between the areas corresponding to the adjacent time instants, and the target control logic may be determined to be opposite to the control logic based on the position relationship of left and right distances between the areas corresponding to the adjacent time instants.

In a feasible implementation manner, the control parameter representation of the time sequence before in the adjacent time is obtained to act on the a area of the virtual image, the control parameter representation of the time sequence after in the adjacent time acts on the B area of the virtual image, the a area and the B area are vertically far away from each other, and under the condition that the control logics are the same, the area corresponding to the adjacent time and/or the light emitting device corresponding to the area are/is controlled to output the corresponding light emitting effect which is the same as the control logics.

And step 302d, if the control parameter representations of the adjacent moments act on the same area of the virtual image and the control logics are different, controlling the light-emitting devices corresponding to the areas and/or the areas to simultaneously output the light-emitting effects corresponding to the different control logics.

In the embodiment of the application, if the control parameter characterization at adjacent time points acts on the regions of the virtual image to satisfy the second condition and the control logics are different, the control regions and/or the light emitting devices corresponding to the regions simultaneously output the light emitting effects corresponding to the different control logics.

The second condition and the control logic may refer to the related description of the foregoing embodiments, and are not repeated herein.

In a feasible implementation manner, the control parameter representation of the time sequence before in the adjacent time is obtained to act on the a region of the virtual image, the control parameter representation of the time sequence after in the adjacent time acts on the B region of the virtual image, the a region and the B region are vertically far away from each other, and under the condition that the control logics are different, the light emitting devices corresponding to the a region and/or the B region are controlled to simultaneously output the light emitting effects corresponding to different control logics.

In the process of correspondingly controlling the light emitting devices in the relevant areas in the virtual image to output the corresponding light emitting effects based on the area information of the control parameters in the virtual image and the control logic, when the light emitting effects corresponding to the control parameters at the time point before the time sequence in the adjacent time are different from the light emitting effects corresponding to the control parameters at the time point after the time sequence in the adjacent time sequence, partial fusion, complete fusion, or the like may be performed.

In a feasible implementation manner, in the case that the light emitting color of the light emitting device corresponds to the control parameter at the time that is earlier in time sequence in the adjacent time is red, and the light emitting color of the light emitting device corresponds to the control parameter at the time that is later in time sequence in the adjacent time is blue, the light emitting effects of the control parameters at the time that is earlier in time sequence and/or later in time sequence in the adjacent time may be merged into the light emitting colors of the light emitting devices that are red plus blue.

In the embodiment of the present application, by obtaining the control parameter acting on the virtual image at adjacent time, based on the area information of the control parameter in the virtual image and the control logic, the control method correspondingly controls the light emitting device in the relevant area in the virtual image to output the corresponding light emitting effect. Therefore, on the basis of efficiently and accurately determining the control parameters, the efficiency of generating the lamp effect picture matched with the control parameters at different moments based on the target light-emitting device can be improved.

Based on this, in the control method provided in the embodiment of the present application, the electronic device determines the virtual image, which may be implemented in any one of the following two manners, as shown in step B1 or step B2:

and step B1, acquiring the position information and the size information of each sub-component on the input component according to the appearance configuration parameters of the input component, and obtaining the virtual image according to the position information and the size information.

In the embodiment of the application, the electronic equipment acquires the position information and the size information of each sub-component on the input component according to the appearance configuration parameters of the input component; the position information comprises coordinate information of each sub-component on the input component and a relative position relation between any two sub-components; and obtaining a virtual image according to the position information and the size information.

The input member may have the same or partially the same or different sizes of the respective sub-members.

In a possible implementation manner, the electronic device may obtain the position information and the size information of each sub-component on the input component according to the external configuration parameters related to the input component stored in advance, and further perform the scaling down on the size information, and perform the virtual image according to the position information.

And step B2, drawing each sub-component of the input component according to the hardware configuration parameters of the input component to obtain a virtual image.

In the embodiment of the application, the electronic equipment draws each sub-component of the input component according to the hardware configuration parameters of the input component to obtain a virtual image; the hardware configuration parameters include the actual size of the input component, the actual size and position information of each sub-component on the input component, and the like.

It should be noted that, in the embodiment of the present application, the virtual image is determined by inputting the hardware configuration parameter or the appearance configuration parameter of the component. In this way, the parameters between the virtual image and the input component have a mapping relation, and the virtual image can be more accurate.

Meanwhile, in the control method provided by the embodiment of the application, the electronic device may further perform any one of the following steps C1 to C3 to control the display parameters related to the virtual image:

step C1, the display parameters of the target area are controlled according to the control parameters acting on the target area of the virtual image.

In the embodiment of the application, the electronic equipment controls the display parameters of the target area according to the control parameters acting on the target area of the virtual image. Wherein the target area may be an area corresponding to an input part where the target light emitting device is located.

The display effect formed by the display parameters of the target area and the light-emitting parameters of the target light-emitting device can be the same or different.

And step C2, controlling the display parameters of the corresponding area in the virtual image according to the light-emitting state of the target light-emitting device.

In the embodiment of the present application, the electronic device controls the display parameters of the corresponding region in the virtual image according to the light emitting state of the target light emitting device.

In one possible implementation, the corresponding region in the virtual image may be a target region of the target light emitting device on the input part, mapped to a region in the virtual image.

In another possible implementation, the corresponding region in the virtual image may be an adjacent region to the target region of the target light emitting device on the input part, mapped to a region in the virtual image.

The electronic equipment controls display parameters of a corresponding area in the virtual image according to the light-emitting state of the target light-emitting device; the display parameters for controlling the corresponding area in the virtual image may be the same as or different from the light-emitting parameters corresponding to the light-emitting state of the target light-emitting device.

Step C3, controlling the lighting parameters of the target light emitting device and/or the display parameters of the target area of the virtual image according to the operation data applied to the input means.

In the embodiment of the present application, the electronic apparatus controls the light emission parameters of the target light emitting device and/or the display parameters of the target area of the virtual image according to the operation data applied to the input part.

The operation data applied to the input unit may be operation data applied to a keyboard of the electronic device, or may be audio data applied to a microphone of the electronic device.

It should be noted that, in the embodiment of the present application, while the electronic device controls the light emitting parameters of the target light emitting device based on the control parameters, the electronic device may also control the display parameters of the relevant area in the virtual image, so that the display effect of the electronic device may be further enriched.

Based on the above embodiment, while in the case where other hardware components of the electronic device are configured with the light-emitting component, the control method provided in the embodiment of the present application may further perform the following step D1 or step D2:

and D1, controlling the light-emitting parameters of the light-emitting device corresponding to the target hardware component according to the control parameters aiming at other hardware components.

In the embodiment of the application, the electronic equipment controls the light-emitting parameters of the light-emitting devices corresponding to the target hardware component according to the control parameters aiming at other hardware components; the other hardware components are components in which a light-emitting device is disposed inside the electronic device, and the light-emitting device may be the same as or different from the light-emitting device disposed in the input component.

Meanwhile, the electronic device may control, based on the acquired control parameter, not only the light emitting parameter of the target light emitting device corresponding to the input part, but also the light emitting parameter of the light emitting device corresponding to another hardware part different from the input part.

The other hardware components may be a host of the electronic device, a fan of the electronic device, and the like.

And D2, controlling the light emitting parameters of the light emitting devices corresponding to the input component and the target hardware component according to the control parameters.

In the embodiment of the application, the electronic equipment controls the light emitting parameters of the light emitting devices corresponding to the input part and the target hardware part according to the control parameters.

The related descriptions of the control parameters can be described with reference to the foregoing embodiments, and are not repeated herein.

In a feasible implementation manner, the electronic device simultaneously controls the light emitting parameters of the light emitting devices corresponding to the input component and the target hardware component to output corresponding light emitting effects according to the control parameters.

In another possible implementation manner, the electronic device controls the light emitting parameters of the light emitting devices corresponding to the input component and the target hardware component to output corresponding light emitting effects in a time-sharing manner according to the control parameters.

It should be noted that, in the embodiment of the present application, the electronic device may control, according to the obtained control parameter, not only the light-emitting parameter of the light-emitting device corresponding to the input component, but also the light-emitting parameter of the light-emitting device corresponding to another hardware component; therefore, the display lamp effect of related parts on the electronic equipment can be further enriched.

Based on this, as shown in fig. 5A, a logic diagram for determining the keyboard light effect for the control method provided in the embodiment of the present application; meanwhile, 501 is an upper interface, namely an upper interface light effect scheme, 502 is a light effect logic layer, and 503 is a hardware bottom layer corresponding to the keyboard; first, position correspondence information of the keyboard is obtained from 503, for example, a position correspondence list composed of coordinate information of each key on the keyboard and size information of each key on the keyboard may be obtained; secondly, acquiring a position corresponding list and inputting the position corresponding list to a light effect logic layer, namely, according to the light effect corresponding to the position corresponding list, determining position information needing to be drawn on a keyboard and generated color information; and finally, sending the position information and the color information to a hardware bottom layer corresponding to the keyboard to output a related light effect picture. Therefore, the keyboards with different silk screens or layouts can be uniformly configured in the electronic equipment, and the efficiency of realizing the same light effect by the keyboards with different silk screens or layouts can be improved. Meanwhile, as shown in fig. 5B, a schematic diagram of the effect of determining the keyboard light effect for the control method provided in the embodiment of the present application is shown; wherein, two display areas are divided based on different display colors in the keyboard.

Based on the foregoing embodiments, an embodiment of the present application further provides a control device 6, where the control device 6 may be applied to a control method provided in the embodiments corresponding to fig. 2 to 4, and as shown in fig. 6, the control device 6 may include: an acquisition module 61, a determination module 62 and a control module 63, wherein:

an obtaining module 61, configured to obtain a control parameter acting on a target display interface of an electronic device, where the target display interface includes a virtual image of an input component of the electronic device, which is obtained based on a configuration parameter of the input component, and the input component is configured with at least a light emitting device;

a determining module 62 for determining a corresponding target light emitting device at least according to the control parameter;

a control module 63, configured to control a light emitting parameter of the target light emitting device according to the control parameter;

wherein the appearance parameter of the virtual image is the same as the appearance configuration parameter of the input component or meets a preset proportion threshold.

In other embodiments of the present application, the obtaining module 61 is further configured to obtain position information and size information of each sub-component on the input component according to an appearance configuration parameter of the input component, and obtain the virtual image according to the position information and the size information; or, drawing each sub-component of the input component according to the hardware configuration parameters of the input component to obtain the virtual image.

In other embodiments of the present application, the obtaining module 61 is further configured to, if the electronic device runs a target application process, obtain operation data of an application interface acting on the target application process, and obtain the control parameter based on the operation data; or, if the target display interface displays a virtual image of the input component, obtaining operation data and corresponding response data for adding a display effect on the virtual image, and obtaining the control parameter based on the operation data and the response data; or after the electronic equipment outputs the target display interface, obtaining input data aiming at the light-emitting effect of the input component based on the target display interface, and obtaining the control parameter at least based on the input data.

In other embodiments of the present application, the determining module 62 is further configured to determine a target sub-component to be responded in the input component according to at least the control parameter, and determine a light emitting device configured by the target sub-component as the target light emitting device; or, a target area is determined at least according to the control parameters acting on the virtual image, and the light-emitting device configured on the target sub-component corresponding to the target area is determined as the target light-emitting device according to the corresponding relation between the virtual image and the input component; wherein the target region is a region on the virtual image selected to perform a corresponding response.

In other embodiments of the present application, the control module 63 is further configured to send a light emitting parameter corresponding to a preset light effect control logic to the target light emitting device if the control parameter is obtained based on the preset light effect control logic selected by the operation body, so that the target light emitting device outputs a corresponding light emitting effect according to the light emitting parameter; or, if the control parameter is obtained based on the editing input of the operation body, generating a corresponding light emitting parameter according to the editing input, so that the target light emitting device outputs a corresponding light emitting effect according to the light emitting parameter.

In other embodiments of the present application, the obtaining module 61 is further configured to obtain a control parameter acting on the virtual image at an adjacent time; accordingly, the control module further comprises: the output module is used for fusing the areas corresponding to the adjacent moments into a first area if the control parameter representations of the adjacent moments act on the areas of the virtual image, which meet a first condition, and the control logics are the same, so that the first area and/or the light-emitting device corresponding to the first area output the light-emitting effect corresponding to the control logics; or, if the control parameter representations of the adjacent moments act on the regions of the virtual image to meet the first condition and the control logics are different, controlling a second region corresponding to a later moment in time sequence and/or a light emitting device corresponding to the second region to output a light emitting effect corresponding to the later control logic; or, if the control parameter characterization at the adjacent time points acts on the regions of the virtual image, the second condition is satisfied, and the control logics are the same, determining a target control logic based on the position relationship between the regions corresponding to the adjacent time points, so that the region corresponding to the adjacent time points and/or the light-emitting device corresponding to the region outputs the light-emitting effect corresponding to the target control logic; or if the control parameter representations of the adjacent moments act on the same area of the virtual image and different control logics, controlling the area and/or the light-emitting device corresponding to the area to simultaneously output the light-emitting effects corresponding to the different control logics.

In other embodiments of the present application, the control module 63 is further configured to control a display parameter of the target area according to a control parameter acting on the target area of the virtual image; or, controlling the display parameters of the corresponding area in the virtual image according to the light emitting state of the target light emitting device; or, the light emitting parameters of the target light emitting device and/or the display parameters of the target area of the virtual image are controlled according to the operation data applied to the input part.

In other embodiments of the present application, the determining module 62 is further configured to obtain an environmental parameter of an environment in which the electronic device is currently located, and determine a light emitting parameter of the target light emitting device according to the control parameter and the environmental parameter, so that the target light emitting device outputs a corresponding light emitting effect according to the light emitting parameter.

In other embodiments of the present application, in a case that other hardware components of the electronic device are configured with a light emitting component, the control module 63 is further configured to control a light emitting parameter of a light emitting device corresponding to a target hardware component according to a control parameter for the other hardware components; or controlling the light-emitting parameters of the light-emitting devices corresponding to the input part and the target hardware part according to the control parameters.

It should be noted that, for a specific implementation process of the steps executed by each module in this embodiment, reference may be made to the implementation processes in the control method provided in the embodiments corresponding to fig. 2 to 4, and details are not described here again.

The control device provided by the embodiment of the application determines multiple sources of control parameters through a target display interface, a target application process, a virtual image and the like, and simultaneously provides a target light-emitting device corresponding to the virtual image or an input part, so that a target light-emitting device with higher precision and light-emitting parameters corresponding to the target light-emitting device are determined based on relevant operations aiming at an operation body in electronic equipment. Thus, on the basis of efficiently and accurately determining the control parameters, the matching degree of the lamp effect picture generated based on the target light-emitting device and the current operating environment of the electronic equipment can be improved.

Based on the foregoing embodiments, an embodiment of the present application further provides an electronic device 7, where the electronic device 7 may be applied to a control method provided in the embodiments corresponding to fig. 2 to 4, and referring to fig. 7, the electronic device 7 may include: processor 71, memory 72, communication bus 73, wherein:

the communication bus 73 is used to realize a communication connection between the processor 71 and the memory 72.

The processor 71 is configured to execute a program of the control method stored in the memory 72 to implement the control method provided with reference to the corresponding embodiments of fig. 2 to 4.

According to the electronic equipment provided by the embodiment of the application, multiple sources of control parameters are determined through a target display interface, a target application process, a virtual image and the like, a target light-emitting device corresponding to the virtual image or an input part is provided, and then a target light-emitting device with higher precision and light-emitting parameters corresponding to the target light-emitting device are determined based on relevant operations aiming at an operation body in the electronic equipment. Thus, on the basis of efficiently and accurately determining the control parameters, the matching degree of the lamp effect picture generated based on the target light-emitting device and the current operating environment of the electronic equipment can be improved.

Based on the foregoing embodiments, embodiments of the present application provide a computer-readable storage medium storing one or more programs, which are executable by one or more processors to implement a control method as provided by the embodiments corresponding to fig. 2 to 4.

The computer-readable storage medium may be a Memory such as a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a magnetic Random Access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical Disc, or a Read Only Disc (CD-ROM); and may be various electronic devices such as mobile phones, computers, tablet devices, personal digital assistants, etc., including one or any combination of the above-mentioned memories.

It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.

Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method described in the embodiments of the present application.

The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

23页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种光源控制电路

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!