CN104899598A - Method and device for counting persons in classroom based on two-dimensional Fourier transform - Google Patents
Method and device for counting persons in classroom based on two-dimensional Fourier transform Download PDFInfo
- Publication number
- CN104899598A CN104899598A CN201510247048.7A CN201510247048A CN104899598A CN 104899598 A CN104899598 A CN 104899598A CN 201510247048 A CN201510247048 A CN 201510247048A CN 104899598 A CN104899598 A CN 104899598A
- Authority
- CN
- China
- Prior art keywords
- classroom
- image
- component
- fourier transform
- people
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 32
- 230000009466 transformation Effects 0.000 claims abstract description 15
- 238000012545 processing Methods 0.000 claims description 9
- 238000006243 chemical reaction Methods 0.000 claims description 7
- 238000012417 linear regression Methods 0.000 claims description 3
- 238000011088 calibration curve Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/21—Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
Landscapes
- Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Artificial Intelligence (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Image Analysis (AREA)
Abstract
The invention discloses a method and device for counting persons in a classroom based on the two-dimensional Fourier transform, and the method and device can achieve the counting of the persons in the classroom in real time. The method comprises the steps: obtaining a binary image of persons in the classroom in real time; calculating a DC component of the two-dimensional Fourier transform of the binary image of persons; and calculating the number, corresponding to the DC component, of persons in the classroom according to the DC component and a preset transformation relation between the DC component and the number of persons in the classroom.
Description
Technical field
The present invention relates to digital image processing field, be specifically related to a kind of classroom demographic method based on two-dimensional Fourier transform and device.
Background technology
Demographics is one of hot research content of computer vision field; be widely used in productive life; stream of people's statistics of the public arenas such as such as megastore, shopping center, station, exhibition center; number is its indispensable data in management and decision aspect; for retail trade, the index that flow of the people is very basic especially.Therefore demographics technology has stronger researching value and practical significance.
And the demographics of classroom also has very great meaning.Each University Classroom's resource utilization is low on the one hand, and student studies by oneself in scheduled time and looks for classroom difficult, particularly when the end of term, want to find a desirable room for individual study to study by oneself in scheduled time extremely difficult especially, demographics is carried out to classroom, makes student find suitable room for individual study easily, can improve learning efficiency; School adds up classroom number on the other hand, can assess the quality of instruction of teacher and understand the learning initiative of current student, and implement corresponding measure.
But but there is no effective method now, can be real-time count classroom number.
Summary of the invention
The object of the invention is to, a kind of classroom demographic method based on two-dimensional Fourier transform and device are provided, can be real-time count classroom number.
For this purpose, on the one hand, the present invention proposes a kind of classroom demographic method based on two-dimensional Fourier transform, comprising:
The bianry image of people's profile in Real-time Obtaining classroom;
Calculate the DC component of the two-dimensional Fourier transform of the bianry image of described people's profile;
According to described DC component, and the transformation relation of predetermined DC component and classroom number, calculate the classroom number corresponding to described DC component.
On the other hand, the present invention proposes a kind of classroom people counting device based on two-dimensional Fourier transform, comprising:
Bianry image acquiring unit, for the bianry image of people's profile in Real-time Obtaining classroom;
DC component computing unit, for calculating the DC component of the two-dimensional Fourier transform of the bianry image of described people's profile;
Classroom number computing unit, for according to described DC component, and the transformation relation of predetermined DC component and classroom number, calculate the classroom number corresponding to described DC component.
The classroom demographic method based on two-dimensional Fourier transform described in the embodiment of the present invention and device, by the bianry image of people's profile in Real-time Obtaining classroom, calculate the DC component of the two-dimensional Fourier transform of the bianry image of described people's profile, according to described DC component, and the transformation relation of predetermined DC component and classroom number, calculate the classroom number corresponding to described DC component, can be real-time count classroom number, solution student studies by oneself in scheduled time and looks for the problem that classroom is difficult and classroom's utilization factor is low, makes classroom's resource rational utilization.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of classroom demographic method one embodiment that the present invention is based on two-dimensional Fourier transform;
Fig. 2 is the schematic flow sheet of classroom another embodiment of demographic method that the present invention is based on two-dimensional Fourier transform;
Fig. 3 is the frame structure schematic diagram of classroom people counting device one embodiment that the present invention is based on two-dimensional Fourier transform.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
As shown in Figure 1, the present embodiment discloses a kind of classroom demographic method based on two-dimensional Fourier transform, comprising:
The bianry image of people's profile in S1, Real-time Obtaining classroom;
S2, calculate the DC component of the two-dimensional Fourier transform of the bianry image of described people's profile;
S3, according to described DC component, and the transformation relation of predetermined DC component and classroom number, calculates the classroom number corresponding to described DC component.
The classroom demographic method based on two-dimensional Fourier transform described in the embodiment of the present invention, by the bianry image of people's profile in Real-time Obtaining classroom, calculate the DC component of the two-dimensional Fourier transform of the bianry image of described people's profile, according to described DC component, and the transformation relation of predetermined DC component and classroom number, calculate the classroom number corresponding to described DC component, can be real-time count classroom number, solution student studies by oneself in scheduled time and looks for the problem that classroom is difficult and classroom's utilization factor is low, makes classroom's resource rational utilization.
Alternatively, in another embodiment of classroom demographic method that the present invention is based on two-dimensional Fourier transform, the bianry image of people's profile in described Real-time Obtaining classroom, comprising:
Obtain the image in current classroom, gray processing process is carried out to the image in described current classroom, obtains the gray level image in current classroom, obtain classroom nobody time image, to described classroom nobody time image carry out gray processing process, obtain classroom nobody time gray level image;
By the gray level image in described current classroom is deducted described classroom nobody time gray level image, then obtain the bianry image of people's profile in current classroom through binary conversion treatment.
Alternatively, in another embodiment of classroom demographic method that the present invention is based on two-dimensional Fourier transform, the DC component of the two-dimensional Fourier transform of the bianry image of the described people's profile of described calculating, comprising:
Two-dimensional Fourier transform is carried out to the bianry image of described people's profile, obtains the DC component of the two-dimensional Fourier transform of the bianry image of described people's profile.
In the embodiment of the present invention, image, after two-dimensional Fourier transform, is frequency domain by space field transformation, and the most outstanding advantage that it has is that the operation times of algorithm greatly reduces, and can realize the demographics of " fast ", and the efficiency of demographics is improved greatly.
Alternatively, in another embodiment of classroom demographic method that the present invention is based on two-dimensional Fourier transform, the defining method following steps of the transformation relation of described predetermined DC component and classroom number:
Step 1, obtain classroom nobody time image and the classroom image of predetermined number; Wherein, the quantity of the portrait that described classroom image comprises is known and different, and in the image of described classroom, an image is the classroom image occupying people;
Step 2, to the classroom image of described predetermined number and classroom nobody time image carry out gray proces, obtain the classroom gray level image of described predetermined number and classroom nobody time gray level image;
Step 3, according to described classroom nobody time gray level image and the classroom gray level image of described predetermined number, by background calculus of differences, then the bianry image of people's profile in the classroom image obtaining described predetermined number through binary conversion treatment;
Step 4, calculates the DC component of the two-dimensional Fourier transform of the bianry image of people's profile in the classroom image of described predetermined number;
Step 5, according to DC component and the corresponding classroom number of the two-dimensional Fourier transform of the bianry image of people's profile in the classroom image of described predetermined number, linear regression is carried out to classroom number and DC component, obtains the transformation relation of DC component and classroom number.
Referring to accompanying drawing 2, the key step that the present invention is based on classroom demographic method one embodiment of two-dimensional Fourier transform comprises:
Step one: the image and the classroom background image that obtain classroom camera.
Step 2: be 0,1,5,10,15 to classroom background image and number respectively ..., and the classroom image occupied carries out gray proces, obtains gray level image.
Step 3: after relevant treatment being carried out to gray level image with background subtraction, then carry out the bianry image that binary conversion treatment obtains people's profile.
Step 4: two-dimensional Fourier transform is carried out to the bianry image of people's profile, obtains the DC component of image.
Step 5: the DC component of number and image is carried out linear regression, can obtain the calibration curve of the DC component after number and two-dimensional image Fourier transform, and namely y=kx+b, y are the number of statistics, and x is the DC component of two-dimensional image Fourier transform.
Step 6: the classroom picture that need carry out demographics to all the other, after carrying out step one, three, four, directly carries out the DC component x value after two-dimensional Fourier transform by testing image, substitutes into calibration curve and can obtain number y.
As shown in Figure 3, the present embodiment discloses a kind of classroom people counting device based on two-dimensional Fourier transform, comprising:
Bianry image acquiring unit 1, for the bianry image of people's profile in Real-time Obtaining classroom;
DC component computing unit 2, for calculating the DC component of the two-dimensional Fourier transform of the bianry image of described people's profile;
Classroom number computing unit 3, for according to described DC component, and the transformation relation of predetermined DC component and classroom number, calculate the classroom number corresponding to described DC component.
The classroom people counting device based on two-dimensional Fourier transform described in the embodiment of the present invention, by the bianry image of people's profile in Real-time Obtaining classroom, calculate the DC component of the two-dimensional Fourier transform of the bianry image of described people's profile, according to described DC component, and the transformation relation of predetermined DC component and classroom number, calculate the classroom number corresponding to described DC component, can be real-time count classroom number, solution student studies by oneself in scheduled time and looks for the problem that classroom is difficult and classroom's utilization factor is low, makes classroom's resource rational utilization.
Alternatively, in another embodiment of classroom people counting device that the present invention is based on two-dimensional Fourier transform, described bianry image acquiring unit, comprising:
Gray level image obtains subelement, for obtaining the image in current classroom, gray processing process is carried out to the image in described current classroom, obtain the gray level image in current classroom, obtain classroom nobody time image, to described classroom nobody time image carry out gray processing process, obtain classroom nobody time gray level image;
Calculus of differences subelement, by the gray level image in described current classroom is deducted described classroom nobody time gray level image, then obtain the bianry image of people's profile in current classroom through binary conversion treatment.
Alternatively, in another embodiment of classroom people counting device that the present invention is based on two-dimensional Fourier transform, described DC component computing unit, comprising:
DC component computation subunit, by carrying out two-dimensional Fourier transform to the bianry image of described people's profile, obtains the DC component of the two-dimensional Fourier transform of the bianry image of described people's profile.
Although describe embodiments of the present invention by reference to the accompanying drawings, but those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present invention, such amendment and modification all fall into by within claims limited range.
Claims (7)
1., based on a classroom demographic method for two-dimensional Fourier transform, it is characterized in that, comprising:
The bianry image of people's profile in Real-time Obtaining classroom;
Calculate the DC component of the two-dimensional Fourier transform of the bianry image of described people's profile;
According to described DC component, and the transformation relation of predetermined DC component and classroom number, calculate the classroom number corresponding to described DC component.
2. the classroom demographic method based on two-dimensional Fourier transform according to claim 1, is characterized in that, the bianry image of people's profile in described Real-time Obtaining classroom, comprising:
Obtain the image in current classroom, gray processing process is carried out to the image in described current classroom, obtains the gray level image in current classroom, obtain classroom nobody time image, to described classroom nobody time image carry out gray processing process, obtain classroom nobody time gray level image;
By the gray level image in described current classroom is deducted described classroom nobody time gray level image, then obtain the bianry image of people's profile in current classroom through binary conversion treatment.
3. the classroom demographic method based on two-dimensional Fourier transform according to claim 1 and 2, is characterized in that, the DC component of the two-dimensional Fourier transform of the bianry image of the described people's profile of described calculating, comprising:
Two-dimensional Fourier transform is carried out to the bianry image of described people's profile, obtains the DC component of the two-dimensional Fourier transform of the bianry image of described people's profile.
4. the classroom demographic method based on two-dimensional Fourier transform according to claim 3, is characterized in that, the defining method following steps of the transformation relation of described predetermined DC component and classroom number:
Step 1, obtain classroom nobody time image and the classroom image of predetermined number; Wherein, the quantity of the portrait that described classroom image comprises is known and different, and in the image of described classroom, an image is the classroom image occupying people;
Step 2, to the classroom image of described predetermined number and classroom nobody time image carry out gray proces, obtain the classroom gray level image of described predetermined number and classroom nobody time gray level image;
Step 3, according to described classroom nobody time gray level image and the classroom gray level image of described predetermined number, by background calculus of differences, then the bianry image of people's profile in the classroom image obtaining described predetermined number through binary conversion treatment;
Step 4, calculates the DC component of the two-dimensional Fourier transform of the bianry image of people's profile in the classroom image of described predetermined number;
Step 5, according to DC component and the corresponding classroom number of the two-dimensional Fourier transform of the bianry image of people's profile in the classroom image of described predetermined number, linear regression is carried out to classroom number and DC component, obtains the transformation relation of DC component and classroom number.
5., based on a classroom people counting device for two-dimensional Fourier transform, it is characterized in that, comprising:
Bianry image acquiring unit, for the bianry image of people's profile in Real-time Obtaining classroom;
DC component computing unit, for calculating the DC component of the two-dimensional Fourier transform of the bianry image of described people's profile;
Classroom number computing unit, for according to described DC component, and the transformation relation of predetermined DC component and classroom number, calculate the classroom number corresponding to described DC component.
6. the classroom people counting device based on two-dimensional Fourier transform according to claim 5, is characterized in that, described bianry image acquiring unit, comprising:
Gray level image obtains subelement, for obtaining the image in current classroom, gray processing process is carried out to the image in described current classroom, obtain the gray level image in current classroom, obtain classroom nobody time image, to described classroom nobody time image carry out gray processing process, obtain classroom nobody time gray level image;
Calculus of differences subelement, by the gray level image in described current classroom is deducted described classroom nobody time gray level image, then obtain the bianry image of people's profile in current classroom through binary conversion treatment.
7. the classroom people counting device based on two-dimensional Fourier transform according to claim 5 or 6, is characterized in that, described DC component computing unit, comprising:
DC component computation subunit, by carrying out two-dimensional Fourier transform to the bianry image of described people's profile, obtains the DC component of the two-dimensional Fourier transform of the bianry image of described people's profile.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510247048.7A CN104899598B (en) | 2015-05-14 | 2015-05-14 | Classroom demographic method and device based on two-dimensional Fourier transform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510247048.7A CN104899598B (en) | 2015-05-14 | 2015-05-14 | Classroom demographic method and device based on two-dimensional Fourier transform |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104899598A true CN104899598A (en) | 2015-09-09 |
CN104899598B CN104899598B (en) | 2019-10-01 |
Family
ID=54032252
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510247048.7A Expired - Fee Related CN104899598B (en) | 2015-05-14 | 2015-05-14 | Classroom demographic method and device based on two-dimensional Fourier transform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104899598B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106897698A (en) * | 2017-02-24 | 2017-06-27 | 常州常工电子科技股份有限公司 | Classroom number detection method and system based on machine vision Yu binocular coordination technique |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101742291A (en) * | 2008-11-14 | 2010-06-16 | 北大方正集团有限公司 | Method and device for positioning and identifying compressed image object |
CN104156729A (en) * | 2014-07-21 | 2014-11-19 | 武汉理工大学 | Counting method for people in classroom |
US20140347514A1 (en) * | 2008-01-27 | 2014-11-27 | DigitalOptics Corporation Europe Limited | Detecting Facial Expressions In Digital Images |
CN104268535A (en) * | 2014-10-10 | 2015-01-07 | 上海海事大学 | Method for extracting features of two-dimensional image |
-
2015
- 2015-05-14 CN CN201510247048.7A patent/CN104899598B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140347514A1 (en) * | 2008-01-27 | 2014-11-27 | DigitalOptics Corporation Europe Limited | Detecting Facial Expressions In Digital Images |
CN101742291A (en) * | 2008-11-14 | 2010-06-16 | 北大方正集团有限公司 | Method and device for positioning and identifying compressed image object |
CN104156729A (en) * | 2014-07-21 | 2014-11-19 | 武汉理工大学 | Counting method for people in classroom |
CN104268535A (en) * | 2014-10-10 | 2015-01-07 | 上海海事大学 | Method for extracting features of two-dimensional image |
Non-Patent Citations (1)
Title |
---|
周治平等: "特征回归与检测结合的人数统计方法", 《计算机辅助设计与图形学学报》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106897698A (en) * | 2017-02-24 | 2017-06-27 | 常州常工电子科技股份有限公司 | Classroom number detection method and system based on machine vision Yu binocular coordination technique |
CN106897698B (en) * | 2017-02-24 | 2019-12-06 | 常州常工电子科技股份有限公司 | Classroom people number detection method and system based on machine vision and binocular collaborative technology |
Also Published As
Publication number | Publication date |
---|---|
CN104899598B (en) | 2019-10-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106598988B (en) | Data processing method and equipment | |
MY201891A (en) | Model training method, apparatus, and device, and data similarity determining method, apparatus and device | |
CN105005980B (en) | Image processing method and device | |
Alizadeh Noughabi et al. | An entropy test for the Rayleigh distribution and power comparison | |
PH12021550290A1 (en) | Video image component prediction method and device, and computer storage medium | |
Nair et al. | The Govindarajulu distribution: Some properties and applications | |
CN110322398A (en) | Image processing method, device, electronic equipment and computer readable storage medium | |
AU2017409831A1 (en) | Advertisement generation method, computer readable storage medium and system | |
CN106296757A (en) | A kind of image processing method and device | |
CN104899598A (en) | Method and device for counting persons in classroom based on two-dimensional Fourier transform | |
Sekar et al. | An approach of image scaling using DWT and bicubic interpolation | |
Soltani et al. | Periodically correlated autoregressive Hilbertian processes | |
CN103745443A (en) | Method and equipment for improving image quality | |
CN110602472A (en) | Local tone mapping method and device based on histogram and guide filtering | |
CN113110733A (en) | Virtual field interaction method and system based on remote duplex | |
CN104376578A (en) | Moving object detection processing method and device applied to direct recording and broadcasting system | |
CN106504236A (en) | Based on rarefaction representation without referring to objective evaluation method for quality of stereo images | |
CN109996085A (en) | Model training method, image processing method, device and electronic equipment | |
CN104933329A (en) | Biological data processing method and device and portable mobile handheld equipment | |
CN104392411B (en) | Image processing method and device based on Shannon Blackman small echo sparse expressions | |
CN103294788A (en) | Universal background processing method and system for websites | |
CN105607886A (en) | Education cloud video data display processing system and method based on Internet of things | |
AU2015100999A4 (en) | THE 5Ws PATTERN-RATIO PARALLEL AXES | |
CN105138819A (en) | Method for generating computational intensity surface of spatial computational domain | |
CN103902726A (en) | Method for acquiring all subcategories under Baidu Baike figure category |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220328 Address after: Room 404, building 502, Nanli District 5, Science Park, Chaoyang District, Beijing 100101 Patentee after: Yuansheng titanium (Beijing) Technology Development Co.,Ltd. Address before: 100193 No. 2 Old Summer Palace West Road, Beijing, Haidian District Patentee before: CHINA AGRICULTURAL University |
|
TR01 | Transfer of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20191001 |
|
CF01 | Termination of patent right due to non-payment of annual fee |