1.0.6
This commit is contained in:
@@ -59,10 +59,10 @@ namespace Hawkeye.VisionBuilder.UI.Sources.Hawkeye
|
||||
if (File.Exists(_settings?.SettingsFile))
|
||||
{
|
||||
_cameraSettings = UICameraSettings.LoadSettingsLocal(_settings.SettingsFile).ToCameraSettings();
|
||||
_client.ApplySettings(_cameraSettings);
|
||||
|
||||
}
|
||||
|
||||
|
||||
_client.ApplySettings(_cameraSettings);
|
||||
}
|
||||
|
||||
public Task<Mat> GetImage(CancellationToken token)
|
||||
@@ -98,6 +98,7 @@ namespace Hawkeye.VisionBuilder.UI.Sources.Hawkeye
|
||||
try
|
||||
{
|
||||
Log.Debug("Got image on {adapter}", _settings.Adapter);
|
||||
Log.Debug("Bytes: {bytes}", obj.Length);
|
||||
//FlipLines(obj, _flipBuffer);
|
||||
|
||||
var pinnedArray = GCHandle.Alloc(obj, GCHandleType.Pinned);
|
||||
@@ -113,10 +114,10 @@ namespace Hawkeye.VisionBuilder.UI.Sources.Hawkeye
|
||||
_cameraSettings.OffsetX;
|
||||
|
||||
// crop the image with opencv
|
||||
_lastImage = image[0, _cameraSettings.ImageSettings.Lines, xCrop,
|
||||
xCrop + _cameraSettings.ImageWidth].Clone();
|
||||
//_lastImage = image[0, _cameraSettings.ImageSettings.Lines, xCrop,
|
||||
// xCrop + _cameraSettings.ImageWidth].Clone();
|
||||
_lastImage = image;
|
||||
|
||||
|
||||
|
||||
|
||||
if (_cameraSettings.BayerFilter)
|
||||
|
||||
Reference in New Issue
Block a user