Calixte Denizet
2f828c7bf4
[Editor] (WIP) Add a new tool in order to add an handwritten signature to a pdf (bug 1942343)
...
This patch is adding some code in order to extract a drawing as curves from an image.
The algorithm is basically the following:
- reduce the dimensions
- make it gray
- apply a bilateral filter in order to add some blurryness while keeping the edges
- compute the histogram
- guess what's the background color which should contain a large majority of the pixels
- make a binary image
- extract the contours in using the Suzuki algorithm
- apply the Douglas-Peucker algorithm in order to reduce the number of points
The algorithm is improvable but it should work pretty well if there's a clear difference between
the background and the drawing.
In a v2 we could use a ML model in order to improve the extraction.
There's few changes related to the UI in order to make the tool usable, but they're very basic
for the moment.
2025-01-29 21:52:14 +01:00
..
2025-01-29 21:52:14 +01:00
2015-01-26 16:44:45 +01:00
2024-10-11 12:05:36 +02:00
2025-01-29 21:52:14 +01:00
2024-12-09 17:25:36 +01:00
2025-01-29 21:52:14 +01:00
2025-01-14 11:16:59 +01:00
2024-09-03 16:57:41 +02:00
2025-01-29 21:52:14 +01:00
2025-01-29 21:52:14 +01:00
2024-08-12 12:26:35 +02:00
2024-10-01 19:43:16 +02:00
2015-08-14 18:59:55 +02:00
2024-11-18 16:21:12 +01:00
2011-07-05 10:53:57 -07:00
2024-01-26 18:31:38 +01:00
2023-10-09 12:06:33 +02:00
2024-12-02 23:01:22 +01:00
2024-12-06 14:47:22 +01:00
2024-11-28 15:23:03 +01:00
2023-11-28 14:21:53 +01:00
2025-01-29 21:52:14 +01:00
2024-06-25 21:03:34 +02:00
2024-08-12 12:26:35 +02:00
2024-03-12 13:18:15 +01:00
2024-12-06 14:47:22 +01:00
2024-02-02 13:10:52 +01:00
2024-12-03 19:02:58 +01:00
2024-06-18 11:54:49 +02:00
2024-11-28 13:25:56 +01:00
2024-08-02 20:46:13 +02:00
2024-12-06 14:47:22 +01:00
2024-12-04 09:15:01 +01:00
2024-12-03 19:02:58 +01:00
2023-06-21 13:13:53 +02:00
2024-08-31 18:31:31 +02:00
2024-05-01 18:02:05 +02:00
2024-09-28 12:29:51 +02:00
2024-12-01 12:25:16 +01:00
2024-12-06 17:53:28 +01:00
2025-01-15 14:23:04 +01:00
2023-04-17 14:31:23 +02:00
2024-08-25 20:34:03 +02:00
2024-10-01 13:25:22 +02:00
2024-07-18 13:29:32 +02:00
2024-04-29 18:54:06 +02:00
2025-01-10 16:05:59 +01:00
2024-04-18 18:41:18 +02:00
2024-08-23 18:39:28 +02:00
2024-12-06 14:47:22 +01:00
2024-01-21 10:13:12 +01:00
2024-12-06 14:47:22 +01:00
2024-08-10 12:24:59 +02:00
2022-09-08 12:38:17 +02:00
2024-09-16 14:48:26 +02:00
2024-06-12 18:41:07 +02:00
2024-01-31 14:07:11 +01:00
2024-12-05 23:15:04 +01:00
2024-12-14 19:39:51 +01:00
2024-12-11 23:20:01 +01:00
2024-08-12 12:26:35 +02:00
2023-10-26 12:05:33 +02:00
2024-09-28 12:29:51 +02:00
2024-11-01 17:43:59 +01:00
2024-08-01 21:34:50 +02:00
2023-09-07 18:22:33 +02:00
2024-12-16 16:04:13 +01:00
2024-09-05 17:59:42 +02:00
2024-11-28 13:25:56 +01:00
2025-01-07 10:29:23 +01:00
2024-03-04 19:32:12 +01:00
2025-01-29 21:52:14 +01:00
2024-09-16 14:48:26 +02:00
2020-03-21 13:55:06 +01:00
2024-10-02 19:17:40 +02:00
2024-11-01 13:31:28 +01:00
2024-12-07 13:44:48 +01:00
2023-10-19 11:20:41 +02:00
2022-03-28 11:36:29 +02:00
2023-10-07 09:31:08 +02:00
2023-10-19 11:20:41 +02:00
2025-01-29 21:52:14 +01:00
2025-01-29 21:52:14 +01:00
2025-01-29 21:52:14 +01:00
2023-10-06 09:50:03 +02:00
2023-10-26 12:05:33 +02:00