Add control of autoexposure lighting and metering#58
Open
IanButterworth wants to merge 2 commits into
Open
Conversation
Collaborator
Author
Owner
|
Okay in principle but how do I test this? Does it fail gracefully on an unsupported camera? |
Collaborator
Author
|
It gives a spinnaker handle error for me |
Owner
|
Okay will check this when I'm in front of a camera |
Owner
|
Does the below match your expectations? julia> autoexposure_lighting_mode!(cam1, "AutoDetect")
ERROR: Node AutoExposureLightingMode entry is not readable
Stacktrace:
[1] set!(::Spinnaker.SpinEnumNode, ::String) at /Users/spowell/.julia/dev/Spinnaker/src/Nodes.jl:179
[2] autoexposure_lighting_mode!(::Camera, ::String) at /Users/spowell/.julia/dev/Spinnaker/src/camera/acquisition.jl:164
[3] top-level scope at REPL[7]:1
julia> autoexposure_lighting_mode!(cam1, "Backlight")
"Backlight"
julia> autoexposure_lighting_mode!(cam1, "Frontlight")
"Frontlight"
julia> autoexposure_lighting_mode!(cam1, "Normal")
"Normal"
julia> autoexposure_metering_mode!(cam1, "Average")
"Average"
julia> autoexposure_metering_mode!(cam1, "Spot")
"Spot"
julia> autoexposure_metering_mode!(cam1, "Partial")
"Partial"
julia> autoexposure_metering_mode!(cam1, "CenterWeighted")
ERROR: Node AutoExposureMeteringMode entry is not readable
Stacktrace:
[1] set!(::Spinnaker.SpinEnumNode, ::String) at /Users/spowell/.julia/dev/Spinnaker/src/Nodes.jl:179
[2] autoexposure_metering_mode!(::Camera, ::String) at /Users/spowell/.julia/dev/Spinnaker/src/camera/acquisition.jl:191
[3] top-level scope at REPL[14]:1
julia> autoexposure_metering_mode!(cam1, "HistgramPeak")
ERROR: Node AutoExposureMeteringMode entry is not readable
Stacktrace:
[1] set!(::Spinnaker.SpinEnumNode, ::String) at /Users/spowell/.julia/dev/Spinnaker/src/Nodes.jl:179
[2] autoexposure_metering_mode!(::Camera, ::String) at /Users/spowell/.julia/dev/Spinnaker/src/camera/acquisition.jl:191
[3] top-level scope at REPL[15]:1
julia> autoexposure_metering_mode!(cam1, "HistogramPeak")
┌ Error: Metering mode "HistogramPeak" not recognized
└ @ Spinnaker ~/.julia/dev/Spinnaker/src/camera/acquisition.jl:193
julia> autoexposure_metering_mode!(cam1, "Average")
"Average" |
Collaborator
Author
|
It looks like the node names are recognized for your camera (which they aren’t for me) but that their function is locked because of another setting that needs to be switched first. Partial success. I’ll try to figure out which setting is blocking. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This isn't working for me, but it may be a camera support issue, given neither
AutoExposureLightingModenorAutoExposureMeteringModeare present in spinview for my camera.