class_PlantIdentifier.py 文件源码

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

项目:Farmbot_GeneralAP 作者: SpongeYao 项目源码 文件源码
def NDIimage(self, arg_debug= False):
        G= self.imgRGB_G.astype('float')
        R= self.imgRGB_R.astype('float')
        NDIimage= 128*((G-R)/(G+R)+1)
        NDIimage= cv2.normalize(NDIimage, NDIimage, 0, 255, cv2.NORM_MINMAX)
        if arg_debug:
            cv2.imwrite('Debug/debug_NDIimage.jpg', NDIimage)
        return NDIimage
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号