diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-04-02 11:58:55 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-04-02 11:58:55 +0300 |
| commit | 1eb4e2409abbcffdab96b5e896cf71850ab13a01 (patch) | |
| tree | 51b3a09c95c040ce864ccf4920a0b4696108da41 /Software/Visual_Studio/TCC/Tango.TCC.CardDetector | |
| parent | 05baf6a0dda66fdc1b66d3f769e709f88b540e1d (diff) | |
| download | Tango-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.cpp | 2 | ||||
| -rw-r--r-- | Software/Visual_Studio/TCC/Tango.TCC.CardDetector/CardDetection.cpp | bin | 2730 -> 6576 bytes | |||
| -rw-r--r-- | Software/Visual_Studio/TCC/Tango.TCC.CardDetector/CardDetection.h | bin | 776 -> 1002 bytes | |||
| -rw-r--r-- | Software/Visual_Studio/TCC/Tango.TCC.CardDetector/CardDetectionConfig.h | 3 |
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 Binary files differindex 546c228db..63b2f59a6 100644 --- a/Software/Visual_Studio/TCC/Tango.TCC.CardDetector/CardDetection.cpp +++ b/Software/Visual_Studio/TCC/Tango.TCC.CardDetector/CardDetection.cpp diff --git a/Software/Visual_Studio/TCC/Tango.TCC.CardDetector/CardDetection.h b/Software/Visual_Studio/TCC/Tango.TCC.CardDetector/CardDetection.h Binary files differindex db8f51406..c240a2502 100644 --- a/Software/Visual_Studio/TCC/Tango.TCC.CardDetector/CardDetection.h +++ b/Software/Visual_Studio/TCC/Tango.TCC.CardDetector/CardDetection.h 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; }; } } |
