MCPcopy
hub / github.com/impira/docquery / context

Method context

src/docquery/document.py:179–181  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

177
178 @cached_property
179 def context(self) -> Dict[str, List[Tuple["Image.Image", List[Any]]]]:
180 words, boxes = self.ocr_reader.apply_ocr(self.b)
181 return self._generate_document_output([self.b], [words], [boxes], [(self.b.width, self.b.height)])
182
183
184class WebDocument(Document):

Callers

nothing calls this directly

Calls 2

apply_ocrMethod · 0.45

Tested by

no test coverage detected