shaqian / flutter_realtime_detection

Real-time detection demo for Flutter tflite plugin
842 stars 301 forks source link

please help me run this app #33

Open lwy980328 opened 3 years ago

lwy980328 commented 3 years ago

\Documents\GitHub\realtime-object-detector\android\app\src\main\java\com\example\realtimeod\MainActivity.java:24: ����: [deprecation] PluginRegistry�е�Registrar�ѹ�ʱ import io.flutter.plugin.common.PluginRegistry.Registrar; ^ \Documents\GitHub\realtime-object-detector\android\app\src\main\java\com\example\realtimeod\Predictor.java:17: ����: �����com.baidu.paddle.lite������ import com.baidu.paddle.lite.MobileConfig; ^ \Documents\GitHub\realtime-object-detector\android\app\src\main\java\com\example\realtimeod\Predictor.java:18: ����: �����com.baidu.paddle.lite������ import com.baidu.paddle.lite.PaddlePredictor; ^ \Documents\GitHub\realtime-object-detector\android\app\src\main\java\com\example\realtimeod\Predictor.java:19: ����: �����com.baidu.paddle.lite������ import com.baidu.paddle.lite.PowerMode; ^ \Documents\GitHub\realtime-object-detector\android\app\src\main\java\com\example\realtimeod\Predictor.java:20: ����: �����com.baidu.paddle.lite������ import com.baidu.paddle.lite.Tensor; ^ \Documents\GitHub\realtime-object-detector\android\app\src\main\java\com\example\realtimeod\Predictor.java:47: ����: �Ҳ������� protected PaddlePredictor paddlePredictor = null; ^ ����: �� PaddlePredictor λ��: �� Predictor \Documents\GitHub\realtime-object-detector\android\app\src\main\java\com\example\realtimeod\Predictor.java:191: ����: �Ҳ������� public Tensor getInput(int idx) { ^ ����: �� Tensor λ��: �� Predictor \Documents\GitHub\realtime-object-detector\android\app\src\main\java\com\example\realtimeod\Predictor.java:198: ����: �Ҳ������� public Tensor getOutput(int idx) { ^ ����: �� Tensor λ��: �� Predictor \Documents\GitHub\realtime-object-detector\android\app\src\main\java\com\example\realtimeod\Predictor.java:131: ����: �Ҳ������� MobileConfig config = new MobileConfig(); ^ ����: �� MobileConfig λ��: �� Predictor \Documents\GitHub\realtime-object-detector\android\app\src\main\java\com\example\realtimeod\Predictor.java:131: ����: �Ҳ������� MobileConfig config = new MobileConfig(); ^ ����: �� MobileConfig λ��: �� Predictor \Documents\GitHub\realtime-object-detector\android\app\src\main\java\com\example\realtimeod\Predictor.java:135: ����: �Ҳ������� config.setPowerMode(PowerMode.LITE_POWER_HIGH); ^ ����: ���� PowerMode λ��: �� Predictor \Documents\GitHub\realtime-object-detector\android\app\src\main\java\com\example\realtimeod\Predictor.java:137: ����: �Ҳ������� config.setPowerMode(PowerMode.LITE_POWER_LOW); ^ ����: ���� PowerMode λ��: �� Predictor \Documents\GitHub\realtime-object-detector\android\app\src\main\java\com\example\realtimeod\Predictor.java:139: ����: �Ҳ������� config.setPowerMode(PowerMode.LITE_POWER_FULL); ^ ����: ���� PowerMode λ��: �� Predictor \Documents\GitHub\realtime-object-detector\android\app\src\main\java\com\example\realtimeod\Predictor.java:141: ����: �Ҳ������� config.setPowerMode(PowerMode.LITE_POWER_NO_BIND); ^ ����: ���� PowerMode λ��: �� Predictor \Documents\GitHub\realtime-object-detector\android\app\src\main\java\com\example\realtimeod\Predictor.java:143: ����: �Ҳ������� config.setPowerMode(PowerMode.LITE_POWER_RAND_HIGH); ^ ����: ���� PowerMode λ��: �� Predictor \Documents\GitHub\realtime-object-detector\android\app\src\main\java\com\example\realtimeod\Predictor.java:145: ����: �Ҳ������� config.setPowerMode(PowerMode.LITE_POWER_RAND_LOW); ^ ����: ���� PowerMode λ��: �� Predictor \Documents\GitHub\realtime-object-detector\android\app\src\main\java\com\example\realtimeod\Predictor.java:150: ����: �Ҳ������� paddlePredictor = PaddlePredictor.createPaddlePredictor(config); ^ ����: ���� PaddlePredictor λ��: �� Predictor \Documents\GitHub\realtime-object-detector\android\app\src\main\java\com\example\realtimeod\Predictor.java:214: ����: �Ҳ������� Tensor inputTensor0 = getInput(0); ^ ����: �� Tensor λ��: �� Predictor \Documents\GitHub\realtime-object-detector\android\app\src\main\java\com\example\realtimeod\Predictor.java:216: ����: �Ҳ������� Tensor inputTensor1 = getInput(1); ^ ����: �� Tensor λ��: �� Predictor \Documents\GitHub\realtime-object-detector\android\app\src\main\java\com\example\realtimeod\Predictor.java:277: ����: �Ҳ������� Tensor outputTensor = getOutput(0); ^ ����: �� Tensor λ��: �� Predictor 19 ������ 1 ������

FAILURE: Build failed with an exception.

i met problems above, I would be very grateful if you could help me