合并图像处理库,删除图像lib库
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
namespace XP.Camera;
|
||||
|
||||
/// <summary>
|
||||
/// 统一相机工厂,根据品牌名称创建对应的相机控制器。
|
||||
/// </summary>
|
||||
public class CameraFactory : ICameraFactory
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public ICameraController CreateController(string cameraType)
|
||||
{
|
||||
return cameraType switch
|
||||
{
|
||||
"Basler" => new BaslerCameraController(),
|
||||
// "Hikvision" => new HikvisionCameraController(),
|
||||
_ => throw new NotSupportedException($"不支持的相机品牌: {cameraType}")
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user