# Revision history [back]

### drawContours as is, not filled, not just outline

Hi,

With cv2.drawContours is there a way to draw the exact contour as is? Not just the border, or not completely filled.

I'm using it for extracting alphabets from a text, and for characters like A, P, 4 etc, it fills them inside as well.

Eg: Input Binary Image:

Extracted problematic characters after drawContours:

### drawContours as is, not filled, not just outline

Hi,

With cv2.drawContours is there a way to draw the exact contour as is? Not just the border, or not completely filled.

I'm using it for extracting alphabets from a text, and for characters like A, P, 4 etc, it fills them inside as well.

Eg: Input Binary Image:

Extracted problematic characters after drawContours:

for contour in countours:
cv2.imwrite('char', charImg)


### drawContours as is, not filled, not just outline

Hi,

With cv2.drawContours is there a way to draw the exact contour as is? Not just the border, or not completely filled.

I'm using it for extracting alphabets from a text, and for characters like A, P, 4 etc, it fills them inside as well.

Eg: Input Binary Image:

Extracted problematic characters after drawContours:

for contour in countours:
cv2.rectangle(debugPlate, (x, y), (x+w, y+h), (0,255,0), 2)
cv2.imwrite('char', charImg)


### drawContours as is, not filled, not just outline

Hi,

With cv2.drawContours is there a way to draw the exact contour as is? Not just the border, or not completely filled.

I'm using it for extracting alphabets from a text, and for characters like A, P, 4 etc, it fills them inside as well.

Eg: Input Binary Image:

Extracted problematic characters after drawContours:

for contour in countours:
cv2.rectangle(debugPlate, (x, y), (x+w, y+h), (0,255,0), 2)
x,y,w,h = cv2.boundingRect(contour)
cv2.imwrite('char', charImg)

 5 retagged sturkmen 6772 ●3 ●48 ●79 https://github.com/stu...

### drawContours as is, not filled, not just outline

Hi,

With cv2.drawContours is there a way to draw the exact contour as is? Not just the border, or not completely filled.

I'm using it for extracting alphabets from a text, and for characters like A, P, 4 etc, it fills them inside as well.

Eg: Input Binary Image:

Extracted problematic characters after drawContours:

for contour in countours: