View Single Post
  #6   Spotlight this post!  
Unread 21-01-2017, 11:46
Storcky's Avatar
Storcky Storcky is offline
Registered User
FRC #3634 (Hard Botties)
Team Role: Mentor
 
Join Date: Apr 2005
Rookie Year: 2005
Location: Oakland, MD
Posts: 128
Storcky is on a distinguished road
Re: 2017 Bridge Connection Issues

We're having a similar problem trying to display the result of our Grip Pipeline on the SmartDashboard.


Code:
CS: ERROR: serve_Blur: Too many simultaneous client streams (MjpegServerImpl.cpp:403)
Did you solve it?

Our vision code (in robotInit()):

Code:
    	UsbCamera camera = CameraServer.getInstance().startAutomaticCapture();
        camera.setResolution(640, 480);
        CvSource outputStream = CameraServer.getInstance().putVideo("Blur", 640, 480);
        visionThread = new VisionThread(camera, new GripPipelineWithContours(), pipeline -> {
            if (!pipeline.filterContoursOutput().isEmpty()) {
                Rect r = Imgproc.boundingRect(pipeline.filterContoursOutput().get(0));
                synchronized (imgLock) {
                    centerX = r.x + (r.width / 2); }
                System.out.println(centerX);
                outputStream.putFrame(pipeline.filterContoursOutput().get(0));
            }
        });
    	visionThread.start();
__________________
Alum of 1629 - GaCo [2005-2008]
Mentor for 3634 - Hard Botties [2013-2015]
Mentor for 230 - Gaelhawks [2013-2015]
Pittsburgh Regional Planning Committee [2016-?]
Reply With Quote