Table Extraction from image

once we successfully detected the table (bordered or borderless) ,
(lets consider yolo v8 table detection).

How can we Extract the table data into proper csv ?