Plausibility of reading camera input and writing on it.

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
pwillxorz
Posts: 2
Joined: Fri Jan 16, 2009 3:10 am

Plausibility of reading camera input and writing on it.

Post by pwillxorz »

I'm currently in a class where I'm studying augmented reality, and we're discussing possible devices to run our final projects on (we're supposed to have an AR experience we've made ourselves at the end of the class).


A lot of the class is going with iphones...... but I don't have the extra money to throw away for an iphone, let alone a dev license. I do however have a psp and access to the "official" webcam type deally. I was wondering if anyone's written drivers for capturing video and displaying it on the screen from the cam in homebrew. I've done a relatively extensive search on the subject, and though this is my first post, I've been on these forums for a few years, off and on... I've never actually programmed something for my psp, and would slowly ramp up to this project, but I'd like to know if some of the code I'd need is already available.

tl;dr version: I need to know of ANY and ALL webcam type drivers available to the homebrew community.

I'm not requesting people to write anything for me, for the record!
hibbyware
Posts: 78
Joined: Wed Mar 28, 2007 10:29 am

Post by hibbyware »

I have not used the cam in anything so I'm not really sure what source code is available,

Here are a few things that may help you get started,

Take a look at http://psp.jim.sh/pspsdk-doc/pspusbcam_8h.html

and http://silverspring.lan.st/5.00/kd/usbcam.xml

and http://forums.ps2dev.org/viewtopic.php?t=7074

Once you know the function names maybe google could help,
pwillxorz
Posts: 2
Joined: Fri Jan 16, 2009 3:10 am

Post by pwillxorz »

thank you so much!
pegasus2000
Posts: 160
Joined: Wed Jul 12, 2006 7:09 am

Re: Plausibility of reading camera input and writing on it.

Post by pegasus2000 »

pwillxorz wrote:I'm currently in a class where I'm studying augmented reality, and we're discussing possible devices to run our final projects on (we're supposed to have an AR experience we've made ourselves at the end of the class).


A lot of the class is going with iphones...... but I don't have the extra money to throw away for an iphone, let alone a dev license. I do however have a psp and access to the "official" webcam type deally. I was wondering if anyone's written drivers for capturing video and displaying it on the screen from the cam in homebrew. I've done a relatively extensive search on the subject, and though this is my first post, I've been on these forums for a few years, off and on... I've never actually programmed something for my psp, and would slowly ramp up to this project, but I'd like to know if some of the code I'd need is already available.

tl;dr version: I need to know of ANY and ALL webcam type drivers available to the homebrew community.

I'm not requesting people to write anything for me, for the record!

You need absolutely Nanodesktop.
We've the tecnology that you're looking for.

Unfortunately, our servers are down until Monday, but you can
obtain infos at www.psp-ita.com
Dariusc123456
Posts: 388
Joined: Tue Aug 12, 2008 12:46 am

Post by Dariusc123456 »

http://dl.qj.net has Nanodesktop.

Whats so great about Nano Desktop?
pegasus2000
Posts: 160
Joined: Wed Jul 12, 2006 7:09 am

Post by pegasus2000 »

Dariusc123456 wrote:http://dl.qj.net has Nanodesktop.

Whats so great about Nano Desktop?
It is the most powerful tecnology for PSP development ever
realized in Italy. It has simple primitive for accessing to GoCam,
to the microphone, for network connection, an own graphical
system, a system for I/O accessing, disk cache manager,
file manager, VOIP, mathematical acceleration.

Other all, it integrates the support for OpenCV and a module for
algorithms of artificial vision. It you want to create applications
as augmented reality, Nanodesktop is the natural way.

This is a video of the new Blind Assistant CFW0005, the most
important application realized using nd.

http://www.psp-ita.com/?module=news&id= ... ew_reply=1
Dariusc123456
Posts: 388
Joined: Tue Aug 12, 2008 12:46 am

Post by Dariusc123456 »

But whats the differents from the pspsdk and Nano Desktop? Thats whats confusing me.
pegasus2000
Posts: 160
Joined: Wed Jul 12, 2006 7:09 am

Post by pegasus2000 »

Dariusc123456 wrote:But whats the differents from the pspsdk and Nano Desktop? Thats whats confusing me.
Nanodesktop works at high level.

Code: Select all

#include <nanodesktop.h>
int ndMain&#40;&#41;
&#123;
 int UsbHandleCamera;
 int Counter;
 ndInitSystem &#40;&#41;;
 UsbHandleCamera = ndHAL_CAM_ActivateCamera&#40;ND_USE_PSP_GOCAM&#41;;
 
 if &#40;UsbHandleCamera>=0&#41;
 &#123;
 for &#40;Counter=0; Counter<1000; Counter++&#41;
  &#123;
   ndHAL_CAM_GrabNewImage &#40;UsbHandleCamera, ND_CAM_TO_BASESCREEN, 0, 0, RENDER&#41;;
  &#125;
 &#125;
 else
 &#123;
  printf &#40;"GoCam is not connected \n"&#41;;
  ndDelay &#40;2&#41;;
 &#125;
&#125;
This program captures the images from the Sony GoCam and shows it
in the screen. Using PSPSDK you need hundreds of rows to
obtain the same result.
Dariusc123456
Posts: 388
Joined: Tue Aug 12, 2008 12:46 am

Post by Dariusc123456 »

I might check it out.
Post Reply