current position:Home>[vehicle detection] multi vehicle detection on road based on background difference method with matlab code

[vehicle detection] multi vehicle detection on road based on background difference method with matlab code

2022-06-24 07:21:26Matlab scientific research studio

1 brief introduction

Moving target detection is one of the main research contents in the field of digital image processing, pattern recognition and computer vision , It is also an important field of computer vision research . The algorithm of video target detection based on background difference method is studied . With Matlab As the main research tool , Detect the moving target in the video . The principle and algorithm of background difference method are studied , It is discussed and analyzed in detail . The median filter background model is used to extract the background , The shadow of the target is detected and suppressed . Experimental results show that , Using this algorithm to detect moving targets has good accuracy and stability .

2 Part of the code

function varargout = EasyTrack(varargin)% EASYTRACK MATLAB code for EasyTrack.fig%      EASYTRACK, by itself, creates a new EASYTRACK or raises the existing%      singleton*.%%      H = EASYTRACK returns the handle to a new EASYTRACK or the handle to%      the existing singleton*.%%      EASYTRACK('CALLBACK',hObject,eventData,handles,...) calls the local%      function named CALLBACK in EASYTRACK.M with the given input arguments., handles)% hObject    handle to timeLimit (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% Hints: get(hObject,'String') returns contents of timeLimit as text%        str2double(get(hObject,'String')) returns contents of timeLimit as a double% --- Executes during object creation, after setting all properties.function timeLimit_CreateFcn(hObject, eventdata, handles)% hObject    handle to timeLimit (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.%       See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))    set(hObject,'BackgroundColor','white');end% --- Executes during object creation, after setting all properties.function uibuttongroup4_CreateFcn(hObject, eventdata, handles)% hObject    handle to uibuttongroup4 (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    empty - handles not created until after all CreateFcns calledhandles.f=[];% Yes figure Of handles To initialize guidata(hObject,handles);% --- Executes during object creation, after setting all properties.function radiobutton9_CreateFcn(hObject, eventdata, handles)% hObject    handle to radiobutton9 (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    empty - handles not created until after all CreateFcns calledhandles.saveSwitch=0;guidata(hObject,handles);function unitH_Callback(hObject, eventdata, handles)% hObject    handle to unitH (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% Hints: get(hObject,'String') returns contents of unitH as text%        str2double(get(hObject,'String')) returns contents of unitH as a double% --- Executes during object creation, after setting all properties.function unitH_CreateFcn(hObject, eventdata, handles)% hObject    handle to unitH (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.%       See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))    set(hObject,'BackgroundColor','white');end

3 Simulation results

4 reference

[1] Wang Guoqiang , Gaiqilin , Yu huaiyong , etc. . Research on video target detection algorithm based on background difference method [J]. Journal of engineering of Heilongjiang University , 2014, 5(4):5.​

About bloggers : Good at intelligent optimization algorithms 、 Neural networks predict 、 signal processing 、 Cellular automata 、 The image processing 、 Path planning 、 UAV and other fields Matlab Simulation , relevant matlab Code problems can be exchanged by private letter .

Some theories cite network literature , If there is infringement, contact the blogger to delete .

 

copyright notice
author[Matlab scientific research studio],Please bring the original link to reprint, thank you.
https://caren.inotgo.com/2022/175/202206240116294286.html

Random recommended