I'm trying to use Iron OCR's library for OCR, I came across this error while trying to do the basics.
AutoOcr OCR = new AutoOcr() { ReadBarCodes = false };
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
var Results = OCR.Read(#"Screenshot.png");
Console.WriteLine(Results.Text);
OCR Exception:Iron OCR InstallationPath Permission Error 1772. Could not deploy and run IronOCR resources to path '' for user 'MYPCNAME\MYUSER'. This can be fixed globally by setting IronOcrInstallation.InstallationPath to a directory on disk with file read and write permissions. Please refer to documentation at http://ironsoftware.com/csharp/ocr/docs/html/P_IronOcr_IronOcrInstallation_InstallationPath.htm
This is the full error I get every time I try to run this code. If anyone could give me a hand, I'd appreciate it. Thanks!
That permission message is pretty misleading and wrong for most of the cases, I solved it by installing the c++ runtime (32+64) and it works like a charm!
In my case it was due to using .net core. IronOcr does not support it, use .net framework instead. Unfortunately they didn't bother to document this clearly.
Thanks staind852 for the suggestion on github
Related
I’m new to Cloud9 and I’m facing some issues.
I’m attempting to run the C# code on the IDE and am failing to do so, I think I know why but I cant seem to be able to resolve the issue.
The picture uploaded below should have everything needed to solve the problem
enter image description here
Upon further research, I found a link that goes through a step by step process on how to install .NET core. However, I'm having issues, with setting the project template using this code for the terminal dotnet new console -lang C#
It starts decompressing then stops at 99%. (as indicated in image below) The first error that pops up states that System.IO.IOException: No space left on device not sure what to do with this though.
https://imgur.com/a/30Vh6Eu
I kept on attempting the same code and it has managed to complete the decompressing stage only to start resetting again at the Expanding stage. (Refer to image below).
https://imgur.com/a/UMtpYow
Run C# is not yet supported on Cloud9 IDE
https://docs.c9.io/docs/supported-languages
I think #shingo is correct to say C# is not supported BY DEFAULT. It is possible, however, to make it happen as shown in the links below, but not advisable as there is little help out there. I wouldn't do it if I were you.
blog help
youtube
aws documentation not specifically about c# but related
I want to display live image from the usb PC webcam using C# windows application in Visual Studio 2010. I have searched about that and find the link http://channel9.msdn.com/coding4fun/articles/Look-at-me-Windows-Image-Acquisition but when i tried this code
WIA.CommonDialog class1 = new WIA.CommonDialog();
Device d = class1.ShowSelectDevice(WiaDeviceType.UnspecifiedDeviceType, true, false);
if (d != null)
{
settings.DeviceID = d.DeviceID;
settings.Save();
}
I am getting the giving compilation error
error CS0103: The name 'settings' does not exist in the current context
And I am not able to find out the solution for this error.
Can anybody body please tell me what would be the solution for this error?
And Is there any other best method to display live images from usb webcam?
Any help would be appreciated....
Thanks in Advance..
It looks as though you haven't defined a settings object, however it doesn't seem to be in the tutorial either. Personally though I would use AForge.NET library as this provides an extremely easy interface to webcams.
http://aforgenet.com/
Tutorial: http://vimeo.com/7526663
Thanks
AForge.NET is very powerful library. But for testing purporse or simple project you could use WIA. Take a look at this tutorial - small example how to start
COM Excel AddIn, C#, VS2008
The error happens occasionally when I install/uninstall my AddIn.
sometimes I see Error 1001 the specified file can not be found
Anyone know what causes these and how to fix? thanks
I use windows installer
http://msdn.microsoft.com/en-us/library/2w2fhwzz%28v=VS.90%29.aspx says if use [TARGETDIR], it should be like "[TARGETDIR]\" or "[TARGETDIR] ". I simply use /filepath = "[TARGETDIR]myinstallfile" in CustomActionData
What I do not understand is it works almost all time and fails occasionally
Also even if I change this to including space or backslash, I can't tell if that fixes issue since the issue does not happen every time. Anyone has experience? thanks
I found this and it fixes the issue though I am not sure I ever use DDE in my program
http://sympmarc.com/2010/02/04/microsoft-excel-error-there-was-a-problem-sending-the-command-to-the-program/
Then I found this http://www.opendylan.org/documentation/opendylan/interop2/inte_278.htm
It talks about COM Server
so I went to cmd, type in "Excel.exe /RegServer", then the error disappears.
I am not really not sure if this solution works for all cases.
In fact, I am concerned that I miss sth in installer.
Here is a Microsoft Support page related to an issue which looks quite similar to yours. So for me it looks like a bug in Excel rather than in your installer.
The article is quite large, but it boils down to making sure that:
your Excel app is not running with elevated rights
advanced setting "Ignore other applications that use Dynamic Data Exchange (DDE)" is unchecked
Other than that you might try to repair Excel installation or follow the advice given in this thread of ASP.NET forums to fix the registry for Excel installation.
I hope it helps someone facing similar issues.
If you get this type of error when uninstalling a VS setup project MSI, then the most likely reason is that TARGETDIR is not preserved between the install and the uninstall, therefore it has no value, and attempts to use it in an uninstall custom action will result in failure to find the file. The easiest solution (apart from always installing to known locations such as common files etc) is to save TARGETDIR to the registry and retrieve it later. In the VS IDE you can create a registry item with the value [TARGETDIR] to have it resolved at install time.
I'm trying to grab my files from isolated storage but unfortunatly it is pulling in all the files not just the specified ones from the pattern.
I'm using:
foreach (string fileName in storage.GetFileNames("*.item"))
Is this a known bug or am I just doing something wrong?
PS. The use of wildcards is essential
Any help very much apprieciated,
Thanks!
I'm not sure why it is not working. But you can try this one as well:
storage.GetFileNames().Select(fileName => fileName.EndsWith("item"));
There is a IsolatedStorage search pattern bug in the final SDK release. Have a look at this post - http://blogs.compactframework.de/Peter.Nowak/2010/09/18/WP7+Final+SDK+Bug+IsolatedStorageFile+And+Ldquosearchpatternrdquo+And+A+Fix.aspx
HTH, indyfromoz
This is a known issue. You'll need to either structure your files into folders if you want to limit what's retrieved or test/filter the filenames before loading them.
Looks like a bug in the CTP/Beta versions of IsolatedStorageFile.GetFileNames(string pattern)...
http://blogs.compactframework.de/Peter.Nowak/Trackback.aspx?guid=4d8d9b73-619f-43c7-bf6c-12429327206b
This API bug has been fixed in the release of the Windows Phone 7.1 SDK (Otherwise known as the "Mango" release).
Your code will work fine now.
i was looking for some namespace extention to extend using c# (.net) but didn't find much help online except Galaxy Filesystem tooklkit. which are vc++ based but comes with c# and java wrapper classes... which helps me alot to start and i did.
i have extended that enough now and made installer to install. it get installed successfully but don't know why, when i open it, system get stuck... :( i thought my modified version might have some problem so i tried to run Galaxy filesystem toolkit's author original version and it responded in same way as mine do :D :(
now feeling bit helpless as even author is not responding my queries regarding my queries for some reason...
any help would be really appreciated....
FYI: i need to have Gmail drive like stuff...
Do not implement shell extensions with C# or anything that uses a framework.
If you do, you will break a lot of applications!
See here for why you must not do that.