Fastest_Image_Pattern_Matching icon indicating copy to clipboard operation
Fastest_Image_Pattern_Matching copied to clipboard

感谢,很好的代码。但是,我使用自己的数据测试时,发现找不到目标?使用shape_based_matching可以。

Open xinsuinizhuan opened this issue 3 years ago • 13 comments

图片 pictures.zip 附加里,我传了几张我自己的图像。您试试

xinsuinizhuan avatar May 25 '22 02:05 xinsuinizhuan

图片 图片

使用这个图和这个参数时,会崩溃

xinsuinizhuan avatar May 25 '22 02:05 xinsuinizhuan

image

我改了雙角度區間的bug,這組參數是讓你設置兩個不交集的區間,例如-40 ~ 40, 100 ~ 150,你如果要採用-180~180的話,在Tolerance Angle的第一欄輸入一個180就好了

另外我的程序不會崩潰,你先同步代碼後,試試上圖這樣的參數,如果還是崩潰的話讓我看看call stack

DennisLiu1993 avatar May 25 '22 07:05 DennisLiu1993

图片 pictures.zip 附加里,我传了几张我自己的图像。您试试

我從003.jpg取了新模板,測試005和009沒問題,015遮擋太嚴重,只能靠shape based matching了 t

image image

參數 image

Min Reduced Area更改後要重新把模板拖曳進去

DennisLiu1993 avatar May 25 '22 07:05 DennisLiu1993

Min Reduced Area是什么参数,有什么作用?

xinsuinizhuan avatar May 25 '22 07:05 xinsuinizhuan

Min Reduced Area是什么参数,有什么作用?

這個參數會決定金字塔最頂層的最小面積,也就是決定層數

要是template太大張,Min Reduced Area又很小,則縮小到最頂層的template紋理都會消失

想像你的template圖像中有一條寬度為1pixel的線,那resize為1/4之後這條線可能就消失了

DennisLiu1993 avatar May 25 '22 09:05 DennisLiu1993

Min Reduced Area是什么参数,有什么作用?

這個參數會決定金字塔最頂層的最小面積,也就是決定層數

要是template太大張,Min Reduced Area又很小,則縮小到最頂層的template紋理都會消失

想像你的template圖像中有一條寬度為1pixel的線,那resize為1/4之後這條線可能就消失了

你好,建议把开源项目shape_based_matching也集成到你的项目里,这样主界面有NCC和shape两个匹配模式可供用户操作。方便对比测试。 https://github.com/meiqua/shape_based_matching 谢谢!

libaineu2004 avatar May 25 '22 10:05 libaineu2004

我也遇到类似的问题 image 请问如何处理?

githublqs avatar May 26 '22 10:05 githublqs

我也遇到类似的问题 image 请问如何处理?

你遇到什麼問題,有clone最新的代碼嗎?

Tolerance Angle如果選擇兩個角度範圍,這兩個範圍不要有重疊

還有這張圖方便給我測試嗎?

DennisLiu1993 avatar May 26 '22 15:05 DennisLiu1993

@DennisLiu1993 是clone最新的代碼,可以的,感谢您分享这么优秀的代码, ,方便留个邮箱等联系方式么?

githublqs avatar May 26 '22 15:05 githublqs

@DennisLiu1993 是clone最新的代碼,可以的,感谢您分享这么优秀的代码, ,方便留个邮箱等联系方式么?

[email protected]

DennisLiu1993 avatar May 26 '22 15:05 DennisLiu1993

我也遇到类似的问题 image 请问如何处理?

這個重疊的解法 樣板取小一點,參數就可以不用調整 dest2 image

用原本的樣板: image

對於1.bmp 使用此樣板,因為樣板相對於原圖較小,我把Min Reduced Area調成256

TemplateFor1235 image

PS: 我發現我預設以X排序,新的commit (sort by score)改為用Score排序了

DennisLiu1993 avatar May 27 '22 06:05 DennisLiu1993

我也遇到类似的问题 image 请问如何处理?

您好,我十分好奇这一类的图像是如何拍摄的?

kinoies avatar Oct 10 '22 03:10 kinoies

图像是远心镜头拍摄的,建议调下参数,可能是过滤掉了,这个图多使用多角度应该也OK,还有可以加上mask试试

---原始邮件--- 发件人: @.> 发送时间: 2022年10月10日(周一) 中午11:39 收件人: @.>; 抄送: @.@.>; 主题: Re: [DennisLiu1993/Fastest_Image_Pattern_Matching] 感谢,很好的代码。但是,我使用自己的数据测试时,发现找不到目标?使用shape_based_matching可以。 (Issue #3)

我也遇到类似的问题 请问如何处理?

您好,我十分好奇这一类的图像是如何拍摄的?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

githublqs avatar Oct 11 '22 14:10 githublqs