Disclosure of Invention
The invention aims to provide an automatic closing device and method for classroom lighting facilities, which can automatically detect whether personnel exist in a certain area within a set time threshold, and close the lighting device if no personnel exist, but the area with the personnel is not affected, and even if no personnel exist in the certain area, the lighting facilities are not immediately closed, but are closed after the set time threshold is reached, so that frequent switching of the lighting facilities can be avoided, the service life of the lighting facilities is prolonged, the hardware cost is low, the connection is convenient, the implementation is easy, the energy conservation and emission reduction are facilitated, and the automatic closing device and the method have practical application and popularization values.
In order to achieve the purpose, the invention provides the following scheme:
a classroom lighting fixture automatic shut down device, the classroom lighting fixture automatic shut down device comprising:
the image acquisition unit is used for acquiring image information in the classroom;
the image processing unit is connected with the image acquisition unit and is used for dividing the layout of the lighting facilities in the classroom corresponding to the image information into a plurality of areas and detecting whether people exist in each area to form a detection result;
the switch unit is arranged corresponding to the layout of the lighting facilities in the classroom and is used for controlling the on-off of the lighting facilities in the classroom;
the timing units are respectively arranged corresponding to the areas;
and the control unit is respectively connected with the image processing unit, the timing unit and the switch unit and used for generating a starting control signal or a standby control signal according to the detection result, controlling the timing unit to start or stop timing, and generating a closing control signal when the timing unit times to a time threshold value so as to control the switch unit in a corresponding area in the classroom to be closed.
Optionally, the image acquisition unit is a spherical camera.
Optionally, the switching unit comprises:
the relay is connected with the control unit and used for disconnecting the normally closed contact under the control of the closing control signal;
a contact switch for controlling the on/off of the lighting fixture;
and the undervoltage release is respectively connected with the relay and the contact switch, and when the normally closed contact of the relay is disconnected, the armature of the undervoltage release bounces off due to voltage drop, so that a hasp lever of the contact switch is bounced off.
Optionally, the control unit comprises:
and the storage module is used for storing working day time intervals, corresponding to working days, of the image information acquired by the image acquisition unit, non-working day time intervals, corresponding to non-working days, of the image information acquired by the image acquisition unit, and a set time threshold.
Optionally, the control unit further comprises:
the first judging module is arranged corresponding to each area, is respectively connected with the image processing unit and the timing unit, and is used for judging whether the timing unit of the current area starts timing or not when the detection result indicates that no person exists in the current area, and generating a first judgment result;
the second judgment module is respectively connected with the image processing unit, the timing unit and the image acquisition unit and is used for judging whether the timing unit is started to time when the detection result indicates that personnel exist in the current area, generating a second judgment result, and controlling the image acquisition unit to continue to acquire image information when the second judgment result indicates that the timing unit is not started;
the third judging module is respectively connected with the first judging module, the image acquisition unit and the storage module, and is used for judging whether the timing unit times to a time threshold value when the first judging result is that the timing unit starts timing, generating a third judging result, and controlling the image acquisition unit to continue to acquire image information when the third judging result is that the timing unit does not reach the time threshold value;
the first control module is respectively connected with the first judgment module, the second judgment module, the third judgment module, the timing unit and the switch unit, and is used for generating a starting control signal to control the timing unit to start timing when the first judgment result indicates that the timing unit does not start timing; when the second judgment result is that the timing unit starts timing, generating a standby control signal, controlling the timing unit to be set to zero and standby, and controlling the image acquisition unit to continue to acquire image information; and when the third judgment result is that the timing unit counts the time threshold, generating a standby control signal, controlling the timing unit to be set to zero and standby, and generating a closing control signal to control the switch unit to be closed.
Optionally, the control unit further comprises:
the fourth judging module is used for judging whether the current time is a working day or not and generating a fourth judging result;
and the second control module is respectively connected with the fourth judging module, the storage module and the image acquisition unit and is used for controlling the image acquisition unit to acquire the image information in the classroom according to the working day time interval when the fourth judging result is that the current time is the working day, and controlling the image acquisition unit to acquire the image information in the classroom according to the non-working day time interval when the fourth judging result is that the current time is the non-working day.
Optionally, the control unit further comprises:
the fifth judging module is used for judging whether the current system time is the night time or not and generating a fifth judging result;
and the third control module is respectively connected with the fifth judging module and the switch unit and is used for controlling all the switch units to be switched off and closing all the lighting facilities in the classroom when the fifth judging result shows that the current system time is the night time.
Optionally, the classroom lighting facility automatic shutdown device further comprises:
the first communication unit is respectively connected with the image processing unit and the control unit and is used for transmitting the processed image information to the control unit;
and the second communication unit is respectively connected with the control unit and the switch unit and is used for transmitting the closing control signal to the switch unit.
In order to achieve the above purpose, the invention also provides the following scheme:
a classroom lighting facility automatic shutdown method, the classroom lighting facility automatic shutdown method comprising:
collecting image information in a classroom;
dividing the layout of the lighting facilities in the classroom corresponding to the image information into a plurality of areas;
respectively detecting whether personnel exist in each area to form a detection result;
controlling a timer to start timing or stop timing according to the detection result;
and when the timer counts to a time threshold value, controlling the lighting facilities of the corresponding area in the classroom to be closed.
Optionally, when the timer times out the time threshold, controlling lighting facilities in a corresponding area in the classroom to be turned off specifically includes:
when the detection result indicates that no person exists in the current area, judging whether a timer of the current area starts to time or not, and generating a first judgment result;
when the detection result indicates that personnel exist in the current area, judging whether the timer is started to time or not, and generating a second judgment result; when the second judgment result is that the timer is not started, returning to continue collecting the image information;
when the second judgment result is that the timer is started to count, controlling the timer to be set to zero and stand by, and returning to continue to acquire image information;
when the first judgment result is that the timer is started to time, judging whether the timer times to a time threshold value or not, and generating a third judgment result; when the third judgment result is that the timer does not reach the time threshold, returning to continue to collect the image information;
when the first judgment result is that the timer is not started to time, controlling the timer to start to time and continuously collecting image information;
and when the third judgment result is that the timer counts the time threshold, controlling the timer to be set to zero and standby, and controlling the switch unit to be closed.
According to the specific embodiment provided by the invention, the invention discloses the following technical effects: the invention collects images in the classroom through the image collecting unit, divides the images into a plurality of areas according to the layout of lighting facilities in the classroom, the control unit detects whether personnel exist in each area or not, the timing unit is controlled to start or stop timing according to the detection result, when the timing unit times to the time threshold value, the switch unit of the corresponding area in the classroom is controlled to be closed, so that the automatic acquisition is realized, whether personnel exist in a certain area in the classroom within the set time threshold value is detected, if no personnel exist, the lighting device is closed, the area with the personnel is not influenced, even if a certain area has no personnel, the lighting facilities are not immediately turned off, but are turned off after waiting for a set time threshold, the lighting device can be prevented from being frequently switched on and off, the service life of the lighting device is prolonged, the hardware cost is low, the connection is convenient, the implementation is easy, the energy conservation and emission reduction are facilitated, and the lighting device has practical application and popularization values.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention aims to provide an automatic closing device and method for a classroom lighting facility, which can avoid frequent switching of the lighting facility and prolong the service life of the lighting facility by automatically acquiring and detecting whether a person exists in a certain area in a classroom within a set time threshold, closing the lighting device if no person exists, and not influencing the area with the person, so that the lighting facility is not immediately closed even if no person exists in the certain area, but is closed after the set time threshold is reached, and the automatic closing device and the automatic closing method have the advantages of low hardware cost, convenience in connection, easiness in implementation, energy conservation and emission reduction, practical application and popularization value.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
As shown in fig. 1, the automatic closing apparatus for a classroom lighting facility of the present invention comprises: the image acquisition unit 1, the image processing unit 2, the control unit 3, the timing unit 4, and the switch unit 5.
Specifically, the image acquisition unit 1 is used for acquiring image information in a classroom. Specifically, in this embodiment, the image capturing unit 1 is a spherical camera.
The image processing unit 2 is connected with the image acquisition unit 1, and the image processing unit 2 is used for dividing the layout of the lighting facilities in the classroom corresponding to the image information into a plurality of areas, detecting whether people exist in each area, and forming a detection result.
The switch unit 5 corresponds the overall arrangement setting of lighting facilities in the classroom, switch unit 5 is used for controlling the switching of lighting facilities in the classroom.
The timing units 4 are respectively arranged corresponding to the areas.
The control unit 3 is respectively connected with the image processing unit 2, the timing unit 4 and the switch unit 5, and the control unit 3 is configured to generate a start control signal or a standby control signal according to the detection result, control the timing unit 4 to start or stop timing, and generate a close control signal when the timing unit 4 times to a time threshold, and control the switch unit 5 in a corresponding region in the classroom to close.
Further, as shown in fig. 3, the switching unit 5 includes: a relay 51, a contact switch 53, and an undervoltage trip 52.
Wherein the relay 51 is connected with the control unit 3, and the relay 51 is used for opening the normally closed contact under the control of the closing control signal.
The contact switch 53 is used to control the opening and closing of the lighting fixture.
The undervoltage release 52 is connected to the relay 51 and the contact switch 53, respectively, and when the normally closed contact of the relay 51 is opened, the armature of the undervoltage release 52 is sprung open due to the voltage drop, thereby bouncing off the latch lever of the contact switch 53.
Further, as shown in fig. 2, the control unit 3 includes: a storage module 305.
Specifically, the storage module 305 is configured to store a working day time interval, corresponding to a working day, of the image acquisition unit 1 for acquiring the image information, a non-working day time interval, corresponding to a non-working day, of the image acquisition unit 1 for acquiring the image information, and a set time threshold.
Further, the control unit 3 further includes: a first judging module 301, a second judging module 302, a third judging module 303 and a first control module 304.
Specifically, the first determining module 301 is arranged corresponding to each area, the first determining module 301 is connected to the image processing unit 2 and the timing unit 4, and the first determining module 301 is configured to determine whether the timing unit 4 in the current area starts timing when the detection result indicates that no person exists in the current area, so as to generate a first determining result.
The second determining module 302 is connected to the image processing unit 2, the timing unit 4, and the image collecting unit 1, respectively, and the second determining module 302 is configured to determine whether the timing unit 4 is started to perform timing when the detection result indicates that there is a person in the current area, to generate a second determining result, and control the image collecting unit 1 to continue collecting image information when the second determining result indicates that the timing unit 4 is not started.
The third determining module 303 is connected to the first determining module 301, the image capturing unit 1, and the storage module 305, respectively, and the third determining module 303 is configured to determine whether the time counting unit 4 has counted to a time threshold when the first determining result is that the time counting unit 4 has started counting, generate a third determining result, and control the image capturing unit 1 to continue to capture image information when the third determining result is that the time counting unit 4 has not counted to the time threshold.
The first control module 304 is respectively connected to the first determining module 301, the second determining module 302, the third determining module 303, the timing unit 4 and the switch unit 5, and the first control module 304 is configured to generate a start control signal to control the timing unit 4 to start timing when the first determining result indicates that the timing unit 4 does not start timing; when the second determination result is that the timing unit 4 starts timing, the first control module 304 generates a standby control signal, controls the timing unit 4 to set to zero and to be in standby, and controls the image acquisition unit 1 to continue to acquire image information; when the third determination result is that the timing unit 4 has timed to the time threshold, the first control module 304 generates a standby control signal, controls the timing unit 4 to set to zero and standby, and generates a shutdown control signal, and controls the switch unit 5 to shut down.
Further, the control unit 3 further includes: a fourth determination module 308 and a second control module 306.
Specifically, the fourth determining module 308 is configured to determine whether the current time is a working day, and generate a fourth determination result.
The second control module 306 is connected to the fourth determination module 308, the storage module 305, and the image acquisition unit 1, and the second control module 306 is configured to control the image acquisition unit 1 to acquire image information in the classroom according to the working day time interval when the fourth determination result is that the current time is a working day, and control the image acquisition unit 1 to acquire image information in the classroom according to the non-working day time interval when the fourth determination result is that the current time is a non-working day.
Preferably, the control unit further comprises: a fifth determination module 309 and a third control module 307.
Specifically, the fifth judging module 309 is configured to judge whether the current system time is the night time, and generate a fifth judgment result.
The third control module 307 is connected to the fifth judging module 309 and the switch unit 5, respectively, and the third control module 307 is configured to control all the switch units 5 to be turned off and turn off lighting facilities of all classrooms when the fifth judging result indicates that the current system time is the night time.
Further, the classroom lighting facility automatic closing device further comprises: a first communication unit and a second communication unit.
The first communication unit is connected to the image processing unit 2 and the control unit 3, and is configured to transmit the processed image information to the control unit 3.
The second communication unit is connected to the control unit 3 and the switch unit 5, and is configured to transmit the closing control signal to the switch unit 5.
Preferably, the classroom lighting facility automatic shut-off device further comprises: and an operation unit 6. The operation unit 6 is connected with the control unit 3, and the operation unit 6 is used for providing an input/output interface for a manager. In this embodiment, the operation unit 6 is a touch panel.
Specifically, the operation unit 6 includes: a display module 61, an input module 62, and a mode selection module 63.
The mode selection module 63 is connected to the control unit 3, and the mode selection module 63 is configured to receive a working day mode or a non-working day mode selected by a manager, and send mode information to the control unit 3; the control unit 3 is also used for modifying the current system date into a working day or a non-working day according to the mode information.
The input module 62 is connected to the control unit 3, and the input module 62 is configured to receive a floor number or a classroom number input by a manager, and send number information to the control unit 3.
The display module 61 is connected to the control unit 3, and is configured to display the working state of the classroom lighting facility corresponding to the serial number information. The manager can view the use of the corresponding floor or classroom lighting facility using the input module 62 and the display module 61.
The control unit 3 further includes: a second storage module 310 and a processing module 311.
The second storage module 310 is connected to the first control module 304, and the second storage module 310 is configured to store the current status of all the lighting facilities in the classroom and update the status of the lighting facilities in the corresponding area of the corresponding classroom according to the shutdown control signal.
The processing module 311 is connected to the second storage module 310, the mode selection module 63, the input module 62, and the display module 61, and is configured to retrieve a working state of the lighting facility of the classroom corresponding to the number information in the second storage module 310, send the working state to the display unit, and modify the current system date into a working day or a non-working day according to the mode information.
In addition, as shown in fig. 4, the present invention also provides a classroom lighting facility automatic shutdown method, including:
collecting image information in a classroom;
dividing the layout of the lighting facilities in the classroom corresponding to the image information into a plurality of areas;
respectively detecting whether personnel exist in each area to form a detection result;
controlling a timer to start timing or stop timing according to the detection result;
and when the timer counts to a time threshold value, controlling the lighting facilities of the corresponding area in the classroom to be closed.
Further, when the timer counts a time threshold, controlling lighting facilities in a corresponding area in a classroom to be turned off specifically includes:
when the detection result indicates that no person exists in the current area, judging whether a timer of the current area starts to time or not, and generating a first judgment result;
when the detection result indicates that personnel exist in the current area, judging whether the timer is started to time or not, and generating a second judgment result; when the second judgment result is that the timer is not started, returning to continue collecting the image information;
when the second judgment result is that the timer is started to count, controlling the timer to be set to zero and stand by, and returning to continue to acquire image information;
when the first judgment result is that the timer is started to time, judging whether the timer times to a time threshold value or not, and generating a third judgment result; when the third judgment result is that the timer does not reach the time threshold, returning to continue to collect the image information;
when the first judgment result is that the timer is not started to time, controlling the timer to start to time and continuously collecting image information;
and when the third judgment result is that the timer counts the time threshold, controlling the timer to be set to zero and standby, and controlling the switch unit to be closed.
Further, assuming that the image processing unit divides the images in the classroom acquired by the image acquisition unit into three areas, namely, a front area, a middle area and a rear area, it may happen that students are concentrated in the middle and rear areas while the front row has no students during class or study. If no person is in the front row area within x minutes, the front row lighting facilities are automatically turned off, and the processing method is also the case.
In addition, the operation unit is a control platform, and the control platform comprises a first-level main interface, a second-level input selection interface and a third-level working state display interface.
The main interface is provided with three keys of mode selection, classroom condition preview and all facilities closing; the mode selection comprises a working day mode and a holiday mode, the image acquisition unit acquires images in the classroom every a minutes in the working day mode, and all lighting facilities in the classroom are automatically turned off in the B minute at night A; the person detecting apparatus in holiday mode collects images in the classroom every b minutes (b is a positive real number) and automatically turns off all lighting in the classroom at night C by D (A, C is an integer between 0 and 24, B, D is an integer between 0 and 60); considering that there are fewer people in the holiday classroom, a > b may be selected, i.e., the image capture frequency is high when there are few people, and generally, the holiday mode is set to automatically turn off the lighting facilities earlier than the workday mode.
Selecting a classroom condition preview key, jumping to a second-level input selection interface, and setting keys such as a floor and classroom number input text box, a confirmation key, a return key and the like in the interface; inputting the number of a floor or a classroom in an input text box; clicking the confirming key to enter a third-level working state display interface; clicking the return button returns to the first level interface.
If the floor number or the floor number is input into the input text box, the working state display interface displays the use conditions of all the lighting facilities in the classroom of the floor by taking the classroom as a unit, as long as the lighting facilities in a certain classroom are in a working state, the part of the working state display interface corresponding to the classroom is displayed in red, and when the lighting facilities in the certain classroom are all closed, the part of the working state display interface corresponding to the classroom is displayed in gray.
If a certain classroom number is input in the input text box, the working state display interface displays the use conditions of the lighting facilities in all the areas of the classroom by taking the area as a unit, as long as the lighting facilities in a certain area are in a working state, the part, corresponding to the area, in the working state display interface is displayed in red, and when the lighting facilities in a certain area are all closed, the part, corresponding to the area, in the working state display interface is displayed in gray.
The floor number-floor number or floor number-classroom number can be entered in the input text box. For example, 1-2 represents all classrooms at floor 2 of floor 1, and 1-2-201 represents the classroom 201 at floor 2 of floor 1; if the 1-2 is input and the confirm button is clicked, the working state display interface displays the use conditions of all the lighting facilities in classrooms of the floor 2 of the floor 1, and if the parts of the lighting facilities in the classrooms 201 and 202 of the floor 2 of the floor 1 are in the working state and the lighting facilities in the classrooms 203 and 204 of the floor 2 of the floor 1 are all closed, the parts of the working state display interface corresponding to the classrooms 201 and 202 of the floor 2 of the floor 1 are displayed in red, and the parts of the working state display interface corresponding to the classrooms 203 and 204 of the floor 2 of the floor 1 are displayed in gray. Similarly, if 1-2-201 is entered in the input text box and the decision button is clicked, the operating status of the lighting facilities in each area of the floor 2 classroom of floor 1, 201, may be displayed.
When the lighting facilities need to be turned off due to uncertain factors, the key for turning off all the facilities can be clicked to turn off all the lighting facilities in the classroom.
The application process of the automatic closing device for the classroom lighting facilities provided by the invention is as follows:
(1) when the device is used for the first time, all timers are set to zero; after the lighting facilities in a certain area of the classroom are automatically turned off, the corresponding timer is set to zero and enters a standby state;
(2) the lighting facilities in a certain area of the classroom are powered on and are in a working state, the camera collects images in the classroom once every a period of time (working day and holiday are respectively every a minute and b minutes), and the control unit determines whether people exist in each area of the classroom according to the images provided by the image processing unit;
(3) if no person is detected in a certain area in the classroom, a timer corresponding to the area starts to time; if the existence of the personnel is detected in a certain area in the classroom, the timing unit corresponding to the area maintains the original state;
(4) under the condition that no person exists in a certain area in a classroom, judging whether a person appears in x minutes or not; if people appear in x minutes, the timing unit is set to zero and enters a standby state; if no personnel appear in the area until x minutes, the control unit sends a closing control signal to the switch unit so as to close the lighting facilities in the corresponding area, and meanwhile, the timing unit is immediately set to zero and stands by;
(5) and (4) returning to the step (2).
The invention provides an automatic closing device and a method for classroom lighting facilities, which have the main advantages that (1) the lighting device is closed only when no person exists in a certain area within a set time threshold, and the area with the person is not influenced; (2) even if no personnel exist in a certain area, the lighting facilities are not immediately turned off, but are turned off after waiting for a set time threshold, so that frequent switching of the lighting facilities can be avoided, and the service life of the facilities is prolonged. The automatic closing of the lighting facilities in the classroom is realized by reasonably arranging the image acquisition unit, the image processing unit, the control unit, the switch unit and the timing unit, whether the lighting facilities need to be automatically closed or not can be determined according to the actual situation in the classroom, and the intelligent lighting facility closing function is realized; meanwhile, the device can also enable managers to carry out overall management on all lighting facilities on the operation unit, and the lighting facilities in the classroom can be managed more conveniently. Compared with the existing device for automatically turning off the light, the intelligent degree of the system is improved, the better energy-saving and emission-reducing effects are obtained, and the device has practical application and popularization values.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The method disclosed by the embodiment corresponds to the system disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the system part for description.
The principles and embodiments of the present invention have been described herein using specific examples, which are provided only to help understand the method and the core concept of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed. In view of the above, the present disclosure should not be construed as limiting the invention.