Line | |
---|
1 | #====
|
---|
2 | # Getting the extension
|
---|
3 | #====
|
---|
4 |
|
---|
5 | Assuming you are in the Greenstone3 top-level (i.e. GSDL3SRCHOME) directory,
|
---|
6 | (if not already done so) this extension can be checked out as follows:
|
---|
7 |
|
---|
8 | svn co https://svn.greenstone.org/gs3-extensions/structured-image/trunk ext/structured-image
|
---|
9 |
|
---|
10 | Note that the plugin this extension introduces makes use of a Google Service Account and requires credentials. For more details, visit: https://cloud.google.com/vision/docs/setup.
|
---|
11 |
|
---|
12 |
|
---|
13 | #====
|
---|
14 | # Compiling the extension
|
---|
15 | #====
|
---|
16 |
|
---|
17 | #-<>
|
---|
18 | # <One-time-only>
|
---|
19 | #--
|
---|
20 |
|
---|
21 | cd ext/structured-image
|
---|
22 | ./CREATE-VENV-PYTHON3.sh
|
---|
23 | cd ../..
|
---|
24 |
|
---|
25 | ln -s ext/structured-image/SETUP-TOP-LEVEL.sh SETUP.sh
|
---|
26 | ln -s ext/structured-image/DEVEL-TOP-LEVEL.sh DEVEL.sh
|
---|
27 |
|
---|
28 | # If your python does not already have Google Cloud Vision
|
---|
29 | source ./SETUP.sh
|
---|
30 | pip install --upgrade google-cloud-vision
|
---|
31 |
|
---|
32 | #--
|
---|
33 | # </One-time-only>
|
---|
34 | #</> |
---|
Note:
See
TracBrowser
for help on using the repository browser.