Recherche avancée

Médias (0)

Mot : - Tags -/interaction

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (27)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (3618)

  • 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>