-
Notifications
You must be signed in to change notification settings - Fork 742
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added InteropDotNet support #107
Conversation
I've merged your changes into a new branch One thing I wouldn't mind doing is updating the .net version to use 3.03 dlls so it's more or less on par with the mono version. I'll have a look and let you know how it goes. |
Quick update, I've had a more detailed look and it all looks good. I'll On Sat, Jul 19, 2014 at 7:18 AM, Andrey Akinshin notifications@github.com
|
WindowsLibraryLoader
. Now the Tesseract is cross-platform AnyCPU library. Fixed Working on Mono #23 .liblept168.so
andlibtesseract302.so
were taken from Ubuntu 14.04 repo (original filesliblept.so.4.0.1
andlibtesseract.so.3.0.3
)[DllImport(Constants.LeptonicaDllName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "pixcmapSerializeToMemory")]
public static extern int pixcmapSerializeToMemory(HandleRef cmap, out int components, out int colorCount, out IntPtr colorData, out int colorDataLength);
[DllImport(Constants.LeptonicaDllName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "pixcmapSerializeToMemory")]
public static extern IntPtr pixcmapSerializeToMemory(HandleRef colorData, int colorCount, int colorDataLength);
New signatures:
[DllImport(Constants.LeptonicaDllName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "pixcmapSerializeToMemory")]
public static extern int pixcmapSerializeToMemory(HandleRef cmap, out int components, out int colorCount, out IntPtr colorData, out int colorDataLength);
[DllImport(Constants.LeptonicaDllName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "pixcmapDeserializeFromMemory")]
public static extern IntPtr pixcmapDeserializeFromMemory(HandleRef colorData, int colorCount, int colorDataLength);