mirror of
https://github.com/whoswhip/Spectrum.git
synced 2026-12-06 01:28:42 +00:00
fix: autolabeling save paths
This commit is contained in:
@@ -164,8 +164,8 @@ namespace Spectrum.Detection
|
|||||||
string imageFileName = $"image_{imageCount:D6}.jpg";
|
string imageFileName = $"image_{imageCount:D6}.jpg";
|
||||||
string labelFileName = $"image_{imageCount:D6}.txt";
|
string labelFileName = $"image_{imageCount:D6}.txt";
|
||||||
|
|
||||||
string imagePath = Path.Combine("dataset/images", imageFileName);
|
string imagePath = Path.Combine("bin/dataset/images", imageFileName);
|
||||||
string labelPath = Path.Combine("dataset/labels", labelFileName);
|
string labelPath = Path.Combine("bin/dataset/labels", labelFileName);
|
||||||
|
|
||||||
SaveMatAsImage(data.Mat, imagePath);
|
SaveMatAsImage(data.Mat, imagePath);
|
||||||
|
|
||||||
@@ -189,7 +189,7 @@ namespace Spectrum.Detection
|
|||||||
lock (lockObject)
|
lock (lockObject)
|
||||||
{
|
{
|
||||||
string imageFileName = $"image_{imageCount:D6}.jpg";
|
string imageFileName = $"image_{imageCount:D6}.jpg";
|
||||||
string imagePath = Path.Combine("dataset/images", imageFileName);
|
string imagePath = Path.Combine("bin/dataset/images", imageFileName);
|
||||||
|
|
||||||
SaveMatAsImage(data.Mat, imagePath);
|
SaveMatAsImage(data.Mat, imagePath);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user