忘记改啥了
This commit is contained in:
@@ -38,6 +38,13 @@ VmbErrorType ApiController::StartContinuousImageAcquisition(const std::string &r
|
||||
VmbAccessModeFull,
|
||||
m_pCamera);
|
||||
if (VmbErrorSuccess == res) {
|
||||
std::cerr << "StartContinuousImageAcquisition failed with error code: " << res << std::endl;
|
||||
// 可以添加更多错误信息
|
||||
if (res == VmbErrorApiNotStarted) {
|
||||
std::cerr << "Vimba API not started" << std::endl;
|
||||
} else if (res == VmbErrorInvalidAccess) {
|
||||
std::cerr << "Invalid access to camera" << std::endl;
|
||||
}
|
||||
FeaturePtr pFormatFeature;
|
||||
res = m_pCamera->GetFeatureByName("PixelFormat", pFormatFeature);
|
||||
if (VmbErrorSuccess == res) {
|
||||
|
||||
Reference in New Issue
Block a user