一、获取代码方式

获取代码方式1:
完整代码已上传我的资源: 【手势识别】基于matlab GUI石头剪刀布【含Matlab源码 774期】

获取代码方式2:
通过订阅紫极神光博客付费专栏,凭支付凭证,私信博主,可获得此代码。

备注:订阅紫极神光博客付费专栏,可免费获得1份代码(有效期为订阅日起,三天内有效);

二、部分源代码

function varargout = RockPaperScissors(varargin)
% ROCKPAPERSCISSORS MATLAB code for RockPaperScissors.fig
%      ROCKPAPERSCISSORS, by itself, creates a new ROCKPAPERSCISSORS or raises the existing
%      singleton*.
%
%      H = ROCKPAPERSCISSORS returns the handle to a new ROCKPAPERSCISSORS or the handle to
%      the existing singleton*.
%
%      ROCKPAPERSCISSORS('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in ROCKPAPERSCISSORS.M with the given input arguments.
%
%      ROCKPAPERSCISSORS('Property','Value',...) creates a new ROCKPAPERSCISSORS or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before RockPaperScissors_OpeningFcn gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to RockPaperScissors_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 RockPaperScissors% Last Modified by GUIDE v2.5 13-Apr-2021 23:17:57% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...'gui_Singleton',  gui_Singleton, ...'gui_OpeningFcn', @RockPaperScissors_OpeningFcn, ...'gui_OutputFcn',  @RockPaperScissors_OutputFcn, ...'gui_LayoutFcn',  [] , ...'gui_Callback',   []);
if nargin && ischar(varargin{1})gui_State.gui_Callback = str2func(varargin{1});
endif nargout[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
elsegui_mainfcn(gui_State, varargin{:});
end% End initialization code - DO NOT EDIT% --- Executes just before RockPaperScissors is made visible.
function RockPaperScissors_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
% varargin   command line arguments to RockPaperScissors (see VARARGIN)% Choose default command line output for RockPaperScissors
handles.output = hObject;
axes(handles.axes1);axis off
axes(handles.axes2);axis off
% Update handles structure
guidata(hObject, handles);% UIWAIT makes RockPaperScissors wait for user response (see UIRESUME)
% uiwait(handles.figure1);% --- Outputs from this function are returned to the command line.
function varargout = RockPaperScissors_OutputFcn(hObject, eventdata, handles)
% varargout  cell array for returning output args (see VARARGOUT);
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)% Get default command line output from handles structure
varargout{1} = handles.output;% --- Executes on button press in pushbuttonGo.
function pushbuttonGo_Callback(hObject, eventdata, handles)
% hObject    handle to pushbuttonGo (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)text = {'石头' '剪刀' '布'};people = {'平' '甲        ' '      乙'};aP = 1+mod(b-a,3);
%  disp(['甲  ',text{a},char(9),'乙  ',text{b},'胜者:',people{aP}])set(handles.textNo1,'String',text{a});set(handles.textNo2,'String',text{b});set(handles.textResult,'String',people{aP});
axes(handles.axes1)
cla reset;
image(imread(jpg{a}));axis off
axes(handles.axes2)
cla reset;
image(imread(jpg{b}));axis off
%  hc = HColor;set(handles.textResult,'backgroundcolor',hc);
set(handles.text1,'backgroundcolor',hc0);
set(handles.text2,'backgroundcolor',hc0);
switch aPcase 1
%        set(handles.text1,'backgroundcolor',hc0);
%        set(handles.text2,'backgroundcolor',hc0);set(handles.text1,'backgroundcolor',hc);set(handles.text2,'backgroundcolor',hc);case 2set(handles.text1,'backgroundcolor',hc);case 3set(handles.text2,'backgroundcolor',hc);end

三、运行结果



四、matlab版本及参考文献

1 matlab版本
2014a

2 参考文献
[1] 蔡利梅.MATLAB图像处理——理论、算法与实例分析[M].清华大学出版社,2020.
[2]杨丹,赵海滨,龙哲.MATLAB图像处理实例详解[M].清华大学出版社,2013.
[3]周品.MATLAB图像处理与图形用户界面设计[M].清华大学出版社,2013.
[4]刘成龙.精通MATLAB图像处理[M].清华大学出版社,2015.

