박민혀기
OpenCV selectROI() API 본문
#include <opencv2/opencv.hpp>
#include <opencv2/tracking.hpp>
using namespace std;
using namespace cv;
int main (int argc, char **arv)
{
Mat im = imread("image.jpg");
Rect2d r = selectROI(im);
Mat imCrop = im(r);
imshow("Image", imCrop);
waitKey(0);
return 0;
}
'OpenCV' 카테고리의 다른 글
Capture to the score frame in streaming video game (Template Match) for Python (0) | 2023.12.20 |
---|---|
Capture to the score frame in streaming video game (Template Match) for Python (0) | 2023.12.14 |
MeanShitf 예제 (0) | 2023.06.23 |
OpenCV Include, Lib, PATH (0) | 2023.02.03 |
Ubuntu, Raspberry Pi OpenCV Install(txt File) (0) | 2022.11.08 |