This study aims to explore and implement a table recognition and image analysis system based on the open-source computer vision library OpenCV, to enhance the efficiency of data extraction and processing. While tables are a common form of information organization, automatically identifying and extracting their contents from images remains a challenging task, particularly in recognizing skewed borders. This research achieves effective table contour detection and internal segmentation by integrating image processing techniques such as adaptive threshold, contour detection, and region segmentation. Following table contour detection, the machine learning open-source library TensorFlow is further employed to recognize text contents within the tables, enabling automated data extraction.