Go to Post It is impossible to be grumpy about anything when eating biscotti made by one's beautiful wife, drinking tea sweetened by one's own honey, warmed by a wood stove, and with a dog asleep on one's foot. Simply impossible. - pfreivald [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


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