Phreak87 / LeptonicaSharp

Full featured wrapper for leptonica 1.77.0
Other
8 stars 5 forks source link

can't load nuget package in vs_2017 #63

Closed hedonis closed 5 years ago

hedonis commented 5 years ago

When try PM> Install-Package LeptonicaSharp -Version 1.77.0.1

I get : Install failed. Rolling back... Package 'leptonicaSharp.1.77.0.1' does not exist in project 'WindowsFormsApp3' Package 'leptonicaSharp.1.77.0.1' does not exist in folder 'C:\Users\seba\source\repos\WindowsFormsApp3\packages' Executing nuget actions took 867,98 ms Install-Package : Could not install package 'leptonicaSharp 1.77.0.1'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.6. 1', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package autho r. At line:1 char:16

Can You help me?

Phreak87 commented 5 years ago

You can clone the repo and build the cs lib. Then you get a DLL with the wrapper. Copy this DLL and the leptonica DLL from the lib_lept folder to your project and add the LeptonicaSharp as library. Please give feedback so that I can close this issue

Phreak87 commented 5 years ago

The nuget contained library is .net 4 and outdated because of a few frequent changes last time. But you can compile the latest on any higher level like 4.6. make sure the processor architecture is the same as in your project. If you need more help please let me know.

hedonis commented 5 years ago

PM> Install-Package LeptonicaSharp -Version 0.0.0 install properly but i can't find otsu threshold or selCreateBrick(1, 50, 0, 0, 0)

hedonis commented 5 years ago

Ok. I did it like You siad. It look's good. I try how it works now.

Phreak87 commented 5 years ago

Selcreatebrick can be "new sel(...)" Or _all.selcreatebrick. for the other class functions remove the class (pix.pixdilate -> pix.dilate).