Python中图像数字的动态本地化

2024-06-17 11:56:34 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在研究Python中图像中的数字的动态数字定位问题。我的确切意思是:如果我有这样一个图像:

enter image description here

我想把所有的数字分开,比如,8,0,1,像这样:

enter image description here

enter image description here

enter image description here

我曾尝试和探索MSER,但没有取得任何进展。主要问题是,数字可以有任意位数。另一个例子是: enter image description here

数字应该分开为2,2,如下所示:

enter image description hereenter image description here

使用opencv或Python中提供的任何其他包,我还可以采取其他方法吗


Tags: 方法图像动态数字opencv例子位数mser