If you are trying to get the reach and scale of the web but want to still run on device client side then TensorFlow.js is a great option for Web Apps (such as PWA) as you can get running in minutes, write in one language and deploy to all types of devices. Our image recognition runs in real time for MobileNet for example.
Check out my code that you can fork in minutes on Glitch here that shows how to use our COCO-SSD model:

  
      

      glitch.com
  

  
    

Glitch: The friendly community where everyone builds the web 1

  Simple, powerful, free tools to create and use millions of apps.


  

  
    
    
  

  


And if you want to make your own version of “teachable machine” that can retrain itself live in the browser to recognize any object you want, then a great codelab is here:

  
      

      Google Codelabs
  

  
    

TensorFlow.js Transfer Learning Image Classifier  |  Google Codelabs 1

  In this codelab, you will learn how to build a “Teachable machine”, a custom image classifier that you will train on the fly in the browser using TensorFlow.js.


  

  
    
    
  

  


Finally if you want to retrain YOLO and get it running in browser we have this great tutorial too:

  
      

      blog.tensorflow.org
  

  
    

Custom object detection in the browser using TensorFlow.js 1

  Train a custom MobileNetV2 using the TensorFlow 2 Object Detection API and Google Colab for object detection, convert the model to TensorFlow.js


  

  
    
    
  

  


Happy hacking!