If you are working on your first examples you could experiment with the TFlite task library.
E.g. for the image classifier like in your use case there is an easy available score field:

  
      

      TensorFlow
  

  
    

Integrate image classifiers  |  TensorFlow Lite 18