1 | initial version |
First threshold the image. Then find the contours (just the the outside one) and fit a rotated rectangle to it. Then with that rectangle, rotate and crop the cells region. After that, having just the cells region, try the canny edge detector, or threshold+findContours. You can also look into HoughLines and see if it helps. Good luck