-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed labeling mechanism - added model parsing
- Loading branch information
Showing
14 changed files
with
333 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
using YoloEase.UI.Yolo; | ||
|
||
namespace YoloEase.UI.Dto; | ||
|
||
public sealed record PredictInfo | ||
{ | ||
public FileInfo File { get; init; } | ||
|
||
public YoloLabel[] Labels { get; init; } = Array.Empty<YoloLabel>(); | ||
public YoloPrediction[] Labels { get; init; } = Array.Empty<YoloPrediction>(); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
namespace YoloEase.UI.Yolo; | ||
|
||
/// <summary> | ||
/// Represents a single label as identified by the YOLO (You Only Look Once) object detection system. | ||
/// This record structure encapsulates the unique attributes of a detected object's label, | ||
/// including its identifier, name, kind, and associated color. | ||
/// </summary> | ||
public readonly record struct YoloLabel | ||
{ | ||
/// <summary> | ||
/// Gets the unique identifier for this label. | ||
/// The ID is an integer value that uniquely represents a specific class or type of object | ||
/// detected by the YOLO system. | ||
/// </summary> | ||
public int Id { get; init; } | ||
|
||
/// <summary> | ||
/// Gets the name of the label. | ||
/// This is a human-readable string that describes the class or type of the object detected, | ||
/// such as 'car', 'person', etc. | ||
/// </summary> | ||
public string Name { get; init; } | ||
|
||
/// <summary> | ||
/// Gets the color associated with this label. | ||
/// This color is typically used for visualization purposes, such as drawing bounding boxes | ||
/// or segmentation masks in the color corresponding to the detected object's class. | ||
/// </summary> | ||
public WinColor Color { get; init; } | ||
} |
Oops, something went wrong.