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
Προϊόντα κρέατος – Υποχρεωτική η μείωση Νιτρ 15AUG22.png
Άρθρο

 

Ευρωπαϊκή Ένωση / Επισήμανση / FoP τροφίμων / Χρωματική κωδικοποίηση - Nutri-Score :  

  • Η προωθούμενη εναρμόνιση και υποχρεωτική       εφαρμογή στην Ευρωπαϊκή Ένωση

  • Χρήση ενιαίου χρωματικού κώδικα    αξιολόγησης   

  • Δοκιμές εφαρμογής του λογισμικού 

slide 1
slide 2
slide 3
slide 5
slide 6
slide 7
slide 8
slide 9
slide 10
slide12
slide 11
slide 13
slide 14
slide 16
slide 17
slide 18
slide 18
slide 19
slide 20
Εικόνα15
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()