Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. FAQs
  3. voxl-tflite-server with USB Camera

voxl-tflite-server with USB Camera

Scheduled Pinned Locked Moved FAQs
2 Posts 2 Posters 1.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Philemon BennerP Offline
    Philemon BennerP Offline
    Philemon Benner
    Regular
    wrote on last edited by
    #1

    Hey,
    i'm currently trying to setup the voxl-tflite-server with a usb camera connected to the Voxl. Is it possible to use the tflite-server with a usb camera? I didn't find any support on the voxl-camera-server that forwards the camera stream to voxl-tflite-server, for usb.

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by A Former User
      #2

      Hello @Philemon-Benner ,

      It is possible to use any MPA image pipe as input for voxl-tflite-server.

      For a usb camera, you must be using the latest voxl-uvc-server to get the camera frames from your usb device into our MPA pipes.

      Then, you must modify the config file (under /etc/modalai/voxl-tflite-server.conf) such that the input pipe matches the new usb pipe:

      voxl:/$ vi /etc/modalai/voxl-tflite-server.conf  
      /**
       * This file contains configuration that's specific to voxl-tflite-server.
       *
       * skip_n_frames - how many frames to skip between processed frames. For 30hz
       *                   input frame rate, we recommend skipping 5 frame resulting
       *                   in 5hz model output.
       * model         - which model to use. Currently support mobilenet for
       *                   object detection or midas for monocular depth
       * input_pipe    - which camera to use (tracking or hires).
       */
      {
              "skip_n_frames":        0,
              "model":        "/usr/bin/dnn/ssdlite_mobilenet_v2_coco.tflite",
              "input_pipe":   "/run/mpa/USB_PIPE_NAME/",  // CHANGE HERE
              "delegate":     "gpu"
      }
      

      The only limitation with the tflite server is supported image formats. In this code block, there is a switch for the supported formats, so if your input data is not in NV12, NV21, or RAW8 format you will have to add handling for your specific type.

      1 Reply Last reply
      0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      ModalAI
      Categories Recent Tags ModalAI.com Docs
      © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups