라즈베리파이 opencv
이미지와 텍스트를 5초간 띄우는 코드#include #include #include #include #include using namespace cv;int main(){ Mat img; img = imread("/home/pi/opencv/image/buddha.jpg"); putText(img, "Hello bird!",Point(60,50),FONT_HERSHEY_SIMPLEX,1,Scalar(255,0,0),1,LINE_AA,false); rectangle(img, Rect(30,25,350,30), Scalar(0,0,255)); namedWindow("Hello"); imshow("hello", img); waitKey(5000); return 0;}..
2024. 10. 1.