From 9af2a37c4ab596b35ac4b17923d251660a979e0c Mon Sep 17 00:00:00 2001 From: Kian-Meng Ang Date: Wed, 21 Sep 2022 22:18:21 +0800 Subject: [PATCH] Fix typos Found via `codespell -L ue,nd,noe` --- HISTORY.rst | 4 ++-- README.md | 6 +++--- README.rst | 6 +++--- README_Japanese.md | 4 ++-- README_Korean.md | 4 ++-- README_Simplified_Chinese.md | 4 ++-- examples/face_distance.py | 2 +- examples/face_recognition_knn.py | 4 ++-- examples/facerec_ipcamera_knn.py | 4 ++-- 9 files changed, 19 insertions(+), 19 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index f970c2ee0..d34ff76ce 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -49,7 +49,7 @@ History 1.1.0 (2017-09-23) ------------------ -* Will use dlib's 5-point face pose estimator when possible for speed (instead of 68-point face pose esimator) +* Will use dlib's 5-point face pose estimator when possible for speed (instead of 68-point face pose estimator) * dlib v19.7 is now the minimum required version * face_recognition_models v0.3.0 is now the minimum required version @@ -57,7 +57,7 @@ History 1.0.0 (2017-08-29) ------------------ -* Added support for dlib's CNN face detection model via model="cnn" parameter on face detecion call +* Added support for dlib's CNN face detection model via model="cnn" parameter on face detection call * Added support for GPU batched face detections using dlib's CNN face detector model * Added find_faces_in_picture_cnn.py to examples * Added find_faces_in_batches.py to examples diff --git a/README.md b/README.md index 23ac8647d..0ea5f7a7b 100644 --- a/README.md +++ b/README.md @@ -260,7 +260,7 @@ import face_recognition image = face_recognition.load_image_file("my_picture.jpg") face_locations = face_recognition.face_locations(image) -# face_locations is now an array listing the co-ordinates of each face! +# face_locations is now an array listing the coordinates of each face! ``` See [this example](https://github.com/ageitgey/face_recognition/blob/master/examples/find_faces_in_picture.py) @@ -270,7 +270,7 @@ You can also opt-in to a somewhat more accurate deep-learning-based face detecti Note: GPU acceleration (via NVidia's CUDA library) is required for good performance with this model. You'll also want to enable CUDA support -when compliling `dlib`. +when compiling `dlib`. ```python import face_recognition @@ -278,7 +278,7 @@ import face_recognition image = face_recognition.load_image_file("my_picture.jpg") face_locations = face_recognition.face_locations(image, model="cnn") -# face_locations is now an array listing the co-ordinates of each face! +# face_locations is now an array listing the coordinates of each face! ``` See [this example](https://github.com/ageitgey/face_recognition/blob/master/examples/find_faces_in_picture_cnn.py) diff --git a/README.rst b/README.rst index 16edc6c13..78889dddd 100644 --- a/README.rst +++ b/README.rst @@ -260,7 +260,7 @@ Automatically find all the faces in an image image = face_recognition.load_image_file("my_picture.jpg") face_locations = face_recognition.face_locations(image) - # face_locations is now an array listing the co-ordinates of each face! + # face_locations is now an array listing the coordinates of each face! | See `this example `__ @@ -272,7 +272,7 @@ detection model. | Note: GPU acceleration (via nvidia's CUDA library) is required for good | performance with this model. You'll also want to enable CUDA support -| when compliling ``dlib``. +| when compiling ``dlib``. .. code:: python @@ -281,7 +281,7 @@ detection model. image = face_recognition.load_image_file("my_picture.jpg") face_locations = face_recognition.face_locations(image, model="cnn") - # face_locations is now an array listing the co-ordinates of each face! + # face_locations is now an array listing the coordinates of each face! | See `this example `__ diff --git a/README_Japanese.md b/README_Japanese.md index 7931e57e3..6cdc6ed3e 100644 --- a/README_Japanese.md +++ b/README_Japanese.md @@ -226,7 +226,7 @@ import face_recognition image = face_recognition.load_image_file("my_picture.jpg") face_locations = face_recognition.face_locations(image) -# face_locations is now an array listing the co-ordinates of each face! +# face_locations is now an array listing the coordinates of each face! ``` 試す場合は[こちらのサンプルコード](https://github.com/ageitgey/face_recognition/blob/master/examples/find_faces_in_picture.py)を参照してください。 @@ -241,7 +241,7 @@ import face_recognition image = face_recognition.load_image_file("my_picture.jpg") face_locations = face_recognition.face_locations(image, model="cnn") -# face_locations is now an array listing the co-ordinates of each face! +# face_locations is now an array listing the coordinates of each face! ``` 試す場合は[こちらのサンプルコード](https://github.com/ageitgey/face_recognition/blob/master/examples/find_faces_in_picture_cnn.py)を参照してください。 diff --git a/README_Korean.md b/README_Korean.md index 3af428787..132d8866f 100644 --- a/README_Korean.md +++ b/README_Korean.md @@ -218,7 +218,7 @@ import face_recognition image = face_recognition.load_image_file("my_picture.jpg") face_locations = face_recognition.face_locations(image) -# face_locations is now an array listing the co-ordinates of each face! +# face_locations is now an array listing the coordinates of each face! ``` [이 예제](https://github.com/ageitgey/face_recognition/blob/master/examples/find_faces_in_picture.py) 를 사용하여 테스트 해 보십시오. @@ -233,7 +233,7 @@ import face_recognition image = face_recognition.load_image_file("my_picture.jpg") face_locations = face_recognition.face_locations(image, model="cnn") -# face_locations is now an array listing the co-ordinates of each face! +# face_locations is now an array listing the coordinates of each face! ``` [이 예제](https://github.com/ageitgey/face_recognition/blob/master/examples/find_faces_in_picture_cnn.py) 를 사용하여 테스트 해 보십시오. diff --git a/README_Simplified_Chinese.md b/README_Simplified_Chinese.md index ece25cd97..e871305b5 100644 --- a/README_Simplified_Chinese.md +++ b/README_Simplified_Chinese.md @@ -246,7 +246,7 @@ import face_recognition image = face_recognition.load_image_file("my_picture.jpg") face_locations = face_recognition.face_locations(image) -# face_locations is now an array listing the co-ordinates of each face! +# face_locations is now an array listing the coordinates of each face! ``` 看 [案例:定位拜登的脸](https://github.com/ageitgey/face_recognition/blob/master/examples/find_faces_in_picture.py) @@ -263,7 +263,7 @@ import face_recognition image = face_recognition.load_image_file("my_picture.jpg") face_locations = face_recognition.face_locations(image, model="cnn") -# face_locations is now an array listing the co-ordinates of each face! +# face_locations is now an array listing the coordinates of each face! ``` 看 [案例:使用卷积神经网络深度学习模型定位拜登的脸](https://github.com/ageitgey/face_recognition/blob/master/examples/find_faces_in_picture_cnn.py) diff --git a/examples/face_distance.py b/examples/face_distance.py index af3bd6253..e3d3e5b1b 100644 --- a/examples/face_distance.py +++ b/examples/face_distance.py @@ -23,7 +23,7 @@ biden_face_encoding ] -# Load a test image and get encondings for it +# Load a test image and get encodings for it image_to_test = face_recognition.load_image_file("obama2.jpg") image_to_test_encoding = face_recognition.face_encodings(image_to_test)[0] diff --git a/examples/face_recognition_knn.py b/examples/face_recognition_knn.py index b16c46d9d..6a70eb5a5 100644 --- a/examples/face_recognition_knn.py +++ b/examples/face_recognition_knn.py @@ -124,7 +124,7 @@ def predict(X_img_path, knn_clf=None, model_path=None, distance_threshold=0.6): raise Exception("Invalid image path: {}".format(X_img_path)) if knn_clf is None and model_path is None: - raise Exception("Must supply knn classifier either thourgh knn_clf or model_path") + raise Exception("Must supply knn classifier either through knn_clf or model_path") # Load a trained KNN model (if one was passed in) if knn_clf is None: @@ -139,7 +139,7 @@ def predict(X_img_path, knn_clf=None, model_path=None, distance_threshold=0.6): if len(X_face_locations) == 0: return [] - # Find encodings for faces in the test iamge + # Find encodings for faces in the test image faces_encodings = face_recognition.face_encodings(X_img, known_face_locations=X_face_locations) # Use the KNN model to find the best matches for the test face diff --git a/examples/facerec_ipcamera_knn.py b/examples/facerec_ipcamera_knn.py index 55623ed8f..c4b154881 100644 --- a/examples/facerec_ipcamera_knn.py +++ b/examples/facerec_ipcamera_knn.py @@ -126,7 +126,7 @@ def predict(X_frame, knn_clf=None, model_path=None, distance_threshold=0.5): For faces of unrecognized persons, the name 'unknown' will be returned. """ if knn_clf is None and model_path is None: - raise Exception("Must supply knn classifier either thourgh knn_clf or model_path") + raise Exception("Must supply knn classifier either through knn_clf or model_path") # Load a trained KNN model (if one was passed in) if knn_clf is None: @@ -156,7 +156,7 @@ def show_prediction_labels_on_image(frame, predictions): :param frame: frame to show the predictions on :param predictions: results of the predict function - :return opencv suited image to be fitting with cv2.imshow fucntion: + :return opencv suited image to be fitting with cv2.imshow function: """ pil_image = Image.fromarray(frame) draw = ImageDraw.Draw(pil_image)