1 year ago

#378601

test-img

diceReaderGuy

How do I rotate an image of a dice into an upright position for optimal OCR?

I have the following images:

https://i.stack.imgur.com/sdEJQ.jpg - Die showing 1

https://i.stack.imgur.com/I4FTB.jpg - Die showing 2

https://i.stack.imgur.com/vmys7.jpg - Die showing 3

https://i.stack.imgur.com/UhZXp.jpg - Die showing 4

https://i.stack.imgur.com/KyDz5.jpg - Die showing 5

https://i.stack.imgur.com/O9y1p.jpg - Die showing 6

That I want to perform OCR on using Tesseract. However, the problem is the Tesseract OCR does not work well on rotated images so I want to rotate the image into an upright orientation. I am not sure how to do this as I am a beginner with OpenCV. Can someone guide me on how to rotate these images ? Thank you

python

opencv

image-processing

rotation

python-tesseract

0 Answers

Your Answer

Accepted video resources