计算机应用 ›› 2017, Vol. 37 ›› Issue (10): 2895-2898.DOI: 10.11772/j.issn.1001-9081.2017.10.2895

• 计算机视觉与虚拟现实 • 上一篇    下一篇

基于帧间灰度变化分析的在线光源位置计算

申屠理锋, 奚嘉奇   

  1. 宝山钢铁股份有限公司研究院, 上海 201900
  • 收稿日期:2017-04-25 修回日期:2017-07-07 出版日期:2017-10-10 发布日期:2017-10-16
  • 通讯作者: 申屠理锋(1979-),男,浙江桐庐人,高级工程师,硕士,主要研究方向:机器视觉、自动控制,E-mail:shtulf@baosteel.com
  • 作者简介:申屠理锋(1979-),男,浙江桐庐人,高级工程师,硕士,主要研究方向:机器视觉、自动控制;奚嘉奇(1989-),男,上海人,工程师,硕士,主要研究方向:机器视觉、自动控制.
  • 基金资助:
    国家科技支撑计划项目(2015BAF22B01)。

On-line light source position calculation based on inter-frame gray-scale variation analysis

SHENTU Lifeng, XI Jiaqi   

  1. Research Institute, Baoshan Iron & Steel Company Limited, Shanghai 201900 China
  • Received:2017-04-25 Revised:2017-07-07 Online:2017-10-10 Published:2017-10-16
  • Supported by:
    This work is partially supported by the National Key Technology Research and Development Program of the Ministry of Science and Technology of China (2015BAF22B01).

摘要: 针对机器视觉系统在实际生产中光源位置无法事先确定的问题,提出一种基于帧间特征区域灰度形态分析的在线光源位置计算方法。首先基于灰度分布来确定一特征区域作为参考点,然后运用块匹配算法确定相邻两帧中特征区域的位置变化,之后结合光照模型建立灰度和几何位置之间的关系,运用线性回归对联立方程组进行求解,最后得到光源位置。实验结果表明:光源位置的计算结果与实际所测的距离相比,误差在5%之内。所提算法已被应用于实际生产,具有较好的计算精度和实时性。

关键词: 帧间, 灰度, 光源, 位置计算

Abstract: Aiming at the problem that the position of the light source cannot be determined in practical production, an on-line position calculation for the light source was proposed, which fully analyzed the gray-scale variation of the feature region in consecutive frames. In this approach, a featured region was first selected based on the local gray-scale distribution and used as a reference point, then its position was tracked in the following consecutive frames via block matching method. Combing with the analytic calculation from the light transport model, the relationship between the gray-scale value and geometric position was established. Finally, the set of equations were solved by linear regression method to find the position of light source. The experiment results show that the errors between the calculated results and the measured results are within 5%. The proposed approach has been successfully applied in the real-time manufacturing with good estimation accuracy.

Key words: inter-frame, gray-scale, light source, position calculation

中图分类号: