从 IP 摄像头拍照并使用 FTP 上传
我想用 Java 编写一个程序,从 IP 摄像头拍摄照片并将其发送(通过 ftp)到网站,替换旧图像。
有谁知道我可以使用任何库来完成该任务?
我认为主要问题是从 IP 摄像头抓取图像并将其保存为 JPEG。 基本上我以前从未使用过相机。因此,如果有人能给我一些提示,我将非常感激。
I would like to write a program in Java which takes pictures from an IP camera and sends (over ftp) it to a website, replacing an old image.
Does anyone know any libraries I can use for that task?
I think the main problem will be grabbing an image from IP camera and saving it as a JPEG.
Basically I have never worked with cameras before. So I will be really grateful if someone can give me some tips.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,您必须弄清楚如何从您将使用的网络摄像机获取数据。可以在这里找到好的起点: http://dragosc.itmcd.ro/uncategorized/java-media-framework-vs-ip-camera-jpegmjpeg-complete-overview-sources/
其次,您应该选择用于 ftp 通信的库,这个话题在这里讨论过:
应该使用什么 Java FTP 客户端库?
我 我会写一些实际上做了一些事情的东西,你可以回到SO并提出更具体的问题。
First you would have to figure out how to get the data from IP Camera you will be using. Good starting point can be found here: http://dragosc.itmcd.ro/uncategorized/java-media-framework-vs-ip-camera-jpegmjpeg-complete-overview-sources/
Second, you should choose the library for ftp communication, this topic was discussed here:
What Java FTP client library should I use?
Once you'll write smth which actually does something you can get back to SO and ask more specific questions.