Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias Import alias identifier ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str For NameStore Call NameLoad Num SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad NameLoad Index Num body For NameStore Call NameLoad Num SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad NameLoad Index Num body Expr Yield TupleLoad NameLoad NameLoad SubscriptLoad NameLoad ExtSlice Slice NameLoad BinOpAdd NameLoad SubscriptLoad NameLoad Index Num Slice NameLoad BinOpAdd NameLoad SubscriptLoad NameLoad Index Num decorator_list If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str keyword NameLoad Assign NameStore TupleLoad Num Num Assign NameStore TupleLoad Num Num Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Assign NameStore Num For NameStore Call NameLoad NameLoad keyword NameLoad body Assign NameStore ListLoad If BoolOpOr CompareLt SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad NameLoad Index Num CompareLt SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad NameLoad Index Num body Break For TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad body If BoolOpOr CompareNotEq SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad NameLoad Index Num CompareNotEq SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad NameLoad Index Num body Continue Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad Num body Print Call AttributeLoad Str attr NameLoad NameLoad Print Call AttributeLoad Str attr NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Call NameLoad BinOpMult SubscriptLoad NameLoad Index Num BinOpPow NameLoad NameLoad Call NameLoad BinOpMult SubscriptLoad NameLoad Index Num BinOpPow NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore NameStore NameStore NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad NameLoad TupleLoad BinOpAdd NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num BinOpAdd NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num TupleLoad Num Num Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad NameLoad TupleLoad BinOpAdd NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num BinOpAdd NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num TupleLoad Num Num Num keyword Num Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Num AugAssignAdd NameStore Num Assign NameStore Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore NameStore NameStore NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad NameLoad TupleLoad BinOpAdd NameLoad NameLoad BinOpAdd NameLoad NameLoad TupleLoad Num Num Num keyword Num Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad For TupleStore NameStore NameStore NameStore NameStore NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad NameLoad TupleLoad BinOpAdd NameLoad NameLoad BinOpAdd NameLoad NameLoad TupleLoad Num Num Num keyword Num Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr
N/A skimage.transform pyramid_gaussian skimage.io imread skimage.feature hog sklearn.externals joblib N/A cv2 N/A argparse ap nms nms config * sliding_window N/A N/A image window_size step_size N/A N/A N/A 
    This function returns a patch of the input image `image` of size equal
    to `window_size`. The first image returned top-left co-ordinates (0, 0) 
    and are increment in both x and y directions by the `step_size` supplied.
    So, the input parameters are -
    * `image` - Input Image
    * `window_size` - Size of Sliding Window
    * `step_size` - Incremented Size of Window

    The function returns a tuple -
    (x, y, im_window)
    where
    * x is the top-left x co-ordinate
    * y is the top-left y co-ordinate
    * im_window is the sliding window image
     N/A y N/A xrange 0 N/A N/A image shape N/A 0 N/A step_size N/A 1 N/A N/A x N/A xrange 0 N/A N/A image shape N/A 1 N/A step_size N/A 0 N/A N/A N/A N/A x y N/A image N/A N/A y N/A y N/A window_size N/A 1 N/A x N/A x N/A window_size N/A 0 N/A N/A N/A __name__ __main__ N/A N/A parser N/A N/A ap ArgumentParser N/A N/A N/A parser add_argument -i --image help Path to the test image required True N/A N/A N/A parser add_argument -d --downscale help Downscale ratio default 1.25 type int N/A N/A N/A parser add_argument -v --visualize help Visualize the sliding window action store_true N/A args N/A vars N/A N/A parser parse_args N/A im N/A imread N/A args N/A image as_grey False N/A min_wdw_sz N/A 100 40 N/A step_size N/A 10 10 N/A downscale N/A args N/A downscale N/A visualize_det N/A args N/A visualize N/A clf N/A N/A joblib load model_path N/A detections N/A N/A scale 0 N/A im_scaled N/A pyramid_gaussian im downscale downscale N/A N/A cd N/A N/A N/A N/A N/A N/A im_scaled shape N/A 0 N/A min_wdw_sz N/A 1 N/A N/A N/A im_scaled shape N/A 1 N/A min_wdw_sz N/A 0 N/A N/A N/A N/A x y im_window N/A sliding_window im_scaled min_wdw_sz step_size N/A N/A N/A N/A N/A N/A im_window shape N/A 0 N/A min_wdw_sz N/A 1 N/A N/A N/A im_window shape N/A 1 N/A min_wdw_sz N/A 0 N/A N/A N/A fd N/A hog im_window orientations pixels_per_cell cells_per_block visualize normalize N/A pred N/A N/A clf predict fd N/A N/A pred 1 N/A N/A N/A N/A Detection:: Location -> ({}, {}) format x y N/A N/A N/A Scale ->  {} | Confidence Score {} 
 format scale N/A N/A clf decision_function fd N/A N/A N/A detections append N/A x y N/A N/A clf decision_function fd N/A int N/A N/A min_wdw_sz N/A 0 N/A downscale scale N/A int N/A N/A min_wdw_sz N/A 1 N/A downscale scale N/A N/A N/A cd append N/A detections N/A -1 N/A visualize_det N/A N/A clone N/A N/A im_scaled copy N/A N/A x1 y1 _ _ _ cd N/A N/A N/A N/A cv2 rectangle clone N/A x1 y1 N/A N/A x1 N/A N/A im_window shape N/A 1 N/A y1 N/A N/A im_window shape N/A 0 N/A 0 0 0 thickness 2 N/A N/A N/A cv2 rectangle clone N/A x y N/A N/A x N/A N/A im_window shape N/A 1 N/A y N/A N/A im_window shape N/A 0 N/A 255 255 255 thickness 2 N/A N/A N/A cv2 imshow Sliding Window in Progress clone N/A N/A N/A cv2 waitKey 30 N/A scale 1 N/A clone N/A N/A im copy N/A N/A x_tl y_tl _ w h detections N/A N/A N/A N/A cv2 rectangle im N/A x_tl y_tl N/A N/A x_tl w N/A y_tl h N/A 0 0 0 thickness 2 N/A N/A N/A cv2 imshow Raw Detections before NMS im N/A N/A N/A cv2 waitKey N/A detections N/A nms detections threshold N/A N/A x_tl y_tl _ w h detections N/A N/A N/A N/A cv2 rectangle clone N/A x_tl y_tl N/A N/A x_tl w N/A y_tl h N/A 0 0 0 thickness 2 N/A N/A N/A cv2 imshow Final Detections after applying NMS clone N/A N/A N/A cv2 waitKey