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

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

Info

Publication number
CN112148241B
CN112148241B CN201910579066.3A CN201910579066A CN112148241B CN 112148241 B CN112148241 B CN 112148241B CN 201910579066 A CN201910579066 A CN 201910579066A CN 112148241 B CN112148241 B CN 112148241B
Authority
CN
China
Prior art keywords
color
equipment
lamplight
target
light
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.)
Active
Application number
CN201910579066.3A
Other languages
Chinese (zh)
Other versions
CN112148241A (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

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 device, a computing device and a storage medium, wherein the method comprises the following steps: responding to a lamplight color setting request of a user on target equipment, and acquiring at least one lamplight color of the target equipment; obtaining an achromatic model corresponding to the target equipment, wherein the achromatic model is used for reducing the display difference of the lamplight color on the interface of the computing equipment 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 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. According to the embodiment of the invention, in the light design process, the difference between the display results of the light colors on the interface of the computing equipment and the entity equipment can be reduced, and the display effect of the light design is ensured to be close to the entity effect of the equipment.

Description

Light processing method, 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, computing equipment and a storage medium.
Background
In the development process of intelligent hardware, different system states are required to be matched for carrying out lamplight design work. However, there is no light design tool for intelligent hardware in the market, and the light design can only adopt the conventional cooperation design flow of 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 engineer is handed the simulated animation to convert the simulated animation into a code; and then the engineer compiles the codes and packages the codes into a software package, issues the software package to update the software package to the test equipment, and then the designer checks the light effect on the test equipment and proposes a modification feedback opinion so as to complete the light design.
In the scheme, the lamplight design efficiency is low, and the lamplight effect after the design is finished is difficult to control in practical application.
Disclosure of Invention
The embodiment of the invention provides a light processing method, a light processing device, a computing device and a storage medium, which are used for improving the light design efficiency, reducing the difference between the display results of the light colors on a computing device interface and entity equipment in the light design process and ensuring that the light design results have better display effects in practical application.
In a first aspect, an embodiment of the present invention provides a light treatment method, including:
responding to a light color setting request of a user on target equipment, and acquiring at least one light color of the target equipment;
obtaining an achromatic model corresponding to the target equipment, wherein the achromatic model is used for reducing the display difference of the lamplight color on a computing equipment interface and the target equipment;
and adjusting the display result of the 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.
In a second aspect, an embodiment of the present invention further provides a light processing apparatus, including:
the lamplight color acquisition module is used for responding to a lamplight color setting request of a user on target equipment and acquiring at least one lamplight color of the target equipment;
an achromatic model obtaining module, configured to obtain an achromatic model corresponding to the target device, where the achromatic model is used to reduce a display difference of a light color on a computing device interface and the target device;
And the display result adjusting module is used for adjusting the display result of the at least one lamplight color on the interface of the computing equipment by utilizing 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.
In a third aspect, embodiments of the present invention also provide a computing device, including:
one or more processors;
storage means for storing one or more programs,
the 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 described in any of the embodiments of the present invention.
In a fourth aspect, embodiments of the present invention further provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a light treatment method according to any of the embodiments of the present invention.
According to the embodiment of the invention, the display result of at least one lamplight 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 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 complicated operation of repeatedly modifying the design result after the design result is sent to the test equipment for testing in the lamplight design process is omitted, the lamplight design efficiency is improved, the difference between the display result of the lamplight color on the interface of the computing equipment and the display result of the entity equipment is reduced, the display effect of the lamplight design is ensured to be close to the entity effect of the equipment, and the lamplight design result is ensured to have a better display effect in practical application.
Drawings
FIG. 1 is a flow chart of a light treatment method according to a first embodiment of the present invention;
fig. 2 is a flowchart of a light treatment method according to a second embodiment of the present invention;
FIG. 3 is a flow chart of a light treatment 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 treatment apparatus 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 invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
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 case of performing a simulation design on a light effect displayed on a hardware device, and the hardware device includes, but is not limited to, an intelligent home appliance, an intelligent sound box, a robot with a light effect, and the like. The method of the embodiment can be executed by a light processing device, and the device can be realized by software and/or hardware. The apparatus may exist in the form of a stand-alone computing device, such as a light design dashboard having an operator interface therein; the apparatus may also be integrated on any computing device with computing capabilities, for example in the form of a plug-in or a client installed in a notebook, computer, ipad. The device can be used as a light design visualization tool. For convenience of description, the technical solution of the embodiments of the present invention will be described in detail mainly by taking the implementation of the device in the form of a client as an example.
As shown in fig. 1, the light treatment method provided in this embodiment may include:
s110, responding to a light color setting request of a user for the target equipment, and acquiring at least one light color of the target equipment.
The method comprises the steps that an exemplary computing device is provided with a client with a light processing function, after a user starts the client, a target device selection request is triggered through a device selection control on a client interface (namely a man-machine interaction interface), the client responds to the device selection request of the user, and a configuration file of the target device is loaded from a device configuration file library, wherein the configuration file can comprise information such as the number of lamps installed on the target device and the installation positions of the lamps; the user may also import the configuration file of the target device through a data import control on the client interface. After the computing device obtains the configuration file of the target device, the area where the lamp is installed on the target device can be simulated and displayed on the client interface or the computing device interface, and the target device can be simulated and displayed integrally. Then, the user can determine the lamps needing to be set in color on the client interface, and the set color of each lamp is input through a color input box of the client interface to trigger a lamplight color setting request; the set color of each lamp can be selected in the color board by a color picker on the client interface, and a lamplight color setting request is triggered.
S120, acquiring an achromatic model corresponding to the target equipment, wherein the achromatic model is used for reducing the display difference of the lamplight color on the interface of the computing equipment and the target equipment.
Because the screen materials of different devices, the materials of the lamps, the materials of the covers covered outside the lamps and the like may all have differences, the display effect of different device screens on the same light color is different, and different devices referred to herein comprise devices of different design types and devices of different series of the same design type. Therefore, according to the device classification, the present embodiment stores the corresponding achromatic model for each device in advance, for example, stores the achromatic model of each device in the profile library according to the correspondence between the device identification and the achromatic model, and the device identification of each device has uniqueness. After the target equipment for the lamplight design is determined, a corresponding achromatic model can be obtained according to the equipment identification. That is, the present embodiment may further include: responding to a lamplight color setting request of a user on 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.
The setting requirement can be set according to analysis and comparison results between the two display results of the same lamplight color. Meeting the set requirement means that the simulated display result of the same light color on the interface of the computing device and the actual display result on the target device have no visual difference basically, namely the simulated display light effect of the interface of the computing device is nearly consistent with the actual light effect displayed on the target device, thereby ensuring that the simulated light design result on the computing device has a better display effect in the actual application.
Based on the above scheme, optionally, the training process of the achromatic model includes:
acquiring color parameters of at least one lamplight color on sample equipment under a target display result, and taking the color parameters as input for training an achromatic model;
when a target display result of at least one lamplight color on the sample equipment is displayed on the computing equipment interface is obtained, the color parameter corresponding to the computing equipment is used as output of a training achromatic model;
And training to obtain an achromatic model by using the input and the output.
In the model training process, aiming at a target display result (which can be any light effect which can be realized on sample equipment), display differences on interfaces of the sample equipment and the computing equipment are required to meet setting requirements, namely consistent visual effects are required to be maintained for users. The color parameter of the sample device corresponds to the color parameter of the computing device, which means that the color value of at least one light color on the sample device is set, and the computing device simulates the color value of the at least one light color of the sample device in order to show the same light effect. For example, a red light is installed on the sample device, when 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 (R1, G1, B1) are set, 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 computing device interface displays a visual effect consistent with that on the sample 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 displayed on the computing device interface, the color parameters are (R1, G1, B1) and the color parameters are (R2, G2, B2) can be used as a set of model training data. The present embodiment is not particularly limited as to the amount of data that needs to be used for model training, and may be set according to actual conditions.
Further, the training process of the achromatic model further comprises: the mounting location of each color light on the sample device is taken as input and the presentation location of each color light on the computing device interface is taken as output.
When a plurality of lamps are arranged on the sample equipment, the installation positions of the lamps on the sample equipment are taken into consideration as model training parameters, so that the corresponding relation between the lamplight colors and the installation positions can be maintained, the confusion of the lamplight color positions is avoided, and the simulation accuracy of lamplight color display results is further ensured.
In addition, the method of the embodiment can further comprise the following steps: the exported and adjusted lamplight colors display result data or display result animation on a computing device interface, 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, acquiring preset scene data so as to display a lamplight display result of the target device in the scene on a computing device interface. By way of example, a user may trigger a scene setting request through a scene selection control (according to the number of scenes, the scene selection control may be displayed in the form of a control list) on the client interface, so that the computing device loads scene data corresponding to the scene selected by the user, and the preset scene data may be stored in a local or server; or the user triggers the scene setting request through the 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 achromatic model corresponding to the target equipment is utilized to automatically adjust the display result of at least one lamplight color of the target equipment on the interface of the computing equipment, 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, a designer user does not need to communicate and interact frequently and adjust simulation results repeatedly as in the traditional lamplight design flow, design workload is reduced, lamplight design efficiency is improved, the effect of reducing the difference between the display result of the lamplight colors on the interface of the computing equipment and the display result of the entity equipment in the lamplight design process is achieved, and the lamplight design result is ensured to have a better display effect in practical application.
Example two
Fig. 2 is a flowchart of a light treatment method according to a second embodiment of the present invention, and the present embodiment is further optimized based on the foregoing embodiment. As shown in fig. 2, the method may include:
s210, responding to a light color setting request of a user on the target equipment, and acquiring at least one light color of the target equipment.
S220, acquiring an achromatic model corresponding to the target equipment, wherein the achromatic model is used for reducing the display difference of the lamplight color on the interface of the computing equipment and the target equipment.
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 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.
S240, acquiring target light effects and equipment information, wherein the equipment information comprises the number of equipment to be analyzed, and the target light effects are formed by a preset number of light colors for each equipment to be analyzed.
The target light effect means a light effect that a user wants to simultaneously display on at least two devices to be analyzed, and the devices to be analyzed means a device on which the color setting of the lamp mounted is to be determined. For example, the computing device may obtain the target light effect in response to a user's target light effect data (the data may be video data or picture data) importing operation on the client interface, and then determine, using a color recognition and analysis technique, a color parameter required to be set by the computing device interface to display the target light effect; or the computing equipment simulates expected light effect according to the color parameters input by the user, and the expected light effect is used as a target light effect; meanwhile, the computing device can acquire the number of devices to be analyzed by responding to device information input operation of a user on a client interface.
S250, 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 the target lamplight effect displayed on the device to be analyzed, and the input and the output of the lamplight analysis model and the achromatic model in the training process are opposite.
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 corresponding relationship between the device and the light analysis model, which is established in advance. For example, the device information acquired by the computing device further includes a device identifier to be analyzed; and obtaining the lamplight analysis model corresponding to each device to be analyzed according to the corresponding relation between the device identification to be analyzed and the lamplight analysis model.
By way of example, the training process of the light analysis model may include:
obtaining color parameters of at least one lamplight color on sample equipment under a target display result, and outputting the color parameters as a training lamplight analysis model;
when a target display result of at least one lamplight color on the sample equipment is displayed on the computing equipment interface is obtained, the color parameter corresponding to the computing equipment is used as input of a training lamplight analysis model;
And training a lamplight analysis model by using the input and the output.
Further, the training process of the lamplight analysis model further comprises the following steps: the installation position of each color lamp on the sample equipment is used as output, the display position of each color lamp on the interface of the computing equipment is used as input, and the lamps participate in the training of the lamplight analysis model, so that the color setting of the lamps at specific positions can be accurate when the color settings of the different lamps on different equipment are determined based on the acquired target lamplight effect.
Specifically, the application scenario of the lamplight analysis model is: the final design effect of the light design has been determined, and it is necessary to analyze and determine how to set the light colors on different devices to generate the light effect, however, the application scenario of the achromatic model is: according to the color setting of each lamp on the device by a user, the display effect of the lamplight color on the device is simulated and previewed on the computing device. The device to be analyzed can be any one of sample devices participating in the training of the lamplight analysis model.
S260, inputting color parameters corresponding to the target light effect into a 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 light analysis model, can realize that the design demonstrates the same light effect on different equipment, compare among the prior art when needing a plurality of equipment to demonstrate the same light effect, need design and debug each equipment one by one, then compare the light effect of a plurality of equipment again for light effect is unified (not only design complex operation, can not eliminate visual error moreover, thereby guarantee the effect of final show on a plurality of equipment unanimous), this embodiment scheme then can save above-mentioned loaded down with trivial details operation, improve the light color design efficiency on different equipment, ensure the unanimity of the light effect of show on different equipment moreover.
It should be noted that, the above-mentioned operations S210-S230 and operations S240-S260 are not strictly limited to the execution sequence, and the execution sequence shown in fig. 2 should not be construed as a specific limitation of the present embodiment, and both operations S210-S230 and operations S240-S260 may be separately executed, for example, only the operation of performing the target light effect analysis by using the light analysis model may be currently executed.
According to the technical scheme, the achromatic model is utilized to adjust the display result of at least one lamplight color on the interface of the computing equipment, 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 the lamplight design result in the actual equipment is improved; meanwhile, by utilizing the lamplight analysis model, the color setting conditions on different devices capable of generating the target lamplight effect are determined, so that great working convenience is provided for designer users, and the lamplight design efficiency is improved.
Example III
Fig. 3 is a flowchart of a light treatment method according to a third embodiment of the present invention, where the light treatment method is further optimized based on the foregoing embodiment. As shown in fig. 3, the method may include:
s310, responding to a light color setting request of a user on the target equipment, and acquiring at least one light color of the target equipment.
S320, acquiring an achromatic model corresponding to the target equipment, wherein the achromatic model is used for reducing the display difference of the lamplight color on the interface of the computing equipment and the target equipment.
S330, 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.
Optionally, the method further comprises:
if a particular covering is placed over each lamp on the target device, then each lamp in each set of adjacent lamps on the target device is illuminated (meaning creating a halo effect) in the computing device, wherein the particular covering is used to create a soft light;
and carrying out color mixing processing on the colors of each group of adjacent lamps after the light emitting processing by utilizing a preset color mixing algorithm, so that continuously-changing color display (namely, smoother color change and more aesthetic feeling) 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 solid color mixing algorithm, a color superposition processing algorithm, a soft light processing algorithm and the like.
According to the difference between the devices, when a specific cover for generating soft light, such as a semitransparent frosted acrylic plate, is arranged above the lamp installed on the device, in the process of performing light effect simulation on the computing device, the light effect adjacent to the position can be subjected to light and color mixing processing, so that the light color simulation result displayed on the interface of the computing device is close to the actual display result of the light color on the device, and the difference between the simulation design result of the light color and the actual display effect of the device is reduced.
S340, responding to the online debugging request of the target device, and establishing communication connection with the target device.
The online commissioning request of the target device may be triggered by a 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 manner in the prior art, and the implementation is not limited in particular, and may be, for example, a WiFi (wireless fidelity) connection or a bluetooth connection.
S350, acquiring the configuration file from the target equipment by using the communication connection.
And S360, distinguishing and displaying the lamps at different positions on the target equipment according to the configuration file, so that the display result of the lamplight color of the target equipment is debugged online according to the color setting of the lamps at the selected positions by a user.
Illustratively, the computing device parses the configuration file of the target device, and performs a simulation display on the area where the lamps are disposed on the target device, as shown in fig. 4, where the simulation display on the left half of fig. 4 shows a circular interface formed by 8 lamps on a certain device. And 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 obtaining the color setting of the user on the currently selected lamp, and performing online debugging, namely, the user performs color parameter adjustment on the lamp on the interface of the computing equipment, so that the user can see the change of the lamplight display result on the equipment at the same time.
Optionally, if the online debug request of the other device except the target device is also responded currently, the method further comprises: 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 simultaneously, and then determine the current online commissioning device by responding to a user selection operation in a communication connection list on the client interface, where information such as device identifiers and device names of different devices may be displayed.
Fig. 4 shows, by way of 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 light colors in real time during a light design process, including a simulation effect animation of an online debugging device; the device selection control b is used for determining the current device participating in the lamplight design or online debugging according to the selection operation of a user, wherein a soft light control and a halation control are arranged below the device selection control b, and whether soft light or halation effect processing is performed in the lamplight 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 lamplight design and increasing the diversity of the lamplight design; and the lamplight design editing area d is used for editing different lamplight design parameters including color parameters, equipment information parameters and the like. A simulation demonstration control is arranged below the lamplight design editing area d, and the client can display the generated lamplight simulation animation in a lamplight simulation area a according to the touch operation of a user on the simulation demonstration control; and a real machine test control is further arranged below the lamplight design editing area d, and after the communication connection between the computing equipment and the equipment is established, the configuration file of the target equipment can be obtained 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, the above-mentioned operations S310-S330 and operations S340-S360 are not strictly limited to the execution sequence, and the execution sequence shown in fig. 3 should not be construed as a specific limitation of the present embodiment, and both operations S310-S330 and operations S340-S360 may be separately executed, for example, only online debugging operations with respect to the target device may be performed currently.
According to the technical scheme, the achromatic model can be utilized to adjust the display result on the interface of the computing equipment for at least one lamplight color, 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 display effect of the lamplight color on the equipment can be debugged online, the difference between the display result of the lamplight color on the interface of the computing equipment and the display result of the entity equipment is reduced, the application effect of the lamplight design result in the actual equipment is improved, great working convenience is provided for a designer user, and the lamplight design efficiency is improved.
Example IV
Fig. 5 is a schematic structural diagram of a light processing device according to a fourth embodiment of the present invention, where the present embodiment is applicable to a case of performing a simulation design on a light effect displayed on a hardware device, and the hardware device includes, but is not limited to, an intelligent home appliance, an intelligent sound box, a robot with a light effect, and the like. The light processing device provided in this embodiment may be implemented in software and/or hardware. In particular, the apparatus may be in the form of a stand-alone computing device, such as a light design dashboard having an operator interface therein; the apparatus may also be integrated on any computing device with computing capabilities, for example in the form of a plug-in or a client installed in a notebook, computer, ipad.
As shown in fig. 5, the light processing apparatus provided in this embodiment includes a light color acquisition module 410, an achromatic model acquisition module 420, and a display result adjustment module 430, where:
a lamplight color acquisition module 410, configured to acquire at least one lamplight color of the target device in response to a lamplight color setting request of the user for the target device;
an achromatic model obtaining module 420, configured to obtain an achromatic model corresponding to the target device, where the achromatic model is used to reduce a display difference of the light color on the computing device interface and the target device;
the display result adjustment module 430 is 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 the display result of each adjusted light color on the computing device interface and the display result of the corresponding light color on the target device meets a set requirement.
Optionally, the apparatus further comprises an achromatic model training module, the achromatic model training module comprising:
the input determining unit is used for acquiring color parameters of at least one lamplight color on the sample equipment under the target display result and taking the color parameters as input for training the achromatic model;
The output determining unit is used for obtaining color parameters corresponding to the computing equipment when the target display result of at least one lamplight color on the sample equipment is displayed on the computing equipment interface, and the color parameters are used as output of the training achromatic model;
and the model training unit is used for training to obtain an 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 light on the sample device is taken as input and the presentation location of each color light on the computing device interface is taken as output.
Optionally, the apparatus further includes:
the device comprises a light effect and device information acquisition module, a display module and a display module, wherein the light effect and device information acquisition module is used for acquiring target light effects and device information, the device information comprises the number of devices to be analyzed, and the target light effects are formed by the preset number of light colors for each device to be analyzed;
the lamplight analysis model acquisition module is used for acquiring lamplight analysis models corresponding to each device to be analyzed, wherein the lamplight analysis models are used for analyzing color compositions of the target lamplight effect displayed on the device to be analyzed, and the input and the output of the lamplight analysis models are opposite to each other in the training process;
The color setting determining module is used for inputting color parameters corresponding to the target light effect into the light analysis model corresponding to each device to be analyzed, and determining the setting color of each lamp on each device to be analyzed.
Optionally, the apparatus further comprises:
the communication connection establishment module is used for responding to the online debugging request of the target equipment and establishing communication connection with the target equipment;
the configuration file acquisition module is used for acquiring the configuration file of the target equipment from the target equipment by utilizing communication connection;
and the online debugging module is used for distinguishing and displaying the lamps at different positions on the target equipment according to the configuration file, so that online debugging is carried out on the display result of the lamplight color of the target equipment according to the color setting of the lamps at the selected positions by a user.
Optionally, if the device is currently also responsive to an online debug request of a device other than the target device, the apparatus further comprises:
and the device selection module is used for determining the current devices 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 for lighting each of the set of adjacent lights on the target device in the computing device if a particular covering is disposed over each of the lights on the target device, wherein the particular covering is used to generate a soft light;
And the color mixing processing module is used for carrying out color mixing processing on the colors of each group of adjacent lamps after the light emitting processing by utilizing a preset color mixing algorithm, so that continuously-changed color display is obtained on the interface of the computing equipment.
Optionally, the apparatus further comprises:
the scene data acquisition module is used for responding to a scene setting request of a user and acquiring preset scene data so as to display a lamplight display result of the target device in the scene on the interface of the computing device.
Optionally, the light color acquisition module 410 is further configured to:
responding to a lamplight color setting request of a user on target equipment, and acquiring equipment identification of the target equipment;
accordingly, 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 a device identifier to be analyzed;
correspondingly, the lamplight analysis model acquisition module is specifically used for: and obtaining the lamplight analysis model corresponding to each device to be analyzed according to the corresponding relation between the device identification to be analyzed 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 the corresponding functional modules and beneficial effects of the execution method. Reference is made to the description of any method embodiment of the invention for details not 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 merely an example and should not be taken as limiting the functionality and scope of use of embodiments of the present invention. Computing device 812 may be any device having light processing capabilities such as a light design dashboard, notebook, computer, ipad, or the like.
As shown in fig. 6, computing device 812 is in the form of a general purpose computing device. Components of computing device 812 may include, but are not limited to: one or more processors 816, a storage 828, and a bus 818 that connects the various system components, including the storage 828 and the processor 816.
Bus 818 represents one or more of several types of bus structures, including a memory device bus or memory device controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include industry standard architecture (Industry Subversive Alliance, ISA) bus, micro channel architecture (Micro Channel Architecture, MAC) bus, enhanced ISA bus, video electronics standards association (Video Electronics Standards Association, VESA) local bus, and peripheral component interconnect (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 (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, commonly 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 Read Only Memory (CD-ROM), digital versatile disk (Digital Video Disc-Read Only Memory, DVD-ROM), or other optical media, may be provided. In such cases, each drive may be coupled to bus 818 through one or more data medium interfaces. Storage 828 may include at least one program product having a set (e.g., at least one) of program modules 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 may be stored, for example, in storage 828, such program modules 842 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 842 generally perform the functions and/or methods in the embodiments described herein.
Computing device 812 may also communicate with one or more external devices 814 (e.g., keyboard, pointing terminal, display 824, etc.), one or more terminals that enable a user to interact with computing device 812, and/or 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 through an input/output (I/O) interface 822. Moreover, computing device 812 may also communicate with one or more networks such as a local area network (Local Area Network, LAN), a wide area network (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 other modules of the computing device 812 over the bus 818. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with computing device 812, including, but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, disk array (Redundant Arrays of Independent Disks, RAID) systems, tape drives, data backup storage systems, and the like.
Processor 816 executes various functional applications and data processing by running programs stored in storage 828, such as implementing the light processing method provided by any embodiment of the present invention, which may include:
responding to a light color setting request of a user on target equipment, and acquiring at least one light color of the target equipment;
obtaining an achromatic model corresponding to the target equipment, wherein the achromatic model is used for reducing the display difference of the lamplight color on a computing equipment interface and the target equipment;
and adjusting the display result of the 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.
Example six
The sixth embodiment of the present invention further provides a computer readable storage medium having a computer program stored thereon, the program when executed by a processor implementing the light treatment method as provided in any embodiment of the present invention, the method may include:
Responding to a light color setting request of a user on target equipment, and acquiring at least one light color of the target equipment;
obtaining an achromatic model corresponding to the target equipment, wherein the achromatic model is used for reducing the display difference of the lamplight color on a computing equipment interface and the target equipment;
and adjusting the display result of the 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.
The computer storage media of embodiments of the invention may take the form of 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. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any 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 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.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. 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 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 ++ 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 kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. 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, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (11)

1. A method of treating light, comprising:
responding to a light color setting request of a user on target equipment, and acquiring at least one light color of the target equipment;
obtaining an achromatic model corresponding to the target equipment, wherein the achromatic model is used for reducing the display difference of the lamplight color on a computing equipment interface and the target equipment;
adjusting the display result of the at least one lamplight color on the interface of the computing equipment by utilizing 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 training process of the achromatic model comprises:
acquiring color parameters of at least one lamplight color on sample equipment under a target display result and the installation position of lamps of each color on the sample equipment as 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 computing equipment interface is obtained, color parameters corresponding to the computing equipment and the display position of the lamps with each color on the computing equipment interface are used as output for training the achromatic model;
training to obtain the achromatic model by using the input and the output.
2. The method according to claim 1, wherein the method further comprises:
obtaining target light effects and equipment information, wherein the equipment information comprises the number of equipment to be analyzed, and the target light effects are formed by a preset number of light colors for each piece of equipment to be analyzed;
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 the target lamplight effect when displayed on the device to be analyzed, and the input and the output of the lamplight analysis model and the achromatic model in the training process are opposite;
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.
3. The method according to claim 1, wherein the method further comprises:
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 using the communication connection;
and according to the configuration file, distinguishing and displaying the lamps at different positions on the target equipment, so that the display result of the lamplight color of the target equipment is debugged online according to the color setting of the lamps at the selected positions by a user.
4. A method according to claim 3, wherein if the current is also in response to an online debug request of a device 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.
5. The method according to claim 1, wherein the method further comprises:
if a particular covering is disposed over each lamp on the target device, performing a lighting process in the computing device on each lamp in each set of adjacent lamps on the target device, wherein the particular covering is used to generate soft light;
And carrying out color mixing processing on the colors of each group of adjacent lamps after the light emitting processing by utilizing a preset color mixing algorithm, so that continuously-changing color display is obtained on the interface of the computing equipment.
6. The method according to claim 1, wherein the method further comprises:
and responding to a scene setting request of a user, acquiring preset scene data so as to display a lamplight display result of the target device in the scene on the interface of the computing device.
7. The method according to claim 1, wherein the method further comprises:
responding to a lamplight color setting request of the user to target equipment, and acquiring an equipment identifier of the target equipment;
correspondingly, acquiring the achromatic model corresponding to the target equipment comprises the following steps: and acquiring the achromatic model corresponding to the target equipment by utilizing the corresponding relation between the equipment identifier and the achromatic model.
8. The method of claim 2, wherein the device information further comprises a device identification to be analyzed;
correspondingly, acquiring the lamplight analysis model corresponding to each device to be analyzed, including: and acquiring the lamplight analysis model corresponding to each device to be analyzed according to the corresponding relation between the device identification to be analyzed and the lamplight analysis model.
9. A light treatment apparatus, comprising:
the lamplight color acquisition module is used for responding to a lamplight color setting request of a user on target equipment and acquiring at least one lamplight color of the target equipment;
an achromatic model obtaining module, configured to obtain an achromatic model corresponding to the target device, where the achromatic model is used to reduce a display difference of a light color on a computing device interface and the target device;
the display result adjusting module is used for adjusting the display result of the at least one lamplight color on the interface of the computing equipment by utilizing 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;
an achromatic model training module, comprising:
the input determining unit is used for acquiring color parameters of at least one lamplight color on the sample equipment under a target display result and the installation position of lamps of each color on the sample equipment, and is used as input for training the achromatic model;
the output determining unit is used for obtaining color parameters corresponding to the computing equipment and the display positions of the lamps of each color on the computing equipment interface when the target display result of at least one lamplight color on the sample equipment is displayed on the computing equipment interface, and is used as output for training the achromatic model;
And the model training unit is used for training to obtain the achromatic model by utilizing the input and the output.
10. A computing device, comprising:
one or more processors;
storage means for storing one or more programs,
when executed by the one or more processors, causes the one or more processors to implement the light treatment method as recited in any one of claims 1-8.
11. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements a light treatment method as claimed in any one of claims 1-8.
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 CN112148241A (en) 2020-12-29
CN112148241B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113507761B (en) * 2021-09-09 2022-01-21 深圳易来智能有限公司 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
CN115307075A (en) * 2022-08-17 2022-11-08 中国第一汽车股份有限公司 Lamp, lamp effect implementation method, device, equipment and medium

Citations (6)

* 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
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

Family Cites Families (1)

* 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

Patent Citations (6)

* 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
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
基于计算机视觉的车灯光导色差检测;王晨;戴曙光;穆平安;;电子测量技术(第08期);全文 *

Also Published As

Publication number Publication date
CN112148241A (en) 2020-12-29

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
CN108984395A (en) A kind of application program launching time-consuming test method, device and storage medium
US10255045B2 (en) Graphical representation of data in a program code editor
US20190005013A1 (en) Conversation system-building method and apparatus based on artificial intelligence, device and computer-readable 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
CN109582661B (en) Data structured evaluation method and device, storage medium and electronic equipment
US20190057335A1 (en) Targeted data element detection for crowd sourced projects with machine learning
US10558776B2 (en) Trigger-action-circuits: leveraging generative design to enable novices to design and build circuitry
CN113010359B (en) Bus test system generation method, system, device and storage medium
CN109739600A (en) Data processing method, medium, device and calculating equipment
CN102004952A (en) Measuring resource control system and measuring resource control method
CN110673585B (en) Test method, test device and test system for train air conditioning system
CN110795000B (en) Automatic control method and device based on interface segmentation and terminal
CN111599241B (en) Virtual simulation system for teaching of Internet of things
CN109032947A (en) For the test method of operating system, device, equipment and storage medium
CN112233208B (en) Robot state processing method, apparatus, computing device and storage medium
CN106407062B (en) Industry control chip debugging system and adjustment method
CN115951973A (en) Model processing method and device, terminal device and storage medium
Osorio-Gómez et al. An augmented reality tool to validate the assembly sequence of a discrete product
US20170289212A1 (en) Human machine interface system and the method for operating the same
CN112561331A (en) Visual experimental analysis evaluation index construction method
CN112328237A (en) Scene display method and device, computer equipment and storage medium
CN114443461A (en) Method, device, system and medium for determining code coverage information

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