8000 GitHub - hanguyen86/text_detection: Text detection
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

hanguyen86/text_detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Text detection

This project aims to detect textes in images using Extremal Region Filter algorithm.

Matching result

Installation OpenCV on Mac OS

This is summarized from http://www.pyimagesearch.com/2015/06/15/install-opencv-3-0-and-python-2-7-on-osx/

  1. Requires Python 2.7, Git
  2. Install Python packages
pip install -r requirement.txt
  1. Install necesssary packages
brew install cmake pkg-config jpeg libpng libtiff openexr eigen tbb
  1. Clone OpenCV repos
  • opencv
cd ~
git clone https://github.com/Itseez/opencv.git
cd opencv
git checkout master
  • opencv_contrib
cd ~
git clone https://github.com/Itseez/opencv_contrib
cd opencv_contrib
git checkout master
  1. Build and install OpenCV
cd ~/opencv
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=RELEASE \
  -D CMAKE_INSTALL_PREFIX=/usr/local \
  -D PYTHON2_PACKAGES_PATH=~/feature/lib/python2.7/site-packages \
  -D PYTHON2_LIBRARY=/usr/bin/python \
  -D PYTHON2_INCLUDE_DIR=/System/Library/Frameworks/Python.framework/Headers \
  -D INSTALL_C_EXAMPLES=OFF \
  -D INSTALL_PYTHON_EXAMPLES=ON \
  -D BUILD_EXAMPLES=ON \
  -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules ..
make -j4
make install
  1. Verify in python shell
>>> import cv2
>>> cv2.__version__
'3.1.0-dev'
>>> help(cv2.text)

Usage

To show all available options:

python text.py -h

An example:

python text.py  -m  <1: Detection using Extremal
54FA
 Region Filter, 2: OCR Recognition using Tesseract> \
		           -i <path to input image> \
		           -o <path to output image>

About

Text detection

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0