Commit Graph

84 Commits

Author SHA1 Message Date
Albert Cervera i Areny 021030b26c Let test-scandialog be cross platform. 2008-08-31 23:18:17 +02:00
Albert Cervera i Areny a94e41fe17 Added TODO file. 2008-08-30 19:23:58 +02:00
Albert Cervera i Areny 48f4b0b627 Started some learning tests using gamera. Very sloooow by now. 2008-08-30 19:23:09 +02:00
Albert Cervera i Areny 0b5450d982 Remove empty line. 2008-08-30 19:22:25 +02:00
Albert Cervera i Areny 3e1433d5a4 Fix bug: rename variable. 2008-08-30 19:21:40 +02:00
Albert Cervera i Areny 665dad1799 Write formated text in an output file in test-ocr.py 2008-08-30 19:19:20 +02:00
Albert Cervera i Areny 97de6ad8bb Insert new Character() objects instead of rendering text directly in
formatedText() function. This allows us to use the formated text algorithm
in other places, not only for 'printing'.
2008-08-30 19:16:29 +02:00
Albert Cervera i Areny bc533aae90 Added GPL header and fix a typo. 2008-08-30 19:05:53 +02:00
Albert Cervera i Areny 99a09a4411 Added a loop on distances tests to measure speed. 2008-08-30 19:05:17 +02:00
Albert Cervera i Areny d5daccecc8 Fix bug of (wrong var name). 2008-08-30 18:59:28 +02:00
Albert Cervera i Areny 2b84e27b76 Added hamming distance implementation. 2008-08-05 10:52:40 +02:00
Albert Cervera i Areny 1a3dc76ccf Added levenshtein distance implementation. 2008-08-05 10:37:59 +02:00
unknown 8cce5313fe Merge branch 'master' of ssh://albert@192.168.1.2/home/albert/d/git/nanscan
Conflicts:

	__init__.py
2008-06-22 12:45:13 +02:00
unknown ce112dfd02 Added scandialog. 2008-06-22 12:42:41 +02:00
Albert Cervera i Areny 7f713765d0 - Added TemporaryFile class which will help handling temporary files
for external commands.
- Scan functions now expect a QImage() instead of a file name which is more
appropiate and API friendly.
- Reestructured deskew() function into slope(), deskewOnce() and deskew().
2008-06-19 20:45:22 +02:00
Albert Cervera i Areny efb1d33258 Added comments in text formating function (explain algorithm).
Changed convertToGray for convertToGrayScale.
2008-06-18 02:26:09 +02:00
Albert Cervera i Areny bd015179be Added deskew function which also introduces the required 'linearRegression'
function.
2008-06-18 02:03:27 +02:00
Albert Cervera i Areny 3588ba1a9b Added function formatedText(region) in ocr.py which puts characters one
after the other and in its line with spaces in between trying to emulate
standard tesseract output.
2008-06-17 20:30:50 +02:00
Albert Cervera i Areny 301c0a7f32 Remove commented code from last commit. 2008-06-16 23:54:05 +02:00
Albert Cervera i Areny 1f1744edbb Several improvements in recognizer.py
- Refactored template selection code. Templates are translated
5 millimeters in each direction to find the best one (make it
much slower, though).
- Don't import everything in __init__.py
- Changed names of several functions.
2008-06-16 23:53:19 +02:00
Albert Cervera i Areny 243ab2e684 Added duplex capabilities to Twain backend. 2008-06-15 18:57:02 +02:00
Albert Cervera i Areny b9ef19a44d Set proper resolution in scanned images (QImage). 2008-06-15 17:25:36 +02:00
Albert Cervera i Areny 6fbe42e63c Fixed Trigram implementation. 2008-06-15 11:17:32 +02:00
Albert Cervera i Areny b0320e055d Added our own trigram implementation. Now it's used in recognizer.
Recognizer usage of trigram still untested but should most possibly work.
2008-06-13 20:31:14 +02:00
Albert Cervera i Areny 6cb2c3b1bd Added __init__.py file needed for backends submodule.
Some fixes in sane backend, not working yet due to
a sane segfault (which also happens in sane examples).
2008-05-24 01:40:11 +02:00
unknown 6805ba78e7 Merge branch 'master' of ssh://albert@192.168.1.2/home/albert/d/git/nanscan 2008-05-24 01:12:09 +02:00
unknown 79db4254bb Add missing backends/common.py 2008-05-24 01:10:48 +02:00
Albert Cervera i Areny 44618101d5 Revert "Commit windows merge with twain backend working."
This reverts commit 1326a5cf02.
2008-05-24 01:09:54 +02:00
Albert Cervera i Areny 1326a5cf02 Commit windows merge with twain backend working. 2008-05-24 01:08:09 +02:00
unknown cd6559cb30 nanscan scanning module working on windows. twain.pyd
(twain python wrapper) has been added to the repository
so it's easier to deploy.

Basically it's meant merging scanner module done for the
ktiny plugin into nanscan which still has to be tested
with its sane backend on linux.
2008-05-24 01:04:29 +02:00
Albert Cervera i Areny dca04721f4 Initial scanner support. Nothing working yet.
Created:
- Generic scanner.py which delegates to backends depending on platform
- Initial sane backend more or less created but nothing tested yet
  waiting for twain merge.
2008-05-24 00:16:28 +02:00
Albert Cervera i Areny d965700280 Added change-resolution.py utility application. 2008-05-12 21:42:24 +02:00
Albert Cervera i Areny 7bca063e2e Now we work with millimeters instead of pixels. This should
allow us work with images scanned at different resolutions.
2008-05-12 17:55:51 +02:00
Albert Cervera i Areny 32bb3f1aa8 Initial commit of nanscan library. 2008-05-12 12:01:22 +02:00