Go to Post If there are no top tier teams, then who do we look up to for inspiration? - artdutra04 [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-04-2016, 13:51
Adamd51 Adamd51 is offline
Registered User
FRC #0386
 
Join Date: Apr 2016
Location: Melbourne
Posts: 1
Adamd51 is an unknown quantity at this point
How to use USBCamera.getImage()

I am trying to obtain the image from the camera for vision processing and assign it to an instance of Image. Whenever I do I get error code "-1074397163: Image Acquisition Not In Progress". I have removed everything from the code that might be interfering and have come up with the following code which still creates the error. What am I missing? Am I doing something wrong? Thank you.

public class Robot extends IterativeRobot{

//imports

final static USBCamera usbCam = new USBCamera("cam1");/*This the correct camera*/
public void autonomousInit()
{
Image frame;
Robot.usbCam.getImage(frame);
}
}

(That is all the code, I have not omitted anything)
Reply With Quote
  #2   Spotlight this post!  
Unread 20-04-2016, 15:06
Skragnoth Skragnoth is offline
Registered User
AKA: Clayton
FRC #0133 (BERT)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2000
Location: Standish, ME
Posts: 15
Skragnoth has a spectacular aura aboutSkragnoth has a spectacular aura about
Re: How to use USBCamera.getImage()

You need to call:

usbCam.startCapture();

Then you can get the image.
Reply With Quote
Reply


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 10:02.

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