hello_world file 2

This commit is contained in:
Your Name 2022-03-30 10:49:58 +02:00
parent baf0900886
commit 4417e6753b
6 changed files with 5 additions and 5 deletions

BIN
a.out

Binary file not shown.

View File

@ -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);

BIN
hello_world.o Normal file

Binary file not shown.

View File

@ -1,6 +1,6 @@
#include <iostream>
#include "arithmetic.h"
#include "opencv/opencv.hpp"
#include "opencv2/opencv.hpp"
int main()
{

BIN
main.o

Binary file not shown.

View File

@ -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