-
Notifications
You must be signed in to change notification settings - Fork 127
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
ImgFrame: report camera settings (focus, exposure, iso) #191
Conversation
getLensPosition(), getExposureTime(), getSensitivity() Only the first is implemented for now
(note: lens position may be reported one frame in advance), fix black image when initial manual exposure was set with other controls, fix switching from auto to manual exposure causing the lens to jump to zero (note: the lens is directly set now with manual focus, bypassing 3A)
src/pipeline/datatype/ImgFrame.cpp
Outdated
int ImgFrame::getExposureTime() const { | ||
return img.cam.exposureTimeUs; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO duration would be more applicable in this case
std::chrono::microseconds ImgFrame::getExposureTime() const {
return std::chrono::microseconds(img.cam.exposureTimeUs);
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like video
frames don't get this information applied to it, but preview
do.
TODO - check how FW handles this.
This (newer) PR also includes features added in this PR: #210 |
|
Add new API which can be used on
ImgFrame
packets received from camera:(note: lens position may be reported one frame in advance at the moment)should be fixedFW updates:
(note: the lens is directly set now with manual focus, bypassing 3A) -- was merged previously
WIP, currently only reports values for ColorCamera.- FixedRelated PR: luxonis/depthai-shared#51