Integrating Google's ML Kit with CameraX and Android Jetpack Compose: Text Recognition in Real-Time

Поділитися
Вставка
  • Опубліковано 8 лип 2024
  • Take your Android app to the next level with real-time text recognition! In this tutorial, we'll explore Google's ML Kit, a powerful suite of machine learning models pre-trained by Google. We will integrate the Text Recognition API with CameraX and Jetpack Compose, building a feature that detects and displays text from your camera feed in real-time.
    🚀 What You'll Learn:
    Basics of Google's ML Kit
    How to use the pre-trained Text Recognition API
    Integrating ML Kit with CameraX and Jetpack Compose
    Displaying recognized text on screen in real time
    🔍 Overview:
    Google's ML Kit is a game-changer for mobile app development, offering easy-to-use APIs for several pre-trained ML models. In this tutorial, we're using Text Recognition as an example, but the integration process is similar across all models.
    👨‍💻 Personal Experience:
    Machine Learning can seem intimidating, but Google's ML Kit makes it approachable for every Android developer. I'll walk you through the process, sharing tips and insights from my personal experience.
    📢Like the video?:
    If you find this tutorial helpful, don't forget to hit the like button, share it with fellow developers, and subscribe for more content like this!"
    GitHub Repository:
    github.com/YanneckReiss/Jetpa...
    ML-Kit:
    developers.google.com/ml-kit
    Support me on Medium:
    / membership
    Follow me on:
    Twitter: / yanneckreiss
    GitHub: github.com/YanneckReiss
    Instagram: / yanneckreiss
    00:00 - Intro
    01:00 - Text Recognition V2
    01:45 - Implementation
    07:30 - Result
    08:11 - Summary
    09:05 - Outro
    #androiddev #AndroidDevelopment #GoogleMLKit #TextRecognition #MachineLearning #JetpackCompose #android

КОМЕНТАРІ • 17

  • @rbsalmon7895
    @rbsalmon7895 3 дні тому

    Hello, it doesn't work when navigated from another screen. any idea why?

  • @imammihir
    @imammihir 10 місяців тому +1

    just got another quality contetnt channel

  • @jopadjr
    @jopadjr 11 місяців тому +1

    32nd...Thanks Yanneck. Yes please create a basic app of all those ML-Kit features in Jetpack Compose. See yah.

  • @fliamachado
    @fliamachado 5 місяців тому

    Hey! Great Video!
    I wonder how to set a Region of interest to allow the camer to search inside a Small regactangle ?
    Thanks!

  • @neirno
    @neirno 8 місяців тому +1

    Thx 4 ur video :)

    • @yanneckreiss
      @yanneckreiss  8 місяців тому

      You're welcome! Thanks for watching 😊

  • @issaantar9529
    @issaantar9529 4 місяці тому +1

    Hello, great video thanks! Quick question, could you use the Text OCR together with the barcode scanner at the same time?

    • @yanneckreiss
      @yanneckreiss  4 місяці тому +1

      Yes that should be possible 🙂

  • @filipmanevski9872
    @filipmanevski9872 11 місяців тому +1

    Is there a way to activate the flash of the camera while using this? Great video btw!

    • @yanneckreiss
      @yanneckreiss  11 місяців тому +1

      Thank you very much! Glad that you liked it 😊 Yes you can just call `cameraController.enableTorch(true)` at the LifecycleCameraController to turn it on :)
      To just toggle the flashlight between its on and off state you could also use following extension function:
      ```
      fun CameraController.toggleFlashlight() {
      val updatedTorchState = when (torchState.value) {
      TorchState.ON -> false
      TorchState.OFF -> true
      else -> null
      }
      if (updatedTorchState != null) {
      enableTorch(updatedTorchState)
      }
      }
      ```
      hope that helps :)

    • @filipmanevski9872
      @filipmanevski9872 11 місяців тому

      @@yanneckreiss Is there any particular reason why the enableTourch wouldn't work? I set it to true and it's still not activating the flash.

    • @filipmanevski9872
      @filipmanevski9872 10 місяців тому +1

      Never mind I figured it out. Again great video!

  • @mastermatt963
    @mastermatt963 7 місяців тому +1

    Hi, nice video. Is ML Kit also capable of detecting and blurring human faces in real time?

    • @yanneckreiss
      @yanneckreiss  7 місяців тому

      Thank you, glad you liked it 😊 There is a face detection model available - but you'd have to implement the blurring part yourself on the identified faces

    • @henrik908
      @henrik908 5 місяців тому

      Can it detect jawline and other face features

  • @naveenvl2749
    @naveenvl2749 5 місяців тому

    @fliamachado how to set region of interest. Need help on that