CN112148241A - Light processing method and device, computing equipment and storage medium - Google Patents

Light processing method and device, computing equipment and storage medium Download PDF

Info

Publication number
CN112148241A
CN112148241A CN201910579066.3A CN201910579066A CN112148241A CN 112148241 A CN112148241 A CN 112148241A CN 201910579066 A CN201910579066 A CN 201910579066A CN 112148241 A CN112148241 A CN 112148241A
Authority
CN
China
Prior art keywords
equipment
light
color
target
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910579066.3A
Other languages
Chinese (zh)
Other versions
CN112148241B (en
Inventor
张晓东
程晓雯
李士岩
关岱松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910579066.3A priority Critical patent/CN112148241B/en
Publication of CN112148241A publication Critical patent/CN112148241A/en
Application granted granted Critical
Publication of CN112148241B publication Critical patent/CN112148241B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The embodiment of the invention discloses a light processing method, a light processing device, a computing device and a storage medium, wherein the method comprises the following steps: responding to a lighting color setting request of a user for target equipment, and acquiring at least one lighting color of the target equipment; acquiring an achromatic model corresponding to target equipment, wherein the achromatic model is used for reducing display difference of light colors on a computing equipment interface and the target equipment; and adjusting the display result of at least one lamplight color on the interface of the computing equipment by using the achromatic model, so that the difference between the adjusted display result of each lamplight color on the interface of the computing equipment and the display result of the corresponding lamplight color on the target equipment meets the set requirement. According to the embodiment of the invention, in the light design process, the difference between the display results of the light colors on the computing equipment interface and the physical equipment is reduced, and the display effect of the light design is ensured to be close to the physical effect of the equipment.

Description

Light processing method and device, computing equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a light processing method, a light processing device, a computing device and a storage medium.
Background
In the development process of intelligent hardware, different system states need to be matched for light design work. However, no light design tool for intelligent hardware exists in the market temporarily, and the light design can only adopt the matching design flow of traditional designers and engineers.
For example, a designer first uses animation software to design a simulated animation of a light effect (i.e., a light display result), and then the designer sends the simulated animation to an engineer to convert the simulated animation into a code; and then the engineer compiles the codes and packs the codes into a software package, sends the software package to be updated to the test equipment, and then the designer checks the lighting effect on the test equipment and proposes a modification feedback suggestion, thereby completing the lighting design.
In the above scheme, not only the light design efficiency is lower, but also the effect of the light effect after the design is finished is difficult to control in practical application.
Disclosure of Invention
Embodiments of the present invention provide a light processing method and apparatus, a computing device, and a storage medium, so as to improve light design efficiency, reduce a difference between display results of light colors on a computing device interface and an entity device, and ensure that a light design result has a better display effect in practical applications.
In a first aspect, an embodiment of the present invention provides a light processing method, where the method includes:
responding to a lighting color setting request of a user for target equipment, and acquiring at least one lighting color of the target equipment;
acquiring an achromatic model corresponding to the target equipment, wherein the achromatic model is used for reducing display difference of light colors on a computing equipment interface and the target equipment;
and adjusting the display result of the at least one light color on the interface of the computing equipment by using the achromatic model, so that the difference between the display result of each adjusted light color on the interface of the computing equipment and the display result of the corresponding light color on the target equipment meets the set requirement.
In a second aspect, an embodiment of the present invention further provides a light processing apparatus, where the apparatus includes:
the device comprises a lighting color acquisition module, a display module and a control module, wherein the lighting color acquisition module is used for responding to a lighting color setting request of a user for target equipment and acquiring at least one lighting color of the target equipment;
the achromatic model acquisition module is used for acquiring an achromatic model corresponding to the target equipment, wherein the achromatic model is used for reducing the display difference of the light color on a computing equipment interface and the target equipment;
and the display result adjusting module is used for adjusting the display result of the at least one lamplight color on the computing equipment interface by using the achromatic model, so that the difference between the display result of each adjusted lamplight color on the computing equipment interface and the display result of the corresponding lamplight color on the target equipment meets the set requirement.
In a third aspect, an embodiment of the present invention further provides a computing device, including:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the light processing method according to any embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the light processing method according to any embodiment of the present invention.
According to the embodiment of the invention, the display result of at least one light color of the target equipment on the interface of the computing equipment is automatically adjusted by utilizing the achromatic model corresponding to the target equipment, so that the difference between the display result of each adjusted light color on the interface of the computing equipment and the display result of the corresponding light color on the target equipment meets the set requirement, the tedious operation of repeatedly modifying the design result after the design result is sent to the testing equipment for testing is omitted in the light design process, the light design efficiency is improved, the difference between the display results of the light colors on the interface of the computing equipment and the display results on the entity equipment is reduced, the display effect of the light design is close to the entity effect of the equipment, and the light design result has a better display effect in practical application.
Drawings
Fig. 1 is a flowchart of a light processing method according to an embodiment of the present invention;
fig. 2 is a flowchart of a light processing method according to a second embodiment of the present invention;
fig. 3 is a flowchart of a light processing method according to a third embodiment of the present invention;
FIG. 4 is a schematic diagram of a client interface according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of a light processing device according to a fourth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a computing device according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a light processing method according to an embodiment of the present invention, where the embodiment is applicable to a situation of performing simulation design on a light effect displayed on hardware devices, where the hardware devices include, but are not limited to, an intelligent household appliance, an intelligent sound box, a robot with a light effect, and the like. The method of the embodiment may be executed by a light processing device, and the device may be implemented in a software and/or hardware manner. The device can be in the form of independent computing equipment, such as a light design control panel, and an operation interface is arranged in the control panel; the apparatus may also be integrated in any computing device with computing capabilities, for example in the form of a plug-in or client installed in a notebook, a computer, an ipad. The device can be used as a visual tool of light design. For convenience of description, the technical solution of the embodiment of the present invention will be described in detail below mainly by taking the device as an example implemented in the form of a client.
As shown in fig. 1, the light processing method provided in this embodiment may include:
s110, responding to a lighting color setting request of a user to the target equipment, and acquiring at least one lighting color of the target equipment.
For example, a client having a light processing function is installed on a computing device, after a user starts the client, a target device selection request is triggered through a device selection control on a client interface (i.e., a human-computer interaction interface), the client loads a configuration file of the target device from a device configuration file library in response to the device selection request of the user, and the configuration file may include information such as the number of lamps installed on the target device and installation positions of the lamps; the user can also import the configuration file of the target device through the data import control on the client interface. After the computing device obtains the configuration file of the target device, the area of the lamp mounted on the target device can be simulated and displayed on the client interface or the computing device interface, and the target device can also be simulated and displayed integrally. Then, the user can determine the lamps needing color setting on the client interface, input the set color of each lamp through the color input box of the client interface, and trigger the light color setting request; the set color of each lamp can be selected in the color plate through a color picker on the client interface, and the light color setting request is triggered.
S120, obtaining an achromatic model corresponding to the target device, wherein the achromatic model is used for reducing display difference of light colors on the computing device interface and the target device.
Different equipment screens have different display effects on the same light color due to the possible difference among different equipment screen materials, lamp materials, covering materials covering the outside of the lamp and the like, and the different equipment referred to herein comprises equipment of different design types and equipment of different series of the same design type. Therefore, in the present embodiment, a corresponding achromatic model is stored in advance for each device according to the device classification, for example, the achromatic models of the respective devices are stored in the profile library according to the correspondence between the device identifiers and the achromatic models, and the device identifier of each device has uniqueness. And when the target equipment needing light design is determined, the corresponding achromatic model can be obtained according to the equipment identification. That is, the present embodiment may further include: responding to a light color setting request of a user to target equipment, and acquiring equipment identification of the target equipment; and acquiring the achromatic model corresponding to the target equipment by utilizing the corresponding relation between the equipment identification and the achromatic model.
S130, adjusting the display result of at least one lamplight color on the interface of the computing equipment by using the achromatic model, so that the difference between the display result of each adjusted lamplight color on the interface of the computing equipment and the display result of the corresponding lamplight color on the target equipment meets the set requirement.
Wherein, the setting requirement can be set according to the analysis comparison result between the two display results of the same light color. Meeting the set requirement means that the simulation display result of the same light color on the interface of the computing equipment and the actual display result on the target equipment basically have no visual difference, namely the light effect of the simulation display of the interface of the computing equipment is nearly consistent with the actual light effect displayed on the target equipment, so that the light design result simulated on the computing equipment has a better display effect in the actual application.
On the basis of the above scheme, optionally, the training process of the achromatic model includes:
obtaining a color parameter of at least one lamplight color on sample equipment under a target display result, and using the color parameter as an input of a training achromatic model;
when a target display result of at least one lamplight color on the sample equipment displayed on the interface of the computing equipment is obtained, the color parameter corresponding to the computing equipment is used as the output of the training achromatic model;
and training to obtain the achromatic model by using the input and the output.
In the model training process, aiming at a target display result (which can be any lighting effect which can be realized on the sample equipment), the display difference on the interface of the sample equipment and the computing equipment needs to meet the set requirement, namely the consistent visual effect needs to be kept for the user. The color parameter that the color parameter of sample equipment and computing device correspond means in order to demonstrate the same light effect, and the color value setting of at least one kind of light colour on the sample equipment to and the color value setting when computing device simulates at least one kind of light colour of this sample equipment. For example, a red light is installed on the sample device, the corresponding color parameters in the RGB color mode are (R1, G1, B1), and when the red light effect of the sample device is simulated on the computing device, if the same color parameters are set (R1, G1, B1), the actual display result on the interface of the computing device is not red, and at this time, the color value setting on the computing device can be adjusted, so that the visual effect consistent with that on the sample device is displayed on the interface of the computing device. If the color parameters set on the computing device are represented by (R2, G2, B2) when the visual effect consistent with that on the sample device is exhibited on the computing device interface, then the color parameters of (R1, G1, B1) and the color parameters of (R2, G2, B2) may be used as a set of model training data. The data amount required for model training is not specifically limited in this embodiment, and may be set according to actual conditions.
Further, the training process of the achromatic model further comprises: the mounting location of each color of light on the sample device is taken as an input and the presentation location of each color of light on the computing device interface is taken as an output.
When a plurality of lamps are installed on the sample equipment, the installation positions of the lamps on the sample equipment are taken into consideration as model training parameters, the corresponding relation between the light colors and the installation positions can be kept, the disorder of the light color positions is avoided, and the simulation accuracy of the light color display results is further ensured.
In addition, the method of the embodiment may further include: and exporting the adjusted light color to display result data or result animation on a computing equipment interface, wherein the display result data can be directly used in equipment and dynamically loaded in the working process of the equipment, and the display result animation can be inserted into a demonstration slide for equipment display description and the like. The method may further comprise: and responding to a scene setting request of a user, and acquiring preset scene data so as to display the lighting display result of the target equipment in the scene on a computing equipment interface. Illustratively, a user can trigger a scene setting request through a scene selection control on a client interface (according to the number of scenes, the scene selection control can be displayed in a control list form), so that the computing device loads scene data corresponding to the scene selected by the user, and the preset scene data can be stored locally or in a server; or the user triggers a scene setting request through a scene data import control on the client interface, and the computing equipment analyzes and loads the scene data imported by the user.
According to the technical scheme, the display result of at least one light color of the target equipment on the interface of the computing equipment is automatically adjusted by using the achromatic model corresponding to the target equipment, so that the difference between the display result of each adjusted light color on the interface of the computing equipment and the display result of the corresponding light color on the target equipment meets the set requirement, for a designer user, frequent communication interaction and repeated adjustment of simulation results with a coding engineer are not needed as in the traditional light design process, the design workload is reduced, the light design efficiency is improved, meanwhile, the effect of reducing the difference between the display results of the light colors on the interface of the computing equipment and the entity equipment in the light design process is achieved, and the light design result is ensured to have a better display effect in practical application.
Example two
Fig. 2 is a flowchart of a light processing method according to a second embodiment of the present invention, and the present embodiment is further optimized based on the above-mentioned embodiments. As shown in fig. 2, the method may include:
s210, responding to a lighting color setting request of a user for the target equipment, and acquiring at least one lighting color of the target equipment.
S220, obtaining an achromatic model corresponding to the target device, wherein the achromatic model is used for reducing display difference of light colors on the computing device interface and the target device.
And S230, adjusting the display result of at least one lamplight color on the interface of the computing equipment by using the achromatic model, so that the difference between the adjusted display result of each lamplight color on the interface of the computing equipment and the display result of the corresponding lamplight color on the target equipment meets the set requirement.
S240, obtaining a target lamp light effect and equipment information, wherein the equipment information comprises the number of equipment to be analyzed, and the target lamp light effect is formed by a preset number of light colors for each equipment to be analyzed.
The target lamp light effect refers to a light effect that a user wishes to show on at least two devices to be analyzed at the same time, and the devices to be analyzed refer to devices on which the color setting of the lamp is to be determined. For example, the computing device may obtain a target light effect in response to a target light effect data (the data may be video data or picture data) importing operation of a user on the client interface, and then determine, by using a color recognition and analysis technique, a color parameter that the computing device interface needs to set to show the target light effect; or the computing equipment simulates an expected light effect as a target light effect according to the color parameters input by the user; meanwhile, the computing device may obtain the number of devices to be analyzed by responding to a device information input operation of the user on the client interface.
And S250, obtaining a light analysis model corresponding to each device to be analyzed, wherein the light analysis model is used for analyzing the color composition of the target light effect displayed on the device to be analyzed, and the input and the output of the light analysis model and the achromatic model are opposite in the training process.
In this embodiment, the display effect difference between different devices is considered, each device corresponds to one light analysis model, and the light analysis model of each device to be analyzed can be determined according to the correspondence between the device and the light analysis model which is established in advance. For example, the device information obtained by the computing device further includes an identifier of the device to be analyzed; and acquiring the lamplight analysis model corresponding to each to-be-analyzed device according to the corresponding relation between the to-be-analyzed device identifier and the lamplight analysis model.
For example, the training process of the light analysis model may include:
obtaining a color parameter of at least one lamplight color on sample equipment under a target display result, and using the color parameter as the output of a training lamplight analysis model;
when a target display result of at least one lamplight color on the sample equipment displayed on the interface of the computing equipment is obtained, a color parameter corresponding to the computing equipment is used as input of a training lamplight analysis model;
and training a light analysis model by using the input and the output.
Further, the light analysis model training process further comprises: the installation position of the lamp of each color on the sample device is used as output, the display position of the lamp of each color on the interface of the computing device is used as input, and the training of the light analysis model is participated, so that the color setting of the lamp at a specific position can be accurately achieved when the color setting of different lamps on different devices is determined based on the obtained light effect of the target lamp.
Specifically, the application scenarios of the light analysis model are as follows: the final design effect of the lighting design is determined, and it needs to be analyzed to determine how to set the lighting colors on different devices to generate the lighting effect, however, the application scenarios of the achromatic model are: and according to the color setting of each lamp on the equipment by the user, simulating and previewing the display effect of the lamp color on the equipment on the computing equipment. The device to be analyzed may be any one of the sample devices participating in the training of the light analysis model.
And S260, inputting the color parameters corresponding to the target light effect into the light analysis model corresponding to each device to be analyzed, and determining the set color of each lamp on each device to be analyzed.
Through utilizing the light analysis model, can realize the same light effect of design show on different equipment, compare among the prior art when the same light effect of a plurality of equipment show of needs, need design one by one and debug each equipment, then compare the light effect of a plurality of equipment, make the light effect unified (not only design complex operation, and can not eliminate the visual error, thereby guarantee the effect unanimity of final show on a plurality of equipment), above-mentioned loaded down with trivial details operation can then be saved to this embodiment scheme, improve the light colour design efficiency on the different equipment, and ensure the unanimity of the light effect of show on the different equipment.
It should be noted that there is no strict execution sequence limitation between the operations S210-S230 and the operations S240-S260, the execution sequence shown in fig. 2 should not be understood as a specific limitation to the embodiment, and the operations S210-S230 and the operations S240-S260 can be executed separately, for example, only the operation of performing the target light effect analysis by using the light analysis model may be executed currently.
According to the technical scheme, the display result of at least one lamplight color on the interface of the computing equipment is adjusted by using the achromatic model, so that the difference between the display result of each adjusted lamplight color on the interface of the computing equipment and the display result of the corresponding lamplight color on the target equipment meets the set requirement, the difference between the display results of the lamplight colors on the interface of the computing equipment and the entity equipment is reduced, and the application effect of a lamplight design result in the actual equipment is improved; meanwhile, the color setting conditions on different devices capable of generating the target lamp effect are determined by utilizing the light analysis model, so that great working convenience is provided for designers and users, and the light design efficiency is improved.
EXAMPLE III
Fig. 3 is a flowchart of a light processing method according to a third embodiment of the present invention, and the present embodiment is further optimized based on the foregoing embodiments. As shown in fig. 3, the method may include:
s310, in response to a lighting color setting request of a user for the target equipment, at least one lighting color of the target equipment is obtained.
S320, obtaining an achromatic model corresponding to the target device, wherein the achromatic model is used for reducing display difference of light colors on the computing device interface and the target device.
S330, adjusting the display result of at least one light color on the interface of the computing equipment by using the achromatic model, so that the difference between the adjusted display result of each light color on the interface of the computing equipment and the display result of the corresponding light color on the target equipment meets the set requirement.
Optionally, the method further includes:
performing lighting processing (meaning generating a halo effect) on each lamp in each group of adjacent lamps on the target device in the computing device if a specific cover is arranged above each lamp on the target device, wherein the specific cover is used for generating soft light;
and performing color mixing processing on the colors of each group of adjacent lamps after the light emitting processing by using a preset color mixing algorithm, so that a continuously-changed color display (namely the color change is smoother and more aesthetic) is obtained on a computing equipment interface, wherein the preset color mixing algorithm comprises but is not limited to a linear light mixing algorithm, a real color mixing algorithm, a color superposition processing algorithm, a soft light processing algorithm and the like.
According to the difference between equipment, set up the specific covering that is used for producing the sheen above equipment-mounted's lamp, for example translucent dull polish ya keli board etc. can carry out the light effect simulation in-process on computing equipment, give off light and colour mixture to the adjacent light effect in position and handle for the light colour simulation result of demonstrateing on the computing equipment interface is close the actual show result of light colour on the equipment, thereby reduces the simulation design result of light colour and the difference of the actual show effect of equipment.
S340, responding to the online debugging request of the target device, and establishing communication connection with the target device.
The online debugging request of the target device can be triggered by the touch operation of the user on the target device entity. The specific communication connection between the target device and the computing device may be implemented by any available communication connection in the prior art, and the implementation is not particularly limited, and may be, for example, a WiFi (wireless fidelity) connection or a bluetooth connection.
And S350, acquiring the configuration file from the target equipment by utilizing the communication connection.
And S360, according to the configuration file, the lamps at different positions on the target equipment are displayed in a distinguishing mode, so that the display result of the light color of the target equipment is debugged on line according to the color setting of the lamp at the selected position by a user.
Illustratively, the computing device parses the configuration file of the target device, and displays the area of the target device where the lamps are arranged in a simulation manner, as shown in fig. 4, and a circular interface formed by 8 lamps on a certain device is displayed in a simulation manner in the left half part of fig. 4. Then, according to the selection operation of the user on different lamps displayed on the interface of the computing equipment, determining a color debugging object, further acquiring the color setting of the currently selected lamp by the user, and performing online debugging, namely, the user adjusts the color parameters of the lamps on the interface of the computing equipment, and the user can simultaneously see the change of the light display result on the equipment.
Optionally, if the online debugging request of the device other than the target device is also responded to currently, the method further includes: and determining the equipment currently participating in online debugging according to the selection operation of the user in the communication connection list. That is, the computing device may establish communication connections with multiple devices at the same time, and then determine the current online debugging device by responding to a selection operation of a user in a communication connection list on the client interface, where information such as device identifications and device names of different devices may be displayed in the communication connection list.
FIG. 4 shows, as an example, a schematic diagram of a client interface. As shown in fig. 4, the client interface may include a light simulation area a, which may be used to display a simulation effect animation of a light color in real time during a light design process, including a simulation effect animation of an online debugging device; the equipment selection control b is used for determining the equipment currently participating in light design or online debugging according to the selection operation of a user, a soft light control and a halo control are arranged below the equipment selection control b, and whether soft light or halo effect processing is carried out in the light design or online debugging process is determined based on the selection operation of the user; the scene selection area c is used for determining different application scenes of the light design and increasing the diversity of the light design; and the light design editing area d is used for editing different light design parameters, including color parameters, equipment information parameters and the like. A simulation demonstration control is arranged below the light design editing area d, and the client can display the generated light simulation animation in the light simulation area a according to the touch operation of the user on the simulation demonstration control; and after the communication connection between the computing equipment and the equipment is established, the configuration file of the target equipment can be acquired by responding to the touch operation of the user on the real machine test control, so as to further execute the online debugging operation.
It should be noted that there is no strict execution sequence limitation between the operations S310-S330 and the operations S340-S360, the execution sequence shown in fig. 3 should not be understood as a specific limitation to the embodiment, and the operations S310-S330 and the operations S340-S360 can be executed separately, for example, only the online debugging operation with respect to the target device may be performed currently.
The technical scheme of this embodiment not only can utilize achromatic model to adjust the show result on at least one kind of light colour computing device interface, make the show result of every kind of light colour on the computing device interface after the adjustment and the difference that corresponds the show result of light colour on target equipment between satisfy the settlement requirement, and can carry out online debugging to the show effect of light colour on the equipment, the difference between the show result of light colour on computing device interface and physical device has been reduced, the application effect of light design result in actual equipment has been improved, provide very big work convenience for the designer user, help improving light design efficiency.
Example four
Fig. 5 is a schematic structural diagram of a light processing apparatus according to a fourth embodiment of the present invention, where the present embodiment is applicable to a situation of performing simulation design on a light effect displayed on hardware devices, where the hardware devices include, but are not limited to, an intelligent household appliance, an intelligent sound box, a robot with a light effect, and the like. The light processing device provided by the embodiment can be realized in a software and/or hardware manner. Specifically, the device can be in the form of a stand-alone computing device, such as a light design control panel, wherein the control panel is provided with an operation interface; the apparatus may also be integrated in any computing device with computing capabilities, for example in the form of a plug-in or client installed in a notebook, a computer, an ipad.
As shown in fig. 5, the light processing apparatus provided in this embodiment includes a light color obtaining module 410, an achromatic model obtaining module 420, and a display result adjusting module 430, where:
a light color obtaining module 410, configured to obtain at least one light color of a target device in response to a light color setting request from a user for the target device;
the achromatic model obtaining module 420 is configured to obtain an achromatic model corresponding to the target device, where the achromatic model is configured to reduce a display difference of a light color between the computing device interface and the target device;
and a display result adjusting module 430, configured to adjust a display result of at least one light color on the computing device interface by using the achromatic model, so that a difference between a display result of each adjusted light color on the computing device interface and a display result of a corresponding light color on the target device meets a set requirement.
Optionally, the apparatus further includes an achromatic model training module, where the achromatic model training module includes:
the input determining unit is used for acquiring a color parameter of at least one lamplight color on the sample equipment under a target display result as the input of the training achromatic model;
the output determining unit is used for acquiring a color parameter corresponding to the computing equipment when a target display result of at least one lamplight color on the sample equipment is displayed on the interface of the computing equipment, and the color parameter is used as the output of the training achromatic model;
and the model training unit is used for training to obtain the achromatic model by utilizing the input and the output.
Optionally, the achromatic model training unit is further configured to:
the mounting location of each color of light on the sample device is taken as an input and the presentation location of each color of light on the computing device interface is taken as an output.
Optionally, the apparatus further comprises:
the device comprises a lighting effect and equipment information acquisition module, a processing module and a processing module, wherein the lighting effect and equipment information acquisition module is used for acquiring a target light effect and equipment information, the equipment information comprises the number of equipment to be analyzed, and the target light effect is formed by a preset number of lighting colors for each equipment to be analyzed;
the lamplight analysis model acquisition module is used for acquiring a lamplight analysis model corresponding to each device to be analyzed, wherein the lamplight analysis model is used for analyzing the color composition of a target lamp when the light effect is displayed on the device to be analyzed, and the input and the output of the lamplight analysis model and the achromatic model are opposite in the training process;
and the color setting determining module is used for inputting the color parameters corresponding to the target light effect into the light analysis model corresponding to each device to be analyzed and determining the set color of each lamp on each device to be analyzed.
Optionally, the apparatus further comprises:
the communication connection establishing module is used for responding to an online debugging request of the target equipment and establishing communication connection with the target equipment;
the configuration file acquisition module is used for acquiring a configuration file of the target equipment from the target equipment by utilizing communication connection;
and the online debugging module is used for displaying the lamps at different positions on the target equipment in a distinguishing manner according to the configuration file, so that online debugging is performed on the display result of the light color of the target equipment according to the color setting of the lamp at the selected position by the user.
Optionally, if the online debugging request of the device other than the target device is currently responded, the apparatus further includes:
and the equipment selection module is used for determining the equipment currently participating in online debugging according to the selection operation of the user in the communication connection list.
Optionally, the apparatus further comprises:
a lighting processing module, configured to perform lighting processing on each lamp in each group of adjacent lamps on the target device in the computing device if a specific cover is disposed above each lamp on the target device, where the specific cover is used to generate soft light;
and the color mixing processing module is used for performing color mixing processing on the colors of each group of adjacent lamps after the light emitting processing by using a preset color mixing algorithm so as to obtain continuously-changed color display on the interface of the computing equipment.
Optionally, the apparatus further comprises:
and the scene data acquisition module is used for responding to a scene setting request of a user, acquiring preset scene data and displaying the lighting display result of the target equipment in the scene on a computing equipment interface.
Optionally, the light color obtaining module 410 is further configured to:
responding to a light color setting request of a user to target equipment, and acquiring equipment identification of the target equipment;
accordingly, the achromatic model acquisition module 420 is specifically configured to: and acquiring the achromatic model corresponding to the target equipment by utilizing the corresponding relation between the equipment identification and the achromatic model.
Optionally, the device information further includes an identifier of the device to be analyzed;
correspondingly, the light analysis model acquisition module is specifically configured to: and acquiring the lamplight analysis model corresponding to each to-be-analyzed device according to the corresponding relation between the to-be-analyzed device identifier and the lamplight analysis model.
The light processing device provided by the embodiment of the invention can execute the light processing method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. Reference may be made to the description of any method embodiment of the invention not specifically described in this embodiment.
EXAMPLE five
Fig. 6 is a schematic structural diagram of a computing device according to a fifth embodiment of the present invention. FIG. 6 illustrates a block diagram of an exemplary computing device 812 suitable for use in implementing embodiments of the invention. The computing device 812 shown in FIG. 6 is only an example and should not place any limitation on the scope of use or functionality of embodiments of the present invention. The computing device 812 may be any device with light processing functionality, such as a light design dashboard, notebook, computer, or ipad, among others.
As shown in fig. 6, computing device 812 is representative of a general purpose computing device. Components of computing device 812 may include, but are not limited to: one or more processors 816, a memory device 828, and a bus 818 that couples various system components including the memory device 828 and the processors 816.
Bus 818 represents one or more of any of several types of bus structures, including a memory device bus or memory device controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computing device 812 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computing device 812 and includes both volatile and nonvolatile media, removable and non-removable media.
Storage 828 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) 830 and/or cache Memory 832. Computing device 812 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 834 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, often referred to as a "hard disk drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk such as a Compact disk Read-Only Memory (CD-ROM), Digital Video disk Read-Only Memory (DVD-ROM) or other optical media may be provided. In these cases, each drive may be connected to the bus 818 by one or more data media interfaces. Storage 828 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 840 having a set (at least one) of program modules 842, including but not limited to an operating system, one or more application programs, other program modules, and program data, may be stored in, for example, storage 828, each of which examples or some combination thereof may include an implementation of a network environment. Program modules 842 generally perform the functions and/or methodologies of the described embodiments of the invention.
Computing device 812 may also communicate with one or more external devices 814 (e.g., keyboard, pointing terminal, display 824, etc.), with one or more terminals that enable a user to interact with computing device 812, and/or with any terminals (e.g., network card, modem, etc.) that enable computing device 812 to communicate with one or more other computing terminals. Such communication may occur via input/output (I/O) interfaces 822. Moreover, computing device 812 may also communicate with one or more networks (e.g., a Local Area Network (LAN), Wide Area Network (WAN), and/or a public Network, such as the internet) via Network adapter 820. As shown in FIG. 6, the network adapter 820 communicates with the other modules of the computing device 812 over the bus 818. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with computing device 812, including but not limited to: microcode, device drivers, Redundant processors, external disk drive Arrays, RAID (Redundant Arrays of Independent Disks) systems, tape drives, and data backup storage systems, among others.
The processor 816 executes various functional applications and data processing by executing programs stored in the storage device 828, for example, implementing a light processing method provided by any embodiment of the present invention, and the method may include:
responding to a lighting color setting request of a user for target equipment, and acquiring at least one lighting color of the target equipment;
acquiring an achromatic model corresponding to the target equipment, wherein the achromatic model is used for reducing display difference of light colors on a computing equipment interface and the target equipment;
and adjusting the display result of the at least one light color on the interface of the computing equipment by using the achromatic model, so that the difference between the display result of each adjusted light color on the interface of the computing equipment and the display result of the corresponding light color on the target equipment meets the set requirement.
EXAMPLE six
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a light processing method according to any embodiment of the present invention, where the method may include:
responding to a lighting color setting request of a user for target equipment, and acquiring at least one lighting color of the target equipment;
acquiring an achromatic model corresponding to the target equipment, wherein the achromatic model is used for reducing display difference of light colors on a computing equipment interface and the target equipment;
and adjusting the display result of the at least one light color on the interface of the computing equipment by using the achromatic model, so that the difference between the display result of each adjusted light color on the interface of the computing equipment and the display result of the corresponding light color on the target equipment meets the set requirement.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or terminal. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (13)

1. A light processing method, comprising:
responding to a lighting color setting request of a user for target equipment, and acquiring at least one lighting color of the target equipment;
acquiring an achromatic model corresponding to the target equipment, wherein the achromatic model is used for reducing display difference of light colors on a computing equipment interface and the target equipment;
and adjusting the display result of the at least one light color on the interface of the computing equipment by using the achromatic model, so that the difference between the display result of each adjusted light color on the interface of the computing equipment and the display result of the corresponding light color on the target equipment meets the set requirement.
2. The method of claim 1, wherein the training process for the achromatic model comprises:
obtaining a color parameter of at least one lamplight color on sample equipment under a target display result, and using the color parameter as an input for training the achromatic model;
when the target display result of at least one lamplight color on the sample equipment is displayed on the interface of the computing equipment, the color parameter corresponding to the computing equipment is obtained and used as the output of the achromatic model;
and training to obtain the achromatic model by utilizing the input and the output.
3. The method of claim 2, wherein the training process of the achromatic model further comprises:
the mounting location of each color of light on the sample device is taken as the input and the presentation location of each color of light on the computing device interface is taken as the output.
4. The method of claim 1, further comprising:
the method comprises the steps of obtaining a target lamp light effect and equipment information, wherein the equipment information comprises the number of equipment to be analyzed, and the target lamp light effect is formed by a preset number of lamp light colors for each equipment to be analyzed;
obtaining a light analysis model corresponding to each device to be analyzed, wherein the light analysis model is used for analyzing the color composition of the target light effect displayed on the device to be analyzed, and the input and the output of the light analysis model and the achromatic model are opposite in the training process;
and inputting the color parameters corresponding to the target light effect into the light analysis model corresponding to each device to be analyzed, and determining the set color of each lamp on each device to be analyzed.
5. The method of claim 1, further comprising:
responding to an online debugging request of the target equipment, and establishing communication connection with the target equipment;
acquiring a configuration file of the target equipment from the target equipment by utilizing the communication connection;
and according to the configuration file, the lamps at different positions on the target equipment are displayed in a distinguishing manner, so that the display result of the light color of the target equipment is debugged on line according to the color setting of the lamp at the selected position by a user.
6. The method of claim 5, wherein if the online debugging request is currently also responded to by devices other than the target device, the method further comprises:
and determining the equipment currently participating in the online debugging according to the selection operation of the user in the communication connection list.
7. The method of claim 1, further comprising:
performing lighting processing on each lamp in each group of adjacent lamps on the target device in the computing device if a specific cover is arranged above each lamp on the target device, wherein the specific cover is used for generating soft light;
and carrying out color mixing processing on the colors of each group of adjacent lamps after the light emitting processing by using a preset color mixing algorithm, so that continuously-changed color display is obtained on the interface of the computing equipment.
8. The method of claim 1, further comprising:
and responding to a scene setting request of a user, and acquiring preset scene data so as to display the lighting display result of the target equipment in the scene on the computing equipment interface.
9. The method of claim 1, further comprising:
responding to a light color setting request of a user to target equipment, and acquiring an equipment identifier of the target equipment;
correspondingly, obtaining the achromatic model corresponding to the target device includes: and acquiring the achromatic model corresponding to the target equipment by utilizing the corresponding relation between the equipment identification and the achromatic model.
10. The method of claim 4, wherein the device information further comprises a device identification to be analyzed;
correspondingly, obtaining the light analysis model corresponding to each device to be analyzed includes: and acquiring the lamplight analysis model corresponding to each to-be-analyzed device according to the corresponding relation between the to-be-analyzed device identifier and the lamplight analysis model.
11. A light treatment device, comprising:
the device comprises a lighting color acquisition module, a display module and a control module, wherein the lighting color acquisition module is used for responding to a lighting color setting request of a user for target equipment and acquiring at least one lighting color of the target equipment;
the achromatic model acquisition module is used for acquiring an achromatic model corresponding to the target equipment, wherein the achromatic model is used for reducing the display difference of the light color on a computing equipment interface and the target equipment;
and the display result adjusting module is used for adjusting the display result of the at least one lamplight color on the computing equipment interface by using the achromatic model, so that the difference between the display result of each adjusted lamplight color on the computing equipment interface and the display result of the corresponding lamplight color on the target equipment meets the set requirement.
12. A computing device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a light treatment method as claimed in any one of claims 1-10.
13. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a light processing method according to any one of claims 1-10.
CN201910579066.3A 2019-06-28 2019-06-28 Light processing method, device, computing equipment and storage medium Active CN112148241B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910579066.3A CN112148241B (en) 2019-06-28 2019-06-28 Light processing method, device, computing equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910579066.3A CN112148241B (en) 2019-06-28 2019-06-28 Light processing method, device, computing equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112148241A true CN112148241A (en) 2020-12-29
CN112148241B CN112148241B (en) 2023-09-01

