File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
photon-server/src/main/java/org/photonvision Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -223,22 +223,34 @@ public static void main(String[] args) {
223
223
224
224
try {
225
225
if (Platform .isRaspberryPi ()) {
226
- LibCameraJNILoader .forceLoad ();
226
+ if (LibCameraJNILoader .forceLoad ()) {
227
+ logger .info ("libcamera-JNI loaded successfully." );
228
+ } else {
229
+ logger .error ("Failed to load libcamera-JNI!" );
230
+ }
227
231
}
228
232
} catch (IOException e ) {
229
233
logger .error ("Failed to load libcamera-JNI!" , e );
230
234
}
231
235
try {
232
236
if (Platform .isRK3588 ()) {
233
- RknnDetectorJNI .forceLoad ();
237
+ if (RknnDetectorJNI .forceLoad ()) {
238
+ logger .info ("RKNN-JNI loaded successfully." );
239
+ } else {
240
+ logger .error ("Failed to load RKNN-JNI!" );
241
+ }
234
242
} else {
235
243
logger .error ("Platform does not support RKNN based machine learning!" );
236
244
}
237
245
} catch (IOException e ) {
238
246
logger .error ("Failed to load rknn-JNI!" , e );
239
247
}
240
248
try {
241
- MrCalJNILoader .forceLoad ();
249
+ if (MrCalJNILoader .forceLoad ()) {
250
+ logger .info ("mrcal-JNI loaded successfully." );
251
+ } else {
252
+ logger .error ("Failed to load mrcal-JNI!" );
253
+ }
242
254
} catch (IOException e ) {
243
255
logger .warn (
244
256
"Failed to load mrcal-JNI! Camera calibration will fall back to opencv\n "
You can’t perform that action at this time.
0 commit comments