Relative Content

Tag Archive for pythonopencvimage-processing

Computing line that follows objects orientation in contours

I am using cv2 to compute the line withing the object present in the mask image attached. The orientation/shape of the object might vary (horizontal, vertical) from the other mask images in my dataset. But the problem is, the method I have used to compute the line is not reliable.
It works for the few images but failed to draw a line accurately for other mask images. Could anyone suggest an alternative approach?

(PYHON) Open CV implementation or Ideas for Detecting objects in 2d Image

I am trying to figure out a good method to detect the red border in this game with python and struggling getting alot of false positives or missing it completely with my current method. I am currently using open cv and just performing some template matching with small screenshots of the red border. Anyone have any ideas of how to better find this border in this image and see the actual boundries?

Removing background from an image using Python

I have this image from which I want to remove the background. I tried using Otsu Thresholding, but some of the unwanted parts get mixed up with my region of interest.
This is the original image:(https://i.sstatic.net/HlPWxlqO.jpg)
This is my region of intrest:(https://i.sstatic.net/ERAurIZP.jpg)

Image Fusion with python+opencv

I am trying to merge two pictures into one, note, these two pictures contain black stains, the fused picture should be perfect, without stains, I am a newbie in this area, please do you have any suggestions?
Figue 1
enter image description here