I'm working on the project where I need to read engraved text on the frame. I'm taking a picture using the Raspberry Pi USB camera. I initially developed a script in MatLab which achieved over 70% accuracy for OCR. However as I'm using the student version of MatLab I could not compile the code as MatLab Coder and MatLab Compiler is not available and Simulink is limited. Therefore I looked at alternatives, of which the best I found is Octave GNU, but to work with some functions from MatLab it needs image library which is only available for Octave 4.0+.
Can someone guide me how to install Octave 4.0+ on Raspberry Pi (Raspbian)? Or if it is impossible is there any other program which would work as a clone of MatLab on RPi3?
The current version is 3.8.2 for Raspbian Jessie.