RUVIDEO
Поделитесь видео 🙏

OpenCV tracking object using a bounding rectangle смотреть онлайн

📁 Лайфстайл 👁️ 16 📅 03.12.2023

Using OpenCV and a PS3 Eye camera to track a pink cylinder. Two masks on left are joined to form a single mask. These masks are shown on the top and bottom left. The joined mask is found on the top right. The contour of the mask is found and with it the centroid, area, width, and height of the object in pixels. The centroid is marked in blue,the contour is marked in green, the bounding rectangle is marked in red, and the center of frame is in white. These are shown on the bottom right.

Previously, using the camera calibration function, the camera matrix was found. The cylinder dimensions are already known to be 139.7mm (5.5in) in diameter and 254mm (10in) in height. Using these dimensions and the focal length found in the camera matrix it is possible to approximate the distance to the object. It is also possible to find the angles about the x and y axis of the objects centroid relative to the center of the camera.

These values are shown in the center console output. fps: frames per second, max area: max area in pixels, cx,cy: centroid of the object, pixel width: the width in pixels, pixel height: the height in pixels, thetax: the x or pan angle difference, thetay: the y or tilt angle difference, zw: the distance calculated using the width triangle and the pinhole camera model, zh: the distance calculated using the height triangle and the pinhole camera model, z: the average of the two distances, and zdiff: the difference between the two distances.

The object is moved between about 3353mm (11ft) and 1219mm (4ft). The distance approximation is okay as long as a clear rectangle is viewed but the distance is typically at least 150mm (6in) off. The fps is low because of all the image streaming. With the images off it is around 40fps.

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «OpenCV tracking object using a bounding rectangle» бесплатно и без регистрации, вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.