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.

DarkBASIC Discussion / Webcam controller

Author
Message
047
19
Years of Service
User Offline
Joined: 4th Jun 2006
Location:
Posted: 15th Dec 2008 20:55
Does anyone know of a dll or any other method that can be used to detect motion on a specific point on the screen through a webcam on DBC or DBP? I've been using a small program called Camtroller that I downloaded from this website:

http://camtroller.physicam.com/

Basically it allows you to position up to 18 contact points on the screen and assign which keys will be pressed when the points are touched. It works fine with games created in DB as long as they are running on a window. But I was wondering if anyone knows of way of doing something similar using just DB. Or maybe somehow implement the Camtroller program into a DB executable. Thanks
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 18th Dec 2008 00:18
Is this a sort of "EyeToy" like project?
Sounds interesting...

It looks like this software simulates key presses so I think you could just detect those key presses as per usual in DB.

Quote: "But I was wondering if anyone knows of way of doing something similar using just DB. Or maybe somehow implement the Camtroller program into a DB executable."

To do that you'd probably have to write the whole thing yourself.
Unless you can find the DLL it uses and use the calls directly from DB. I'm not sure it's quite complicated.

A small program that works is better than a large one that doesn't.

DBC Challenge Rank: Rookie
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 24th Dec 2008 04:11
search around the forum, someone managed to get a webcam working in db several years ago. Frame rates were rather poor though.

Login to post a reply

Server time is: 2025-06-07 21:00:05
Your offset time is: 2025-06-07 21:00:05