Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 11 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
Regionprops 可能适合你。如果你拿这个样本车牌。
您可以使用像这样的小脚本来剪切对象。抱歉,我只是很快地把它拼凑在一起,但它给了你一个想法。
这将输出像
和这个
你仍然需要确定它是否真的是一封信。注意,脚本会输出很多图像(大约 30 或 40 个)
regionprops might work for you. If you take this sample license plate.
You could use a little script like this to cut out objects. Sorry, I just typed it together really quickly, but it gives you an idea.
This will output images like
and this
You still have to decide if it really is a letter. Be careful, the script will output a lot of images (about 30 or 40)
你可以尝试这个代码(这不是我的)
you can try this code(it's not mine)