Post 5 – Fast Five

It’s been a hectic week! But we’ve properly delegated our tasks got cracking on our tasks.

In my case, I’m focusing on the receipt identification and squaring.

This will be built upon the Maxims I discussed in Post 3,

  • A receipt has at most 4 corners
  • There may be as little as 0 and as many as 4 corners in a photo
  • The corners may not be 90 degrees (torn)
  • Receipts may not be perfectly flat
  • A receipt is a quadrilateral and the 4 sides are 90 degrees from their neighbours

With these maxims, I will be working on identifying the receipt itself, getting the corners, getting the sides, then working on squaring up the receipt for the future processing steps.

OpenCV has methods for transforming a perspective once corners have been found. I’ve already discussed about how I’m doing corner identification in a previous post, but I’m using the warpPerspective() method[1] found in CV2 with the 4 corners.

[1] ‘Perspective Transformation – Python OpenCV’, GeeksforGeeks. Accessed: Nov. 25, 2025. [Online]. Available: https://www.geeksforgeeks.org/python/perspective-transformation-python-opencv/

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *