Using Single Shot Detector (SSD) with a MIPI (leopard imaging) camera on a TX1
Closed this issue · 2 comments
pnambiar commented
Here is what I have so far:
- Removed Opencv4tegra
- Installed Opencv 3.1 on TX1 (Had problem installing Caffe with 3.2, hence 3.1!)
- Got the image grabber working with opencv (python). Here is the VideoCapture input:
cap = cv2.VideoCapture("nvcamerasrc ! video/x-raw(memory:NVMM), width=(int)192, height=(int)1080,format-(string)I420,framerate=(fraction)30/1 ! nvvidconv flip-method=0 ! video/x-raw, format=(string)BGRx ! videoconvert ! video/x-raw, format=(string)BGR ! appsink")
- Installed SSD
Now, how do I input the device ID to ssd_pascal_webcam.py?
Any leads will be appreciated. Thanks in advance!
yankailab commented
Hi pnambiar, is ssd_pascal_webcam part of OpenKAI? anyway, you can simple do
cap = cv2.VideoCapture(0)
to get input from /dev/video0
pnambiar commented
Tried. That does not work