Relative Content

Tag Archive for pythonimage-processing

Unable to read image in Python

I am going crazy as I am unable to read the image using cv2 library. I am running this code in Jupyter Notebook. I have the image in folder as shown below:

What is best way to digitize map

i have picture of properties which have boxes for house numbers. i want to digitize it so that, in the end of each box, i have its position cordinates (4 corners) and number which is written inside. Can someone suggest good starting point for that guide me which libraries would be effective do this job. Thank you.

Captcha Text Rotation

I’ve been stuck in changing the position of this first captcha image:
1st Captcha Image
2nd Captcha Image

changing the hounsfield unit for a specific organ

I have CT images and RT structure in dicom. I want to change the Hounsfield unit of the heart to a constant value like 100. I have been able to calculate and display the Hounsfield unit for the heart, but I cannot change the Hounsfield value to 100. Can you guide me?
import os
import pydicom
import numpy as np
from skimage.draw import polygon
import matplotlib.pyplot as plt

Python change an image in memory without save in hard and calculate hash

I change an image like png in memory (i change like Red value of a pixel) after i read it from hard disk. then calculate its hash value and save new image on hard disk. then recalculate its hash from saved image! these two are not same. I want to do this in such a way that these two hash value be same.