sikicode / physionet24

A deep learning algorithm to digitize and classify electrocardiograms (ECGs) captured from images or paper printouts.
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

[FEATURE]: Handle image rotation #22

Open sikicode opened 3 months ago

sikicode commented 3 months ago

Feature Summary

If image is rotated, rotate it back to the normal angle. Reference:

  1. OpenCV: https://stackoverflow.com/questions/46731947/detect-angle-and-rotate-an-image-in-python
  2. Text direction: https://stackoverflow.com/questions/58010660/detect-image-orientation-angle-based-on-text-direction
  3. https://stackoverflow.com/questions/56854176/is-there-a-way-i-can-detect-the-image-orientation-and-rotate-the-image-to-the-ri
  4. https://stackoverflow.com/questions/1141928/algorithm-to-detect-photo-orientation

Code of Conduct