Works fine for me. What traineddata and options did you use?

Attaching the output from the following, I did not change dpi of image.

#!/bin/bash
img_files=$(ls ./nepali*.png)
for img_file in ${img_files}; do
  echo "****************************" ${img_file} oem
1"**********************************"
 time tesseract --tessdata-dir /mnt/c/Users/User/shree/tessdata_best/
 ${img_file} ${img_file%.*}-Devanagari-best  --oem 1 --psm 6 -l Devanagari
 time tesseract --tessdata-dir /mnt/c/Users/User/shree/tessdata_fast/
 ${img_file} ${img_file%.*}-Devanagari-fast  --oem 1 --psm 6 -l Devanagari
 time tesseract --tessdata-dir /mnt/c/Users/User/shree/tessdata/
 ${img_file} ${img_file%.*}-nep  --oem 1 --psm 6 -l nep
done



ShreeDevi
____________________________________________________________
भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com

On Thu, Jan 11, 2018 at 9:44 PM, Nirajan Pant <[email protected]> wrote:

> Tesseract 4.0 is not working with the image provided here. This is a page
> from Nepali novel. The resolution is slightly low but not too much. The OCR
> result only few word or in other pages it returns empty result.
>
>
> <https://lh3.googleusercontent.com/-deZEGcNi7-M/WleM_DV1s7I/AAAAAAAAFgs/AvR3lGALhu0hrOcsK7ZQ4pRIySBDhur9ACLcBGAs/s1600/tmp_20180111201447661_page-6.png>
>
> --
> You received this message because you are subscribed to the Google Groups
> "tesseract-ocr" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/tesseract-ocr.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/tesseract-ocr/534d9a5c-342e-447f-b4cd-7792f7bd7718%
> 40googlegroups.com
> <https://groups.google.com/d/msgid/tesseract-ocr/534d9a5c-342e-447f-b4cd-7792f7bd7718%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/CAG2NduUTJ828J3qPYLNBs4_hJZvADrdJ6-NimWY2nUD3MQRqOw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
समर्पण
हे मेरा भाइ ! हे मेरा बहिनी । पहाड शहरमा,
यो यौटा मेरो भक्तिको माला चढाएँ चरणमा ।
अरू ता मैले के गर्न सक्थेँ ?, अपढ-अज्ञानी,
आँसुले भिजेको यो फूल गाँसेँ नजानी नजानी ।
घाम र छाया-बीचमा फुल्यो मनको फूलबारी,
सपनाभित्र फुलेको ल्याएँ विपना ओसारी।
यिनको बास नबिर्साइदिन्छ॒ वरको परको,
आँसु र हाँसो मिसाइदिन्छ सबका घरको।
जो मैले गुँथेँ पहिर भाइ! पहिर बहिनी !
प्रेमका गलामा नवैलिजाओस्‌ भक्त हुँ म पनि।
नेपाली माटो स्वर्गको किरण झरेर ऊन्क्यो मूल,
नेपाली बास्ना भएर निस्के अत्तर देशी फूल,
एकान्त वनमा फूलपरी रंगमा कस्सिए फुर्फरी,
एक लहर टिपी चढाएँ, नाचून्‌ छातीमा हरघरी ।
नदेख्ने वन कविको मन रङ्गले छिर्किन्छ,
जीवनको छायादेशमा एउटा फूलबारी हुर्कन्छ,
आँसुको जाल डालीमा हाली बिन्दुले रसाए,

कल्पने माली, अम्लान क्‌सुम,

एक डाली गुँथी, गलामा फाली,
जोर्दछु हात हे भाइ-बहिनी । बास्नामा रसाए,
दिलमा खुशाए
स्वप्नाको धन नबाँडीकन हुँदैन खुशी मन !
आनन्द मेरो लखगुना होला सकारे समर्पण !

0

समर्पण
हे मेरा भाइ ! हे मेरा बहिनी । पहाड शहरमा,
यो यौटा मेरो भक्तिको माला चढाएँ चरणमा ।
अरू ता मैले के गर्न सक्थेँ ?, अपढ-अज्ञानी,
आँसुले भिजेको यो फूल गाँसँ नजानी नजानी ।
घाम र छाया-बीचमा फुल्यो मनको फूलबारी,
सपनाभित्र फुलेको ल्याएँ बिपना ओसारी ।
थिनको बास बिर्साइदिन्छ वरको परको,
आँसु र हाँसो मिसाइदिन्छ सबका घरको ।
जो मैले गुँथँ पहिर भाइ ! पहिर बहिनी !
प्रेमका गलामा नवैलिजाओस्‌ भक्त हुँ म पनि ।
नेपाली माटो स्वर्गको किरण झरेर झन्क्यो मूल,
नेपाली बास्ना भएर निस्के अत्तर देशी फूल,
एकान्त वनमा फूलपरी रँगमा कस्सिए फुर्फ्री,
एक लहर टिपी चढाएँ, नाचून्‌ छातीमा हरघरी ।
नदेख्ने वन कविको मन रङ्गले चछिर्किन्छ,
जीवनको छायादेशमा एउटा फूलबारी हुर्कन्छ,
आँसुको जाल डालीमा हाली बिन्दुले रसाए,

कल्पने माली, अम्लान कुसुम,

एक डाली गुँथी, गलामा फाली,
जोर्दछु हात हे भाइ-बहिनी ! बास्नामा रसाए,
दिलमा खुशाए
स्वप्नाको धन नबाँडीकन हुँदैन खुशी मन !
आनन्द मेरो लखगुना होला सकारे समर्पण !

QJ

समर्पण
है मेरा भाइ | हे मेरा बहिनी । पहाड शहरमा,
यो यौटा मेरो भक्तिको माला चढाएँ चरणमा ।
अरू ता मैले के गर्न सक्थें ?, अपढ-अज्ञानी,
आँसुले भिजेको यो फूल नजानी नजानी ।
घाम र छाया-बीचमा फुल्यो मनको फूलबारी,
सपनाभित्र फुलेको ल्याएँ बिपना ओसारी ।
यिनको बास बिर्साइदिन्छ वरको परको,
आँसु र हाँसो मिसाइदिन्छ सबका घरको ।
जो मैले गुँथें पहिर भाइ ! पहिर बहिनी !
प्रेमका गलामा नवैलिजाओस् भक्त हुँ म पनि।
नेपाली माटो स्वर्गको किरण झरेर झन्क्यो मूल,
नेपाली बास्ना भएर निस्के अत्तर देशी फूल,
एकान्त वनमा फूलपरी कस्सिए
एक लहर टिपी चढाएँ, नाचून् छातीमा हरघरी ।
नदेख्ने वन कविको मन रङ्गले छिर्किन्छ,
जीवनको छायादेशमा एउटा फूलबारी हुर्कन्छ,
आँसुको जाल डालीमा हाली विन्दुले रसाए,

कल्पनै माली, अम्लान कुसुम,

एक डाली गुँथी, गलामा फाली,
जोर्दछु हात हे भाइ-बहिनी ! बास्नामा रसाए,
दिलमा खुशाए
स्वप्नाको धन नबाँडीकन हुँदैन खुशी मन !
आनन्द मेरो लखगुना होला सकारे समर्पण !

3


Reply via email to