azzhu / EasyFlyTracker

MIT License
11 stars 8 forks source link

Multiple trajectory repetition problem of target detection #4

Open 1598157069 opened 1 year ago

1598157069 commented 1 year ago

Hi. I'm trying to use this software to track the fish's movements, However, compared with fruit flies, the contrast between the seedling fish and the environment is not high, so the track of the fish's eye is captured, and two tracks repeat. I only want one track, what should I do,

azzhu commented 1 year ago

“two tracks repeat”,what does it mean?Can you provide some picture captions? Or just share the video with me and I'll give it a try? thanks!

1598157069 commented 1 year ago

我已经在QQ邮箱给您发送了相关照片和视频,以供您理解,期待您的回复

azzhu commented 1 year ago

好的好的,我看看。

azzhu commented 1 year ago

目前的情况是这样,分割出小鱼后,由于身体部分跟背景太像,会被过滤掉,差不多只保留了两个眼睛。程序会选取面积最大的区域的中心点作为跟踪结果,由于两个眼睛大小基本一致,再加上角度以及光线的变化,最终会导致识别结果在两个眼睛当中来回切换(会直接影响到移动距离以及速度的计算)。但是热图是通过分割区域的叠加的方式来计算的目标的分布,所以两个眼睛都会被用来叠加信息。

所以,您如果想要更准确的跟踪结果,我这边可以更新一下程序,对分割结果加入图像形态学处理,可使两个眼睛膨胀为一个区域,这样算出来的中心点能代表两只眼睛的中心点,而不是其中一个,这样是不是更符合您的需求?

如果您更关心的是热图,也可以通过上述方式或者更改分割阈值来改善热图结果,相关结果已发您邮箱,查看后可再做进一步沟通。