def _sim_fill(r1, r2, imsize):
bbsize = (<EOL>(max(r1["<STR_LIT>"], r2["<STR_LIT>"]) - min(r1["<STR_LIT>"], r2["<STR_LIT>"]))<EOL>* (max(r1["<STR_LIT>"], r2["<STR_LIT>"]) - min(r1["<STR_LIT>"], r2["<STR_LIT>"]))<EOL>)<EOL>return <NUM_LIT:1.0> - (bbsize - r1["<STR_LIT:size>"] - r2["<STR_LIT:size>"]) / imsize<EOL>
calculate the fill similarity over the image