OpenCV for Robotics Get link Facebook X Pinterest Email Other Apps March 24, 2019 Object tracking Robot navigation Face detection Get link Facebook X Pinterest Email Other Apps Comments
OpenCV Programming 1 July 20, 2019 1. Display data type. #include "pch.h" #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc.hpp> #include <iostream> using namespace cv; using namespace std; int main(int argc, char** argv) { int i = 2; while (i != 0) { cout << "enter image martix size"; cin >> i; if (i == -1) { break; } Mat M(i, i, CV_8UC3, Scalar(0, 0, 255)); cout << "M = " << endl << " " << M << endl << endl; } } Read more
Opencv Drawing Functions July 07, 2019 Drawing Functions https://docs.opencv.org/3.0-beta/modules/imgproc/doc/drawing_functions.html header for Drawing functions: imgproc.hpp Mat image(200, 200, CV_8UC3, Scalar(0)); RotatedRect rRect = RotatedRect(Point2f(100, 100), Size2f(100, 50), 30); Point2f vertices[4]; rRect.points(vertices); for (int i = 0; i < 4; i++) line(image, vertices[i], vertices[(i + 1) % 4], Scalar(0, 255, 0),1); Rect brect = rRect.boundingRect(); rectangle(image, brect, Scalar(255, 0, 0)); imshow("rectangles", image); waitKey(0); Read more
Comments
Post a Comment