Xamarin.tesseract is not working in case of android. After taking the pic it takes too much time to give the result and also result is not coming properly. It is giving wrong data instead of correct text on the image. Can someone gives the working code for this or is there any other open source library for reading ocr in android and ios both in Xamarin forms.
Related
I have an app that lets users create a dynamic link (using firebase) to their information and that redirects to the play store first if they don't have the app installed yet. When the dynamic link gets created, it gets encoded in a QR code for easy sharing. Unfortunately some (not all) Android devices are cutting off a portion of the link so that it doesn't work.
So here is the QR code that gets generated:
After scanning it, some android devices show this on the screen:
If you select "copy", you get this text: "https://missionary.page.link?apn=com.quintessence.missionary&ibi=com.quintessence.missionary&link=https://missionary.page.link/missionaryDetails?missionaryID%3DnRLkLgbVQ94Af2uI2rQO"
This is the text that is supposed to be there, and if you then paste it in the browser, it works correctly and either opens the app or the google play store. If you select "Open in browser" instead, it cuts off a portion of the text and returns this:
Selecting the URL and copying it, shows that the last section of the text is getting cut off and it's trying to open this instead: "https://missionary.page.link/?apn=com.quintessence.missionary&ibi=com.quintessence.missionary&link=https".
Any help with understanding why this is happening and what I can do to prevent it would be great!
I have tried googling a solution but didn't find anything about text in QR codes getting cut off.
I am having problems using the Ikonli icon packs. I am creating FontIcon objects and then using those to set the graphics on buttons. Icons taken from the FontAwesome5 pack work great. Icons taken from the Material2 pack seem to shift somehow - for example, I try to get mdal-6_ft_apart but what actually gets displayed is mdal-loyalty. And no matter which Icon I load from MaterialDesign2, all I see is an empty box.
I'm running this through Eclipse, and everything looks fine when stepping through with the debugger. This is the value of the button graphic:
ObjectProperty [bean: mdal-6_ft_apart:15:0xffffffff, name: iconCode, value: MDAL_6_FT_APART]
and yet, on the screen, it's something completely different.
This is a Maven project using OpenJDK 16 and JavaFX 16. I've tried loading just a single icon pack instead of all 3, but no difference. Also, there are never any errors retrieving the icons. The ServiceProviders are all found, and the icons are available.
I made a small Hello World program and everything runs fine, so it's definitely an issue with my program and not the library. But I have no idea what the problem is, and I've been staring at this for almost 2 hours. Has anyone come across this before? I'd appreciate any help, because I'm out of ideas.
Answering this myself in case it saves someone else some time. I was installing the Ikonli library in order to replace the FontAwesomeFX library that is no longer available. I had gotten partway through replacing the icons when I ran the app in order to check the progress, and that's when I saw the errors.
The problem turned out to be an interference between the two libraries - FontAwesomeFX was throwing of Ikonli. The icon shift didn't actually occur until the code displayed a FontAwesomeFX icon, which made it seem a little random depending on the order I would open the dialogs when testing. I'm assuming an issue with the Service Handlers, though I'm not positive because I stopped troubleshooting once I realized the problem and just finished the replacement.
Once I stopped displaying FontAwesomeFX icons and the dependency was removed, Ikonli worked fine.
I have created a barcode scanner; That works fine. I am using Xamarin Forms and working with Android. I had recently received some barcode samples in photo format, however the photo's are not being recognized when I print them out and scan them.
Next, I would like to try to import the photos and use those as my background, to then see if it would recognize the barcode.
I am using ZXing.Net.Mobile and .Forms extension. Is there any file, or code I can implement to point to a filepath and then load that image as my background?
Thanks for any answers or suggestions.
If photos are not recognized than it must be something wrong with your code. I don't see a point to test this this way. In your application it wont work anyways. ZXing.Net.Mobile uses camera to intercept frames and decode them in real time to match qr code pattern.
I am developing xamarin.forms PCL app.
I want to select multiple images from gallery so for ios I use ELCImagePicker.
Everything works fine when I open gallery for first time. But when I open it for second time(for e.g. changing selected image), app crashes. I use messaging center to pass my list of image paths to PCL project.
At second time, I receive messages multiple times and then I get FATAL SIGSEV error.
I have referred this link. And it has been very useful to people when I searched related multiple image picker on google.
Why is this happening ? Please help
I'm trying to decode qr-codes in a PDF (generate by Scan2Mail with a Canon iR Scanner).
I know the quality is quite poor (see attached image), but with every single iOS app for qr-code scanning I can successfully scan the code within milliseconds filming the image below with the iPhone cam.
I tried to scan with zbarimg and zxing but nothing did work. Do you have ideas what to do? maybe enhance the image somehow with imagemagick?
It seems counter-intuitive that an image of an image decodes, when the original image doesn't. An app is seeing a stream of slightly different versions of the image. The original is damaged and distorted. The blur that results when the camera captures it can actually help remove the noise. Yes, zxing decodes this fine -- from the Barcode Scanner app.
Try running this through a light blur filter first.