MacOS and OpenCV

Morning SO.

I would like to compile openCV so that it works on capturing a webcam using Qt 4.7. For this purpose, OpenCV must be compiled for a 64-bit system.

So, I tried 3 compilations:

  • Compiling from source using cmake:

    sudo cmake -G "Unix Makefiles" . 

    it works, but I cannot upload the video to a file using cvCreateVideoWriter: the output file is empty.

  • using macports:

     sudo port install opencv 

    This is not so cool because it depends on gtk2, ffmpeg and libX .. and there is no image.

  • using compiled infrastructure

    The structure is compiled for a 32-bit system only.

Does anyone have any ideas?

+6
opencv macos
source share
2 answers

Using opencv- cocoa does the trick!

http://code.google.com/p/opencv-cocoa/

+3
source share

I think CMake is the best choice. Your problem with cvCreateVideoWriter is probably due to a missing video codec.

0
source share

All Articles