Implemented Knn, updated readme

This commit is contained in:
2026-02-10 00:51:52 -06:00
parent 6ea46ce8d9
commit 2f86f5fd99
2 changed files with 52 additions and 5 deletions

View File

@@ -2,8 +2,14 @@
Run knn on audio data which has been converted to images to find similar audio clips
## Ffmpeg preporcessing command to create spectrogram image
Spectogramspectrogram
`for %f in (*.wav) do ffmpeg -y -i "%f" -ar 44100 -lavfi "showspectrumpic=s=256x256:scale=log:legend=0" "img\%~nf.png"`
With loudnorm to try to improve performance
`for %f in (*.wav) do ffmpeg -y -i "%f" -ar 44100 -lavfi "loudnorm,showspectrumpic=s=256x256:scale=log:legend=0" "img\%~nf.png"`
## stb_image.h
Used for gathering the image data
@@ -12,5 +18,5 @@ Used for gathering the image data
### Todo
- [x] Load all images from directory
- [ ] Do knn algorithm
- [x] Do knn algorithm
- [ ] Use opencl to accelerate algorithm execution