This is a client-side python library to talk to the DT Face Blur API
dt-face-blur-api requires Python 3.5.6+ to run.
pip install git+https://github.com/detecttechnologies/dt-face-blur-api.git
from dt_face_blur_api import FaceBlurAPI
fb = FaceBlurAPI(
api_url="<URL of the API>",
username="<Username>",
password="<Password>"
)
img = fb.blur_path("<path to an image>") # Opens and runs inference on image stored in the disk
img2 = fb.blur_np(img_arr) # Runs inference on a numpy array
img3 = fb.blur_path("<path to an image>", max_object_size=50) # set max_object_size as an optional parameter to limit max. permissible blur size w.r.t image size