nifi-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mayank rathi <mayank.ra...@gmail.com>
Subject Re: NiFi: Extracting text from images
Date Thu, 12 Oct 2017 19:44:52 GMT
Thanks Jeremy.

Indeed quality of output text was not up to our expectations. Instead of
spending time on tuning tessearct parameters we identified a way to get
text as part of metadata. As a result we most probably won't be using
tesseract.

Thanks for offering help though.


On Sun, Oct 8, 2017 at 2:00 PM, Jeremy Dyer <jdye64@gmail.com> wrote:

> Mayank - As you may already know I had a few licensing issues getting the
> tesseract project into the formal project so development stalled. It does
> work however and I will be glad to help you out along the way if you have
> any questions while adding it.
>
> One thing I would highly recommend is to first use tesseract from the
> command line to tune your parameters and gain some insight into the
> realistic accuracy you will get extracting the text from your images before
> going through the hassle of doing the complete setup.
>
> Thanks
> Jeremy Dyer
>
> On Sun, Oct 8, 2017 at 9:53 AM, mayank rathi <mayank.rathi@gmail.com>
> wrote:
>
>> Thanks Joe and Kevin for replying.
>>
>> Just to close the loop on this issue. I was "incorrectly" expecting
>> ExtractImageMetadata to identify Text in Images. As per Kevin's suggestion
>> we are now exploring tesseract for this.
>>
>> Regards
>> Mayank
>>
>>
>>
>> On Thu, Sep 28, 2017 at 4:23 PM, Kevin Doran <kdoran.apache@gmail.com>
>> wrote:
>>
>>> Hi Mayank,
>>>
>>> To clarify, are you attempting to extract image metadata (e.g.,
>>> timestamp, width, height) or convert a photo/graphic of text into a text
>>> string using optical character recognition (OCR).
>>>
>>> If the former (metadata), Joe has you on the correct track for digging
>>> deeper. If OCR, has been done by others with NiFi using custom processors.
>>> Keyword search is "NiFi OCR". I would recommend giving Jeremy Dyer's
>>> Tesseract Processor [1] a look. Here is a guide Jeremy published [2].
>>>
>>> Cheers,
>>> Kevin
>>>
>>> [1] https://github.com/jdye64/nifi-addons/tree/master/Processors
>>> /nifi-tesseract
>>> [2] https://community.hortonworks.com/articles/28380/nifi-ocr-us
>>> ing-apache-nifi-to-read-childrens-books.html
>>>
>>> On 9/28/17, 16:14, "Joe Witt" <joe.witt@gmail.com> wrote:
>>>
>>>     Mayank,
>>>
>>>     When you tried it what happened?  Did you look at the flow file
>>>     attributes after the extraction?
>>>
>>>     Can you share a jpeg you're using that is not working as you'd
>>> expect?
>>>
>>>     Thanks
>>>     Joe
>>>
>>>     On Thu, Sep 28, 2017 at 4:12 PM, mayank rathi <
>>> mayank.rathi@gmail.com> wrote:
>>>     > Hello All,
>>>     >
>>>     > Can NiFi extract text from jpg images? If Yes, then which
>>> processor do I
>>>     > need to use? I tried ExtractImageMetadata processor and it did not
>>> help.
>>>     >
>>>     > Thanks in advance.
>>>     >
>>>
>>>
>>>
>>>
>>
>>
>> --
>> NOTICE: This email message is for the sole use of the intended
>> recipient(s) and may contain confidential and privileged information. Any
>> unauthorized review, use, disclosure or distribution is prohibited. If you
>> are not the intended recipient, please contact the sender by reply email
>> and destroy all copies of the original message.
>>
>
>


-- 
NOTICE: This email message is for the sole use of the intended recipient(s)
and may contain confidential and privileged information. Any unauthorized
review, use, disclosure or distribution is prohibited. If you are not the
intended recipient, please contact the sender by reply email and destroy
all copies of the original message.

Mime
View raw message