
Recherche avancée
Autres articles (53)
-
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang 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. -
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
Sur d’autres sites (10063)
-
upload video on local host
20 avril 2017, par chan jackwhen 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/
endController
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
endShow
<%= javascript_include_tag 'swfobject' %>
<p><%= notice %></p>
<p>
<strong>Title:</strong>
<%= @internal_information.Title %>
</p>
<p>
<%= video_player({:file => @internal_information.video.url(:medium), :image => @internal_information.video.url(:thumb)}) %>
</p>
<%= link_to 'Edit', edit_internal_information_path(@internal_information) %> |
<%= link_to 'Back', internal_informations_path %> -
Convert a 3d graphic into rgb array
22 avril 2017, par Praveen C. NaikIm 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). -
How to install opencv_contrib on Windows ?
6 mai 2017, par How to codeI want to use the
function createFisherFaceRecognizer()
in python,but when I wrote downmodel = cv2.createFisherFaceRecognizer()
orcv2.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 mismatchfor 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 !