Hi,
import cv2
def detect(path):
img = cv2.imread(path)
cascade = cv2.CascadeClassifier("haarcascade_frontalface_alt.xml")
rects = cascade.detectMultiScale(img, 1.3, 4,
cv2.cv.CV_HAAR_SCALE_IMAGE, (20,20))
if len(rects) == 0:
return [], img
rects[:, 2:] += rects[:, :2]
On 15 December 2014 at 11:51, narayan naik wrote:
[...]
> This is a face detection code.This will work properly.but I want to crop
> the detected faces and it should display on the screen.
Please ask more specific questions *after* you have tried for
yourself. Did you even try searching Google, e
Hello,
I haven't worked that much with openCV in python, so can't provide choosing
help right away. But searched on Google for similar topic and found the
following link:
http://stackoverflow.com/questions/13211745/detect-face-then-autocrop-pictures
Hope this helps.
On Dec 15, 2014 11:52 AM, "na
This might help you:
http://stackoverflow.com/questions/13211745/detect-face-then-autocrop-pictures
On Mon, Dec 15, 2014 at 12:00 PM, sayantan bhattacharya wrote:
>
> Hello,
>
> I haven't worked that much with openCV in python, so can't provide choosing
> help right away. But searched on Google
Thank you,
but i already tried that,it will crop but i want to show that cropped image
on the window immediately
On Mon, Dec 15, 2014 at 12:00 PM, sayantan bhattacharya wrote:
>
> Hello,
>
> I haven't worked that much with openCV in python, so can't provide choosing
> help right away. But searche
Thank you,
but i already tried that,it will crop but i want to show that cropped image
on the window immediately
On Mon, Dec 15, 2014 at 12:10 PM, L Radhakrishna Rao <
satishsaga...@gmail.com> wrote:
>
> This might help you:
>
>
> http://stackoverflow.com/questions/13211745/detect-face-then-autocr
Hi ,
I need to load modules dynamically from one of my django app .
1. lets say 'test' is my app name and am having functions inside it.
2. in an util function I need to load modules dynamically when a
function (loader_function) is called with appname and list of functions as
argumen