实际上,detect.sh 是执行了 detect.py 文件,在代码中有一个关键的输出结果如下:这里 bbox 指的就是最终缺口的轮廓位置,同时 x1 就是指的轮廓最左侧距离整个验证码最左侧的横向偏移量,即 offset。
Levi G, Hassner T. Age and gender classification using convolutional neural networks//Proceedings of the IEEE conference on computer vision and pattern recognition workshops. 2015: 34-42. ↩︎。