Page 1 of 1

Raspberry pi camera : rotate and advanced setup

Posted: Monday 01 February 2016 15:50
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 ;)

Re: Raspberry pi camera : rotate and advanced setup

Posted: Monday 01 February 2016 17:55
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.

Re: Raspberry pi camera : rotate and advanced setup

Posted: Monday 01 February 2016 18:27
by yoonie
Thanks, i will try that way ^^

Re: Raspberry pi camera : rotate and advanced setup

Posted: Wednesday 10 February 2016 22:24
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 ;)

Re: Raspberry pi camera : rotate and advanced setup

Posted: Thursday 11 February 2016 11:36
by geronimobb
Do you mind describing your hardware setup, like case you used etc?

Re: Raspberry pi camera : rotate and advanced setup

Posted: Saturday 09 November 2019 19:19
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