ModalAI Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Home
    2. Popular
    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics
    • All categories
    • Rowan DempsterR

      Running QVIO on a hires camera

      GPS-denied Navigation (VIO)
      • • • Rowan Dempster
      4
      0
      Votes
      4
      Posts
      68
      Views

      Alex KushleyevA

      @Rowan-Dempster , you should use a monochrome stream (_grey), since QVIO needs a RAW8 image.

      If you are not using MISP on hires cameras, that is fine, you can start off using the output of the ISP.

      You should calibrate the camera using whatever resolution you decide to try. This is to avoid any confusion, since if you using ISP pipeline, the camera pipeline may select a higher resolution and downscale + crop. So whenever you are changing resolutions, it is always good to do a quick camera calibration to confirm the camera parameters.

      When using MISP, we have more control over which camera mode is selected, because MISP gets the RAW data, not processed by the ISP, so we know the exact dimensions of the image sent from camera.

      Alex

    • Tanner MetzmeierT

      Python Programmatic GStreamer Access for Hardware Encoded Acceleration and Low Latency

      Ask your questions right here!
      • python voxl2 • • Tanner Metzmeier
      4
      0
      Votes
      4
      Posts
      73
      Views

      Alex KushleyevA

      @joseph-vale ,

      You did not provide the actual error that you are seeing, however I could try to guess what it is (even if not, the details below should probably help you anyway). The default build of voxl-opencv package does not have python3 support. So if you are using gstreamer with opencv in python and that is the error, you should install the voxl-opencv package that I built with python3 support

      https://storage.googleapis.com/modalai_public/temp/voxl-opencv_4.5.5-3_arm64.deb source : https://gitlab.com/voxl-public/voxl-sdk/third-party/voxl-opencv/-/tree/add-python3-bindings

      Below, i will assume that you want to grab images from Boson part of the Hadron, however similar approach should apply to the RGB camera in Hadron.

      First you should test ability to grab images without python. You may need to replace your camera # depending on what camera id your Boson is.

      IMPORTANT: make sure that voxl-camear-server is not running while you are trying to use gstreamer.

      systemctl stop voxl-camera-server

      Tip: you can actually stream video using X forwarding with ssh. This should stream live Boson feed from voxl2 to your linux machine:

      ssh -Y username@<voxl-ip> gst-launch-1.0 qtiqmmfsrc camera=0 ! "video/x-raw,width=640,height=512,framerate=30/1" ! videoconvert ! autovideosink

      display image directly in terminal as ascii:

      gst-launch-1.0 qtiqmmfsrc camera=0 ! "video/x-raw,width=640,height=512,framerate=30/1" ! autovideoconvert ! aasink

      and then finally, a python script that grabs h264 video from qtiqmmfsrc, decodes it and returns frames to python:

      import time import cv2 #get RGB (BGR?) directly #stream='gst-launch-1.0 qtiqmmfsrc camera=0 ! video/x-raw, width=640,height=512,framerate=30/1 ! autovideoconvert ! appsink' #get h264 -> decode -> BGR stream='gst-launch-1.0 qtiqmmfsrc camera=0 ! video/x-h264,format=NV12,profile=high,width=640,height=512,framerate=30/1 ! h264parse ! qtivdec ! qtivtransform ! video/x-raw,format=BGR,width=640,height=512 ! autovideoconvert ! appsink' print(stream) vcap = cv2.VideoCapture(stream,cv2.CAP_GSTREAMER) frame_cntr = 0 while(1): ret, frame = vcap.read() if ret: frame_cntr += 1 print('got frame %d with dims ' % frame_cntr, frame.shape)

      Hopefully, that works for you.

      Final recommendation - if you use qtiqmmfsrc this way, the Boson data is processed in the Qualcomm ISP and unless your have a special tuning file for Boson, the processed output will have degraded quality. Boson, by default, outputs post AGC 8-bit image which is already processed and does not need to be further processed by the ISP. I am not sure whether you can get RAW8 data from qtiqmmfsrc (unmodified data from Boson).

      We handle the above issue in voxl-camera-server by working with the RAW8 directly. We also recently started experimenting with 14bit pre-AGC data from Boson, which would need some processing before it is usable (if you are interested in that, i can share some more information).

      Finally, if you would like to use voxl-camera-server, which is what we recommend and support, there is also a way to get encoded h264/h265 data into python (using our experimental pympa (python MPA bindings)). That is a topic for a discussion in another post, if you are interested..

      Alex

    • voxltesterV

      VOXL2 Time

      Ask your questions right here!
      • • • voxltester
      3
      0
      Votes
      3
      Posts
      38
      Views

      voxltesterV

      @Eric-Katzfey
      I see. If VOXL2 is connected to a local laptop that has internet access, but VOXL2 itself does not have internet access, will VOXL2 update its date and time through the laptop?

    • Nitin Varma VegesnaN

      Preflight Fail: Compass Sensor 0 missing

      Starling & Starling 2
      • • • Nitin Varma Vegesna
      2
      0
      Votes
      2
      Posts
      5
      Views

      Eric KatzfeyE

      @Nitin-Varma-Vegesna In /etc/modalai/voxl-px4.conf set GPS to NONE. Then set the PX4 parameters SYS_HAS_GPS, and SYS_HAS_MAG to 0. Set EKF2_MAG_TYPE to 5. Set EKF2_GPS_CTRL to 0. Then reboot and see if the preflight error is cleared.

    • R

      Different package version from voxl-cross and Voxl2

      Ask your questions right here!
      • • • remill
      2
      0
      Votes
      2
      Posts
      24
      Views

      Eric KatzfeyE

      @remill said in Different package version from voxl-cross and Voxl2:

      1.0.27

      Perhaps you can build the desired version of libusb from source and install it? We have used this approach for a variety of other "third party" libraries. Examples are here: https://gitlab.com/voxl-public/voxl-sdk/third-party?page=1

    • A

      Using an RTK GPS with the VOXL2

      Ask your questions right here!
      • • • alan123
      2
      0
      Votes
      2
      Posts
      25
      Views

      Alex KushleyevA

      @alan123 , yes, the 12-pin connector on VOXL2 (J19) was designed such that the first 6 pins are compatible with a lot of existing GPS recevier modules. Please double check the pins and you should use a 12-pin connector to plug into VOXL2 (may need to re-pin your cable).

      Alex

    • C

      Flashing Custom Ardupilot Firmware

      Ask your questions right here!
      • • • clange
      2
      0
      Votes
      2
      Posts
      24
      Views

      Eric KatzfeyE

      @clange Yes, definitely. All the support to build a Debian package for installation is in https://github.com/ArduPilot/ardupilot/tree/master/libraries/AP_HAL_QURT/packaging

    • D

      No WiFi connection M0151 + USB 3.0 + Alfa Networks Dongle

      VOXL 2
      • • • Dronodev
      1
      0
      Votes
      1
      Posts
      7
      Views

      No one has replied

    • R

      Bricked VOXL2 on Starling 2 Max

      Starling & Starling 2
      • • • roy.crosthwaite
      1
      0
      Votes
      1
      Posts
      23
      Views

      No one has replied

    • S

      No detections when running custom YOLOv8 model on voxl-tflite-server

      VOXL 2
      • • • svempati
      1
      0
      Votes
      1
      Posts
      20
      Views

      No one has replied

    • G

      Remote ID over Wifi

      VOXL SDK
      • starling2 max remote-id • • griffin
      1
      0
      Votes
      1
      Posts
      13
      Views

      No one has replied

    • N

      EM9291 eSIM profile

      Cellular Modems
      • • • NSammons
      1
      0
      Votes
      1
      Posts
      30
      Views

      No one has replied

    • A

      IP Routing on VOXL2 with Microhard modem + IP camera

      VOXL 2
      • • • Aaky
      1
      0
      Votes
      1
      Posts
      19
      Views

      No one has replied