如何检查der在镜头前是否是一个统一的东西?
我想做一个应用程序...我必须检查 der 是否是相机前面的棕色棍子(当它位于 ofc 上时)..并在屏幕上测量其大小
i want to make an app ...in which i have to check whether der is a brown stick in front of the camera(when it is on ofc )..and measure its size on the screen
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
伙计,不要成为一个巨魔或什么的,但严肃地说,这很难像地狱一样!您基本上必须编写完整的图像分析算法来查找相机上像素颜色的特定模式。
您必须了解计算机(在本例中为手机)无法像我们人类一样识别图像中的对象。
您必须编写应用程序来识别棕色是什么颜色(这意味着从什么十六进制颜色代码到您想要定义为棕色的十六进制颜色代码)。然后你必须教它棍子的图案,棕色像素应该在屏幕上的什么位置。
我不知道,我个人认为这对于一个人来说太复杂了。但如果可以的话,请证明我是错的,我会很乐意收回我的话。
Mate not to be a troll or something but that in all seriousness is hard like hell! You would basically have to have a whole image analysis algorithm written up to look for specific patterns in the colors of the pixels on your camera.
You have to understand that a computer (phone in this case) cannot recognize objects within images like we humans do.
You would have to write up the application to recognize what the color brown is (which means from what hex color code to what hex color code you want to define as brown). Then you would have to teach it the pattern of the stick which is in what positions on the screen the brown pixels should be.
I don't know i for one think that is way too complicated for just one person to do. But prove me wrong if you can i will gladly eat my words.