Go to Post I blame FIRST for being the best thing that has happened to me. - vivek16 [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 07-02-2017, 14:39
5854RoboProgram 5854RoboProgram is offline
Registered User
AKA: Keegan
FRC #5854 (Glitch)
Team Role: Programmer
 
Join Date: Dec 2016
Rookie Year: 2016
Location: North Carolina
Posts: 1
5854RoboProgram is an unknown quantity at this point
More Than Two USB Cameras??

Hello FRC programming community,
I am the lead programmer on team 5854, this is the team's second year and my first as lead programmer.

I am using usb cameras to get images to my vision system. I have two cameras hooked up to the usb slots on the roborio and I am using a custom class I made using the built in CameraServer library. (Code Example below) I was wondering if there is a way to make a third camera streaming service. Or if there would be a problem using a usb splitter because I'm not sure how the rio will handle it.


Thnak you in advance.
And sorry if the text is confusing or misspelled, I'm dyslexic.

Code on how I'm making the camera server:

Code:
usbCamera = new UsbCamera("USB Camera 0", cameraId);
usbCamera.setResolution(640, 400);
usbCamera.setBrightness(1);

mjpegServer1 = new MjpegServer("serve_USB Camera 0", 1181);

mjpegServer1.setSource(usbCamera); 
	    
cvSink = new CvSink("opencv_USB Camera 0");

cvSink.setSource(usbCamera);

outputStream = new CvSource("Blur", PixelFormat.kMJPEG, 640, 480, 30);

mjpegServer2 = new MjpegServer("serve_Blur", 1182);

mjpegServer2.setSource(outputStream);
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 22:35.

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