Skip to content

Commit f678986

Browse files
committed
Minor README.md update
1 parent 60aa997 commit f678986

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,12 @@ Algorithm description
2727
1. Start in the image top center `(x,y) = (Screen width / 2, 0)`
2828
2. Move down by incrementing Y untill we find pixel with the value 'brighter' than certain grey shade threshold value
2929
1. If we have reached the center without finding any bright pixel, stop processing the image else, save the position of the first 'bright' pixel we have found into the `track_start`
30-
3. Rotate `track_start` counterclockwise and save rotation result into pnew. Whenever it is light enough, write the sample into the wav file and proceed with rotation. If pnew is not light enough, there is a couple of possibilities of us having:
30+
3. Rotate `track_start` counterclockwise and save rotation result into `pnew`. Whenever it is light enough, write the sample into the wav file and proceed with rotation. If `pnew` is not light enough, there is a couple of possibilities of us having:
3131
1. strayed off the track into the dark zone between the tracks (most frequent case):
32-
1. in this case we twiggle start point 2 pixels up and rotate -> this will result into rotated point to be a bit more far away form the center and might move us back on track. If it didn't and we are still on the dark spot:
32+
1. in this case we twiggle start point 2 pixels up and rotate -> this will result into rotated point to be a bit more far away form the center and might move us back on track. If it didn't and we are still on the dark spot:
3333
2. twiggle start point 2 pixels down and rotate -> this will move our pixel a bit closer to the center. If it didn't, proceed to the next case:
3434
2. have reached the end of the track (dark circle in the middle of the plate):
35-
1. move 30 pixels towards the plate center - if all of the pixels are dark, assume that we have reached the end
36-
of the plate and stop processing. If it is not the end, proceed to the next case:
35+
1. move 30 pixels towards the plate center - if all of the 30 sampled pixels are dark, assume that we have reached the end of the plate and stop processing. If it is not the end, proceed to the next case:
3736
3. encountered a very dark bump on the track and the algoritm considered it to be 'off track' value. Add the value
3837
to the sample file as if it was light enough
3938
4. After we have reached the end of the plate, prepend the wav header with the amount of samples we have written to the beginning of the sample file.

0 commit comments

Comments
 (0)