我是靠谱客的博主 瘦瘦大船,最近开发中收集的这篇文章主要介绍【钟表识别】基于计算机视觉实现钟表时间识别含Matlab源码,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

1 简介

基于计算机视觉实现钟表时间识别含Matlab源码​

2 部分代码

function [time_clock]= read(filepath)

I = imread(filepath);


[edges,center,maxxy,minxy] = edges_center(I);

[arrowslines,longest,center] = getarrows(I,edges,center,maxxy,minxy);

if isempty(arrowslines)
info = imfinfo(filepath);
center(1) = info.Width/2;
center(2) = info.Height/2;
maxxy = [info.Width info.Height];
minxy = [0 0];
[arrowslines,longest,center] = getarrows(I,edges,center,maxxy,minxy);
end
finallines = struct('point1',{},'point2',{});
if length(arrowslines) == 1
newlongest = arrowslines(1);
finallines

最后

以上就是瘦瘦大船为你收集整理的【钟表识别】基于计算机视觉实现钟表时间识别含Matlab源码的全部内容,希望文章能够帮你解决【钟表识别】基于计算机视觉实现钟表时间识别含Matlab源码所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(67)

评论列表共有 0 条评论

立即
投稿
返回
顶部