-
Notifications
You must be signed in to change notification settings - Fork 214
Conversation
@ankitdobhal review and merge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't put so many new lines between codes
|
||
## the above variable will return 4 cordinates i.e height,width,postionx,positiony | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove excess new line
@disha2sinha done review please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put space around operators and after comma
img=cv2.imread(img_file) #create image reader | ||
black_and_white=cv2.cvtColor(img,cv2.COLOR_BGR2GRAY) #convert image black and white i.e. grayscale | ||
car_tracker=cv2.CascadeClassifier(classifier_car) #create classifier | ||
cars=car_tracker.detectMultiScale(black_and_white) #detect cars |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put a new line before starting for loop
car_tracker=cv2.CascadeClassifier(classifier_car) #create classifier | ||
cars=car_tracker.detectMultiScale(black_and_white) #detect cars | ||
for (x,y,w,h) in cars: ## the above variable will return 4 cordinates i.e height,width,postionx,positiony | ||
cv2.rectangle(img,(x,y),(x+w,y+h),(0,255,0),3) ##this loop will create grren rectangle when car is detected |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
put new line after ending for loop
@disha2sinha done |
Add README (guide) along with this inside the folder same as your |
issue : #93
About Pull request :
This pr consist of car detection in an image if a car is detected in an image the green rectangle will be drawn , it uses pre trained car classifer
Demo :