Skip to content

Commit

Permalink
Ensure identity index is set on default pose
Browse files Browse the repository at this point in the history
  • Loading branch information
glopesdev committed Dec 15, 2023
1 parent 9b3dbe1 commit 03a1f1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Bonsai.Sleap/Bonsai.Sleap.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<PackageTags>Bonsai Rx SLEAP LEAP Markerless Multi Pose Tracking</PackageTags>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFramework>net472</TargetFramework>
<VersionPrefix>0.2.0</VersionPrefix>
<VersionPrefix>0.2.1</VersionPrefix>
</PropertyGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions src/Bonsai.Sleap/GetMaximumConfidencePoseIdentity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ static PoseIdentity DefaultPose(IplImage image, string identity)
{
return new PoseIdentity(image)
{
IdentityIndex = -1,
Identity = identity,
Confidence = float.NaN,
Centroid = GetBodyPart.DefaultBodyPart(string.Empty)
Expand Down

0 comments on commit 03a1f1c

Please sign in to comment.