CN105117998A - Classroom spare degree calculation method, classroom allocation method and classroom allocation device - Google Patents
Classroom spare degree calculation method, classroom allocation method and classroom allocation device Download PDFInfo
- Publication number
- CN105117998A CN105117998A CN201510490617.0A CN201510490617A CN105117998A CN 105117998 A CN105117998 A CN 105117998A CN 201510490617 A CN201510490617 A CN 201510490617A CN 105117998 A CN105117998 A CN 105117998A
- Authority
- CN
- China
- Prior art keywords
- classroom
- vacant
- class
- vacant degree
- degree
- 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
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The present invention discloses a classroom spare degree calculation method, a classroom allocation method and a classroom allocation device. Combined with the actual environment of a classroom, firstly a background difference method is used to determine a moving target area, then the target area is subjected to hough rounding, and a classroom spare degree is calculated. With the classroom spare degree as a basis, a PLB (Probability load balance) algorithm is provided, and the classroom allocation is carried out through probability, which means that a classroom with a high spare degree is selected. By using the scheme of the invention, a student can obtain current classroom information through a user operation interface (such as a touch screen and a mobile phone terminal APP), the student can efficiently obtained empty classroom information and classroom spare degree information during class time in a time-saving and labor-saving manner, and a recommended allocation classroom is obtained.
Description
Technical field
The present invention relates to the vacant degree computing method in a kind of classroom and classroom distribution method, device, belong to school information management domain.
Background technology
College course is heavy to contain much information, and mastery of knowledge relies on classroom to pay attention to the class early stage, and later stage major part is by student's self-teaching, but university can not be that each class is equipped with fixing classroom usually, and classroom has very strong mobility.Student cannot know which classroom is arranged course, all can waste a lot of time when going for self-study classroom at every turn, have even because can not find desirable reviewing one's lessons place and abandon the thought reviewed one's lessons for a long time.Especially be close to the examination, how find and review one's lessons by oneself the difficult problem that classroom has become student.
Meanwhile, cause and the principal element reviewing one's lessons place cannot be found in time to have two aspects, one is that university student does not know which Shi Wuke classroom, classroom of time at school; Two is different according to personal like, and in empty classroom, existing number of reviewing one's lessons also becomes the condition that everybody selects self-study classroom.
Finding without on class classroom with its time flower, not as in conjunction with present science and technology, before student gos out, just having certain understanding to classroom information, like this for saving time and finding rapidly the place of reviewing one's lessons in oneself ideal to have no small help.
Summary of the invention
For the defect of prior art, technical matters to be solved by this invention is to provide the vacant degree computing method in a kind of classroom and classroom distribution method, device.
The present invention is for solving the problems of the technologies described above by the following technical solutions:
On the one hand, the invention provides the vacant degree computing method in a kind of classroom, concrete steps are as follows:
Step 1, classroom image when gathering nobody as initial pictures, and carries out gray processing process;
Step 2, gathers classroom image according to the time interval of setting;
Step 3, often collects a two field picture, then calculate the vacant degree in this classroom corresponding to this time point according to this two field picture, be specially:
301, after this two field picture is carried out gray processing process, do difference processing with the initial pictures after gray processing;
302, by the pixel value of each pixel in the difference image that obtains in step 301 compared with the first threshold of setting, and set pixel value being greater than the pixel of the first threshold of setting is as motion target area;
303, adopt hough algorithm to look for circle to motion target area, and calculate find round area, the quantity that area is greater than the circle of the Second Threshold of setting is the number in this classroom of this time point;
304, according to the seating capacity in this classroom, the vacant degree in this this classroom of time point can be calculated.
As further prioritization scheme of the present invention, in step 2, the time interval is 1 minute.
As further prioritization scheme of the present invention, in step 302, the first threshold of setting is 20.
On the other hand, the invention provides a kind of classroom distribution method, concrete steps are as follows:
Steps A, user puts sometime and distributes classroom to master controller application, and master controller obtains the current essential information without class classroom by connecting school's Course Arrangement;
Step B, main controller controls is without the camera collection classroom image in class classroom, and the vacant degree adopting a kind of classroom as claimed in claim 1 vacant degree computing method to calculate without class classroom is respectively R
1, R
2..., R
n, wherein, n is the number without class classroom;
Step C, by R
1, R
2..., R
nround after being multiplied by 100 respectively, be designated as P
1, P
2..., P
n, i.e. P
i=[R
i* 100], i=1,2 ..., n;
Step D, creates ordered series of numbers X, wherein X
1=P
1, X
i+1=X
i+ P
i;
Step e: a random generation integer W, W ∈ [0, S],
Step F: traversal ordered series of numbers X, searches min (X
i>=W), if min is (X
i>=W) be X in ordered series of numbers X
j, j=1,2 ..., n, then distribute a jth classroom to application user.
On the other hand, the invention provides a kind of classroom distributor, comprise camera, user interface in master controller, each classroom, wherein:
Master controller, is connected, for obtaining the essential information without class classroom with school Course Arrangement; Be connected with the camera in each classroom respectively, for controlling the image of camera collection without class classroom, the vacant degree computing method in a kind of classroom as claimed in claim 1 are adopted again according to classroom image, calculate the vacant degree without class classroom and number, and apply for adopting a kind of classroom as claimed in claim 4 distribution method to carry out classroom distribution according to user; Be connected with user interface, for the essential information in distribution classroom, current vacant degree, current persons count are transferred to user interface and show;
User interface, for user input application information, display distribute the essential information in classroom, current vacant degree, current persons count.
As further prioritization scheme of the present invention, user interface is touch-screen.
The present invention adopts above technical scheme compared with prior art, has following technique effect:
(1) traditional number of people detection algorithm time complexity is high, this method, based on recognition of face and video monitoring, first adopts background subtraction determination motion target area, then carries out hough to target area and look for circle, reduce the time complexity of algorithm, improve running efficiency of system;
(2) the present invention is with the vacant degree in classroom for foundation, proposes the classroom distribution method of a kind of PLB (Probabilityloadbalance, probability load balancing); The method is distributed by probability, and the classroom that namely vacant degree is higher is selected with greater probability, reaches the object of load balancing with this;
(3) student obtains current classroom information by user interface (such as touch-screen, mobile phone terminal APP etc.), period obtains empty classroom information, the vacant degree information in classroom at school efficient, time saving and energy savingly to allow student, and obtains the distribution classroom of recommending.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the vacant degree computing method in a kind of classroom.
Fig. 2 is the process flow diagram of a kind of classroom distribution method.
Embodiment
Below in conjunction with accompanying drawing and embodiment, technical scheme of the present invention is described in further detail:
Embodiment one
In the present invention, a kind of flow process of classroom distribution method of probability load balancing is as shown in Figure 2, specific as follows:
Steps A, user puts sometime and distributes classroom by user interface to master controller application, and master controller obtains the current essential information without class classroom by connecting school's Course Arrangement.
Step B, main controller controls is without the camera collection classroom image in class classroom, and the vacant degree adopting a kind of classroom vacant degree computing method as described below to calculate without class classroom is respectively R
1, R
2..., R
n, wherein, n is the number without class classroom.
Because classroom camera is arranged on above classroom usually, student is all immersing oneself in review one's lessons reading, and in the image of collection, face feature is not obvious, and recognizer mainly identifies head.Traditional hough algorithm detects circle, and computing is complicated, time complexity is high.In the present invention, first adopt background subtraction determination motion target area, then circle (namely the number of people detects) is looked for motion target area, thus realize adding up current classroom number, and calculate vacant degree.
The vacant degree computing method in a kind of classroom in the present invention, as shown in Figure 1, specific as follows:
Step 1, the camera collection in classroom nobody time classroom image, it can be used as initial pictures, and carry out gray processing process;
Step 2, the camera in classroom gathers classroom image according to the time interval of setting, and wherein, the time interval can be chosen for 1 minute, and frequency acquisition can be improved in the peak period between 18:00 to 20:00, shortens the time interval;
Step 3, camera often collects a two field picture, then calculate the vacant degree in this this classroom of time point according to this two field picture, be specially:
301, after this two field picture is carried out gray processing process, do difference processing with the initial pictures after gray processing;
302, by step 301 to difference image in the pixel value of each pixel compared with setting first threshold, and set pixel value being greater than the pixel of the first threshold of setting is as motion target area; Wherein, the first threshold of setting chooses 20;
303, adopt and circle looked for motion target area hough algorithm, and calculate find round area, the quantity that area is greater than the circle of the Second Threshold of setting is the number m in this classroom of this time point
i; Wherein, the Second Threshold of setting is the area of the general number of people in image, is drawn by empirical data;
304, according to the seating capacity m' in this classroom
i, the vacant degree in this this classroom of time point can be calculated
i=1,2 ..., n.
Step C, by R
1, R
2..., R
nround after being multiplied by 100 respectively, be designated as P
1, P
2..., P
n, i.e. P
i=[R
i* 100];
Step D, creates ordered series of numbers X, wherein X
1=P
1, X
i+1=X
i+ P
i;
Step e: a random generation integer W, W ∈ [0, S],
Step F: traversal ordered series of numbers X, searches min (X
i>=W), if min is (X
i>=W) be X in ordered series of numbers X
j, j=1,2 ..., n, then distribute a jth classroom to application user.
In the present invention, in order to reduce the time complexity of operation, be not real-time process for classroom image procossing, but work with certain hour interval.If recommend the classroom that number is minimum in one-period all the time, then the number easily making this classroom be assigned with is too much.Therefore, with the vacant degree in classroom for foundation, distributed by probability, the classroom that namely vacant degree is higher is selected with greater probability, reaches the object of load balancing with this.
Embodiment two
For Nanjing Information engineering Univ, specific as follows:
First, user files an application information, master controller sends instruction to the Course Arrangement of Nanjing Information engineering Univ, after Course Arrangement receives instruction, add up without class classroom current, such as n302 and s403 in current pleasant virtue building, n418, s408 and the s506 in literary virtue building are current without class classroom, this by these information feed back to master controller
Then, master controller sends instruction to the camera in these five classrooms, carries out classroom image acquisition;
Again, master controller calls the vacant degree computing method in classroom based on recognition of face and video monitoring, calculate the vacant degree in these five classrooms respectively, the vacant degree being such as respectively pleasant virtue building n302 is 20%, the vacant degree of s403 is 35%, the vacant degree of n418 in literary virtue building is 55%, the vacant degree of s408 is 78%, the vacant degree of s506 is 85%;
Finally, adopt classroom distribution method to distribute classroom to user according to the vacant degree in these five classrooms, recommend literary virtue building S408.
With the vacant degree in classroom for foundation, distributed by probability, the classroom that namely vacant degree is higher is selected with greater probability, reaches the object of load balancing with this, avoids short time classroom unreasonable distribution phenomenon.
The above; be only the embodiment in the present invention; but protection scope of the present invention is not limited thereto; any people being familiar with this technology is in the technical scope disclosed by the present invention; the conversion or replacement expected can be understood; all should be encompassed in and of the present inventionly comprise within scope, therefore, protection scope of the present invention should be as the criterion with the protection domain of claims.
Claims (6)
1. the vacant degree computing method in classroom, it is characterized in that, concrete steps are as follows:
Step 1, classroom image when gathering nobody as initial pictures, and carries out gray processing process;
Step 2, gathers classroom image according to the time interval of setting;
Step 3, often collects a two field picture, then calculate the vacant degree in this classroom corresponding to this time point according to this two field picture, be specially:
301, after this two field picture is carried out gray processing process, do difference processing with the initial pictures after gray processing;
302, by the pixel value of each pixel in the difference image that obtains in step 301 compared with the first threshold of setting, and set pixel value being greater than the pixel of the first threshold of setting is as motion target area;
303, adopt hough algorithm to look for circle to motion target area, and calculate find round area, the quantity that area is greater than the circle of the Second Threshold of setting is the number in this classroom of this time point;
304, according to the seating capacity in this classroom, the vacant degree in this this classroom of time point can be calculated.
2. the vacant degree computing method in a kind of classroom according to claim 1, is characterized in that, in step 2, the time interval is 1 minute.
3. the vacant degree computing method in a kind of classroom according to claim 1, is characterized in that, in step 302, the first threshold of setting is 20.
4. a classroom distribution method, is characterized in that, concrete steps are as follows:
Steps A, user puts sometime and distributes classroom to master controller application, and master controller obtains the current essential information without class classroom by connecting school's Course Arrangement;
Step B, main controller controls is without the camera collection classroom image in class classroom, and the vacant degree adopting a kind of classroom as claimed in claim 1 vacant degree computing method to calculate without class classroom is respectively R
1, R
2..., R
n, wherein, n is the number without class classroom;
Step C, by R
1, R
2..., R
nround after being multiplied by 100 respectively, be designated as P
1, P
2..., P
n, i.e. P
i=[R
i* 100], i=1,2 ..., n;
Step D, creates ordered series of numbers X, wherein X
1=P
1, X
i+1=X
i+ P
i;
Step e: when user distributes classroom in this time point application, a random generation integer W, W ∈ [0, S],
Step F: traversal ordered series of numbers X, searches min (X
i>=W), if min is (X
i>=W) be X in ordered series of numbers X
j, j=1,2 ..., n, then distribute a jth classroom to application user.
5. a classroom distributor, is characterized in that, comprises camera, user interface in master controller, each classroom, wherein:
Master controller, is connected, for obtaining the essential information without class classroom with school Course Arrangement; Be connected with the camera in each classroom respectively, for controlling the image of camera collection without class classroom, the vacant degree computing method in a kind of classroom as claimed in claim 1 are adopted again according to classroom image, calculate the vacant degree without class classroom and number, and apply for adopting a kind of classroom as claimed in claim 4 distribution method according to user; Be connected with user interface, for the essential information in distribution classroom, current vacant degree, current persons count are transferred to user interface and show;
User interface, for user input application information, display distribute the essential information in classroom, current vacant degree, current persons count.
6. a kind of classroom according to claim 5 distributor, it is characterized in that, user interface is touch-screen.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510490617.0A CN105117998A (en) | 2015-08-11 | 2015-08-11 | Classroom spare degree calculation method, classroom allocation method and classroom allocation device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510490617.0A CN105117998A (en) | 2015-08-11 | 2015-08-11 | Classroom spare degree calculation method, classroom allocation method and classroom allocation device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105117998A true CN105117998A (en) | 2015-12-02 |
Family
ID=54665973
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510490617.0A Pending CN105117998A (en) | 2015-08-11 | 2015-08-11 | Classroom spare degree calculation method, classroom allocation method and classroom allocation device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105117998A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105678476A (en) * | 2016-03-01 | 2016-06-15 | 浙江大学 | Video-based intelligent guidance system and guidance method for self-study room |
CN105825189A (en) * | 2016-03-21 | 2016-08-03 | 浙江工商大学 | Device for automatically analyzing attendance rate and class concentration degree of college students |
CN106204378A (en) * | 2016-07-26 | 2016-12-07 | 天闻数媒科技(湖南)有限公司 | The processing method of a kind of lesson data arrangement and system |
CN110059961A (en) * | 2019-04-19 | 2019-07-26 | 河南应用技术职业学院 | With attendance data analysis in teaching area in the period of imparting knowledge to students for the campus style of study analysis method of foundation and matched data acquisition equipment |
CN117350522A (en) * | 2023-12-05 | 2024-01-05 | 山东海智星智能科技有限公司 | Intelligent classroom management system based on multisource internet of things data |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102354378A (en) * | 2011-05-20 | 2012-02-15 | 北京理工大学 | Classroom management system based on image identification and network |
CN104156729A (en) * | 2014-07-21 | 2014-11-19 | 武汉理工大学 | Counting method for people in classroom |
-
2015
- 2015-08-11 CN CN201510490617.0A patent/CN105117998A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102354378A (en) * | 2011-05-20 | 2012-02-15 | 北京理工大学 | Classroom management system based on image identification and network |
CN104156729A (en) * | 2014-07-21 | 2014-11-19 | 武汉理工大学 | Counting method for people in classroom |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105678476A (en) * | 2016-03-01 | 2016-06-15 | 浙江大学 | Video-based intelligent guidance system and guidance method for self-study room |
CN105825189A (en) * | 2016-03-21 | 2016-08-03 | 浙江工商大学 | Device for automatically analyzing attendance rate and class concentration degree of college students |
CN105825189B (en) * | 2016-03-21 | 2019-03-01 | 浙江工商大学 | A kind of device automatically analyzed for university student to class rate and focus of attending class |
CN106204378A (en) * | 2016-07-26 | 2016-12-07 | 天闻数媒科技(湖南)有限公司 | The processing method of a kind of lesson data arrangement and system |
CN110059961A (en) * | 2019-04-19 | 2019-07-26 | 河南应用技术职业学院 | With attendance data analysis in teaching area in the period of imparting knowledge to students for the campus style of study analysis method of foundation and matched data acquisition equipment |
CN117350522A (en) * | 2023-12-05 | 2024-01-05 | 山东海智星智能科技有限公司 | Intelligent classroom management system based on multisource internet of things data |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105117998A (en) | Classroom spare degree calculation method, classroom allocation method and classroom allocation device | |
CN105528248B (en) | Intelligent perception incentive mechanism under multitask collaboration application | |
Broto | Planning for climate change in the African city | |
CN109711744A (en) | Task of keeping a public place clean automatically generates, executes evaluation method, cleaning method and device | |
CN109408228B (en) | Intelligent perception method for allocating tasks based on allocation of budget | |
Joustra et al. | Framework for net-zero and net-positive building water cycle management | |
CN109389358A (en) | Project management system and method based on GIS | |
CN104103045A (en) | Gaussian blur processing method and system for terminal | |
WO2012139749A3 (en) | Method and system for supporting the diagnosis of an object having at least one disturbance | |
Liu et al. | Optimal capacity planning of combined renewable energy source-pumped storage and seawater desalination systems | |
CN108520329A (en) | The accurate auto-allocation method of second-hand house client and device based on broker's portrait | |
CN107004003A (en) | model parameter fusion method and device | |
Ibrahim et al. | Implementation of open space: The need for uniform policy | |
Iwuagwu et al. | Adopting intelligent buildings in Nigeria: the hopes and fears | |
CN104463386A (en) | Library seat management system | |
CN107092969A (en) | A kind of campus room for individual study based on positioning and time slice selects seat method and system | |
CN115860394A (en) | Method and system for controlling energy consumption of subway station | |
CN106600129A (en) | Power grid planning method and system | |
TWI536282B (en) | Campus energy conservation neural network decision spport system and method thereof | |
Gillick et al. | Clutter-adaptive visualization for mobile data mining | |
CN110334859A (en) | A kind of human resources configuration method and system towards city emergency environmental sanitation event | |
CN114006392A (en) | Distributed power system energy storage node capacity demand estimation system | |
Chiu | Simulation-based spatial system for rainwater harvesting systems in the sustainable campus project | |
Zhang et al. | MSFD method based temperature forecasting with mode of learning-checking and core functions | |
CN111047293B (en) | Method and system for managing graphic data resources |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20151202 |
|
RJ01 | Rejection of invention patent application after publication |