EDA365电子论坛网
标题:
基于matalb GUI水果检测系统
[打印本页]
作者:
uperrua
时间:
2021-6-18 13:47
标题:
基于matalb GUI水果检测系统
6 @1 s1 {* v: o w% Z$ V8 l0 m
一、简介
+ h! A& K: K, e& Q3 Q! }6 X% j. G
根据颜色的方法来进行定位水蜜桃、樱桃等,我们知道樱桃属于红色,我们只要设置好rgb三通道的色彩分量,即可将红色区域给置1,其他非红色区域给置0.留下草莓的颜色。再利用rectangle函数即可定位出原图的位置。该类课题可以拓展到很多其他的应用,如安全帽识别,路锥识别,彩色球识别,交通标志识别等等。
- v6 Q# ^3 K0 v
1.jpg
(49.11 KB, 下载次数: 2)
下载附件
保存到相册
2021-6-18 13:47 上传
3 L$ I4 v9 V7 [7 i- ]& {: x$ `+ ?- g
" `; I. h5 Y. z
二、源代码
" }6 Z5 E% y$ B1 Z. S
function varargout = orange_shibie(varargin)
% ORANGE_SHIBIE MATLAB code for orange_shibie.fig
% ORANGE_SHIBIE, by itself, creates a new ORANGE_SHIBIE or raises the existing
% singleton*.
%
% H = ORANGE_SHIBIE returns the handle to a new ORANGE_SHIBIE or the handle to
% the existing singleton*.
%
% ORANGE_SHIBIE('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in ORANGE_SHIBIE.M with the given input arguments.
%
% ORANGE_SHIBIE('Property','Value',...) creates a new ORANGE_SHIBIE or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before orange_shibie_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to orange_shibie_OpeningFcn via varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
% instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES
% Edit the above text to modify the response to help orange_shibie
% Last Modified by GUIDE v2.5 03-Dec-2019 21:58:43
% Begin initialization code - DO NOT EDIT
) m3 a6 g4 a# t5 n: a2 p
# X* [8 e( m' o# [
' }6 ?9 G5 w1 t' o% ^
: }+ u( m2 y6 }
作者:
SsaaM7
时间:
2021-6-18 14:39
基于matalb GUI水果检测系统
作者:
ExxNEN
时间:
2021-6-18 14:39
基于matalb GUI水果检测系统
作者:
adogpp
时间:
2021-6-18 14:41
基于matalb GUI水果检测系统
欢迎光临 EDA365电子论坛网 (https://bbs.eda365.com/)
Powered by Discuz! X3.2