From 7e638cb0b54b4c37bcfdbcc8a8191fa5f986fbfb Mon Sep 17 00:00:00 2001 From: StevenPuttemans Date: Fri, 30 Aug 2013 14:21:11 +0200 Subject: [PATCH] Bugfix 3115: Added not to documentation for python version for facerecognizer interface + white + whitespaces remove --- modules/contrib/doc/facerec/facerec_api.rst | 2 ++ samples/python2/facerec_demo.py | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/modules/contrib/doc/facerec/facerec_api.rst b/modules/contrib/doc/facerec/facerec_api.rst index 9e8170d..3100cfd 100644 --- a/modules/contrib/doc/facerec/facerec_api.rst +++ b/modules/contrib/doc/facerec/facerec_api.rst @@ -70,6 +70,8 @@ Moreover every :ocv:class:`FaceRecognizer` supports the: * **Loading/Saving** the model state from/to a given XML or YAML. +.. note:: When using the FaceRecognizer interface in combination with Python, please stick to Python 2. Some underlying scripts like create_csv will not work in other versions, like Python 3. + Setting the Thresholds +++++++++++++++++++++++ diff --git a/samples/python2/facerec_demo.py b/samples/python2/facerec_demo.py index 1b0adcc..9eeb04e 100755 --- a/samples/python2/facerec_demo.py +++ b/samples/python2/facerec_demo.py @@ -31,6 +31,11 @@ # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. +# ------------------------------------------------------------------------------------------------ +# Note: +# When using the FaceRecognizer interface in combination with Python, please stick to Python 2. +# Some underlying scripts like create_csv will not work in other versions, like Python 3. +# ------------------------------------------------------------------------------------------------ import os import sys -- 2.7.4