如何在Java中创建新的相机源?

发布于 2025-01-24 02:50:26 字数 399 浏览 4 评论 0原文

我正在尝试在Java中创建一个新的相机源或驱动程序。 也有一个基于Python的问题。正在尝试做的是,我想要一个新的相机源,以便所有应用程序都可以连接到它。输出将是循环中显示的许多图像,而不是现场相机。我可以用爪哇实现这一目标吗?如果是的话?在Stackoverflow中,基于C ++有许多问题。但与爪哇无关。我试图在Java实现这一目标。我认为为此,我需要使用DirectX之类的东西。

我知道如何创建图像循环。但是如何创建相机源?

I am trying to create a new camera source or driver in java. There is a similar question based on python. What am trying to do is that I want a new camera source shown in windows so that all apps can connect to it. And the output will be many images showing in a loop instead of live camera. Can I achieve this with java? If yes How? In stackoverflow there are many questions based on c++. But not about Java. I am trying to achieve this in Java. I think for this I need to use something like directX.

I know how to create the loop of images. But How to create a camera source?

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

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

发布评论

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

评论(1

≈。彩虹 2025-01-31 02:50:26

也许您可以将问题分为两个部分:

  1. 使用工具来创建虚拟网络摄像头视频源,而不是尝试从头开始创建驱动程序。如许多问题中所讨论的,例如 /a>,您可以使用以下工具来创建虚拟直接显示源:
    jpeg和m-jpeg ip ip摄像头的DirectShow视频源过滤器

  2. 使用另一种工具,例如 ffmpeg 从图像中生成一个实时mpegts udp流(如此问题)。该流是虚拟相机源将读取的流。

您甚至可以使用Java在第2点创建流,使用一些库,例如由我测试)。

May be you could divide your problem in two parts:

  1. Using a tool for creating virtual webcam video source rather than trying to create a driver from scratch. As discussed in many questions, for example this, you can use the following tool to create a virtual Direct Show source:
    DirectShow Video Source Filter for JPEG and M-JPEG IP Cameras

  2. Using another tool like ffmpeg to generate a real time mpegts udp stream from your images (as shown in this question). That stream is the one that the virtual camera source will read from.

You could even use Java to create the stream on point 2, using some library like this (not tested by me).

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