leaf_focus/report/item/page.py
def items_line(self, line_num: int) -> Iterable[OcrItem]:
        """Get the ocr items for a line."""
        line_items = [i for i in self.items if i.line_number == line_num]
        sorted_items = sorted(line_items, key=lambda x: x.line_order)
        return sorted_items
Get the ocr items for a line.
Get the ocr items for a line.
Get the ocr items for a line .
def items_line(self, line_num: int) -> Iterable[OcrItem]:
        line_items = [i for i in self.items if i.line_number == line_num]
        sorted_items = sorted(line_items, key=lambda x: x.line_order)
        return sorted_items
def items_line ( self , line_num : int ) -> Iterable [ OcrItem ] : line_items = [ i for i in self . items if i . line_number == line_num ] sorted_items = sorted ( line_items , key = lambda x : x . line_order ) return sorted_items
Get the ocr items for a line.
Get the ocr items for a line .
"""Get the ocr items for a line."""
self
line_num
int