# HG changeset patch # User Nicolas Saunier # Date 1496327587 14400 # Node ID 0c1fed9e88629002a7c3d978a13f654110863b2d # Parent ff92801e5c541425ddadcf527b745812c9d8b595 updated requirements.txt, removed minor PIL dependency diff -r ff92801e5c54 -r 0c1fed9e8862 python/cvutils.py --- a/python/cvutils.py Tue May 30 16:10:18 2017 -0400 +++ b/python/cvutils.py Thu Jun 01 10:33:07 2017 -0400 @@ -60,23 +60,6 @@ fourcc += unichr((x >> 8*i)&255) return fourcc -def plotLines(filename, origins, destinations, w = 1, resultFilename='image.png'): - '''Draws lines over the image ''' - import Image, ImageDraw # PIL - - img = Image.open(filename) - - draw = ImageDraw.Draw(img) - #draw = aggdraw.Draw(img) - #pen = aggdraw.Pen("red", width) - for p1, p2 in zip(origins, destinations): - draw.line([p1.x, p1.y, p2.x, p2.y], width = w, fill = (256,0,0)) - #draw.line([p1.x, p1.y, p2.x, p2.y], pen) - del draw - - #out = utils.openCheck(resultFilename) - img.save(resultFilename) - def rgb2gray(rgb): return dot(rgb[...,:3], [0.299, 0.587, 0.144]) diff -r ff92801e5c54 -r 0c1fed9e8862 python/requirements.txt --- a/python/requirements.txt Tue May 30 16:10:18 2017 -0400 +++ b/python/requirements.txt Thu Jun 01 10:33:07 2017 -0400 @@ -1,10 +1,9 @@ matplotlib numpy -The following libraries are necessary for (sometimes very) specific classes/functions. +The following libraries are optional. They are necessary for (sometimes very) specific classes/functions. -CV functionalities (cvutils.py): opencv -Image functionalities (cvutils.py): Python Image Library (new version is called Pillow) -Machine learning (ml.py): scipy +Computer Vision (cvutils.py): opencv, scikit-image +Statistics and machine learning (ml.py): scipy, scikit-learn Moving object geometry (currently commented) (moving.py) and plotting shapely polygons (utils.py): shapely -Tabular data loading/processing (storage.py): pandas \ No newline at end of file +Tabular data loading/processing (storage.py): pandas