Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3611990
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T21:56:38+00:00 2026-05-18T21:56:38+00:00

I need to write a program which will deskew scanned images. I’ve chosen Qt

  • 0

I need to write a program which will deskew scanned images. I’ve chosen Qt due to easy UI creation. I’ve tried to create deskew algorithm by myself, but then found interesting and well-known (to others) “Leptonica”. And i have 2 problems (googling dont help):

  1. How i can include Leptonica lib to my Qt project?
  2. I can’t find any code examples for using it in C++ (found just some for Ruby).

Sorry for maybe stupid questions but i’m new to Qt and for me it’s difficult even after reading official documentation.

=================================================

After adding leptonlib-1.67 directory to Qt Creator and editing .pro file, i can’t build it.
At first there is error like: “allheaders.h no such file or directory”. When i’ve included scr folder to INCLUDEPATH in .pro file this error gone, but i get many many others. There should be some tutorials. Please, help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T21:56:39+00:00Added an answer on May 18, 2026 at 9:56 pm

    To use Leptonica from C++, simply call it like you would in C. You can use the existing Leptonica samples as a starting point for calling the routines. You will want to look at …\leptonlib-1.xx\prog\skewtest.c for a pretty complete example of how the skew routines are used.

    In fact, you could probably just compile the skewtest program and drive it using your Qt GUI. The algorithm is pretty simple: rotate the image by a test angle, then compute the average intensity of each scanline, then find the variance of all these averages. The best deskew angle is (in theory) achieved when the variance is at a maximum. The different search algorithms used in skewtest take different approaches to finding this point of maximum variance.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have to write program, which will create two child processes These processes would
I need to write a program which will browse through strings of various lengths
I need to write a program, which will take an array of block pieces
I need to write a program used internally where different users will have different
I am writing a c++ program which sooner or later will need to be
I want to write an app that will allow a program like iTunes which
I'm needing to write a program (C#) that will allow the user to create
I'm looking to write a small program which will intercept network packets (on the
I need to write a templated function replace_all in C++ which will take a
I need to write a server program that will open and keep 5 live

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.