Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

control (build in) webcam on desktop

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-21-2008, 08:40 AM
Basic4ppc Veteran
 
Join Date: Feb 2008
Location: Hilversum, The Netherlands
Posts: 295
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, 05:53 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

You will need an external library to communicate with the webcam.
Reply With Quote
  #3 (permalink)  
Old 05-21-2008, 07:22 PM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 366
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, 07:53 AM
Basic4ppc Veteran
 
Join Date: Feb 2008
Location: Hilversum, The Netherlands
Posts: 295
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, 08:01 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

See this thread for information about libraries: http://www.basic4ppc.com/forum/code-...c-library.html
Reply With Quote
  #6 (permalink)  
Old 05-22-2008, 08:20 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
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, 10:27 AM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Ioannina, Greece
Posts: 356
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, 11:52 AM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 366
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 11:55 AM.
Reply With Quote
  #9 (permalink)  
Old 05-22-2008, 03:19 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Check this out - http://www.basic4ppc.com/forum/addit...html#post12819
Reply With Quote
  #10 (permalink)  
Old 05-22-2008, 04:59 PM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 366
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 Off
Pingbacks are Off
Refbacks are On

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


All times are GMT. The time now is 07:16 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0