Family

ID=73891230

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910579066.3A Active CN112148241B (en) 2019-06-28 2019-06-28 Light processing method, device, computing equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112148241B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113507761A (en) * 2021-09-09 2021-10-15 深圳易来智能有限公司 Method and system for adjusting light effect, storage medium and electronic device
CN115316900A (en) * 2022-07-15 2022-11-11 深圳市正浩创新科技股份有限公司 Lamp effect control method, self-moving equipment and storage medium
WO2024037148A1 (en) * 2022-08-17 2024-02-22 中国第一汽车股份有限公司 Lamp, lamp effect implementation method and device, and apparatus and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160063951A1 (en) * 2014-08-26 2016-03-03 Qualcomm Incorporated Environmentally adaptive display adjustment
US9332612B1 (en) * 2014-02-25 2016-05-03 Lumenetix, Inc. System and method for rapidly generating color models for LED-based lamps
CN106455224A (en) * 2016-10-28 2017-02-22 浙江大学城市学院 Adaptive auxiliary light source light emission generation device and auxiliary light source regulation method
US9609230B1 (en) * 2015-12-30 2017-03-28 Google Inc. Using a display as a light source
CN109101169A (en) * 2018-08-06 2018-12-28 百度在线网络技术(北京)有限公司 Control method, terminal, electric appliance, electronic equipment and the storage medium of electric appliance
CN109313793A (en) * 2016-01-18 2019-02-05 维弗施福特有限责任公司 Assess and reduce the near-sighted source property effect of electronic console
CN109783178A (en) * 2019-01-24 2019-05-21 北京字节跳动网络技术有限公司 A kind of color adjustment method of interface assembly, device, equipment and medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9332612B1 (en) * 2014-02-25 2016-05-03 Lumenetix, Inc. System and method for rapidly generating color models for LED-based lamps
US20160063951A1 (en) * 2014-08-26 2016-03-03 Qualcomm Incorporated Environmentally adaptive display adjustment
US9609230B1 (en) * 2015-12-30 2017-03-28 Google Inc. Using a display as a light source
CN109313793A (en) * 2016-01-18 2019-02-05 维弗施福特有限责任公司 Assess and reduce the near-sighted source property effect of electronic console
CN106455224A (en) * 2016-10-28 2017-02-22 浙江大学城市学院 Adaptive auxiliary light source light emission generation device and auxiliary light source regulation method
CN109101169A (en) * 2018-08-06 2018-12-28 百度在线网络技术(北京)有限公司 Control method, terminal, electric appliance, electronic equipment and the storage medium of electric appliance
CN109783178A (en) * 2019-01-24 2019-05-21 北京字节跳动网络技术有限公司 A kind of color adjustment method of interface assembly, device, equipment and medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王晨;戴曙光;穆平安;: "基于计算机视觉的车灯光导色差检测", 电子测量技术, no. 08 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113507761A (en) * 2021-09-09 2021-10-15 深圳易来智能有限公司 Method and system for adjusting light effect, storage medium and electronic device
CN115316900A (en) * 2022-07-15 2022-11-11 深圳市正浩创新科技股份有限公司 Lamp effect control method, self-moving equipment and storage medium
WO2024037148A1 (en) * 2022-08-17 2024-02-22 中国第一汽车股份有限公司 Lamp, lamp effect implementation method and device, and apparatus and medium

