Skip to content

Commit

Permalink
Return the table from ToTableFromOCR
Browse files Browse the repository at this point in the history
  • Loading branch information
vegarsti committed Jan 17, 2024
1 parent 08a12cb commit dcf2498
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions textract/textract.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package textract

import (
"encoding/json"
"fmt"
"math"
"sort"
Expand Down Expand Up @@ -310,8 +309,5 @@ func ToTableFromOCR(output *textract.DetectDocumentTextOutput) ([][]string, erro
boxes = append(boxes, box)
}
table := box.ToTable(boxes)
tableJSON, _ := json.MarshalIndent(table, "", " ")
fmt.Println(string(tableJSON))

return nil, nil
return table, nil
}

0 comments on commit dcf2498

Please sign in to comment.