如何将一组 jpeg 文件作为电影来播放?

发布于 2024-08-26 17:30:37 字数 334 浏览 7 评论 0原文

我有一组 jpeg 图像,其中每个图像都有相关的描述。例如,

im1.jpg - suspect enters bank
im7.jpg - suspect hands teller a note
imj41.jpg - teller gives suspect a bag
...
...

单独查看这些图像并查看说明很简单,但如何将其作为电影播放?我需要播放图像,当遇到带有描述的图像时,在状态窗格中显示描述。

我需要将图像转换成电影吗?如果需要,如何转换?如何让玩家在遇到描述框时通知我?

我正在使用 Windows。语言并不重要,我现在只需要概念。

I have a set of jpeg images where each image has an associated description. e.g.

im1.jpg - suspect enters bank
im7.jpg - suspect hands teller a note
imj41.jpg - teller gives suspect a bag
...
...

It's trivial to view these images individually and see the description but how do I play this as a movie? I need to play the images and when I encounter one with a description, display the description in a status pane.

Do I need to convert the images into a movie, if so how? How do I get the player to notify me when the description frame is encountered?

I'm using Windows. language doesn't matter, I just need the concept right now.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

榆西 2024-09-02 17:30:37

在 C# 中,您可以采用带有 PictureBoxWindows 窗体。添加一个允许选择多个 jpg 文件的 OpenFileDialog。然后,您可以实现一个计时器,在指定的时间段后加载下一张图像。在加载文件之前,您可以解析文件名。如果您找到某个扩展程序,请获取该字符串并通过覆盖 OnPaint 事件手动将该字符串绘制到 PictureBox 上。

In C# you could take a Windows Form with a PictureBox. Add a OpenFileDialog that allows to select multiple jpg files. Then you could implement a timer that loads the next image after a specified period of time. Before loading the file you could parse the file name. If you find one of your extensions, get the string and manually draw that string onto the PictureBoxby overwriting the OnPaint event.

风筝有风,海豚有海 2024-09-02 17:30:37

您可以使用 opencv 构建临时 .avi 文件并将其作为普通视频文件播放。

you can build temp .avi file with opencv and play it as ordinary video file.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文