Also Published As

Publication number Publication date
CN112148241B (en) 2023-09-01

Similar Documents

Publication Publication Date Title
US11561887B2 (en) Test script debugging using an automated testing framework and UI rendering tree
CN112148241B (en) Light processing method, device, computing equipment and storage medium
JP2018536952A (en) Method and apparatus for controlling a smart device and computer storage medium
CN107451272B (en) Information display method, medium, device and computing equipment
US9582620B1 (en) Method and system for automated refined exclusion of entities from a metric driven verification analysis score
US11113439B2 (en) Trigger-action-circuits: leveraging generative design to enable novices to design and build circuitry
CN109739600A (en) Data processing method, medium, device and calculating equipment
CN110197004B (en) Circuit simulation method and device based on mobile terminal, computer medium and equipment
CN109471805A (en) Resource testing method and device, storage medium, electronic equipment
CN108536964A (en) Storage medium, satellite constellation covering performance simulating analysis and its system
CN116628791B (en) Lamp installation guiding method, device, equipment and medium
CN102004952A (en) Measuring resource control system and measuring resource control method
CN110795000B (en) Automatic control method and device based on interface segmentation and terminal
CN106815150B (en) Server-side interface test system and method
WO2006100712A1 (en) Design support device, design support method, and design support program
CN102622233A (en) System and method for automatically generating user interface applicable to certain interactive terminal equipment
CN113919158A (en) Simulation method and device for flight control panel and storage medium
CN111599241B (en) Virtual simulation system for teaching of Internet of things
CN102043628A (en) Method and system for developing on screen display (OSD) application software and multimedia terminal
US20130346055A1 (en) Modeling and cooperative simulation of systems with interdependent discrete and continuous elements
CN112233208B (en) Robot state processing method, apparatus, computing device and storage medium
Osorio-Gómez et al. An augmented reality tool to validate the assembly sequence of a discrete product
CN111338753B (en) System for realizing hardware simulation of electronic control unit based on computer
CN110465093B (en) Method and device for analyzing inclusion redundant resources based on Unity
EP3528126B1 (en) Representing a test execution of a software application using extended reality

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant