Search This Blog

Wednesday, February 16, 2011

DLP RFID1 .NET DLL

DLP RFID 1 API for IEEE15693 C# .NET

 

Download Here

RFIDCardDotNet.zip

I have been working on a project for the special education school. My project involves the use of RFID reader from DLP Design (http://www.dlpdesign.com/rf/rfid1.shtml). Being a typical .NET programmer, I wanted to develop my application in C# windows application using DLP RFID1 reader. I took the sample code from the DLP site (http://www.dlpdesign.com/rfrdr/) which was given in C++. I tried to write a wrapper around the existing library, but then came across a site/blog (http://www.electricrock.co.nz/tools/dlp-rfid1-library-for-linux/) who wrote about the details of the communication protocol. So I wrote according the to document and it worked!!! My system had a card already made and it runs on IEEE5693. So I wrote my DLP RFID1 .NET library only for this type of tag. I am attaching the download link for the library and also giving a screenshot tutorial of the library usage.

Add Reference as shown…

addreference

Add the files that you downloaded

addfiles

And here is the code

..


using System;


using System.Text;


using RFIDCard;


..



if (!CardReader.DetectReader())


Console.WriteLine(CardReader.ErrorMsg);


else


Console.WriteLine(CardReader.ReadRFCard());



 


Sorry for poor documentation.


There are only 2 usable functions and 1 string variable.



Functions (static):



image


String Variable for error feedback (static):



image


 


Download Here


RFIDCardDotNet.zip


 




Leave comments.





Monday, December 13, 2010

Edge Detection using C# and Aforge.NET

Edge Detection using C# and Aforge.NET

 

As I have told earlier, I am a newbie to image processing. I am posting things as I work on them. For the past few months I have been  busy with my PhD qualifiers.

Our topic for today is Edge Detection.

Edge Detection:

First step in our segmentation is edge detection. I will take a simple example to do this. Here is the picture where I am going to do the processing. Actually it is not an image. It is a video stream.

            image
Now I am going to do edge detection in it using Aforge. Before doing edge detection you should first convert into grayscale. There are mutliple ways to do edge detection [ Ref: http://www.aforgenet.com/framework/features/edge_detectors_filters.html]. Given below is the code snippet.

image                image

Bitmap image = (Bitmap)eventArgs.Frame.Clone();
Bitmap gsImage = Grayscale.CommonAlgorithms.BT709.Apply(image);
CannyEdgeDetector filter = new CannyEdgeDetector();
Bitmap edge = filter.Apply(gsImage);
pictureBox1.Image = (Bitmap)edge;

 


Actually I started this topic for image segmentation, but ended up as a Edge detection. I will come up with more topics. Also don’t forget to try other edge detection techniques given in Aforge.NET (link given below).


http://www.aforgenet.com/framework/features/edge_detectors_filters.html