ArduCAM / ArduCAM_USB_Camera_Shield

This is the repository for ArduCAM USB Camera Shield
126 stars 69 forks source link

Loading configuration file failed #192

Open windell747747 opened 1 year ago

windell747747 commented 1 year ago

windell@windell-ThinkPad-T490:~/PycharmProjects/arducam_code/ArduCAM_USB_Camera_Shield_Python_Demo$ python3 ArduCam_Demo.py -v --preview-width 1280 -f AR0135_MONO_8b_1280x964_30fps.cfg Traceback (most recent call last): File "/home/windell/PycharmProjects/arducam_code/ArduCAM_USB_Camera_Shield_Python_Demo/ArduCam_Demo.py", line 50, in if not camera.openCamera(config_file): File "/home/windell/PycharmProjects/arducam_code/ArduCAM_USB_Camera_Shield_Python_Demo/Arducam.py", line 15, in openCamera self.isOpened, self.handle, self.cameraCfg, self.color_mode = camera_initFromFile( File "/home/windell/PycharmProjects/arducam_code/ArduCAM_USB_Camera_Shield_Python_Demo/utils.py", line 41, in camera_initFromFile config = arducam_config_parser.LoadConfigFile(fileName) File "/home/windell/.local/lib/python3.10/site-packages/arducam_config_parser/arducam_config_parser.py", line 117, in LoadConfigFile raise RuntimeError("Loading configuration file {} failed.".format(name)) RuntimeError: Loading configuration file AR0135_MONO_8b_1280x964_30fps.cfg failed.

Im running Ubuntu Linux and I went through the instructions on dowloading the driver etc. Here is the contents of the directory to verify that the configure file is in the same place as the code.

windell@windell-ThinkPad-T490:~/PycharmProjects/arducam_code/ArduCAM_USB_Camera_Shield_Python_Demo$ ls AR0135_MONO_8b_1280x964_30fps.cfg ArduCam_Demo.py Arducam.py ImageConvert.py pycache README.md requirements.txt utils.py

Has anyone has the same problem? Does anyone know how to fix this?