| | |
| | | public void init() throws Exception { |
| | | Path tempDir = Paths.get(System.getProperty("user.dir"), modelPath); |
| | | LoadNativeCore.LOAD_NATIVE(SeetaDevice.SEETA_DEVICE_CPU); |
| | | faceDatabase = new FaceDatabase(new SeetaModelSetting(0, new String[]{tempDir + File.separator + "face_recognizer.csta"}, SeetaDevice.SEETA_DEVICE_CPU)); |
| | | faceDatabase = new FaceDatabase(new SeetaModelSetting(0, new String[]{tempDir + File.separator + "face_recognizer_light.csta"}, SeetaDevice.SEETA_DEVICE_CPU)); |
| | | File file = new File(Paths.get(System.getProperty("user.dir"), dataBasePath).toString()); |
| | | if (!file.exists()) { |
| | | file.createNewFile(); |