Re: trying to add camera support to my application with no luck

2020-09-10 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector


  


Re: trying to add camera support to my application with no luck

@9There's a few options available [here], including PyOCR. Another alternative could also be [PyTorch], there's a few OCR projects made with it on github, like [this one].

URL: https://forum.audiogames.net/post/569482/#p569482




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: trying to add camera support to my application with no luck

2020-09-10 Thread AudioGames . net Forum — Developers room : Nuno via Audiogames-reflector


  


Re: trying to add camera support to my application with no luck

UWP OCR. My toy thrown together in 5 minutes supports it.        public static async Task UWPRecognize(string PathToFile, string LangTag)        {            var UWPEngine = OcrEngine.TryCreateFromLanguage(new Windows.Globalization.Language(LangTag));            var FileStream = await Windows.Storage.StorageFile.GetFileFromPathAsync(PathToFile);            var UWPStream = await FileStream.OpenAsync(Windows.Storage.FileAccessMode.Read);            var Decoder = await Windows.Graphics.Imaging.BitmapDecoder.CreateAsync(UWPStream);            var Bitmap = await Decoder.GetSoftwareBitmapAsync();            var OcrResult = await UWPEngine.RecognizeAsync(Bitmap);ShowResultWND(OcrResult.Text);            return "OK";        }You'll need microsoft.sdk or whatever that lib is called for this to work.Shall you need more help, ask away

URL: https://forum.audiogames.net/post/569214/#p569214




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: trying to add camera support to my application with no luck

2020-09-09 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector


  


Re: trying to add camera support to my application with no luck

@9the one built into Windows.  I don't know what it's called but that's what NVDA uses nowadays.It's pretty normal to pay for tech stuff, especially this sort of thing where the primary asset is machine learning expertise and/or access to cloud resources.

URL: https://forum.audiogames.net/post/568908/#p568908




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: trying to add camera support to my application with no luck

2020-09-09 Thread AudioGames . net Forum — Developers room : bgt lover via Audiogames-reflector


  


Re: trying to add camera support to my application with no luck

Well, it's done, it was for quite a long time. Problem is, however, that what I'm using for ocr, iron ocr, requires me to pay them to give me a license key. Sorry, but I've never herd of such things before, paying for a programming sdk? wtf? well, I guess I was using too many open source libs, or I've not been a programmer long enough to know the real world as it is. Honestly, all of those might be true, so yeah.The app works only in vs debug mode, otherwise it throws an iron ocr license exception. So, if I could give it to you guys, I would, it's not a freeking big tool after all. But the only way I could do it as things stand right now is to either crack the library(such a weird thought), which I absolutely refuse to do, or to use tesurect and be done with it, but even the ocr of a simple printed sheet of paper is most of the time simply unrecognisable with it, so sorry tesurrect but not using you!I've herd and tryed to use leadtools, which is even bigger and more powerful, but again, I had to pay even more, so nope, or at least not untill I turn of legal age to own a paypal account or whatever. So, do you guys know of any medium quality, free and not overly complicated to use OCR library? If so, since this topic is resurrected to hell and beyond anyway, can you give me recomendations? note: preferably libs that can work with the dotnet core or dotnet standard, since another cross-platform app is coming, a kind of pdf reader.

URL: https://forum.audiogames.net/post/568850/#p568850




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: trying to add camera support to my application with no luck

2020-09-09 Thread AudioGames . net Forum — Developers room : Deucalion via Audiogames-reflector


  


Re: trying to add camera support to my application with no luck

When the application is launched, please put a download link.

URL: https://forum.audiogames.net/post/568833/#p568833




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: trying to add camera support to my application with no luck

2020-04-02 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector


  


Re: trying to add camera support to my application with no luck

I've mostly messed around with the Python variant of OpenCV, otherwise i'd have more to say about your issues. I noticed some time ago that there is a market of available single board 3D stereo camera's available on amazon from sellers like ELP or SVPRO [here], they mostly appear to be for either robotics or VR headsets like the VIVE. I picked one up which also supports infared, though that apparently requires a separate attachment. The biggest problem i've had so far is that there's little or no documentation for it, and the OpenCV doc's on calibrating wide angle stereo camera's is complete garbage, that and the cameras have a limited thermal range. I suppose on the plus side I can get simgle cameras to work for my home brew sonifier rig.

URL: https://forum.audiogames.net/post/515388/#p515388




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: trying to add camera support to my application with no luck

2020-04-02 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector


  


Re: trying to add camera support to my application with no luck

@5You can't do reliable head angle detection without a 3D camera, which exists, but almost no one has it.  Also it will work more or less reliably depending on the person and the camera--it's not a reliable input method.  The issue hasn't been the computing power, the issue is that cameras are fundamentally bad at depth unless you have two of them or a special setup that projects infrared light, which is why the Kinect exists.Additionally I suspect you'd find that most blind people can't look directly at the camera reliably to start with, and probably don't have the right lighting (or the knowledge to get the right lighting).  I used to have vision enough to benefit from light, and these days even I forget to turn them on.Aprone went down those routes before the See Monkey I believe, and failed for these reasons.

URL: https://forum.audiogames.net/post/515225/#p515225




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: trying to add camera support to my application with no luck

2020-04-02 Thread AudioGames . net Forum — Developers room : bgt lover via Audiogames-reflector


  


Re: trying to add camera support to my application with no luck

@4: yeah, you may be right, after all, this is not a general programming discussion forum. On the other side, however, ocr applications see the most of their activity and growth in blind related stuff nowadays, after all sighted people can see pictures, they needn't bother with so much textual information.and besides, you are right, this is not an audio game specific problem yet, but it may become one pretty quickly.For example, some time ago, I had an idea that no one, to my knowledge, ever thought of, needless to speak about implementing it.Now that cameras are just becoming faster and better and facial recognition is a thing, why can't we use the camera to coordinate movement based on what angle is the persons face at, how far did they move their heads since the last time we've checked? basically, with the help of the camera and new technologies, we can use the whole human body as a huge, multy part, multy functional joistick of sorts. With this idea, even audiogames can become more interesting, because you don't need to see in order for the camera to work, it only detects your movement, not whether you're looking at it.in this case, what would happen if the camera library will throw exceptions like that?O, and one more question, @4: isn't OpenCV also wrapped for python use? if so, does it throw exceptions like that there too? I'll check it once I get back to a more speedy internet connection, but till then, I just have to assume it's my computer's fault.

URL: https://forum.audiogames.net/post/515154/#p515154




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: trying to add camera support to my application with no luck

2020-04-02 Thread AudioGames . net Forum — Developers room : pauliyobo via Audiogames-reflector


  


Re: trying to add camera support to my application with no luck

In these cases, I'd suggest using stackoverflow. I am not saying this to be a dick, but you'll most likely get an answer way faster and probably even more accurate than you would here. Especially if the issue you're having is not audiogame related.

URL: https://forum.audiogames.net/post/515141/#p515141




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: trying to add camera support to my application with no luck

2020-04-02 Thread AudioGames . net Forum — Developers room : bgt lover via Audiogames-reflector


  


Re: trying to add camera support to my application with no luck

Doesn't anyone have an answer?

URL: https://forum.audiogames.net/post/515132/#p515132




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: trying to add camera support to my application with no luck

2020-04-01 Thread AudioGames . net Forum — Developers room : bgt lover via Audiogames-reflector


  


Re: trying to add camera support to my application with no luck

Hy again!I finally think I got it right, but can't be shure yet. How do I know my camera is running?any answers as to that exception? it disappeared as suddanly and inexplicably as it appeared, but I can't be sure it wouldn't come back sooner or later, so any advice regarding that thing would be welcome.

URL: https://forum.audiogames.net/post/514986/#p514986




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


