Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crop / Zoom Image Possible? #359

Closed
J-otto opened this issue Jun 23, 2016 · 5 comments
Closed

Crop / Zoom Image Possible? #359

J-otto opened this issue Jun 23, 2016 · 5 comments
Labels

Comments

@J-otto
Copy link

J-otto commented Jun 23, 2016

Is it possible to add a setting to crop the image from the camera all of the time?

Personally I would like to set-up RasPi running motioneyeos as a peephole Secuity camera on my front door. Currently if I put the camera on the peephole >50% of the image is the peephole cylinder and not the image outside the door.

I could also see image crop being useful for people with privacy concerns who want part of the image always excluded from the image.

@ccrisan
Copy link
Collaborator

ccrisan commented Jul 3, 2016

I'm afraid this would have to be implemented in motion, rather than in motionEye or motionEyeOS.

@ccrisan ccrisan closed this as completed Jul 3, 2016
@fernand2000
Copy link

I was looking for the same thing and found a solution, and as this page is in the top 3 google results I got I'll post my findings here. I have a RPi zero and a RPi camera module v2.1

In the "Video device" tab, in the "Extra Motion Options" window, put
mmalcam_control_params -roi 0.35,0.25,0.25,0.45

You'll want to change the numbers according to your needs and this description of the roi (Region of Interest) parameter:

Allows the specification of the area of the sensor to be used as the source for the preview and capture. This is defined as x,y for the top-left corner, and a width and height, with all values in normalised coordinates (0.0 - 1.0). So, to set a ROI at halfway across and down the sensor, and a width and height of a quarter of the sensor, use: -roi 0.5,0.5,0.25,0.25

@muxa
Copy link

muxa commented Aug 1, 2020

mmalcam_control_params -roi 0.35,0.25,0.25,0.45

This has no effect in my installation of motioneye on Raspberry Pi (running from docker). Am I missing something?

@starbasessd
Copy link

starbasessd commented Aug 1, 2020 via email

@desegura
Copy link

desegura commented Sep 4, 2021

It is not a Docker issue.
ROI is just the definition of the image area where motion needs to find changes. It doesn't really crop and zoom the image.

What we are looking for here is a way to make a zoom in the red frame, for simple MJPEG cameras

image

@motioneye-project motioneye-project locked and limited conversation to collaborators Sep 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

6 participants