|
@@ -0,0 +1,73 @@
|
|
|
+/*
|
|
|
+ * Create by LocalUser on 2020/9/22
|
|
|
+*/
|
|
|
+
|
|
|
+#include "FingerPrint_Impl.h"
|
|
|
+
|
|
|
+FingerPrintImpl::FingerPrintImpl()
|
|
|
+{
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+FingerPrintImpl::~FingerPrintImpl()
|
|
|
+{
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+ErrorCodeEnum FingerPrintImpl::GetDevCategory(DevCategoryInfo& devCategory)
|
|
|
+{
|
|
|
+ ErrorCodeEnum err = Error_Succeed;
|
|
|
+ /*std::strcpy(devCategory.szModel, "szModel");
|
|
|
+ std::strcpy(devCategory.szType, "szCategory");
|
|
|
+ std::strcpy(devCategory.szVendor, "szVendor");*/
|
|
|
+ return err;
|
|
|
+}
|
|
|
+
|
|
|
+ErrorCodeEnum FingerPrintImpl::Reset()
|
|
|
+{
|
|
|
+ ErrorCodeEnum err = Error_Unexpect;
|
|
|
+ m_mode = 0;
|
|
|
+ return err;
|
|
|
+}
|
|
|
+
|
|
|
+ErrorCodeEnum FingerPrintImpl::DevOpen(DWORD dwPort, DWORD dwBaudRate)
|
|
|
+{
|
|
|
+ static int nums = 0;
|
|
|
+ ErrorCodeEnum err = Error_Succeed;
|
|
|
+ if (nums == 0) {
|
|
|
+ err = Error_Unexpect;
|
|
|
+ nums = 1;
|
|
|
+ }
|
|
|
+ return err;
|
|
|
+}
|
|
|
+
|
|
|
+ErrorCodeEnum FingerPrintImpl::Image2Feature(const char* imageName, LPBYTE lpbFeature, int& iLength)
|
|
|
+{
|
|
|
+ return Error_NotImpl;
|
|
|
+}
|
|
|
+
|
|
|
+ErrorCodeEnum FingerPrintImpl::Image2Template(const char* imagePath1, const char* imagePath2, const char* imagePath3, LPBYTE lpbTemplate, int& iLength)
|
|
|
+{
|
|
|
+ return Error_NotImpl;
|
|
|
+}
|
|
|
+
|
|
|
+ErrorCodeEnum FingerPrintImpl::Match(LPBYTE lpbTemplate[], int iTemplateLen[], int templateNum, LPBYTE lbpFeature, int& iFeatureLen, int level /* = 3 */)
|
|
|
+{
|
|
|
+ return Error_NotImpl;
|
|
|
+}
|
|
|
+
|
|
|
+ErrorCodeEnum FingerPrintImpl::Cancel()
|
|
|
+{
|
|
|
+ return Error_Succeed;
|
|
|
+}
|
|
|
+
|
|
|
+ErrorCodeEnum FingerPrintImpl::DevClose()
|
|
|
+{
|
|
|
+ ErrorCodeEnum err = Error_Succeed;
|
|
|
+ return err;
|
|
|
+}
|
|
|
+
|
|
|
+ErrorCodeEnum FingerPrintImpl::GetLastErr(DevErrorInfo& devErrInfo)
|
|
|
+{
|
|
|
+ return Error_Succeed;
|
|
|
+}
|