You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add opencv for Computer Vision and performing image preprocessing. Provides better algorithms than Pillow for doing image smoothing, denoising and binarisation. Can later come in handy to deal with skewed or rotated images.
Copy file name to clipboardExpand all lines: image_preprocessing.py
+60Lines changed: 60 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -13,13 +13,18 @@
13
13
TODO:
14
14
- DPI Normalization: to make the image crispier and easy to read
15
15
- Contour detection
16
+
- Border Removal
17
+
- Erosion and Dilation
18
+
- Edge detection
19
+
- Rotation and Alignment
16
20
17
21
Currently we are using Pillow, which is basic. We can move to opencv which has better denoising and binarization support. Also it supports contour detection and DPI normalization.
0 commit comments