Actions
Support #14557
fermécréation d'une vidéo au ralenti par opencv
Statut:
Closed
Priorité:
Normal
Assigné à:
-
Catégorie:
-
Version cible:
Début:
10/11/2022
Echéance:
% réalisé:
100%
Temps estimé:
(Total: 8:00 h)
Sprint:
Description
L'objectif est de réaliser une vidéo au ralentit (une image par minute) en utilisant la librairie OpenCV
temps estimé 8h
Fichiers
Actions
#1
Mis à jour par Lea DUVIVIER il y a plus de 2 ans
- Version cible mis à Polytech Projets GE - Deuxième Itération 2022
Actions
#2
Mis à jour par Marouane SOBTI il y a plus de 2 ans
import numpy as np
import cv2 as cv
cap = cv.VideoCapture(0)
import cv2 as cv
cap = cv.VideoCapture(0)
- Define the codec and create VideoWriter object
fourcc = cv.VideoWriter_fourcc(*'DIVX')
out = cv.VideoWriter('output.avi', fourcc, 1, (640, 480))
while cap.isOpened():
ret, frame = cap.read()
if not ret:
print("Can't receive frame (stream end?). Exiting ...")
break
#frame = cv.flip(frame, 0) # write the flipped frame
out.write(frame)
cv.imshow('frame', frame)
if cv.waitKey(1) == ord('q'):
break - Release everything if job is finished
cap.release()
out.release()
cv.destroyAllWindows()
Actions
#3
Mis à jour par Marouane SOBTI il y a plus de 2 ans
- Fichier opencvSlowMo.py opencvSlowMo.py ajouté
Actions
#4
Mis à jour par Sebastien LENGAGNE il y a plus de 2 ans
- Copié vers Support #14728: création d'une vidéo au ralenti par opencv ajouté
Mis à jour par Marouane SOBTI il y a plus de 2 ans
Actions