Skip to content

Commit

Permalink
ft: remove personal info and minor clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
bolorundurowb committed Aug 10, 2024
1 parent 9bb1439 commit 1143e15
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 11 deletions.
3 changes: 1 addition & 2 deletions src/DotNetANPR.CLI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

using DotNetANPR;

const string sourceFilePath = "/Users/bolorundurowb/Downloads/snapshots/test_093.jpg";
const string reportPath = "/Users/bolorundurowb/Downloads/report";
const string sourceFilePath = "";
var result = ANPR.Recognize(sourceFilePath);

Console.WriteLine("The result is: " + result);
1 change: 0 additions & 1 deletion src/dotnetANPR/Extensions/BitmapExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Drawing;
using System.Drawing.Imaging;

namespace DotNetANPR.Extensions;

Expand Down
7 changes: 3 additions & 4 deletions src/dotnetANPR/ImageAnalysis/CarSnapshot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,15 @@ public List<Band> Bands()
return response;
}

public Bitmap VerticalEdge(Bitmap image)
public Bitmap VerticalEdge(Bitmap bitmap)
{
var imageCopy = DuplicateBitmap(image);
float[,] data = {
{ -1, 0, 1, },
{ -1, 0, 1 },
{ -1, 0, 1 },
{ -1, 0, 1 },
{ -1, 0, 1 }
};
return image.Convolve(data);
return bitmap.Convolve(data);
}

public CarSnapshotGraph Histogram(Bitmap bitmap)
Expand Down
2 changes: 0 additions & 2 deletions src/dotnetANPR/ImageAnalysis/Photo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.Linq;
using DotNetANPR.Configuration;
using DotNetANPR.Extensions;

namespace DotNetANPR.ImageAnalysis;

Expand Down
2 changes: 0 additions & 2 deletions src/dotnetANPR/ImageAnalysis/Plate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ public List<Character> Characters()
characters.Add(character);
}

characters.ForEach(x => x.Save($"/Users/bolorundurowb/Downloads/{Guid.NewGuid()}.jpg"));

return characters;
}

Expand Down

0 comments on commit 1143e15

Please sign in to comment.