-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
40 lines (28 loc) · 3.97 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
all: drone.mp4 vo
vo: latch.o bitMatcher.o #fast.o
g++ -g -std=c++11 `pkg-config --cflags opencv` vo.cpp latch.o bitMatcher.o -I/opt/cuda/include/ -L/opt/cuda/lib64 -lcuda -lcudart -L/usr/local/lib -lopencv_stitching -lopencv_superres -lopencv_videostab -lopencv_aruco -lopencv_bgsegm -lopencv_bioinspired -lopencv_ccalib -lopencv_dnn -lopencv_dpm -lopencv_fuzzy -lopencv_line_descriptor -lopencv_optflow -lopencv_plot -lopencv_reg -lopencv_saliency -lopencv_stereo -lopencv_structured_light -lopencv_rgbd -lopencv_surface_matching -lopencv_tracking -lopencv_datasets -lopencv_text -lopencv_face -lopencv_xfeatures2d -lopencv_shape -lopencv_video -lopencv_ximgproc -lopencv_calib3d -lopencv_features2d -lopencv_flann -lopencv_xobjdetect -lopencv_objdetect -lopencv_ml -lopencv_xphoto -lopencv_highgui -lopencv_videoio -lopencv_imgcodecs -lopencv_photo -lopencv_imgproc -lopencv_core -o vo
LatchClassifier.o: latch.o bitMatcher.o
g++ -g -c -std=c++11 `pkg-config --cflags opencv` LatchClassifier.cpp latch.o bitMatcher.o -I/opt/cuda/include/ -I/usr/local/include -L/opt/cuda/lib64 -lcuda -lcudart -L/usr/local/lib -lopencv_stitching -lopencv_superres -lopencv_videostab -lopencv_aruco -lopencv_bgsegm -lopencv_bioinspired -lopencv_cudafeatures2d -lopencv_cudaimgproc -lopencv_ccalib -lopencv_dnn -lopencv_dpm -lopencv_fuzzy -lopencv_line_descriptor -lopencv_optflow -lopencv_plot -lopencv_reg -lopencv_saliency -lopencv_stereo -lopencv_structured_light -lopencv_rgbd -lopencv_surface_matching -lopencv_tracking -lopencv_datasets -lopencv_text -lopencv_face -lopencv_xfeatures2d -lopencv_shape -lopencv_video -lopencv_ximgproc -lopencv_calib3d -lopencv_features2d -lopencv_flann -lopencv_xobjdetect -lopencv_objdetect -lopencv_ml -lopencv_xphoto -lopencv_highgui -lopencv_videoio -lopencv_imgcodecs -lopencv_photo -lopencv_imgproc -lopencv_core -o LatchClassifier.o
demo: drone.mp4 vo
./vo drone.mp4 620 | perl ./driveGnuPlotStreams.pl 12 4 200 4200 200 200 0 0 0 0 0 0 0 0 950x200+960+30 950x200+960+780 950x200+960+280 950x200+960+530 'pitch' 'yaw' 'roll' 'polar translation angle' 'azimuthal translation angle' 'z' 'keypoints' 'matches' '100 * threshold' 'cpu [ms]' 'gpu [ms]' 'defect' 0 0 0 1 1 1 2 2 2 3 3 1
#620
#4400
demo_no_gnuplot: drone.mp4 vo
./vo drone.mp4 620
drone.mp4:
youtube-dl -f 137 https://www.youtube.com/watch?v=wneCezU_VQ4
mv Raw\ FPV\ Training\ Session\ -\ Dirt\ Bike\ Visit\ in\ Park-wneCezU_VQ4.mp4 drone.mp4
#fast.o:
# nvcc -c -lineinfo -O3 -o fast.o fast.cu -gencode arch=compute_30,code=sm_30
latch.o:
nvcc -g -c -lineinfo -Xptxas -v -use_fast_math -O3 -I/usr/local/include -L/usr/local/lib latch.cu -o latch.o -gencode arch=compute_30,code=sm_30 --default-stream per-thread
min: latch.o bitMatcher.o LatchClassifier.o
g++ -g -std=c++11 `pkg-config --cflags opencv` -pthread min.cpp latch.o bitMatcher.o LatchClassifier.o -I/opt/cuda/include -L/opt/cuda/lib64 -lcuda -lcudart -L/usr/local/lib -lopencv_stitching -lopencv_superres -lopencv_videostab -lopencv_aruco -lopencv_bgsegm -lopencv_bioinspired -lopencv_ccalib -lopencv_cudafeatures2d -lopencv_cudaimgproc -lopencv_dnn -lopencv_dpm -lopencv_fuzzy -lopencv_line_descriptor -lopencv_optflow -lopencv_plot -lopencv_reg -lopencv_saliency -lopencv_stereo -lopencv_structured_light -lopencv_rgbd -lopencv_surface_matching -lopencv_tracking -lopencv_datasets -lopencv_text -lopencv_face -lopencv_xfeatures2d -lopencv_shape -lopencv_video -lopencv_ximgproc -lopencv_calib3d -lopencv_features2d -lopencv_flann -lopencv_xobjdetect -lopencv_objdetect -lopencv_ml -lopencv_xphoto -lopencv_highgui -lopencv_videoio -lopencv_imgcodecs -lopencv_photo -lopencv_imgproc -lopencv_core -o min
bitMatcher.o:
nvcc -g -c -lineinfo -Xptxas -v -use_fast_math -O3 -o bitMatcher.o bitMatcher.cu -gencode arch=compute_30,code=sm_30 --default-stream per-thread
clean:
rm vo; rm latch.o; rm bitMatcher.o;
run: vo
./vo
#plot: vo
# ./vo $(video) $(skip) $(w) $(h) | feedgnuplot --stream 0.01 --lines --nopoints --legend 0 pitch --legend 1 yaw --legend 2 roll --xlen 200