Go to Post Then use Newton's handy-dandy 2nd law (Force = mass*acceleration) to solve... - Chris Hibner [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 09-01-2012, 17:59
JewishDan18's Avatar
JewishDan18 JewishDan18 is offline
Registered User
FRC #1700
Team Role: Engineer
 
Join Date: Feb 2009
Rookie Year: 2007
Location: Sunnyvale, CA
Posts: 185
JewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to behold
Connecting to the Camera

I have the camera assigned to the IP 10.0.20.11 (on team 20). I have it connected to my router, along with everything else. My web browser can open the stream, and I can see the feed in the dashboard just fine. However, I am having issues accessing the camera in my code. I get an instance of the camera, but the code stops running very soon after I get the instance. Here is the code I am using:

Code:
        try {
            camera = AxisCamera.getInstance();
            for(int i=0;true;i++) {
                System.out.println(i);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
The count reaches about 15, then stops. I switch modes or disable and re-enable, but the counter does not start again, and a reboot is needed. Once, I saw an error message saying the camera was not accessible. However, this was only once; normally I do not get any error message. Does anyone have any ideas on how to start diagnosing this issue? Thanks!
Reply With Quote
 


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


All times are GMT -5. The time now is 08:34.

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