geboshi_V1/LeatherProject/LeatherApp/Interface/ABSCamerCardDev.cs
2024-03-07 14:03:22 +08:00

35 lines
1.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using OpenCvSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace LeatherApp.Interface
{
public abstract class ABSCamerCardDev
{
public Action<DateTime,WarningEnum, string> WarningEvent;
public Action<int> PhotoNumCacheEvent;
/// <summary>
/// 拍照回传 1-num,文件名.bmp, devIndex)
/// </summary>
public Action<int, string, int> ScanEventPath;
public Action<int, Mat, int> ScanEvent;
//public Action<int, Bitmap,int> ScanEvent;
public abstract bool open(int cardIndex = 0, int scannerIndex = 0);
public abstract void close();
public abstract bool start(PictureBox preview_Hwnd, string bmp_save_path);
public abstract void stop();
public abstract void resetScanIndex();
public abstract double[] getFeatureRangeValue(string featureName);
public abstract void getParam();
public abstract bool setParam(float exposureTime, float gain = -1, float resultingFrameRate = -1);
}
}