Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


control (build in) webcam on desktop


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-21-2008, 09:40 AM
Basic4ppc Veteran
 
Join Date: Feb 2008
Location: Hilversum, The Netherlands
Posts: 208
Awards Showcase
Beta Tester 
Total Awards: 1
Default control (build in) webcam on desktop

I bought a new laptop yesterday

It has a built in webcam, so I was thinking of building a similar program as mentioned here
Is there a way of controling it through B4PPC?
It shows up in the hardware list as a usb2.0 webcam..

Thanks
Reply With Quote
  #2 (permalink)  
Old 05-21-2008, 06:53 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
Default

You will need an external library to communicate with the webcam.
Reply With Quote
  #3 (permalink)  
Old 05-21-2008, 08:22 PM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Awards Showcase
Beta Tester 
Total Awards: 1
Default me too - that would be useful

That would be so cool if B4PPC could access the web cam, or the camera. I wanted to try and write a routine that detects the devices rotation from landscape to portrait - like they do on the new HTC diamond OS

AGraham - is it theoretically technically possible to write a C library to grab frames from the camera? If so how difficult?
Reply With Quote
  #4 (permalink)  
Old 05-22-2008, 08:53 AM
Basic4ppc Veteran
 
Join Date: Feb 2008
Location: Hilversum, The Netherlands
Posts: 208
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by Erel View Post
You will need an external library to communicate with the webcam.
What are the requirements for this lib?
There are several kinds of dll's and only one kind can be used with B4PPC..which one ?
Reply With Quote
  #5 (permalink)  
Old 05-22-2008, 09:01 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
Default

See this thread for information about libraries: How to create a Basic4ppc library
Reply With Quote
  #6 (permalink)  
Old 05-22-2008, 09:20 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,770
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by colin9876 View Post
AGraham - is it theoretically technically possible to write a C library to grab frames from the camera? If so how difficult?
Repeat after me - C# is not C - B4PPC needs .NET dlls written in a .NET language and C is not a .NET language.

But yes, I'm playing with a bit of C# code I've found that captures single images from the webcam on my EEE PC using Windows native avicap32.dll. No promises but I might be able turn it into a B4PPC library once I understand what's going on.
Reply With Quote
  #7 (permalink)  
Old 05-22-2008, 11:27 AM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Greece
Posts: 353
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by agraham View Post
Repeat after me - C# is not C - B4PPC needs .NET dlls written in a .NET language and C is not a .NET language.
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #8 (permalink)  
Old 05-22-2008, 12:52 PM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Awards Showcase
Beta Tester 
Total Awards: 1
Default camera

Sorry - c#! Thats the problem with these geniuses they get very touchy! lol!

Anyway if you can get Basic4ppc to capture a jpeg that would be amazing! I think you deserve another award for doing the wave generator, but a cam function would definately be ground breaking!

Does the device connect to the cam through a serial connection? My device has 2 cams, do they both connect in the same way?
Does cams send the picture as a stream of pixels? Im curious if the camera sends it in JPEG format to the WM OS, or does it get compressed later?

Last edited by colin9876 : 05-22-2008 at 12:55 PM.
Reply With Quote
  #9 (permalink)  
Old 05-22-2008, 04:19 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,770
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Check this out - Desktop Videocam image capture library
Reply With Quote
  #10 (permalink)  
Old 05-22-2008, 05:59 PM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Awards Showcase
Beta Tester 
Total Awards: 1
Default cool

Worked well on my laptop!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
SetUpBuilder Problem - "Build Cabs first" dhillinmkewi Questions & Help Needed 4 11-29-2008 11:57 PM
Build proper desktop apps in B4PPC with this awesome Forms library agraham Additional Libraries 25 07-30-2008 05:19 PM
Tab control behaves differently on device than desktop AHeroMenKill Questions & Help Needed 2 06-24-2008 11:46 AM
Using rapi from desktop to copy file from device to desktop sunnyboyj Questions & Help Needed 9 02-08-2008 12:40 PM
Can I use Basic4PPC to control my Mogul from the Desktop? obrienj Questions & Help Needed 2 01-10-2008 01:58 PM


All times are GMT. The time now is 03:03 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0