Tim M 57b5cefde5 Updated all `.md` files to contain newest image 2 лет назад
..
CMakeLists.txt e8c87c4d5b added Text Detection Code 6 лет назад
README.md 57b5cefde5 Updated all `.md` files to contain newest image 2 лет назад
bikes.jpg e8c87c4d5b added Text Detection Code 6 лет назад
cards.jpg e8c87c4d5b added Text Detection Code 6 лет назад
jeep.jpg e8c87c4d5b added Text Detection Code 6 лет назад
multiple-plates.jpg e8c87c4d5b added Text Detection Code 6 лет назад
oneway.jpg e8c87c4d5b added Text Detection Code 6 лет назад
patient.jpg e8c87c4d5b added Text Detection Code 6 лет назад
slippery.jpg e8c87c4d5b added Text Detection Code 6 лет назад
stop1.jpg e8c87c4d5b added Text Detection Code 6 лет назад
stop2.jpg e8c87c4d5b added Text Detection Code 6 лет назад
textDetection.cpp 3e5b37adfa Add gpu support 4 лет назад
textDetection.py 3e5b37adfa Add gpu support 4 лет назад

README.md

Deep Learning based Text Detection Using OpenCV (C++/Python)

This repository contains the code for Deep Learning based Text Detection Using OpenCV (C++/Python) blog post.

download

Text detection using OpenCV DNN

Getting the EAST Model

  1. The text detection scripts use EAST Model which can be downloaded using this link: https://www.dropbox.com/s/r2ingd0l3zt8hxs/frozen_east_text_detection.tar.gz?dl=1

  2. Once the file has been downloaded (~85 MB), unzip it using tar -xvzf frozen_east_text_detection.tar.gz.

  3. After unzipping, copy the .pb model file to the working directory.

Using the C++ code

Compilation

To compile the text_detection.cpp, use the following:

cmake .
make

Usage

Refer to the following to use the compiled file:

./textDetection --input=<input image path>

Using the Python code

Usage

Refer to the following to use the Python script:

python text_detection.py --input <image_path>

AI Courses by OpenCV

Want to become an expert in AI? AI Courses by OpenCV is a great place to start.