I am attempting to use a real time image detection script based on YOLOv8 which has already worked using a Logitech webcam on Jetson Orin NX however my new Basler ace 2 a2A4200-40ucPRO camera seems to be working differently.
I used OpenCV functions which rely on the camera being given a video index as I understand.
import cv2
import pandas as pd
from ultralytics import YOLO
from tracker import*
import paho.mqtt.client as mqtt
import json
[…]
cap = cv2.VideoCapture(0)
cap.set(cv2.CAP_PROP_FRAME_WIDTH, 1280)
cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 720)
[…]
cap.read()
lsusb reads:
Bus 002 Device 011: ID 2676:ba05 Basler AG USB3.1 Hub
but tools like v412-utils or ls -l /dev/video
do not show anything related to Basler or the camera.
cheese also does not recognize any camera.
PylonViewer has no issues aswell.
Is there a smart way to circumvent completely overhauling the script by making the Basler camera recogniseable by the computer?
Platform: Jetson Orin NX J40 Custom board with Jetpack 5.1
Camera: a2A4200-40ucPRO
Hi,
videoX means video0, video1, etc. It depends on index of the device. Please confirm what the node is and run like $ v4l2-ctl --list-formats-ext -d /dev/video0