This repository was archived by the owner on Apr 5, 2025. It is now read-only.
Implement libcamera ScalerCrop setting #68
Closed
2konrad
started this conversation in
Enhancements
Replies: 1 comment
-
I implemented it - found the solution myself. It works well with libcamera.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I like to submit the ScalerCrop property to libcamera to be able to crop the picture before analyzing.
It is not implemented yet. An "
x-y-h-w
" string needs to be set asRectangle::Rectangle(x,y,h,w)
.Can somebody help to achive this? I am not so familiar with C ...
motionplus/src/libcam.cpp
Line 341 in 33e13c4
Split string how-to:
https://favtutor.com/blogs/split-string-cpp
ScalerCrop reference:
https://libcamera.org/api-html/classlibcamera_1_1Rectangle.html#a94332066625a5986ed7a51256af75a88
https://libcamera.org/api-html/namespacelibcamera_1_1controls.html
Beta Was this translation helpful? Give feedback.
All reactions