Smart visualization and computer vision in electromagnetism