NcnnYolox class
Methods
-
detect({String? imagePath, Uint8List? pixels, PixelFormat pixelFormat = PixelFormat.rgb, int? width, int? height})
→ List<YoloxResults>
-
Detect with YOLOX
Run it after initYolox
-
detectBGRA8888({required Uint8List pixels, required int height, int width = 0, required KannaRotateDeviceOrientationType deviceOrientationType, required int sensorOrientation, void onDecodeImage(Image image)?})
→ DetectResults
-
Detect with YOLOX
Run it after initYolox
-
detectImageFile(String imagePath)
→ List<YoloxResults>
-
Detect with YOLOX
Run it after initYolox
-
detectPixels({required Uint8List pixels, PixelFormat pixelFormat = PixelFormat.rgb, required int width, required int height})
→ List<YoloxResults>
-
Detect with YOLOX
Run it after initYolox
-
detectYUV420({required Uint8List y, required Uint8List u, required Uint8List v, required int height, int width = 0, required KannaRotateDeviceOrientationType deviceOrientationType, required int sensorOrientation, void onDecodeImage(Image image)?, void onYuv420sp2rgbImage(Image image)?})
→ DetectResults
-
Detect with YOLOX
Run it after initYolox
-
dispose()
→ void
-
Dispose of the recently loaded YOLOX model.
-
initYolox({required String modelPath, required String paramPath, bool autoDispose = true, double nmsThresh = yoloxNmsThreshDefault, double confThresh = yoloxConfThreshDefault, int targetSize = yoloxTargetSizeDefault})
→ Future<void>
-
Initialize YOLOX
Run it for the first time
-
kannaRotate({required Uint8List pixels, PixelChannel pixelChannel = PixelChannel.c3, required int width, required int height, KannaRotateDeviceOrientationType deviceOrientationType = KannaRotateDeviceOrientationType.portraitUp, int sensorOrientation = 90})
→ KannaRotateResults
-
Rotate the pixel to match the orientation of the device.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
rgb2rgba({required Uint8List rgb, required int width, required int height})
→ Uint8List
-
Convert RGB to RGBA
-
toString()
→ String
-
A string representation of this object.
inherited
-
yuv420sp2rgb({required Uint8List yuv420sp, required int width, required int height})
→ Uint8List
-
Convert YUV420SP to RGB
-
yuv420sp2Uint8List({required Uint8List y, required Uint8List u, required Uint8List v})
→ Uint8List
-
Converts YUV bytes to a Uint8List of YUV420sp(NV12).