YOLOPerformanceMetrics class
Performance metrics from YOLO inference processing.
This class provides real-time performance data about YOLO model execution, including frame rate, processing time, and frame tracking information.
Example:
YOLOView(
onPerformanceMetrics: (YOLOPerformanceMetrics metrics) {
print('FPS: ${metrics.fps}');
print('Processing time: ${metrics.processingTimeMs}ms');
},
)
Constructors
- YOLOPerformanceMetrics.new({required double fps, required double processingTimeMs, required int frameNumber, required DateTime timestamp})
-
Creates performance metrics with the specified values.
const
-
YOLOPerformanceMetrics.fromMap(Map<
String, dynamic> data) -
Creates performance metrics from a raw data map.
factory
Properties
- fps → double
-
Current frames per second.
final
- frameNumber → int
-
Sequential frame number since detection started.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasPerformanceIssues → bool
-
Checks if performance indicates potential issues.
no setter
- isGoodPerformance → bool
-
Checks if the current performance indicates good real-time performance.
no setter
- performanceRating → String
-
Gets a human-readable performance rating.
no setter
- processingTimeMs → double
-
Processing time for the current frame in milliseconds.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timestamp → DateTime
-
Timestamp when these metrics were captured.
final
Methods
-
copyWith(
{double? fps, double? processingTimeMs, int? frameNumber, DateTime? timestamp}) → YOLOPerformanceMetrics - Creates a copy with modified values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Converts metrics to a map representation.
-
toString(
) → String -
Returns a string representation of the performance metrics.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited