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
To generate a boundary, we can choose a pixel in the image and make several particles {p1, p2, ..., pn} randomly walk starting at that pixel, for some number of cycles. The resulting points {p1_final, p2_final, ..., pn_final} will lie on the boundary. The Graham scan algorithm can then be used to generate the convex hull enclosing those points, which we can then smooth by drawing Bezier curves or cubic splines through the hull points.
We should figure out an augmentation for placing stains on a document image, which generates the stains itself.
This probably looks like 2 new functions in
augraphy.augmentations.lib
:We can probably use the model here to produce a realistic diffusion effect for function 2.
The text was updated successfully, but these errors were encountered: