From f5d049f02683e7546df2bb6a76dbe1539a000d3d Mon Sep 17 00:00:00 2001 From: mmkuznecov <43701555+mmkuznecov@users.noreply.github.com> Date: Sun, 20 Jan 2019 19:17:54 +0300 Subject: [PATCH] Update face_recognition.md --- docs/ru/face_recognition.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/ru/face_recognition.md b/docs/ru/face_recognition.md index 3e501ef2..02598ab1 100644 --- a/docs/ru/face_recognition.md +++ b/docs/ru/face_recognition.md @@ -140,7 +140,12 @@ height_or, width_or, depth_or = frame.shape Затем исправляем искажения оригинального изображения и получаем уже его параметры: ```python -frame=ccc.get_undistorted_image(frame,ccc.CLEVER_FISHEYE_CAM_640) +if height_or==240 and width_or==320: + frame=ccc.get_undistorted_image(frame,ccc.CLEVER_FISHEYE_CAM_320) +elif height_or==480 and width_or==640: + frame=ccc.get_undistorted_image(frame,ccc.CLEVER_FISHEYE_CAM_640) +else: + frame=ccc.get_undistorted_image(frame,input("Input your path to the .yaml file: ")) height_unz, width_unz, depth_unz = frame.shape ```