JinQi-Liao / templateMatch-algorithm

These are source code of template matching based on Opencv3.
1 stars 0 forks source link

how to match multi object? #1

Open xinsuinizhuan opened 4 years ago

xinsuinizhuan commented 4 years ago

If the src map have multi object, how to match with template?

JinQi-Liao commented 4 years ago

Dear xinsuinizhuan:      Thank you for asking.My algorithm here is for single-target template matching.But it can also be extended to multi-template matching, you can try this: for multi-template matching, you can split into multiple single-target template matching.When you match a target, you can change the pixel value of the target so that the pixels will not interfere in the subsequent target search.                                                                                                                                                       Sincerely  JinQi-Liao                                                                                                                                                                                                        ------------------ 原始邮件 ------------------ 发件人: "xinsuinizhuan"<notifications@github.com>; 发送时间: 2020年4月2日(星期四) 下午5:30 收件人: "JinQi-Liao/templateMatch-algorithm"<templateMatch-algorithm@noreply.github.com>; 抄送: "Subscribed"<subscribed@noreply.github.com>; 主题: [JinQi-Liao/templateMatch-algorithm] how to match multi object? (#1)

If the src map have multi object, how to match with template?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

xinsuinizhuan commented 4 years ago

Dear xinsuinizhuan:      Thank you for asking.My algorithm here is for single-target template matching.But it can also be extended to multi-template matching, you can try this: for multi-template matching, you can split into multiple single-target template matching.When you match a target, you can change the pixel value of the target so that the pixels will not interfere in the subsequent target search.                                                                                                                                                       Sincerely  JinQi-Liao                                                                                                                                                                                                        ------------------ 原始邮件 ------------------ 发件人: "xinsuinizhuan"<notifications@github.com>; 发送时间: 2020年4月2日(星期四) 下午5:30 收件人: "JinQi-Liao/templateMatch-algorithm"<templateMatch-algorithm@noreply.github.com>; 抄送: "Subscribed"<subscribed@noreply.github.com>; 主题: [JinQi-Liao/templateMatch-algorithm] how to match multi object? (#1) If the src map have multi object, how to match with template? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Oh. My fisrt problem is that with one template to match src map, but my src map have multi template objetcs, i want match all of them, how to do this?

JinQi-Liao commented 4 years ago

I know what you mean. Just as I said previously, you can spilt multi-target matching into single-target matching.  you can think carefully what you said.

----------------- 原始邮件 ------------------ 发件人: "xinsuinizhuan"<notifications@github.com>; 发送时间: 2020年4月2日(星期四) 下午5:30 收件人: "JinQi-Liao/templateMatch-algorithm"<templateMatch-algorithm@noreply.github.com>; 抄送: "Subscribed"<subscribed@noreply.github.com>; 主题: [JinQi-Liao/templateMatch-algorithm] how to match multi object? (#1)

If the src map have multi object, how to match with template?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.