Announcement

Collapse
No announcement yet.

Error: Unable to convince Vuforia to generate RGB565 frames!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error: Unable to convince Vuforia to generate RGB565 frames!

    Whenever we initialize the program for the webcam we always get the error: unable to convince Vuforia to generate RGB565 frames. We followed the steps given by FIRST on how to solve this problem, but we still had the same problem. We wanted to know if anyone knows a way we can fix this.

  • #2
    Do you have some code that looks like this?

    Code:
    VuforiaLocalizer vuforia = ClassFactory.getInstance().createVuforia(parameters);
    
    //Set capacity of frame queue (3 works fine for us)
    vuforia.setFrameQueueCapacity(3);
    //Enable generation of RGB565 images
    Vuforia.setFrameFormat(PIXEL_FORMAT.RGB565, true);

    Comment


    • #3
      No, we only have the first line of the code

      vuforia = ClassFactory.getInstance().createVuforia(parameter s);

      Not the rest though. Do we need to add it?

      Comment


      • #4
        Yes, if you are trying to grab frames for analysis with OpenCV or you own custom CV code. But if you are just planning to use Vuforia or TensorFlow, then as far as I can tell, the additional code shouldn't be necessary.

        'setFrameQueueCapacity' is an instance method of the VuforiaLocalizer class. 'setFrameFormat' is a static method of the Vuforia class.

        Comment


        • #5
          We are just planning to use Tensorflow not OpenCV

          Comment


          • #6
            Are you running the example opmode ConceptTensorFlowObjectDetectionWebcam? If so, have you inserted your own Vuforia Key? I don't know if it will help, but you could try inserting the call to Vuforia.setFrameFormat at the end of the initVuforia method.

            Comment


            • #7
              Originally posted by jkenney View Post
              I don't know if it will help, but you could try inserting the call to Vuforia.setFrameFormat at the end of the initVuforia method.
              The .setFrameFormat function is already being called by the TensorFlow software. In fact, it is the failure of this call which is generating the "Unable to convince Vuforia to generate RGB565 frames" error message. Here's the relevant portion of the SDK source code.

              Comment


              • #8
                Don't click that link, it was missing a colon, and somehow that resulted in it directing to adware (???)

                Here's the correct link: https://github.com/OpenFTC/Extracted...rator.java#L43

                Comment


                • #9
                  Bionic Enforcers Rep.

                  Whenever we initialize the program for the webcam we always get the error: unable to convince Vuforia to generate RGB565 frames. We followed the steps given by FIRST on how to solve this problem, but we still had the same problem. We wanted to know if anyone knows a way we can fix this.
                  If you're using an RC phone with webcam, try experimenting with your USB hub. The USB hub and its connections can contribute to Vuforia initialization issues.

                  1. If it's a powered USB hub, try unplugging it. Many hubs work fine without power.

                  2. Unplug everything from the USB hub, give it a rest, then plug it all back in. Of course it helps if all connections are secured to prevent movement at the plug.

                  3. Try another USB hub, including powered if yours is not.

                  4. Try different USB cables; some from previous seasons caused intermittent issues.

                  ​​​​​​​

                  Comment

                  Working...
                  X