Translating the library from Python to C#
A niche library written in Python ran too slowly, and no C# equivalent existed.
- One-week research phase: source code analysis, main data types and a work plan.
- NumSharp adopted as the NumPy equivalent; missing matrix classes, conversions and a 2D norm function added.
- Detection, tracking and metric modules (IoU, nearest-neighbour distance) translated.
- Kalman filter and the linear assignment solver translated.
- Test sets built from the Python output; unit tests compare the two implementations.
| metric | before | after | Δ |
|---|---|---|---|
| Programming language | Python | C# | |
| Frames per second | 10–20 | 40–50 | ×3 |
| Unit tests | no | yes |