Using openalpr in C# code

1,019 views
Skip to first unread message

CKesterson

unread,
Aug 8, 2016, 8:59:49 AM8/8/16
to OpenALPR
Hello!

I'm trying to use openalpr in C# code. As I don't have much experience with C#, or the openalpr code, I'm not really sure where to start. I tried following the description at http://doc.openalpr.com/bindings.html#c-and-vb-net, that involves adding certain alpr files into the project I'm using, but no luck so far--I haven't even been able to make an alpr object yet. Are there more detailed steps as to how to integrate openalpr into C# code? I'm using visual studio 2015.

I don't know if this is helpful to know, but I didn't compile the openalpr code myself. I tried for a while but was unsuccessful, so I just downloaded the already-built code. Don't know if that will make a difference as to what needs to be done.

Any help would be much appreciated! Thank you so much!

CKesterson

unread,
Aug 8, 2016, 4:25:38 PM8/8/16
to OpenALPR
I've since gotten all errors to go away in VS2015, but now I'm getting errors in Unity that "The type or namespace name 'openalprnet' could not be found.' I've included open-alpr-net.dll file in  the Assets... does anyone have any idea as to what else I'd need to do to get Unity to realize it's there? From everything I've read online, all that I should need to do is have the .dll file in the assets, and it should be good to go.

Thanks again for any hints!!

CKesterson

unread,
Aug 10, 2016, 11:13:07 AM8/10/16
to OpenALPR
I've now figured out that it is a .NET version issue. While openalpr is v4.0, Unity only supports through 3.5. Is there a way I can work around this? Would using the Web API be a workaround, or would .NET versions still be an issue? I'm pretty new to all of this so any advice would be much appreciated.

Thank you!

CKesterson

unread,
Aug 10, 2016, 11:29:37 AM8/10/16
to OpenALPR
*cloud API, not web API, sorry

Neo - Regular C# Developer

unread,
Nov 12, 2017, 6:44:05 PM11/12/17
to OpenALPR
Hi @CKesterson

Did you had any luck with C# project, I am in the same possion as you were, I could get ALPR reading from still images not from video stream.

Let me know
Neo

Юрий Мойсеев

unread,
Sep 25, 2018, 9:46:34 AM9/25/18
to OpenALPR
Hi. I just started my research. What i found:

1. You can try to add reference with mcs.rsp file in editor. But in my case that didn't work even after changing some preferences targeting the .NET 4.x
2. I found the source code of .NET dll, so i built that for .NET 2.0 and allowed to use OpenALPR API in C# code without any errors, but there is some additional issues. I could fix them but unfortunately that not allowed in my company for now.

Good luck you guys, who continue this thing! 

понедельник, 13 ноября 2017 г., 1:44:05 UTC+2 пользователь Neo - Regular C# Developer написал:
Reply all
Reply to author
Forward
0 new messages