如何通过C#.net中的串口接收图像 [英] How to recieve an image via serial port in C#.net

查看:143
本文介绍了如何通过C#.net中的串口接收图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想知道如何通过串口接收图像...我在我的项目中使用r305指纹模块获取人员指纹。扫描仪连接到端口COM1并正确打开和关闭(所以没有问题)..我的表格中有一个按钮和一个图片框。

现在问题是我要扫描单击按钮时的人员指纹,它应该在图片框中显示图像。



*在网上我发现了各种传输字节的方法,字符串等等......但不是图像。

* R305是一个组件...所以没有它的SDK。



任何形式的帮助都会受到赞赏。



Akshay。

Hi I wanted to know how can i receive an image via serial port ... i am using a r305 fingerprint module in my project for obtaining a persons fingerprint. the scanner is connected to port COM1 and properly opens and closes (so no issues there) .. I have a button and a picture box in my form.
Now the problem is such that I want to scan a persons fingerprint on the click of the button and it should display the image in the picture box.

*On the net i have found various methods to transfer byte,string etc... but not an image.
*R305 is a component ... So there is no SDK for it.

Any kind of help would be appreciated.

Akshay.

推荐答案

嗨基督徒当我购买扫描仪时...我收到了SFGDemo.exe应用程序......我认为该应用程序是使用C#.Net开发的。使用该应用程序时,我可以匹配,保存,搜索指纹。但由于我必须根据我的要求进行更改,我无法访问该应用程序源代码(我浪费了一周的时间来尝试调试它)。所以我的观点是......如果该应用程序可以显示扫描的指纹,那么我的问题可能会有一些解决方案。
Hi christian When i purchased that scanner ... i received a SFGDemo.exe application along with it... I think that application has been developed using C#.Net. While using that application i can match,save,search fingerprints. But as i have to make changes according to my requirements I am unable to access that applications source code (i wasted a week trying to debug it). So my point here is ...if that application can display the fingerprint scanned then there might be some solution to my problem.


图像是一个字节流。您需要阅读扫描仪的手册以查看它支持的内容,但它将涉及获取字节流并将其保存到文件系统。
An image is a stream of bytes. You need to read the manual for your scanner to see what it supports, but it will involve getting a byte stream, and saving it to the file system.


这篇关于如何通过C#.net中的串口接收图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