a1e55d9cc2cc4efa7ef2f5245e866d8645d66c77,libs/utils.py,,,#,129
Before Change
image = Image.open("")
no_alpha_image = image.convert("RGB")
draw = ImageDraw.Draw(no_alpha_image)
for region in find_regions(no_alpha_image, [0,255,0]):
draw.rectangle(expand_bounding(no_alpha_image, region), outline=(0, 255, 0))
no_alpha_image.show()
After Change
////// With new mask region finder
ori_array = np.asarray(no_alpha_image)
ori_array = np.array(ori_array / 255.0)
ori_array = np.expand_dims(ori_array, axis=0)
mask = get_mask(ori_array, [0.0, 1.0, 0.0])
regions = region_by_mask(mask)
for region in regions:
draw.rectangle(expand_bounding_mk2(no_alpha_image, region), outline=(0, 255, 0))
no_alpha_image.show()
////// END OF NEW MASK REGION FINDER
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: deeppomf/DeepCreamPy
Commit Name: a1e55d9cc2cc4efa7ef2f5245e866d8645d66c77
Time: 2019-06-17
Author: donald.carlsson@paranta.se
File Name: libs/utils.py
Class Name:
Method Name:
Project Name: shenweichen/DeepCTR
Commit Name: 3da641f3841d0cbb55543e691d4a2be1ca4102b7
Time: 2018-11-28
Author: last.fantasy@qq.com
File Name: deepctr/layers.py
Class Name: CrossNet
Method Name: call
Project Name: dmlc/gluon-cv
Commit Name: ecfc31e21d0c30b1f543aacb8619582b60a1bef7
Time: 2019-08-29
Author: spanev@nvidia.com
File Name: gluoncv/model_zoo/mask_rcnn/rcnn_target.py
Class Name: MaskTargetGenerator
Method Name: hybrid_forward