FAQ Database Discussion Community


OpenCV Multi Core Support

opencv,raspberry-pi,multicore,raspberry-pi2
I was wondering if there is multi core support for the OpenCV library. I am experimenting with Haar cascading and it's pretty slow on my Raspberry 2 which would have four cores, but my application is currently running only on a single one. Any ideas?...

Replace character in string with multiple characters Shell Script

bash,shell,raspberry-pi,raspberry-pi2
I want to replace "." in this result: "172.16.0.25" with " dot ". Here is my code: #!/bin/bash connection=`netstat -tn | grep :1337 | awk '{print $5}' | cut -d: -f1` #this returns "172.16.0.25" replace=" dot " final=${connection/./$replace} echo "$final" Which returns: test.sh: 4: test.sh: Bad substitution I tried using...

Using macbook pro as display for raspberry pi 2 [closed]

osx,raspberry-pi,raspberry-pi2
I just received a pi 2 with sd card preloaded with NOOBS. I also have an hdmi cable and wifi dongle for it. I wanted to begin using the pi 2 but do not have a spare monitor to connect it to. I was hoping to be able to connect...

Building QtWebEngine for Raspberry Pi2 using Yocto Poky - vcos_platform_types.h: No such file or directory

chromium,raspberry-pi2,yocto,qt5.4,qtwebengine
Context NUC on Debian 7.8 for building my images with Yocto Yocto Poky REQUIREMENT Q5 QtWebEngine + QML plugins + SSH TARGET Raspberry Pi 2 Heavily inspired by this excellent tutorial for Raspberry Pi Yocto Poky fido branch mkdir -p ~/yocto/dl cd ~/yocto git clone -b fido git://git.yoctoproject.org/poky poky cd...

PyVisa-py backend

python,linux,raspberry-pi2
I have an error appeared on installing pyvisa-py pn on raspberry pi2, which is ImportError: cannot import name rname after I run command rm = visa.ResourceManager('@py') Here is the message given by interrupter: Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/dist-packages/pyvisa/highlevel.py", line 1477, in new visa_library...

RPi2 PsSession: “Command 'iotstartup' cannot be found”

powershell,iot,raspberry-pi2
I am in the process of deploying a Windows Universal App to my Raspberry Pi 2. I am following a very handy guide published here. Everything's fine but I get a peculiar warning when trying to run the iotstartup command after having established the PsSession. If I simply press return...

How to INSTALL & RUN QML QtWebEngine & QtWebKit on SBC using Yocto / Unable to fetch URL from any source

qt,qtwebkit,raspberry-pi2,yocto,qtwebengine
Environment Debian GNU/Linux 7.8 (wheezy) Linux marvin 3.16-0.bpo.2-amd64 #1 SMP Debian 3.16.3-2~bpo70+1 (2014-09-21) x86_64 GNU/Linux Raspberry Pi 2 Yocto Poky Qt5 My goal is to run Chromium layout web engine on the RPi2 I want to be able to run this on my RPi2: import QtQuick 2.1 import QtQuick.Controls 1.1...

Slow to send camera images via UDP

android,python,camera,udp,raspberry-pi2
I am trying to stream images from a Camera on my Raspberry Pi via UDP. I'm receiving / displaying them on an Android device. According to my calculations, my application sends at a maximum rate of 10fps, but I need 25 fps. Does anyone know how to speed my solution...

Upgrading skimage version on Raspberry pi

python,scikit-image,raspberry-pi2
I've installed python packages using the synaptic package manager on Raspberry Pi-2. However, the skimage module version 0.6 is the latest available version in synaptic. Can someone guide me how to upgrade it to 0.11, as certain functions are missing in the older version. I tried pip install scikit-image, but...

Success compilation of phantomjs on Raspberry 2 but not executing (libjpeg.so.8)

compilation,phantomjs,raspbian,libjpeg,raspberry-pi2
In my raspberry 2 with updated version of OSMC I would like to use PhantomJS with selenium in python and tried to compile it. Following this link: How to compile phantomjs on the raspberry pi 2 And this link: Adding swap for the raspberry pi Created swap file of 16Gb...

Getting “Segmentation Fault” when using RPi.GPIO setup on Raspberry Pi 2

python,raspberry-pi2
I'm getting an error when I use gpio.setup(pin, GPIO.OUT) I'm currently using Ubuntu Mate For Raspberry Pi 2 and using Python 2.7 with python-rpi.gpio 0.5.10.1 module. It throws SegmentationFault when I try to input GPIO.setup(pin, GPIO.OUT). EDIT: this is my code that i've been working on # Program Menampilkan seven...

File-transfer script on Raspberry Pi that watches for changes

bash,daemon,file-transfer,raspberry-pi2
I want to write a daemon-script for my Raspberry Pi 2 that runs on startup and permanently watches for changes in a specific directory. If there is a change, it should copy the changed files to a directory on a Windows computer (maybe via SSH). I found out that the...

python face detection raspberry pi with picamera

