Tested on:Raspberry Pi 2; Python 2.7; Ubuntu Linux
Prerequisites:Shared internet connection (Ethernet)
Hardware:Raspberry Pi 2
Camera Module
Ethernet cable
optional: external power source, e.g. LogiLink pa0086
SD-Card >= 8Gb

PsyCam: A Raspberry Pi DeepDream Surveilance Camera

Based on the DeepDream algorithm from Google (see this gallery with DeepDream images), the PsyCam is the perfect tool for tracing paranormal activities!
If autostart is enabled and an external power source attached, the PsyCam will make snapshots and convert the images to a DeepDream, as long as the power source lasts. PsyCam will work only on a Raspberry Pi 2, with every bit of its RAM…

Installing PsyCam
For setting up the PsyCam, either follow the tutorial DeepDream on the RPi3 and Raspbian Jessie, which all in all will take a few hours, or use the image as explained below.

Image installation
Download and unzip the image onto a linux host computer with

Then, install the image like in the Raspbian installation tutorial. Connect the Raspberry Pi with a host computer over Ethernet, boot it and log in with ssh, but using the username and password ubuntu instead of pi and raspberry.

Update the script
The script is stored on GitHub and should be updated with

PsyCam usage
Start the PsyCam with

The snapshots are stored in ~/deepdream/psycam/snapshots and the converted dreams in ~/deepdream/psycam/dreams; copy them onto a host computer with scp to watch them (with ubuntu as password and username!). When restarted, PsyCam stores the snapshots and dreams as directories with timestamp.
The parameters layer depth, layer type and octave are chosen randomly on each iteration.
Open the help for an overview of the command line options:

Autostart PsyCam

Open .bashrc with sudo nano ~/.bashrc and replace the line


Attach the external power source, find an area prone to paranormal activities and start PsyCam by powering the Raspberry Pi. Each snapshot will take 5 to 20 minutes. Add the -r flag for extra bling.

PsyCam Snapshot

Random PsyCam Snapshot

Interceptionism: Going deeper into Neural Networks: http://googleresearch.blogspot.ch/2015/06/inceptionism-going-deeper-into-neural.html
File transfer with SCP: http://www.knight-of-pi.org/scp-copy-linux-raspberry/
Remote access with SSH: http://www.knight-of-pi.org/remote-control-your-raspberry-pi/
Ubuntu camera installation tutorial: http://www.knight-of-pi.org/installing-the-camera-module-for-ubuntu/
PsyCam on Github: https://github.com/JoBergs/PsyCam
DeepDream on a Raspberry Pi Tutorial: http://www.knight-of-pi.org/deepdreaming-on-a-raspberry-pi-2/
DeepDream Image Gallery: http://s478.photobucket.com/user/wirsing/library/DeepDream
Tutorial: Burn a disk image to a SD card: http://www.knight-of-pi.org/installation/
DeepDream on the RPi3 and Raspbian Jessie: http://www.knight-of-pi.org/deepdream-on-the-raspberry-pi-3-with-raspbian-jessie/

Knight of Pi

Johannes Bergs aka Knight of Pi. Diploma in Bioinformatics, some Webdesign and Python coding then. Living in the beautiful city of Vienna.


Time limit is exhausted. Please reload CAPTCHA.