提交 44568c1e authored 作者: blu's avatar blu

object detection

上级 bf6a0540
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
UNAME_S := $(shell uname -s) UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux) ifeq ($(UNAME_S),Linux)
LIBS= -lopencv_dnn -lopencv_core -lopencv_imgproc -lopencv_video LIBS= -lopencv_dnn -lopencv_core -lopencv_imgproc -lopencv_video -lopencv_imgcodecs
endif endif
ifeq ($(UNAME_S),Darwin) ifeq ($(UNAME_S),Darwin)
OPENCV = `pkg-config opencv4 --cflags --libs` OPENCV = `pkg-config opencv4 --cflags --libs`
...@@ -19,6 +19,8 @@ ifneq ($(filter arm%,$(UNAME_P)),) ...@@ -19,6 +19,8 @@ ifneq ($(filter arm%,$(UNAME_P)),)
NOP= NOP=
endif endif
SHARED=-I../opencv-motion-detect/inc -I../opencv-motion-detect/vendor/include/opencv4 -L../opencv-motion-detect/vendor/lib
CC = g++ CC = g++
...@@ -26,15 +28,15 @@ CFLAGS = -g -Wall -std=c++2a ...@@ -26,15 +28,15 @@ CFLAGS = -g -Wall -std=c++2a
SRCS = main.origin.cpp SRCS = main.origin.cpp
PROG = main PROG = main
SRCS2 = main.cpp SRCS2 = main.cpp
PROG2 = yolo PROG2 = detector
all: $(PROG) $(PROG2) all: $(PROG) $(PROG2)
$(PROG):$(SRCS) $(PROG):$(SRCS)
$(CC) $(CFLAGS) -o $(PROG) $(SRCS) $(LIBS) $(CC) $(CFLAGS) -o $(PROG) $(SRCS) $(SHARED) $(LIBS) -lopencv_highgui
$(PROG2):$(SRCS2) yolo.hpp $(PROG2):$(SRCS2) yolo.hpp
$(CC) $(CFLAGS) -o $(PROG2) $(SRCS2) $(LIBS) -I../opencv-motion-detect/inc -I../opencv-motion-detect/vendor/include -L../opencv-motion-detect/vendor/lib $(CC) $(CFLAGS) -o $(PROG2) $(SRCS2) $(SHARED) $(LIBS)
clean: clean:
rm -fr main yolo rm -fr main detector
\ No newline at end of file \ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论