MvCameraControl.dll is not found in the Python sample program for CS/EG series cameras

When executing the Python program of CS/EG series cameras, the following error message may be displayed and cannot be executed.

 

FileNotFoundError: Could not find module ‘MvCameraControl.dll’

 

This is due to the fact that the folder where the MvCameraControl.dll resides is not passed through the Windows path.

 

MvCamCtrldll = WinDLL(“MvCameraControl.dll”)

 

In the case of Windows, adding the path to the MvCameraControl.dll to the environment variable solves the problem, but it is easier to change the line where the error occurs as follows.

 

・Changes for 32-bit environments

MvCamCtrldll = WinDLL(“C:\Program Files (x86)\Common Files\MVS\Runtime\Win32_i86\ MvCameraControl.dll”)

 

 

・Changes for 64-bit environments

MvCamCtrldll = WinDLL(“C:\Program Files (x86)\Common Files\MVS\Runtime\Win64_x64\ MvCameraControl.dll”)