From 9bd84577914c9b7f573c67786980d5a33099d3c9 Mon Sep 17 00:00:00 2001 From: "Anwar, Malik Aqeel" Date: Wed, 5 Aug 2020 19:51:51 -0400 Subject: [PATCH] Update readme --- mask_the_face.py | 2 ++ readme.md | 11 +++++++++++ 2 files changed, 13 insertions(+) diff --git a/mask_the_face.py b/mask_the_face.py index 58d70a3..b5757b4 100644 --- a/mask_the_face.py +++ b/mask_the_face.py @@ -13,6 +13,8 @@ # 4. Done: Organize and Upload MFR2 dataset # 5. Done: Dlib based detector # 6. Done: Download dlib model +# 7. Readme update with --code etc +# 8. Update website # Command-line input setup parser = argparse.ArgumentParser( diff --git a/readme.md b/readme.md index 9845712..f7384da 100644 --- a/readme.md +++ b/readme.md @@ -47,6 +47,17 @@ python mask_the_face.py --path 'data/office.jpg' --mask_type 'N95' --verbose | verbose | If set to True, will be used to display useful messages during masking | |write_original_image| If used, the original unmasked image will also be saved in the masked image folder along with processed masked image | +### Explanation: +#### --code +the --code argument can be used to apply different type of masks uniformly at random to the images in the dataset. +``` +# Generic format +--code < masktype1 >-< color as hex or texture file path >, < masktype2 >-< color as hex or texture file path>, ... + +# Example +--code cloth-masks/textures/check/check_4.jpg, cloth-#e54294, cloth-#ff0000, cloth, cloth-masks/textures/others/heart_1.png, cloth-masks/textures/fruits/pineapple.png, N95 +``` +The example above will apply 7 different masks, uniform at random, to be applied to the selected face dataset (via --path argument). ## Frequently Asked Questions (FAQ) Click [here](faq.md) to troubleshoot errors faced while installing and running MaskTheFace