NVIDIA-AI-IOT / trt_pose

Real-time pose estimation accelerated with NVIDIA TensorRT
MIT License
957 stars 290 forks source link

Live camera inference using jetcam? #159

Open mukeshnarendran7 opened 2 years ago

mukeshnarendran7 commented 2 years ago

How can i run live camera inference using jetcam? I am running the scripts from the terminal on a Jetson. Sample code would be helpful

from jetcam.csi_camera import CSICamera
import traitlets
import cv2

camera = CSICamera(width=256, height=256,capture_fps=30)
#camera.running = True
image = camera.read()
camera.observe(camera.read(), names='value')