From b0189248d78231c6b4cac738513d3f223fd1052e Mon Sep 17 00:00:00 2001 From: map9959 Date: Mon, 25 Nov 2024 12:49:06 -0500 Subject: [PATCH] update CONTRIBUTING.md and README.md for new users --- CONTRIBUTING.md | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b83a390..a15e8c3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -27,7 +27,7 @@ Then, run: ``` $ pip install -U setuptools -$ pip install -r requirements-test.txt +$ pip install -r requirements-dev.txt $ pip install -e . ``` diff --git a/README.md b/README.md index 4ff8147..4f7ed00 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ cropper = Cropper() cropped_array = cropper.crop('portrait.png') # Save the cropped image with PIL if a face was detected: -if cropped_array: +if cropped_array is not None: cropped_image = Image.fromarray(cropped_array) cropped_image.save('cropped.png') ~~~