Skip to content

Instantly share code, notes, and snippets.

@johnolafenwa
Created February 2, 2021 10:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnolafenwa/c56106423604d40ca56921d06bf4865b to your computer and use it in GitHub Desktop.
Save johnolafenwa/c56106423604d40ca56921d06bf4865b to your computer and use it in GitHub Desktop.
from deepstack import ServerConfig, Detection
config = ServerConfig("http://localhost:80")
detection = Detection(config,name="openlogo")
response = detection.detectObject(r"images/fedex.jpg",output="fedex_new.jpg")
for obj in response:
print("Name: {}, Confidence: {}".format(obj.label, obj.confidence))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment