Recherche avancée

Médias (39)

Mot : - Tags -/audio

Autres articles (112)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains 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, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP 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 M9A

    I 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 Niedermayer
    Merge commit ’51ca3cb604a7585a7cff35d4b954794508955c19’
    

    * commit ’51ca3cb604a7585a7cff35d4b954794508955c19’ :
    xcbgrab : Use the correct geometry for the region highlight

    See : 0ae37e460c345a4c76e28256af56931e00c94cb5
    Merged-by : Michael Niedermayer <michaelni@gmx.at>