File Exchange

image thumbnail

Intellicam(Real time moving object tracker)

version 1.0 (4.21 KB) by

The above code used to track the real time moving objects

18 Downloads

Updated

View License

Hey what up?
Here s my tiny project code which tracks the real time moving object using any webcam or surveillance cam ,it can we wireless as i used wireless surveillance camera which is mounted on the stepper motor to track the object even if the object is going out of camera's field of view(FOV),to test or use this project you need PIC 16f877a/887 microcontroller ,build and burn the assembly code given in the file by removing those % symbols...if using surveillance cams with composite out connect the video out to TV tuner card which in turn connects to PC via USB and connect the serial cable between the PC and PIC board ,as matlab communicates with the PIC through UART.you can also make your model completely wireless by connecting RF transceiver to UART of the PIC and PC as we did that in our model.As a result your cam will track dynamically the moving objects by turning the cam left or right tht depends on u r moving object,one disadvantage is that my code will work only if moving object is present in FOV of cam else it will throw centroid error......LOKU

Comments and Ratings (23)

emima jakulin

error in cd=s.Centroid

Vrushal Raut

Same error is showing. Plz help me
cd = s.Centroid

Akash

Akash (view profile)

Error in ==> lokwebcamtrack at 29
s = regionprops(bw2, 'centroid');

amey patil

How is UART playing a role in this project??
Means how serial communication initiated using MATLAB

does it work with MATLAB 2011b? without the required toolbox programs?

Dear Lokesh...this is nice piece of work and thanks a ton for sharing this with us. I am using this program but getting many centroid points around the moving parts. I want to know are you also getting the same output as me? I am using MATLAB 7.0 r2010 version. You can mail me to my mail id bodhisattwa.chakraborty@gmail.com. Thanks in advance.

ABHISHEK L

Dear Lokesh,

Your work is very good. Can you please provide more details about the algorithm that you have used.Any technical papers/references will be really useful.

Thanks a lot!!

donny jason

Sorry there, which port are you using to send the data to the stepper motor?i use to connect it to RA0,RA1,RA2 and RA3? Is this method correct? Thank you.

donny jason

I need help with the serial communication. I'm not quite understand with the following command:

if (cd(1)<=20)
fprintf(ser, '%s','1');
%cd(1) because we r considering width i.e %X,u can change your threshold's
elseif (cd(1) >= 330)
fprintf(ser, '%s','2');
end

donny jason

thank you Lokesh Golla, I add another wiener filter, the cd=s.Centroid already solve.

SUDHAKAR AKKI

SUDHAKAR AKKI (view profile)

keka out put

Lokesh Golla

@DONNY JASON

UNLOCK MEANS TO REMOVE '%' TO MAKE CODE LINE ACTIVE

Lokesh Golla

@LEE
USE SERIAL INTERFACE AND READ THE DATA FOR PIC...IF YOU DONT OF SERIAL INTERFACE YOU CAN USE USBTOPIC CONVERTER.YOU CAN USE EMBEDDED TOOLBOX IF YOU WANT OR DIRECTLY YOU CAN READ DATA FROM PIC USING FUNCTIONS AVAILABLE

donny jason

unlock means a new command?

Lee

Lee (view profile)

Hi, I got a challenge here..
if I wan to implement to PIC using MATLAB. I kind of blur here, Any additional toolboxes/software needed in order to do that?

Lokesh Golla

@above
First determine your noise type whether it is salt and pepper noise or gaussian noise ...suitably unlock medfilt2 or add other noise reduction filter

Lee

Lee (view profile)

Hi, great work. But I facing with error here.

Error in ==> lokfinal at 43
cd - s.Centroid

how to unlock noise filter quote as you mention ya?

Lokesh Golla

@above
Pls decrease the back ground noise or use decent backgrounds for best results where light intensity is uniform ...better to unlock noise filter quote's in case of error's

Bandar

Bandar (view profile)

wow, it is very good

buy after run this error come

??? Too many outputs requested. Most likely cause is missing [] around
left hand side that has a comma separated list expansion.

Error in ==> lokfinal at 43
cd = s.Centroid

how can I solve it?

thank you.

akash

akash (view profile)

wow!!was really nice.
can u tell me where u learned this..m also thinking to do d same//it wll be really helpful

MATLAB Release
MATLAB 7.9 (R2009b)
Acknowledgements

Inspired by: Motion Detection in a video

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video