python,face-detection,raspberry-pi2
I am a newbie with python and opencv i am trying to build a face detection project with raspberry pi. i am getting this error and here is my code Traceback (most recent call last): File "/home/pi/Desktop/picamera-code/FaceDetection1.0", line 19, in <module> for frame in camera.capture_continuous(rawCapture, format="bgr", use_video_port=True): Code: import numpy...

Ubuntu login on a Raspberry Pi 2

ubuntu,raspberry-pi,raspberry-pi2
I just got a Raspberry Pi 2 and put Ubuntu on a microSD card with Win32 Disk Imager. When starting up I get the following: Ubuntu 14.04.2 LTS ubuntu login: What should I type in there?...

Cross compiling for Raspberry pi 2 error

c,gcc,raspberry-pi,cross-compiling,raspberry-pi2
I wanted to start cross compiling for raspberry pi2 on Ubuntu 32bit (in virtual box), so I downloaded the toolchain on the github site (https://github.com/raspberrypi/tools) and tried to compile a simple hello world program with the command (I've included the path to the bin folder that contains arm-linux-gnueabihf-gcc-4.8.3 to the...

Access GPIO (/sys/class/gpio) as non-root

bash,raspberry-pi,chmod,chown,raspberry-pi2
The /sys/class/gpio can only be access as root by default. So I like that a new group gpio can use the files and dirs under /sys/class/gpio. To achieve that I added the following lines to /etc/rc.local (I'm on Debian): sudo chown root:gpio /sys/class/gpio/unexport /sys/class/gpio/export sudo chmod 220 /sys/class/gpio/unexport /sys/class/gpio/export So...

Import Raspberry Pi GPIO error

python,raspberry-pi,gpio,raspberry-pi2
I am using a Raspberry Pi 2 B and attempting the project on the following website: https://learn.adafruit.com/raspberry-pi-face-recognition-treasure-box/overview However when I try to run the file "capture-positives.py", I get an error when trying to import the GPIO. I have tried updating the GPIO and removing and installing a fresh copy, however...

Calling a rest API windows 10 IoT with a Raspberri pi

c#,windows-universal,iot,windows-10,raspberry-pi2
I'm trying to do something as simple as calling a REST API using an universal app for windows 10 IoT but I can't find a way to do it. Normally I would use: private XElement ImportData(string sourceUrl) { WebClient wc = new WebClient(); String source = wc.DownloadString(sourceUrl); return XElement.Parse(source, LoadOptions.None);...

Raspberry-Pi live streaming using web cam

raspberry-pi,raspbian,microprocessors,raspberry-pi2
I am new with RASPBERRY PI . But i've successfully completed a project with the use of Brick Pi which is actually a WIFI based moving car. Now i want to enable live camera streaming to my project. Can i do it using my USB webcam ? I actually want...

Windows 10 IoT Raspberry Pi 2: Autostart published Application

iot,raspberry-pi2,windows-10
I'm starting making experience with the Raspberry Pi 2 Development with Windows 10 and I was wondering how can I configurate the Raspberry Pi 2 to autostart my own published application, I developed in Visual Studio? And furthermore: How can I set up time & Region on my device? Thank...

How to set Node.js Windows Universal app as startup app on Windows 10 IOT Core

node.js,windows-universal,raspberry-pi2,windows-10-iot-core
I have created the sample Hello, World Node.js Windows Universal Sample from the Microsoft IOT Github page, but now I want to set this background app to start. I know I'm supposed to use iotstartup, but what is my app name? All I see is this: [10.10.xx.xx]: PS C:\> iotstartup...

using c++ code from python in a shared-lib to control an LCD

python,c++,shared-libraries,ctypes,raspberry-pi2
My project is to control an LCD with ST7565 controler on my Raspberry B2 I'm trying to use this c++ code, that controls the lcd: https://github.com/stephanel/ST7565-RPi Unfortunately I'm not familiar with programming in C, because of this I want to call the c++ functions from python with ctypes. I wrote...

Installing GitLab CI Runner on Raspberry Pi 2 (Raspbian)

ruby,gitlab,raspberry-pi2
I want to install the GitLab Runner for CI on my RPI 2 machine running Raspbian. There is no armhf package available or mentioned on the official page: https://gitlab.com/gitlab-org/omnibus-gitlab-runner/blob/master/doc/install/README.md and I could not find one on the net. I've tried building it from source but it failed to make ruby...

Recompile R with PNG support

linux,r,png,raspbian,raspberry-pi2
I am running R 3.1.2 on a headless Raspberry Pi 2 with Raspbian. Packages install fine, but I can't save PNGs. After googling the error for a long time, I found this response, which says I need to "manually recompile R with explicit PNG support." I apologize if this is...

Raspberry Pi 2 B+ Doesn't have all it memory available after touchscreen installation

memory,raspberry-pi,raspbian,raspberry-pi2
In short What file(s) or program(s) controls how much memory is found and can be used by your OS. In my case Raspbian on the Raspberry Pi 2 B+ (kernel version 3.18)? More info I tried to install a touchscreen. For this I had to replace: - kernel.img - kernel7.img...