[tesseract-ocr] Re: Need of bounding boxes coordinates of individual letters from image in hocr format

2020-03-10 Thread Juanjo Serrano Lloria
Hi,
Did you try activating the makebox configuration?

Example in command mode:
tesseract isis_0153.png isis_0153 makebox hocr

El martes, 10 de marzo de 2020, 10:47:09 (UTC+1), Preetilatha Ramalingam 
escribió:
>
> Hi,
>
>I'm able to get the bounding box coordinates of words in hocr format 
> using the 
> function pytesseract.image_to_pdf_or_hocr(imge,lang='eng',extension='hocr') 
> and I get the below output.
>
> 
>  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;>
> http://www.w3.org/1999/xhtml; xml:lang="en" lang="en">
>  
>   
>   
>   
>   
>  
>  
>   
>
> 
>  
>   Noisy
>   image
>  
>  
>   to
>   test
>  
>  
>   Tesseract
>   OCR
>  
> 
>
>   
>  
> 
>
> But I'm in need of bounding box coordinates for individual letters in 
> words. Below is the desired output.
>
>
> 
>
>
>
> 
>
>  
>
>   
>
>B
>
>A
>
>S
>
>O
>
>B
>
>C
>
>   
>
>   
>
>6
>
>   
>
>  
>
> 
>
>
>
>   
>
>
> Please help me out to solve this
>
>
>
> Thanks
>
>

-- 
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 tesseract-ocr+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/0bd535ac-438d-4eac-b4cf-64c2af0f0c54%40googlegroups.com.


[tesseract-ocr] Re: How to install current version of tesseract on Ubuntu 16.04.6

2020-02-20 Thread Juanjo Serrano Lloria
sudo add-apt-repository 'deb http://es.archive.ubuntu.com/ubuntu focal main 
universe'
sudo apt-get update

sudo apt-get install tesseract-ocr

or 

sudo apt-get install tesseract-ocr-all  (with all language packages)

-- 
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 tesseract-ocr+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/69cbd72a-3f2a-4f2c-beac-9b3767de49d3%40googlegroups.com.


[tesseract-ocr] Re: How to install current version of tesseract on Ubuntu 16.04.6

2020-02-20 Thread Juanjo Serrano Lloria
Maybe you can add repo:

add-apt-repository 'deb http://es.archive.ubuntu.com/ubuntu focal main 
universe'

-- 
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 tesseract-ocr+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/23df0fa8-a7aa-4cfc-bed5-245a2999f59f%40googlegroups.com.


[tesseract-ocr] Re: Is it possible to pass a numpy array to Tesseract, instead of saving it to the disk.

2019-10-30 Thread Juanjo Serrano Lloria
Hi,

Perhaps a solution is to create a memory filesystem.

https://docs.pyfilesystem.org/en/latest/reference/memoryfs.html


El miércoles, 30 de octubre de 2019, 6:28:57 (UTC+1), Ayush Pandey escribió:
>
> Hi,
>
> I want to run the trained tesseract model through a python script ( using 
> PyTesseract for this purpose right now ). Is there a way by which I can 
> pass a numpy array to Tesseract without saving it to the disk ( writing to 
> disk is quite slow and time consuming ).
>
> Thanks and Regards,
> Ayush Pandey.
>

-- 
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 tesseract-ocr+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/9f535c68-f7ed-48e9-9958-c18b98a2f451%40googlegroups.com.


Re: [tesseract-ocr] Re: Parameters to increase tolerance of whitespace between characters?

2019-10-19 Thread Juanjo Serrano Lloria
Same problem in tesseract 4.1.0. Removing whitespaces. I've tried with a 
lot of parameters.

El martes, 27 de agosto de 2019, 15:14:27 (UTC+2), Timothy Snyder escribió:
>
> Yes, any info would be very useful. I've tried modifying a large number of 
> config variables to no effect with Tesseract 4.0+. Having some control over 
> line/word/character segmentation would be a very useful feature.
>
> On Tue, Aug 27, 2019 at 5:11 AM Stephane Charette  > wrote:
>
>> I joined for similar/opposite reasons:  In my case Tesseract is removing 
>> critical whitespace from between non-dictionary words, and I was looking 
>> for tips/hints as to what to tweak in Tesseract's configuration to get it 
>> to treat whitespace differently.
>>
>> Anyone know?
>>
>> Stéphane
>>
>>
>> On Wednesday, July 10, 2019 at 8:16:55 AM UTC-7, Timothy Snyder wrote:
>>>
>>> Hello all,
>>>
>>> Does anyone know of any config parameters that will increase the 
>>> tolerance of whitespace between characters, i.e., increase the amount of 
>>> whitespace needed to trigger word segmentation?
>>>
>>> I have many cases in my text where there are extra whitespace between 
>>> characters resulting in the segmentation of a single word into multiple 
>>> words.
>>>
>>> Any suggestions would be appreciated!
>>>
>>> -Tim
>>>
>> -- 
>> 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 tesser...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tesseract-ocr/8e6878a9-655d-41c7-9d4d-bcb7dcfb6419%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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 tesseract-ocr+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/9af5877d-908c-457f-8f7b-318dcf3e8ecc%40googlegroups.com.


[tesseract-ocr] Some spaces between word are not recognized

2019-10-18 Thread Juanjo Serrano Lloria
Tesseract Version: 
tesseract 4.1.0
 leptonica-1.75.3
  libgif 5.1.4 : libjpeg 8d (libjpeg-turbo 1.5.2) : libpng 1.6.34 : libtiff 
4.0.9 : zlib 1.2.11 : libwebp 0.6.1 : libopenjp2 2.3.0

Platform**: Linux Ubuntu

Some spaces between word are not recognized. I've tried with 
preserve_interword_spaces and others parameters but no changes has detected.

-- 
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 tesseract-ocr+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/46bde8b9-2159-4857-9910-1b017f6b7910%40googlegroups.com.