Won the best non JavaScript implementation in Stupid Hack 2020 and was the overall second place winner at the event.
This repository contains source code for gcocr.ai that uses advanced artificial intelligence to compile C code from a picture of handwritten notes.
A working demo can be found at gcocr.ai recyclr.pro (we did not have money for new domain, so we recycled an older one).
Here is the demo video (NOTE, the video is extremely loud, @nousiaa did not know how to use Windows Movie Maker)
Make sure you have php (version 7 or higher) installed and that the curl extension is also installed and enabled in php.ini.
To run a mirror of the service locally, first:
git clone https://github.com/k0tix/gcocr.ai.git
cd gcorc.ai
Then set your environment variables with the help of the provided dummy file config.php.example
:
cp config.php.example config.php
And use php's built-in web server to run the service:
php -S localhost:8000
You can compile base64 image by sending it to localhost:8000/public/indexkax.php with the following format:
{
"image": "your base64 encoded image"
}
Homepage is served at localhost:8000/public