Module Import alias alias alias alias ImportFrom alias ImportFrom alias Expr Str ClassDef bases body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr AugAssignAdd NameStore Str If NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Slice AttributeLoad NameLoad attr For TupleStore NameStore NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AugAssignAdd NameStore BinOpAdd BinOpAdd Str NameLoad Str AugAssignAdd NameStore BinOpAdd BinOpAdd Str NameLoad Str AugAssignAdd NameStore Str orelse Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore SubscriptLoad AttributeLoad NameLoad attr Slice AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad AugAssignAdd NameStore BinOpAdd BinOpAdd Str NameLoad Str AugAssignAdd NameStore BinOpAdd BinOpAdd Str NameLoad Str AugAssignAdd NameStore Str AugAssignAdd NameStore AttributeLoad NameLoad attr Return NameLoad decorator_list Assign AttributeStore NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr Call NameLoad Str keyword Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str
N/A N/A cherrypy os urllib pickle numpy * PCV.imagesearch imagesearch N/A 
This is the image search demo in Section 7.6.
 SearchDemo N/A N/A __init__ N/A N/A self N/A N/A N/A f N/A open webimlist.txt N/A N/A self imlist N/A N/A f readlines N/A N/A N/A f close N/A N/A self nbr_images N/A len N/A self imlist N/A N/A self ndx N/A range N/A self nbr_images N/A f N/A open vocabulary.pkl rb N/A N/A self voc N/A N/A pickle load f N/A N/A N/A f close N/A N/A self maxres 15 N/A N/A self header 
            <!doctype html>
            <head>
            <title>Image search example</title>
            </head>
            <body>
             N/A N/A self footer 
            </body>
            </html>
             N/A index N/A N/A self query N/A None N/A N/A N/A self src N/A N/A imagesearch Searcher web.db N/A self voc N/A html N/A self header N/A html 
            <br />
            Click an image to search. <a href='?query='> Random selection </a> of images.
            <br /><br />
             N/A query N/A N/A res N/A N/A N/A N/A self src query query N/A N/A self maxres N/A N/A dist ndx res N/A N/A imname N/A N/A N/A self src get_filename ndx N/A html N/A N/A <a href='?query= imname '> N/A html N/A N/A <img src=' imname ' width='100' /> N/A html </a> N/A N/A N/A N/A random shuffle N/A self ndx N/A i N/A N/A self ndx N/A N/A self maxres N/A N/A imname N/A N/A self imlist N/A i N/A html N/A N/A <a href='?query= imname '> N/A html N/A N/A <img src=' imname ' width='100' /> N/A html </a> N/A html N/A self footer N/A html N/A N/A N/A index exposed True N/A N/A N/A N/A cherrypy quickstart N/A SearchDemo / config N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ service.conf