You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe what you want to implement and what the issue & the steps to reproduce it are:
I want to Open the camera in another class.
when I try open camera in class constructor, the camera was not opened and throw this exception: terminated called after throwing an instance of 'GenICam_3_1_Basler::pylon::runtimeException' but when I create Instance of camera in main function, I can open camera and capture frames without any problem.
I'm writing code in c++
here is the code of the class:
classCameraService
{
private:
CInstantCamera*camera;
CImageFormatConverter*formatconverter;
CPylonImage*pylonimage;
public:
CameraService(CameraParamters&CameraParameter);
~CameraService();
};
CameraService::CameraService(CameraParameters&CameraParameter)
{
CInstantCameracamera(CTlFactory::GetInstance().CreateFirstDevice()); // this line throw an exception
std::cout << "Using Camera: " << camera.GetDeviceInfo().GetModelName() << std::endl;
}
Is your camera operational in Basler pylon viewer on your platform
Yes
Hardware setup & camera model(s) used
AMD64 CPU
Ubuntu
RAM 16 GB
Camera: Ace2040-55um
USB 3.0
Runtime information:
terminated called after throwing an instance of 'GenICam_3_1_Basler::pylon::runtimeException'
The text was updated successfully, but these errors were encountered:
Describe what you want to implement and what the issue & the steps to reproduce it are:
I want to Open the camera in another class.
when I try open camera in class constructor, the camera was not opened and throw this exception:
terminated called after throwing an instance of 'GenICam_3_1_Basler::pylon::runtimeException'
but when I create Instance of camera in main function, I can open camera and capture frames without any problem.
I'm writing code in c++
here is the code of the class:
Is your camera operational in Basler pylon viewer on your platform
Yes
Hardware setup & camera model(s) used
AMD64 CPU
Ubuntu
RAM 16 GB
Camera: Ace2040-55um
USB 3.0
Runtime information:
terminated called after throwing an instance of 'GenICam_3_1_Basler::pylon::runtimeException'
The text was updated successfully, but these errors were encountered: