首页|基于Open CV的智能魔方机器人设计

基于Open CV的智能魔方机器人设计

扫码查看
运用Python语言在Open CV上完成魔方色块图像采集与处理算法设计,利用ROI掩模处理将色块最佳区域的像素坐标值进行采集计算,减小边缘杂色的影响,提升了色彩坐标的真实性与稳定性;图像滤波采用7 x7的滤波核进行中值滤波,降低了图像噪声点和环境光线亮度对识别的影响,更便于机器视觉的识别与处理.在聚类算法编写上,通过采集色块数据分析,利用改进后的加权欧氏距离算法对魔方色块进行聚类,通过计算每个色块与6面中心色块二维HS坐标的欧氏距离来分类,与传统三维距离分类算法相比,距离分散,更易于聚类.本算法适用于识别任意颜色的魔方,并保证极高的色块识别与聚类准确度.
Design of Intelligent Rubik's Cube Robot Based on Open CV
In this design,the Python language is used to complete the design of the image acquisition and processing algorithm of the Rubik's Cube color block on Open CV,and the pixel coordinate value of the best area of the color block is collected and calculated by ROI mask processing,which reduces the influence of edge noise and improves the authenticity and stability of the color coordinates.The image filtering uses a 7 × 7 filter core for median filtering,which reduces the influence of image noise points and ambient light brightness on recognition,and is more convenient for machine vision recognition and processing.In the compilation of the clustering algorithm,the Rubik's Cube color blocks are clustered by collecting color block data analysis,using the improved weighted Euclidean distance algorithm,and the Euclidean distance between each color block and the two-dimensional HS coordinates of the 6-sided center color block is calculated,which is more convenient for clustering than the traditional three-dimensional distance classification algorithm.This algorithm is suitable for identifying Rubik's cubes of any color,and ensures extremely high accuracy of color block recognition and clustering.

Rubik's cube robotmachine visionimage filteringclustering algorithms

王波、王霞琴、周齐、马鑫山、洪鸽

展开 >

兰州石化职业技术大学机械工程学院,甘肃兰州 730060

魔方机器人 机器视觉 图像滤波 聚类算法

2024

兰州石化职业技术学院学报
兰州石化职业技术学院

兰州石化职业技术学院学报

影响因子:0.224
ISSN:1671-4067
年,卷(期):2024.24(2)