Open Neon22 opened 10 years ago
+1
+1
report some minor typos i found in the examples/SimpleOpenCV, my opencv version is 2.4.9, it doesn't have core/utility.hpp file, this file should be in opencv3, so i changed all the utility.hpp to core.hpp in main.cpp, deepbeliefopencv.h, deepbeliefopencv.cpp files, also the imgproc.hpp's path should be opencv2/imgproc/imgproc.hpp, in the Makefile, -llibtiff, -llibjpeg, -llibjasper, -llibwebp should be -ltiff, -ljpeg, -ljasper and -lwebp. +1 :)
If you have OpenCV 3 installed on a RPi 2 running Raspian Jessie and head to Pete's examples to try SimpleOpenCV, I found a couple of minor main.cpp and Makefile tweaks are needed for it to link.
In main.cpp, change the include section to:
#include "opencv2/opencv.hpp"
// #include "opencv2/highgui.hpp"
// #include "opencv2/core/utility.hpp"
In Makefile, change the OPENCV_DIR to where you installed the v3 package - I used the default so it should be at /home/pi/opencv
but yours may be different:
OPENCV_DIR := /home/pi/opencv
In Makefile again, tweak the OpenCV 3rdparty directory and replace the independent image codecs with opencv_imgcodecs as per:
deepopencv: $(OBJS) $(CXX) -o deepcv $(OBJS) \ -L/usr/lib \ -L/usr/local/lib \ -L$(OPENCV_DIR)/3rdparty/lib \ -ljpcnn \ -lopencv_objdetect \ -lopencv_highgui \ -lopencv_imgproc \ -lopencv_core \ -lopencv_imgcodecs
Hope this helps...and thanks Pete for an excellent DL SDK!
not possible without source of course but add your +1 if you think its a good idea.