master: OpenCV implementation; php branch: obsolete