sdk for mask
Project description
image-obfuscation-sdk
an obfuscation server contains two parts. one is inference, another is mask
this repo stands for the mask part standalone SDK
TODO
- add resize mask technology
- more lightweight API, such as numpy-op directly instead of PIL-op
How to
from masksdk.call_infer_and_mask import mask_one_image, ModelName, MaskName
# conf
infer_host = 'your_ip:your_port'
# mask in local and infer in server
raw_img_file = 'path_to_your_image_file/image_file_name.jpg'
mask_img = mask_one_image(infer_host, raw_img_file, [ModelName.face_ai, ModelName.plate_ai], MaskName.blur, 0.5, 0.75)
# mask_img = mask_one_image(infer_host, raw_img_file, [0, 1],5 , 0.5) # same as above
# show
mask_img.show()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
masksdk-1.0.3-py3-none-any.whl
(16.7 kB
view hashes)