Augusto9
Posts: 3
Joined: Wed May 29, 2019 8:05 pm

Select a custom area with the mouse - possible?

Tue Jun 04, 2019 6:31 pm

Hi. I'm try to use the pi camera, I'm need to select a "work area" , is it possible?
Thanks in advance!

DirkS
Posts: 9936
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Select a custom area with the mouse - possible?

Tue Jun 04, 2019 6:53 pm

Augusto9 wrote:
Tue Jun 04, 2019 6:31 pm
Hi. I'm try to use the pi camera, I'm need to select a "work area" , is it possible?
Thanks in advance!
It depends on the software you're using.
But I can't think of Pi camera software that supports mouse selection.

Augusto9
Posts: 3
Joined: Wed May 29, 2019 8:05 pm

Re: Select a custom area with the mouse - possible?

Tue Jun 04, 2019 7:11 pm

DirkS wrote:
Tue Jun 04, 2019 6:53 pm
Augusto9 wrote:
Tue Jun 04, 2019 6:31 pm
Hi. I'm try to use the pi camera, I'm need to select a "work area" , is it possible?
Thanks in advance!
It depends on the software you're using.
But I can't think of Pi camera software that supports mouse selection.
I'm on python. I found "ROI (region of interest)" but is only zoom, not a split image, if is not possible with the mouse, is there a way to select area on a "live mode"? Thanks for response!

DirkS
Posts: 9936
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Select a custom area with the mouse - possible?

Tue Jun 04, 2019 7:20 pm

Python is not the camera software you're using. It's the programming language that's used by your camera software.

User avatar
HermannSW
Posts: 1482
Joined: Fri Jul 22, 2016 9:09 pm
Location: Eberbach, Germany
Contact: Website Twitter YouTube

Re: Select a custom area with the mouse - possible?

Wed Jun 05, 2019 7:15 am

Augusto9 wrote:
Tue Jun 04, 2019 7:11 pm
I found "ROI (region of interest)" but is only zoom, not a split image
That is not correct. If you use "-roi" and specify the matching width and height for the mode, there will be no zoom:

Code: Select all

raspivid -md 7 -roi 0.25,0.25,0.5,0.5 -w 320 -h 240 ...
You see a zoom because the default values for width and height are 1920(1080) regardless of mode.
⇨https://stamm-wilbrandt.de/en/Raspberry_camera.html

https://github.com/Hermann-SW/Raspberry_v1_camera_global_external_shutter
https://gitlab.freedesktop.org/HermannSW/gst-template
https://github.com/Hermann-SW/fork-raspiraw
https://twitter.com/HermannSW

gordon77
Posts: 4160
Joined: Sun Aug 05, 2012 3:12 pm

Re: Select a custom area with the mouse - possible?

Wed Jun 05, 2019 8:19 am

Augusto9 wrote:
Tue Jun 04, 2019 6:31 pm
Hi. I'm try to use the pi camera, I'm need to select a "work area" , is it possible?
Thanks in advance!
Can you be more specific what you are trying to do?. Are you trying to crop an image or maybe analyse a specific area?

Return to “Camera board”