I've been asked to explore the possibility of using custom scripting to add date/timestamps to our data. We have secondary data with timestamps that we would like to sync with coded behaviors. Our video will always have a date/timestamp showing.
I'm a newbie to the platform, but I see custom Ruby scripts are a possibility. In an ideal world, we'd have a way to read the date/timestamp from the first frame of the recording and calculate offsets from that date/time. Recording will be continuous, so there should be no need to recalibrate mid-playback.
Do you know if anyone has created/shared any code that can accomplish this? If not, are there pointers/tips or areas of the documentation I should focus on?
asked 13 Feb, 12:58
If I understand you correctly, you would like to read the image data and extract the time information from the image? Unfortunately, Datavyu does not support that through the Ruby API. The timestamps in the spreadsheet are linked to the timestamps reported by the media-reading libraries.
What is your end goal with this task? If you need to export the data with adjusted timestamps, you can manually input the time from the first frame of video into a separate column/cell on the spreadsheet and use that data to offset the timestamps of coded behaviors in an export script.
We can discuss this more in-depth over e-mail, if you prefer.
answered 13 Feb, 14:04
Shohan Hasan ♦♦
Thank for your speedy reply! The forum is good for me. Ideally, I'd like to avoid the effort of the coder manually typing in timestamps when they choose to add a code for a behavior relevant to our research. This data will be blended with a secondary data source - log data collected by the devices we are observing.
I'd imagine something like this might be possible with an addition to the source code that uses a java wrapper for an OCR solution like Tesseract if it is easy to represent a point in time in the video as an image supported by Tesseract.