trying to add camera support to my application with no luck

2020-03-31 Thread AudioGames . net Forum — Developers room : bgt lover via Audiogames-reflector


  


trying to add camera support to my application with no luck

Hy everyone!as you might have noticed, I was pretty absent from this comunity nowadays. Well, that is because I was developing my first serious project, an ocr application called image power.image power is my first non game-related piece of usable software, so bare with me for the first few releases, I am new to this stuff.besides the usual features you might expect from an ocr program(image and pdf document scanning, text extraction, etc), the thing I want to include in image power is something that I've seen plenty much used in phones, but never, to my knowledge, in laptops and PCs in general, the ability to capture fotos for processing directly from the users webcam, either embedded in the laptop or external.The application development has gon, surprisingly, pretty well indeed, but for the camera problem.for a verry long time, I searched for a passable solution for accessing the camera from within a winforms application, but couldn't find anything that isn't either for uwp or uses some huge sdk that includes far many things that I wouldn't need, thus just occupying unnecessary space both in the executable itself and the mapped memory sections.finally I settled on the OpenCV library along with it's wrapper for .net, OpenCVSharp. Here arises my problem, though.Since I didn't want to put my project at risc, I creatted a new console application to test it on. Once I installed those two packages(OpenCVSharp4 and OpenCV runtime windows), the code builds successfully, but it throws a dll not found exception, exactly as if I wouldn't have installed the runtime. Any ideas?I am pasting here the program.cs file just in case.//beginning of program.cs:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;using System.Threading.Tasks;using System.Drawing;using OpenCvSharp;using OpenCvSharp.Extensions;namespace CameraTest{    public class CameraDriver    {        VideoCapture capture;        Mat frame;        Bitmap image;        public void CameraInit()        {            frame = new Mat();            capture = new VideoCapture(0);            capture.Open(0);        }//func        public Bitmap StartCapture()        {            do            {                Thread.Sleep(300);            }            while (capture.IsOpened() == false);            capture.Read(frame);            image = BitmapConverter.ToBitmap(frame);            return image;        }        public void CameraRelease()        {            capture.Release();        }        //other functions    }//class    class Program    {        static void Main(string[] args)        {            CameraDriver drv = new CameraDriver();            drv.CameraInit();            var Img = drv.StartCapture();Console.WriteLine("got the image. Now we shall ocr it, part not relevant here because it's out of context");            Console.WriteLine("\n" + "press any key to continue...");            Console.ReadKey();            drv.CameraRelease();        }    }    }//end of program.csI really hope there is an overlooked step on my side, not something wrong done by the package manager, installing the unix version of the runtime instead of the windows one, not for any particular reason, but I got something about libopencvextrn.so, or something like that during the package install process.O, and here is the exception text for those of you who are wandering.//begin of exception textUnhandled Exception: System.TypeInitializationException: The type initializer for 'OpenCvSharp.NativeMethods' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'OpenCvSharpExtern': The specified module could not be found. (Exception from HRESULT: 0x8007007E)   at OpenCvSharp.NativeMethods.redirectError(CvErrorCallback errCallback, IntPtr userdata, IntPtr& prevUserdata)   at OpenCvSharp.NativeMethods.LoadLibraries(IEnumerable`1 additionalPaths)   at OpenCvSharp.NativeMethods..cctor()   --- End of inner exception stack trace ---   at OpenCvSharp.NativeMethods.core_Mat_new1(IntPtr& returnValue)   at OpenCvSharp.Mat..ctor()   at CameraTest.CameraDriver.CameraInit() in Program.cs:line 21   at CameraTest.Program.Main(String[] args) in Program.cs:line 48Press any key to continue . . .//end of exception text.I had to edit that text, removing the real path that could identify where I keep my projects and such, you know, less easy for attackers to extract any useful info out of the exception text, small as they may be, those paths can be really compromising for my project lol.

URL: https://forum.audiogames.net/post/514486/#p514486




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector