{"id":461,"date":"2018-08-06T15:52:38","date_gmt":"2018-08-06T13:52:38","guid":{"rendered":"https:\/\/craftcoders.app\/?p=461"},"modified":"2024-08-14T13:38:30","modified_gmt":"2024-08-14T11:38:30","slug":"opencv-tesseract-android-computer-vision-for-dummies","status":"publish","type":"post","link":"https:\/\/craftcoders.app\/opencv-tesseract-android-computer-vision-for-dummies\/","title":{"rendered":"OpenCV & Tesseract: Android Computer Vision for Dummies"},"content":{"rendered":"

Introduction<\/h2>\n

I got to know OpenCV as I investigated into computer vision solutions for a little startup called robodev GmbH (see here<\/a>). There I developed possible ways for real-time object recognition and computation of angle and position of the recognized object. I fell in love with C++ and its possibilities to realize high-performance applications. Awhile I started digging further into Android development in Java. Due to my experience as a mobile (games) producer at Goodgame Studios, I’m driven by the possibilities and potential of mobile solutions, so plenty of awesome app-ideas get born in my brain. Now is the time I make my ideas come to life.<\/p>\n

\"Come<\/p>\n

I wrote my first blog post about how I got into programming (see here<\/a>) and how you can do that too, even when you’re not from the IT-field. In this post, we will play around with OpenCV in Android. Since I didn’t have a small use-case in mind for the vast feature-list of OpenCV I’ll keep that part simple.<\/p>\n

For my first app idea, reading business cards could be a neat side-feature, and as I heard that OpenCV and Tesseract are a powerful team – process pictures with OpenCV and read texts with Tesseract OCR – I saw an excellent opportunity to put both into a thin app.
\nIn this blog post, I will show you how to write that app all by yourself, step by step. You will learn to use C++-code, OpenCV and Tesseract OCR on Android.<\/p>\n

What is OpenCV?<\/h3>\n

OpenCV is an open-source computer vision library. It has a mighty feature-set, starting with simple image processing over object-, face- and feature recognition, 3d-calibration, and visualization up to machine learning and more. There is a big community with scientists, professionals, and hobbyists maintaining a comprehensive documentation – helpful for everyone, including beginners (see here<\/a>). I was more than happy realizing that it supports Android development, next to C++, C, Python, Scala, Java. Unfortunately, the inbuilt OCR is not known to be very mighty, therefore I decided to combine the strengths of OpenCV’s image processing with another library, called Tesseract (as a Marvel Fan I really like that name).<\/p>\n

\"Loki\"<\/p>\n

What is Tesseract OCR?<\/h3>\n

Tesseract is a free software, command line program for Linux, Windows, and next to the support of 100+ different languages, it was considered the most accurate open-source OCR available in 2006. In 2011 a brave man called Robert Theis released a fork version called “tess-two” of Tesseracts OCR Android tools, maybe not knowing that just 2 years later no one would work on Tesseract Android Tools anymore (the last commit was made 2013). Thanks to Robert Theis we can enjoy the opensource library up till today, updated, with new features and easy to use. So let’s get to work and get the setup of your Android Studio done:<\/p>\n

OpenCV Part<\/h2>\n

Setup Android NDK<\/h3>\n

To be able to use OpenCV in its pure form we first should setup Android NDK properly, and yes… we’re gonna write C++-Code in our App \ud83d\ude09 \"AAAHHH\"<\/p>\n

After creating a new Empty Activity Project use the Android Studio SDK Manager (Tools -> SDK Manager -> SDK Tools<\/code>) for installing the necessary Tools: NDK, CMake, and LLDB. Mind the location of your SDK though – you’ll need that for the next step. After applying your changes a long download of around 700MB will start – don’t worry, that is as intended.
\n\"sdktools_setup\"<\/p>\n

Next time you wake up from sweet dreams maybe the download is over and you can keep working. Now you need to add the location of your Android NDK. Write it into Files -> Project Structure -> SDK Location -> Android NDK<\/code> location. Yes, you just saw the needed path: it is the SDK location + \/ndk-bundle<\/code>.<\/p>\n

\"Android<\/p>\n

There you go. Your first step to glory is over. The next stuff is going to be a bit more tricky. OpenCV – here we come!<\/p>\n

Setup OpenCV<\/h3>\n

To setup OpenCV, the first step is to download the latest release of the library from their page: OpenCV Releases<\/a> (at this point it’s 3.4.2). Unpack the zip, preferably into the Android SDK folder (so you have it all in one place) and import that stuff, as a module, into your project: File -> New -> Import Module<\/code>. Navigate in the next dialogue that pops up to the java-folder of the just unpacked module, i.e. mine is \/home\/soeren\/Downloads\/OpenCV-android-sdk\/sdk\/java<\/code> (on Linux). If you’re correct the name of the library will show up and it looks like the following (ignore “Project already….” in that pic):<\/p>\n

\"import<\/p>\n

Hit “Next” and “OK” as long as they ask you stuff, keep going with the default checkmarks until you finally finish. Now, add the module as a dependency to your app. At File -> Project Structure -> app -> Dependencies -> + -> Module dependency<\/code> you will find OpenCV shown in a pop-up.<\/p>\n

\"add<\/p>\n

Next step is to correct the build.gradle<\/code>-file of the OpenCV Library (you will find it right under your app build.gradle<\/code>-file). Align the fields compileSdkVersion<\/code>, minSdkVersion<\/code>, and targetSdkVersion<\/code>, so they are matching with the build.gradle<\/code>-file (app). Mine looks like this:
\n
build.gradle (openCVLib…) for initial setup<\/a><\/p>\n

Now you create a directory in your project src\/main\/jni. In there you create a file called Android.mk<\/code> and another called Application.mk<\/code> – to tell the NDK tool to build native code.<\/p>\n

\"where<\/p>\n

Write the following code into the Android.mk<\/code>-file:
\n
Android.mk for NDK and OpenCV setup<\/a><\/p>\n

Write your Android NDK path into NDK_MODULE_PATH<\/code> and replace the OPENCV_ROOT<\/code> according to yours. Later we will add the LOCAL_SRC_FILES<\/code> name, but for now, we can leave it empty. Then modify the Application.mk<\/code>-file:
\n
Application.mk for NDK setup<\/a><\/p>\n

Now you can tell your build.gradle<\/code>-file (app) to compile C++-code to .so<\/code>-files into the jniLibs folder. Do that by writing this…
\n
build.gradle (app) File for OpenCV setup<\/a>
\n…into your build.gradle (app)<\/code> file, by overwriting the default buildTypes-part. Remember to change the ndkDir value to your own. Don’t hesitate to process the gradle-sync, but if you try to build your app now you will get a wonderful error. Something like Process 'command 'PATHTONDK\/ndk-build'' finished with non-zero exit value 2\"<\/code>. This cryptic error messages did cost me quite some patience, but don’t worry. This is still as expected because we didn’t give in any LOCAL_SRC_FILES<\/code>. That’s what we’re going to do now. For the sake of convenience, we’re going to use javah as an external tool. For doing so, navigate to File -> Settings -> Tools -> External Tools -> +<\/code>. Add the javah tool like this:<\/p>\n

\"javah<\/p>\n

Fill the parameter the following
\n* “Program”: the path to your javah installation (with Linux you can find out the path typing which javah<\/code> into a terminal)
\n* “Arguments”: -v -jni -d $ModuleFileDir$\/src\/main\/jni $FileClass$<\/code>
\n* “Working directory”: $SourcepathEntry$<\/code><\/p>\n

After successfully setting javah up, write a little test function into your MainActivity<\/code>:<\/p>\n

public static native int test();\r\n<\/code><\/pre>\n

Use the javah-tool via right-click on test()-> Android Tools -> javah<\/code> and you generate a corresponding header file and can find it in your jni-folder. Copy the name of that file into your Android.mk<\/code>-file to LOCAL_SRC_FILES<\/code>, mine is called com_example_android_MYAPPLICATION_MainActivity.h<\/code>, yours will be something close to that, I guess.
\nNow, run and pray that you didn’t make any path- or copy-paste-mistake. If something is not working and you get a cryptic error-message – check all the paths again, and when that doesn’t help, start over again – been there… done that… can happen to everyone! Just don’t give up. \ud83d\ude42
\nIf it builds successfully and a “Hello World!” is smiling from your Device-Screen up to you: YEAH!!! You’ve done great so far. The actual fun starts now!<\/p>\n

Setup the Camera<\/h3>\n

To use the camera we’re going to implement some code. Initially we implement our MainActivity and its XML-structure. This is going to be a small button on an empty screen, nothing more. But there is more to come! I prepared a gist for you, where you can simply copy\/paste the code into the corresponding files: MainActivity for initial setup<\/a> (don’t forget to change the package name)<\/p>\n

Our next step is to create a new empty Activity for working with the camera, let’s call it CameraActivity<\/code>. Here we will call the camera and have fun with OpenCV and tess-two later, but for now, we will only call the camera. Copy the code from the following gist into the corresponding files: CameraActivity initial setup<\/a>.<\/p>\n

As you can see, we really should take care of state changes, due to the fact that the camera is pretty demanding to run constantly. New to you will be the onCameraViewStarted<\/code>, onCameraViewStopped<\/code> and onCameraFrame<\/code>-methods. Here you can directly interact with the camera input.
\nIn our MainActivity<\/code> we will call the CameraActivity<\/code>, by replacing the \/\/ do stuff here<\/code> with the following code:<\/p>\n

Intent intent = new Intent(MainActivity.this, CameraActivity.class);\r\nstartActivity(intent);\r\n<\/code><\/pre>\n

Well done! You should be able to run the app now. And if you press the button… wait! \"OpenCV<\/p>\n

What is this? Ahhh!! We forgot the permissions, can it be it’s the permissions?<\/p>\n

Get the permissions for OpenCV<\/h3>\n

So for getting the permissions, we will check and if necessary ask for them in the MainActivity<\/code>, when the user presses the button. Modify the MainActivity<\/code> with all the uncommented code at their proper position (as shown with the comments): Permissions in MainActivity<\/a><\/p>\n

The last step to get the permissions is to touch the AndroidManifest.xml<\/code>: Manifest for camera permissions<\/a><\/p>\n

Okay, let’s see if this was the mistake and run the app…Asking for permissions seems to be working but…\"Package<\/p>\n

Oh come on! Nooooo!! Press “No”! We don’t need that ominous “OpenCV Manager”! We already have the whole library inside our app.<\/p>\n

\"oh<\/p>\n

Ok ok…calm down. We can easily correct the rude OpenCV behavior:<\/p>\n

Ignore OpenCVManager<\/h3>\n

So one of the most useless features of OpenCV is, that it checks if the device it’s running on has the OpenCV library installed, and if not, it won’t work until the OpenCV Manager App is installed. Since we put the whole library into the actual app, we don’t need that anymore, and yet, due to the fact that the library isn’t loaded completely when it checks it causes this message. With the following gist, we override the onPackageInstall<\/code>-method of the BaseLoaderCallback<\/code> class to prevent the app to trigger the installation. Add the following uncommented code into your CameraActivity<\/code> right into the BaseLoaderCallback<\/code> class:
\n
BaseLoaderCallback-class override the onPackageInstall-method<\/a><\/p>\n

Now run the app again. If you didn’t mix up some code it should finally look like this:<\/p>\n

\"First<\/p>\n

Good job! But no time to celebrate: Somehow the camera orientation and size makes you feel a bit dizzy, right? We are getting our hands dirty and change something right inside the OpenCV library to fix this one. Find the class CameraBridgeViewBase<\/code> here:<\/p>\n

\"CameraBridgeViewBase<\/p>\n

Look for the method deliverAndDrawFrame<\/code> and replace it with the following code: Adjusting rotation and scale of the camera<\/a><\/p>\n

Yeah! How wonderfully straight it looks like this, right? It somehow feels like the first time we see stuff through our camera. If your camera view seems a bit too small or big, you can simply change the mScale value accordingly. If you made it till here, congratulations! Figuring out the whole procedure till here cost me around 2 days of my life! I’m glad to make sacrifices for you, though \ud83d\ude09 The next part is going to be much easier!<\/p>\n

Use the OpenCV library for image processing<\/h3>\n

Let’s start putting some functionality into our app and add some more buttons to our activity_camera.xml<\/code> and corresponding listeners to our CameraActivity<\/code>:
\n
Adding function buttons, listeners and call OpenCvMaker methods<\/a><\/p>\n

Don’t mind the errors yet, we will get to those now. Create a Java class with the name OpenCvMaker.java<\/code> and add the following code (and again, remember to change the package name):
\n
Create an OpenCV manager class<\/a><\/p>\n

Now delete the previously generated header file, from as you set up the native test()<\/code> method with the javah tool.<\/p>\n

\"Generated<\/p>\n

Navigate to your OpenCvMaker<\/code> class, use the javah tool on one of the native methods (i.e. makeGray(long......)<\/code>) with right click -> Android Tools -> javah<\/code>. A new header file will get generated. Go to this file and make the following changes:
\n
Add methods to the header<\/a><\/p>\n

Then, inside of the jni-folder, create a .cpp<\/code>-file (without header) and call it the same as your header and add the following code to it:
\n
Implementation of OpenCV methods in C++<\/a><\/p>\n

And last but not least, copy the name of this .cpp<\/code>-file (including the “.cpp<\/code>“!!) and set it as your LOCAL_SRC_FILES<\/code> inside your Android.mk<\/code>-file.<\/p>\n

Run your app and…tadaaa! Now you can play around with four of the most common functions of OpenCV. Well done!<\/p>\n

\"celebrations\"<\/p>\n

You just learned how to use C++-code AND OpenCV functionality inside your Android app. If this is all you wanted to learn, give yourself a break and lean back. Give your beloved ones a hug and tell them, you did it! Also, give yourself a break when this took you too long and your computer is smoking from all the building processes. In times like these, during the hot summer, I prefer to put my laptop into the fridge to give it a little chill \ud83d\ude42
\n\"my<\/p>\n

Tess-Two Part<\/h2>\n

Now that we had a wonderful bath in a jacuzzi full of self-esteem, we can go back to work. There is one little part missing: The OCR! Don’t worry, I will make it quick.
\nFirst, add the following dependency to your build.gradle (app)<\/code>-file and trigger the gradle-sync:<\/p>\n

implementation 'com.rmtheis:tess-two:9.0.0'\r\n<\/code><\/pre>\n

Tess-two is now available and ready to use. Add the HUD components to activity_camera.xml<\/code> and some functionality to CameraActivity.java<\/code> with the following modifications:
\n
Read-button and textview for CameraActivity<\/a><\/p>\n

Create a new Java class with the name MyTessOCR.java<\/code> and put the following code into it (don’t forget to change the package!):
\n
Implementing the tess-two class<\/a><\/p>\n

Let’s use it in the CameraActivity<\/code>, and make some changes in the CameraActivity<\/code>. Since computation of the OCR could be process-demanding, we will call it in an extra thread. Also, you will be asked to import the android.graphics.Matrix<\/code>, continue and confirm. This is only for rotating the input signal of the camera according to the preview, that we’ve rotated inside the OpenCV library already. Do the following: Call MyTessOCR class from CameraActivity<\/a><\/p>\n

Tesseract, and therefore tess-two, needs traineddata to know how and what to recognize. Since we are using tess-two, which is a fork of an older Tesseract version, we cannot just use any traineddata that is available in the tesseract git repository. Download the following traineddata and you will be fine: Download eng.traineddata<\/a>. Create an asset-folder via right-click on Java -> New -> Folder -> Asset Folder<\/code>, then create a directory called tessdata<\/code> and finally copy the downloaded eng.traineddata<\/code>-file into that directory. When you’re done it should like this:<\/p>\n

\"traineddate<\/p>\n

Next, you need to make sure that this file is also put onto the device. Therefore we need to add a little method to our CameraActivity<\/code> and call it in the onCreate method: Add preprateTessData-method to CameraActivity<\/a><\/p>\n

Alright! The last thing to do is to get the permissions for read and write access on the external storage since we are doing that with our previously added method. Go and add the following checks and constants to the MainActivity<\/code> and additional permissions to the AndroidManifest.xml<\/code>:
\n
Ask for external storage read and write permissions<\/a><\/p>\n

Okay! Breath in. Breath out. You did it! Build (can take a while), run and play \ud83d\ude42 Hold your phone in front of the text below and press READ IT!<\/code> in your app.<\/p>\n

\"Congratulations\"<\/p>\n

Find my original Git repo of the app here<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"

Introduction I got to know OpenCV as I investigated into computer vision solutions for a little startup called robodev GmbH (see here). There I developed possible ways for real-time object recognition and computation of angle and position of the recognized object. I fell in love with C++ and its possibilities to realize high-performance applications. Awhile I started digging further into … Read More<\/a><\/p>\n","protected":false},"author":5,"featured_media":2353,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[118,137,138,108,139],"tags":[],"acf":[],"yoast_head":"\nOpenCV & Tesseract: Android Computer Vision for Dummies - CraftCoders.app<\/title>\n<meta name=\"description\" content=\"Let's create a simple Computer Vision Android App with OpenCV and Tesseract OCR. This tutorial guides you through the process step by step.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/craftcoders.app\/opencv-tesseract-android-computer-vision-for-dummies\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"OpenCV & Tesseract: Android Computer Vision for Dummies - CraftCoders.app\" \/>\n<meta property=\"og:description\" content=\"Let's create a simple Computer Vision Android App with OpenCV and Tesseract OCR. This tutorial guides you through the process step by step.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/craftcoders.app\/opencv-tesseract-android-computer-vision-for-dummies\/\" \/>\n<meta property=\"og:site_name\" content=\"CraftCoders.app\" \/>\n<meta property=\"article:published_time\" content=\"2018-08-06T13:52:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-14T11:38:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/craftcoders.app\/wp-content\/uploads\/2018\/08\/mobile_computer_visiont-768x640-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"768\" \/>\n\t<meta property=\"og:image:height\" content=\"640\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"S\u00f6ren Hemken\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"S\u00f6ren Hemken\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"15 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/craftcoders.app\/opencv-tesseract-android-computer-vision-for-dummies\/\",\"url\":\"https:\/\/craftcoders.app\/opencv-tesseract-android-computer-vision-for-dummies\/\",\"name\":\"OpenCV & Tesseract: Android Computer Vision for Dummies - CraftCoders.app\",\"isPartOf\":{\"@id\":\"https:\/\/craftcoders.app\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/craftcoders.app\/opencv-tesseract-android-computer-vision-for-dummies\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/craftcoders.app\/opencv-tesseract-android-computer-vision-for-dummies\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/craftcoders.app\/wp-content\/uploads\/2018\/08\/mobile_computer_visiont-768x640-1.jpg\",\"datePublished\":\"2018-08-06T13:52:38+00:00\",\"dateModified\":\"2024-08-14T11:38:30+00:00\",\"author\":{\"@id\":\"https:\/\/craftcoders.app\/#\/schema\/person\/101b4fef5922e8809b7f960ac876ac76\"},\"description\":\"Let's create a simple Computer Vision Android App with OpenCV and Tesseract OCR. This tutorial guides you through the process step by step.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/craftcoders.app\/opencv-tesseract-android-computer-vision-for-dummies\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/craftcoders.app\/opencv-tesseract-android-computer-vision-for-dummies\/#primaryimage\",\"url\":\"https:\/\/craftcoders.app\/wp-content\/uploads\/2018\/08\/mobile_computer_visiont-768x640-1.jpg\",\"contentUrl\":\"https:\/\/craftcoders.app\/wp-content\/uploads\/2018\/08\/mobile_computer_visiont-768x640-1.jpg\",\"width\":768,\"height\":640},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/craftcoders.app\/#website\",\"url\":\"https:\/\/craftcoders.app\/\",\"name\":\"CraftCoders.app\",\"description\":\"Jira and Confluence apps\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/craftcoders.app\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/craftcoders.app\/#\/schema\/person\/101b4fef5922e8809b7f960ac876ac76\",\"name\":\"S\u00f6ren Hemken\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/craftcoders.app\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/178e63a1d63c26b351f82afcd9645580?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/178e63a1d63c26b351f82afcd9645580?s=96&d=mm&r=g\",\"caption\":\"S\u00f6ren Hemken\"},\"url\":\"https:\/\/craftcoders.app\/author\/soeren\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"OpenCV & Tesseract: Android Computer Vision for Dummies - CraftCoders.app","description":"Let's create a simple Computer Vision Android App with OpenCV and Tesseract OCR. This tutorial guides you through the process step by step.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/craftcoders.app\/opencv-tesseract-android-computer-vision-for-dummies\/","og_locale":"en_US","og_type":"article","og_title":"OpenCV & Tesseract: Android Computer Vision for Dummies - CraftCoders.app","og_description":"Let's create a simple Computer Vision Android App with OpenCV and Tesseract OCR. This tutorial guides you through the process step by step.","og_url":"https:\/\/craftcoders.app\/opencv-tesseract-android-computer-vision-for-dummies\/","og_site_name":"CraftCoders.app","article_published_time":"2018-08-06T13:52:38+00:00","article_modified_time":"2024-08-14T11:38:30+00:00","og_image":[{"width":768,"height":640,"url":"https:\/\/craftcoders.app\/wp-content\/uploads\/2018\/08\/mobile_computer_visiont-768x640-1.jpg","type":"image\/jpeg"}],"author":"S\u00f6ren Hemken","twitter_card":"summary_large_image","twitter_misc":{"Written by":"S\u00f6ren Hemken","Est. reading time":"15 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/craftcoders.app\/opencv-tesseract-android-computer-vision-for-dummies\/","url":"https:\/\/craftcoders.app\/opencv-tesseract-android-computer-vision-for-dummies\/","name":"OpenCV & Tesseract: Android Computer Vision for Dummies - CraftCoders.app","isPartOf":{"@id":"https:\/\/craftcoders.app\/#website"},"primaryImageOfPage":{"@id":"https:\/\/craftcoders.app\/opencv-tesseract-android-computer-vision-for-dummies\/#primaryimage"},"image":{"@id":"https:\/\/craftcoders.app\/opencv-tesseract-android-computer-vision-for-dummies\/#primaryimage"},"thumbnailUrl":"https:\/\/craftcoders.app\/wp-content\/uploads\/2018\/08\/mobile_computer_visiont-768x640-1.jpg","datePublished":"2018-08-06T13:52:38+00:00","dateModified":"2024-08-14T11:38:30+00:00","author":{"@id":"https:\/\/craftcoders.app\/#\/schema\/person\/101b4fef5922e8809b7f960ac876ac76"},"description":"Let's create a simple Computer Vision Android App with OpenCV and Tesseract OCR. This tutorial guides you through the process step by step.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/craftcoders.app\/opencv-tesseract-android-computer-vision-for-dummies\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/craftcoders.app\/opencv-tesseract-android-computer-vision-for-dummies\/#primaryimage","url":"https:\/\/craftcoders.app\/wp-content\/uploads\/2018\/08\/mobile_computer_visiont-768x640-1.jpg","contentUrl":"https:\/\/craftcoders.app\/wp-content\/uploads\/2018\/08\/mobile_computer_visiont-768x640-1.jpg","width":768,"height":640},{"@type":"WebSite","@id":"https:\/\/craftcoders.app\/#website","url":"https:\/\/craftcoders.app\/","name":"CraftCoders.app","description":"Jira and Confluence apps","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/craftcoders.app\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/craftcoders.app\/#\/schema\/person\/101b4fef5922e8809b7f960ac876ac76","name":"S\u00f6ren Hemken","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/craftcoders.app\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/178e63a1d63c26b351f82afcd9645580?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/178e63a1d63c26b351f82afcd9645580?s=96&d=mm&r=g","caption":"S\u00f6ren Hemken"},"url":"https:\/\/craftcoders.app\/author\/soeren\/"}]}},"_links":{"self":[{"href":"https:\/\/craftcoders.app\/wp-json\/wp\/v2\/posts\/461"}],"collection":[{"href":"https:\/\/craftcoders.app\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/craftcoders.app\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/craftcoders.app\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/craftcoders.app\/wp-json\/wp\/v2\/comments?post=461"}],"version-history":[{"count":2,"href":"https:\/\/craftcoders.app\/wp-json\/wp\/v2\/posts\/461\/revisions"}],"predecessor-version":[{"id":2355,"href":"https:\/\/craftcoders.app\/wp-json\/wp\/v2\/posts\/461\/revisions\/2355"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/craftcoders.app\/wp-json\/wp\/v2\/media\/2353"}],"wp:attachment":[{"href":"https:\/\/craftcoders.app\/wp-json\/wp\/v2\/media?parent=461"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/craftcoders.app\/wp-json\/wp\/v2\/categories?post=461"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/craftcoders.app\/wp-json\/wp\/v2\/tags?post=461"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}