On Sat, Jan 8, 2011 at 1:44 AM, Christopher Barker chris.bar...@noaa.govwrote:
On 1/7/11 10:14 AM, Narendra Sisodiya wrote:
This Code Look for bounding box which I am calculating by scanning each
row and column one by one. If I am finding any white pixel, I am
including it into my bounding
I am using following code. I am using opencv, It is Okey or is there any
scope for improvement !
Anything faster ? I am processing images using PIL
import Image
import sys
import opencv
import time
#this is important for capturing/displaying images
from opencv import highgui
camera =
I want your guidance in following problem.
I have a Rectangle with a known height and width. (aspect ration is fixed)
It has a plane surface. Something like cardboard. Or Rectangle Drawn on
wall.
I am now taking image of this rectangle from webcam.
After taking image of this rectangle from
On Sat, Jan 8, 2011 at 12:24 PM, Narendra Sisodiya
naren...@narendrasisodiya.com wrote:
I want your guidance in following problem.
I have a Rectangle with a known height and width. (aspect ration is fixed)
It has a plane surface. Something like cardboard. Or Rectangle Drawn on
wall.
I
Alright, it looks like it is working now. Here is what I did to rebuild
and re-install PIL from scratch:
# rm -rf /usr/local/lib/python2.7/site-packages/PIL*
# rm -rf /src/Imaging-1.1.7
# cd /src
# tar -xvzf Imaging-1.1.7.tar.gz
# cd Imaging-1.1.7
# python2.7 setup.py build_ext -i
# python2.7
This uses numpy, for a centroid algorithm you can do this:
data is your array of values within the box
ul means upper left of your box
xind = ul[1]+np.indices(np.shape(data))[1]
yind = ul[0]+np.indices(np.shape(data))[0]
x = (xind*data).sum()/float(data.sum())
y =
of the upcoming PIL 1.2 release is now available from:
http://hg.effbot.org/pil-2009-raclette/downloads/PIL-1.2a0-20110108.tar.gz
or via Mercurial, from https://bitbucket.org/effbot/pil-2009-raclette
I've decided to abandon the planned 1.1.8 release, including the rough
and still unreleased 3.X
On 1/7/2011 5:41 PM, Fredrik Lundh wrote:
It also builds under Python 3.1 and 3.2 beta, even if
the functionality is currently*very* limited under Python 3.X.
Is there any doc that describes what does or doesn't work under 3.X?
___
Image-SIG