Need to do it for both reads
This commit is contained in:
parent
61c06c94b2
commit
70f3283d80
|
@ -122,7 +122,7 @@ def analyze_image(request: Request, image: UploadFile):
|
||||||
file_hash.update(chunk)
|
file_hash.update(chunk)
|
||||||
print ("writing " + buffer_size + " bytes")
|
print ("writing " + buffer_size + " bytes")
|
||||||
f.write(chunk)
|
f.write(chunk)
|
||||||
chunk = image.read(buffer_size)
|
chunk = image.file.read(buffer_size)
|
||||||
print("save complete")
|
print("save complete")
|
||||||
print("analyzing image")
|
print("analyzing image")
|
||||||
result = detector.detect_objects(infile, file_hash.hexdigest() + ".png")
|
result = detector.detect_objects(infile, file_hash.hexdigest() + ".png")
|
||||||
|
|
Loading…
Reference in New Issue