Plot video and picture with timestamp simultaneously

1 visualizzazione (ultimi 30 giorni)
Hello,
I am collecting voltage signals from a sensor and a continuous video at the same time. Whenever the voltage changes I am recording a signal of around 10 seconds length. I do have the timestamp of the recorded signal and the video.
I am collecting multiple voltage readings whenever they are triggered by the system. The video is recorded continuously.
I want to have an application where I can load the voltage signal/pciture and the correlated section of the video. The voltage readings could be loaded as pictures/fig files or real signals.
I want to have a slider where I can move to the next picture/signal and at the same time I want the video to jump to the timestamp that I am getting from the picture/signal. The video should then be repeatedly run within the same time frame of the signal. The timestamp of the signal could be written in the filename of the picture/signal.
Any help would be greatly appreaciated.
Thanks.

Risposta accettata

Image Analyst
Image Analyst il 12 Ott 2021
Well that's a whole application. I can't do all that but I can share three demos where I play a video and plot the mean rgb values as a function of frame time.
  2 Commenti
Konvictus177
Konvictus177 il 13 Ott 2021
Thanks for the examples. I was able to use similar logic. The key was to use:
for frame = startframe:endframe
One more thing. My video is pretty large - (2GB) which is why going from one frame to the next frame takes some time.
How could I make sure that going from frame to frame is synchronized with the real time?
Say my Framerate is 24 Frames/s. In 1 second I want the loop to go through 24 iterations.
Image Analyst
Image Analyst il 13 Ott 2021
I don't know. If your analysis can be done in less than a frame time, you could throw in pause() to slow it down. If your analysis takes longer then you'll have to speed up your computer or maybe do some tricks with the parallel processing toolbox to process several frames in advance.

Accedi per commentare.

Più risposte (0)

Prodotti


Release

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by