C API 
cvDestroyWindow metodu
Şöyle yaparız.
cvDestroyWindow("WebCam");
Şöyle yaparız.
cvNamedWindow("WebCam", 1);
cvShowImage metodu
IplImage* frame = ...;
cvShowImage("WebCam", frame);Şu satırı dahil ederiz.
#include <opencv2/opencv.hpp>#include <opencv/highgui.h>İmzası şöyle
void imshow(const string& winname, InputArray mat)
Mat frame = ...;
imshow("Frame", frame);İsmi belirtilen pencereyi x,y konumuna taşır. Böylece iki tane pencreyi yanyana yerleştirebiliriz. Pencereyi sol üst köşeye yerleştirmek için şöyle yaparız.
cv::cvMoveWindow ("Frame", 0, 0);Şöyle yaparız.
cv::namedWindow("Frame", 1);cv::namedWindow("Slice_Viewer1", CV_WINDOW_FREERATIO);cv::namedWindow("Frame", CV_WINDOW_AUTOSIZE);cv::imshow("Display", frame);Şöyle yaparız.
cv2.namedWindow("your_win_name",cv2.WINDOW_NORMAL)
cv2.resizeWindow("your_win_name",your_win_width,your_win_height)Belirtilen süre kadar beklemek için şöyle yaparız.
int key = cv::waitKey (1);int key = cv::waitKey (0);if (key == 'p') {...}if (key == 'q') {...}if (key == 65363) {...} //Sağ ok
if (key == 65361) {...} //Sol ok 
 
Hiç yorum yok:
Yorum Gönder