Go to Post Never leave future engineers alone, especially with something like gravity. - Alex Pelan [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-03-2006, 10:47
paula paula is offline
Registered User
no team
 
Join Date: Oct 2004
Location: Argentina
Posts: 6
paula is an unknown quantity at this point
Red face CMUcam2 GUI working with two cameras

Hi everybody.
I am working with two cmucam2 in order to get the distance of a target using stereo vision.
Iīve been trying to modify the CMUcam2 GUI so that it can work with both cameras at the same time, but it seems to be difficult to me.
I am using two different com ports (1 camera at com 1 and the other at com 2). The program open successfully the first port but when attempting to open the second one, it fails giving -1 error.
Iīve also tried opening two different instances of the stand-alone CMUcam2 GUI. The first instance open successfully but when trying to open the second one with the other camera at com 2, it cannot open.
I am working in Windows xp. Both ports work fine because iīve tried them using the GUI with each of them not at the same time.

My question is the following: is there any version of the CMUcam2 GUI which manage to work with two cameras at the same time, each one plugged at a differente com port?
Or if there isnīt, do I have to work with threads in Java in order to access to the ports at the same time, although they are different ports?

Thanks in advance.

Paula
  #2   Spotlight this post!  
Unread 16-03-2006, 10:38
Cuog's Avatar
Cuog Cuog is offline
Registered Linux User: 390661
AKA: Alex
FRC #0422
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2004
Location: Richmond, Virginia
Posts: 852
Cuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond repute
Send a message via AIM to Cuog
Re: CMUcam2 GUI working with two cameras

it may be easier to just use 2 computers to do it one hooked to each camera. since the 2 cameras need to be accessed individually t may be easier to have 2 screens and be able to set stuff on 2 cameras at once
__________________
KK4KQO
http://voltair.us
Too many projects, too little time.
  #3   Spotlight this post!  
Unread 19-03-2006, 18:09
mogunus mogunus is offline
Registered User
AKA: Luciano DiFalcone
FRC #1350 (Rambots)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2003
Location: RI
Posts: 19
mogunus is an unknown quantity at this point
Re: CMUcam2 GUI working with two cameras

What sort of solution are you using to get the cameras hooked up to the main board? I got two cameras working, so, if you need any help just email me or whatever.
__________________
... one of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs.
-- Robert Firth
  #4   Spotlight this post!  
Unread 21-03-2006, 09:59
paula paula is offline
Registered User
no team
 
Join Date: Oct 2004
Location: Argentina
Posts: 6
paula is an unknown quantity at this point
Re: CMUcam2 GUI working with two cameras

Quote:
Originally Posted by mogunus
What sort of solution are you using to get the cameras hooked up to the main board? I got two cameras working, so, if you need any help just email me or whatever.
Iīve got two comm ports on my mother board, so thatīs easy.
My problem is that the sserial.dll that is used with the cmucam2gui cannot be acceded twice at the same time (I guess). Iīve tried making a copy of the dll and load it from the java programme, but, as I renamed it, Iīve got the following error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: openSerial
I cannot edit the dll. So I really donīt Know what to do.

Are you working with two cameras at the same time using the CMUcam2GUI with the original sserial.dll file?
Please help me.

Thank you very much.
Paula
  #5   Spotlight this post!  
Unread 21-03-2006, 10:25
JonBell JonBell is offline
Registered User
None #0546 (Technotics)
Team Role: Programmer
 
Join Date: Mar 2005
Rookie Year: 2004
Location: CT
Posts: 79
JonBell is just really niceJonBell is just really niceJonBell is just really niceJonBell is just really niceJonBell is just really nice
Send a message via AIM to JonBell
Re: CMUcam2 GUI working with two cameras

It seems like it may be easiest to accomplish this task by modifying the LabView GUI (I wouldn't really know where to start, but it seems like you could figure it out wiht a bit of exerimentation).
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
cmuCam2 Stoped working EHaskins Programming 1 20-02-2006 07:19
LabView CMUcam2 gui drakesword LabView and Data Acquisition 6 28-01-2006 17:06
CMUCam2 GUI Tilt Question Idaman323 Programming 3 27-01-2006 02:01
CMUcam2 LabVIEW GUI problems StevenB Programming 1 21-01-2006 03:08
CMUcam2 GUI Program nukem Programming 4 15-01-2006 03:19


All times are GMT -5. The time now is 23:01.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi