Hope you all doing fine. I want to develop an Flutter application to view all major types of documents which include; .docx, .ppt, .pptx, .doc, .xls, .xlsx, .pdf files I found two free plugin which are file_preview (https://github.com/aliyoge/flutter_file_preview/blob/master/android/src/main/java/zzaning/com/filepreview/LoadFileApi.java) and file_preview (https://pub.dev/packages/flutter_filereader) but the issue with these two is they both download some plugin at initial or at very first time when app start's up. Which only shows in log and I am not able to show it on loading screen plus second issue is when a document is loaded it displays in Chinese language which I can not get rid of.
Please help me out guys.
Because the Chinese develop the packages, so the language is mostly in Chinese.
For the issue when a document is loaded, it displays in the Chinese language which you can not get rid of, my solution is you just download the latest packages file inside the version archive menu here.
And then, open the file and translate each Chinese language manually using Google Translate.
After you've finished it, you can add that manually to your project.
As for another issue, you can (again) edit the file and display it like this. I hope it will help a little bit.
Related
I have checked out the forum a lot and there are many similar question to this, but none have the answer what I am looking for so hope someone can help me!
I am building an app with phonegap and it have previously worked fine. Now it was time for an update of just some text and images in it, but also decided to get the newest version of everything.
I can launch my app on android just fine, but as soon as I click on a link to another page (internal) I get the following error:
net::ERR_FILE_NOT_FOUND(file:///android_asset/www/html/feriehus.html)
It used to work with the following code in the index.html, but does not anymore...does anybody know why?
<li><img src="img\feriehus.png" width="40"></li>
Kind regards, Kiam
Edit: Added images to show their location:
the root of www folder where index.html is located
The location of ferirhus.html is located
Change folder name from html to some other name. Because html is a reserved word so it might be creating problem.
I'm looking for a possibility to browse the android API guides offline (with figures). I read several questions about this here (ex. 1, 2, 3...) and tried to get offline docs from the sdk folder or using a direct link. The problem with the actual version (23_r01) is that the images are often not displayed. For example in the page sdk/docs/design/index.html the image hero-material-design.png could not be displayed because of a bad src tag.
What I've tried:
Using the docs from the SDK folder
Direct download from https://dl-ssl.google.com/android/repository/docs-23_r01.zip
Saving the files using HTTrack (I'm getting errors here..)
What I would like to achive:
Download a correct version of the docs
OR "Repair" all the broken image paths in the html files
I would appreciate any help.
If thats still interested to you, just edit \docs\design\index.html, add .. before /design (it means the parent folder, one dot means the current), like that:
<img class="dac-hero-image" src="../design/media/hero-material-design.png">
I've build an application that uses Tesseract (V3.03 rc1) to identify some specific text strings. These are, unfortunately, printed on a custom font that requires that I build my own traineddata file. I've built the application on both iOS (using https://github.com/gali8/Tesseract-OCR-iOS for inspiration) and Android (using https://github.com/rmtheis/tess-two/ for inspiration as well).
The workflow for both platforms is as follows:
I select a bounding box on the preview screen for where I can crop out the relevant text, and crop the image accordingly.
I use OpenCV to get a binary image (using OpenCV's adaptive threshold function with the same parameters for both platforms)
I pass this binary image to Tesseract. Both platforms (Android and iOS) use the same traineddata file.
And yet, iOS recognizes the text strings perfectly, while Android keeps misidentifying certain characters (6s for Ss, As for Hs).
On both platforms, I use the same white list string, I disable load_type_dawg and load_system_dawg, and also choose to save the blob choices.
Has anyone encountered this kind of situation before? Am I missing a setting on Android that's automatically handled in iOS? Is there something particular about Android that hasn't crossed my mind?
Any thoughts or advice would be greatly appreciated!
So, after a lot of work, I found out what was wrong with my Android application (thankfully, it wasn't an issue with Tesseract at all). As I'm more familiar with iOS apps than Android, I wasn't sure how I could load the traineddata file onto the application without requiring the user to have the file loaded on their external storage device. I found inspiration in this project (http://www.codeproject.com/Tips/840623/Android-Character-Recognition), as they autoload the trained data file.
However, I misunderstood how it worked. I originally thought that the TessDataManager did a file lookup on the project's local tesseract/tessdata folder in order to get the trained data file (as I do this also on iOS). However, that's not what it does. It, rather, checks the internal file structure (data/data/projectname/files/tesseract/tessdata/traineddatafilegoeshere) to see if the file exists and if it doesn't, it copies over the trained data file it keeps in the Resources/Raw directory. In my case, it defaulted to the eng file, so it never read my custom font file.
Hopefully this helps someone else having similar issues. Thanks to Robin and RmTheis for all of your help!
I have to create an Android app where we can implement internationalization? For example, suppose there is an app where we can login and move to the next page. I want to change the the language from English to Chinese, how do I do that? It should be applied to the whole application i.e the login page as well as the next page.
Please Help guys, if you have an example please do share. Thank you in advance.
The solutions lies in using the locale of the user, and providing associated text using xml files in language specific folder.
Have strings.xml,dimens.xml,fonts.xml etc in Project--> res--> values-?? folder where "??" represents the locale of the user. if you want to support english,spanish,etc,you should have folders values-en,values-es,etc. all in the Project/res/ to support them.
You can have a look at this link.
I want to make an application in that text is extracted and converted into another language like below app at time of camera is viewing like below screen shot of below app in play store CamDictionary
Below is the screen shot
Look in this camera is scanning and translating is done at real time can anybody suggest me example like this
I googled and find out one library
https://github.com/komamitsu/Android-OCRSample
but in that it suggested that
checkout http://code.google.com/p/tesseract-ocr/ and copy traineddata file(s) into "/mnt/sdcard/ocrsample/tessdata/" on your Android like this:
adb push ~/src/tesseract-ocr-read-only/tessdata/eng.traineddata /mnt/sdcard/ocrsample/tessdata/
I have searched out whole thing but there is no any file that should i have to put in /mnt/sdcard/ocrsample/tessdata/ can any body suggest me what is that file because i have checkout following link
svn checkout http://tesseract-ocr.googlecode.com/svn/trunk/ tesseract-ocr-read-only
but it contain so many source code for windows app also and there is like more than 700 MB
i want just andorid files that should i have to put in SDCARD please any body help me
is there any other solution than also please suggest me