WHOAREU (Motion detection with a webcam)

Developed or developing a new product in PureBasic? Tell the world about it.
Intrigued
Enthusiast
Enthusiast
Posts: 501
Joined: Thu Jun 02, 2005 3:55 am
Location: U.S.A.

Post by Intrigued »

It's sometimes, now, capturing images to a folder (to the Desktop I've chosen, coo'!). I believe the Max sensitivity needs to be cranked up a good ways still. At least that's what it seems to be the problem now, on my system.

SCRATCH THIS POST (I left it up so that I can explain a point).

If the lighting is to low... the capture's do not happen. Now, I just had my cam turned to the ceiling a few feet from where a ceiling fan with 5 lights are on burning all at either 60 (or 1 at 40) watts. So, there should be enought light to activate the captures, but it seems not. As when I moved it so that my face was showing but the lights where in the capture area.. BANG! It works great!

Can this be handled in code or it's a Web cam thing? (I have a cheap $40 laptop unit).
Intrigued - Registered PureBasic, lifetime updates user
zikitrake
Addict
Addict
Posts: 875
Joined: Thu Mar 25, 2004 2:15 pm
Location: Spain

Post by zikitrake »

:? I think a better motion detection is needed. But, for now, I have posted a new version with a big corrected failure.

Also I have changed the method of change of sensitivity and copy webcam image method (Without #WM_CAP_EDIT_COPY)

Remember to configure your webcam to 320*240 and 24 bits
PB 6.21 beta, PureVision User
Intrigued
Enthusiast
Enthusiast
Posts: 501
Joined: Thu Jun 02, 2005 3:55 am
Location: U.S.A.

Post by Intrigued »

zikitrake wrote::? I think a better motion detection is needed. But, for now, I have posted a new version with a big corrected failure.

Also I have changed the method of change of sensitivity and copy webcam image method (Without #WM_CAP_EDIT_COPY)

Remember to configure your webcam to 320*240 and 24 bits
Now it's not capturing any, no matter how much light (incandescent bulbs) I shed onto the camera, or how little.

But, the resizing and positioning of the capture area seems to work. Well it allows for both actions with no crashing now.
Intrigued - Registered PureBasic, lifetime updates user
Intrigued
Enthusiast
Enthusiast
Posts: 501
Joined: Thu Jun 02, 2005 3:55 am
Location: U.S.A.

Post by Intrigued »

zikitrake wrote::? I think a better motion detection is needed. But, for now, I have posted a new version with a big corrected failure.

Also I have changed the method of change of sensitivity and copy webcam image method (Without #WM_CAP_EDIT_COPY)

Remember to configure your webcam to 320*240 and 24 bits
Now it's not capturing any, no matter how much light (incandescent bulbs) I shed onto the camera, or how little.

But, the resizing and positioning of the capture area seems to work. Well it allows for both actions with no crashing now.
Intrigued - Registered PureBasic, lifetime updates user
zikitrake
Addict
Addict
Posts: 875
Joined: Thu Mar 25, 2004 2:15 pm
Location: Spain

Post by zikitrake »

Intrigued wrote:Now it's not capturing any, no matter how much light (incandescent bulbs) I shed onto the camera, or how little.
But, the resizing and positioning of the capture area seems to work. Well it allows for both actions with no crashing now.
:oops: :oops: :oops: I incremented too much the sensibility and a variable.w was converted to negative value.... sorry.... and ... solved
PB 6.21 beta, PureVision User
zikitrake
Addict
Addict
Posts: 875
Joined: Thu Mar 25, 2004 2:15 pm
Location: Spain

Post by zikitrake »

:D New version:

- Save Configuration added.
- Bugfixed
- Some changes in the aspect of the program.
PB 6.21 beta, PureVision User
User avatar
J. Baker
Addict
Addict
Posts: 2185
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Post by J. Baker »

Hmm, all I'm seeing is a black screen.
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
zikitrake
Addict
Addict
Posts: 875
Joined: Thu Mar 25, 2004 2:15 pm
Location: Spain

Post by zikitrake »

Please, ensure to configure your webcam to 320*240 and 24 bits
PB 6.21 beta, PureVision User
User avatar
J. Baker
Addict
Addict
Posts: 2185
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Post by J. Baker »

zikitrake wrote:Please, ensure to configure your webcam to 320*240 and 24 bits
It is. I can see my image in the "Capture Zone Config" but not on the main screen.
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
Intrigued
Enthusiast
Enthusiast
Posts: 501
Joined: Thu Jun 02, 2005 3:55 am
Location: U.S.A.

Post by Intrigued »

J. Baker wrote:
zikitrake wrote:Please, ensure to configure your webcam to 320*240 and 24 bits
It is. I can see my image in the "Capture Zone Config" but not on the main screen.
Ditto here...
Intrigued - Registered PureBasic, lifetime updates user
Nik
Addict
Addict
Posts: 1017
Joined: Fri May 13, 2005 11:45 pm
Location: Germany
Contact:

Post by Nik »

I thnik this is the Problem mentioned by me in the Thread of the other Webcam program.
zikitrake
Addict
Addict
Posts: 875
Joined: Thu Mar 25, 2004 2:15 pm
Location: Spain

Post by zikitrake »

Nik wrote:I thnik this is the Problem mentioned by me in the Thread of the other Webcam program.
:( Yes, I changed the Copy Method for capture the webcam image to memory... I'll try to return to old method (#WM_CAP_EDIT_COPY ) And test it
PB 6.21 beta, PureVision User
zikitrake
Addict
Addict
Posts: 875
Joined: Thu Mar 25, 2004 2:15 pm
Location: Spain

Post by zikitrake »

Ok, I replaced the new Image Copy Method to the old method.

Please, test it and tell me
PB 6.21 beta, PureVision User
User avatar
J. Baker
Addict
Addict
Posts: 2185
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Post by J. Baker »

:D Works again!
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
Intrigued
Enthusiast
Enthusiast
Posts: 501
Joined: Thu Jun 02, 2005 3:55 am
Location: U.S.A.

Post by Intrigued »

zikitrake wrote:Ok, I replaced the new Image Copy Method to the old method.

Please, test it and tell me
The application now crashes on me at times, when it begins Start Monitoring activities. And, it's not sensitive enough still.
Intrigued - Registered PureBasic, lifetime updates user
Post Reply