
Recherche avancée
Médias (39)
-
Stereo master soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
ED-ME-5 1-DVD
11 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
1,000,000
27 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Demon Seed
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Four of Us are Dying
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Corona Radiata
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (112)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)
Sur d’autres sites (15150)
-
Anomalie #4543 : Accessibilité des chargements ajax (live regions)
4 septembre 2020, par nicod _Si sur le site de cette région, ya pas mal d’ajax qui se recharge "tout seul" sans interaction, possible oui ça va pas du tout,
Non non, ce sont les cas classiques d’utilisation "de base" : formulaires, et listes de résultats avec paginations.
-
OpenCV - motion detection in large video files
18 décembre 2023, par M9AI have large video files (over a few GB each) that I am trying detect motion on. I am using fairly basic OpenCV code in python with ROI to detect motion in a certain area of the video only. This works absolutely fine but takes absolutely ages to process large files. Is there any way to speed things up ? I am simply just checking to see which file has motion detected in it and will not be outputting a video. The moment the first motion is detected the rest of the file is not checked.


import sys
import cv2

video_path = “video.mp4”

capture = cv2.VideoCapture(video_path)

# Set the first frame as the reference background
_, background = capture.read()

# Define the region of interest (ROI)
x, y, w, h = 1468, 1142, 412, 385
roi = (x, y, x + w, y + h)

while capture.isOpened():
 ret, frame = capture.read()

 if not ret:
 break

 # Extract the region of interest from the current frame
 frame_roi = frame[y:y + h, x:x + w]

 # Calculate the absolute difference between the ROI and the background
 diff = cv2.absdiff(background[y:y + h, x:x + w], frame_roi)
 gray = cv2.cvtColor(diff, cv2.COLOR_BGR2GRAY)
 _, thresh = cv2.threshold(gray, 30, 255, cv2.THRESH_BINARY)

 # Check if motion is detected in the ROI (adjust threshold as needed)
 if cv2.countNonZero(thresh) > 75:
 print("YES")
 break

# Release the video capture object
capture.release()



-
Merge commit ’51ca3cb604a7585a7cff35d4b954794508955c19’
15 février 2015, par Michael NiedermayerMerge commit ’51ca3cb604a7585a7cff35d4b954794508955c19’
* commit ’51ca3cb604a7585a7cff35d4b954794508955c19’ :
xcbgrab : Use the correct geometry for the region highlightSee : 0ae37e460c345a4c76e28256af56931e00c94cb5
Merged-by : Michael Niedermayer <michaelni@gmx.at>