KZTech commited on
Commit
82dbd93
·
verified ·
1 Parent(s): 419ea4e

Create install.sh

Browse files
Files changed (1) hide show
  1. install.sh +20 -0
install.sh ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # Update and install dependencies
4
+ apt-get update
5
+ apt-get install -y wget lsb-release build-essential
6
+
7
+ # Download and install Tesseract from source
8
+ wget https://github.com/tesseract-ocr/tesseract/releases/download/4.1.1/tesseract-4.1.1.tar.gz
9
+ tar -xvzf tesseract-4.1.1.tar.gz
10
+ cd tesseract-4.1.1
11
+ ./configure
12
+ make
13
+ make install
14
+
15
+ # Clean up the tarball and directory
16
+ cd ..
17
+ rm -rf tesseract-4.1.1 tesseract-4.1.1.tar.gz
18
+
19
+ # Ensure tesseract is installed
20
+ which tesseract