First,I’m not good at English,sorry.
I’m trying to use TX1 camera to take a picture.
And I’m using Python code below, but its strange.
Its made an image filled with only black anytime.
cap = cv2.VideoCapture(0)
ret, frame = cap.read()
img = cv2.imread(‘capture.jpg’)
path = “test_photo.jpg”
I checked the camera by command below, and took a snapshot.
So I could check the camera working .
nvgstcapture-1.0 -m 1 --image-res=10
Please tell me how to use TX1 camera by python.