Horje
draw rectangle opencv c++ Code Example
draw rectangle opencv c++
// just some valid rectangle arguments
int x = 0;
int y = 0;
int width = 10;
int height = 20;
// our rectangle...
cv::Rect rect(x, y, width, height);
// and its top left corner...
cv::Point pt1(x, y);
// and its bottom right corner.
cv::Point pt2(x + width, y + height);
// These two calls...
cv::rectangle(img, pt1, pt2, cv::Scalar(0, 255, 0));
// essentially do the same thing
cv::rectangle(img, rect, cv::Scalar(0, 255, 0))
open cv draw
cv2.circle(img, center, radius, color[, thickness[, lineType[, shift]]])




Cpp

Related
Header for INT_MIN Code Example Header for INT_MIN Code Example
how to compare two char* in c++ Code Example how to compare two char* in c++ Code Example
c++ vector extend vector Code Example c++ vector extend vector Code Example
how to convert int to std::string Code Example how to convert int to std::string Code Example
two elements with difference K in c++ Code Example two elements with difference K in c++ Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9