dexStap
Yazar
- Katılım
- 28 Ocak 2022
- Mesajlar
- 57
- Tepkime puanı
- 134
- Puanları
- 350
Python'da OpenCV ile yapılmış basit bir video birleştirme programı
Python:
import cv2
video1 = cv2.VideoCapture("dsa.mp4")
video2 = cv2.VideoCapture("asd.mp4")
while True:
ret1, resim1 = video1.read()
ret2, resim2 = video2.read()
resim2=cv2.resize(resim2, (600,600))
resim1[0:600,0:600] = resim2
cv2.imshow("OpenCV ile Video Birlestirme",resim1)
cv2.waitKey(25)