aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/TCC/Tango.TCC.CardDetector
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-04-02 11:58:55 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-04-02 11:58:55 +0300
commit1eb4e2409abbcffdab96b5e896cf71850ab13a01 (patch)
tree51b3a09c95c040ce864ccf4920a0b4696108da41 /Software/Visual_Studio/TCC/Tango.TCC.CardDetector
parent05baf6a0dda66fdc1b66d3f769e709f88b540e1d (diff)
downloadTango-1eb4e2409abbcffdab96b5e896cf71850ab13a01.tar.gz
Tango-1eb4e2409abbcffdab96b5e896cf71850ab13a01.zip
Working on color capture module...
Diffstat (limited to 'Software/Visual_Studio/TCC/Tango.TCC.CardDetector')
-rw-r--r--Software/Visual_Studio/TCC/Tango.TCC.CardDetector/ArucoUtils.cpp2
-rw-r--r--Software/Visual_Studio/TCC/Tango.TCC.CardDetector/CardDetection.cppbin2730 -> 6576 bytes
-rw-r--r--Software/Visual_Studio/TCC/Tango.TCC.CardDetector/CardDetection.hbin776 -> 1002 bytes
-rw-r--r--Software/Visual_Studio/TCC/Tango.TCC.CardDetector/CardDetectionConfig.h3
4 files changed, 3 insertions, 2 deletions
diff --git a/Software/Visual_Studio/TCC/Tango.TCC.CardDetector/ArucoUtils.cpp b/Software/Visual_Studio/TCC/Tango.TCC.CardDetector/ArucoUtils.cpp
index 76923a5c6..52721368a 100644
--- a/Software/Visual_Studio/TCC/Tango.TCC.CardDetector/ArucoUtils.cpp
+++ b/Software/Visual_Studio/TCC/Tango.TCC.CardDetector/ArucoUtils.cpp
@@ -81,8 +81,6 @@ Mat ArucoUtils::applyHomography(Mat image, vector<cv::Point> vertices, Size dest
pts_dst.push_back(Point2f(destination_size.width - 1, destination_size.height - 1));
pts_dst.push_back(Point2f(0, destination_size.height - 1));
- Mat im_temp = image.clone();
-
Mat tform = findHomography(vertices, pts_dst);
warpPerspective(image, im_dst, tform, destination_size);
return im_dst;
diff --git a/Software/Visual_Studio/TCC/Tango.TCC.CardDetector/CardDetection.cpp b/Software/Visual_Studio/TCC/Tango.TCC.CardDetector/CardDetection.cpp
index 546c228db..63b2f59a6 100644
--- a/Software/Visual_Studio/TCC/Tango.TCC.CardDetector/CardDetection.cpp
+++ b/Software/Visual_Studio/TCC/Tango.TCC.CardDetector/CardDetection.cpp
Binary files differ
diff --git a/Software/Visual_Studio/TCC/Tango.TCC.CardDetector/CardDetection.h b/Software/Visual_Studio/TCC/Tango.TCC.CardDetector/CardDetection.h
index db8f51406..c240a2502 100644
--- a/Software/Visual_Studio/TCC/Tango.TCC.CardDetector/CardDetection.h
+++ b/Software/Visual_Studio/TCC/Tango.TCC.CardDetector/CardDetection.h
Binary files differ
diff --git a/Software/Visual_Studio/TCC/Tango.TCC.CardDetector/CardDetectionConfig.h b/Software/Visual_Studio/TCC/Tango.TCC.CardDetector/CardDetectionConfig.h
index f014c2159..a6e104b53 100644
--- a/Software/Visual_Studio/TCC/Tango.TCC.CardDetector/CardDetectionConfig.h
+++ b/Software/Visual_Studio/TCC/Tango.TCC.CardDetector/CardDetectionConfig.h
@@ -1,5 +1,7 @@
#pragma once
+using namespace System;
+
namespace Tango
{
namespace TCC
@@ -11,6 +13,7 @@ namespace Tango
CardDetectionConfig();
property double DesiredBitmapWidth;
property double DesiredBitmapHeight;
+ property cli::array<Byte>^ TemplateBitmap;
};
}
}