Available via license: CC BY 3.0
Content may be subject to copyright.
IOP Conference Series: Materials Science and Engineering
PAPER • OPEN ACCESS
Webcam Application for Classrooms Monitoring
To cite this article: A Latifah 2018 IOP Conf. Ser.: Mater. Sci. Eng. 434 012203
View the article online for updates and enhancements.
This content was downloaded from IP address 191.101.108.78 on 04/12/2018 at 00:59
1
Content from this work may be used under the terms of the Creative Commons Attribution 3.0 licence. Any further distribution
of this work must maintain attribution to the author(s) and the title of the work, journal citation and DOI.
Published under licence by IOP Publishing Ltd
1234567890‘’“”
3rd Annual Applied Science and Engineering Conference (AASEC 2018) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 434 (2018) 012203 doi:10.1088/1757-899X/434/1/012203
Webcam Application for Classrooms Monitoring
A Latifah
Department of Informatics, Sekolah Tinggi Teknologi Garut, Jl. Mayor Syamsu No. 1,
Garut, 44151, Indonesia
ayulatifah@sttgarut.ac.id
Abstract. Along with the development of information technology in the security field, the need
for technologies that can assist human work in maintaining security is also increasing. One of
the efforts in maintaining security is through monitoring of an area, such office area, and
educational institution. Monitoring the institutions are necessary to look at the condition of a
classroom, which is generally used a monitor screen to display monitoring results that will limit
the movement. Therefore, the system design is done to perform monitoring of a classroom on
smartphones. In the implementation, the design of the data communications system, hardware
and software first then will be analyzing the implementation and testing system including the
measurement in it. This system uses web camera (webcam) to monitor classrooms that are
connected with raspberry pi via USB port where Raspberry Ethernet/ LAN/ RJ45 port connected
to a router. Monitoring location can be done by smartphones without internet as the devices are
in the router network coverage.
1. Introduction
Monitoring of an area on a regular basis is quite difficult, especially if the monitoring area has a wide
scope as well as offices, shopping centers, and educational institutions. It is to prevent frequent criminal
acts in public areas, and in educational institutions, monitoring is also required to monitor the state of a
classroom especially during the process of teaching and examination [1].
Direct monitoring without the use of technological progress will be quite difficult considering the
time, and when there are other important activities. General use of technology is still limited where the
PC monitor screen used as the main media to display the monitoring results can limit the movement [2].
Based on the description above, then this tool is developed for monitoring a classroom with a
monitoring process that can be done through mobile devices such as smartphone [3]. Many studies
mention that the use of smartphones as a tool provider of information that multi-media provide a positive
impact for the user [4-9]. This research designs a classrooms monitoring process that is done by using a
webcam that is connected with raspberry pi as a controller to process the data that captured by webcam
which will be sent to the android device via wireless local area network using router [10].
2. Design and implementation
2.1. General review
The design is the process of pouring ideas based on the basic theories that support ideas [11]. Figure 1
shows the designing process that is divided into several parts, as follows:
Specifying the system block diagram;
2
1234567890‘’“”
3rd Annual Applied Science and Engineering Conference (AASEC 2018) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 434 (2018) 012203 doi:10.1088/1757-899X/434/1/012203
Determining how the tools work;
Designing Hardware;
Designing Software.
Raspberry Pi
Android
Web Server
Webcam
Input Process Output
Figure 1. System block diagram.
Figure 2. Full control of the system.
2.2. Block diagram
Figure 1 is a block diagram as a general overview of working system tool created. The workings of this
tool start from the system input in the form of a webcam that serves to capture images [12]. Furthermore,
the catch of a webcam image in the form of digital images will be processed by raspberry pi control.
This control serves as temporary storage of captured image data from the webcam to be accessible via
the web server [13]. Furthermore, for the system output to be monitored through the Android mobile
device, then made an application that is integrated into android to do the monitoring process.
2.3. Designing hardware
The hardware design is shown in Figure 2, where the webcam is connected to raspberry pi control via
USB port, raspberry pi’s source voltage obtained from the USB smartphone adapter/charger. The blower
on the schematic above is used to cooling raspberry pi so it will not interfere the performance of the
tool. Then to be able to transfer the captured images online, raspberry pi is connected to the router via
an ethernet cable so that the captured images can be monitored through any device while still within
wireless router range by using a web browser. Direct monitoring can be done through android mobile
device through the application of the implementation of software design of this tool. Figure 3 illustrates
the implementation results of the hardware design.
3
1234567890‘’“”
3rd Annual Applied Science and Engineering Conference (AASEC 2018) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 434 (2018) 012203 doi:10.1088/1757-899X/434/1/012203
2.4. Designing software
This design is done by creating a flowchart to simplify the process of implementation and error analysis
when the program created [14]. Flowcharts designed in this application are shown in Figure 4.
Figure 3. Flowchart overall system.
Figure 4. Hardware implementation.
4
1234567890‘’“”
3rd Annual Applied Science and Engineering Conference (AASEC 2018) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 434 (2018) 012203 doi:10.1088/1757-899X/434/1/012203
Figure 5. Android programming view.
To facilitate monitoring, an application is created on the Android device so that monitoring can be
done anywhere quite easily (Figure 5). Also, this application is equipped with reloading and capture
features to saving the image from the monitoring results.
3. Measurements and analysis
3.1. Measurements and analysis of webcam without a router
Table 1 shows that the image captured by the webcam which is not using the router, has a very small
delay of 2 ms, the catch of the webcam when capturing the motion will be immediately visible on the
monitor screen that has been connected to the raspberry pi control device.
Table 1. Results of webcam captured images without a router.
No.
Webcam Captured Images
Delay
1.
Image (.jpg)
2 ms
2.
Video (.swf)
2 ms
3.2. Measurement and analysis of raspberry pi connection with the router
Table 2 shows that the connection between the raspberry pi control with the router used is good. When
ping from raspberry pi device against IP router or IP PC connected to the wireless router, the response
is obtained quickly enough with 1 ms delay.
Table 2. Results of measurement of raspberry pi connection with the router.
No.
IP Address
Delay
1.
192.168.0.1 (Router)
1 ms
2.
192.168.0.100 (PC/Laptop)
0.9 ms
5
1234567890‘’“”
3rd Annual Applied Science and Engineering Conference (AASEC 2018) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 434 (2018) 012203 doi:10.1088/1757-899X/434/1/012203
3.3. Measurement and image quality analysis
Table 3. Results of image delay measurement with a resolution of 200x120 pixel.
No.
Distance
(m)
Delay (s)
10 fps
15 fps
20 fps
25 fps
30 fps
1.
5
2.07
3
3.39
3.5
4.02
2.
10
2.17
3
3.45
3.7
4.1
3.
15
2.4
3.3
3.7
3.98
4.2
4.
20
3
3.72
3.87
4.32
4.89
Table 4. Results of image delay measurement with a resolution of 260x180 pixel.
No.
Distance
(m)
Delay (s)
10 fps
15 fps
20 fps
25 fps
30 fps
1.
5
2.97
3.21
3.45
4.05
4.32
2.
10
2.98
3.43
3.87
4.45
4.89
3.
15
3.34
3.65
4.01
4.67
5
4.
20
3.65
3.77
4.23
4.88
5.21
Table 5. Results of image delay measurement with a resolution of 320x240 pixel.
No.
Distance
(m)
Delay (s)
10 fps
15 fps
20 fps
25 fps
30 fps
1.
5
4.1
4.3
4.35
4.45
4.4
2.
10
4.23
4.45
4.65
4.76
4.87
3.
15
4.56
4.58
5.02
5.02
5.54
4.
20
5.67
5.88
5.9
6.01
7.62
Measurement in this section is done to find out whether good or bad image quality, also whether far and
near distance will affect the delay at the time of sending the result of catching webcam image. The
results seen from Tables 3, 4 and 5 show that video image resolution can affect the amount of speed in
data processing, the larger video image resolution the delay required for image processing will be
greater. It is because at the resolution of large video images there are more pixels. On the results also
obtained, the greater the frame rate then the lapse (delay) will be greater. It is because the video with a
large frame rate means the number of frames produced every second is also getting bigger. Distance
factor of the measurement also affect, the greater the distance then the lapse (delay) will be even greater
[15].
3.4. Measurement and analysis of system resistance to motion
Measurements in this section are performed to test the system‘s durability, how long the raspberry pi
control can survive when the number of motion images captured by the webcam, because when the
absence of motion, images or video will not be stored. At this measurement, the resolution of the
webcam captured images is set 320x240 pixels.
Table 6. The results of measurements of system resistance to motion with bitrate 400000.
No.
Fps size
File size (kB)
System time duration
1.
10
105.3
86400 seconds
2.
15
167
54000 seconds
3.
20
169.7
54000 seconds
4.
25
170.7
54000 seconds
5.
30
176.3
54000 seconds
6
1234567890‘’“”
3rd Annual Applied Science and Engineering Conference (AASEC 2018) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 434 (2018) 012203 doi:10.1088/1757-899X/434/1/012203
Table 7. Results of system resistance to motion with bitrate 500000.
No.
Fps Size
File size (kB)
System time duration
1.
10
140.7
68400 seconds
2.
15
153
61200 seconds
3.
20
196.7
46800 seconds
4.
25
233
39600 seconds
5.
30
259
36000 seconds
Table 8. Results of system resistance to motion with bitrate 600000.
No.
Fps Size
File Size (kB)
System time duration
1.
10
142
68400 seconds
2.
15
167
57600 seconds
3.
20
213
43200 seconds
4.
25
253.7
36000 seconds
5.
30
261.2
36000 seconds
The results in Tables 6, 7 and 8 show that if the frame rate and bitrate are bigger, then the data size
also increases [16]. This can affect the resilience of raspberry pi control system because the size of
memory SD card that used on raspberry pi control is 11 GB, so the length of recording time process is
limited, and before reaching the limit of maximum at a certain time, raspberry pi must delete image files
and webcam-captured videos.
4. Conclusions and suggestions
From several experiments done, the speed at transferring video images from raspberry pi control to other
devices via a router depends on the amount of resolution, frame rate, bit rate, the distance between the
transmitters and the state, in which the system is used whether there are many obstructions or not. The
larger resolution, frame rate, and bitrate set, then the delay will also be greater. The last thing is the
greater distance between transmitter and receiver then the process of sending the image will be longer.
For further development tools, it is suggested that webcam captured can be accessed online by
operator‘s network, so the access distance for monitoring is unlimited as long as there is a data network.
The webcam can move automatically at a wider angle to monitor the entire contents of a classroom. The
process of recording video, as well as streaming audio and applications on Android for more than one
webcam.
References
[1] Tulumello S 2017 "Toward a critical understanding of urban security within the institutional
practice of urban planning: The case of the Lisbon Metropolitan Area," Journal of Planning
Education and Research 37 (4) 397-410.
[2] Romppanen M and Ujam F 2010 "Monitoring the Physical Structure of the Helsinki Metropolitan
Area," Journal of Urban Design 3 (9) 367-377.
[3] Cai H and Ryder B G 2017 "Understanding Android application programming and security: A
dynamic study," in In Software Maintenance and Evolution (ICSME), 2017 IEEE
International Conference on (pp. 364-375). IEEE.
[4] Aisyah R, Zakiyah I A, Farida I and Ramdhani M A "Learning Crude Oil by Using Scientific
Literacy Comics," Journal of Physics: Conference Series 895 (1) 012011.
[5] Farida I, Helsy I, Fitriani I and Ramdhani M A 2018 "Learning Material of Chemistry in High
School Using Multiple Representations," IOP Conference Series: Materials Science and
Engineering 228 012078.
[6] Irwansyah F S, Lubab I and Ramdhani I F M A 2017 "Designing Interactive Electronic Module
7
1234567890‘’“”
3rd Annual Applied Science and Engineering Conference (AASEC 2018) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 434 (2018) 012203 doi:10.1088/1757-899X/434/1/012203
in Chemistry Lessons," Journal of Physics: Conference Series 895 (10) 012009.
[7] Irwansyah F S, Yusuf Y M, Farida I and Ramdhani M A 2018 "Augmented Reality (AR)
Technology on The Android Operating System in Chemistry Learning," IOP Conference
Series: Materials Science and Engineering 288 012068.
[8] Sari S, Anjani R, Farida I and Ramdhani M A 2017 "Using Android-Based Educational Game for
Learning Colloid Material," Journal of Physics: Conference Series 895 (1) 012012.
[9] Helsy I, Maryamah, Farida I and Ramdhani M A 2017 "Volta-Based Cells Materials Chemical
Multiple Representation to Improve Ability of Student Representation," Journal of Physics:
Conference Series 895 (1) 012010.
[10] Song C H, Elvers D and Leker J 2017 "Anticipation of converging technology areas—A refined
approach for the identification of attractive fields of innovation," Technological Forecasting
and Social Change 116 98-115.
[11] Lakshmi R D, Priya P L, Lokanyaa G and Sharmila J 2017 "Security System using Raspberry Pi
With Door Lock Controller," International Journal of Engineering Science 7 (4) 10090-10094.
[12] Gupta V, Mane V and Pradhan M R 2017 "IOT Based Car Automation Using Raspberry Pi,"
Imperial Journal of Interdisciplinary Research 3 (4).
[13] Alkandari A A and Moein S 2018 "Implementation of Monitoring System for Air Quality using
Raspberry Pi: Experimental Study," Indonesian Journal of Electrical Engineering and
Computer Science 10 (1).
[14] Paulchamy B, Archana K, Bruno A D, Divya I and Krishnan M G 2017 "A Novel Approach
Towards Road Safetybased on Investigational Survey Using Image Processing and User
Interface System," International Education and Research Journal 3 (3).
[15] Zabri A, Rahim M K A, Zubir F, Nadzir N M and Majid H A 2017 "Video Monitoring Application
Using Wireless Sensor Node with Various External Antenna," Indonesian Journal of
Electrical Engineering and Computer Science 6 (1) 148-154.
[16] Sundar S, Ghosh R and Shahil H 2017 "A Prototype of Automated Child Monitoring System,"
International journal of computational intelligence research 13 (7) 1593-1603.