Open lee0c opened 1 day ago
Actually, I think there's two things going on here:
A pre-processing module that adds two fields to DocumentIntelligenceResponse
:
delta
: stores a variable that represents the spacing of the document (on a scale of 0-1? need to play with this)pages[n].regions
: a new look at the lines[]
array that groups lines into disparate Regions
(columns, sections, etc)The "real time" module which handles:
rangeToSummary
excerptToSummary
What/Why
TODO
delta
through remaining functionalityTypes & Interfaces
Additionally, all cases of
polygon: number[]
have been changed topolygon: polygon4
to use the new type below:polygon4
is explicitly a 4-pt poly, whilepolygonC
is a complex poly. Still deciding whether Summaries (see below) always explicitly return polygonC or if they can return either.More interfaces:
Functions
Preprocess.ts
DocInt.ts (naming?)