【手势识别】基于matlab GUI石头剪刀布【含Matlab源码 774期】相关推荐

  1. 【毕业设计系列】图像描述方法的实现matlab GUI【含Matlab源码】

    Date: 2023.3.25 文章目录 前言 1.代码获取方式 2.效果图 3.部分Matlab源码 前言 本文主要讲述了图像描述方法的matlab实现,包括矩描述子.形态学处理.霍夫变换.傅里叶描 ...

  2. matlab gui学生成绩管理系统源码,matlab GUI 学生成绩管理系统.doc

    matlab GUI 学生成绩管理系统 西安邮电大学 MATLAB及其EDA仿真 课内实验报告 院(系)名称 : 电子工程学院 学生姓名 : 李豪 专业名称 : 集成电路设计与集成系统 班 级 : 1 ...

  3. 【数字信号】基于matlab GUI多音双频(DTMF)拨号音频解码仿真系统【含Matlab源码 1084期】

    ⛄一.获取代码方式 获取代码方式1: 完整代码已上传我的资源:[数字信号]基于matlab GUI多音双频(DTMF)拨号音频解码仿真系统[含Matlab源码 1084期] 点击上面蓝色字体,直接付费 ...

  4. 【图像处理】基于matlab GUI多功能图像处理系统【含Matlab源码 1876期】

    ⛄一.获取代码方式 获取代码方式1: 完整代码已上传我的资源:[图像处理]基于matlab GUI多功能图像处理系统[含Matlab源码 1876期] 点击上面蓝色字体,直接付费下载,即可. 获取代码 ...

  5. 【图像去噪】基于matlab GUI butterworth+中值+维纳+小波图像去噪【含Matlab源码 520期】

    ⛄一.获取代码方式 获取代码方式1: 完整代码已上传我的资源:[图像去噪]基于matlab GUI butterworth+中值+维纳+小波图像去噪[含Matlab源码 520期] 获取代码方式2: ...

  6. 【机械仿真】基于matlab GUI曲柄摇杆机构运动仿真【含Matlab源码 1608期】

    一.获取代码方式 获取代码方式1: 完整代码已上传我的资源:[机械仿真]基于matlab GUI曲柄摇杆机构运动仿真[含Matlab源码 1608期] 点击上面蓝色字体,直接付费下载,即可. 获取代码 ...

  7. 【电力预测】基于matlab GUI灰色模型电力负荷预测【含Matlab源码 769期】

    一.获取代码方式 获取代码方式1: 完整代码已上传我的资源: [电力负荷预测]基于matlab GUI灰色模型电力负荷预测[含Matlab源码 769期] 获取代码方式2: 通过订阅紫极神光博客付费专 ...

  8. 【运动学】基于matlab GUI三体运动模拟【含Matlab源码 871期】

    ⛄一.获取代码方式 获取代码方式1: 完整代码已上传我的资源:[运动学]基于matlab GUI三体运动模拟[含Matlab源码 871期] 点击上面蓝色字体,直接付费下载,即可. 获取代码方式2: ...

  9. 【芯片识别】基于matlab GUI形态学PCB板芯片识别【含Matlab源码 1820期】

    ⛄一.获取代码方式 获取代码方式1: 完整代码已上传我的资源:[芯片识别]基于matlab GUI形态学 PCB板芯片识别[含Matlab源码 1820期] 点击上面蓝色字体,直接付费下载,即可. 获 ...

  10. 【音乐播放】基于matlab GUI动感音乐播放【含Matlab源码 778期】

    ⛄一.获取代码方式 获取代码方式1: 完整代码已上传我的资源:[音乐播放]基于matlab GUI动感音乐播放[含Matlab源码 778期] 点击上面蓝色字体,直接付费下载,即可. 获取代码方式2: ...

最新文章

  1. 今晚直播 | 小米人工智能部崔世起:小爱同学全双工技术实践
  2. matlab比例环节仿真例子,典型环节的MATLAB仿真
  3. C#对象XML序列化(一):序列化方法和常用特性
  4. Java开发十大常用网站
  5. Spring Cloud (断路器) Hystrix(三)
  6. 第一范式,第二范式,第三范式
  7. 微信支付:nginx配置 网页授权域名 用户在网页授权页同意授权给公众号后,微信会将授权数据传给一个回调页面,回调页面需在此域名下,以确保安全可靠。
  8. 对《Java核心技术卷一》读者的一些建议
  9. 汇编语言:将ASCⅡ码表示的十进制数转换为二进制数/十六进制数
  10. 计算机和交换机组建步骤,win7系统使用交换机组建局域网的详细步骤
  11. excel android 官网下载地址,excel手机版app下载-excel手机版(excel教程学习)下载v2.0 安卓版-西西软件下载...
  12. JavaScript Dom编程艺术学习笔记(第4章)
  13. SpringBoot开源项目案例
  14. 玩客云刷甜糖(2022-7-26亲测)
  15. android点击不灵敏,华为手机触摸屏没反应怎么办?解决手机触摸屏时灵时不灵的办法...
  16. 对比顺序表与链表——纵观与取舍
  17. 使用tesseract训练自己的字库提高识别率
  18. MySQL数据库企业级应用实践
  19. LCD屏应用--笔记
  20. Mission Planner中级应用(APM或PIX飞控)1——振动测量

热门文章

  1. 代码写的又好又快的秘诀
  2. 关于只针对ie7浏览器的css问题
  3. 客户端地图拼图算法解析
  4. windows 7 动态分区转基本分区绿色工具(Conver to basic disk)
  5. 20191118每日一句
  6. Atitit 常用数据类型有哪些 目录 1.1. 数值类型 整数 小数 自增整数 1 1.2. 货币类型 1 1.3. 字符类型 字符串 2 1.4. 日期/时间类型 时间戳 2 1.5. Ur
  7. Aitit aop之道 艾龙著 需要整合zop资料包东西 第1章 AOP的产生         1.1 软件开发方法的演进         1.2 AOP产生的前奏——把系统看做一批关注点
  8. Atitit 未来趋势把控的书籍 attilax总结 v3
  9. paip.提升效率--gui 的选择--swing最佳实践swt awt
  10. paip. dsl 编程语言优点以及 常见的dsl