@Override public List<VisionDetRet> classify(Bitmap bitmap){
  List<VisionDetRet> ret=new ArrayList<>();
  if (bitmap == null) {
    Log.e(TAG,"classify. Invalid Input bitmap");
    return ret;
  }
  storeBitmap(bitmap);
  float[] propArray=jniClassifyBitmap(_handler);
  if (propArray != null) {
    Map<String,Float> sortedmap=Utils.sortPrediction(mSynsets,propArray);
    int kSize=10;
    for (    Map.Entry<String,Float> sortedMapEntry : sortedmap.entrySet()) {
      VisionDetRet det=new VisionDetRet(sortedMapEntry.getKey(),sortedMapEntry.getValue(),0,0,0,0);
      ret.add(det);
      if (kSize == ret.size())       break;
    }
  }
  freeBitmap();
  return ret;
}

@ Override public List < VisionDetRet > classify ( Bitmap bitmap ) { List < VisionDetRet > ret = new ArrayList < > ( ) ; if ( bitmap == null ) { Log . e ( TAG , "classify. Invalid Input bitmap" ) ; return ret ; } storeBitmap ( bitmap ) ; float [ ] propArray = jniClassifyBitmap ( _handler ) ; if ( propArray != null ) { Map < String , Float > sortedmap = Utils . sortPrediction ( mSynsets , propArray ) ; int kSize = 10 ; for ( Map . Entry < String , Float > sortedMapEntry : sortedmap . entrySet ( ) ) { VisionDetRet det = new VisionDetRet ( sortedMapEntry . getKey ( ) , sortedMapEntry . getValue ( ) , 0 , 0 , 0 , 0 ) ; ret . add ( det ) ; if ( kSize == ret . size ( ) ) break ; } } freeBitmap ( ) ; return ret ; }
recognize the scene according to the given bitmap
