Note that there are some explanatory texts on larger screens.

plurals
  1. POimage processing using python and scipy
    primarykey
    data
    text
    <p>Hi I am trying to do image processing with python. what i actually want to do is i have image with human and i need to indetify human faces or detect circle (basically human face). what i have done so far us </p> <ol> <li>i have done edge detection for image using sobel edge detection.</li> <li>than i have converted image into binary image which saves binary image ad prints out array of the image which is 0 or 255 (Black and White) </li> <li>now what i m confused about after this what can i do to detect circle in image and print out how many human present in image. </li> <li>i am using still images so i am giving the input for the image </li> </ol> <p>i am using Python, PIL, numpy and scipy. i do not want to use opencv. i want to detect human face and count how many people are in image and than print out the number of people in image. </p> <p>i would be so greatful if someone can help me out and tell me what can i do for this problem? </p> <p>Thanks in advanced. </p> <pre><code>import numpy import scipy from scipy import ndimage im = scipy.misc.imread('test5.jpg') im = im.astype('int32') dx = ndimage.sobel(im, 0) # horizontal derivative dy = ndimage.sobel(im, 1) # vertical derivative mag = numpy.hypot(dx, dy) # magnitude mag *= 255.0 / numpy.max(mag) # normalize (Q&amp;D) scipy.misc.imsave('sobel.jpg', mag) </code></pre> <p>The code above its not mine i got it from online. </p> <p>i have also asked this question in other forum as well.<a href="http://forums.devshed.com/showthread.php?p=2857698&amp;mode=linear#post2857698" rel="nofollow">HERE</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload