Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i have a table that i want recognize all row and column and extract all content of my table but i have a problem with selecting table
for example:
my code get first point of my table in top left and also get last point of my table in bottom right and extract rectangle
but when i scan my paper ,my table line have noise and can not get exact first and last point
what should i do?

i use from code in Image Processing for Dummies with C# and GDI+ Part 6 - The HSL color space[^] and with EdgeDetectHomogenity filter , my line were better but i want line in one column with same index in array

0 is black border of my table

like this

255 255 255 255 0 255 255 255
255 255 255 255 0 255 255 255
255 255 255 255 0 255 255 255
255 255 255 255 0 255 255 255
255 255 255 255 0 255 255 255

not this

255 255 255 255 0 255 255 255
255 255 255 0 255 255 255 255
255 255 255 0 255 255 255 255
255 255 255 255 0 255 255 255
255 255 255 255 255 0 255 255
255 255 255 255 0 255 255 255

how can i move all 0 or black pixel to one column ?

thanks for your help
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900