Ship model test pool wave making machine control system and method based on face recognition
Technical Field
The invention relates to a wave generator control system, in particular to a ship model test pool wave generator control system based on face recognition and a control method thereof.
Background
The ship model test pool is an important facility for carrying out ship performance research and test, and is a place for ship model test. The large-scale equipment in ocean engineering basically needs to be subjected to a pool model test before launching, and reliable ship motion data and structural stress conditions are obtained through the test, so that a reliable basis is provided for the design of ocean equipment.
The wave generator control system of the ship model test pool is the most core system, and generally needs to be operated by a special person or a person after training and authorization so as to avoid the fault of the wave generator caused by misoperation. However, due to the fact that the ship model test period is long, managers cannot supervise and manage the ship model on site for 24 hours, unauthorized persons can often operate the wave generator, and great hidden dangers are brought to normal use of the wave generator.
In the ship model test, the use flow and input parameters of the wave generator are strictly specified, and an operator must operate the wave generator according to the strict specification. However, at present, the operation process and the input parameters of the operator are not managed and controlled, and the traceability cannot be performed even when the operator goes wrong.
At present, in a ship model test, no good protection measures are provided for experimental data collected by a wave generator system, various personnel copy and modify the experimental data at will, garbage data are retained in a control system for a long time, the performance of the wave generator system is negatively affected, and the safety of the experimental data cannot be guaranteed.
Disclosure of Invention
The invention aims to provide a ship model test pool wave maker control system based on face recognition and a control method thereof, aiming at the problems and the defects of the ship model test pool wave maker control system.
The invention can realize the operation authority management of the wave making machine control system, backtrack the operation process of the wave making machine control system and protect and clean the experimental data collected by the wave making machine control system.
In order to achieve the purpose, the invention adopts the following technical scheme to realize the purpose:
a ship model test pool wave maker control system based on face recognition comprises a face recognition control module, a wave maker control module, a motion controller, a wave maker, a cloud server and a terminal.
The face recognition control module is connected with the wave generation control module through the internet and used for exchanging data with the wave generation control module.
The wave-making control module is connected with the motion controller through an RJ-45 interface and used for sending instructions to the motion controller; the device is connected with a testing instrument through interfaces such as a USB (universal serial bus), a serial port and the like and is used for acquiring experimental data.
The wave generator is an electric push plate type wave generator.
The motion controller is connected with the wave generator through a CAN bus and sends a motion command to control the wave generator to move.
The wave making machine moves according to the motion instruction to make appointed waves in the ship model test water pool.
The terminal is connected with the face recognition control module through the internet and used for shooting a face image of an operator to detect and recognize and sending a control instruction to the face recognition control module, and a notebook computer or a smart phone with a camera is preferably adopted.
The cloud server is connected with the face recognition control module through the Internet and is used for receiving user authority identification information of the face recognition control module; and the device is connected with the wave-making control module through the Internet and is used for receiving the acquired experimental data.
The face recognition control module consists of a face detection program module, a feature extraction program module, a face recognition program module, a control program module and a face feature database and is installed on a network server.
The wave generating control module consists of an industrial personal computer provided with wave generating control software.
The motion controller is a network-based multi-axis mechanical motion controller, preferably an Elmo Gold Maestro series motion controller.
A control method of a ship model test pool wave maker control system based on face recognition comprises the following steps:
the method comprises the following steps: the administrator conducts operation training on wave making machine operators in the test, authorization is conducted after the training is qualified, face image data of specified operators are transmitted to the face recognition control module through the camera of the terminal, and after the face recognition control module processes the face image data, face features are stored in the face feature database.
Step two: before the test, a power supply of a wave-making control module is turned on, an operator logs in a face recognition control module through the Internet by using a terminal to perform face recognition verification, an operation interface of a control program module is displayed after the verification is passed, and if the verification is not passed for three times, the system is locked and needs to be unlocked by an administrator;
step three: an operator inputs wave-making parameters such as period, wave height and the like on an operation interface of the control program module by using a terminal, and clicks a wave-making starting button; the face recognition control module starts face recognition verification, judges whether an operator is an authorized operator or not, and after the verification is passed, a control program module in the face recognition control module sends a network data packet in which a wave making parameter and a wave making starting field are packaged to the wave making control module through the Internet; giving a prompt if the verification is not passed;
step four: after receiving the network data packet which encapsulates the wave making parameters and the starting wave making field, the wave making control module calculates the amplitude pushing value of the wave making machine push plate according to the wave making parameters and sends a motion instruction to the motion controller;
step five: the motion controller sends a motion data signal to a driver of the wave maker according to the received motion instruction, and drives a push plate of the wave maker to move so as to generate waves;
step six: acquiring experimental data (such as wave height, force, motion and the like), transmitting the experimental data to a wave-making control module through interfaces such as a USB (universal serial bus), a serial port and the like for temporary storage, after the data acquisition is finished, packaging the experimental data into a network data packet by the wave-making control module through the Internet, transmitting the network data packet to a cloud server for storage to form a file, and then deleting the temporarily stored data by the wave-making control module;
step seven: an operator requests to check or download experimental data on an operation interface of the control program module by using a terminal, the face recognition control module starts face recognition verification to judge whether the operator is authorized, and after the verification is passed, the control program module in the face recognition control module sends a network data packet in which a data request instruction is packaged to the cloud server through the Internet; giving a prompt if the verification is not passed;
step eight: after receiving the network data packet packaged with the request data instruction, the cloud server establishes connection with the terminal through the internet and transmits experimental data, an operator checks or stores the data through the terminal, and after transmission is finished, the cloud server is disconnected from the terminal and writes a transmitted data event into an operation log.
Compared with the prior art, the invention has the characteristics and beneficial effects that:
1. the authority control of operators of the wave generator system can be realized, only authorized operators can operate the wave generator, and the damage to the wave generator caused by improper operation is avoided to the maximum extent;
2. all the operations of the wave making machine by the operators can be traced on the operation log of the cloud server by the administrator, and the responsibility can be conveniently determined if an accident occurs;
3. the acquired experimental data are stored on the cloud server, no redundant data are stored in the wave-making control module, and only authorized operators have rights to check and download the data, so that the data security and the wave-making control module security are effectively ensured.
Drawings
FIG. 1 is a schematic block diagram of a ship model test pool wave maker control system based on face recognition;
FIG. 2 is a block diagram schematically illustrating the construction of a face recognition control module;
FIG. 3 is a flow chart of a control method of a ship model test pool wave maker control system based on face recognition.
The specific implementation mode is as follows:
the following describes in detail a control system and a control method for a water tank wave maker for a ship model test based on face recognition with reference to the accompanying drawings and specific embodiments.
As shown in fig. 1-2, the ship model test water pool wave-making machine control system based on face recognition of the present invention includes a cloud server 1, an internet 2, a face recognition control module 3, a terminal 4, a wave-making control module 5, a motion controller 6, and a wave-making machine 7.
The face recognition control module 3 is connected with the wave generation control module 5 through the internet 2 and is used for exchanging data with the wave generation control module 5.
The wave-making control module 5 is connected with the motion controller 6 through an RJ-45 interface and is used for sending instructions to the motion controller 6; the device is connected with a testing instrument through interfaces such as a USB (universal serial bus), a serial port and the like and is used for acquiring experimental data.
The wave generator 7 is an electric push plate type wave generator.
The motion controller 6 is connected with the wave generator 7 through a CAN bus and sends a motion instruction to control the motion of the wave generator 7.
The wave generator 7 moves according to the motion instruction to generate the appointed wave in the ship model test pool.
The terminal 4 is connected with the face recognition control module 3 through the internet 2 and is used for shooting a face image of an operator to detect and recognize the face image and sending a control instruction to the face recognition control module 3.
The cloud server 1 is connected with the face recognition control module 3 through the internet 2 and is used for receiving user authority identification information of the face recognition control module 3; and the device is connected with the wave generation control module 5 through the internet 2 and is used for receiving the collected experimental data.
The face recognition control module 3 is composed of a face detection program module 3-1, a feature extraction program module 3-2, a face recognition program module 3-4, a control program module 3-5 and a face feature database 3-3 and is installed on a network server.
The wave-making control module 5 is composed of an industrial personal computer provided with wave-making control software.
In the following embodiments, the terminal 4 preferably employs a notebook computer or a smart phone with a camera, the motion controller 6 preferably employs an Elmo Gold Maestro series motion controller, and the specific implementation flow is as shown in fig. 3, and a control method of a ship model test pool wave-making machine control system based on face recognition includes the following specific contents and steps:
1. the administrator trains the wave generator operators in the test, authorizes after the training is qualified, transmits the face image data of the specified operators to a face detection program module 3-1 of a face recognition control module 3 through a camera of a terminal 4, the face detection program module 3-1 detects face images and carries out preprocessing, then the face images are sent to a feature extraction program module 3-2 to carry out face feature extraction, and the extracted face feature data are stored in a face feature database 3-3.
2. Before the test, the power supply of the wave-making control module 5 is turned on, an authorized operator logs in the face recognition control module 3 through the internet 2 by using the terminal 4, and face recognition verification is started. The face detection program module 3-1 detects a face image and carries out preprocessing, then the face image is sent to the feature extraction program module 3-2 to carry out face feature extraction, face recognition is carried out by the face recognition program module 3-4 after face features are extracted, the face recognition program module 3-4 compares the obtained face feature data with face feature data existing in the face feature database 3-3, after comparison, a recognition result is sent to the control program module 3-5, if the recognition result is that verification is passed, an operation interface of the control program module is displayed, if the recognition result of three times is that verification is not passed, the face recognition control module 3 is locked, and a manager is required to carry out face recognition and input a password to implement an unlocking system.
3. Authorized operators input wave-making parameters such as period, wave height and the like required by the test working condition on the operation interface of the program control module by using the terminal 4, and click a start wave-making button; the face recognition control module 3 starts face recognition verification, judges whether the operator is an authorized operator, and sends a network data packet which encapsulates wave generation parameters and a starting wave generation field to the wave generation control module 5 through the internet 2 by a control program module 3-5 in the face recognition control module 3 after the verification is passed, wherein the starting wave generation field is 0 to indicate that no wave is generated, 1 to indicate that a regular wave is generated, and 2X (X is a natural number) to indicate that irregular waves of different types are generated. Meanwhile, the control program module 3-5 also sends the network data packet which encapsulates the wave-making parameter and the wave-making starting field to the cloud server 1 through the internet 2, and writes an operation log; if the verification is not passed, a prompt is given, and authorized personnel are required to operate the system.
4. After receiving the network data packet in which the wave-making parameter and the start wave-making field are encapsulated, the wave-making control module 5 calculates the amplitude pushing value of the wave-making machine push plate according to the wave-making parameter, and sends a motion instruction to the motion controller 6.
5. The motion controller 6 sends a motion data signal to a driver of the wave generator 7 according to the received motion command, and drives a push plate of the wave generator 7 to move so as to generate waves.
6. The tester starts to collect experimental data (such as wave height, force, motion and the like), and transmits the experimental data to the wave-making control module 5 through interfaces such as a USB (universal serial bus) and a serial port for temporary storage, after the data collection is finished, the wave-making control module 5 encapsulates the experimental data into a network data packet through the Internet 2 and transmits the network data packet to the cloud server 1 for storage to form a data file, and after the data collection is successful, the cloud server 1 transmits a notification message data packet through the Internet 2 to the wave-making control module 5 to delete the temporarily stored data.
7. Authorized operators use the terminal 4 to request to check or download experimental data on the control program module operation interface, the face recognition control module 3 starts face recognition verification to judge whether the operators are authorized operators, and after the verification is passed, the control program module 3-5 in the face recognition control module 3 sends a network data packet which encapsulates a request data instruction to the cloud server 1 through the internet 2; if the verification is not passed, a prompt is given, and authorized personnel are required to operate the system.
8. After receiving the network data packet in which the request data instruction is packaged, the cloud server 1 establishes connection with the terminal 4 through the internet 2, transmits experimental data, allows an operator to check or store the data through the terminal 4, and after transmission is completed, the cloud server 1 disconnects connection with the terminal 4 and writes a transmitted data event into an operation log.