I want to acquire images from a scientific camera as 16bit grey scale. The default with OpenCV is 8 bit grey scale. I can't figure out from the documentation how to change the bit depth on acquisition. (The camera is capable and I can configure and acquire images with other programs in 16 bit grey).
import cv2
cap = cv2.VideoCapture(1)
while True:
ret, img = cap.read()
print img.dtype
cv2.imshow("input", img)
key = cv2.waitKey(10)
if key == 27:
break
cv2.destroyAllWindows()
cv2.VideoCapture(1).release()
Can anyone familiar with setting camera settings in opencv lend a hand? Thank you!