💾 Archived View for gmi.bacardi55.io › blog › 2016 › 12 › 26 › kalliope-rasperrypi-camera-neuron captured on 2024-06-16 at 13:06:48. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-01-29)
-=-=-=-=-=-=-
Posted on 2016-12-26
EDIT: Installing "community" modules like neuron is now a feature of Kalliope (via the CLI), please [read here instead]({{< ref "/content/posts/2017/1/3/kalliope-community-modules-and-the-picamera-neuron.md" >}} "Read Here")
To start with the kalliope[1] blog posts series, I'll start with introducing the few neurons I created on top of the existing ones.
1: https://github.com/kalliope-project/kalliope
The neuron can be found here[2] (I need to move each neurons on it's own github repository as their will be a market place for kalliope neuron soon).
2: https://github.com/bacardi55/kalliope_config/tree/master/neurons/camera
To enable this neuron, you need to install first the picamera python library apt-get install python-picamera should do it.
Then, create your neuron file picamera.yml like the example one[3]:
3: https://github.com/bacardi55/kalliope_config/blob/master/brains/camera.yml
--- - name: "Take-pictures" signals: - order: "take pictures" neurons: - camera: number_of_picture: 3 directory: "/home/pi/Desktop/PIctures/" timer: 1 - say: message: "Picture taken"
You can configure how many pictures Kalliope will take (3 in this example), where to save then (here /home/pi/Desktop/Pictures) and how many seconds between the picture Kalliope needs to wait.
As you can see, pretty simple, but for me it was more a poc of using the picamera with Kalliope, I have further idea for it in the future, maybe using OpenCV[4] with it :).
But I have other neurons do upgrade / create before going this road.
Stay tune for the other neurons.