Giter Site home page Giter Site logo

Comments (11)

nguyenq avatar nguyenq commented on August 29, 2024

Can you attach scanned-table.jpg to the ticket?

from lept4j.

Artgit avatar Artgit commented on August 29, 2024

Sure, this is scanned-table.jpg:
scanned-table

this is the link on the internet of the same image: https://thewordmatrix.files.wordpress.com/2012/07/scanned-table.jpg?w=474&h=385

from lept4j.

nguyenq avatar nguyenq commented on August 29, 2024

I got the same result with the image: lines were removed but text became smeared.

from lept4j.

Artgit avatar Artgit commented on August 29, 2024

@nguyenq another issue with this code that LeptUtils.convertPixToImage(pixs4); doesn't work properly for any of my test images and I'm unable to convert Pix back to BufferedImage. What may be wrong there?

from lept4j.

nguyenq avatar nguyenq commented on August 29, 2024

It seems the round-trip conversion has issues, as mentioned in #10. It is caused by Leptonica1.bbufferDestroy statement in LeptUtils.convertPixToImage method. Removing it, however, would cause memory leaks. We're trying to determine what would be the optimal solution to this. Any suggestion is welcome.

from lept4j.

nguyenq avatar nguyenq commented on August 29, 2024

A fix ff93f30 has been committed for convertPixToImage issue.

from lept4j.

Artgit avatar Artgit commented on August 29, 2024

@nguyenq thank you very much! Is it possible to use lept4j-1.9.1 as Maven dependency? Is it available in any Maven repository on the internet?

from lept4j.

nguyenq avatar nguyenq commented on August 29, 2024

It has just been released and is available on https://oss.sonatype.org now and on Central Maven shortly.

from lept4j.

Artgit avatar Artgit commented on August 29, 2024

@nguyenq thank you very much! It is working now!

from lept4j.

nguyenq avatar nguyenq commented on August 29, 2024

Can this ticket be closed?

As to the problem of bad output image from line removal code, you may want to open a ticket with Leptonica developers asking for advice.

from lept4j.

Artgit avatar Artgit commented on August 29, 2024

sure, thanks for your help on this issue!

from lept4j.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.