Hi there,
I have a MT9J001 with a UC-391 Rev. D USB 2 camera shield and a Windows 10 (64 bit) PC. My intention is to use this camera-shield combination as a camera for my finder-scope. I intend to bin some pixels to increase the fps.
When I use below Python script, my camera is not found but if I plug in a webcam I get a video stream:
import numpy as np
import cv2
cap = cv2.VideoCapture(0)
while(True):
Capture frame-by-frame
ret, frame = cap.read()
Display the resulting frame
cv2.imshow(‘color’,frame)
if cv2.waitKey(1) & 0xFF == ord(‘q’):
break
Hi Wong,
I have sucesfuly installed the driver and can run the USBtest although I have no ability to control image brightness.
I also tested the External trigger software but it seems the ArducamSDK is missing please see below:
|
Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:37:02) [MSC v.1924 64 bit (AMD64)] on win32
Type “help”, “copyright”, “credits” or “license()” for more information.
>>>
= RESTART: D:\ArduCAM_USB_Camera_Shield-master\Windows\Python\External_trigger_demo\ArduCam_Ext_Trigger_Demo.py
Traceback (most recent call last):
File “D:\ArduCAM_USB_Camera_Shield-master\Windows\Python\External_trigger_demo\ArduCam_Ext_Trigger_Demo.py”, line 9, in <module>
from ImageConvert import *
File “D:\ArduCAM_USB_Camera_Shield-master\Windows\Python\External_trigger_demo\ImageConvert.py”, line 2, in <module>
import ArducamSDK
ImportError: DLL load failed while importing ArducamSDK: The specified module could not be found.
>>>
Hi Wong,
Thank you for your help. Installing the 3.8 library helped.
Do you by any chance have a cfg file for the MT9J001 sensor for 1920x1080 2x2 binning and 12bit readout?
Regards,
VK4TNT
Hi Wong,
Thank you for your support. I think the binning feature I described would also be very useful for the newer MT9J003 colour device as it could be turned into a proper 1920x1080 monochrome camera.
Best regards and thank you again.
Renato
Hi Wong,
Thank you and your engineer for the great effort and sorry for not getting back to you earlier. I finally had time to test the config file and found some discrepancies between it’s behaviour using the GUI Demo and the Streaming Demo. All works ok in the GUI Demo but the Streaming Demo (using ArducamSDK.cp38-win_amd64.pyd) comes up with:
I made a mistake in arducan_config_parser, which caused only hexadecimal numbers starting with 0x to be parsed but not hexadecimal numbers starting with 0X.
Thank you for the quick fix of the INI file. I tested it and it works. There are some Byer Mask issues but I will look into the problem myself and let you know if I find a solution.
Thinks like case sensitivity can be a trap. Great job fixing it, thank you.
Regards,
Renato