Closed IanButterworth closed 5 years ago
Example usage, where framerate is purposely set above max to achieve maximum
using Spinnaker, PyPlot, Statistics
function testrun(cam,caps;plotjitter=false)
start!(cam)
times = Array{Int64}(undef,caps)
for i=1:caps
image = getimage(cam)
times[i] = timestamp(image)
end
stop!(cam)
framerates = 1e9./(times[2:end]-times[1:end-1])
plot(1:caps-1,framerates);ylabel("Framerate (fps)");xlabel("Framenum");
end
camlist = CameraList()
cam = camlist[0]
exposure!(cam,0.1e6)
pixelformat!(cam, "Mono8")
framerate!(cam,124)
121.21212005615234
testrun(cam,100,plotjitter=true)
LGTM, cheers!
framerate!
andtimestamp
explained in readme, howeverid()
is returning 0, so omitted.