Featured image of post Nvidia NX 編譯 Darknet

Nvidia NX 編譯 Darknet

用sudo nano edit Makefile NVCC path

1
2
3
4
5
6
7
8
9
NVCC = /usr/local/cuda/bin/nvcc

export PATH=/usr/local/cuda10.2/bin${PATH:+:${PATH}}

export LD_LIBRARY_PATH=/usr/local/cuda10.2/lib64\${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}

export $LD_LIBRARY_PATH

export $PATH

1
./darknet detector demo ../clown_derection/cfg/obj.data ../clown_derection/cfg/yolov4-tiny-obj-test.cfg ../clown_derection/cfg/weights/yolov4-tiny-obj_7000.weights

TX2使用見相機開啟指令

1
'nvarguscamerasrc ! video/x-raw(memory:NVMM), width=(int)1280, height=(int)720,format=(string)NV12, framerate=(fraction)30/1 ! nvvidconv flip-method=0 ! video/x-raw, format=(string)BGRx ! videoconvert ! video/x-raw, format=(string)BGR ! appsink'
使用 Hugo 建立
主題 StackJimmy 設計