python-tesseract compile CentOS 6.*

How to compile python-tesseract (for Centos 6.3 )

yum groupinstall "Development Tools" -y
yum -y install wget cmake 
yum -y install libjpeg-devel libpng-devel libtiff-devel zlib-devel
yum -y install gcc gcc-c++ make numpy
 Continue reading 
Advertisements

python alpha and num only in string

var = ” $ !!! Hello !!! World !!! $ ” var1 = re.sub(‘[^a-zA-Z0-9]’,’ ‘, var) var2 = re.split(r’\s{2,}’, var1) # or var2 = re.split(‘\s+’, var1 ) # or var2 = ” “.join(var1.split())