jeudi 25 juin 2020

How to show image which was detected by YOLO on website by using Flask

I am trying to show on my website the detected image that was uploaded by the user and the YOLO algorithm detects objects. I want to show the image with the bounding box on a website. the following code is after detection now I want to pass it to a web server with confidence and Label. how can I do that? I followed this link https://www.youtube.com/watch?v=MAjbzx2zq-c
img, detections = draw_bounding_box(img, FONT, boxes, classes, class_ids, confidences, colors) frame = cv2.imencode('.jpg', img)[1].tobytes() yield(b'--frame\r\n'b'Content-Type: image/jpeg\r\n\r\n' + frame + b'\r\n')




Aucun commentaire:

Enregistrer un commentaire