USB Camera has no zoom

Hi everyone,

I have a Jetson AGX Xavier and “see3CAM_CU55 - 1/2.5” 5.0 MP Low Noise USB Camera". I am trying to run this code but camera does not zoom. Why is this happening?. Thank you for every reply.

import cv2

cap = cv2.VideoCapture(1)

cap.set(cv2.CAP_PROP_FRAME_WIDTH, 640)
cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 480)
cap.set(cv2.CAP_PROP_ZOOM, 100)

while True:
ret, frame = cap.read()
cv2.imshow("a", frame)

key = cv2.waitKey(1) & 0xFF
if key == ord('q'):
    break

cv2.destroyAllWindows()

I didn’t find anything on internet about ee3cam_cu55. Are you sure it exists and it has zoom?
Anyway, as it’s probably some exotic camera, you should probably try to access it though it’s own API.

it does not advertise any zoom function, so it probably doesn’t have one.

No, I’m sure this feature exists. because i ran this code in windows and the camera zoomed.

CAP_PROP_ZOOM is implemented for dshow and MSMF, so it might work.

perhaps you should vary the values you pass (100) and see if that does anything?