-
Notifications
You must be signed in to change notification settings - Fork 83
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
get timestamp of a frame #124
Comments
I'm also interested in this feature, |
I have enquired with Allied Vision regarding the timestamp acquisition and their response was that the cameras are not capable of outputting the timestamp. Here is code snippet on how I resolved the camera's timestamps in the callback function for arming the camera:
Hope this helps. Cheers |
In the Vimba CPP Manual (4.1), section 5.11.22, it is described that there is a Isn't it possible for |
If the function you mention is returning a 64 bit unsigned integer, then it cannot contain the millisecond information. I did not look into the function, but I assume it returns the internal counter, which can be obtained with pymba with frame.data.timestamp. By incorporating the tick frequency, you can transform the counter into a time based scale. |
I am trying to get a timestamp of a frame, but can't find how. I am running the camera in continuous mode.
Currently I am doing it this way and I don't know if the timestamp I am getting is equal to the real timestamp.
I noticed in Vimba there's a command GevTimestampControlLatch and a variable GevTimestampValue which should control the appending timestamp to a frame and storing it into a variable. However I cannot run the aforementioned command and the variable is always 0.
Looking at a source code I have found one reference to timestamp and I was able to acquire it via frame.data.timestamp. Per Vimba documentation I divided the number with the GevTimestampTickFrequency of the oscillator, but I receive a float number that doesn't resemble the timestamp. However the difference in consequent frames do reflect the exposure time of the camera (in my case 3-4 ms).
Example output:
"1" yields 18:22:2.367203
"2" yields (considering time in seconds): 5:30:6.7125728
How can I get a sensible timestamp from the camera?
The text was updated successfully, but these errors were encountered: