1.Which seller did you purchase the product(s) from?
2.The Model number of the product(s) you have purchased?
3.Which Platform are you using the product(s) on?
Raspberry Pi3 running Raspian
4.Which instruction are you following?
Existing OpenCV code
5.Has your product ever worked properly?
It works on Windows but not Raspian
6.What problems are you experiencing?
I’ve got a B0196 that I’m using to try and replace a logitech C270 in a product we make. Teh camera is controlled by Python/OpenCV running from a raspberry pi 3. The code to connect is very simple:
cam = self.__cameras[index]
if cam is None or not cam.isOpened():
raise Exception(“VideoCapture is not connected”)
logging.info('setting camera ’ + str(index) + ’ to width ’ + str(self.IMAGE_WIDTH) + ’ and ’ + str(self.IMAGE_HEIGHT))
logging.info('camera is ’ + str(cam.get(cv2.CAP_PROP_FRAME_WIDTH)) + ’ ’ +
On the Logitech camera this simply connects and starts working at the required resolution but with a B0196 the resolution is 1280 by 800:
2019-02-14 10:40:34,899 - root - INFO - setting camera 0 to width 1280 and 960
2019-02-14 10:40:34,985 - root - INFO - camera is 1280.0 800.0
Does anyone know why this is happening - note doesn’t happen on windows when running on DirectShow.
7.What attempts at troubleshooting have you already made?
Tested code and logged output and run on Windows.
8.How would you like us to help you?
Suggest why the resoltuion might be set incorrectly