prepare reset
This commit is contained in:
46
LibImageService/ImageService.cs
Normal file
46
LibImageService/ImageService.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user