在此之前先介绍一个画矩形的函数:
rectangle(Position,[0.59,0.35,3.75,1.37],Curvature,[0,0],LineWidth,2,LineStyle,--)
rectangle(Position,[x坐标,y坐标,宽,高],Curvature,[曲率纵向,曲率横向],LineWidth,线宽,LineStyle,线形)
用matlab画最小外接矩形
例子:主要关注函数regionprops
======================================
function location=liences_plate_location(image_originate)
%Author: Zeng Feng
%Date: 11.24.
%In: image_originate -- the original image containing the
% information about the location of veichile
% lience plate
%Out: location -- containing the up-left corner location
% information and the rectangle width and