Labelling same blobs in different frames
2 次查看(过去 30 天)
显示 更早的评论
I am new to image processing in MATLAB. So what I have to do is to label blobs on an image. So the setup is basically markers on a person that are pickup by a camera. The image from the camera needs to be processed in MATLAB.
So the data I am getting from the camera are frames. Using region props and some other image processing algorithms, I changed the markers into blobs. I am able to label each blobs (markers) with numbers 1 to 4 using bwlabel.
Now the problem I am having is that, when I move onto the next frame, depending on the position of the person at that time, bwlabel would label for instance blob#2 in the previous frame as blob#3 in the current frame.
So basically, what I am saying is the labels that are applied in each frame changes.
I want to keep the same labels throughout the whole number of frames.
Anyone has any idea on how this can be done?
Thank you so much.
1 个评论
QuestionsAccount
2020-8-23
hi dear did you find a way to do work you mention in your question. actually i want to do the same kind of work where i also want to fix the connected componet in mulitple video frames but as a biggner i m facing difcultiy in codding.
if you solved that problem then please help me too in codding same kind of work. thanx
回答(1 个)
Image Analyst
2014-6-14
That's right. That's the difficult thing about tracking. It's best if the objects don't move much from one frame to another. Then you can just based on the closest distances between centroids in each frame. But for general situations where you have some objects that left the field of view, and others that are new, and others that are the same that just moved some distance, it can be difficult to assign all the blobs to prior frames. Why don't you try to increase the frame rate so they don't move very much?
There are probably algorithms that make some assumptions that you can look up in VisionBib's tracking section: http://www.visionbib.com/bibliography/contentspeople.html#Face%20Recognition,%20Detection,%20Tracking,%20Gesture%20Recognition,%20Fingerprints,%20Biometrics. We don't really help with complicated algorithm development like this.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!