out = cv2.VideoWriter("output_video.mp4", cv2.VideoWriter_fourcc(*"mp4v"), 30, (frame.shape[1], frame.shape[0])) while video.isOpened(): ret, frame = video.read() if not ret: break results = model(frame) for box in results.boxes: x1, y1, x2, y2, conf, cls = box.xyxy[0], box.conf, box.cls label = f"{results.names[int(cls)]} {conf:.2f}" cv2.rectangle(frame, (int(x1), int(y1)), (int(x2), int(y2)), (0, 255, 0), 2) cv2.putText(frame, label, (int(x1), int(y1) - 10), cv2.FONT_HERSHEY_SIMPLEX, 0.5, (255, 255, 255), 2) out.write(frame) video.release() out.release() out = cv2.VideoWriter("output_video.mp4", cv2.VideoWriter_fourcc(*"mp4v"), 30, (frame.shape[1], frame.shape[0])) while video.isOpened(): ret, frame = video.read() if not ret: break results = model(frame) for box in results.boxes: x1, y1, x2, y2, conf, cls = box.xyxy[0], box.conf, box.cls label = f"{results.names[int(cls)]} {conf:.2f}" cv2.rectangle(frame, (int(x1), int(y1)), (int(x2), int(y2)), (0, 255, 0), 2) cv2.putText(frame, label, (int(x1), int(y1) - 10), cv2.FONT_HERSHEY_SIMPLEX, 0.5, (255, 255, 255), 2) out.write(frame) video.release() out.release()
top of page
Food Allergy.
GlutenFreeFB
gliadin-glutenin-gluten
autoimmune-response-to-gluten
11949849771043985234traffic_light_red_dan_ge_01_svg_med
Anchor 1

Σημείωση :  Το περιεχόμενο  αυτού του εγγράφου ( σελίδας ) δεν  υπέχει θέση Παροχής Υπηρεσιών  και ουδεμία ευθύνη  φέρει ο συντάκτης έναντι ουδήποτε  για την εγκυρότητά του .  Για υπέυθυνη πληροφ'ορηση επικόινωνείστε με την  Fqt-Consulting 

Συντάκτης :                                                                                                    

Βασίλειος Τσουκαλάς                                                                                         

Χημικός Τροφίμων (PhD)-  Fqt-Consulting -Τεχνικός Σύμβουλος                                                                                                                                                                                                                       

Βεβαιώστε  αποδοχή  της πολιτικής απορρήτου και των όρων χρήσης 

ΑΠΟΔΟΧΗ
ΑΠΟΡΡΙΨΗ

Ο Ιστότοπος δεν έχει επαγγελματικό / εμπορικό χαρακτήρα -

Δεν φιλοξενεί  διαφημίσεις 

bottom of page
out = cv2.VideoWriter("output_video.mp4", cv2.VideoWriter_fourcc(*"mp4v"), 30, (frame.shape[1], frame.shape[0])) while video.isOpened(): ret, frame = video.read() if not ret: break results = model(frame) for box in results.boxes: x1, y1, x2, y2, conf, cls = box.xyxy[0], box.conf, box.cls label = f"{results.names[int(cls)]} {conf:.2f}" cv2.rectangle(frame, (int(x1), int(y1)), (int(x2), int(y2)), (0, 255, 0), 2) cv2.putText(frame, label, (int(x1), int(y1) - 10), cv2.FONT_HERSHEY_SIMPLEX, 0.5, (255, 255, 255), 2) out.write(frame) video.release() out.release()