Recently found this API for OCR math recognition: https://www.snapxam.com/apis/math-apis/docs it works fairly well, gives you the recognition result in latex and infix notation. Is not a library but could serve for the same purpose. You need to request an api key though.