Object motion detection in home security system using the binary-image comparison method based on robot operating system 2 and Raspberry Pi

Abdul Jalil(1*); Matalangi Matalangi(2);

(1) STMIK Handayani Makassar
(2) STMIK Handayani Makassar
(*) Corresponding Author



This study aims is to build a home security system based on object motion detection using the Robot Operating System 2 (ROS2) and the Raspberry Pi. ROS2 in this study was used to read and process the camera data and to control the buzzer sound. At the same time, the Raspberry Pi hardware functioned to run  ROS2 using the Linux Ubuntu 18.04 operating system. The camera function to read the image and video data could be developed for the input device to control the home security systems based on object motion detection. The method used to detect an object motion was Binary-Image Comparison (BIC). This method works by comparing the value of the binary image object with the binary master and using it as a decision-making algorithm when the camera detected the object movement based on the object colors. The object colors that were detected in this study were red, yellow, green, and blue. Each object color was processed using the OpenCV library in the ROS2 node service. After that, all of the nodes communicated through topics to communicating and exchanging the message data. This study has successfully developed a prototype that can generate a buzzer sound warning to the user when the camera detected the object motion based on the object color.


Home Security; Object Motion; ROS2; Raspberry Pi


Full Text:


Article Metrics

Abstract view: 722 times
PDF view: 230 times

Digital Object Identifier

doi  https://doi.org/10.33096/ilkom.v13i1.686.1-8



A. Moborak, I. Sofyan, A. A. Rismayadi, and I. Najiyah, Sistem Keamanan Rumah Menggunakan RFID, Sensor PIR dan Modul GSM Berbasis Mikrokontroler, [Home Security System Using RFID, PIR Sensor and GSM Module Based on Microcontroller] Jurnal INFORMATIKA, Vol. 5, No. 1, pp. 137144, April 2018.

R. L. Singgeta, P. D.K. Manembu, and M. D. Rembet, Sistem Pengamanan Pintu Rumah Dengan RFID Berbasis Wireless ESP8266, [Home Door Security System With RFID Based Wireless ESP8266] Seminar Nasional Riset dan Teknologi Terapan 2018 (RITEKTRA 2018), pp. 8797, August 2018.

F. P. Juniawan, and D. Y. Sylfani, Prototipe Sistem Keamanan Rumah Menggunakan Kombinasi Sensor dan SMS Gateway, [Prototype of a Home Security System Using a Combination of Sensors and SMS Gateway] Jurnal TEKNOINFO, Vol. 13, No. 2, pp. 7883, 2019.

M. Saleh, Rancang Bangun Sistem Keamanan Rumah Menggunakan Relay, [Design of Home Security Systems Using Relays] Jurnal Teknologi Elektro, Vol. 8, No. 2, pp. 8794, May 2017.

M. D. Payana, and N. Husna, Rancang Bangun Sistem Keamanan Pada Pintu Rumah Dengan Menggunakan Sensor PIR dan Peringatan Dini Melalui SMS Berbasis Mikrokontroler, [Design of a Security System at Home Doors Using PIR Sensors and Microcontroller-Based SMS Early Warning] Journal of Informatics and Computer Science, Vol. 4, No. 1, pp. 15, April 2018.

A. N. Ginting, and M. Amin, Keamanan Rumah Menggunakan Sensor PIR dan Modul GSM Arduino, [Home Security Using PIR Sensors and Arduino GSM Modules] Jurnal Teknovasi, Vol. 05, No. 01, pp. 4653, 2018.

I. Ramadhan, and K. Prawiroredjo, Prototipe Otomatisasi Pengaman Rumah Berbasis Arduino dan Android, [Prototype of Arduino and Android-Based Home Security Automation] JETri, Vol. 16, No. 1, pp. 7186, August 2018.

D. Setiawan, J. E. Candra, and C. E. Suharyanto, Perancangan Sistem Pengontrol Keamanan Rumah Dengan Smart CCTV Menggunakan Arduino Berbasis Telegram, [Designing a Home Security Control System With Smart CCTV Using Arduino Based on Telegram] InfoTekjar: National Journal of Informatics and Network Technology, Vol. 4, No. 1, pp. 185190, 2019.

H. A. Syahidulhaq, Hafiddudin, and S. Aulia, Sistem Keamanan Berbasis Alarm IP Camera Dengan Passive Infrared Receiver (PIR) Sensor dan SMS Gateway, [IP Camera Alarm Based Security System with Passive Infrared Receiver (PIR) Sensor and SMS Gateway] Journal of Applied Electrical and Telecommunication, Vol. 3, No. 2, pp. 312320, December 2016.

Matalangi, and A. Jalil, Deteksi Gerak Objek Berbasis Pengolahan Citra Menggunakan Metode Binary-Image Comparison, [Object Motion Detection Based on Image Processing Using the Binary-Image Comparison Method] Luceat Electro Journal, Vol. 6, No. 1, July 2020.

A. Baudrier, G. Millon, F. Nicolier, and S. Ruan, A fast binary-image comparison method with local-dissimilarity quantification, International Conference on Pattern Recognition (ICPR'06), 2006. DOI: 10.1109/ICPR.2006.63.

J. Paumard, Robust comparison of binary images, ELSEVIER, Pattern Recognition Letters, 1997.

E. Murniyasih, and L. Suryani, Penerapan Metode Learning Vector Quantization Untuk Identifikasi Penyakit Padi Berdasarkan Bentuk Bercak Daun, [Application of Learning Vector Quantization Methods for Identification of Rice Diseases Based on Leaf Spots] Luceat Electro Journal, Vol. 6, No. 1, July 2020.

M. Quigley, B. Gerkey, K. Conley, J. Faust, T. Foote, J. Leibs, E. Berger, R. Wheeler, and A. Ng, ROS: an open-source Robot Operating System ,", 2009.

Y. Maruyama, S. Kato, and T. Azumi, Exploring the Performance of ROS2, EMSOFT 16, 2016. DOI: http://dx.doi.org/10.1145/2968478.2968502.

A. Jalil, Pemanfaatan middleware Robot Operating System (ROS) Dalam Menjawab Tantangan Revolusi Industri 4.0, [Utilization of Robot Operating System (ROS) middleware in Responding to the Challenges of the Industrial Revolution 4.0] ILKOM Scientific Journal, Vol. 11, No. 1, 4552, April 2019. DOI: https://doi.org/10.33096/ilkom.v11i1.412.45-52.


  • There are currently no refbacks.

Copyright (c) 2021 Abdul Jalil, Matalangi Matalangi

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.