CN117348280A - Dimming glass control method, system, device, electronic equipment and storage medium - Google Patents

Dimming glass control method, system, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117348280A
CN117348280A CN202311277324.5A CN202311277324A CN117348280A CN 117348280 A CN117348280 A CN 117348280A CN 202311277324 A CN202311277324 A CN 202311277324A CN 117348280 A CN117348280 A CN 117348280A
Authority
CN
China
Prior art keywords
glass
audio data
transmittance
target
dimming
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.)
Pending
Application number
CN202311277324.5A
Other languages
Chinese (zh)
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.)
BOE Technology Group Co Ltd
Beijing BOE Optoelectronics Technology Co Ltd
Original Assignee
BOE Technology Group Co Ltd
Beijing BOE Optoelectronics 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 BOE Technology Group Co Ltd, Beijing BOE Optoelectronics Technology Co Ltd filed Critical BOE Technology Group Co Ltd
Priority to CN202311277324.5A priority Critical patent/CN117348280A/en
Publication of CN117348280A publication Critical patent/CN117348280A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G02OPTICS
    • G02FOPTICAL DEVICES OR ARRANGEMENTS FOR THE CONTROL OF LIGHT BY MODIFICATION OF THE OPTICAL PROPERTIES OF THE MEDIA OF THE ELEMENTS INVOLVED THEREIN; NON-LINEAR OPTICS; FREQUENCY-CHANGING OF LIGHT; OPTICAL LOGIC ELEMENTS; OPTICAL ANALOGUE/DIGITAL CONVERTERS
    • G02F1/00Devices or arrangements for the control of the intensity, colour, phase, polarisation or direction of light arriving from an independent light source, e.g. switching, gating or modulating; Non-linear optics
    • G02F1/01Devices or arrangements for the control of the intensity, colour, phase, polarisation or direction of light arriving from an independent light source, e.g. switching, gating or modulating; Non-linear optics for the control of the intensity, phase, polarisation or colour 
    • G02F1/0121Operation of devices; Circuit arrangements, not otherwise provided for in this subclass
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/48Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/48Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use
    • G10L25/51Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use for comparison or discrimination
    • 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)
  • Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computational Linguistics (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Nonlinear Science (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Optics & Photonics (AREA)
  • General Physics & Mathematics (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The application provides a dimming glass control method, a dimming glass control system, a dimming glass control device, an electronic device and a storage medium, and relates to the technical field of display, wherein the dimming glass control method comprises the following steps: acquiring original audio data; converting the original audio data into target audio data according to the audio acquisition frequency of the original audio data, wherein the target audio data comprises a plurality of audio data frames; generating target transmittance of each piece of glass corresponding to each audio data frame based on the target audio data; and adjusting the transmittance of each piece of glass according to the target transmittance of each piece of glass.

Description

Dimming glass control method, system, device, electronic equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of display, in particular to a dimming glass control method, a dimming glass control system, a dimming glass control device, electronic equipment and a storage medium.
Background
Dimming glass, also called atomized glass, electric control glass and intelligent dimming and color changing glass, is widely applied to the fields of high-speed railway windows, automobile windows, building curtain walls (such as high-grade buildings and office partitions) and the like at present. The light-adjusting glass can control the light transmittance through the difference of the driving voltage, so that various display effects and patterns are realized through the light-adjusting glass with different light transmittance, and the environmental atmosphere is improved.
However, since the current adjustment of the state of the dimming glass mostly needs to be manually controlled according to the needs of the user, the automatic control can be performed mainly according to the external light intensity. However, such automatic control methods are relatively poor, cannot effectively interact with other atmosphere adjusting factors (such as music, video, etc.) in the environment, and have relatively single functions and relatively poor user experience. Therefore, how to effectively interact the state of the dimming glass with other atmosphere adjusting factors becomes a current urgent problem in the art.
Disclosure of Invention
The embodiment of the application provides a dimming glass control method, a dimming glass control system, a dimming glass control device, electronic equipment and a storage medium, and aims to solve the problem of how to realize effective interaction between the state of dimming glass and other atmosphere adjusting factors.
An embodiment of the present application provides a method for controlling a dimming glass, where the method includes:
acquiring original audio data;
converting the original audio data into target audio data according to the audio acquisition frequency of the original audio data, wherein the target audio data comprises a plurality of audio data frames;
generating target transmittance of each piece of glass corresponding to each audio data frame based on the target audio data;
And adjusting the transmittance of each piece of glass according to the target transmittance of each piece of glass.
In an alternative embodiment, the converting the original audio data into the target audio data according to the audio collection frequency of the original audio data includes:
acquiring the audio acquisition frequency;
acquiring metadata acquired by the original audio data in unit time based on the audio acquisition frequency;
dividing metadata acquired by the original audio data in unit time into a plurality of first metadata sections by taking a glass refreshing frequency as a reference, wherein the number of the first metadata sections is smaller than or equal to the glass refreshing frequency;
determining the plurality of frames of audio data based on the plurality of first metadata sections;
the plurality of frames of audio data are combined into the target audio data.
In an alternative embodiment, the determining the plurality of audio data frames based on the first metadata section includes:
acquiring a plurality of metadata belonging to a target metadata section in the target metadata section, wherein the target metadata section is any one of the plurality of first metadata sections;
And determining metadata with the maximum amplitude value from the metadata as the audio data frame corresponding to the target metadata section.
In an alternative embodiment, a plurality of glass units form a plurality of display units, the glass units in each display unit are sequentially arranged in a one-dimensional direction, and the converting the original audio data into target audio data according to the audio collection frequency of the original audio data includes:
acquiring metadata acquired by the original audio data in unit time based on the audio acquisition frequency;
dividing metadata acquired by the original audio data in unit time into second metadata sections with target quantity, wherein the target quantity is smaller than or equal to the sum of glass refreshing frequencies of the display units;
determining the plurality of audio data frames based on the second metadata section, each audio data frame corresponding to the second metadata section one to one;
and dividing the audio data frame into a plurality of audio sub-data frames by taking the number of the display units as a reference, wherein each audio sub-data frame is used as the target audio data of each display unit in unit time, and the number of each audio sub-data frame is smaller than or equal to the glass refreshing frequency.
In an alternative embodiment, the number of audio data frames per unit time in the target audio data is less than or equal to the glass refresh frequency.
In an optional embodiment, the generating, based on the target audio data, a target transmittance of each glass corresponding to each audio data frame includes:
obtaining the quantity of glass and the theoretical maximum amplitude;
determining a mapping coefficient based on the theoretical maximum amplitude and the glass quantity;
based on the plurality of audio data frames in the target audio data and the mapping coefficient, obtaining a transmittance adjustment result corresponding to each audio data frame, wherein the transmittance adjustment result is used for representing the number of bright state glass and the number of dark state glass;
and generating the target transmittance of each piece of glass corresponding to each audio data frame based on the transmittance adjustment result.
In an alternative embodiment, a plurality of pieces of glass form a display unit, the pieces of glass in the display unit are sequentially arranged in a one-dimensional direction, and the generating, based on the transmittance adjustment result, the target transmittance of each piece of glass corresponding to each audio data frame includes:
Determining a plurality of pieces of glass sequentially and continuously arranged along the one-dimensional direction in the display unit as a first glass group in each audio data frame, wherein the number of the glass of the first glass group is the same as that of the bright state glass;
determining the glass which does not belong to the first glass group in the display unit as a second glass group, wherein the number of the glass of the second glass group is the same as that of the dark state glass;
setting the target transmittance of each glass in the first glass group to be a bright state transmittance, and setting the target transmittance of each glass in the second glass group to be a dark state transmittance.
In an alternative embodiment, in the manual mode, the method further comprises:
obtaining custom information, wherein the custom information is used for representing the bright state transmittance and the glass number of the glass, and the bright state transmittance of the glass corresponding to different glass numbers is the same or different;
and adjusting the transmittance of each piece of glass according to the custom information.
In an alternative embodiment, the adjusting the transmittance of each glass according to the target transmittance of each glass includes:
acquiring the transmittance of each piece of glass in real time in each audio data frame to serve as the actual transmittance;
And comparing the actual transmittance with the target transmittance, and adjusting the actual transmittance of each piece of glass to the target transmittance when the target transmittance is different from the actual transmittance.
A second aspect of embodiments of the present application provides a dimming glass control system, the system comprising:
the system comprises a main control end, a dimming system and a driving terminal, wherein the dimming system is respectively in communication connection with the main control end and the driving terminal, the driving terminal is used for adjusting the brightness of glass, and the main control end is used for determining a dimming mode of the dimming glass control system;
the dimming system is configured to perform the dimming glass control method according to any one of the first aspects.
In an alternative embodiment, the dimming mode includes at least a sound mode and a manual mode; wherein,
the main control end is used for generating an audio acquisition instruction and sending the audio acquisition instruction to the dimming system under the condition that the dimming mode is the voice dynamic mode;
and under the condition that the dimming mode is the manual mode, the main control end is used for acquiring the self-defining information and sending the self-defining information to the driving terminal through the dimming system.
In an alternative embodiment, the dimming system includes an audio acquisition subsystem and a sound processing subsystem;
the audio acquisition subsystem is used for responding to the audio acquisition instruction sent by the main control end, acquiring original audio data and sending the original audio data to the sound processing subsystem, wherein the original audio data is real-time audio data and/or preset audio data;
the sound processing subsystem is used for converting the original audio data into target audio data according to the audio acquisition frequency of the original audio data, wherein the target audio data comprises a plurality of audio data frames;
the sound processing subsystem is further used for generating target transmittance of each piece of glass corresponding to each audio data frame based on the target audio data, and sending the target transmittance of each piece of glass to the driving terminal so that the driving terminal can adjust the transmittance of each piece of glass according to the target transmittance of each piece of glass.
In an alternative embodiment, the drive terminal comprises at least one drive subsystem, each of which controls at least one piece of glass, wherein,
The driving subsystem is used for receiving the target transmittance of each piece of glass corresponding to each audio data frame;
the driving subsystem is further configured to obtain, in each audio data frame, a transmittance of glass in real time as an actual transmittance, and adjust the actual transmittance to the target transmittance when the target transmittance is different from the actual transmittance.
A third aspect of embodiments of the present application provides a dimming glass control device, including:
the original audio data module is used for acquiring original audio data;
the data processing module is used for converting the original audio data into target audio data according to the audio acquisition frequency of the original audio data, wherein the target audio data comprises a plurality of audio data frames;
the target transmittance module is used for generating target transmittance of each piece of glass corresponding to each audio data frame based on the target audio data;
and the adjusting module is used for adjusting the transmittance of each glass according to the target transmittance of each glass.
In an alternative embodiment, the data processing module includes:
The first acquisition submodule is used for acquiring the audio acquisition frequency;
the first metadata sub-module is used for acquiring metadata acquired by the original audio data in unit time based on the audio acquisition frequency;
the first metadata section submodule is used for dividing metadata acquired by the original audio data in unit time into a plurality of first metadata sections by taking the glass refreshing frequency as a reference, and the number of the first metadata sections is smaller than or equal to the glass refreshing frequency;
a first audio data frame sub-module for determining the plurality of audio data frames based on the plurality of first metadata sections;
and the combining sub-module is used for combining the plurality of audio data frames into the target audio data.
In an alternative embodiment, the first audio data frame sub-module includes:
a metadata unit, configured to obtain, in a target metadata section, a plurality of metadata belonging to the target metadata section, where the target metadata section is any one of the plurality of first metadata sections;
and the maximum amplitude unit is used for determining metadata with the maximum amplitude from the metadata, and the metadata is used as the audio data frame corresponding to the target metadata section.
In an alternative embodiment, the data processing module further includes:
the second metadata sub-module is used for acquiring metadata acquired by the original audio data in unit time based on the audio acquisition frequency;
the second metadata section submodule is used for dividing metadata acquired by the original audio data in unit time into second metadata sections with target quantity, and the target quantity is smaller than or equal to the sum of glass refreshing frequencies of the display units;
a second audio data frame sub-module configured to determine the plurality of audio data frames based on the second metadata section, where each of the audio data frames corresponds to the second metadata section one-to-one;
and the splitting sub-module is used for splitting the audio data frame into a plurality of audio sub-data frames by taking the number of the display units as a reference, wherein each audio sub-data frame is used as the target audio data of each display unit in unit time, and the number of each audio sub-data frame is smaller than or equal to the glass refreshing frequency.
In an alternative embodiment, the target transmittance module includes:
The second acquisition submodule is used for acquiring the quantity of glass and the theoretical maximum amplitude;
a mapping coefficient sub-module for determining a mapping coefficient based on the theoretical maximum amplitude and the glass number;
the transmittance adjustment result submodule is used for acquiring a transmittance adjustment result corresponding to each audio data frame based on the plurality of audio data frames in the target audio data and the mapping coefficient, wherein the transmittance adjustment result is used for representing the number of bright state glass and the number of dark state glass;
and the target transmittance sub-module is used for generating the target transmittance of each piece of glass corresponding to each audio data frame based on the transmittance adjustment result.
In an alternative embodiment, the target transmittance submodule includes:
a first glass group unit configured to determine, as a first glass group, a plurality of glasses sequentially arranged in succession in the one-dimensional direction in the display unit within each of the audio data frames, the first glass group having the same number of glasses as the bright state glass;
a second glass group unit configured to determine, as a second glass group, glasses in the display unit that do not belong to the first glass group, the number of glasses of the second glass group being the same as the number of the dark state glasses;
A target transmittance unit configured to set a target transmittance of each glass in the first glass group to a bright state transmittance, and set a target transmittance of each glass in the second glass group to a dark state transmittance.
In an alternative embodiment, the apparatus further comprises:
the self-defining information module is used for obtaining self-defining information, wherein the self-defining information is used for representing the bright state transmittance and the glass number of the glass, and the bright state transmittance of the glass corresponding to different glass numbers is the same or different;
and the second adjusting module is used for adjusting the transmittance of each piece of glass according to the self-defined information.
In an alternative embodiment, the adjustment module includes:
the actual transmittance submodule is used for acquiring the transmittance of each piece of glass in real time in each audio data frame to serve as the actual transmittance;
and the adjusting submodule is used for comparing the actual transmittance with the target transmittance, and adjusting the actual transmittance of each piece of glass to be the target transmittance when the target transmittance is different from the actual transmittance.
A third aspect of the embodiments of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory, the processor executing the computer program to implement the steps in the dimming glass control method of any one of the first aspects.
A fourth aspect of the embodiments of the present application provides a computer-readable storage medium having stored thereon a computer program/instruction which, when executed by a processor, implements the steps of the method for controlling a dimmed glass according to any one of the first aspects.
A fifth aspect of the embodiments of the present application provides a computer program product comprising computer programs/instructions which, when executed by a processor, implement the steps in the method for controlling a dimmed glass according to any one of the first aspects.
The beneficial effects are that:
the application provides a dimming glass control method, a dimming glass control system, a dimming glass control device, electronic equipment and a storage medium, wherein the dimming glass control method comprises the following steps: acquiring original audio data; converting the original audio data into target audio data according to the audio acquisition frequency of the original audio data, wherein the target audio data comprises a plurality of audio data frames; generating target transmittance of each piece of glass corresponding to each audio data frame based on the target audio data; and adjusting the transmittance of each piece of glass according to the target transmittance of each piece of glass. According to the method and the device, the acquired audio data in the audio mode are converted into the transmittance of the glass in each frame, and the brightness of the glass is adjusted according to the transmittance of each frame in sequence according to the refreshing frequency of the glass, so that manual adjustment of the brightness of the glass is not needed, the brightness of the glass is adjusted correspondingly with different frequencies of the audio data in a scene, the brightness state of the dimming glass corresponds to the rhythm of the sound of the scene, effective interaction of different scene factors is formed, and the look and feel and the use experience of a user are effectively improved.
The foregoing description is only an overview of the technical solutions of the present application, and may be implemented according to the content of the specification in order to make the technical means of the present application more clearly understood, and in order to make the above-mentioned and other objects, features and advantages of the present application more clearly understood, the following detailed description of the present application will be given.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments of the present application will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for controlling dimming glass according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of a method for controlling dimming glass according to an embodiment of the present disclosure;
FIG. 3 is a diagram illustrating a first metadata segment and an audio data frame corresponding to original audio data according to an embodiment of the present application;
FIG. 4 is a diagram illustrating an exemplary effect of adjusting transmittance of a display unit under consecutive audio data frames according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a dimming glass control system according to an embodiment of the present disclosure;
FIG. 6 is a schematic diagram of a dimming glass control device according to an embodiment of the present disclosure;
fig. 7 is a schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Dimming glass, also called atomized glass, electric control glass and intelligent dimming and color changing glass, is widely applied to the fields of high-speed railway windows, automobile windows, building curtain walls (such as high-grade buildings and office partitions) and the like at present. The light-adjusting glass can control the light transmittance through the difference of the driving voltage, so that various display effects and patterns are realized through the light-adjusting glass with different light transmittance, and the environmental atmosphere is improved.
In the related art, most of current dimming glass state adjustment needs manual control according to own needs, and automatic control can be realized mainly according to external light intensity. However, such automatic control methods are relatively poor, cannot effectively interact with other atmosphere adjusting factors (such as music, video, etc.) in the environment, and have relatively single functions and relatively poor user experience.
In view of this, an embodiment of the present application proposes a method for controlling a dimming glass, fig. 1 shows a flowchart of a method for controlling a dimming glass, and as shown in fig. 1, the method includes the following steps:
s101, acquiring original audio data.
S102, converting the original audio data into target audio data according to the audio acquisition frequency of the original audio data.
And converting the original audio data into target audio data according to the audio acquisition frequency of the original audio data, wherein the target audio data comprises a plurality of audio data frames.
S103, generating target transmittance of each piece of glass corresponding to each audio data frame based on the target audio data.
S104, adjusting the transmittance of each glass according to the target transmittance of each glass.
In this embodiment of the present application, the glass refers to light-adjusting glass, where the light-adjusting glass is glass that can adjust transmittance (i.e. light transmittance) of light under the action of voltage or current, and is widely used in fields of vehicle-mounted and building, and in different product application scenarios, the type of the light-adjusting glass includes a normally black mode and may also be a normally white mode, where the normally black mode refers to a dark state where the light-adjusting glass is low in transmittance under the condition that no voltage is applied, and the voltage is applied to increase the transmittance of the light-adjusting glass, so that the light-adjusting glass is in a bright state; in contrast to the normally white mode, the light control glass is in a high-transmittance bright state without applying a voltage, and the voltage is applied to reduce the transmittance of the light control glass, so that the light control glass is in a dark state. For the dimming glass control method provided in the embodiment of the present application, the dimming glass may be in a normally black mode or a normally white mode, and the specific mode of the dimming glass may be determined according to the actual situation, which is not limited herein.
According to the embodiment of the invention, the transmittance of the light-adjusting glass is adjusted according to different light-adjusting modes, the light-adjusting modes are used for determining a light-adjusting strategy for forming the transmittance of the light-adjusting glass, the light-adjusting modes at least comprise a sound-moving mode and a manual mode, the sound-moving mode is used for automatically adjusting the transmittance of the glass in real time according to the rhythm of the audio represented in the original audio data based on the original audio data, wherein the original audio data can be preset audio data, such as audio files of music, record and the like acquired in advance, and the preset audio data can be input through an audio transmission path in the sound-moving mode; the raw audio data may also be real-time audio data, such as live recordings or the like, collected in real-time by an audio collection device. Specifically, the original audio data contains continuous metadata collected according to the audio collection frequency, the metadata refers to byte information of bytes stored according to data bits of a computer when the original audio data is collected sequentially according to the audio collection frequency along time in the collection process, in other words, the metadata is a data representation of the audio information at a computer level, and changes of the metadata represent rhythm information of the original audio data at the digital level, so that the rhythm represented by the changes of the metadata can be captured by processing the original audio data, and the rhythm represented by the changes of the metadata can be converted.
In this embodiment of the present invention, the target audio data is audio data that can be applied to the dimming glass and is obtained by resampling the original audio data according to the glass refresh frequency, so that the target audio data has fewer audio data frames compared with the original audio data. And for the dimming glass in each display unit, after the original audio data is converted into target audio data, the number of audio data frames in the target audio data is smaller than or equal to the frequency at which the glass can perform transmittance adjustment in unit time, so that the dimming glass in each display unit can perform transmittance adjustment according to the audio data frames in the target audio data.
Because the current dimming glass needs manual input for dimming transmittance, the brightness of different dimming glasses is adjusted according to the manually input transmittance data, but the transmittance cannot be obtained based on audio data in the manual input process, so that the brightness change of the glass cannot be hooked with the rhythm of audio, for example, when the rhythm of on-site atmosphere music is quickly slowed down, the manually-controlled glass transmittance cannot be darkened along with the slowing of the music rhythm in real time because the manually input frequency is far less than the frequency of the audio change, so that the on-site glass transmittance is not related to the music rhythm change, and the audiovisual experience of a user is reduced.
According to the embodiment of the application, the original audio data are obtained, continuous metadata output according to the audio acquisition frequency in the original audio data are used as reference data for adjusting the glass transmittance in real time, the capturing rhythm change of the metadata is used, the capturing rhythm change is converted into the transmittance change, and the glass transmittance is automatically adjusted according to the transmittance of the corresponding original audio data; meanwhile, in order to ensure that the obtained original audio data can be converted into the transmittance in the range of the glass refreshing frequency, the original audio data is firstly converted into the target audio data according to the glass refreshing frequency, and the transmittance representing the change of the audio rhythm is generated based on the target audio data in the variable range of the glass loadable, so that the glass transmittance is adjusted through the original audio data, the brightness change brought by the glass transmittance is consistent with the audio change, for example, when the rhythm of the audio data is fast, the speed of brightness alternation caused by the change of the glass transmittance is fast, thereby forming effective interaction of different scene factors and improving the audiovisual experience of users.
In order to enable those skilled in the art to better understand the technical solutions provided in the embodiments of the present application, fig. 2 shows a schematic flow chart of a dimming glass control method according to an embodiment of the present application, and in conjunction with fig. 2, the following details of the solutions of the present application are described below:
When step S101 is specifically implemented, a current dimming mode is first determined, where the dimming mode includes at least a sound mode and a manual mode, where the sound mode needs to perform automatic transmittance adjustment on the dimming glass based on the original audio data, and the manual mode adjusts the transmittance of the dimming glass based on the custom information. And under the condition that the dimming mode is a sound mode, acquiring an audio signal, wherein the audio signal can be preset audio data acquired through a transmission path or real-time audio data acquired through real-time audio acquisition equipment. After the audio signal is acquired, the audio signal is in an acquisition format that is not compatible with the processable data format of the audio processing device, and therefore the audio signal needs to be sampled.
Specifically, after obtaining an audio signal, firstly configuring an audio acquisition frequency and a data bit number, wherein the audio acquisition frequency is used for representing the quantity of metadata acquired in a unit time in the process of sampling the audio signal, and forming the metadata into the original audio data, the unit time can be seconds, half seconds and the like, and the specific unit time can be determined according to actual conditions; the data bit number is used for representing the binary bit number corresponding to the computer processing word length. Preferably, the audio acquisition frequency is greater than or equal to 8kHz and less than or equal to 64kHz; the number of data bits is selected from 8, 16 or 24.
After the audio acquisition frequency and the data bit number are configured, the acquired audio signals are sampled according to the pre-configured audio acquisition frequency and the pre-configured data bit number, and the original audio data are obtained. Illustratively, if the audio acquisition frequency is 22.05kHz, the number of data bits is 16, which means that 22050 metadata are acquired in a unit time during the process of sampling the audio signal, and the audio data are 16Bit signed numbers, the word length is 16-Bit computers, and the binary number is 16-Bit. It should be noted that the foregoing examples are only for better understanding an optional case given by a person skilled in the art in the present application, and specific audio acquisition frequencies and data bit numbers may be determined according to actual situations, which are not limited herein.
When step S102 is specifically implemented, the continuous metadata of the original audio data represent the rhythm information of the audio, and the change of the glass transmittance along with the rhythm information of the audio is realized by adjusting the brightness change of the dimming glass according to the original audio data. Because the frequency of the brightness change of the dimming glass is far smaller than the audio acquisition frequency in the original audio data, if the transmittance of the dimming glass is directly adjusted based on the original audio data, the limit value of the brightness change frequency of the dimming glass can be greatly exceeded, so that the transmittance corresponding to all metadata of the original audio data cannot be integrally represented by the dimming glass, and even the performance loss of the dimming glass is caused. Specifically, the audio collection frequency of the original audio data is in the kilohertz frequency range, while the glass refresh frequency of the dimming glass (i.e. the frequency of the controllable brightness change of the dimming glass) is generally in the ten hertz frequency range, that is, the original audio data contains several thousands of metadata in unit time, the brightness change (transmittance change) of the dimming glass can only be performed several tens times at most in unit time, if the original audio data is directly used as the basic data for adjusting the transmittance of the glass to generate the transmittance corresponding to the dimming glass, the dimming glass can only perform the transmittance adjustment according to the original tens of metadata of the original audio data as the basic data in unit time, and the metadata can only represent the rhythm information just started in the whole original audio data.
Therefore, in the embodiment of the application, resampling processing is required to be performed on the obtained original audio data, and the original audio data is processed into the audio data which characterizes the whole rhythm information and can adapt to the glass refreshing frequency of the dimming glass. Firstly, determining the maximum value of the brightness change times of the dimming glass in unit time, and taking the maximum value as the glass refreshing frequency, wherein when the original audio data is resampled, the metadata contained in the processed audio data in unit time is required to be smaller than or equal to the glass refreshing frequency, so that the adjustability of the dimming glass is ensured. Specifically, based on the audio collection frequency, metadata collected by the original audio data in unit time are obtained, the metadata collected by the original audio data in unit time are divided into a plurality of first metadata sections on average by taking the glass refreshing frequency as a reference, each first metadata section represents rhythm information of the original audio data in the section in unit time, and the number of the first metadata sections is smaller than or equal to the glass refreshing frequency. The first metadata sections cover all metadata of the original audio data in unit time, which is equivalent to converting the granularity of sampling from kilobit level to ten bit level, so that the glass refreshing frequency of the dimming glass can be adapted while the rhythm information of the whole original audio data represented by the first metadata sections is ensured.
After a plurality of corresponding first metadata sections in a unit time are acquired, each first metadata section still contains a lot of metadata, for example, 22050 metadata are acquired in a unit time when the audio acquisition frequency is 22.05kHz, and 882 metadata exist in each first metadata section after the metadata is equally divided into 25 first metadata sections. Thus, metadata representing each first metadata section needs to be determined from among the plurality of metadata in the first metadata section. Taking any one of a plurality of first metadata sections as a target metadata section, acquiring a plurality of metadata belonging to the target metadata section, and determining the amplitude value corresponding to each metadata; among the metadata included in the target metadata section, the metadata corresponding to the maximum amplitude is determined and used as the audio data frame corresponding to the target metadata section, the audio data frame simultaneously characterizes the time of the first metadata section in unit time and the corresponding audio data amplitude, for example, fig. 3 shows an exemplary diagram of the first metadata section and the audio data frame corresponding to the original audio data according to an embodiment of the present application, as shown in fig. 3, all metadata of the original audio data in unit time is uniformly divided into 25 first metadata sections (25 intervals in fig. 3), and the maximum amplitude is used as the audio data frame in each first metadata section, so as to obtain audio data frames a-Y, and the time sequence of the audio data frames a-Y in unit time is sequentially and later from left to right. Based on the above process, determining an audio data frame corresponding to each first metadata section, obtaining a plurality of audio data frames smaller than or equal to the glass refreshing frequency in unit time, wherein each audio data frame corresponds to the first metadata section one by one, and finally, combining all audio data frames corresponding to the obtained original audio data into the target audio data.
For example, the glass refreshing frequency is 25Hz, which indicates that the dimming glass can perform brightness change for at most 25 times in a unit time, in order to ensure that the metadata quantity of the audio data obtained by resampling in the unit time is less than or equal to 25, the metadata collected by the original audio data in the unit time is divided into 25 first metadata sections on average, and the amplitude corresponding to the metadata in each first metadata section is determined; comparing the amplitude values in each first metadata section, determining metadata corresponding to the maximum amplitude value in the section, and taking the metadata as one audio data frame of the original audio data in unit time; based on the magnitudes of metadata of the 25 first metadata sections, 25 corresponding audio data frames are obtained, and the 25 audio data frames are audio data which not only adapt to the glass refreshing frequency in unit time, but also can represent rhythm information of original audio data in unit time. It should be noted that the foregoing examples are only for better understanding of an optional case given by a person skilled in the art in the present application, and the specific number of the first metadata section and the audio data frame may be determined according to the actual situation, which is not limited herein.
In an alternative embodiment, a plurality of display units can be formed by a plurality of pieces of dimming glass which need to be subjected to transmittance adjustment according to the original audio data, and the plurality of display units are used for jointly displaying, so that granularity of glass transmittance adjustment according to the audio data is finer, and the transmittance adjustment effect is more accurate in interaction and correspondence with the rhythm of the audio data. Each display unit is a glass curtain wall composed of a plurality of pieces of dimming glass which are sequentially arranged in a one-dimensional direction. When a plurality of display units exist, the dimming glass in different display units alternately carries out transmittance adjustment so as to realize representing rhythm information corresponding to the original audio data through the plurality of display units.
From the above, each glass has a minimum unit of one audio data frame for transmittance adjustment, and the transmittance adjustment is performed according to a plurality of consecutive audio data frames in a unit time. When a plurality of display units exist, only glass in different display units is required to be subjected to corresponding transmittance adjustment periodically for continuous audio data frames, for example, for three display units (including a first display unit, a second display unit and a third display unit), glass in the first display unit is adjusted according to the first audio data frame according to the audio data frame sequence in unit time, and at the moment, the glass in the second display unit and the glass in the third display unit are not subjected to the transmittance adjustment in the frame; then adjusting the glass in the first display unit according to the second audio data frame, wherein the glass in the first display unit and the glass in the third display unit do not perform transmittance adjustment in the frame; finally, adjusting the glass in the third display unit according to the third audio data frame, wherein the glass in the first display unit and the glass in the second display unit do not perform transmittance adjustment in the frame. Therefore, when the target audio data is adjusted for each display unit, the number of times of brightness change of each display unit in unit time is shared by glass in other display units, so that the number of audio data frames contained in the target audio data in unit time can be increased, and only the situation that the number of times of sharing brightness change of glass in other display units is shared by each display unit is ensured, the glass refreshing frequency is not exceeded.
Specifically, after determining an audio acquisition frequency and a glass refreshing frequency, acquiring metadata acquired by the original audio data in unit time based on the audio acquisition frequency; and then, determining the addition of the glass refreshing frequencies of the display units, wherein when the glass refreshing frequencies in the display units are consistent and the display units represent the same original audio data at the same time, adding the maximum value of the times of brightness change (namely the glass refreshing frequency) of the glass in each display unit in unit time as the limit refreshing frequency of the display units representing the same original audio data at the same time, and dividing the metadata collected by the original audio data in unit time into a target number of second metadata sections, wherein the target number is smaller than or equal to the limit refreshing frequency. Then, determining the plurality of audio data frames based on the second metadata section, wherein each audio data frame corresponds to the second metadata section one by one; and dividing the audio data frame into a plurality of audio sub-data frames by taking the number of the display units as a reference, wherein the audio sub-data frames corresponding to each display unit are alternately arranged according to a frame sequence, so that the number of the audio sub-data frames corresponding to each display unit is the same, each audio sub-data frame serves as the target audio data of each display unit in unit time, and the number of each audio sub-data frame is smaller than or equal to the glass refreshing frequency.
For example, the glass refreshing frequency in each display unit is 25Hz, which indicates that the dimming glass can change brightness for 25 times at most in unit time, when the number of the display units is three, the glass in the three display units alternately changes brightness according to the original audio data, then the three display units simultaneously indicate that the limit refreshing frequency of the same original audio data is 75Hz, at this time, the metadata collected in unit time of the original audio data are divided into 75 second metadata sections on average, 75 audio data frames corresponding to the 75 second metadata sections are determined, when the transmittance of the 75 audio data frames is adjusted, the three display units periodically adjust the transmittance according to the 75 audio data frames, and the glass of each display unit still only needs to adjust according to the 25 audio data frames in unit time, so that the glass refreshing frequency of each display unit is adapted to the common display, and the audio data of the rhythm information of the original audio data in unit time can be indicated by the three display units. It should be noted that the foregoing examples are only for better understanding of an optional case given by a person skilled in the art in the technical solution of the present application, and the specific number of the display unit, the second metadata section, and the audio data frame may be determined according to the actual situation, which is not limited herein.
When step S103 is specifically implemented, for the dimming glass in each display unit, the number of audio data frames in a unit time in the target audio data is less than or equal to the glass refresh frequency, and since the dimming glass adjusts the transmittance of the glass by controlling the voltage, and the target audio data obtained through resampling processing is still audio data, it is necessary to convert the target audio data into the target transmittance of each glass and output the target transmittance of each glass, so that the transmittance of the glass can be adjusted based on the original audio data. First, the number of bright state glasses and the number of dark state glasses are determined using the target audio data. In the embodiment of the application, in the audio mode, when the dimming glass is in a bright state, the dimming glass is in a bright state with the same gray scale, and the corresponding target transmittance is the same. In other words, in the sound mode, the dimming glass has only two kinds of brightness, one is in a bright state and the other is in a dark state, so that when the number of the bright state glass or the number of the dark state glass is determined, the number of the dimming glass in one state is only determined, and the number of the dimming glass in the other state can be obtained according to the number of all the glasses.
Specifically, firstly, the number of glasses in the display unit and the data bit number of the original audio data are acquired to determine the mapping coefficient between the target audio data and the glasses under the current number of glasses. Then, based on the data bit number, determining a theoretical maximum amplitude corresponding to the data bit number, wherein the theoretical maximum amplitude refers to the maximum signed number which can be represented when the binary bit number corresponding to the data bit number represents data, and all corresponding audio data frames in the target audio data are smaller than or equal to the theoretical maximum amplitude, for example, when the data bit number is 16, the theoretical maximum amplitude is 2 15 -1 = 32767. After determining the theoretical maximum amplitude, determining the ratio (integer) of the theoretical maximum amplitude corresponding to the data bit number to the glass number as the mapping coefficient. Taking the mapping coefficient as a conversion standard, taking the ratio of each audio data frame in the target audio data to the mapping coefficient as the dark state glass quantity at the corresponding time of each audio data frame, wherein the difference between the glass quantity of the display unit and the dark state glass quantity is the bright state glass quantity at the corresponding time of each audio data frame, and taking the bright state glass quantity and the dark state glass quantity corresponding to each audio data frame as the transmittance adjustment result corresponding to each audio data frame.
The transmittance adjustment result corresponding to each audio data frame is obtained, and the transmittance adjustment result represents the number of the bright-dark state glasses, as described above, in the audio mode, the transmittance of the bright state glass is the same bright state transmittance, and the transmittance of the dark state glass is the same dark state transmittance, so that the bright state transmittance is configured to the light-dimming glass with the number of the bright state glasses, the dark state transmittance is configured to the light-dimming glass with the number of the dark state glasses, and the generation of the target transmittance of each glass corresponding to each audio data frame is completed.
In an alternative embodiment, after determining the target transmittance of each piece of glass corresponding to each of the audio data frames, the positions of the plurality of bright state glasses and dark state glasses corresponding to each of the audio data frames are determined. In the embodiment of the application, the display units composed of the plurality of pieces of glass are composed of the pieces of glass sequentially arranged in a one-dimensional direction, so that the plurality of pieces of glass in each display unit have position differences in only one direction, and in order to ensure that the generated transmittance can represent rhythm information corresponding to the current audio data frame, the bright state glass only needs to be continuously displayed in the one-dimensional direction. Specifically, in each audio data frame, a group of pieces of glass which are sequentially arranged along the one-dimensional direction and have the same number as the bright state glass are determined in the display unit according to the corresponding transmittance number of the illuminated state glass, and the glass which does not belong to the first glass group in the display unit is determined as a second glass group, wherein the number of the glass of the second glass group is the same as the number of the dark state glass; setting the target transmittance of each glass in the first glass group to be a bright state transmittance, and setting the target transmittance of each glass in the second glass group to be a dark state transmittance.
According to the method and the device, the target audio data and the quantity of the dimming glass in the reality unit are connected, the mapping coefficients of the target audio data and the quantity of the dimming glass in the reality unit are established, so that the target audio data are converted into the target transmittance of each glass based on the mapping coefficients, the target transmittance of rhythm information corresponding to the original audio data is output through the original audio data in each audio data frame, after that, step S104 is executed, namely interaction among different atmosphere factors is achieved, and the use experience of a user is improved.
In step S104, the target audio data in unit time includes a plurality of audio data frames, after determining the target transmittance of each transparent glass of the display unit in each audio data frame, acquiring the transmittance of each glass in real time as an actual transmittance in each audio data frame, and comparing the actual transmittance with the target transmittance, wherein the actual transmittance of the light-adjusting glass is maintained in the current audio data frame when the target transmittance is the same as the actual transmittance; and when the target transmittance is different from the actual transmittance, adjusting the actual transmittance of the dimming glass to the target transmittance in the current audio data frame.
Fig. 4 illustrates an exemplary graph of the transmittance adjustment effect of the display unit under the continuous audio data frames according to the embodiment of the present application, and as shown in fig. 4, ABCDEFG respectively represents the transmittance adjustment effect of one display unit obtained by adjusting according to the target transmittance under seven continuous audio data frames. Taking an audio data frame A and an audio data frame B as an example, for the audio data frame A, according to the number of the bright state glass obtained by converting the original audio data, taking 14 continuous dimming glasses close to the left side in a display unit as a first glass group, and setting the target transmittance of each glass in the audio data frame A as the bright state transmittance; for the audio data frame B, the number of the bright state glasses obtained by converting the original audio data is 11, and since the 11 blocks near the left side in the previous frame (audio data frame a) are all bright state transmittance, that is, the target transmittance and the actual transmittance are the same, the actual transmittance of the continuous 11 pieces of dimming glass near the left side is maintained as the first glass group, and the transmittance of the 12 th to 14 th pieces of glass is adjusted from the actual transmittance to the target transmittance (dark state transmittance).
In an alternative embodiment, although the luminance of the glass can be efficiently adjusted according to the rhythm information of the audio data in the audio mode, the positions of the bright state glass are continuous, the bright state transmittance is the same, and the luminance combinations of different positions and different gray scales cannot be displayed more freely. Specifically, when the dimming mode is a manual mode, the glass numbers input by the user and the bright state transmittances corresponding to different glass numbers are obtained, wherein the bright state transmittances of the glasses corresponding to different glass numbers may be the same (same gray-scale brightness) or different (different gray-scale brightness). Combining the glass numbers and the bright state transmittance corresponding to different glass numbers into custom information; then, the transmittance of the glass corresponding to the glass number is set to be the bright state transmittance of different gray scale brightness, and the transmittance of the glass not corresponding to the glass number is set to be the dark state transmittance, and the transmittance of each glass is adjusted.
The application provides a dimming glass control method, which comprises the following steps: acquiring original audio data; converting the original audio data into target audio data according to the audio acquisition frequency of the original audio data, wherein the target audio data comprises a plurality of audio data frames; generating target transmittance of each piece of glass corresponding to each audio data frame based on the target audio data; and adjusting the transmittance of each piece of glass according to the target transmittance of each piece of glass. According to the method and the device, the acquired audio data in the audio mode are converted into the transmittance of the glass in each frame, and the brightness of the glass is adjusted according to the transmittance of each frame in sequence according to the refreshing frequency of the glass, so that manual adjustment of the brightness of the glass is not needed, the transmittance of the glass is adjusted correspondingly with different frequencies of the audio data in a scene, the brightness state of the dimming glass corresponds to the rhythm of the sound of the scene mutually, effective interaction of different scene factors is formed, and the look and feel and the use experience of a user are effectively improved.
Based on the same inventive concept, an embodiment of the present application discloses a dimming glass control system, fig. 5 shows a schematic architecture diagram of a dimming glass control system provided in an embodiment of the present application, as shown in fig. 5, where the system includes a master control end, a dimming system and a driving terminal, the dimming system is respectively in communication connection with the master control end and the driving terminal, where the master control end and the dimming system are in communication connection by a wired or wireless network, and when the master control end and the dimming system are connected by a wireless network, the master control end is connected to a routing device by WiFi, the dimming system is connected to the routing device by a wired network, and connection between the master control end and the dimming system is established by the routing device. The main control end is used for interacting with a user and determining a dimming mode; the driving terminal is used for adjusting the brightness of the glass; the dimming system is used for executing the dimming glass control method mentioned in the embodiment of the application.
In this embodiment of the present application, the master control end is configured to determine a dimming mode, where the master control end is any control terminal with a display screen, such as a computer, a tablet computer, and the like, and the dimming mode at least includes a sound motion mode and a manual mode; the dimming system includes an audio acquisition subsystem and a sound processing subsystem. When the dimming mode is the audio mode, the main control end generates an audio acquisition instruction and sends the audio acquisition instruction to the audio acquisition subsystem; the audio acquisition subsystem responds to an audio acquisition instruction sent by the main control end, acquires original audio data and sends the original audio data to the sound processing subsystem, wherein the original audio data can be preset audio data input through a transmission path or can be real-time audio data acquired based on real-time acquisition equipment, and the preset audio data can exclude interference caused by environmental noise and is suitable for scenes with larger environmental noise; the real-time audio data can collect the environmental noise together, is suitable for scenes with smaller environmental noise, but does not need an additional transmission path, and a specific original audio data acquisition mode can be determined according to actual conditions. Illustratively, the sound collection subsystem includes an audio input module (e.g., a LineIn audio input interface, etc.) for inputting preset audio data or a real-time audio collection module (e.g., an on-board microphone, etc.) for inputting real-time audio data.
The sound processing subsystem is used for receiving the original audio data and converting the original audio data into target audio data according to the audio acquisition frequency of the original audio data, wherein the target audio data comprises a plurality of audio data frames. After obtaining the target audio data, the sound processing subsystem generates target transmittance of each piece of glass corresponding to each audio data frame based on the target audio data, and sends the target transmittance of each piece of glass to the driving terminal, so that the driving terminal adjusts the transmittance of each piece of glass according to the target transmittance of each piece of glass. The sound processing subsystem may be an audio acquisition chip (sound card), for example.
The drive terminal includes at least one drive subsystem that controls the dimming glass through a single channel or multiple channels, each channel controlling one piece of dimming glass, such that each of the drive subsystems controls at least one piece of glass, illustratively, for a two-channel drive subsystem, each drive subsystem controls two pieces of dimming glass, and when the number of glasses of the display unit is 24, the drive terminal includes 12 two-channel drive subsystems. The driving subsystem is used for receiving the target transmittance of each piece of glass corresponding to each audio data frame sent by the sound processing subsystem; after the target transmittance corresponding to each audio data frame is obtained, the driving subsystem obtains the actual transmittance of the glass in each audio data frame in real time, and adjusts the control voltage of the dimming glass from the voltage corresponding to the actual transmittance to the voltage corresponding to the target transmittance through controlling the voltage adjusting circuit under the condition that the target transmittance is different from the actual transmittance, so that the actual transmittance is adjusted to the target transmittance.
In an optional implementation manner, the driving terminal further comprises a terminal control center, wherein the terminal control center is used for acquiring the transmittance sent by the sound processing subsystem and sending the transmittance of each piece of glass to the driving subsystem corresponding to each piece of glass according to the glass position or the glass number; the terminal control center is also used for reading the transmittance state of each module acquired by the glass driver and sending the transmittance state to the dimming system. Illustratively, the terminal control center controls the drive subsystem via a Modbus RTU protocol.
In an optional implementation manner, the dimming system further comprises a main control CPU, an uplink communication module, a downlink communication module and other auxiliary function modules, wherein the main control CPU is used for controlling execution logic in the dimming system; the uplink communication module is used for establishing data communication between the main control end and the audio acquisition subsystem, for example, the uplink communication module can be an Ethernet RJ45 interface; the downlink communication module is configured to establish data communication between the sound processing subsystem and the driving terminal, for example, the downlink communication module may be an RS485 bus.
In this embodiment of the present application, the master control side is further configured to switch the dimming mode to the manual mode when the audio mode is stopped, or based on a user requirement. When the dimming mode is the manual mode, the master control end is used for acquiring the self-defining information, generating a manual dimming instruction based on the self-defining information, and sending the self-defining information and the manual dimming instruction to the dimming system; the dimming system receives the self-defining information and the manual dimming instruction, and responds to the manual dimming instruction to send the self-defining information to the driving terminal; and responding to the self-defining information by the driving terminal, and respectively carrying out transmittance adjustment on the dimming glass corresponding to each glass number according to the glass number in the self-defining information and the bright state transmittance corresponding to each glass number.
In an optional embodiment, the driving terminal monitors the transmittance of each piece of dimming glass in real time, and when the transmittance changes in a manual mode or a sound mode, returns the change condition of the transmittance to the driving end through the dimming system so as to display the state change of the dimming glass on a display interface of the main control end in real time.
Based on the same inventive concept, an embodiment of the present application discloses a dimming glass control device, fig. 6 shows a schematic diagram of a dimming glass control device according to an embodiment of the present application, as shown in fig. 6, where the device includes:
the original audio data module is used for acquiring original audio data;
the data processing module is used for converting the original audio data into target audio data according to the audio acquisition frequency of the original audio data, wherein the target audio data comprises a plurality of audio data frames;
the target transmittance module is used for generating target transmittance of each piece of glass corresponding to each audio data frame based on the target audio data;
and the adjusting module is used for adjusting the transmittance of each glass according to the target transmittance of each glass.
In an alternative embodiment, the data processing module includes:
the first acquisition submodule is used for acquiring the audio acquisition frequency;
the first metadata sub-module is used for acquiring metadata acquired by the original audio data in unit time based on the audio acquisition frequency;
the first metadata section submodule is used for dividing metadata acquired by the original audio data in unit time into a plurality of first metadata sections by taking the glass refreshing frequency as a reference, and the number of the first metadata sections is smaller than or equal to the glass refreshing frequency;
A first audio data frame sub-module for determining the plurality of audio data frames based on the plurality of first metadata sections;
and the combining sub-module is used for combining the plurality of audio data frames into the target audio data.
In an alternative embodiment, the first audio data frame sub-module includes:
a metadata unit, configured to obtain, in a target metadata section, a plurality of metadata belonging to the target metadata section, where the target metadata section is any one of the plurality of first metadata sections;
and the maximum amplitude unit is used for determining metadata with the maximum amplitude from the metadata, and the metadata is used as the audio data frame corresponding to the target metadata section.
In an alternative embodiment, the data processing module further includes:
the second metadata sub-module is used for acquiring metadata acquired by the original audio data in unit time based on the audio acquisition frequency;
the second metadata section submodule is used for dividing metadata acquired by the original audio data in unit time into second metadata sections with target quantity, and the target quantity is smaller than or equal to the sum of glass refreshing frequencies of the display units;
A second audio data frame sub-module configured to determine the plurality of audio data frames based on the second metadata section, where each of the audio data frames corresponds to the second metadata section one-to-one;
and the splitting sub-module is used for splitting the audio data frame into a plurality of audio sub-data frames by taking the number of the display units as a reference, wherein each audio sub-data frame is used as the target audio data of each display unit in unit time, and the number of each audio sub-data frame is smaller than or equal to the glass refreshing frequency.
In an alternative embodiment, the target transmittance module includes:
the second acquisition submodule is used for acquiring the quantity of glass and the theoretical maximum amplitude;
a mapping coefficient sub-module for determining a mapping coefficient based on the theoretical maximum amplitude and the glass number;
the transmittance adjustment result submodule is used for acquiring a transmittance adjustment result corresponding to each audio data frame based on the plurality of audio data frames in the target audio data and the mapping coefficient, wherein the transmittance adjustment result is used for representing the number of bright state glass and the number of dark state glass;
And the target transmittance sub-module is used for generating the target transmittance of each piece of glass corresponding to each audio data frame based on the transmittance adjustment result.
In an alternative embodiment, the target transmittance submodule includes:
a first glass group unit configured to determine, as a first glass group, a plurality of glasses sequentially arranged in succession in the one-dimensional direction in the display unit within each of the audio data frames, the first glass group having the same number of glasses as the bright state glass;
a second glass group unit configured to determine, as a second glass group, glasses in the display unit that do not belong to the first glass group, the number of glasses of the second glass group being the same as the number of the dark state glasses;
a target transmittance unit configured to set a target transmittance of each glass in the first glass group to a bright state transmittance, and set a target transmittance of each glass in the second glass group to a dark state transmittance.
In an alternative embodiment, the apparatus further comprises:
the self-defining information module is used for obtaining self-defining information, wherein the self-defining information is used for representing the bright state transmittance and the glass number of the glass, and the bright state transmittance of the glass corresponding to different glass numbers is the same or different;
And the second adjusting module is used for adjusting the transmittance of each piece of glass according to the self-defined information.
In an alternative embodiment, the adjustment module includes:
the actual transmittance submodule is used for acquiring the transmittance of each piece of glass in real time in each audio data frame to serve as the actual transmittance;
and the adjusting submodule is used for comparing the actual transmittance with the target transmittance, and adjusting the actual transmittance of each piece of glass to be the target transmittance when the target transmittance is different from the actual transmittance.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purposes of the embodiments of the present application. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
Based on the same inventive concept, an embodiment of the present application discloses an electronic device, fig. 7 shows a schematic diagram of an electronic device according to an embodiment of the present application, and as shown in fig. 7, an electronic device 100 includes: the dimming glass control method comprises a memory 110 and a processor 120, wherein the memory 110 is in communication connection with the processor 120 through a bus, at least one instruction, at least one section of program, a code set or an instruction set is stored in the memory 110, and the at least one instruction, the at least one section of program, the code set or the instruction set can be loaded and run on the processor 120 to realize the steps in the dimming glass control method disclosed by the embodiment of the application.
Based on the same inventive concept, the embodiments of the present application disclose a computer readable storage medium having stored thereon at least one instruction, at least one program, a code set, or an instruction set, which is loaded and executed by a processor to implement the steps in the dimming glass control method disclosed in the embodiments of the present application.
Based on the same inventive concept, embodiments of the present application disclose a computer program product comprising a computer program/instructions which, when executed by a processor, implement the steps in the dimming glass control method disclosed in the embodiments of the present application.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus, electronic devices, and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present embodiments have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the present application.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or terminal device comprising the element.
The above describes in detail a method, a system, a device, an electronic apparatus and a storage medium for controlling dimming glass provided in the present application, and specific examples are applied to illustrate principles and embodiments of the present application, where the descriptions of the above examples are only used to help understand the method and core ideas of the present application; meanwhile, as those skilled in the art will have modifications in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (16)

1. A method of controlling a dimming glass, the method comprising:
acquiring original audio data;
converting the original audio data into target audio data according to the audio acquisition frequency of the original audio data, wherein the target audio data comprises a plurality of audio data frames;
generating target transmittance of each piece of glass corresponding to each audio data frame based on the target audio data;
and adjusting the transmittance of each piece of glass according to the target transmittance of each piece of glass.
2. The method according to claim 1, wherein the converting the original audio data into the target audio data according to the audio collection frequency of the original audio data comprises:
Acquiring the audio acquisition frequency;
acquiring metadata acquired by the original audio data in unit time based on the audio acquisition frequency;
dividing metadata acquired by the original audio data in unit time into a plurality of first metadata sections by taking a glass refreshing frequency as a reference, wherein the number of the first metadata sections is smaller than or equal to the glass refreshing frequency;
determining the plurality of frames of audio data based on the plurality of first metadata sections;
the plurality of frames of audio data are combined into the target audio data.
3. The method of claim 2, wherein the determining the plurality of audio data frames based on the first metadata section comprises:
acquiring a plurality of metadata belonging to a target metadata section in the target metadata section, wherein the target metadata section is any one of the plurality of first metadata sections;
and determining metadata with the maximum amplitude value from the metadata as the audio data frame corresponding to the target metadata section.
4. The method of claim 1, wherein a plurality of glass blocks form a plurality of display units, the glass blocks in each of the display units are sequentially arranged in a one-dimensional direction, and the converting the original audio data into the target audio data according to the audio collection frequency of the original audio data comprises:
Acquiring metadata acquired by the original audio data in unit time based on the audio acquisition frequency;
dividing metadata acquired by the original audio data in unit time into second metadata sections with target quantity, wherein the target quantity is smaller than or equal to the sum of glass refreshing frequencies of the display units;
determining the plurality of audio data frames based on the second metadata section, each audio data frame corresponding to the second metadata section one to one;
and dividing the audio data frame into a plurality of audio sub-data frames by taking the number of the display units as a reference, wherein each audio sub-data frame is used as the target audio data of each display unit in unit time, and the number of each audio sub-data frame is smaller than or equal to the glass refreshing frequency.
5. The method according to claim 1, wherein the number of audio data frames per unit time in the target audio data is less than or equal to a glass refresh frequency.
6. The method according to claim 5, wherein generating the target transmittance of each glass corresponding to each frame of the audio data based on the target audio data comprises:
Obtaining the quantity of glass and the theoretical maximum amplitude;
determining a mapping coefficient based on the theoretical maximum amplitude and the glass quantity;
based on the plurality of audio data frames in the target audio data and the mapping coefficient, obtaining a transmittance adjustment result corresponding to each audio data frame, wherein the transmittance adjustment result is used for representing the number of bright state glass and the number of dark state glass;
and generating the target transmittance of each piece of glass corresponding to each audio data frame based on the transmittance adjustment result.
7. The method according to claim 6, wherein a plurality of glasses form a display unit, the plurality of glasses in the display unit are sequentially arranged in a one-dimensional direction, the generating the target transmittance of each glass corresponding to each audio data frame based on the transmittance adjustment result comprises:
determining a plurality of pieces of glass sequentially and continuously arranged along the one-dimensional direction in the display unit as a first glass group in each audio data frame, wherein the number of the glass of the first glass group is the same as that of the bright state glass;
determining the glass which does not belong to the first glass group in the display unit as a second glass group, wherein the number of the glass of the second glass group is the same as that of the dark state glass;
Setting the target transmittance of each glass in the first glass group to be a bright state transmittance, and setting the target transmittance of each glass in the second glass group to be a dark state transmittance.
8. The method of claim 1, further comprising, in a manual mode:
obtaining custom information, wherein the custom information is used for representing the bright state transmittance and the glass number of the glass, and the bright state transmittance of the glass corresponding to different glass numbers is the same or different;
and adjusting the transmittance of each piece of glass according to the custom information.
9. The method according to claim 1, wherein the adjusting the transmittance of each glass according to the target transmittance of each glass comprises:
acquiring the transmittance of each piece of glass in real time in each audio data frame to serve as the actual transmittance;
and comparing the actual transmittance with the target transmittance, and adjusting the actual transmittance of each piece of glass to the target transmittance when the target transmittance is different from the actual transmittance.
10. A dimming glass control system, the system comprising:
The system comprises a main control end, a dimming system and a driving terminal, wherein the dimming system is respectively in communication connection with the main control end and the driving terminal, the driving terminal is used for adjusting the brightness of glass, and the main control end is used for determining a dimming mode of the dimming glass control system;
the dimming system for performing the dimming glass control method of any one of claims 1 to 9.
11. The dimming glass control system of claim 10, wherein the dimming modes include at least a sound mode and a manual mode; wherein,
the main control end is used for generating an audio acquisition instruction and sending the audio acquisition instruction to the dimming system under the condition that the dimming mode is the voice dynamic mode;
and under the condition that the dimming mode is the manual mode, the main control end is used for acquiring the self-defining information and sending the self-defining information to the driving terminal through the dimming system.
12. The dimming glass control system of claim 10, wherein the dimming system comprises an audio acquisition subsystem and a sound processing subsystem;
the audio acquisition subsystem is used for responding to the audio acquisition instruction sent by the main control end, acquiring original audio data and sending the original audio data to the sound processing subsystem, wherein the original audio data is real-time audio data and/or preset audio data;
The sound processing subsystem is used for converting the original audio data into target audio data according to the audio acquisition frequency of the original audio data, wherein the target audio data comprises a plurality of audio data frames;
the sound processing subsystem is further used for generating target transmittance of each piece of glass corresponding to each audio data frame based on the target audio data, and sending the target transmittance of each piece of glass to the driving terminal so that the driving terminal can adjust the transmittance of each piece of glass according to the target transmittance of each piece of glass.
13. The dimmed glass control system according to claim 12, wherein the drive terminal comprises at least one drive subsystem, each of the drive subsystems controlling at least one glass, wherein,
the driving subsystem is used for receiving the target transmittance of each piece of glass corresponding to each audio data frame;
the driving subsystem is further configured to obtain, in each audio data frame, a transmittance of glass in real time as an actual transmittance, and adjust the actual transmittance to the target transmittance when the target transmittance is different from the actual transmittance.
14. A dimming glass control device, the device comprising:
the original audio data module is used for acquiring original audio data;
the data processing module is used for converting the original audio data into target audio data according to the audio acquisition frequency of the original audio data, wherein the target audio data comprises a plurality of audio data frames;
the target transmittance module is used for generating target transmittance of each piece of glass corresponding to each audio data frame based on the target audio data;
and the adjusting module is used for adjusting the transmittance of each glass according to the target transmittance of each glass.
15. An electronic device comprising a memory, a processor and a computer program stored on the memory, the processor executing the computer program to perform the steps of the method of controlling a dimmed glass according to any one of claims 1 to 9.
16. A computer readable storage medium having stored thereon a computer program/instruction, which when executed by a processor, implements the steps of the method for controlling a dimmed glass according to any one of claims 1 to 9.
CN202311277324.5A 2023-09-28 2023-09-28 Dimming glass control method, system, device, electronic equipment and storage medium Pending CN117348280A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311277324.5A CN117348280A (en) 2023-09-28 2023-09-28 Dimming glass control method, system, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311277324.5A CN117348280A (en) 2023-09-28 2023-09-28 Dimming glass control method, system, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117348280A true CN117348280A (en) 2024-01-05

Family

ID=89362367

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311277324.5A Pending CN117348280A (en) 2023-09-28 2023-09-28 Dimming glass control method, system, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117348280A (en)

Similar Documents

Publication Publication Date Title
CN113613369B (en) Light effect control method, device, equipment and storage medium
CN105933762B (en) A kind of inter-linked controlling method and device of smart home
CN113613370A (en) Atmosphere lamp control method and device, computer readable storage medium and terminal
CN104538005A (en) Method for adjusting screen brightness
CN109491253B (en) Online learning type personalized intelligent home system and control method thereof
JP6876931B2 (en) Image processing device, image processing method, and program
CN104580701A (en) Terminal
CN108437890B (en) Control system and method for adjusting backlight of whole vehicle and vehicle
CN101552909A (en) Frame rate controlling method based on wireless video monitoring
CN107637176B (en) Controlling networked lighting devices
CN102123546A (en) Full-color acousto-optic conversion control method and system
CN109287046A (en) A kind of atmosphere lamp control method, device and system
CN204119620U (en) Lanterns controller, system and horse race lamp
CN113573442A (en) Method, apparatus, and computer-readable storage medium for audio control of scenes
CN117348280A (en) Dimming glass control method, system, device, electronic equipment and storage medium
CN114037717A (en) Synchronous control system and method for screen atmosphere lamp
CN100508677C (en) Method and apparatus for controlling LED indicating lamp
CN112165750A (en) LED lamp control method, device and system and computer readable storage medium
CN112533334A (en) Lighting control method, power box, lighting terminal and system based on power supply line
CN106454554A (en) Ambient light television time synchronizing method and ambient light television
CN110830678B (en) Multi-channel video signal synchronous output method, device, system and medium
WO2023282425A3 (en) Electronic device, system, and method for intelligent horizontal-vertical image transform
CN111279277B (en) Demonstration control method, device, electronic equipment and system based on multipoint matrix
CN114222411B (en) PC digital audio/video rhythm control method and device and storage medium
CN107229337B (en) VR display system and method

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