I am very new to the Raspberry Pi. I am having Raspberry Pi 4 (ARM 32-bit hard-float) and Raspbian. I am having Basler Camera (GigE Interface) and wanted to use it in my Python-OpenCV script. I have already managed to get videos using a pylon viewer in Raspberry pi. How I can install PyPylon in my Raspberry PI?
Not sure if you figured this out. It looks like in the last 6 months or so Basler added Linux support to pypylon. Pypylon is the unofficial python wrapper for the C++ based SDK which allows you to develop applications for Basler GigE cameras.
before installing Pypylon, make sure you are using python 3 (they don't support 2.7 anymore) and have installed and fully updated pip. If you have captured images it sounds like you have pylon viewer working so you know the camera drivers are installed properly.
Here is the link to the pypylon binaries: https://github.com/Basler/pypylon/releases there are also some instructions on gitub for building from source which requires swig. When I set up my system pypylon was not available on linux yet so i have not done this process yet. It's been a month since you posted so if you have worked this out, i'd be interested in knowing how it went. I would like to do the same thing.
Related
I am trying to create an application on Qt 6.4 for facial recognition. For this, I want to use OpenCV4. I am using a widget-based application with qmake on QtCreator.
How am I supposed to use OpenCV in this application? I have installed OpenCV using brew on the terminal. What exactly am I supposed to do now?
I have a Mac M2 chip running MacOS 12.5. All the tutorials on the internet are on the outdated versions of Qt and OpenCV which are not working on the current version.
I am having trouble trying to install OpenCV correctly and configure it with Netbeans.
One of my University units is using Visual Studio with OpenCV but I do not own a Windows PC so need to install OpenCV on my Mac OSX 10.12.3 and configure it to work with netbeans in a C++ project.
I have explored many avenues to do this but can't seem to come to a solution.
If someone could provide a step by step guide, that would be very helpful. Ideally I would like the most recent version of OpenCV.
Option 1
Install Oracle VirtualBox for free on your Mac and then install Windows in a virtual machine. It is a single file on your Mac so you can remove all that ugly Microsoft stuff as soon as you finish your class. You can run the virtual machine at the same time as macOS (it is not dual boot and doesn't mess with your boot sector) and copy and paste between the two, share files between the two and use networking from the virtual machine.
Option 2
Get a free Amazon EC2 Windows instance and run your OpenCV and NetBeans on there. You can connect from home using RDP from your Mac and also from school so your work is always accessible.
Option 3
Install homebrew on your Mac, then install OpenCV and NetBeans with
brew install opencv
brew install Caskroom/cask/netbeans
Then configure the two to work together as per this post.
Ok, just got my first Raspberry pi (3). Went on to install Opencv 3.1.0 using Adrian's guide:
How to Install Opencv 3 on Raspbian Jessie
Installed OpenCV WITH CONTRIB packages as I knew I would need them.
So OpenCV is working fine now. The issue is when I try to use SIFT:
"'module' object has no attribute 'xfeatures2d'"
I did and still do everything by the book, including working on 'cv' environment etc.
I tried checking the site-packages dir of both the python dir and the 'cv' env dir and couldn't find any mention of 'contrib' or 'xfeatures2d'.
Maybe that's the problem? How can I check that the contrib packages were actually compiled with OpenCV?
Thanks in advance.
Because u installed the latest version in OpenCV where they removed sift and surf, I am not sure how they substitute them, anyway u have to install older version of opencv 3.4.2.16 also make sure that opencv contrib of the same version is installed, thats the last working version working with sift/surf not sure if there are special versions for raspberry pi
I'm trying to install Tensorflow on Raspberry Pi. The OS is Ubuntu Mate, python2.7 and PIP version is 7.1.2
When I run this
pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
it tells that
"tensorflow-0.5.0... is not a supported wheel on this platform."
Is it possible to install Tensorflow on Raspberry?
And someone knows what I'm missing?
Raspberry Pi is a 32-bit architecture, and the TensorFlow program was made for a 64-bit.
I am not sure how well A Raspberry Pi can handle it, but you could install a virtual machine and run the TensorFlow inside there.
Maybe the newer generations of the Rasberry Pi could handle this a bit better, but the original ones, will probably struggle to run this setup.
You could do the training on a more powerful machine and just run the learned machine on the Rasberry Pi, that might be feasible in terms of computing power.
It is now possible to install Tensorflow on Raspberry Pi. There are detailed build instructions at https://github.com/samjabrahams/tensorflow-on-raspberry-pi as well as an unofficial downloadable build.
x86 is for intel-like cpu and 64 is for 64 bits that's not Raspberry pi's hardware...
I'm trying to get VideoCapture working with OpenCV. The video I'm trying to load is in XVID format (checked it with VideoCapture::get(CV_CAP_PROP_FOURCC)). It works fine, but whenever I try to get the video framerate (VideoCapture::get(CV_CAP_PROP_FPS)) I get -nan.
I've used the same video and the same code on another computer (at uni, they have a custom Debian installation) and I can confirm that the framerate info is there (it works fine there). I read somewhere that Ubuntu recently removed ffmpeg from their repositories (I use Linux Mint 17.2), so I installed the ffmpeg package from the ppa:kirillshkrogalev/ffmpeg-next repositories. After that I recompiled OpenCV and installed again, without any change.
I'm using OpenCV 2.4.11 with C++ under Linux Mint 17.2.
Probably XVID is missing on your linux machine which is required by ffmpeg. Try installing XVID as below, it may help you.
cd /opt
wget http://downloads.xvid.org/downloads/xvidcore-1.3.2.tar.gz
tar xzvf xvidcore-1.3.2.tar.gz
cd xvidcore/build/generic
./configure --prefix="$HOME/ffmpeg_build"
make
make install