How can I turn the image in the correct orientation?


question_mark_77

I have a sheet of paper with scans of documents on it, I use tesseract to recognize the text, but sometimes the image is in the wrong orientation, then I cut these documents from the sheet and process each document individually, but I need to turn them in the correct position, How to do it?

Aleno

I'm not sure if there is an easy way, but you can rotate the document after you can't find enough characters, and if you see letters, the document is oriented correctly.

From what I understand, you are using a parser, so the check can be simple, if there are less than 5 keys, the document is wrongly reversed

Related


How can I correct this z-index and button image?

eleven So I'm new to coding and I've been playing around with it for the past two days and I've got this setup so far... This is a re-edit of my original post. notes: i(br) makes the body roll temporarily. Otherwise, the code is exactly what I want. I read a b

How can I correct this undefined method of main_image?

Daniel So I'm trying to build the show functionality in Rails in portals_controller.rb: class PortfoliosController < ApplicationController def index # this calls the model @portfolio_items = Portfolio.all end def new @portf

How can I correct this z-index and button image?

eleven So I'm new to coding and I've been playing around with it for the past two days and I've got this setup so far... This is a re-edit of my original post. notes: i(br) makes the body roll temporarily. Otherwise, the code is exactly what I want. I read a b

How can I correct a bug in the swap image jQuery code?

Code Fighter I'm trying to create code to swap images in a table based on values in the database. After doing some research on the site, I have this code, modified for my needs. It is not dynamic at this time, because the input data at this time is hardcoded.