
<SYSTEM_TASK:>
Given the following text problem statement, write Python code to implement the functionality described below in problem statement
<END_TASK>
<USER_TASK:>
Problem:
dog face detector using haar cascade

<ASSISTANT_TASK:>
Python Code::
import cv2
import numpy as np
dog_cascade = cv2.CascadeClassifier('dog_face_haar_cascade.xml')
dog_face = dog_cascade.detectMultiScale(image)
for (x, y, w, h) in dog_face:
	start_point, end_point = (x, y), (x+ w, y+h)
	cv2.rectangle(image, pt1= start_point, pt2 = end_point, color = (0, 255, 0), thickness = 2)
cv2.imshow('img', image)

<END_TASK>
