# Converting image to uint8 for working with houghcircles

Hi,

I explain my problem, I am using python opencv 3.0.0 and sci-kit lib.

I am trying to detect circles from images using hough circles but my dataset is not so good, so first of all, I do an adaptive equalization histogram with sci-kit and after I try to detect circles; the problem, the function I used to make the adaptive equalization returns me an uint16 image but Hough circles requires a uint8.

There is some way to convert the image to uint8 after doing the equalization??? Or it exists some function in opencv which does the adaptive equalization?? I was searching but I found nothing. :(

I write my code just down here:

#prerequisites: I use cv2.imread to read an image in img variable

import cv2
import numpy as np
from skim age import exposure

def findCircles(img):
print allCircles

def main():