diff --git a/a.out b/a.out index cc38265..3e4a221 100755 Binary files a/a.out and b/a.out differ diff --git a/hello_world.cpp b/hello_world.cpp index 9c701fd..5daa12b 100644 --- a/hello_world.cpp +++ b/hello_world.cpp @@ -7,11 +7,11 @@ int main() cv::Mat img = cv::Mat::zeros(120, 350, CV_8UC3); // write text on the image -putText(img, “Hello World”, cv::Point(15, 70), cv::FONT_HERSHEY_PLAIN, 3, cv::Scalar(0, 255, 0), +putText(img, "Hello World", cv::Point(15, 70), cv::FONT_HERSHEY_PLAIN, 3, cv::Scalar(0, 255, 0), 4); // display the image -imshow(“Win”, img); +imshow("Win", img); // wait for a key press to exit the program cv::waitKey(0); diff --git a/hello_world.o b/hello_world.o new file mode 100644 index 0000000..95ce373 Binary files /dev/null and b/hello_world.o differ diff --git a/main.cpp b/main.cpp index bd68921..b92deea 100644 --- a/main.cpp +++ b/main.cpp @@ -1,6 +1,6 @@ #include #include "arithmetic.h" -#include "opencv/opencv.hpp" +#include "opencv2/opencv.hpp" int main() { diff --git a/main.o b/main.o index d297d55..449f1de 100644 Binary files a/main.o and b/main.o differ diff --git a/makefile b/makefile index 751412c..c8d4137 100644 --- a/makefile +++ b/makefile @@ -2,13 +2,13 @@ all: main arithmetic hello g++ main.o arithmetic.o -L/usr/lib/x86_64-linux-gnu -lopencv_core main: main.cpp - g++ -c main.cpp -l/usr/include + g++ -c main.cpp -I/usr/include/opencv4 arithmetic: arithmetic.cpp arithmetic.h g++ -c arithmetic.cpp hello: hello_world.cpp - g++ -c hello_world.cpp -l/usr/include + g++ -c hello_world.cpp -I/usr/include/opencv4 clean: rm *.o