Difference between revisions of "Scan2wiki"

From BITPlan Wiki
Jump to navigation Jump to search
 
(9 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
{{OsProject
 
{{OsProject
 
|id=scan2wiki
 
|id=scan2wiki
 +
|state=active
 
|owner=Wolfgang Fahl
 
|owner=Wolfgang Fahl
 
|title=scan2wiki
 
|title=scan2wiki
|version=0.0.7
 
|date=2021-03-21
 
 
|url=https://github.com/WolfgangFahl/scan2wiki
 
|url=https://github.com/WolfgangFahl/scan2wiki
 +
|version=0.3.0
 +
|date=2024-02-22
 +
|since=2021-03-21
 
|storemode=property
 
|storemode=property
 
}}
 
}}
 
= Installation =
 
 
{{pip|scan2wiki}}
 
{{pip|scan2wiki}}
== Prerequisites ==
+
= Motivation =
== Scripts==
+
We would like to scan results from different scanners but also get input directly from cameras or smartphones. The scanned results should then be put
=== tbmail ===
+
into a SemanticMediaWiki to be able to search and annotate the results.
<source lang='bash'>
 
retrieve a thunderbird mail by user and user id
 
usage: tbmail [-h] [-d] [-V] [-u USER] [-i ID]
 
  
script to retrieve thunderbird mail via user and mailid
+
== Barcode scanning use case ==
 +
see [https://github.com/zauberzeug/nicegui/discussions/2028 nicegui barcode scan and amazon lookup application]
  
  Created by Wolfgang Fahl on 2021-09-23.
 
  Copyright 2020-2021 Wolfgang Fahl. All rights reserved.
 
  
  Licensed under the Apache License 2.0
+
= How to =
  http://www.apache.org/licenses/LICENSE-2.0
+
== Prerequisites ==
 +
If you'd like to transfer the scanned results to a Semantic MediaWiki you might want to install one and contact the author for support.
  
  Distributed on an "AS IS" basis without warranties
+
= Start the webserver =
  or conditions of any kind, either express or implied.
+
== scan2wiki script ==
 +
This script is an alternative to the one supplied with the python software - it automatically updates the software. You might want to first clone the software locally and modify the location in this script.
 +
<source lang='bash'>
 +
#!/bin/bash
 +
# Start scan software
 +
# WF 2018-12-24
 +
# WF 2021-11-26
 +
cd $HOME/Documents/pyworkspace/scan2wiki
 +
git pull
 +
scripts/run -k -s
 +
sleep 1
 +
tail -f /var/log/scan2wiki/scan2wiki.log
 +
</source>
  
USAGE
 
  
optional arguments:
+
= Tickets =
  -h, --help            show this help message and exit
+
{{Ticket|9|.pdf directories should be ignored|scan2wiki}}
  -d, --debug          set debug level [default: None]
+
{{Ticket|8|replace pdfminer with faster library and or approach|scan2wiki}}
  -V, --version        show program's version number and exit
+
{{Ticket|7|add archive,folder,document,paper hierarchy|scan2wiki}}
  -u USER, --user USER  id of the user
+
{{Ticket|6|setup procedure to find wikis that have OCRDocuments|scan2wiki}}
  -i ID, --id ID        id of the mail to retrieve
+
{{Ticket|5|add folder watch|scan2wiki}}
</source>
 

Latest revision as of 10:21, 22 February 2024

OsProject

OsProject
edit
id  scan2wiki
state  active
owner  Wolfgang Fahl
title  scan2wiki
url  https://github.com/WolfgangFahl/scan2wiki
version  0.3.0
description  
date  2024-02-22
since  2021-03-21
until  


Installation

pip install scan2wiki
# alternatively if your pip is not a python3 pip
pip3 install scan2wiki 
# local install from source directory of scan2wiki 
pip install .

upgrade

pip install scan2wiki  -U
# alternatively if your pip is not a python3 pip
pip3 install scan2wiki -U


Motivation

We would like to scan results from different scanners but also get input directly from cameras or smartphones. The scanned results should then be put into a SemanticMediaWiki to be able to search and annotate the results.

Barcode scanning use case

see nicegui barcode scan and amazon lookup application


How to

Prerequisites

If you'd like to transfer the scanned results to a Semantic MediaWiki you might want to install one and contact the author for support.

Start the webserver

scan2wiki script

This script is an alternative to the one supplied with the python software - it automatically updates the software. You might want to first clone the software locally and modify the location in this script.

#!/bin/bash
# Start scan software
# WF 2018-12-24
# WF 2021-11-26
cd $HOME/Documents/pyworkspace/scan2wiki
git pull
scripts/run -k -s
sleep 1
tail -f /var/log/scan2wiki/scan2wiki.log


Tickets

Issue 9 - .pdf directories should be ignored Issue 8 - replace pdfminer with faster library and or approach Issue 7 - add archive,folder,document,paper hierarchy Issue 6 - setup procedure to find wikis that have OCRDocuments Issue 5 - add folder watch