A kind of multi-media classroom computer excess detection method and device
Technical field
The present invention relates to Teaching Technology of Multimedia field, more particularly to a kind of multi-media classroom computer excess detection method and
Device.
Background technology
With the rapid development of information technology, the traditional system of education for resting on " chalk, blackboard " natural mode is subject to by force
Strong impact.At present, computer media is just being impregnated with each corner of social life, it will greatly improve the work of people
Efficiency changes people’s lives looks.High performance campus multimedia system has become at present weighs school's ability and level
An indispensable hardware facility, teacher can be by multimedia teaching come guiding student, while student is to this acoustic image and cyclopentadienyl
Teaching method is also easier to understand and receive.
But the computer of student side leads to not normal boot-strap since long-term use is often present with various problems, together
When multi-media classroom lack a kind of mode for facilitating computer glitch quantity in detection classroom, the meeting when computer glitch quantity is excessive again
The situation that the inadequate student of computer quantity is caused to use, seriously affects the teaching of teacher.
The content of the invention
The object of the present invention is to provide a kind of multi-media classroom computer excess detection methods, can pass through the color in camera
Mark sensor identifies computer and sends a signal to PLC controller, if computer glitch quantity is more than setting value, PLC controller meeting
It gives notice signal to staff.
Above-mentioned technical purpose technical scheme is that:A kind of multi-media classroom computer surplus detection side
Method, including:1)Teacher side control student side start;2)Camera near student side starts shooting and identifies electricity by color mark sensor
Whether brain is already powered on, and feeds back corresponding signal respectively to PLC controller; 3)PLC controller carries out surplus system according to feedback signal
Meter, obtains surplus statistical value x;4)PLC controller compared with setting surplus, sets surplus statistical value x if surplus statistical value x is more than
Determine surplus, then signal of giving notice automatically;5)Camera shuts down, and normally attends class;6)Teacher side controls student side after End-of-Course
Shutdown, PLC controller reset.
By using above-mentioned technical proposal, PLC controller can carry out surplus statistics according to feedback signal and obtain surplus system
Evaluation x, surplus statistical value x are compared with setting surplus, if surplus statistical value x is more than setting surplus, PCL sends logical automatically
Know signal, staff is notified to prepare to come to repair;It does not give notice signal if setting surplus is not above, normally attends class.
It is further arranged to:The color mark sensor carries out computer display screen edge detection, and the wherein distribution at edge is used
Gradient represents, for two-dimensional function f(X, y), the form of vector can be defined as, then is had:
, the gradient magnitude of the vector can with absolute value come
Approximate representation:, wherein x, y are respectively the coordinate acquisition point of color mark sensor.
By using above-mentioned technical proposal, color mark sensor can calculate the gradient magnitude G of outgoing vector(X, y)And it feeds back to
PLC controller, above-mentioned algorithm can lead to the gradient magnitude G for a large amount of vectors of coordinate acquisition point acquisition for changing color mark sensor(X, y)
Improve accuracy, while approximate calculation can guarantee accordingly reduces calculation amount while result is accurate.
It is further arranged to:The PLC controller carries out surplus system according to the gradient magnitude G (x, y) for receiving several vectors
Meter, draws feedback signal 1 and feedback signal 0, and wherein surplus statistical value x is the quantity of feedback signal 0.
By using above-mentioned technical proposal, PLC controller draws feedback by processing if student side computer normal boot-strap
Signal 1 can not draw feedback signal 0 if normal boot-strap if student side computer, be distinguish between.
It is further arranged to:Described to set surplus=2/3* (A-B), A is the total student side computer quantity in classroom in formula, and B is
The student's quantity attended class, and meet a little must be into, if surplus statistical value x is more than setting surplus, PLC controller starts notification signal.
By using above-mentioned technical proposal, setting surplus is set, and compared with the surplus statistical value x of statistics, if
Surplus statistical value x is more than setting surplus, represents that the computer quantity of failure is excessive, PLC controller can give notice signal to work
Personnel notify staff to prepare repair.
It is further arranged to:The teacher side control student side start, was opened by the delay rear cameras of 2 minutes.
By using above-mentioned technical proposal, the time of 2 minutes can ensure that the computer of student side all has been switched on, and then open again
It opens camera to be identified, improves the accuracy of the feedback signal of camera.
It is a further object of the present invention to provide a kind of multi-media classroom computer allowance detectors, and color is set on camera
Mark sensor is acquired computer screen and feeds back to PLC controller, is rotated by 90 °, shows by turntable if computer glitch
The computer of anticipating breaks down.
Above-mentioned technical purpose technical scheme is that:Amount detection device more than a kind of multi-media classroom computer
It puts, several student sides being connected including teacher side and with teacher side, further includes PLC controller, the student side includes display
Device and camera, the camera is located at the prism of indicator screen and can capture the picture of indicator screen, described to take the photograph
Aberration identification can be simultaneously carried out as head is provided with color mark sensor, according to the result feedback signal that aberration identifies to PLC controller.
By using above-mentioned technical proposal, teacher side connection student side can simultaneously control the opening and closing of student side computer,
Whether camera is provided with color mark sensor, and the aberration of screen can be detected by color mark sensor, so as to judge computer
It starts shooting and feedback signal is to PLC controller.
It is further arranged to:The student side further includes turntable, and the display is fixedly connected on the top of turntable,
Driving mechanism is provided on the turntable, which is controlled by PLC controller.
By using above-mentioned technical proposal, PLC controller can pass through the rotation of driving mechanisms control turntable, turntable
It is fixedly connected with display, when turntable rotates display can be driven to rotate together, the angle of rotation is preferably 90 degree, is passed through
Observation, it is easy to just can distinguish the display for having rotated and not rotated.
In conclusion the invention has the advantages that:By color mark sensor in camera to computer monitor screen
Curtain is detected, and feedback signal is to PLC controller.The computer to break down is rotated by 90 °, and facilitates differentiation, while PLC is controlled
Device carries out surplus statistics according to feedback signal, if failure computer is more than setting quantity, PLC controller can give notice signal to work
Come to repair as personnel, realize the computer glitch management process of automation, be not required whether staff detects computer in real time
It breaks down, is also avoided that the inadequate situation of the upper class hour computer of student.
Description of the drawings
Fig. 1 is the apparatus structure schematic diagram processed in embodiment;
Fig. 2 is the control method flow chart of embodiment.
In figure:1st, teacher side;2nd, student side;3rd, PLC controller;4th, display;5th, turntable;6th, camera.
Specific embodiment
The present invention is described in further detail below in conjunction with attached drawing.
With reference to figure 1, a kind of multi-media classroom computer allowance detector, if be connected including teacher side and with teacher side
Dry student side, teacher side can control the open and close of computer in student side, further include control terminal PLC controller, PLC controls
Device connects teacher side and student side, and can control teacher side and the equipment in student side.Student side includes host computer, display
Device, turntable and camera, wherein camera are located at the prism of indicator screen and can capture the picture of indicator screen
Face, camera is provided with color mark sensor simultaneously can carry out aberration identification to the screen of display, anti-according to the result that aberration identifies
Feedback signal is to PLC controller.Aberration identification principle be:The surrounding of indicator screen respectively has a black surround, when screen is in black
Aberration will not be generated during screen state between black surround, color mark sensor does not recognize aberration at this time;When indicator screen is normal
It is present with picture when brightening, in screen and generates apparent aberration with the black surround of surrounding, color mark sensor can recognize that color at this time
Difference.Specifically:Color mark sensor carries out edge detection to computer display screen, and the wherein distribution at edge is represented with gradient, for
Two-dimensional function f(X, y), the form of vector can be defined as, then is had:
, the gradient magnitude of the vector can with absolute value come
Approximate representation:, wherein x, y are respectively the coordinate acquisition point of color mark sensor.Colour code senses
Coordinate acquisition point in device can be moved along the track set, wherein being collected the ladder of display surrounding black surround part vector in advance
Spend amplitude G1(X, y), the gradient magnitude G that can detect corresponding coordinate vector is moved by collection point(X, y)If by comparing two
Person's value is equal, then it represents that the coordinate also for black state and sends invalid signals to PLC controller, and the seat is represented if unequal
Color is marked as other colors in addition to black, sends useful signal to PLC controls.Above-mentioned coordinate collection point one shares 800*
600, based on substantial amounts of coordinate collection point, point-device data can be obtained by PLC.Compare useful signal and invalid letter
Number, it is contemplated that display desktop may have the presence of black, therefore it is 800*600*1% to set threshold value a N, the threshold value N,
If the quantity of useful signal is greater than or equal to threshold value N, then it represents that indicator screen is normally lighted, and PLC controls to obtain a feedback
Signal 1;If the quantity of useful signal is less than threshold value N, PLC controller obtains a feedback signal 0, represents that event occurs for display
Hinder and cannot be started up.
In addition, display is located at the top of turntable and is fixedly connected with turntable, turntable can be carried out week by shaft
To rotation, when turntable rotates display can be driven to rotate together, PLC controller can control the rotation of turntable.It is described
Multi-media classroom for pole domain electronic software, and the teaching software pair that teacher side passes through multimedia teaching of riding the waves in multi-media classroom
Student side is controlled, and the PLC controller selects Siemens 6ES7314-6CH04-0AB0 programmable PLC controllers, institute
The color mark sensor stated is KT6W-2.
With reference to figure 1 and Fig. 2, first, after teacher side clicks on the order of student side start, the computer in student side is opened
Machine opens camera afterwards.In order to ensure that computer is complete start in student side before camera is opened, therefore in student side
Camera is then turned on after being delayed 2 minutes when computer receives power-on command and starts shooting, 2 minutes computers is have passed through and is also not keyed up illustrating to be somebody's turn to do
Computer has occurred and that failure leads to not normal boot-strap, carries out aberration identification by color mark sensor in camera again at this time, can
Ensure the aberration accuracy collected.If display can not normal boot-strap, PLC controller by handle color mark sensor feed back
Useful signal and invalid signals after, can draw a feedback signal 0;If display energy normal boot-strap, PLC controller pass through
After the useful signal and invalid signals that handle color mark sensor feedback, a feedback signal 1 can be drawn;Then PLC controller connects
Surplus statistics is carried out after receiving feedback signal, is then added up to feedback signal 0, to feedback signal 1 without accumulative, according to institute
The feedback signal for having color mark sensor in student side is handled by each, and finally add up out a surplus statistical value x.In addition, work as
Computer in the student side breaks down, and PLC controller can make turntable rotate one by the driving mechanism in turntable at this time
Determine angle, the computer above turntable is fixedly connected with turntable, therefore can also turntable be followed to rotate together, and signal should
Computer breaks down can not normal use.Above-mentioned driving mechanism is motor, and PLC controller controls the rotation of turntable by motor
Turn, while for more directly observation, the angle initialization of rotation is 90 degree.
Afterwards by surplus statistical value x compared with setting surplus, wherein setting surplus=2/3* (total student sides in classroom
Quantity-student's quantity), and meet a little must be into.For example total student side quantity is 60 in the A of classroom, carrys out student's quantity that classroom A attends class
For 50, then surplus=2/3* is set(60-50), decimal is met to click through one, therefore result is 7.If surplus statistical value x is more than at this time
7, then it represents that computer glitch quantity is more than specified quantity, and PLC controller can send a notification signal to staff, and work people
Member prepares to come to safeguard;If at this time surplus statistical value x be less than or equal to 7, then it represents that computer glitch quantity in fixed quantity,
PLC controller is without respective handling.
After PLC controller carries out surplus comparison, PLC controller sends closing to the camera in all student sides
It orders and all cameras is controlled to shut down, the shutdown of camera can prevent the factors such as personnel's movement from bringing maloperation, influence to take the photograph
As the acquisition accuracy of the color mark sensor in head.It is normally carried out attending class afterwards, teacher side clicks on student side after End-of-Course
After shutdown command, computer shuts down in student side.PLC controller is resetted after receiving the shutdown command of teacher side, surplus statistics
It is worth clear 0, while PLC controller also can have been rotated through 90 degree of turntable edge original according to control turntable Reset, i.e. control
Path is become a full member, and is recovered to initial position.Total computer quantity in each classroom has fixed wherein in surplus setting value, and on
Student's quantity of class is inputted by before class teacher in the computer of teacher side, then controls student side power-on command in teacher side
Calculate setting surplus automatically afterwards, if teacher does not input, the value for setting surplus is defaulted as 7.
This specific embodiment is only explanation of the invention, is not limitation of the present invention, people in the art
Member can as needed make the present embodiment the modification of no creative contribution after this specification is read, but as long as at this
It is all protected in the right of invention be subject to Patent Law.