mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 19:26:31 +00:00
fix loader bug with _CACHED_HW_INFO
put tile size to name and set it dynamically for AI recognition
This commit is contained in:
@@ -59,13 +59,13 @@ public class Annotation
|
||||
return _splitTile;
|
||||
|
||||
var startCoordIndex = Name.IndexOf(Constants.SPLIT_SUFFIX, StringComparison.Ordinal) + Constants.SPLIT_SUFFIX.Length;
|
||||
var coordsStr = Name.Substring(startCoordIndex, 9).Split('_');
|
||||
var coordsStr = Name.Substring(startCoordIndex, 14).Split('_');
|
||||
_splitTile = new CanvasLabel
|
||||
{
|
||||
Left = double.Parse(coordsStr[0]),
|
||||
Top = double.Parse(coordsStr[1]),
|
||||
Width = Constants.AI_TILE_SIZE,
|
||||
Height = Constants.AI_TILE_SIZE
|
||||
Left = double.Parse(coordsStr[1]),
|
||||
Top = double.Parse(coordsStr[2]),
|
||||
Width = double.Parse(coordsStr[0]),
|
||||
Height = double.Parse(coordsStr[0])
|
||||
};
|
||||
return _splitTile;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user