Recognize Objects Using HSV Values from Real-Time Video Data
Image Processing Using MATLAB
This repository contains image processing code. The codes are designed to recognise objects using HSV values from real-time video data.
v.2017.1.0.0
The GUI is created using Guide. The code is rather outdated. However, I am still publishing this for future reference and developments. I accomplished this in 2017-2018, and there have been many improvements and optimizations since then. The new approach is updated in the 2021 folder.
Issues
These functions are slow and time-consuming; any alternative would be greatly appreciated.
#1
Issuejumma.m
Slider Callback Function for saving inThe following code retrieves values from the GUI Slider and passes them to the corresponding HSV values in the link.m file.
save function saves the value of the slider in a .txt file that can be called in the other .m file
h1=get(handles.slider1,'value');
set(handles.edit1,'string',h1);
%h1 = get(hObject,'Value')
% print h1
save ('h1.txt','h1','-ascii')
link.m
Load inThis takes the value from the.txt file into the appropriate variable.
u1=load('h1.txt')
hueThresholdLow=u1;
v.2021.1.0.0
This is an improvement over the previous version, that used guide to generate the gui and the remaining processing functions were executed in a separate .m file. It took a long time and was out of date. This method makes use of app designer to create a matlab app, and there is no need for another .m file to process and display the image.
⭐ The repo
Eat, Sleep, CODE, Repeat!
Cite As
sahq_azhar (2024). Recognize Objects Using HSV Values from Real-Time Video Data (https://github.com/sahq-azhar/MATLAB-Image_Processing/releases/tag/2021.1.0.0), GitHub. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
2017/0_Initialization
2017/1_Getting HSV values from slider-GUI
2017/2_Detecting object in real-time
Version | Published | Release Notes | |
---|---|---|---|
2021.1.0.0 | See release notes for this release on GitHub: https://github.com/sahq-azhar/MATLAB-Image_Processing/releases/tag/2021.1.0.0 |
||
2017.1.0.0 |