yanhaiming56 / SynthText_Chinese_py3

28 stars 9 forks source link

您好 怎么生成自己新增加的图像做背景呢 #2

Open ssvicnent opened 5 years ago

yanhaiming56 commented 5 years ago

Adding New Images Segmentation and depth-maps are required to use new images as background. Sample scripts for obtaining these are available here.

predict_depth.m MATLAB script to regress a depth mask for a given RGB image; uses the network of Liu etal. However, more recent works (e.g., this) might give better results.
run_ucm.m and floodFill.py for getting segmentation masks using gPb-UCM.

For an explanation of the fields in dset.h5 (e.g.: seg,area,label), please check this comment.

The more detailed description in https://github.com/ankush-me/SynthText#adding-new-images