Go to Post Arefin Will You go to the prom with me :D ? i Have a dress picked out and everything :) - Tytus Gerrish [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 03-02-2016, 17:19
jwest jwest is offline
Registered User
FRC #0219
 
Join Date: Feb 2016
Location: New Jersey
Posts: 1
jwest is an unknown quantity at this point
Stream Video from RoboRIO to Vision Processing Software

Hello,

I am trying to get video from the roboRIO from a USB webcam into RoboRealm. The stream of the camera works fine in the Smart Dashboard, just when using the CameraClient module in RoboRealm, I get a black screen. It connects fine, but frames of video are streamed over. So, I think the issue may be in the Java code. Right now, the code is very simple and just in the constructor of a subsystem in its own robot to isolate any problems. But when looking at the documentation of the cameras, the startAutomaticCapture() method said it should only be used for streaming to the dashboard. So, how else should I write code to create a camera that would be used just for streaming to RoboRealm? Thanks in advance for any help.

Current Code:

Code:
public class Vision extends Subsystem {
    
    // Put methods for controlling this subsystem
    // here. Call these from Commands.
	CameraServer server;
	USBCamera camera;
	Image image;
	
	public Vision() {
		server = CameraServer.getInstance();
	    server.setQuality(50);
	    server.startAutomaticCapture(camera);
	}
	
    public void initDefaultCommand() {
        // Set the default command for a subsystem here.
        //setDefaultCommand(new MySpecialCommand());
    }
}
 


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 09:38.

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