Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
VorlonCD committed Sep 30, 2020
2 parents 7d5b96e + e29e7fe commit 6c1fb64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/UI/AITOOL.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1166,6 +1166,12 @@ public static async Task<bool> DetectObjects(ClsImageQueueItem CurImg, ClsURLIte

} //end loop over current object list

if (cam.maskManager.masking_enabled)
{
//mark the end of AI detection for the current image
cam.maskManager.lastDetectionDate = DateTime.Now;
}

//if one or more objects were detected, that are 1. relevant, 2. within confidence limits and 3. outside of masked areas
if (objects.Count() > 0)
{
Expand Down
1 change: 0 additions & 1 deletion src/UI/MaskManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ public void Update(Camera cam)
public bool CreateDynamicMask(ObjectPosition currentObject)
{
bool maskExists = false;
lastDetectionDate = DateTime.Now;

List<string> objects = Global.Split(this.objects, "|;,");

Expand Down

0 comments on commit 6c1fb64

Please sign in to comment.