How to find text in image
Hi everybody I want to find text in image but how can ı can do it ? Firstly I have done rectangle for text and done it succesfully but I dont know how ı can improve this and ı can save only text another image Can I use artifical intellegance for this project If ı can it which method Thanks advance
You should search in the litterature as it is a very common subject. Stroke Width Transform to detect potential text location combined with Tesseract OCR for example.
Also with OpenCV 3.0 and contrib module you have this.
Thanks for your advance Actually I can find text in image but I want to save this text in .txt format My code here:
Im sorry I can 't use pre code tag
in addition ı use opencv 2.4.6 how can ı integrate
As far as I know, you cannot do ocr (optical character recognition) directly in OpenCV 2.4.6. You should look at the documentation of Tesseract Open Source OCR Engine.
Start by stop using OpenCV 2.4.6. It is old deprecated and absolete and contains TONS of bugs. Go either for 2.4.12 or for latest master 3.0 branch! Like said by @Eduardo, tesseract has been interfaced with OpenCV in a contributed module and makes your life soooo much easier!