First step, average digits in the full 60k training set based on their labels:
$ ./mnist-data-to-average-images.pyProducing these average digits:
Though we should note this only works because it is a well constructed data-set, that has been pre-aligned.
Next, extract average features, using k = 5 (ie 5*5 tiles) and average categorize threshold t = 0.8:
$ ./create-average-images.py 5 work-on-handwritten-digits/label-average-images/Producing these features:
And this corresponding sw file, that we need in phi-transform.
Here are the raw 2000 test images:
Next, we phi-transform the test images:
$ ./phi-transform-v2.py 5 work-on-handwritten-digits/test-imagesProducing these images:
Then final step, we edge enhance them:
$ ./image_directory_edge_enhance.py 20 work-on-handwritten-digits/phi-transformed-images-v2/Update: I finally have them all done:
phi-transformed-images-v2--10k-test--edge-enhanced-20.zip
phi-transformed-images-v2--60k-train--edge-enhanced-20.zip
No comments:
Post a Comment