Re: [pymecavideo] transition qt4 -> qt5 |
[ Thread Index | Date Index | More lists.tuxfamily.org/pymecavideo Archives ]
Bonjour les gens :)heureusement que je regarde les SPAMS des fois... ce message y était...Je regarderais pendant les vacances :)Cela signifie qu'on pourrait avoir du python3/QT5 ? ;) au lieu du python2/qt4... le bindings opencv est-il dispo pur python3 ? (il y a quelques mois, ce n'était pas encore le cas, notamment sous windows)Tout plein de pensées positives.JBLe 24 novembre 2017 à 23:00, Nicolas Pettiaux <nicolas@xxxxxxxxxxx> a écrit :Salut Georges,
Les étudiants de 2è de mon école apprennent à programmer en c++ avec QT
et qtstudio. Il me semble que ce genre de migration serait un bon
exercice à leur soumettre. Je pourrais en parler à mon collègue
(physicien de formation) qui pourrait mettre en œuvre.
Qu'en penses-tu ?
Amitiés,
Nicolas
PS après la réunion de ce mercredi, la conférence educode - edutice aura
plutôt lieu entre le 15 et le 31 août Voir le PV ci-joint
--
*Dr Nicolas Pettiaux*- nicolas@xxxxxxxxxxx**
OpenCV (with FFMPEG) support WinPython doesn’t ship with OpenCV. However is very simple to install it. For Python 2 Download OpenCV for Windows (http://opencv.org/downloads.html) Note: I only tried with OpenCV versions 3.0 and 3.1 but it should work with version2 also. Run the installer which essentially extracts content for a specified folder (put it wherever you want, it really doesn’t matter since you’ll remove it later on); Then navigate to this folder and go to “opencv\build\python\2.7”. Inside this folder you’ll find both x64 and x86 options. Choose it accordingly to your WinPython installation; Inside the previous folder you’ll find a single file “cv2.pyd”. Copy it to “Python\WinPython-32bit-2.7.10.3\python-2.7.10\Lib\site-packages” where “Python\WinPython-32bit-2.7.10.3” is the folder where you installed WinPython. For Python 3 Unfortunately, at the time of this writing, OpenCV does not include binaries for Python 3. But wait! There is a simple workaround too! Go to http://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv. Here you’ll find a list of pre-compiled binaries for Python on Windows. Download the wheel accordingly to your WinPython installation. For example, “opencv_python-3.1.0-cp34-none-win_amd64.whl” means OpenCV 3.1.0, Python 3.4 64 bits; Open you Python console by calling “WinPython Command Prompt.exe” from your WinPython installation; On the console, change dir to where you downloaded the OpenCV binary; Run: pip install opencv_python-3.1.0-cp34-none-win_amd64.whl And that’s it! FFMPEG support Finally, if you want OpenCV with ffmpeg support: Navigate to “opencv\build\bin” (inside the OpenCV extracted folder); You’ll find both “opencv_ffmpeg310_64.dll” and “opencv_ffmpeg310.dll” (this may vary depending on OpenCV version), choose it accordingly to your WinPython installation; Copy the corresponding file to “Python\WinPython-32bit-2.7.10.3\python-2.7.10\”; And that’s it!
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |