合并图像处理库,删除图像lib库

This commit is contained in:
李伟
2026-04-13 13:40:37 +08:00
parent 2a762396d5
commit c7ce4ea6a1
105 changed files with 16341 additions and 133 deletions
+18
View File
@@ -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}")
};
}
}