Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 2088

Orienting an Object in an image horizontally

$
0
0
I have images of Food Trays oriented in various angles. I would like to make all the trays horizontally oriented. For this I tried finding the longest edge of the tray using hough's transformation and calculated its orientation with respect to the image border and rotated it. It works fine for very few cases. I would like to make it work for all the images I have. Can anyone please help me with this? I have attached some sample images in the link below and also I have included the code which I am currently using. [Link for images](https://drive.google.com/drive/folders/1-BV5_8BgHWGpJOzPbaG9f7_qxgnTtYQs?usp=sharing)

Viewing all articles
Browse latest Browse all 2088

Trending Articles