1 简介

为便于汽车驾驶员在室外停车场中寻找可用空车位,基于以数据采集,图像处理和目标检测等过程的计算机视觉,开发了室外停车场车位检测实验。

2 部分代码


          
          
clc;
close all;
clearvars;
workspace;
format long g;
format compact;
fontSize = 10;
% Read in reference image with no cars (empty parking lot).
emptylot = 'Parking_Lot_without_Cars.jpg';
rgbEmptyImage = imread(emptylot);
[columns, rows, numberOfColorChannels] = size(rgbEmptyImage);
% Display empty lot
figure(1);
imshow(rgbEmptyImage, []);
axis('on', 'image');
title('Empty Lot');
hp = impixelinfo();
% Read in image with cars parked on the parking lot
withcars = 'Parking_Lot_with_Cars.jpg';
rgbTestImage = imread(withcars);
[columns, rows, numberOfColorChannels] = size(rgbTestImage);
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.

3 仿真结果

【车位检测】基于计算机视觉实现停车场空位识别附matlab代码_图像处理

【车位检测】基于计算机视觉实现停车场空位识别附matlab代码_计算机视觉_02
编辑

【车位检测】基于计算机视觉实现停车场空位识别附matlab代码_matlab代码_03

【车位检测】基于计算机视觉实现停车场空位识别附matlab代码_计算机视觉_04
编辑

4 参考文献

[1]张乾, 肖永菲, 杨玉成,等. 基于计算机视觉的室外停车场车位检测实验设计[J]. 实验技术与管理, 2019, 36(7):4.

博主简介:擅长智能优化算法、神经网络预测、信号处理、元胞自动机、图像处理、路径规划、无人机等多种领域的Matlab仿真,相关matlab代码问题可私信交流。

部分理论引用网络文献,若有侵权联系博主删除。

【车位检测】基于计算机视觉实现停车场空位识别附matlab代码_matlab代码_05

【车位检测】基于计算机视觉实现停车场空位识别附matlab代码_图像处理_06编辑