Raspberry pi camera : rotate and advanced setup

Moderator: leecollings

Post Reply
yoonie
Posts: 4
Joined: Friday 08 August 2014 14:19
Target OS: Linux
Domoticz version:
Location: france
Contact:

Raspberry pi camera : rotate and advanced setup

Post by yoonie »

Hi everyone ^^

i'm going to use the NoIR cam for raspberry pi to use as a doorbell camera (cam is on a slave domoticz raspi).
the basic settings works great, but there is two things i can't do :

-i want to change the resolution of the snapshot. it's looks like a 640*480 picture, when the camera specs allow a 2592 x 1944 picture... there is a way to choose the resolution we wand to use?

-to have a good point of view, i have to put the camera in a specific location, and for that the flex cable had to be on the left side of the cam, so the image is rotated... i found a way to rotate the image with the raspistill command with some arguments, but i don't know how to use it with domoticz...

if anyone know a way to do that..

Thanks ;)
User avatar
Egregius
Posts: 2582
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Raspberry pi camera : rotate and advanced setup

Post by Egregius »

Maybe some overkill for your purpose, but have a look at http://elinux.org/RPi-Cam-Web-Interface

It's a webinterface for the RPi camera with motion detection. I tried several other solutions but that was the one that I kept :)
There's a simple way to make a snapshot and send it. Actually the file /run/shm/mjpeg/cam.jpg has always the latest view.
Besides the easy snapshot it also supports motion detection with use of a mask file (to block parts of the image), treshold, lightswitch setting and can run macros upon actions.
For example: I created a bash script that checks some switches of Domoticz, depending on those switches different actions are executed:
When evening/night: switch the exterior light on.
When home and not a sleep: wake the iMac and show the image of the camera
In all cases: send a snapshot in telegram.
Once I get my Philio Siren working I also plan to let that beep upon motion, and ring upon pressing the doorbell.

Regarding the image options: there's a easy schedule built-in that devides a day in 4 parts: night, dawn, day and dusk (depending on sunrise/set and location). With that schedule you can set options for lighting and exposure mode of the camera and lot's more.
yoonie
Posts: 4
Joined: Friday 08 August 2014 14:19
Target OS: Linux
Domoticz version:
Location: france
Contact:

Re: Raspberry pi camera : rotate and advanced setup

Post by yoonie »

Thanks, i will try that way ^^
yoonie
Posts: 4
Joined: Friday 08 August 2014 14:19
Target OS: Linux
Domoticz version:
Location: france
Contact:

Re: Raspberry pi camera : rotate and advanced setup

Post by yoonie »

Finally, in the "Settings" option and "advanced" tab, i have just set "-w 1280 -h 1024 -t 1 -rot 270" in the raspberry pi camera parameters and that do the job ^^
i loose some part of the picture due to the rotation, but that's okay for a door camera ;)
geronimobb
Posts: 9
Joined: Thursday 05 June 2014 23:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Raspberry pi camera : rotate and advanced setup

Post by geronimobb »

Do you mind describing your hardware setup, like case you used etc?
michaelr1
Posts: 1
Joined: Saturday 09 November 2019 19:15
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Raspberry pi camera : rotate and advanced setup

Post by michaelr1 »

In Domoticz go to Setup - Settings - Other
scroll down to "Raspberry Pi Camera Parameters"

Fill in Parameters like:
-w 1920 -h 1080 -t 10 -br 75 -co 40 -rot 180
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest