A table extraction method and system based on ellipse fitting in natural scenes
An ellipse fitting, natural scene technology, applied in computing, character and pattern recognition, computer components and other directions, can solve problems such as instability, discontinuous borders, and quadrilaterals that cannot handle perspective transformation, to avoid errors and solve borders. discontinuous effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0048] combined with figure 1 , this embodiment proposes a table extraction method based on ellipse fitting in a natural scene, and the implementation process of the table extraction method includes:
[0049] S10: Obtain an image containing a target table;
[0050] S20: performing adaptive binarization on the acquired image;
[0051] S30: use the findContours function of OpenCV to extract the table frame in the image;
[0052] S40: Perform ellipse fitting on the extracted form frame, and then expand the ellipse frame to obtain four intersection point coordinates;
[0053] S50: By defining the coordinates of the correction template, calculating the projection matrix and performing homography transformation to obtain a rectified rectangular form, which is the finally extracted form.
[0054] In step S10, the image containing the target form is a photo or a plane scanned image without obvious distortion;
[0055] The object form contained on the photo or the image is skewed o...
Embodiment 2
[0064] combined with figure 2 , this embodiment proposes a table extraction system based on ellipse fitting in a natural scene, the table extraction system includes:
[0065] Obtaining module 1, configured to obtain an image containing a target table;
[0066] The binary processing module 2 is used to perform adaptive binarization on the acquired image;
[0067] Extraction module 3, for using the findContours function of OpenCV to extract the table frame in the image;
[0068] The ellipse fitting module 4 is used to perform ellipse fitting on the extracted form frame, and expand the ellipse frame to obtain four intersection point coordinates;
[0069] The calculation and correction module 5 is used to calculate the projection matrix and perform homography transformation by defining the coordinates of the correction template, and then correct the rectangular form, and the corrected rectangular form is the final extracted form.
[0070] In this embodiment, the image containi...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

