OCR text recognition implementation in mobile apps

Receipts with faded ink, crumpled invoices, handwritten notes — standard OCR libraries often fail on such documents. We solve this with custom preprocessing and post-processing: we choose the stack (Vision, ML Kit, or Tesseract) for each specific task rather than using a one-size-fits-all solution.

Development and support of all types of mobile applications:

Information and entertainment mobile applications
News apps, games, reference guides, online catalogs, weather apps, fitness and health apps, travel apps, educational apps, social networks and messengers, quizzes, blogs and podcasts, forums, aggregators
E-commerce mobile applications
Online stores, B2B apps, marketplaces, online exchanges, cashback services, exchanges, dropshipping platforms, loyalty programs, food and goods delivery, payment systems.
Business process management mobile applications
CRM systems, ERP systems, project management, sales team tools, financial management, production management, logistics and delivery management, HR management, data monitoring systems
Electronic services mobile applications
Classified ads platforms, online schools, online cinemas, electronic service platforms, cashback platforms, video hosting, thematic portals, online booking and scheduling platforms, online trading platforms

These are just some of the types of mobile applications we work with, and each of them may have its own specific features and functionality, tailored to the specific needs and goals of the client.

Showing 1 of 1All 1734 services
OCR text recognition implementation in mobile apps
Medium
~3-5 days

Our competencies:

Frequently Asked Questions

Latest works

  • image_mobile-applications_feedme_467_0.webp
    Development of a mobile application for FEEDME
    895
  • image_mobile-applications_xoomer_471_0.webp
    Development of a mobile application for XOOMER
    782
  • image_mobile-applications_rhl_428_0.webp
    Development of a mobile application for RHL
    1216
  • image_mobile-applications_zippy_411_0.webp
    Development of a mobile application for ZIPPY
    1079
  • image_mobile-applications_affhome_429_0.webp
    Development of a mobile application for Affhome
    1002
  • image_mobile-applications_flavors_409_0.webp
    Development of a mobile application for the FLAVORS company
    597

Receipts with faded ink, crumpled invoices, handwritten notes — standard OCR libraries often fail on such documents. We solve this with custom preprocessing and post-processing: we choose the stack (Vision, ML Kit, or Tesseract) for each specific task rather than using a one-size-fits-all solution. Get a free project assessment — contact us.

How to choose the right OCR tool?

Choosing between Vision, ML Kit, and Tesseract depends on your task and requirements for speed and accuracy. iOS Vision framework — VNRecognizeTextRequest — works on-device, supports 18+ languages including Cyrillic. The .accurate level takes 180–350 ms to process an A4 photo on an iPhone 12. ML Kit Text Recognition v2 is cross-platform, on-device, supports Cyrillic and CJK. On Android, use TextRecognition.getClient(TextRecognizerOptions.DEFAULT_OPTIONS). Tesseract via SwiftyTesseract / tess-two is for custom fonts, but 3–5 times slower. For example, ML Kit on Android is 1.5 times faster than Tesseract on the same device for printed text. We help you pick the optimal tool for your task — from simple scanning to table and form recognition.

Why preprocessing is critical?

40% of OCR success comes from input image quality. A typical pipeline:

  1. Grayscale — remove color noise
  2. Contrast correction via CIColorControls (iOS) or ColorMatrix (Android)
  3. Binarization (Otsu threshold) — for uneven lighting
  4. Deskew — correct perspective and tilt

From our practice: for an invoice scanning app, preprocessing boosted accuracy from 78% to 94% in a warehouse setting. Perspective correction using VNDetectRectanglesRequest and CIPerspectiveCorrection was especially effective. Practical results:

Condition Without preprocessing With preprocessing
Bright light 70% 92%
Tilted document 65% 89%
Crumpled paper 55% 84%

How we implement OCR: a real case

We built OCR for a logistics client: recognizing invoice numbers with dot-matrix font on crumpled boxes. We chose ML Kit with custom preprocessing. Pipeline: grayscale → Otsu binarization → deskew → ML Kit. Post-processing: extract invoice number via regex with checksum. Accuracy on test set: 96%. Timeline: 5 business days.

func preprocessImage(_ image: UIImage) -> UIImage { guard let ciImage = CIImage(image: image) else { return image } let gray = ciImage.applyingFilter("CIPhotoEffectMono") let contrast = gray.applyingFilter("CIColorControls", parameters: [kCIInputContrastKey: 1.1]) // Otsu binarization not built-in, use custom kernel return UIImage(ciImage: contrast) } 

This pipeline is standard in every project. We guarantee results.

What does post-processing provide?

Recognized text is not always ready data. For extracting phone numbers, emails, dates, we use NSDataDetector (iOS) or Patterns (Android). For structured fields (INN, SNILS) — regex with checksum validation. Importantly, ML Kit returns TextBlock → TextLine → TextElement with coordinates. We group lines by Y to reconstruct the table structure. This reduces manual entry by 30–50%.

Tool comparison

Parameter Vision (iOS) ML Kit (Android) Tesseract
Speed 150–350 ms 200–400 ms 600–1000 ms
Languages 18+, Cyrillic Latin, Cyrillic, CJK Any with training
On-device Yes Yes Yes
Custom model No No Yes
Integration difficulty Medium Low High

How to recognize text in real time?

For real-time OCR, we reduce resolution to 720p and run recognition every 3-5 frames with result buffering. On Android, ML Kit in STREAM_MODE manages frequency automatically. On iOS — AVCaptureVideoDataOutput with VNRecognizeTextRequest. This gives a stable 15-20 fps without overheating. Order such a module — get integration consultancy.

How we work on an OCR module

  1. Analysis: study document types, shooting conditions, fonts.
  2. Tool selection and preprocessing pipeline design.
  3. Recognition and post-processing implementation.
  4. App integration (batch or real-time).
  5. Testing on a set of real data (at least 100 samples).
  6. Deployment and support.

What's included in OCR module development

  • Requirements analysis and stack selection
  • Preprocessing pipeline development for your conditions
  • Recognition implementation (photo or real-time)
  • Data post-processing (field extraction, validation)
  • App integration (iOS/Android)
  • Testing and refinement based on results
  • Documentation and code review
  • Our team's experience: over 5 years in mobile, 30+ OCR projects

Timelines and cost

Timelines: from 3 business days (photo OCR with preprocessing) to 2 weeks (real-time document scanner with correction). OCR implementation reduces manual entry costs by 30–50%. Cost is calculated individually — contact us for an estimate. We guarantee quality: you receive a ready module with at least 95% accuracy (on agreed document types). Order development or get a consultation.