Closed tjwoodwa closed 2 years ago
Hi,
Sorry for the delay. Have been busy with family holiday stuff. I know where the problem is but am curious what your preference on something is because, beyond the bug, I realized I don't really like how I initially implemented this. (If you're curious about the bug, the cv2.Writer object is initialized based upon the shape of the input image and does not account for the inclusion of the motion visualization).
My question is whether you would prefer a single video, similar to the output displayed in the notebook, or if you would like two separate videos (one of the original video with the display of 'Active/Freezing', and a second with the motion), or perhaps something else entirely.
Let me know.
So you have something to work with, I did a quick fix where a video will at least be saved that has both the original video and the motion displayed. The updates have been pushed to master if you're using git and you can pull them, or you can download the individual FreezeAnalysis module files.
Hi Zach,
Sorry it took me a bit to respond. I can confirm that I was able to export videos and everything worked for what I want with the fixes you made. Thank you!!
Best Regards,
Taylor Woodward, B.S. (He/Him) PhD Candidate|Andrea Hohmann Labhttps://www.hohmann-lab-indiana.com/ Program in Neuroscience/Department of Psychological and Brain Sciences Indiana University-Bloomington Outreach/Science Communication| Editor-at-Large—ScIU: Conversations in Science at Indiana Universityhttps://blogs.iu.edu/sciu/author/tjwoodwa/
From: Zach Pennington @.> Sent: Tuesday, December 21, 2021 7:09 PM To: denisecailab/ezTrack @.> Cc: Woodward, Taylor Joel @.>; Author @.> Subject: [External] Re: [denisecailab/ezTrack] Freeze Analysis Save Video (Issue #45)
This message was sent from a non-IU address. Please exercise caution when clicking links or opening attachments from external sources.
So you have something to work with, I did a quick fix where a video will at least be saved that has both the original video and the motion displayed. The updates have been pushed to master if you're using git and you can pull them, or you can download the individual FreezeAnalysis module files.
— Reply to this email directly, view it on GitHubhttps://github.com/denisecailab/ezTrack/issues/45#issuecomment-999178249, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOMZ44JXHZCWFFLBNR64IQ3USEJITANCNFSM5KJP6CFQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.**@.>>
Hello!
I'm using the Freeze Analysis module and, although all aspects of analysis are working for me as far as I can tell, I'm having difficulty with item number 6 that gives the option to display the specified frames as well as save the video, which I'd like to use for a presentation.
I see a video exported in the folder as 'video_output.avi' that is only 6 kb and I can't open it in VLC or windows media player. I'm using .mp4 videos as my source video files.
I've been looking at FreezeAnalysis_Functions.py and it seems like the file may be getting initialized but not written- any thoughts on that? I don't have much experience with the cv2 module.