Added UIImage to OpenCV and back methods
Added pattern detection alorithms
Pattern detection now works