logo

找blob报内存错误。

2023-06-04 18:23
7
bodm

1.代码

checkColorBadPiexCount = checkColorBadPiexCount + 1

img = sensor.snapshot()

bad_pixels = img.find_blobs([threshold], invert = True) #在出现很多小块会内存溢出,目前没有方法避免,只能

2.错误告警:MemoryError: memory allocation failed, allocating %u bytes。

2023-06-06 17:02
I
网红小智智 星瞳科技

如果涉及代码,需要报错提示与全部代码文本,请注意不要贴代码图片