Using phone camera to scan and extract text in web app - c#

I am making a .net web app. My attempt of taking a picture and trying to extract text from that picture has a terrible success rate. I see apps that let you scan a page into pdf. I want to use that approach using the users phone camera. I need help identifying the best free APIs that will help accomplish this.
I don't have any code yet; I don't want you to do it for me rather just help me find the resource. I'm new to this and here to learn and get educated.

The most popular open source ocr solution is Tesseract.
Here are 2 github links to Android and IOS open source solutions using Tesseract:
Android Github project
iOS Github project

Related

How can i implement Twain in a UWP App for scanning documents

Im trying to create an UWP App that allows the users to scan documents with TWAIN. I tried a few nugets such as Atalasoft DotTwain, NTwain, TwainDotNet and Saraff.Twain. All of them have samples made in WPF, Winforms... except the Saraff.Twain nuget that have a sample made in UWP.
The problem here is that when I run the WPF and Winforms samples all of them works pretty nice, basically is what I need to do but in UWP and when I try to use the code of the samples on my own App it doesn't build because it doesn't recognize a lot of classes even with the Using sentences at the start of my class.
The Saraff.Twain UWP sample doesn't build and i can't find another Twain UWP Sample on google.
Im not putting code because there is no particular problem but if you want it just leave a comment and I'll upload some.
Does anyone have used TWAIN in an UWP APP successfully? I'm very lost with it... Hope any of you have the key to the gate. Thanks.
UWP has its own document scanner API. In addition, it is possible to use Dynamic Web TWAIN in a UWP app. Check this blog: https://www.dynamsoft.com/codepool/uwp-document-scanning-web-twain.html

how to capture freehand writing in xamarin forms

I am working on an app to get free hand texts from a user and save as text file using xamarin forms but i am not quite getting any api or nugget or library for that any help will be appreciated
Check out the SignaturePad component.
Check out this guide: link
You can also check out this implementation of the signature pad here: link

Xamarin.forms .NetStandard How to play a video?

I currently developing a Xamarin.form app that use .NetStandard as code sharing technique.
On a certain point in the app, the app must show a video from a url. A video could take up to 5 minutes.
I currently can't find a way how I can play a video in my Xamarin.Forms app.
Most of the examples on the web using PCL with .NET Framework.
I tried This plug in, but it isn't fully supported for .NetStandard, since it is written for .Net Framework:
https://github.com/martijn00/XamarinMediaManager
I already managed to play a video on Android and iOs following this tutorial:
https://blog.xamarin.com/delivering-rich-media-experiences-xamarin-forms-video-player/
However, it can only play videos up to 15 seconds for free and in UWP, it seems to be a bit broken.
I simply cannot figure out how I can play a video up to 5 minutes using .Net Standard.
Can someone please explain step by step how I can show a video in a Xamarin.Form app using .NetStandard as code sharing technique?
Or If anyone could explain in detail how to make my own video control, that works on each platform, that would be fantastic.
Your help is really much appreciated.
You may want to have a look at LibVLCSharp which provides a netstandard target as well as well native controls for each platforms.
Disclaimer: I am the maintainer.
You can find a full tutorial how implementing a video(local or web) in your app
manually at Xamarin documentation
either there is a sample

Unity iOS making saved image show in photos

I have an image saved from my game at Application.persistentDataPath + #"/p.png" I am trying to make this visible in iOS, I have managed it in android using the Android wrappers in Unity C# but I have no idea where to start with iOS.
Is it possible for me to pass the path to my Image to iOS so that it will show up in the Photos app? If I need to write my own plugin does anyone have any decent documentation on how it's done?
If I need to write my own plugin does anyone have any decent
documentation on how it's done?
That seems like the only way. Make a plugin that can read and write byte array to Picture folder on the iOS. You can also use already made one from here that cost $10. This plugins works with iOS, Android and Windows Phone 8 and I recommend you got with it.
The fact is that I can't write the whole process here. You first need to know how to write and read from the photo folder. Here is a link for that.
Now you need to know how to call a C# function fro Objective-C and vice versa. Many tutorials for this.
http://twnkls.com/2016/04/11/creating-native-plugins-for-unity3d/
http://alexanderwong.me/post/29861010648/call-objective-c-from-unity-call-unity-from
https://www.quora.com/How-do-you-call-native-iOS-functions-from-Unity
https://stackoverflow.com/a/30946257/3785314

Is there an easy way to detect shake motions on Windows Phone 8?

I need to detect a shake movement on a Windows Phone 8 device, in order to launch a specific action. How can I do that ?
I found several mentions of a "ShakeGesture.dll" library made by Microsoft for WinPhone7, but the only place where it was available (AppHub) was replaced by the Dev Center website...
Thanks for your help!
That's odd. Looks like the AppHub to DevCenter rename broke the download links.
I've uploaded the library to my domain in the meanwhile until those links get fixed # http://JustinAngel.net/Storage/ShakeGestures.zip
Here's an example on how to use the Shake Gesture Library:
http://blogs.microsoft.co.il/blogs/arik/archive/2011/04/01/shake-gestures-library-a-windows-phone-recipe.aspx
You should be able to add a reference to the ShakeGestures.dll assembly to get started. If you're using the Windows Phone 8 SDK, I believe this library is included - you'll just need to add the reference.
UPDATE:
You should be able to download it with this link:
http://go.microsoft.com/fwlink/?LinkId=219094
I found that here. If you scroll down to "Locations and Sensors" about 2/3 of the way down, there's a link to download the gesture library as well as an example.
UPDATE 2:
Hmm. It appears that download link was the sample project. The ShakeGestures.dll doesn't seem to be in it either. I don't have VS2012 on my computer here at work, but if you do, you could open up the sample solution and see if it is referencing that DLL somehow, and maybe see where it points? It seems like it has to be using it...I just can't open it in VS2010.
Download ShakeGestureLibraryCS from Windows Phone Developer Samples:
http://code.msdn.microsoft.com/wpapps/Shake-Gesture-Library-04c82d5f
Download C# project and Build (for Release) to create the 'ShakeGestures.dll'
Add Reference to your WindowsPhone project.

Categories