資料來源:http://www.ihalcon.com/read-1136.html#read_122777
 

Rh 發表在 痞客邦 留言(1) 人氣()

關鍵在於
1.將相機上的點座標與軸控的點座標各自找出後   建立紡射變換

Rh 發表在 痞客邦 留言(0) 人氣()


Halcon 的 二維條碼處理 並不困難,困難的是得先讀完說明.........
此說明 以常見的 "Data Matrix ECC 200" 為主

Rh 發表在 痞客邦 留言(0) 人氣()

Halcon 的 XLD 可由 Region 的輪廓 或 資料處理取得
由Region 取得

Rh 發表在 痞客邦 留言(0) 人氣()

Sample
 
 
read_image(Image,'D:/Study/Halcon/異域檢測/Sample.jpg')
decompose3(Image, Image1, Image2, Image3)
mean_image(Image3, ImageMean, 20, 20)
sub_image(Image1,ImageMean,ImageSub, 2, 130)
gray_range_rect(ImageSub, ImageResult, 7, 7)
threshold(ImageResult,reg,0,120)
connection(reg, ConnectedRegions1)
opening_circle(ConnectedRegions1, RegionOpening1, 3.5)
union1(RegionOpening1, RegionUnion)
closing_circle(RegionUnion, RegionClosing, 10)
fill_up(RegionClosing, RegionFillUp)
gen_contour_region_xld(RegionFillUp, Contours, 'border')
smooth_contours_xld(Contours, SmoothedContours, 31)

Rh 發表在 痞客邦 留言(0) 人氣()

1
Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。