忘记改啥了

This commit is contained in:
zhangpeng
2025-06-25 18:10:46 +08:00
parent 4415269f51
commit fa5a44bcbf
3 changed files with 65 additions and 2 deletions

View File

@@ -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) {