I have a completed, 100% working OpenCV C++ program that I wanted to add WinForms functionality to. After importing all of the libraries and includes:
#pragma once
#include <opencv2/imgcodecs.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <iostream>
#include <stdlib.h>
namespace CoinCounterProgramMelee {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
using namespace cv;
using namespace std;
I pasted my OpenCV code into the .h file for the Form. An error occurred whenever I would create a vector of vectors of Points, e.g:
vector<vector<Point>> contours;
The problem is in the , as Visual Studio is saying that Point is ambiguous.
Errors also come up whenever I call Size(). Can anyone tell me what the problem is? Sorry if there are any problems with this question, I don't use StackOverflow very often.
Thanks