Motion Tracking Demo Windows, Unix, Raspberry Pi using Python, openCV, webcam/pi-camera

preview_player
Показать описание

Watch for our black and tan chihuahua in the first part of the video get tracked for motion. Hard to see , but the camera found her.

It will detect motion in the field of view and use opencv to compare images and calculate a threshold image and related contours. It will then determine the largest contour and return its x, y coordinates in real time. Note this program is for demonstration purposes only.

I will be using similar code for a simple RPI robotics project, but thought this demo code would be useful for other users as a starting point or part of an existing project.

I did quite a bit of searching on the internet, github, etc, but could not find a similar implementation that returns x,y coordinates of the most dominate moving object in the frame although some came close

Prerequisites
Requires a Raspberry Pi, windows or unix computer running an up-to-date python version and a Web or RPI camera module installed and configured. See Github repo for more details.

Good Luck Claude ...
Рекомендации по теме
Комментарии
Автор

Hi Claude, just noticed your video. You did well. I built a surveillance system for my house but ran out of time to stick in the fancy bits. I have everything on motioneyeos and it works perfectly. I finished my MSc project, and it was a lot of fun even though my health was poor. I'm interested in quantum computing and building satellites. I know what you are going to say about the expense of building even a wee box type. I'll be doing something interesting this winter. Let me know what you are up to.

izawolf
Автор

It was really that easy. Thank you very much.

bassluke
Автор

Fantastic! I'm an embedded software engineer and purchased a Pi 3 a few weeks ago and have OpenCV installed. Just wondering what to do with it that would be fun.

DavidHaile_profile
Автор

Almost done installing OpenCV3 onto a Raspberry Pi 1 Model B, it has been a very long install (sudo make).

I am on a project that includes tracking a person left, right, up and down (half hemisphere). The end goal is for it to be a light following one person in an area(max distance of 15 ft).

I am hoping your code may help.
Thanks!

austinlengvenis
Автор

Hello. When ever I'm trying to run the program -"motion3-track.py", it usually gives me an error message - "line 129, in_control_callback" "Received unexpected camera control callback event, 0x%08x" % buf [0].cmd". Please help me!!!😢

gyakoboandy
Автор

yeah that what i was looking for i'd like to use it in my project this semester : i will be happy if i get some help from you sir :)

zakariarada
Автор

Hello, may you please tell what camera are you using for the raspberry pi?

gyakoboandy
Автор

hey can you please help me, i am using an RPi 3 with both python 2.7 and 3 installed for opencv. I keep getting an error that Window system doesn't support OpenGL and i have tried sudo apt-get install libgl1-mesa-dri without any luck aswell as following the instructions from the RPi website. Do you know how i can get it to work?

AppHackrPr
Автор

I need this green circle to be extended to rectangle with greater size

syedumaidahmed
Автор

May I know the algorithm you used for this?
I want an algorithm explanation

shortandeasytutorials
Автор

Hello Mr.Claude Great video ! you explain lots of things and information, however I'm new to rass pi and python building a project using pretty much the same concept with slight modifications, and i'm stuck now, can you help me to overcome them ? your have great experience it would be great if i get some hints from you Mr

RouslanReslan
Автор

hi sir..

how to play the video? I mean how to show up the terminal that show the live video..
Thank you sir for your help

alifqadri
Автор

can you make a video tutorial ? I'm really desperate

ziyedhamrouni
Автор

Sir will you check it up your Gmail . thanks.

zakariarada
welcome to shbcf.ru