JustPaste
HomeCategoriesAboutDonateContactTerms of UsePrivacy Policy
JustPaste

Free online notepad — write and share instantly

Navigate

  • Home
  • Timeline
  • Categories

Info

  • About
  • Donate
  • Contact

Legal

  • Terms of Use
  • Privacy Policy

© 2026 JustPaste.app. All rights reserved.

Made with ♥ by JustPaste

Untitled Page | JustPaste.app
3 months ago0 views
👨‍💻Programming
import cv2
import numpy as np
eye_detection= cv2.CascadeClassifier
('haarcascade_eye.xml')
img = cv2.imread('girl.jpg')
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
eyes = eye_detection.detectMultiScale(gray, 1.3, 5)
for (x,y,w,h) in eyes:
img = cv2.rectangle(img,(x,y),(x+w, y+h),(255,0,0),3)
cv2.imshow('girl.jpg',img)
← Back to timeline