Ask Your Question

marcelobp's profile - activity

2014-06-20 06:04:27 -0600 asked a question Error while building OpenCV on Raspberry PI

I'm having some problems on the OpenCV installation, I've been following this tutorial https://docs.google.com/document/d/1bgVo24hCK0huoxm9zGC9djL6K0yy0z9GldzSy6SZUQY/pub, however when I'm compiling it I receive an error message:

pi@raspberrypi ~/opencv/build $ make
    [  0%] Built target opencv_core_pch_dephelp
    [  0%] Built target pch_Generate_opencv_core
    [  2%] Built target opencv_core
    [  2%] Built target opencv_ts_pch_dephelp
    [  2%] Built target pch_Generate_opencv_ts
    [  3%] Built target opencv_flann_pch_dephelp
    [  4%] Built target pch_Generate_opencv_flann
    [  4%] Built target opencv_flann
    [  4%] Built target opencv_imgproc_pch_dephelp
    [  4%] Built target pch_Generate_opencv_imgproc
    [  7%] Built target opencv_imgproc
    [  7%] Built target opencv_highgui_pch_dephelp
    [  7%] Built target pch_Generate_opencv_highgui
    [  9%] Built target opencv_highgui
    [  9%] Built target opencv_features2d_pch_dephelp
    [  9%] Built target pch_Generate_opencv_features2d
    [ 10%] Built target opencv_features2d
    [ 11%] Built target opencv_ts
    [ 12%] Built target opencv_perf_core_pch_dephelp
    [ 12%] Built target pch_Generate_opencv_perf_core
    [ 13%] Built target opencv_perf_core
    [ 14%] Built target opencv_test_core_pch_dephelp
    [ 15%] Built target pch_Generate_opencv_test_core
    [ 16%] Built target opencv_test_core
    [ 16%] Built target opencv_test_flann_pch_dephelp
    [ 16%] Built target pch_Generate_opencv_test_flann
    [ 17%] Built target opencv_test_flann
    [ 17%] Built target opencv_perf_imgproc_pch_dephelp
    [ 17%] Built target pch_Generate_opencv_perf_imgproc
    [ 19%] Built target opencv_perf_imgproc
    [ 19%] Built target opencv_test_imgproc_pch_dephelp
    [ 19%] Built target pch_Generate_opencv_test_imgproc
    [ 21%] Built target opencv_test_imgproc
    [ 21%] Built target opencv_perf_highgui_pch_dephelp
    [ 22%] Built target pch_Generate_opencv_perf_highgui
    [ 22%] Built target opencv_perf_highgui
    [ 22%] Built target opencv_test_highgui_pch_dephelp
    [ 22%] Built target pch_Generate_opencv_test_highgui
    [ 23%] Built target opencv_test_highgui
    [ 23%] Built target opencv_perf_features2d_pch_dephelp
    [ 23%] Built target pch_Generate_opencv_perf_features2d
    [ 23%] Built target opencv_perf_features2d
    [ 23%] Built target opencv_test_features2d_pch_dephelp
    [ 23%] Built target pch_Generate_opencv_test_features2d
    [ 23%] Built target opencv_test_features2d
    [ 23%] Built target opencv_calib3d_pch_dephelp
    [ 23%] Built target pch_Generate_opencv_calib3d
    [ 24%] Built target opencv_calib3d
    [ 24%] Built target opencv_perf_calib3d_pch_dephelp
    [ 24%] Built target pch_Generate_opencv_perf_calib3d
    [ 24%] Built target opencv_perf_calib3d
    [ 24%] Built target opencv_test_calib3d_pch_dephelp
    [ 24%] Built target pch_Generate_opencv_test_calib3d
    [ 25%] Built target opencv_test_calib3d
    [ 25%] Built target opencv_ml_pch_dephelp
    [ 25%] Built target pch_Generate_opencv_ml
    [ 26%] Built target opencv_ml
    [ 27%] Built target opencv_test_ml_pch_dephelp
    [ 27%] Built target pch_Generate_opencv_test_ml
    [ 27%] Built target opencv_test_ml
    [ 27%] Built target opencv_video_pch_dephelp
    [ 27%] Built target pch_Generate_opencv_video
    [ 28%] Built target opencv_video
    [ 28%] Built target opencv_perf_video_pch_dephelp
    [ 28%] Built target pch_Generate_opencv_perf_video
    [ 28%] Built target opencv_perf_video
    [ 28%] Built target opencv_test_video_pch_dephelp
    [ 28%] Built target pch_Generate_opencv_test_video
    [ 29%] Built target opencv_test_video
    [ 29%] Built target opencv_legacy_pch_dephelp
    [ 29%] Built target pch_Generate_opencv_legacy
    [ 36%] Built target opencv_legacy
    [ 36%] Built target opencv_test_legacy_pch_dephelp
    [ 37%] Built target pch_Generate_opencv_test_legacy
    [ 38%] Built target opencv_test_legacy
    [ 38%] Built target opencv_objdetect_pch_dephelp
    [ 39%] Built target pch_Generate_opencv_objdetect
    [ 40%] Built target opencv_objdetect
    [ 40%] Built target opencv_perf_objdetect_pch_dephelp
    [ 40%] Built target pch_Generate_opencv_perf_objdetect
    [ 40%] Built target opencv_perf_objdetect
    [ 41%] Built target opencv_test_objdetect_pch_dephelp
    [ 41%] Built target pch_Generate_opencv_test_objdetect
    [ 41%] Built target opencv_test_objdetect
    [ 42%] Built target opencv_photo_pch_dephelp
    [ 42%] Built target pch_Generate_opencv_photo
    [ 42%] Built target opencv_photo
    [ 42%] Built target opencv_perf_photo_pch_dephelp
    [ 42%] Built target pch_Generate_opencv_perf_photo
    [ 42%] Built target opencv_perf_photo
    [ 42%] Built target opencv_test_photo_pch_dephelp
    [ 42%] Built target pch_Generate_opencv_test_photo
    [ 42%] Built target opencv_test_photo
    [ 42%] Built target opencv_gpu_pch_dephelp
    [ 42%] Built target pch_Generate_opencv_gpu
    [ 46%] Built target opencv_gpu
    [ 46%] Built target opencv_perf_gpu_pch_dephelp
    [ 46%] Built target pch_Generate_opencv_perf_gpu
    [ 47%] Built target opencv_perf_gpu
    [ 47%] Built target opencv_test_gpu_pch_dephelp
    [ 47%] Built target pch_Generate_opencv_test_gpu
    [ 49%] Built target opencv_test_gpu
    [ 49%] Built target opencv_ocl_pch_dephelp
    [ 49%] Built target pch_Generate_opencv_ocl
    [ 53%] Built target opencv_ocl
    [ 53%] Built target opencv_perf_ocl_pch_dephelp
    [ 53%] Built target pch_Generate_opencv_perf_ocl
    [ 55%] Built target opencv_perf_ocl
    [ 55%] Built target opencv_test_ocl_pch_dephelp
    [ 55%] Built target pch_Generate_opencv_test_ocl
    [ 57%] Built target opencv_test_ocl
    [ 57%] Built target opencv_nonfree_pch_dephelp
    [ 57%] Built target pch_Generate_opencv_nonfree
    [ 58%] Built target opencv_nonfree
    [ 59%] Built target opencv_perf_nonfree_pch_dephelp
    [ 59 ...
(more)
2014-06-12 06:29:22 -0600 asked a question Facedetect not working from Camera

Hi,

I'm trying to use the camera on my Raspberry Pi to make face detection, however it's not working.

The camera is working normally, but not for face detection, and the face detection works normally but with images.

I'm receiving this message: "Capture from CAM 0 didn't work In image read"

Any suggestions? Thanks

2014-06-12 05:06:26 -0600 commented question Building all the libraries on the Raspberry Pi

Already solved, I just copied the files from "local -D" to "local" and it's working now!

Thanks!

2014-06-11 05:52:40 -0600 commented question Building all the libraries on the Raspberry Pi

Good question, this folder just appeared, I was think it could be normal. I have both "/usr/local/" and "/usr/local -D/", I checked the content of these folders and they are different. So probrably the OpenCV is looking for the libraries inside "/usr/local/" and is actually in "/usr/local -D/".

Is that it?

Maybe when I executed this command, cmake created a folder with this name:

cmake -D CMAKE_BUILD_TYPE=RELEASE -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_OPENGL=ON ..

2014-06-10 05:13:57 -0600 received badge  Editor (source)
2014-06-10 04:34:41 -0600 asked a question Building all the libraries on the Raspberry Pi

I installed the OpenCV on my Raspberry Pi, however I'm receiving some error messages when I do the command :"./build_all.sh" in the Opencv/samples/c folder:

compiling contours.c contours.c:1:39: fatal error: opencv2/imgproc/imgproc_c.h: No such file or direc tory compilation terminated. compiling convert_cascade.c convert_cascade.c:1:43: fatal error: opencv2/objdetect/objdetect.hpp: No such fi le or directory compilation terminated. compiling delaunay.c delaunay.c:1:39: fatal error: opencv2/imgproc/imgproc_c.h: No such file or direc tory compilation terminated. compiling fback_c.c fback_c.c:1:38: fatal error: opencv2/video/tracking.hpp: No such file or directo ry compilation terminated. compiling morphology.c morphology.c:1:39: fatal error: opencv2/highgui/highgui.hpp: No such file or dir ectory compilation terminated. compiling motempl.c motempl.c:1:38: fatal error: opencv2/video/tracking.hpp: No such file or directo ry compilation terminated. compiling polar_transforms.c polar_transforms.c:1:39: fatal error: opencv2/imgproc/imgproc.hpp: No such file or directory compilation terminated. compiling pyramid_segmentation.c pyramid_segmentation.c:1:39: fatal error: opencv2/imgproc/imgproc.hpp: No such f ile or directory compilation terminated. compiling adaptiveskindetector.cpp adaptiveskindetector.cpp:41:39: fatal error: opencv2/contrib/contrib.hpp: No suc h file or directory compilation terminated. compiling bgfg_codebook.cpp bgfg_codebook.cpp:23:33: fatal error: opencv2/core/core.hpp: No such file or dir ectory compilation terminated. compiling blobtrack_sample.cpp blobtrack_sample.cpp:1:45: fatal error: opencv2/video/background_segm.hpp: No su ch file or directory compilation terminated. compiling facedetect.cpp facedetect.cpp:1:43: fatal error: opencv2/objdetect/objdetect.hpp: No such file or directory compilation terminated. compiling find_obj.cpp find_obj.cpp:7:43: fatal error: opencv2/objdetect/objdetect.hpp: No such file or directory compilation terminated. compiling find_obj_calonder.cpp find_obj_calonder.cpp:1:39: fatal error: opencv2/highgui/highgui.hpp: No such fi le or directory compilation terminated. compiling find_obj_ferns.cpp find_obj_ferns.cpp:1:39: fatal error: opencv2/highgui/highgui.hpp: No such file or directory compilation terminated. compiling latentsvmdetect.cpp latentsvmdetect.cpp:1:43: fatal error: opencv2/objdetect/objdetect.hpp: No such file or directory compilation terminated. compiling mser_sample.cpp mser_sample.cpp:5:39: fatal error: opencv2/highgui/highgui.hpp: No such file or directory compilation terminated. compiling mushroom.cpp mushroom.cpp:1:33: fatal error: opencv2/core/core_c.h: No such file or directory compilation terminated. compiling one_way_sample.cpp one_way_sample.cpp:10:39: fatal error: opencv2/imgproc/imgproc.hpp: No such file or directory compilation terminated. compiling smiledetect.cpp smiledetect.cpp:1:43: fatal error: opencv2/objdetect/objdetect.hpp: No such file or directory compilation terminated. compiling tree_engine.cpp tree_engine.cpp:1:29: fatal error: opencv2/ml/ml.hpp: No such file or directory compilation terminated.

I looked for these files, and they are in the paths:

/home/pi/opencv/modules/core/include/opencv2/

/usr/localĀ -D/include/opencv2/

How can I make for it to find these libraries? I think that the opencv in looking for ... (more)