I am trying to install OpenCV 3 in the raspian Jessie Pixel according to the method given on the following link : http://www.pyimagesearch.com/2015/10/26/how-to-install-opencv-3-on-raspbian-jessie/ but when i am trying "make -j4" command raspian OS got stuck and it made the processor speed so slow. The monitor screen went black and after certain time it comes back but still it will be stuck. Please help me in fixing this problem.
Is there any other way that i can try for installing openCV 3.
Related
I can't install opencv-contrib-python on PyCharm using the Setting options provided by PyCharm. I get these error everytime I tried first not using the --user option, such as in image 1:
Then I tried using the --user option, and I got what is showed in image 2
My knowledge of Python is very weak and I don't need to get it better right now. I have a script I need to run for a very close presentation (in the script there are many section with many examples of how to use SIFT, image homography, and other stuff used in image processing and artificial vision. I can't run the SIFT part, this is why I need opencv-contrib-python). I'm using opencv 3.4.3.18 and I need to make the script working for that distribution!
I haven't found anything of useful since now and I'm in quite a hurry and still without a solution.
Thank you for the help!
I'm trying to access a live video feed from my Raspberry Pi with a PiCam attached. I have enabled the camera in the interface settings and even tested it by snapping some pictures and videos using the PiCam library. However, OpenCV is giving me troubles. I installed open CV following this tutorial (shoutout to Adrian Rosenbrock).
Check out the screenshot below for the code and the error message. I'm running everything from within a virtual environment with OpenCV installed, like Adrian suggests.
Code and error message
VIDEOIO ERROR: V4L: can't open camera by index 0
From what I've read from other problems people have had, this error is sometimes resolved by playing with the index value. If i change the index value to -1 or 1, like most solutions suggest, i either get the same thing or a slightly different "can't access camera" error.
I'm relatively new to OpenCV and RPi so I might just be missing something simple. Any suggestion is much appreciated, thanks!
You may need to enable access to the camera. Try typing:
sudo modprobe bcm2835-v4l2 in terminal on your RPI.
Hey guys I want to get the live video frames from my usb webcam connected to my Pynq FPGA. The goal is to make motion detection on each frame but I've been struggling to get a live video. I've tried the first example in this link but I get a really bad frame rate. I tried to get a better rate by adding the following line:vc.set(cv2.CAP_PROP_FPS, 60) but it didn't change anything. I tried an example in MATLAB and I had no problems connecting to the webcam and I had a smooth frame rate.
I've read that OpenCV can't be used together with Python3 yet but I still get images in the notebook what I don't understand. I also don't know how to install other packages or libraries like pygame for jupyter notebooks on the pynq, it says everywhere that I have to enter pip install "name" and put the library in the site-packages directory but I haven't seen that directory on jupyter notebooks. So I'm trying to find a way without installing new libraries.
I really need your help guys, do you have some suggestions how to get a live video stream from my webcam on jupyter notebooks?
OpenCV can work with python3. I am using that
at first you need to install pip, it is pretty easy flow.
After that connect the board to the web and use pip install
I am very new to Python, but this does not make sense to me, here's an example script:
import pygame as py
import time
py.init()
song = py.mixer.Sound("pineSiskin.wav") # c1Mb/20sec long
song.play(0 , 9000)
time.sleep(8)
song.fadeout(800)
py.quit()
print("quit")
Running this on a Raspberry Pi*, the CPU goes up to 75% and stays there until I restart the Python shell. This soon leads to overheating on the RPi.
Other questions (like this one & other mentioned in link), are dissimilar as they refer to scripts which have not completed.
This link does hint that what I'm seeing is not "normal" behaviour.
Any help to track this problem/diagnostic advice would be useful.
Apologies if I've made a mistake about which forum; tell me and I'll move it!
*Hardware/Software:
Raspberry Pi 3 Model B running
Raspbian Jessie Pixel
Python 3.4.2
accessed via IDLE3 Python 3.4.2 as bundled with scipi & matplotlib
added
this problem turned out to be an OS problem. recreating the Raspbian OS from a new disk image solved it. Now scripts are behaving as I'd expect.
I've been trying to install the python library for making games, pygame, in my yocto image of linux for my raspberry pi 2. I have a python code of a game, I've run it in raspbian and it runs pretty slow, but it runs. Now in my image of linux I already have python but I have failed in installing the pygame library. Every time I tried to run the game it says "Error: import pygame", so clearly the problem is in the way I install the library.
I would appreciate any kind of help.
Did you check your PYTHONPATH is set ?
To set it, do:
export PYTHONPATH=/opt/ros/indigo/lib/python2.7/site-packages
You can add this line to your .profile or .bashrc