image_background_remover 1.0.0
image_background_remover: ^1.0.0 copied to clipboard
A Flutter package that removes the background from images using an ONNX model.
We analyzed this package 5 days ago, and awarded it 150 pub points (of a possible 160):
10/10 points: Provide a valid pubspec.yaml
5/5 points: Provide a valid README.md
5/5 points: Provide a valid CHANGELOG.md
10/10 points: Use an OSI-approved license
Detected license: BSD-3-Clause
.
10/10 points: 20% or more of the public API has dartdoc comments
6 out of 14 API elements (42.9 %) have documentation comments.
Some symbols that are missing documentation: assets
, assets.Assets
, assets.Assets.Assets.new
, assets.Assets.modelPath
, image_background_remover
.
10/10 points: Package has an example
20/20 points: Supports 5 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
-
✓ Windows
-
✓ Linux
-
✓ macOS
These platforms are not supported:
Package does not support platform `Web`.
Because:
package:image_background_remover/image_background_remover.dart
that imports:package:image_background_remover/src/background_remover.dart
that imports:package:onnxruntime/onnxruntime.dart
that declares support for platforms:Android
,iOS
,Windows
,Linux
,macOS
.
0/0 points: WASM compatibility
Package not compatible with runtime wasm
Because:
package:image_background_remover/image_background_remover.dart
that imports:package:image_background_remover/src/background_remover.dart
that imports:package:onnxruntime/onnxruntime.dart
that imports:package:onnxruntime/src/ort_value.dart
that imports:package:onnxruntime/src/ort_status.dart
that imports:package:onnxruntime/src/ort_env.dart
that imports:package:onnxruntime/src/bindings/onnxruntime_bindings_generated.dart
that imports:dart:ffi
This package is not compatible with runtime wasm
, and will not be rewarded full points in a future version of the scoring model.
See https://dart.dev/web/wasm for details.
40/50 points: code has no errors, warnings, lints, or formatting issues
Found 3 issues. Showing the first 2:
INFO: 'red' is deprecated and shouldn't be used. Use (*.r * 255.0).round() & 0xff.
lib/src/background_remover.dart:399:38
╷
399 │ color: img.ColorRgb8(bgColor.red, bgColor.green, bgColor.blue));
│ ^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/background_remover.dart
INFO: 'green' is deprecated and shouldn't be used. Use (*.g * 255.0).round() & 0xff.
lib/src/background_remover.dart:399:51
╷
399 │ color: img.ColorRgb8(bgColor.red, bgColor.green, bgColor.blue));
│ ^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/background_remover.dart
10/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest | Notes |
---|---|---|---|---|
image |
^4.5.2 |
4.5.4 | 4.5.4 | |
onnxruntime |
^1.4.1 |
1.4.1 | 1.4.1 |
Transitive dependencies
Package | Constraint | Compatible | Latest | Notes |
---|---|---|---|---|
archive |
- | 4.0.7 | 4.0.7 | |
characters |
- | 1.4.0 | 1.4.1 | |
collection |
- | 1.19.1 | 1.19.1 | |
crypto |
- | 3.0.6 | 3.0.6 | |
ffi |
- | 2.1.4 | 2.1.4 | |
material_color_utilities |
- | 0.11.1 | 0.13.0 | |
meta |
- | 1.16.0 | 1.17.0 | |
path |
- | 1.9.1 | 1.9.1 | |
petitparser |
- | 7.0.1 | 7.0.1 | |
posix |
- | 6.0.3 | 6.0.3 | |
typed_data |
- | 1.4.0 | 1.4.0 | |
vector_math |
- | 2.2.0 | 2.2.0 | |
xml |
- | 6.6.1 | 6.6.1 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides
.
10/10 points: Package supports latest stable Dart and Flutter SDKs
20/20 points: Compatible with dependency constraint lower bounds
pub downgrade
does not expose any static analysis error.
Analyzed with Pana 0.22.23
, Flutter 3.35.4
, Dart 3.9.2
.
Check the analysis log for details.