The document presents a machine vision algorithm designed for robotic navigation to identify objects within a workspace and calculate their polar coordinates relative to a mobile agent. The algorithm, developed using OpenCV and tested with embedded systems, achieved high accuracy with an average error of 1.3271% in distance and 2.8998% in angle measurement. The study emphasizes the importance of precise environmental mapping in robotics, showcasing the algorithm's capabilities through practical evaluations in a controlled area.