Relative Content

Tag Archive for pythonimageopencvimage-processing

Remove unwanted areas texts from a binary image

I want to remove the texts and other unwanted small regions(+ – inside the circle) of a binary image for further processing, as shown in the first image,this is the thing i want(remove all the text inside and outside the big wiring loop.

low image data range

import numpy as np
import matplotlib.pyplot as plt
from skimage import img_as_uint
from skimage.io import imshow, imread
from skimage.color import rgb2hsv
from skimage.color import rgb2gray
array_1 = np.array([[255,0],[0,255]])
imshow(array_1, cmap = 'gray');

Warping an image with a given set of points

Am trying to perform image warping but i can’t seem to apply the transformation matrix given a set of points. Am trying to accomplish is a face morphing given the feature points wich in total is 68 feature points i already calculated the triangulation between the points but i cant seem to warp the image.