Search code examples
c++xcodevideovideo-processingpattern-recognition

Using C++ in xcode for image and video processing


I am studying in the area of image and video processing - specifically in the field of pattern recognition (objects, people etc.). I wish to use a programming language to apply the transformation to images and video (more importantly video). I am thinking of using C++ in Xcode to do this. The algorithms I wanna build I want to take data from the web (e.g. submitted videos) - process them and then give an output. My question has several parts:

(1) Is C++ the best language to do this in? Can this be done in Python? (I'm guessing C++ is faster than Python and can probably handle larger files/more intense algos)

(2) What is the best way for setting up a project for this in xcode - is it a straight (A) Command-line tools "vanilla" project or should I go for (B) a Cocoa application in objective C? (I will need to learn Obj-C)

My short term objective is to write some simple alorithms and see how they work on video. Then to hook this up (at the back end) to a front end web GUI (so I can submit videos to my code). Volumes wont be huge - but file sizes may be substantial.

Any insight will be hugely appreciated.

Max.


Solution

  • If you choose to use C++ (which seems sinsible for that scenario) you should check out these links:

    • IPP - Also usefull for non-Intel processors, especially in combination with the Intel C++ compiler, but it's expensive
    • Intel offers many tools that are usefull for parallelising high performance number crunching (CPU bound stuff), e.g. TBB and OpenMP (I think that one isn't Intel)
    • Maybe OpenCV is usefull for you

    Hope that helps somewhat.