Recherche avancée

Médias (91)

Autres articles (111)

  • Changer son thème graphique

    22 février 2011, par

    Le thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
    Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
    Modifier le thème graphique utilisé
    Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
    Il suffit ensuite de se rendre dans l’espace de configuration du (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Initialisation de MediaSPIP (préconfiguration)

    20 février 2010, par

    Lors de l’installation de MediaSPIP, celui-ci est préconfiguré pour les usages les plus fréquents.
    Cette préconfiguration est réalisée par un plugin activé par défaut et non désactivable appelé MediaSPIP Init.
    Ce plugin sert à préconfigurer de manière correcte chaque instance de MediaSPIP. Il doit donc être placé dans le dossier plugins-dist/ du site ou de la ferme pour être installé par défaut avant de pouvoir utiliser le site.
    Dans un premier temps il active ou désactive des options de SPIP qui ne le (...)

Sur d’autres sites (9241)

  • How to install opencv_contrib on Windows ?

    6 mai 2017, par How to code

    I want to use the function createFisherFaceRecognizer() in python,but when I wrote down model = cv2.createFisherFaceRecognizer() or cv2.face.createFisherFaceRecognizer()
    Error will occurs :

    Traceback (most recent call last) :
    File "C :\Users\Administrator\Desktop\My projects\test\RecognizeMe.py", line 5, in
    model = cv2.face.createFisherFaceRecognizer()
    AttributeError : ’module’ object has no attribute ’face’

    I referenced the methods online and found that I should install opencv_contrib.But I was stucked when I was configureing the opencv using CMake.
    Error :

    CMake Error at cmake/OpenCVUtils.cmake:895 (file) : file DOWNLOAD
    HASH mismatch

    for file: [E:/opencv-3.1.0/sources/opencv-3.1.0/3rdparty/ffmpeg/downloads/35fe6ccdda6d7a04e9056b0d73b98e76/opencv_ffmpeg_64.dll]
     expected hash: [35fe6ccdda6d7a04e9056b0d73b98e76]
       actual hash: [5171a37169c5e695c556c85dc3103d13]
            status: [28;"Timeout was reached"]

    Call Stack (most recent call first) : 3rdparty/ffmpeg/ffmpeg.cmake:15
    (ocv_download) cmake/OpenCVFindLibsVideo.cmake:206 (include)
    CMakeLists.txt:536 (include)

    CMake Error at cmake/OpenCVUtils.cmake:899 (message) : Failed to
    download opencv_ffmpeg_64.dll. Status=28 ;"Timeout was reached" Call
    Stack (most recent call first) : 3rdparty/ffmpeg/ffmpeg.cmake:15
    (ocv_download) cmake/OpenCVFindLibsVideo.cmake:206 (include)
    CMakeLists.txt:536 (include)

    How to solve this problem ?Thank you for your answer !

  • Convert a 3d graphic into rgb array

    22 avril 2017, par Praveen C. Naik

    Im working on a project that has 3d led cube (256*256*256).What software do i use to design the 3D model and for projecting the same on the LED cube.The LED used is RGB but the answer need not be for RGB. Even monochromatic LED is also fine.
    Ive tried checking for MATLAB , FFMPG , OPENCV and AUTOCAD.But none of then help.

    Objective : CREATE 3D MODEL => GENERATE MATRIX/ARRAY of colors => Project the matrix onto LED cube.
    The generator has to be dynamic such that any changes in to 3d model should reflect on the LED cube.Any well known simulator as such is encouraged.Please count on the above mentioned software if they can do the same, image processing through matlab/opencv is new for me.

    Input file : graphic 3D model drawn.
    Output file : array of representation of color(any).

  • upload video on local host

    20 avril 2017, par chan jack

    when i upload video on local host have error #Unable to detect any supported library#

    @internal_information = InternalInformation.new(internal_information_params)

    if @internal_information.update(internal_information_params)

    respond_to do |format|

    this is my code below

    Model

    class InternalInformation < ApplicationRecord
     has_attached_file :video , styles: {
                                         :medium => { :geometry => "640x480", :format => 'mp4' },
                                         :thumb => { :geometry => "100x100#", :format => 'jpg', :time => 10 }
                                     }, :processors => [:transcoder]
     validates_attachment_content_type :video, content_type: /\Avideo\/.*\Z/
    end

    Controller

    def create
    @internal_information = InternalInformation.new(internal_information_params)

    respond_to do |format|
     if @internal_information.save
       format.html { redirect_to @internal_information, notice: 'Internal information was successfully created.' }
       format.json { render :show, status: :created, location: @internal_information }
     else
       format.html { render :new }
       format.json { render json: @internal_information.errors, status: :unprocessable_entity }
         end
       end
     end

     # PATCH/PUT /internal_informations/1
     # PATCH/PUT /internal_informations/1.json
     def update
    respond_to do |format|
     if @internal_information.update(internal_information_params)
       format.html { redirect_to @internal_information, notice: 'Internal information was successfully updated.' }
       format.json { render :show, status: :ok, location: @internal_information }
     else
       format.html { render :edit }
       format.json { render json: @internal_information.errors, status: :unprocessable_entity }
         end
       end
     end

    Show

    <%= javascript_include_tag 'swfobject' %>
    <p>&lt;%= notice %></p>

    <p>
     <strong>Title:</strong>
     &lt;%= @internal_information.Title %>
    </p>

    <p>
     &lt;%= video_player({:file => @internal_information.video.url(:medium), :image => @internal_information.video.url(:thumb)}) %>
    </p>

    &lt;%= link_to 'Edit', edit_internal_information_path(@internal_information) %> |
    &lt;%= link_to 'Back', internal_informations_path %>