提交 53b68d62 authored 作者: blu's avatar blu

object detection

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