-
Notifications
You must be signed in to change notification settings - Fork 227
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
Digital PTZ Support (Lossless Zoom) #135
Comments
As an update, the first version of this will be a fixed-zoom level, with the capability to pan/tilt around the whole frame (so a moving window). |
And here is the example of how to use it in C++: |
And as a note on the example above: It crops out a 640x360 region from RGB camera and resizes that to 300x300 (preview). And to set the sensor to 12 MP, use |
OV9282: fix over-exposure outdoors, in sunlight
both links are not working! could you please share if possible |
Start with the
why
:DepthAI and megaAI have a 12MP color sensor build in (and the FFC version can be used w/ the 12MP Pi HQ Camera). Often lower-resolution encoded video is wanted, but perhaps not necessarily of the full frame - and perhaps only for a particular region of interest.
For example, using the full 12MP input resolution of 4056x3040, the following 'lossless' zooms are possible:
So that's up to a 'lossless' zoom of ~13x when wanting 720p video encoding output. By
lossless
, I mean the capability to still have direct pixel-to-pixel mapping, so it is indeed still a full/native resolution output, direct from actual pixels.Move to the
how
:The internal frameworks we use for convert/crop/rescale off of the full resolution of the image sensor could be changed to allow an initial X,Y (in pixels) crop location and rework of our encoding implementation to support zoom factor (up to the max direct-pixel-map) when cropping/scaling by changing it to support runtime change of resolution.
Move to the
what
:Note: It may also be possible to support zooming past the
lossless
pixel-to-pixel direct mapping zoom limits (above) using hardware-accelerated Lanczos or bilinear interpolation, if this is of interest. (To for example, allow zooming to 15x at 1080p output resolution and interpolating between the actual pixels to produce the full resolution encoded video).The text was updated successfully, but these errors were encountered: