Skip to main content

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

  1. add resize mask technology
  2. 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, 0.75)  # same as above

# show
mask_img.show()

Project details


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.7-py3-none-any.whl (16.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page