frames.py 文件源码

python
阅读 39 收藏 0 点赞 0 评论 0

项目:Cascade-CNN-Face-Detection 作者: gogolgrind 项目源码 文件源码
def frame_to_vect(frame):
        # tranform rgb image for CNN input layer 
        H,W = frame.shape[:2]
        frame = sp.asarray(frame, dtype = sp.float16) / 255.0
        features = frame.transpose(2,0,1).reshape(3, H, W)
        return features
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号