CN109408943A - A kind of water spray control method, apparatus, system and storage medium - Google Patents
A kind of water spray control method, apparatus, system and storage medium Download PDFInfo
- Publication number
- CN109408943A CN109408943A CN201811219302.2A CN201811219302A CN109408943A CN 109408943 A CN109408943 A CN 109408943A CN 201811219302 A CN201811219302 A CN 201811219302A CN 109408943 A CN109408943 A CN 109408943A
- Authority
- CN
- China
- Prior art keywords
- fountain
- array data
- layer
- sent
- dot array
- 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
Links
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 title claims abstract description 69
- 239000007921 spray Substances 0.000 title claims abstract description 59
- 238000000034 method Methods 0.000 title claims abstract description 31
- 238000003860 storage Methods 0.000 title claims abstract description 22
- 238000013507 mapping Methods 0.000 claims abstract description 81
- 238000004088 simulation Methods 0.000 claims abstract description 40
- 230000000694 effects Effects 0.000 claims abstract description 25
- 238000004422 calculation algorithm Methods 0.000 claims abstract description 21
- 238000012790 confirmation Methods 0.000 claims abstract description 15
- 238000004590 computer program Methods 0.000 claims description 15
- 239000011159 matrix material Substances 0.000 claims description 12
- 238000004891 communication Methods 0.000 claims description 10
- 230000005540 biological transmission Effects 0.000 claims description 9
- 238000009432 framing Methods 0.000 claims description 5
- 239000000284 extract Substances 0.000 claims description 3
- 230000006870 function Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000006243 chemical reaction Methods 0.000 description 3
- 230000007613 environmental effect Effects 0.000 description 3
- 230000002349 favourable effect Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 235000013399 edible fruits Nutrition 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 238000007689 inspection Methods 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 241000842962 Apoda limacodes Species 0.000 description 1
- 239000008186 active pharmaceutical agent Substances 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000008451 emotion Effects 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000001151 other effect Effects 0.000 description 1
- 230000037361 pathway Effects 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 230000035939 shock Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- Geometry (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Special Spraying Apparatus (AREA)
Abstract
The invention discloses a kind of water spray control method, apparatus, system and storage medium, method includes: the multimedia messages being configured in preset fountain array of figure for receiving user terminal and sending.Multimedia messages are converted to dot array data by mapping algorithm, analogue simulation are carried out according to dot array data and fountain array of figure, and the fountain dot array data that analogue simulation generates is sent to the user terminal, so that user terminal shows the effect of analog simulation.After receiving the confirmation message of user terminal, fountain dot array data is sent to host computer, so that host computer generates LED-lattice Control information according to the fountain dot array data received and is sent to slave computer;Fountain LED-lattice Control information is sent to water spray control device by slave computer, so that water spray control device controls the operation of the water pump, lamp, motor in fountain according to LED-lattice Control information.The present invention can show that most complex scenarios can freely adjust fountain array layout, and the emulation preview function with effect of fountain.
Description
Technical field
The present invention relates to fountain technical applications, more particularly to a kind of water spray control method, apparatus, system and deposit
Storage media.
Background technique
With the improvement of living standards, people are higher and higher to environmental requirement, urban environmental protection is increasingly by people's weight
Depending on.Music fountain continuously emerges in urban environmental protection as a kind of very high artistic water scenery of ornamental value.Music fountain control
System is classified as several periods using the physics waveform of music file, and precision is up to ten milliseconds, and automatic identification shock, think of
The basic emotion feature of the melodies such as thought, lyric, happy, impassioned, grieved, cheerful and light-hearted, ardent, is converted to control signal, by synchronization
The specific control unit in periphery is output to by signal output card after processing, i.e., according to water type configuration rule control immersible pump, electromagnetism
The executing agencies such as valve, subaqueous festoon lamp and frequency converter, visual experience and auditory perception are combined together.
In the prior art, music fountain control system passes through the multiple spray heads of arrangement mostly, adjusts each spray head according to music
The fountains of different shapes such as being swung left and right of the water column of ejection, height variation.But fountain water column is only adjusted according to music
Height and other effects, bandwagon effect is single, can not more complicated scene, be not able to satisfy the actual demand of different audiences.Fountain system
Scalability of uniting is poor, maintenance is inconvenient.System upgrade transformation needs that control system, communication system etc. is largely transformed.Not yet
There is the emulation preview function of effect of fountain, the desired effect of fountain can not be assessed.
Summary of the invention
A kind of water spray control method, apparatus, system and the storage medium that the embodiment of the present invention proposes.The present invention can be shown
Show a variety of multimedia messages, show most complex scenarios and favorable expandability, can freely adjust fountain array layout, and there is fountain effect
The emulation preview function of fruit.
In a first aspect, the embodiment of the present invention provides a kind of water spray control method, comprising:
Receive the multimedia messages being configured in preset fountain array of figure that user terminal is sent;Wherein, the fountain
It include at least one fountain point in array of figure;
The multimedia messages are converted to dot array data by mapping algorithm, according to the dot array data and the spray
Spring array of figure carries out analogue simulation, and the fountain dot array data that analogue simulation generates is sent to the user terminal, so that user
Terminal shows the effect of analog simulation;Wherein, the fountain dot array data includes each fountain point in the fountain in specified region
State;
After the confirmation message for receiving the user terminal, the fountain dot array data is sent to host computer, so that
The host computer is obtained to generate LED-lattice Control information according to the fountain dot array data received and be sent to slave computer;Under described
The fountain LED-lattice Control information is sent to water spray control device by position machine, so that the water spray control device is according to the dot matrix control
The operation of water pump, lamp, motor in information control fountain processed.
Further, when the multimedia messages are text information, the multimedia messages are turned by mapping algorithm
It is melted into dot array data, specifically:
The text that user terminal inputs is converted figure by calling system fontlib, and the figure is imported upper figure layer;
The upper figure layer and the preset fountain array of figure positioned at lower figure layer are subjected to mapping matching, to obtain the fountain
The mapping area that array of figure is covered by the upper figure layer;
The average RGB color value of the mapping area is calculated, to obtain each fountain dotted state in the mapping area;
Corresponding dot array data is generated according to each fountain dotted state in the map section, and is sent to described upper
Machine.
Further, when the multimedia messages are pictorial information, the multimedia messages are turned by mapping algorithm
It is melted into dot array data, specifically:
Picture is extracted, and the picture is imported into upper figure layer;
The upper figure layer and the preset fountain array of figure positioned at lower figure layer are subjected to mapping matching, to obtain the fountain
The mapping area that array of figure is covered by the upper figure layer;
The average RGB color value of the mapping area is calculated, to obtain each fountain lighting in the mapping area
State;
Corresponding dot array data is generated according to the state of each fountain point in the map section, and is sent to described upper
Machine.
Further, when the multimedia messages are video information, the multimedia messages are turned by mapping algorithm
It is melted into dot array data, specifically:
Video is subjected to framing and extracts picture;The picture is imported into upper figure layer;
The upper figure layer and the preset fountain array of figure positioned at lower figure layer are subjected to mapping matching, to obtain the fountain
The mapping area that array of figure is covered by the upper figure layer;
The average RGB color value of the mapping area is calculated, to obtain each fountain lighting in the mapping area
State;
Corresponding dot array data is generated according to the state of each fountain point in the map section, and is sent to described upper
Machine.
Further, the upper figure layer and the preset fountain array of figure positioned at lower figure layer are subjected to mapping matching, to obtain
The mapping area that the fountain array of figure is covered by the upper figure layer is obtained, specifically:
The upper figure layer and the preset fountain array of figure positioned at lower figure layer are overlapped, and when the spray for judging lower figure layer
When the pixel of fountain point in spring array of figure changes, then confirm that the fountain point is covered by the upper figure layer, and be labeled as
Covering point;
After traversing the lower figure layer, the markd covering point of institute of the fountain array of figure is obtained, and is covered according to described
Lid point obtains mapping area.
Further, the fountain dotted state includes the color of the lamp of each fountain point and the brightness of lamp.
Second aspect, the embodiment of the present invention provide a kind of water spray control device, comprising:
Receiving module, for receiving the multimedia messages of user terminal transmission being configured in preset fountain array of figure;
It wherein, include at least one fountain point in the fountain array of figure;
Analogue simulation module, for the multimedia messages to be converted to dot array data by mapping algorithm, according to described
Dot array data and the fountain array of figure carry out analogue simulation, and the fountain dot array data that analogue simulation generates is sent to use
Family terminal, so that user terminal shows the effect of analog simulation;Wherein, the fountain dot array data includes the spray in specified region
The brightness of the spray regime of each fountain point, lamp color and lamp in spring;
Sending module, for after the confirmation message for receiving the user terminal, the fountain dot array data to be sent
To host computer, so that the host computer generates LED-lattice Control information according to the fountain dot array data received and is sent to
Slave computer;The LED-lattice Control information is sent to water spray control device by the slave computer so that the water spray control device according to
The operation of water pump, lamp, motor in the LED-lattice Control information control fountain.
The third aspect, the embodiment of the present invention provide a kind of fountain control system, comprising: service platform, operating system and
User terminal;
The user terminal, for the multimedia messages being configured in preset fountain array of figure to be sent to the service
Platform;
The service platform, for receiving the multimedia letter of user terminal transmission being configured in preset fountain array of figure
Breath;It wherein, include at least one fountain point in the fountain array of figure;And the multimedia messages are converted by mapping algorithm
At dot array data, analogue simulation is carried out according to the dot array data and the fountain array of figure, and analogue simulation is generated
Fountain dot array data is sent to the user terminal.
The user terminal shows the effect of analog simulation after being also used to receive the fountain dot array data that service platform is sent
Fruit, and the confirmation message of the simulation effect is sent to the service platform;
The service platform is also used to after the confirmation message for receiving the user terminal, by the fountain dot matrix
Data are sent to host computer;
The operating system generates point according to the fountain dot array data after receiving the fountain dot array data
Battle array control information, so that the water spray control device controls water pump, lamp, electricity in fountain according to the fountain LED-lattice Control information
The operation of machine.
Further, the operating system includes host computer, slave computer, wireless communication module, the first bus module, bus
Hub, the second bus module, controller, motor, water pump and lamp;
The host computer, for receive service platform transmission fountain dot array data after, according to the fountain dot matrix
Data generate LED-lattice Control information, and are transmitted to the slave computer by wireless communication module;
The slave computer for receiving the fountain LED-lattice Control information, and is sent to by the first bus module described
Bus hub;
The bus hub connects the second bus module, so that the second bus module quantity and the bus collection
Line device quantity quantity is identical.
The controller, for the fountain LED-lattice Control information to be generated control instruction, so that motor is controlled, water pump,
The operation of lamp.
Fourth aspect, the present invention provide a kind of computer readable storage medium, and the computer readable storage medium includes
The computer program of storage, wherein control in computer program operation and set where the computer readable storage medium
The standby water spray control method executed as described in relation to the first aspect.
The implementation of the embodiments of the present invention has the following beneficial effects:
The present invention is converted to the multimedia messages through mapping algorithm by the multimedia messages for inputting user terminal
The operation of LED-lattice Control instruction control water pump, lamp, motor, to show multimedia messages, show most complex scenarios (such as text, figure
Piece, video etc.), and the fountain system favorable expandability, fountain array layout can be freely adjusted, without to control system
It is largely transformed, i.e. fountain system upgrading is at low cost.By carrying out simulation demo effect to the dot array data, have
The emulation preview function of effect of fountain facilitates adjustment, reduces operating cost, user-friendly system is to being customized of fountain
Display service.
Detailed description of the invention
In order to illustrate more clearly of technical solution of the present invention, attached drawing needed in embodiment will be made below
Simply introduce, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present invention, general for this field
For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow diagram for water spray control method that first embodiment of the invention provides.
Fig. 2 provides upper figure layer and lower figure layer mapping structure figure for the embodiment of the present invention.
Fig. 3 is the mapping algorithm that water spray control method multimedia messages provided in an embodiment of the present invention are converted to dot array data
Flow chart.
Fig. 4 is a kind of structural schematic diagram for water spray control device that second embodiment of the invention provides.
Fig. 5 is a kind of fountain control system first structure diagram that third embodiment of the invention provides.
Fig. 6 is the second structural schematic diagram of a kind of fountain control system that third embodiment of the invention provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
First embodiment of the invention:
Referring to Fig. 1 to Fig. 3, the embodiment of the present invention provides a kind of water spray control method, comprising:
S10 receives the multimedia messages being configured in preset fountain array of figure that user terminal is sent;Wherein, described
It include at least one fountain point in fountain array of figure.
In the present embodiment, the multimedia messages can be text, picture, video.The input of the multimedia messages
Approach has text box input (input text), handwriting pad input (input text, picture), picture input (input picture), video
It inputs (input video), dot matrix etc., in another embodiment, the import pathway mouse of the multimedia messages is directly set
Input (operating cursor to input text, picture) is drawn, the present embodiment is not particularly limited herein.
The multimedia messages are converted to dot array data by mapping algorithm, according to the dot array data and institute by S20
It states fountain array of figure and carries out analogue simulation, and the fountain dot array data that analogue simulation generates is sent to the user terminal, so that
User terminal shows the effect of analog simulation;Wherein, the fountain dot array data includes each fountain in the fountain in specified region
The state of point.
In the present embodiment, the fountain dotted state includes the color of the lamp of each fountain point and the brightness of lamp.
In the present embodiment, the multimedia messages are converted to dot array data by mapping algorithm, specifically:
In one implementation: when the multimedia messages are text information, calling system fontlib is defeated by user
The text entered is converted into figure, and the figure is imported upper figure layer.By the upper figure layer and the preset spray positioned at lower figure layer
Spring array of figure carries out mapping matching, to obtain the mapping area that the fountain array of figure is covered by the upper figure layer.Described in calculating
The average RGB color value of mapping area, to obtain each fountain dotted state in the mapping area.According in the map section
Each fountain dotted state generate corresponding dot array data, and be sent to the host computer.
In another implementation: when the multimedia messages are pictorial information, extracting picture, and by the picture
Figure layer in importing;The upper figure layer and the preset fountain array of figure positioned at lower figure layer are subjected to mapping matching, described in obtaining
The mapping area that fountain array of figure is covered by the upper figure layer.The average RGB color value of the mapping area is calculated, to obtain
State each fountain dotted state in mapping area.Corresponding dot matrix number is generated according to each fountain dotted state in the map section
According to, and it is sent to the host computer.
In another implementation: when the multimedia messages are video information, video being subjected to framing and is extracted
Picture;The picture is imported into upper figure layer;The upper figure layer and the preset fountain array of figure positioned at lower figure layer are mapped
Matching, to obtain the mapping area that the fountain array of figure is covered by the upper figure layer.Calculate the average RGB of the mapping area
Color value, to obtain each fountain dotted state in the mapping area.According to each fountain dotted state in the map section
Corresponding dot array data is generated, and is sent to the host computer.
In the present embodiment, it should be noted that by the upper figure layer and the preset fountain array of figure positioned at lower figure layer
Mapping matching is carried out, to obtain the mapping area that the fountain array of figure is covered by the upper figure layer, specifically:
The upper figure layer and the preset fountain array of figure positioned at lower figure layer are overlapped, and when the spray for judging lower figure layer
When the pixel of fountain point in spring array of figure changes, then confirm that the fountain point is covered by the upper figure layer, and be labeled as
Covering point.After traversing the lower figure layer, the markd covering point of institute of the fountain array of figure is obtained, and according to the covering
Point obtains mapping area.Specifically, referring to fig. 2, black box is fountain array of figure (corresponding lower figure layer), each roundlet in figure in figure
Represent a fountain point in fountain array of figure.When the fountain point is shown as hollow, indicate the fountain point do not work, do not spray water,
Lamp does not work;When the fountain point is shown as solid, then it represents that fountain point work, water spray, lamp are bright.Solid color indicates the fountain
The color of point light.Blue box is input frame (figure layer in correspondence).Text to be shown, picture, video is shown in this frame.
The frame can be scaled arbitrarily, rotated, be dragged.The key of dot matrix mapping algorithm is to be overlapped upper figure layer and lower figure layer, in turn
Determine the state (whether choose, the corresponding lamp color of the point etc.) of each fountain point in dot matrix.
An application scenarios of the present embodiment are explained in detail below:
Referring to fig. 2, when the multimedia messages are text, text to be shown is inputted in text box, then in P2
In the font type (Song typeface, lishu etc.) of text, color etc. are configured;After determining input, P3 calling system character library, P4 will
Text is shown in input frame one by one, figure layer in formation;P5 to size, position, angle of input frame (figure layer in correspondence) etc. into
Any adjustment of row;After determining input frame, P6 selects the following figure layer region mapped according to the position of upper figure layer, only right
Fountain point in the region is handled;Upper figure layer, lower figure layer are overlapped by P7, i.e., by the every of the lower figure layer in mapping area
The pixel of one pixel upper figure layer corresponding with the location of pixels is overlapped;After superposition, P8 is to each in mapping area
Fountain point is judged, is indicated on the fountain point if the pixel within the scope of the corresponding circle of fountain point changes
The content of figure layer covers, so that the fountain point must work, need to spray water.If pixel does not change, then it represents that the fountain point is not
It needs work, need to spray water.When the fountain point, which corresponds to the pixel within the scope of circle, to be changed, their average RGB is calculated
Color value, and the color of the lamp as the fountain point.After completing mapping, P9 by the state of dot matrix (each point whether work
Work, the color of lamp and brightness of lamp etc.) it is packaged.Certainly, it should be noted that can also when multimedia messages are text
The data of hand-written version to be imported into input frame (upper figure layer) using the API of P11 handwriting pad, are moved by P13 using mouse
Dynamic cursor, directly write, map in input frame (upper figure layer) region, the picture of selection imported by P15 input frame (on
Figure layer) in, here, the present invention is not particularly limited.In addition, when the multimedia messages video input, using P17 by video
It carries out framing (video interception), choosing needs frame to be shown, setting display time interval etc., then by P15 by the figure of selection
Piece is imported into input frame (upper figure layer), is then reflected according to the process completion with the part P5 to P9 in text box input process
It penetrates.In another mode, when directly setting dot matrix inputs, by P19 using mouse directly in the fountain dot matrix frame (following figure
Layer) in, selection needs the point of work;P20 sets the color (color of the lamp of the point in corresponding fountain array) of selected element
It sets;Then mapping is partially completed according to the P9 in text box input process.
The fountain dot array data is sent to host computer after the confirmation message for receiving the user terminal by S30,
So that the host computer generates LED-lattice Control information according to the fountain dot array data received and is sent to slave computer;Institute
It states slave computer and the fountain LED-lattice Control information is sent to water spray control device, so that the water spray control device is according to the point
The operation of water pump, lamp, motor in battle array control information control fountain.
In the present embodiment, after the confirmation information signal for receiving the user terminal, user terminal is full to simulation effect
It is paid after meaning, the payment method has wechat, Alipay, Internetbank etc..After confirmation payment, server sends fountain point
Battle array data are to host computer.The fountain dot array data received is sent to slave computer by wireless communication mode by host computer, the next
After machine receives fountain LED-lattice Control information, water spray control device is sent to by bus module, so that the water spray control device root
According to the operation of water pump, lamp, motor in LED-lattice Control information control fountain.It is, of course, understood that slave computer can be with
Fountain state is sent to host computer by wireless telecommunications.Fountain state can also be sent to bottom by bus by controller
Machine.
The present invention is converted to the multimedia messages through mapping algorithm by the multimedia messages for inputting user terminal
The operation of LED-lattice Control instruction control water pump, lamp, motor, to show multimedia messages, show most complex scenarios (such as text, figure
Piece, video etc.), and the fountain system favorable expandability, fountain array layout can be freely adjusted, without to control system
It is largely transformed, i.e. fountain system upgrading is at low cost.By carrying out simulation demo effect to the dot array data, have
The emulation preview function of effect of fountain facilitates adjustment, reduces operating cost, user-friendly system is to being customized of fountain
Display service.
Second embodiment of the invention:
Second embodiment of the invention provides a kind of water spray control device, comprising:
Receiving module 100, for receiving the multimedia letter of user terminal transmission being configured in preset fountain array of figure
Breath;It wherein, include at least one fountain point in the fountain array of figure;
Analogue simulation module 200, for the multimedia messages to be converted to dot array data by mapping algorithm, according to institute
It states dot array data and the fountain array of figure carries out analogue simulation, and the fountain dot array data that analogue simulation generates is sent to
User terminal, so that user terminal shows the effect of analog simulation;Wherein, the fountain dot array data includes specified region
The brightness of the spray regime of each fountain point, lamp color and lamp in fountain;
Sending module 300, for after the confirmation message for receiving the user terminal, the fountain dot array data to be sent out
It send to host computer, so that the host computer generates LED-lattice Control information according to the fountain dot array data received and sends
To slave computer;The LED-lattice Control information is sent to water spray control device by the slave computer, so that the water spray control device root
According to the operation of water pump, lamp, motor in LED-lattice Control information control fountain.
The analogue simulation module 200 is also used to when the multimedia messages are text information, calling system fontlib
Figure is converted by the text that user inputs, and the figure is imported into upper figure layer;By the upper figure layer and it is preset be located under
The fountain array of figure of figure layer carries out mapping matching, to obtain the mapping area that the fountain array of figure is covered by the upper figure layer;
The average RGB color value of the mapping area is calculated, to obtain each fountain dotted state in the mapping area;According to described
Each fountain dotted state in map section generates corresponding dot array data, and is sent to the host computer.
Conversion module 200 is also used to extract picture, and the picture is imported upper figure layer;By the upper figure layer and preset
The fountain array of figure positioned at lower figure layer carry out mapping matching, being reflected with obtaining the fountain array of figure by what the upper figure layer covered
Penetrate region;The average RGB color value of the mapping area is calculated, to obtain each fountain dotted state in the mapping area;
Corresponding dot array data is generated according to each fountain dotted state in the map section, and is sent to the host computer.
Conversion module 200 is also used to that video is carried out framing and extracts figure when the multimedia messages are video information
Piece;The picture is imported into upper figure layer;The upper figure layer and the preset fountain array of figure positioned at lower figure layer are subjected to mapping
Match, to obtain the mapping area that the fountain array of figure is covered by the upper figure layer;Calculate the average RGB face of the mapping area
Color value, to obtain each fountain dotted state in the mapping area;It is raw according to each fountain dotted state in the map section
At corresponding dot array data, and it is sent to the host computer.
Third embodiment of the invention:
Third embodiment of the invention provides a kind of fountain control system, comprising: service platform C, operating system A and user
Terminal B;
The user terminal B, for the multimedia messages being configured in preset fountain array of figure to be sent to the clothes
Business platform;
The service platform C, for receiving the multimedia of user terminal B transmission being configured in preset fountain array of figure
Information;It wherein, include at least one fountain point in the fountain array of figure;And the multimedia messages are turned by mapping algorithm
It is melted into dot array data, analogue simulation is carried out according to the dot array data and the fountain array of figure, and analogue simulation is generated
Fountain dot array data be sent to the user terminal B.
The user terminal B shows analog simulation after being also used to receive the fountain dot array data that service platform C is sent
Effect, and the confirmation message of the simulation effect is sent to the service platform C;
The service platform C is also used to after the confirmation message for receiving the user terminal B, by the fountain point
Battle array data are sent to host computer;
The operating system A generates point according to the fountain dot array data after receiving the fountain dot array data
Battle array control information, so that the water spray control device controls water pump, lamp, electricity in fountain according to the fountain LED-lattice Control information
The operation of machine.
Preferably, the operating system A include host computer 4, slave computer 6, wireless communication module 5, the first bus module 7,
Bus hub 8, the second bus module 15, controller 9, motor 1, water pump 11 and lamp 12;
The host computer 4, for being given birth to according to the dot array data after the dot array data for receiving service platform C transmission
The slave computer is transmitted at LED-lattice Control information, and by wireless communication module 5;The slave computer 6, for receiving the point
Battle array control information, and the bus hub is sent to by 7 pieces of the first bus mould;The bus hub 8, by the second bus
Module 15 is connected, so that 15 quantity of the second bus module is identical as the 8 quantity quantity of bus hub.The controller 9,
For the LED-lattice Control information to be generated control instruction, so that motor 1 is controlled, water pump 11, the operation of lamp 12.
In the present embodiment, the mobile terminal that user uses may be selected to allow fountain to spray different effects (such as text, figure
Piece, video), and the fountain time next time can be reserved with the status information of real time inspection fountain.The mobile terminal that user uses, can
Selection allows fountain to spray different effects (such as text, picture, video), and can be with the status information of real time inspection fountain, in advance
About fountain time next time.
Fourth aspect, the present invention provide a kind of computer readable storage medium, and the computer readable storage medium includes
The computer program of storage, wherein control in computer program operation and set where the computer readable storage medium
The standby water spray control method executed as described in above-described embodiment.
Illustratively, computer program described in fourth embodiment of the invention can be divided into one or more moulds
Block, one or more of modules are stored in the memory, and are executed by the processor, to complete the present invention.
One or more of modules can be the series of computation machine program instruction section that can complete specific function, which is used for
Implementation procedure of the computer program in the realization server apparatus is described.For example, institute in second embodiment of the invention
The device stated.
Alleged processor can be central processing unit (Central Processing Unit, CPU), can also be it
His general processor, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng the processor is the control centre of the water spray control method, utilizes various interfaces and the connection entirely realization
The various pieces of water spray control method.
The memory can be used for storing the computer program and/or module, and the processor is by operation or executes
Computer program in the memory and/or module are stored, and calls the data being stored in memory, realizes fountain
The various functions of control method.The memory can mainly include storing program area and storage data area, wherein storing program area
It can application program (such as sound-playing function, text conversion function etc.) needed for storage program area, at least one function etc.;
Storage data area, which can be stored, uses created data (such as audio data, text message data etc.) etc. according to mobile phone.This
Outside, memory may include high-speed random access memory, can also include nonvolatile memory, such as hard disk, memory, insert
Connect formula hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash memory
Block (Flash Card), at least one disk memory, flush memory device or other volatile solid-state parts.
Wherein, if the module for realizing service equipment is realized in the form of SFU software functional unit and as independent production
Product when selling or using, can store in a computer readable storage medium.Based on this understanding, the present invention realizes
All or part of the process in above-described embodiment method can also instruct relevant hardware to complete by computer program,
The computer program can be stored in a computer readable storage medium, which is being executed by processor
When, it can be achieved that the step of above-mentioned each embodiment of the method.Wherein, the computer program includes computer program code, described
Computer program code can be source code form, object identification code form, executable file or certain intermediate forms etc..The meter
Calculation machine readable medium may include: can carry the computer program code any entity or device, recording medium, USB flash disk,
Mobile hard disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory
Device (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It needs to illustrate
It is that the content that the computer-readable medium includes can be fitted according to the requirement made laws in jurisdiction with patent practice
When increase and decrease, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium does not include electric carrier wave letter
Number and telecommunication signal.
It should be noted that the apparatus embodiments described above are merely exemplary, wherein described be used as separation unit
The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with
It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual
It needs that some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.In addition, device provided by the invention
In embodiment attached drawing, the connection relationship between module indicate between them have communication connection, specifically can be implemented as one or
A plurality of communication bus or signal wire.Those of ordinary skill in the art are without creative efforts, it can understand
And implement.
The foregoing is only a preferred embodiment of the present invention, but scope of protection of the present invention is not limited thereto,
In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by anyone skilled in the art,
It should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with scope of protection of the claims
Subject to.
Claims (10)
1. a kind of water spray control method characterized by comprising
Receive the multimedia messages being configured in preset fountain array of figure that user terminal is sent;Wherein, the fountain array
It include at least one fountain point on figure;
The multimedia messages are converted to dot array data by mapping algorithm, according to the dot array data and the fountain battle array
Column figure carries out analogue simulation, and the fountain dot array data that analogue simulation generates is sent to the user terminal, so that user terminal
Show the effect of analog simulation;Wherein, the fountain dot array data includes the state of each fountain point in the fountain in specified region;
After the confirmation message for receiving the user terminal, the fountain dot array data is sent to host computer, so that institute
Host computer is stated to generate LED-lattice Control information according to the fountain dot array data received and be sent to slave computer;The slave computer
The fountain LED-lattice Control information is sent to water spray control device, so that the water spray control device is believed according to the LED-lattice Control
The operation of water pump, lamp, motor in breath control fountain.
2. water spray control method according to claim 1, which is characterized in that when the multimedia messages are text information
When, the multimedia messages are converted to dot array data by mapping algorithm, specifically:
The text that user terminal inputs is converted figure by calling system fontlib, and the figure is imported upper figure layer;
The upper figure layer and the preset fountain array of figure positioned at lower figure layer are subjected to mapping matching, to obtain the fountain array
The mapping area that figure is covered by the upper figure layer;
The average RGB color value of the mapping area is calculated, to obtain each fountain dotted state in the mapping area;
Corresponding dot array data is generated according to each fountain dotted state in the map section, and is sent to the host computer.
3. water spray control method according to claim 1, which is characterized in that when the multimedia messages are pictorial information
When, the multimedia messages are converted to dot array data by mapping algorithm, specifically:
Picture is extracted, and the picture is imported into upper figure layer;
The upper figure layer and the preset fountain array of figure positioned at lower figure layer are subjected to mapping matching, to obtain the fountain array
The mapping area that figure is covered by the upper figure layer;
The average RGB color value of the mapping area is calculated, to obtain the state of each fountain lighting in the mapping area;
Corresponding dot array data is generated according to the state of each fountain point in the map section, and is sent to the host computer.
4. water spray control method according to claim 1, which is characterized in that when the multimedia messages are video information
When, the multimedia messages are converted to dot array data by mapping algorithm, specifically:
Video is subjected to framing and extracts picture;The picture is imported into upper figure layer;
The upper figure layer and the preset fountain array of figure positioned at lower figure layer are subjected to mapping matching, to obtain the fountain array
The mapping area that figure is covered by the upper figure layer;
The average RGB color value of the mapping area is calculated, to obtain the state of each fountain lighting in the mapping area;
Corresponding dot array data is generated according to the state of each fountain point in the map section, and is sent to the host computer.
5. water spray control method according to claim 1, which is characterized in that the upper figure layer is located at lower figure layer with preset
Fountain array of figure carry out mapping matching, to obtain the mapping area that the fountain array of figure is covered by the upper figure layer, specifically
Are as follows:
The upper figure layer and the preset fountain array of figure positioned at lower figure layer are overlapped, and when the fountain battle array for judging lower figure layer
When the pixel of the fountain point of Lie Tunei changes, then confirm that the fountain point is covered by the upper figure layer, and labeled as covering
Point;
After traversing the lower figure layer, the markd covering point of institute of the fountain array of figure is obtained, and according to the covering point
Obtain mapping area.
6. a kind of control method of fountain point according to claim 1, which is characterized in that the fountain dotted state includes every
The color of the lamp of a fountain point and the brightness of lamp.
7. a kind of water spray control device characterized by comprising
Receiving module, for receiving the multimedia messages of user terminal transmission being configured in preset fountain array of figure;Wherein,
It include at least one fountain point in the fountain array of figure;
Analogue simulation module, for the multimedia messages to be converted to dot array data by mapping algorithm, according to the dot matrix
Data and the fountain array of figure carry out analogue simulation, and the fountain dot array data that analogue simulation generates is sent to user's end
End, so that user terminal shows the effect of analog simulation;Wherein, the fountain dot array data includes in the fountain in specified region
The brightness of the spray regime of each fountain point, lamp color and lamp;
Sending module, for after the confirmation message for receiving the user terminal, the fountain dot array data to be sent to
Position machine, so that the host computer generates LED-lattice Control information according to the fountain dot array data received and is sent to bottom
Machine;The LED-lattice Control information is sent to water spray control device by the slave computer, so that the water spray control device is according to
LED-lattice Control information controls the operation of the water pump, lamp, motor in fountain.
8. a kind of fountain control system characterized by comprising service platform, operating system and user terminal;
The user terminal is flat for the multimedia messages being configured in preset fountain array of figure to be sent to the service
Platform;
The service platform, for receiving the multimedia messages of user terminal transmission being configured in preset fountain array of figure;
It wherein, include at least one fountain point in the fountain array of figure;And the multimedia messages are converted to by mapping algorithm
Dot array data carries out analogue simulation, and the spray that analogue simulation is generated according to the dot array data and the fountain array of figure
Spring dot array data is sent to the user terminal.
The user terminal shows the effect of analog simulation after being also used to receive the fountain dot array data that service platform is sent, and
The confirmation message of the simulation effect is sent to the service platform;
The service platform is also used to after the confirmation message for receiving the user terminal, by the fountain dot array data
It is sent to host computer;
The operating system generates dot matrix control according to the fountain dot array data after receiving the fountain dot array data
Information processed, so that the water spray control device controls water pump, lamp, motor in fountain according to the fountain LED-lattice Control information
Operation.
9. a kind of fountain control system according to claim 7, which is characterized in that the operating system include host computer,
Slave computer, wireless communication module, the first bus module, bus hub, the second bus module, controller, motor, water pump and
Lamp;
The host computer, for receive service platform transmission fountain dot array data after, according to the fountain dot array data
LED-lattice Control information is generated, and the slave computer is transmitted to by wireless communication module;
The slave computer is sent to the bus for receiving the fountain LED-lattice Control information, and by the first bus module
Hub;
The bus hub connects the second bus module, so that the second bus module quantity and the bus hub
Quantity quantity is identical.
The controller, for the fountain LED-lattice Control information to be generated control instruction, so that motor is controlled, water pump, lamp
Operation.
10. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium includes the calculating of storage
Machine program, wherein equipment where controlling the computer readable storage medium in computer program operation is executed as weighed
Benefit require any one of 1 to 6 described in water spray control method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811219302.2A CN109408943A (en) | 2018-10-19 | 2018-10-19 | A kind of water spray control method, apparatus, system and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811219302.2A CN109408943A (en) | 2018-10-19 | 2018-10-19 | A kind of water spray control method, apparatus, system and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109408943A true CN109408943A (en) | 2019-03-01 |
Family
ID=65468479
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811219302.2A Pending CN109408943A (en) | 2018-10-19 | 2018-10-19 | A kind of water spray control method, apparatus, system and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109408943A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111968357A (en) * | 2020-08-17 | 2020-11-20 | 杭州西湖喷泉设备成套有限公司 | Remote wireless control system |
CN113009848A (en) * | 2021-02-08 | 2021-06-22 | 南京理工大学紫金学院 | Intelligent music fountain distributed control method and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1329946A (en) * | 2000-06-18 | 2002-01-09 | 朱纪南 | Computer controlled dot matrix type multi-colour music fountain and its water control scheme |
US20110295391A1 (en) * | 2010-05-25 | 2011-12-01 | Siemens Product Lifecycle Management Software Inc. | Method and System for Closed-Loop Controller Programming |
CN105785906A (en) * | 2016-04-19 | 2016-07-20 | 东莞市环宇文化科技有限公司 | Matrix fountain control system based on video control |
CN108335343A (en) * | 2018-03-15 | 2018-07-27 | 北京中科水景科技有限公司 | Fountain previews emulation mode, system and server |
-
2018
- 2018-10-19 CN CN201811219302.2A patent/CN109408943A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1329946A (en) * | 2000-06-18 | 2002-01-09 | 朱纪南 | Computer controlled dot matrix type multi-colour music fountain and its water control scheme |
US20110295391A1 (en) * | 2010-05-25 | 2011-12-01 | Siemens Product Lifecycle Management Software Inc. | Method and System for Closed-Loop Controller Programming |
CN105785906A (en) * | 2016-04-19 | 2016-07-20 | 东莞市环宇文化科技有限公司 | Matrix fountain control system based on video control |
CN108335343A (en) * | 2018-03-15 | 2018-07-27 | 北京中科水景科技有限公司 | Fountain previews emulation mode, system and server |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111968357A (en) * | 2020-08-17 | 2020-11-20 | 杭州西湖喷泉设备成套有限公司 | Remote wireless control system |
CN113009848A (en) * | 2021-02-08 | 2021-06-22 | 南京理工大学紫金学院 | Intelligent music fountain distributed control method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109783182A (en) | A kind of method of adjustment, device, equipment and the medium of page subject matter tone | |
CN110210889A (en) | Creation method, device and the computer equipment of marketing activity information | |
CN106934693A (en) | The ceramic tile selection method and system shown in VR scenes based on AR product models | |
CN109979430B (en) | Robot story telling method and device, robot and storage medium | |
WO2021237434A1 (en) | Display screen configuration method, apparatus and system, and computer-readable storage medium | |
CN108961157A (en) | Image processing method, picture processing unit and terminal device | |
CN109408943A (en) | A kind of water spray control method, apparatus, system and storage medium | |
CN106412010A (en) | Remote LED display screen control system based on mobile phone mobile terminal and application method | |
CN104978186A (en) | Interface skin rendering method and apparatus | |
CN108992926A (en) | Based on recognition of face game login method, device and computer readable storage medium | |
CN107609907A (en) | The regulation and control method and device of advertisement position | |
CN112619154A (en) | Processing method and device of virtual model and electronic device | |
CN107276893A (en) | mode adjusting method, device, terminal and storage medium | |
CN115454561A (en) | Customized interface display method, device, equipment and storage medium | |
CN109760067B (en) | Intelligent robot system and equipment capable of playing cards | |
CN104793937B (en) | A kind of startup control method and device | |
CN113034658B (en) | Method and device for generating model map | |
CN117455753B (en) | Special effect template generation method, special effect generation device and storage medium | |
CN108805095A (en) | image processing method, device, mobile terminal and computer readable storage medium | |
CN112070190A (en) | System and method for burning information of movable field lamp and field lamp control system | |
CN110211006A (en) | Contract Risk analysis method, device and storage medium | |
CN109191539A (en) | Oil painting generation method, device and computer readable storage medium based on image | |
CN213244400U (en) | Lamp bar capable of burning seat information and field lamp control system | |
CN108280657A (en) | A kind of autonomous recharge method based on dynamic two-dimension code | |
CN112614049A (en) | Image processing method, image processing device, storage medium and terminal |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190301 |
|
RJ01 | Rejection of invention patent application after publication |