venkatasg / DeTeXt

iOS app that detects LaTeX symbols from drawings. Built using PencilKit, SwiftUI, Combine and CoreML for iOS 14(or greater) and macOS 11(or greater).

Home Page:https://venkatasg.net/apps/detext

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Drawings that are too small/too large are misclassified

venkatasg opened this issue · comments

This happens because the point size becomes too small/large at certain scales, causing the classifier to be confused. Not sure what's the best way to solve this at the moment.

Resolved by scaling the point size as the ratio of the width or height (whichever is larger) of the figure agains the width or height of the canvas changes. This is a heuristic solution that isn't necessarily the best solution, but it works for now.