leptonica/1.83.1

Library containing software that is broadly useful for image processing and image analysis applications.
Recipe info
BSD 2-Clause
2024-05-03

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
leptonica/1.83.1

Using leptonica

Note

If you are a new Conan user, we recommend reading the how to consume packages tutorial.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
leptonica/1.83.1
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("leptonica/1.83.1")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): Leptonica
  • CMake target name(s): leptonica
  • pkg-config file name(s): lept.pc

A simple use case using the CMake file name and the global target:

# ...
find_package(Leptonica REQUIRED)
# ...
target_link_libraries(YOUR_TARGET leptonica)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the leptonica homepage listed above:

#include "allheaders.h"
#include "alltypes.h"
#include "array.h"
#include "array_internal.h"
#include "arrayaccess.h"
#include "bbuffer.h"
#include "bilateral.h"
#include "bmf.h"
#include "bmfdata.h"
#include "bmp.h"
#include "ccbord.h"
#include "ccbord_internal.h"
#include "colorfill.h"
#include "dewarp.h"
#include "endianness.h"
#include "environ.h"
#include "gplot.h"
#include "hashmap.h"
#include "heap.h"
#include "imageio.h"
#include "jbclass.h"
#include "leptonica/allheaders.h"
#include "leptonica/alltypes.h"
#include "leptonica/array.h"
#include "leptonica/array_internal.h"
#include "leptonica/arrayaccess.h"
#include "leptonica/bbuffer.h"
#include "leptonica/bilateral.h"
#include "leptonica/bmf.h"
#include "leptonica/bmfdata.h"
#include "leptonica/bmp.h"
#include "leptonica/ccbord.h"
#include "leptonica/ccbord_internal.h"
#include "leptonica/colorfill.h"
#include "leptonica/dewarp.h"
#include "leptonica/endianness.h"
#include "leptonica/environ.h"
#include "leptonica/gplot.h"
#include "leptonica/hashmap.h"
#include "leptonica/heap.h"
#include "leptonica/imageio.h"
#include "leptonica/jbclass.h"
#include "leptonica/leptwin.h"
#include "leptonica/list.h"
#include "leptonica/morph.h"
#include "leptonica/pix.h"
#include "leptonica/pix_internal.h"
#include "leptonica/ptra.h"
#include "leptonica/queue.h"
#include "leptonica/rbtree.h"
#include "leptonica/readbarcode.h"
#include "leptonica/recog.h"
#include "leptonica/regutils.h"
#include "leptonica/stack.h"
#include "leptonica/stringcode.h"
#include "leptonica/sudoku.h"
#include "leptonica/watershed.h"
#include "leptwin.h"
#include "list.h"
#include "morph.h"
#include "pix.h"
#include "pix_internal.h"
#include "ptra.h"
#include "queue.h"
#include "rbtree.h"
#include "readbarcode.h"
#include "recog.h"
#include "regutils.h"
#include "stack.h"
#include "stringcode.h"
#include "sudoku.h"
#include "watershed.h"