Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Work in Progress / 3D image tracking

Author
Message
Julius Caesar
16
Years of Service
User Offline
Joined: 14th Apr 2006
Location:
Posted: 29th Sep 2013 07:17
A friend and I have started working on movement tracking with webcams in DBPro. We recorded two videos simultaneously from different perspectives hoping to track an object in 3D.



So far, we have managed to load in a pre-recorded video sequence and then track the centre of an orange football, and it's x and y radius as they appear on screen.

The ultimate plan is to make something that can handle dual webcam input in real time... and have a 3D tracking utility that we can use with ease... even in DarkBASIC Pro. We're prototyping the the stuff we'll need in DB at the moment, to prove to ourselves we can do it from our recorded video. Then we'll port the code into something faster and try and make a .dll for DBPro. It's pretty ambitious, but hey... we both study engineering...

My friend, Jim, is new to DBPro but he's pretty experienced in C++ etc. I've been around here for a while, but I don't know how to use memblocks. I was wondering whether anyone knew how I could get colour values from an image quickly? Our program currently takes about 3min to process our short 2min video clip! I'm using the point() command as our main bit of processing, but it's incredibly slow to process!!
http://www.youtube.com/watch?v=H6Xgq6dkiZI&feature=youtu.be

BatVink
Moderator
19
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 30th Sep 2013 00:12
Interesting project

You definitely need memblocks for this! In fact you can directly access the "screen memory" to manipulate it like a memblock (second tutorial).

I wrote 2 tutorials a long time ago that will help you with what you need:

http://www.thegamecreators.com/pages/newsletters/newsletter_issue_32.html#9

http://www.thegamecreators.com/pages/newsletters/newsletter_issue_33.html#12

Julius Caesar
16
Years of Service
User Offline
Joined: 14th Apr 2006
Location:
Posted: 30th Sep 2013 02:05
Thanks a great deal! I'll be on them like a fly on something hot tomorrow!

Login to post a reply

Server time is: 2022-12-02 20:03:45
Your offset time is: 2022-12-02 20:03:45