mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-18 09:04:28 +03:00
remove unused annotate file
This commit is contained in:
parent
b8a74793ca
commit
386dd689f8
@ -116,15 +116,6 @@ class PlusApi:
|
|||||||
logger.error(f"Failed to upload original: {r.status_code} {r.text}")
|
logger.error(f"Failed to upload original: {r.status_code} {r.text}")
|
||||||
raise Exception(r.text)
|
raise Exception(r.text)
|
||||||
|
|
||||||
# resize and submit annotate
|
|
||||||
files = {"file": get_jpg_bytes(image, 640, 70)}
|
|
||||||
data = presigned_urls["annotate"]["fields"]
|
|
||||||
data["content-type"] = "image/jpeg"
|
|
||||||
r = requests.post(presigned_urls["annotate"]["url"], files=files, data=data)
|
|
||||||
if not r.ok:
|
|
||||||
logger.error(f"Failed to upload annotate: {r.status_code} {r.text}")
|
|
||||||
raise Exception(r.text)
|
|
||||||
|
|
||||||
# resize and submit thumbnail
|
# resize and submit thumbnail
|
||||||
files = {"file": get_jpg_bytes(image, 200, 70)}
|
files = {"file": get_jpg_bytes(image, 200, 70)}
|
||||||
data = presigned_urls["thumbnail"]["fields"]
|
data = presigned_urls["thumbnail"]["fields"]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user