12 Commits

Author SHA1 Message Date
Pierre-Yves Nicolas
dcc797785b Change name in LICENSE_HEADER to "The FairScan authors" 2026-05-12 13:49:03 +02:00
Pierre-Yves Nicolas
c9da4f692f Improve perspective correction using projective geometry (#173) 2026-05-03 17:46:35 +02:00
Pierre-Yves Nicolas
7d01493477 Introduce ColorMode enum 2026-04-01 12:08:07 +02:00
Pierre-Yves Nicolas
343495dafe New quad algorithm: identify edges from contour orientation (#130)
Goal: improve precision of automatic document cropping by switching:
- from Douglas-Peucker algorithm (OpenCV's approxPolyDP) + a heuristic for documents missing a corner
- to an algorithm that looks for edges

* New quad algorithm: identify edges from contour orientation
* Performance optimization: reduce number of calls to trigonometric functions
* Performance: use a single threshold for live analysis
* Fix orientation of debug mask and compute it only if required
* Exclude quads that go out of the frame
2026-03-07 12:09:41 +01:00
Pierre-Yves Nicolas
40f17eb571 evaluation: add tools for segmentation and quads 2026-02-25 16:26:58 +01:00
Pierre-Yves Nicolas
75b677ebbc evaluation: resize segmentation input with OpenCV to reduce difference with Android results 2026-02-16 20:50:23 +01:00
Pierre-Yves Nicolas
f06e96d786 Update license header 2026-01-23 18:19:11 +01:00
Pierre-Yves Nicolas
5464935291 Adjust values for ExportQuality 2026-01-15 09:55:54 +01:00
Pierre-Yves Nicolas
5c5b6e921e New setting to control the quality of exported PDFs (#70) 2026-01-11 10:12:32 +01:00
Pierre-Yves Nicolas
fcdcea1891 Store page metadata after capture 2026-01-11 10:12:32 +01:00
pynicolas
fe91f3e241 Improve distinction between color and grayscale documents (#79)
Better differentiate color and grayscale documents:
- Look for colored pixels only in the intersection of the mask and quadrilateral
- Apply a white balance (grey world) to the document
- Exclude pixels with extreme luminance
- Erode segmentation mask
2025-12-10 17:08:21 +01:00
pynicolas
87433fa96a New module: evaluation (#78) 2025-12-07 21:39:49 +01:00