Skip to content

Commit

Permalink
feat(imginputfile): histogram equalization of input image
Browse files Browse the repository at this point in the history
This does a histogram equalization of bw & colored image.

Closes #778
  • Loading branch information
sileht committed Sep 18, 2020
1 parent 976c892 commit 2f0061c
Show file tree
Hide file tree
Showing 6 changed files with 14,236 additions and 7 deletions.
11 changes: 9 additions & 2 deletions clients/python/dd_bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
DeepDetect benchmark tool
Licence:
Copyright (c) 2017 Emmanuel Benazera
Copyright (c) 2017 Emmanuel Benazationa
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
Expand Down Expand Up @@ -37,6 +37,7 @@
parser.add_argument('--img-width',help='image width',type=int,default=224)
parser.add_argument('--img-height',help='image height',type=int,default=224)
parser.add_argument('--bw',help='whether images are bw',action='store_true')
parser.add_argument('--histogram-equalization', '--eqhist', help='whether we apply an histogram equalization to images', action='store_true')
parser.add_argument('--gpu',help='whether to bench GPU',action='store_true')
parser.add_argument('--gpuid',help='gpu id to use',type=int,default=0)
parser.add_argument('--cpu',help='whether to bench CPU',action='store_true')
Expand Down Expand Up @@ -75,7 +76,13 @@ def service_create(bs):
description = 'image classification service'
mllib = args.mllib
model = {'repository':args.create}
parameters_input = {'connector':'image','width':args.img_width,'height':args.img_height,'bw':args.bw}
parameters_input = {
'connector':'image',
'width':args.img_width,
'height':args.img_height,
'bw':args.bw,
'histogram_equalization': args.histogram_equalization
}
if args.segmentation:
parameters_input['segmentation'] = True
if args.dla:
Expand Down
Binary file added examples/caffe/voc_roi/000010_bw.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 2f0061c

Please sign in to comment.