
Recherche avancée
Médias (3)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (55)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Use, discuss, criticize
13 avril 2011, parTalk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
A discussion list is available for all exchanges between users.
Sur d’autres sites (9150)
-
Speed up reading video frames from camera with Opencv
19 septembre 2020, par Tuyen Vo QuangCurrently, i have my application implemented in Python to read camera frames via USB. I use Opencv, but for camera with 60fps and 1920x1080 resolution, i could not capture the this speed. I try something : cv2.VideoCapture(0, cv2.CAP_FFMPEG), but i could not the frames (capture read returns False). Could you please suggest any solutions or ways to improve the overall speed or even processing them in GPU.


# Opencv 3.4.9 & Python 3.6.9
 import cv2 
 capture = cv2.VideoCapture(0, cv2.CAP_FFMPEG)

 while True:
 ret, frame = capture.read()
 if ret:
 cv2.imshow('Demo', frame)
 cv2.waitKey(1)



Opencv is built from source :


#!/usr/bin/env bash

set -e

VERSION='3.4.9'
DOWNLOAD_URL="https://github.com/opencv/opencv/archive/${VERSION}.zip"
CONTRIB_DOWNLOAD_URL="https://github.com/opencv/opencv_contrib/archive/${VERSION}.zip"
CURRENT_DIR="$(pwd)"
config_opencv_with_cuda() {
 cmake -D CMAKE_BUILD_TYPE=RELEASE \
 -D CMAKE_INSTALL_PREFIX=/usr/local \
 -D INSTALL_PYTHON_EXAMPLES=OFF \
 -D WITH_CUDA=ON \
 -D ENABLE_FAST_MATH=1 \
 -D CUDA_FAST_MATH=1 \
 -D WITH_CUBLAS=1 \
 -D WITH_V4L=ON \
 -D WITH_FFMPEG=ON \
 -D WITH_GSTREAMER=ON \
 -D BUILD_opencv_cnn_3dobj=OFF \
 -D BUILD_opencv_dnn_modern=OFF \
 -D OPENCV_EXTRA_MODULES_PATH=$CURRENT_DIR/opencv_contrib-$VERSION/modules \
 -D BUILD_DOCS=OFF \
 -D BUILD_PERF_TESTS=OFF \
 -D BUILD_TESTS=OFF \
 -D BUILD_EXAMPLES=OFF ..
}
echo 'Uninstalling pip installation'
pip3 uninstall opencv-python opencv-contrib-python

echo 'Installing dependencies'
apt-get update && apt-get install -y \
 build-essential cmake pkg-config \
 libjpeg-dev libtiff5-dev libpng12-dev \
 libavcodec-dev libavformat-dev libswscale-dev libv4l-dev \
 libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \
 libxvidcore-dev libx264-dev \
 libgtk2.0-dev libgtk-3-dev \
 gfortran

wget -O opencv.zip "${DOWNLOAD_URL}"
wget -O opencv_contrib.zip "${CONTRIB_DOWNLOAD_URL}"
unzip opencv.zip && unzip opencv_contrib.zip
cd opencv-$VERSION
mkdir build
cd build

if [[ -d /usr/local/cuda ]]; then
 config_opencv_with_cuda
else
 config_opencv_without_cuda
fi

make -j $(nproc)
make install
ldconfig



-
Revision bac9beff72 : Merge "Fix active_map speed 6."
8 août 2014, par Alex ConverseMerge "Fix active_map speed 6."
-
Revision 998cff6165 : Merge "Added a rt speed 12"
16 juillet 2014, par Yaowu XuMerge "Added a rt speed 12"