Recherche avancée

Médias (91)

Autres articles (77)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (7895)

  • Using OpenCV on 32-bit XP

    14 novembre 2016, par Aleksandar Rakić

    Is it possible to run OpenCV version 3.0.0 on 32-bit XP ?

    I have successfully compiled code on Win 8.1 64-bit platform but it won’t run on the other computer.

    The code I run is below (it’s only for testing purposes)

    package opencvtest;

    import java.awt.Image;
    import java.awt.image.BufferedImage;
    import java.awt.image.DataBufferByte;
    import javax.swing.ImageIcon;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import org.opencv.core.*;
    import org.opencv.videoio.VideoCapture;
    import org.opencv.videoio.Videoio;

    public class OpenCVtest {


     private JFrame frame;
     private JLabel imageLabel;

    public static void main(String[] args) {
       OpenCVtest app = new OpenCVtest();
       app.initGUI();
       app.runMainLoop(args);
     }

     private void initGUI() {
       frame = new JFrame("Camera Input Example");  
       frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);  
       frame.setSize(400,400);  
       imageLabel = new JLabel();
       frame.add(imageLabel);
       frame.setVisible(true);      
     }

     public static BufferedImage bufferedImage(Mat m) {


       int type = BufferedImage.TYPE_BYTE_GRAY;
       if (m.channels() > 1) {
           type = BufferedImage.TYPE_3BYTE_BGR;
       }
       BufferedImage image = new BufferedImage(m.cols(), m.rows(), type);

       m.get(0, 0, ((DataBufferByte)image.getRaster().getDataBuffer()).getData());
       return image;

     }

     private void runMainLoop(String[] args) {
       //ImageProcessor imageProcessor = new ImageProcessor();
       System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
       System.out.println("Welcome to OpenCV version " + Core.VERSION);
       Mat webcamMatImage = new Mat();
       System.out.println("Mat " + webcamMatImage);
       Image tempImage;
       VideoCapture capture = new VideoCapture("Highway.mp4");
       System.out.println("Capture " + capture);
       if(!capture.isOpened()){
           System.out.println(capture.open("D:\\AleksandarRakic\\Java Projects\\mavenproject1\\Highway.mp4")?"Otvorio":"Nije otvorio");
       }
       capture.set(Videoio.CAP_PROP_FRAME_WIDTH,320);
       capture.set(Videoio.CAP_PROP_FRAME_HEIGHT,240);

       if( capture.isOpened()){  
           while (true){  
               capture.read(webcamMatImage);
                   if( !webcamMatImage.empty() ){
                       int type = BufferedImage.TYPE_BYTE_GRAY;
                       if (webcamMatImage.channels() > 1) {
                           type = BufferedImage.TYPE_3BYTE_BGR;
                       }
                       BufferedImage image = new BufferedImage(webcamMatImage.cols(), webcamMatImage.rows(), type);

                       webcamMatImage.get(0, 0, ((DataBufferByte)image.getRaster().getDataBuffer()).getData());

                       tempImage= image;
                       ImageIcon imageIcon = new ImageIcon(tempImage, "Captured video");
                       imageLabel.setIcon(imageIcon);
                       frame.pack();  //this will resize the window to fit the image
                   }  
                   else{
                       System.out.println(" -- Frame not captured -- Break!");
                       break;  
                   }
           }
       }
       else{
           System.out.println("Couldn't open capture.");
       }
     }

    }

    When I run it on XP, VideoCapture constructor fails to open the video designated. From my understanding, opencv uses it’s own ffmpeg .dll as a codec. Is this true ?

    If not, is it using the codec I have from K-Lite cp ?

    Finally, could anything else be wrong ?

    My %path% variable contains the locations to opencv_ffmpeg300.dll and openvc_java300.dll on WinXP. I also added the following to NetBeans run parameter

    -Djava.library.path="C :\opencv\build\x86\vc12\bin ;C :\opencv\build\java\x86"

  • Determining Icecast2 version in current repository

    6 juillet 2016, par dbmitch

    I’ve been playing with streaming audio to icecast server from a Raspberry Pi 3 running Raspbian Jessie Lite. In an old post on the Raspberry Pi Forum a user pointed out the solution to streaming from ffmpeg to icecast was to use the -legacy_icecast 1 parameter

    The reason was

    "that Icecast2 from the repository is version 2.3.2"

    Now I’ve found a command that tells me the latest version available in the repository is 2.4.0-1.1+deb8u1

    The question I have is two part :

    1. How do I tell what version is in my current build ?
    2. If I want to use a newer icecast version in my compiled ffmpeg
      version or the currently installed avconv, will I need to recompile
      either or both, or will they use the new icecast automatically ?

    Thanks for any pointers

  • Qt 5.2 / OpenCV 2.4.8 - Can’t open video files via VideoCapture

    4 août 2015, par Zamahra

    I have a big problem that i can’t solve by myself. OpenCV itself works fine, but i’m not able to load videos. Here’s my code :

    PRO- File

    QT       += core gui

    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

    TARGET = videoredux
    TEMPLATE = app

    INCLUDEPATH += C:/OpenCV/opencv_bin/install/include
    LIBS += -LC:\\OpenCV\\opencv_bin\\bin \
       libopencv_core248d \
       libopencv_highgui248d \
       libopencv_imgproc248d \
       libopencv_features2d248d \
       libopencv_calib3d248d \
       libopencv_video248d \


    SOURCES += main.cpp\
           mainwindow.cpp

    HEADERS  += mainwindow.h

    FORMS    += mainwindow.ui

    and the MainWindow Class :

    #include "mainwindow.h"
    #include "ui_mainwindow.h"
    #include <qfiledialog>
    #include <iostream>
    #include
    #include <opencv2></opencv2>core/core.hpp>
    #include <opencv2></opencv2>highgui/highgui.hpp>
    #include <opencv2></opencv2>imgproc/imgproc.hpp>
    #include <opencv></opencv>cv.h>


    MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
    {
       ui->setupUi(this);
       ui->videoStatusLabel->setText("Kein Video geladen.");

       // SIGNALS &amp; SLOTS

       QObject::connect(ui->chooseVideoButton,SIGNAL(clicked()),
                    this,SLOT(chooseVideo()));
       QObject::connect(ui->startButton,SIGNAL(clicked()),
                    this,SLOT(startProcess()));

    }

    void MainWindow::chooseVideo(){

       QString fileName = QFileDialog::getOpenFileName(this,
            tr("Open Video"), "/home", tr("Video Files (*.avi *.mp4 *.mpeg *.mpg)"));
       qDebug() &lt;&lt; "Path:" &lt;&lt; fileName;
       ui->videoStatusLabel->setText(fileName);
    }

    void MainWindow::startProcess(){
       QString videoPath = ui->videoStatusLabel->text();
       QFileInfo video(videoPath);
       if(video.exists()){
           const std::string path = videoPath.toUtf8().constData();
           cv::VideoCapture capture(path);
           cv::Mat frame;

           if(!capture.isOpened()){
               qDebug() &lt;&lt; "Error, video not loaded";
           }

           cv::namedWindow("window",1);
           while(true)
           {
               bool success = capture.read(frame);
               if(success == false){
                   break;
               }
               cv::imshow("window",frame);
               cv::waitKey(20);
           }
           cv::waitKey(0);
       }
       else{
           qDebug() &lt;&lt; "Error, File doesn't exist";
       }
    }
    </iostream></qfiledialog>

    The paths are correct, I tried many different video formats but he never loads the videos. I’m running Qt on a Windows 8 machine and i have “K-Lite Codec Pack 10.2.0 Basic” and ffmpeg installed. The videos are playing properly with my video players. I also tried to copy the .dll to the working directory, searched for opencv dll’s in the system32 directory and rebuild OpenCV with mingw on this computer. I know that many people have the same problems, but none of their suggestions solved it. Does anyone know how to solve this problem ?

    Thank you very much !

    Nadine

    ----UPDATE---- I still can’t open video files, so I programmed the application on a Windows7 64-Bit system. It worked fine, but when I try to open the application on a Windows8 computer it still can’t open the file. It doesn’t matter which codecs are installed, because it generally runs on every Windows7 computer and fails on every Windows8 computer.. The same for older OpenCV-Versions. Is there a general problem with OpenCV and Windows8 ?