⚲
Projet
Général
Profil
Connexion
S'enregistrer
Accueil
Projets
Aide
Recherche
:
Polytech Ge Sous Traitance
Tous les projets
Polytech Projets Ge
»
Polytech Ge Sous Traitance
Aperçu
Activité
Roadmap
Demandes
Gantt
Calendrier
Annonces
Documents
Wiki
Fichiers
Dépôt
Télécharger (425 octets)
Support #14557
» tst2.py
Marouane SOBTI
, 29/11/2022 14:54
import
cv2
import
numpy
as
np
import
glob
img_array
=
[]
for
filename
in
glob
.
glob
(
'C:/Users/HP/Desktop/opncv/*.png'
):
img
=
cv2
.
imread
(
filename
)
height
,
width
,
lqyers
=
img
.
shape
size
=
(
width
,
height
)
img_array
.
append
(
img
)
out
=
cv2
.
VideoWriter
(
'test.avi'
,
cv2
.
VideoWriter_fourcc
(
*
'DIVX'
),
25
,
size
)
for
i
in
range
(
len
(
img_array
)):
out
.
write
(
img_array
[
i
])
out
.
release
()
« Précédent
1
2
3
Suivant »
(2-2/3)
Chargement...