Тёмный

Procesamiento de imágenes con Matlab - Conteo de personas en cámara 

Profe mecatrónico
Подписаться 9 тыс.
Просмотров 120
50% 1

Hola!
En este video aprenderemos sobre visión artificial, específicamente, como procesar una imagen para hacer un conteo de las personas que hay delante de la cámara.
Código:
%Command Window
foto = imread('ruta de la imagen');
imshow(foto)
fotoG = rgb2gray(foto);
imshow(fotoG)
imageSegmenter(fotoG)
% Hacer threshold, show binary, create mask, Morphology (erode), aplicar, exportar como función
% compilar función
BW = segmentImage(fotoG);
imshow(BW)
imageRegionAnalyzer(BW)
% Ordenar tabla por área, filtrar y exportar código como función
% cambiar primer renglón por: function properties = filterRegions(BW_in)
% compilar función
properties = filterRegions(BW);
cantidad = height(properties)
%Script:
w=webcam(2);
while(true)
s=snapshot(w);
try
fotoG = rgb2gray(s);
BW = segmentImage(fotoG);
properties = filterRegions(BW);
cantidad = height(properties);
imshow(s);
title("Número de personas: " + cantidad);
drawnow;
catch
end
end

Опубликовано:

 

12 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 2   
@Ichimon03
@Ichimon03 8 дней назад
Like por Fairy Tail :p
8 дней назад
@@Ichimon03 Gracias 😁
Далее
iPhone 16 для НИЩЕБРОДОВ!
00:51
Просмотров 2,1 млн
ФОКУС -СВЕТОФОР
00:32
Просмотров 336 тыс.
Simular pantalla en TIA PORTAL
11:58
Просмотров 752
Control de velocidad de un motor DC con Arduino y PWM
5:12