Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

will this be possible ?

Status
Not open for further replies.

FALCONSEYE

Programmer
Jul 30, 2004
1,158
US
It has been so long since i actually did java coding, i probably forgot all about it. Anyway, I was wondering if the following is possible?
There is a camera installed on a platform. Writing a Java application that will move an external camera hooked up to a pc by setting up some x,y,z params?

for example, i will type in x:10 y:10 z:5 and the java application will move the camera to this coordinate.
makes sense?
thanks in advance...

 
How do you 'talk' to the camera? Do you have a dll library or something?

Tim
---------------------------
"Your morbid fear of losing,
destroys the lives you're using." - Ozzy
 
Code:
public class CameraMan implements CameraMovement {
 public static void moveCamera(int x, int y, int z) {
  Camera cam = new Camera();
  cam.lookAt(x,y,z);
}

;)
 
if this question sounds dumb,i apologize in advance. i have no idea what CameraMovement class is(?). i did some google and come up with nothing. is there such a clasS?

 
Oh no, sorry, it was just a joke.

The problems is that you made a question almost impossible to answer. It sounds to me like: "I have a cat, can I use Java to feed him?"

Didn't mean to be too ironic, but if you want someone to be able to help you, you should answer tim's question about the communication with camera (usb, serial port ...) and the communication protocol and formats.

That way, maybe we can offer some help.

Cheers,
Dian
 
:p

i feed the cat some java. sorry for not being clear. it's going to be a usb camera. i found some info at sun.com. appearently, there is a package/class called jmapps.ui.PlayerFrame. Ofcourse, i have no idea what exactly it does.
public class CameraMan extends jmapps.ui.PlayerFrame

what do you mean by 'formats'? thanks for the help in advance


 
I think that class just display contents from an USB camera.

I don't think there's a standard API to communicate with an USB camera. I guees you'll need to find out which USB commands the cammera will accept.

After that, this looks like a good point to start:
Anyway, I guess this is not an esay task, why whould you want to do such a thing?

Cheers,
Dian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top