47 lines
1.5 KiB
C#
47 lines
1.5 KiB
C#
using LibCamera;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace LibImageService
|
|
{
|
|
public class ImageService
|
|
{
|
|
IImageCollector m_imageCollectorOCR;
|
|
IImageCollector m_imageCollectorLocation;
|
|
//private Dictionary<string, IImageCollector>
|
|
public ImageService(string serialLocation, string serialOCR)
|
|
{
|
|
m_imageCollectorLocation = new ImageCollector(serialLocation);
|
|
m_imageCollectorOCR = new ImageCollector(serialOCR);
|
|
m_imageCollectorLocation.OnImageCollectorData += M_imageCollectorLocation_OnImageCollectorData;
|
|
m_imageCollectorLocation.OnImageCollectorMessage += M_imageCollectorLocation_OnImageCollectorMessage;
|
|
m_imageCollectorLocation.OnImageCollectorInfo += M_imageCollectorLocation_OnImageCollectorInfo;
|
|
|
|
}
|
|
|
|
private void M_imageCollectorLocation_OnImageCollectorInfo(string info)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
private void M_imageCollectorLocation_OnImageCollectorMessage(string msg)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
private void M_imageCollectorLocation_OnImageCollectorData(byte[] imageData)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public void Start()
|
|
{
|
|
m_imageCollectorLocation.Start();
|
|
m_imageCollectorOCR.Start();
|
|
}
|
|
}
|
|
}
|