2014-02-14 30 views
0

我正在考慮使用OpenCV庫進行圖像分析。基本上我想在我的項目中自動從葡萄酒瓶中提取圖像標籤。圖像分析 - 我如何從瓶子中提取圖像標籤

這是樣品輸入圖像:

這是樣本輸出:

我在想什麼,應該是我提取圖像總體戰略。我不是要求直接編碼。只是想知道解決問題的一般方法。

謝謝!

+3

你見過這個闕stion:http://dsp.stackexchange.com/questions/2406/how-to-flatten-the-image-of-a-label-on-a-food-jar? – Niki

+1

@nikie,這是一個非常好的答案!精湛的一個在它。在dsp.stackexchange(: – rockinfresh

回答

1

對不起vage的答案,但在應用計算機視覺是沒有這樣的事情,像一般的做法。

  • 有些人會不同意,當然,但在現實中
  • 所有CV應用程序是爲某些特定目的/任務定製
  • 你的情況是找到圓柱,可能常備對象(瓶)
  • 的想法
  • ,然後在其中尋找不規則件

我會做這樣的:

1.remove noise as much as possible (smooth/sharpen filters) 
2.(optionaly) reduce image data (via (i)FT or (i)DCT for example) 
3.segmentate objects (usually by homogenity of color or by edge detection or by booth) 
4.identify bottle object (by color,shape,or illumination (glass is transparent)) 
5.identify objects inside bottle (homogenity,not transparent,usually sharp edges,color is not good some labels are black on dark glass) 
6.(optional) project label back from cylindric space to flat texture 

[注意事項]

  • 許多滾動條和複選框
  • 創建應用程序,以便能夠改變所有tresholds並啓用禁用過濾或它們的順序上來說
  • 所有部分都採取了很多的調整的tresholds和權重的
  • 你必須做大量的試驗和錯誤的運行,以找到適合您的任務的最佳過濾器及其配置