Skip to content

This repository contains source code for gcocr.ai that uses advanced artificial intelligence to compile C code from a picture of handwritten notes.

Notifications You must be signed in to change notification settings

gcocr-ai/gcocr.ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gcocr.ai

Won the best non JavaScript implementation in Stupid Hack 2020 and was the overall second place winner at the event.

Description

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)

Usage

Requirements

Make sure you have php (version 7 or higher) installed and that the curl extension is also installed and enabled in php.ini.

Installing and running

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

About

This repository contains source code for gcocr.ai that uses advanced artificial intelligence to compile C code from a picture of handwritten notes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published