Deteksi Warna Dasar Menggunakan Metode Thresholding HSV dengan OpenCV

Digital image processing is a rapidly developing branch of computer science and has many applications in everyday life. One of the fields that most often utilizes this technique is object detection and color identification in images and videos. This study specifically aims to implement the thresholding method in the HSV (Hue, Saturation, Value) color space to detect three basic colors, namely red, green, and blue, in digital images. The research process begins with uploading images using the Google Colab platform, a cloud-based computing environment that makes it easy for users to run Python programs without requiring additional software installation. After the image is uploaded, the next step is to convert it from the RGB (Red, Green, Blue) color space to the HSV color space. This conversion is important because the HSV color space is more suitable for use in the color segmentation process. The Hue value represents the type of color, Saturation shows the level of saturation, while Value describes the level of brightness. Once the image is in the HSV color space, the next step is to determine the HSV value range for each basic color. This range is determined based on experimental results and references from related literature. Using this range, masking is performed to extract the appropriate pixels so that only the red, green, or blue portions of the image are visible, while the other colors are reduced. The results show that the thresholding method in the HSV color space is capable of detecting primary colors with a good level of visual accuracy, especially in simple images with contrasting backgrounds. The implementation of this program is relatively lightweight, easy to run directly in Google Colab, and does not require high-spec hardware. Therefore, this method is very suitable for use as basic learning material for digital image processing, both for students and novice researchers.

Authors

Institutions

Publication Details

Journal
Neptunus
Published
2025-08-22
DOI
https://doi.org/10.61132/neptunus.v3i3.1020
Primary Topic
Multimedia Learning Systems
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Deteksi Warna Dasar Menggunakan Metode Thresholding HSV dengan OpenCV

Rizky Citra Ramadhan, Zaenal Akbar, Abdul Halim Hasugian, Asrul Suwondo
Neptunus
Multimedia Learning Systems
article

Deteksi Warna Dasar Menggunakan Metode Thresholding HSV dengan OpenCV

Rizky Citra Ramadhan, Zaenal Akbar, Abdul Halim Hasugian, Asrul Suwondo
article en

Abstract

Digital image processing is a rapidly developing branch of computer science and has many applications in everyday life. One of the fields that most often utilizes this technique is object detection and color identification in images and videos. This study specifically aims to implement the thresholding method in the HSV (Hue, Saturation, Value) color space to detect three basic colors, namely red, green, and blue, in digital images. The research process begins with uploading images using the Google Colab platform, a cloud-based computing environment that makes it easy for users to run Python programs without requiring additional software installation. After the image is uploaded, the next step is to convert it from the RGB (Red, Green, Blue) color space to the HSV color space. This conversion is important because the HSV color space is more suitable for use in the color segmentation process. The Hue value represents the type of color, Saturation shows the level of saturation, while Value describes the level of brightness. Once the image is in the HSV color space, the next step is to determine the HSV value range for each basic color. This range is determined based on experimental results and references from related literature. Using this range, masking is performed to extract the appropriate pixels so that only the red, green, or blue portions of the image are visible, while the other colors are reduced. The results show that the thresholding method in the HSV color space is capable of detecting primary colors with a good level of visual accuracy, especially in simple images with contrasting backgrounds. The implementation of this program is relatively lightweight, easy to run directly in Google Colab, and does not require high-spec hardware. Therefore, this method is very suitable for use as basic learning material for digital image processing, both for students and novice researchers.

NeptunusVol. 3(3)
Universitas Islam Negeri Sumatera Utara (ID)
Openalex Percentile: Top 68%
Multimedia Learning Systems
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.