|
|
@@ -186,6 +186,7 @@ namespace AutoFocusTool
|
|
|
Thread.Sleep(150);
|
|
|
_camera.GrabRgb();
|
|
|
var buf = _camera.GetSourceBuffer();
|
|
|
+ if (buf == null) { Log($" well{well} 存图跳过(缓冲为空)"); continue; }
|
|
|
string imgPath = $"{resultDir}\\house{houseSn}_well{well}_标定后.bmp";
|
|
|
ImageConverter.SaveBmp(buf, _camWidth, _camHeight, imgPath);
|
|
|
var bmp = ImageConverter.ToBitmapSource(buf, _camWidth, _camHeight);
|