I'm working on a prototype on which I need to create a peer-to-peer video chat between a Raspberry Pi equipped with a Raspberry Cam and an iOS device using Twilio. The iOS part was easy but I can't find a way to do the same on the Raspberry. Is that even possible?
Thanks.
I've not tried this, but it seems like you would have to rely on the browser capabilities of the Pi. The current standard there seems to be the Epiphany browser which you'd get with the following commands:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install epiphany-browser
Then you can check whether that browser would support using Twilio Client:
https://www.twilio.com/docs/quickstart/php/client
Alternatively, if for whatever reason it would not work with Twilio Client, you could still use the Pi as a WebRTC device via other methods as modeled in this blog post.
I don't have a Raspberry Pi 2 or camera to test this with so let me know if this helps at all.
Related
I have been experimenting with GrovePI+ running python programs and am looking to extend my experimentation to include integrating with Azure IoT Hub by create Azure IoT Edge modules. I know that I need to update module settings to run with escalated rights so that the program can access I/O and have seen the documentation on how to accomplish that, but I am struggling a bit with getting the container built. The approach that I had in mind was to base the image on the arm32v7/python:3.7-stretch image and from there include the following run command:
RUN apt-get update &&\
apt-get -y install apt-utils curl &&\
curl -kL dexterindustries.com/update_grovepi | bash
The problem is that the script is failing because it looks for files in /home/pi/. Before I go deeper down the rabbit hole, I figured I should check and see if I am working on a problem that someone else already solved. Has anyone built Docker images to run GrovePi programs? If so, what worked for you?
I've no experience with GrovePi, but remember that modules (Docker containers) are completely self-contained and don't have access to the system. So if that script works when ssh'ed into a device, then I can see why it would not work in a module; the module is a little system-in-a-box that has no awareness of or access to locations like /home/pi/.
Basically, I'd expect you need to configure the Pi itself with whatever is needed for Grove Pi stuff, then you package your Python into a module. The tricky bit might be getting access to hardware like I2C from within the module, but that's not too terrible. This kind of thing is what you'll need (but different devices).
I've bought a Raspberry Pi 3B+(more precisely: the starter kit ABOX Raspberry Pi 3 B+ Kit) and installed Raspbian on it. I connected the Raspberry with the internet by using it's wlan adapter and I tried it also with a Fritzbox Wlan Stick N. The problem is that whenever I need to use the internet connection on both devices both are slowed down dramatically.
The strange thing is that my smartphone seems not to be affected nor affects any of the other connections. This only happens when my main computer (Windows 10) and my Raspberry are trying to use some service on the internet at the same time
Can anyone help me with this? Any help is appreciated
I had the same problem with my RPI, and it turned out to be the Power Management feature.
You can try disabling it:
sudo iwconfig wlan0 power off
If it worked, you can add this command to your rc.local file
I want to know whether Raspberry Pi 2 support ThingsBoard platform? Can I just follow the steps of installing ThingsBoard for RPi3 and will it work for RPi2 also?
It looks like it is supported. based on this link: https://thingsboard.io/docs/samples/raspberry/gpio/ :
Raspberry Pi - we will use Raspberry Pi 3 Model B but you can use any other model.
Also, support is mainly related to what protocols are available and supported by the platform:
https://thingsboard.io/docs/reference/protocols/
MQTT
CoAP
HTTP
We are currently running ThingsBoard gateway in a Raspberry Pi 2 model B, so I can confirm it is fully supported. Installed following the official guide here, with Raspbian Stretch Headless as operating system.
I am trying to build an imaging system and I want to use Tensorflow with Orange pi 4G. Does anyone know if there are limitations, is this possible?
As I can see Orange PI 4g iot is still not compatible with Ubuntu but I hope it will be in the near future. Any information you could give me i will be happy.
Official CI server for Tensorflow has some nightly builds with python wheels for raspberry pi armv7l, it is not officially supported by tensorflow yet, they officially support only 64-bit architectures so far, but I managed to get yolo-keras working on "orange pi pc plus" using their nightly build wheel file.
You can also find the scripts they used for building the wheel (actually it's cross-built using a docker container) in directory tensorflow/tensorflow/tools/ci_build inside source code.
Some people also provided guides for native building, but it generally requires more effort to get it to work.
I suggest you start by trying the python wheel file for tensorflow v1.8.0 for raspberry pi armv7l architecture, found here.
I'm looking for some hints. I've got my Pi running OpenCV, but I'm about to take on a project which will need several IP cameras, all piping video to OpenCV. I'm curious if it's possible to use the Pi+webcam in place of an IP camera?
I was attempting this by using Gstreamer on the Pi to pipe the video to a desktop PC, where I would use Python and OpenCV to process the images, then ship back answers to the Pi. The Pi is connected to actuators, so the described setup would save me the purchase of a few ip cams.
I've setup ffmpeg to capture the video and stream it, I just can't seem to find an appropriate Gstreamer pipe to get it pulled up in OpenCV on the Desktop.
I hope this is clear.
first of all, i strongly recommend the latest gestreamer code you can get to compile on the rpi.
some recent builds of gstreamer can be found in a 3rd party apt repository:
add
deb http://vontaene.de/raspbian-updates/ . main
to
/etc/apt/sources.list
and run
apt-get update && apt-get upgrade
as superuser.
hope that helps. if not you may find some useful info at
http://pi.gbaman.info/?p=150
http://sanjosetech.blogspot.de/2013/03/web-cam-streaming-from-raspberry-pi-to.html
or even https://raspberrypi.stackexchange.com/
I recommend you the UV4L driver for the pi, this driver will enable an URL were you can see the pi camera so you can just process the images with cv2.videocapture("http://raspberrypi-ip/live") in this way you dont need to process anything on the pi as is very limited in comparition with your pc which will give you nice results.