Skip to content

Commit

Permalink
optimized retriving filename for [imagefilename]
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlepumpkin authored Jun 10, 2020
1 parent 04930b9 commit 17a6d1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UI/Shell.cs
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ public async Task Trigger(int index, string image_path)
.Replace("[detections]", string.Join(",", CameraList[index].last_detections))
.Replace("[confidences]", string.Join(",", CameraList[index].last_confidences.ToString()))
.Replace("[imagepath]", image_path) //gives the full path of the image that caused the trigger
.Replace("[imagefilename]", image_path.Split('/').Last()); //gives the image name of the image that caused the trigger
.Replace("[imagefilename]", Path.GetFileName(image_path); //gives the image name of the image that caused the trigger
c++;
}

Expand Down

0 comments on commit 17a6d1c

Please sign in to comment.