@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);
  int numObjs=jniClassifyBitmap(_handler);
  for (int i=0; i != numObjs; i++) {
    VisionDetRet det=new VisionDetRet();
    int success=jniGetDetRet(det,i);
    if (success >= 0)     ret.add(det);
  }
  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 ) ; int numObjs = jniClassifyBitmap ( _handler ) ; for ( int i = 0 ; i != numObjs ; i ++ ) { VisionDetRet det = new VisionDetRet ( ) ; int success = jniGetDetRet ( det , i ) ; if ( success >= 0 ) ret . add ( det ) ; } freeBitmap ( ) ; return ret ; }
detect and locate objects according to the given bitmap
