You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
296 lines
6.8 KiB
296 lines
6.8 KiB
6 months ago
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<ui version="4.0">
|
||
|
<class>MainWindow</class>
|
||
|
<widget class="QMainWindow" name="MainWindow">
|
||
|
<property name="geometry">
|
||
|
<rect>
|
||
|
<x>0</x>
|
||
|
<y>0</y>
|
||
|
<width>664</width>
|
||
|
<height>436</height>
|
||
|
</rect>
|
||
|
</property>
|
||
|
<property name="windowTitle">
|
||
|
<string>MainWindow</string>
|
||
|
</property>
|
||
|
<widget class="QWidget" name="centralwidget">
|
||
|
<widget class="QPushButton" name="btnOpenCamera">
|
||
|
<property name="geometry">
|
||
|
<rect>
|
||
|
<x>50</x>
|
||
|
<y>240</y>
|
||
|
<width>75</width>
|
||
|
<height>23</height>
|
||
|
</rect>
|
||
|
</property>
|
||
|
<property name="text">
|
||
|
<string>打开摄像头</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
<widget class="QPushButton" name="btnCapture">
|
||
|
<property name="geometry">
|
||
|
<rect>
|
||
|
<x>190</x>
|
||
|
<y>240</y>
|
||
|
<width>75</width>
|
||
|
<height>23</height>
|
||
|
</rect>
|
||
|
</property>
|
||
|
<property name="text">
|
||
|
<string>捕获图片</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
<widget class="QPushButton" name="btnReadImage">
|
||
|
<property name="geometry">
|
||
|
<rect>
|
||
|
<x>330</x>
|
||
|
<y>240</y>
|
||
|
<width>75</width>
|
||
|
<height>23</height>
|
||
|
</rect>
|
||
|
</property>
|
||
|
<property name="text">
|
||
|
<string>打开图片</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
<widget class="QPushButton" name="btnThreshold">
|
||
|
<property name="geometry">
|
||
|
<rect>
|
||
|
<x>50</x>
|
||
|
<y>310</y>
|
||
|
<width>75</width>
|
||
|
<height>23</height>
|
||
|
</rect>
|
||
|
</property>
|
||
|
<property name="text">
|
||
|
<string>阈值分割</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
<widget class="QPushButton" name="btnGray">
|
||
|
<property name="geometry">
|
||
|
<rect>
|
||
|
<x>190</x>
|
||
|
<y>310</y>
|
||
|
<width>75</width>
|
||
|
<height>23</height>
|
||
|
</rect>
|
||
|
</property>
|
||
|
<property name="text">
|
||
|
<string>灰度化</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
<widget class="QLabel" name="labelCamera">
|
||
|
<property name="geometry">
|
||
|
<rect>
|
||
|
<x>20</x>
|
||
|
<y>40</y>
|
||
|
<width>150</width>
|
||
|
<height>150</height>
|
||
|
</rect>
|
||
|
</property>
|
||
|
<property name="frameShadow">
|
||
|
<enum>QFrame::Plain</enum>
|
||
|
</property>
|
||
|
<property name="text">
|
||
|
<string>摄像头</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
<widget class="QLabel" name="labelCapture">
|
||
|
<property name="geometry">
|
||
|
<rect>
|
||
|
<x>200</x>
|
||
|
<y>40</y>
|
||
|
<width>150</width>
|
||
|
<height>150</height>
|
||
|
</rect>
|
||
|
</property>
|
||
|
<property name="text">
|
||
|
<string>捕获图</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
<widget class="QLabel" name="labelResult">
|
||
|
<property name="geometry">
|
||
|
<rect>
|
||
|
<x>380</x>
|
||
|
<y>40</y>
|
||
|
<width>150</width>
|
||
|
<height>150</height>
|
||
|
</rect>
|
||
|
</property>
|
||
|
<property name="text">
|
||
|
<string>结果图</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
<widget class="QPushButton" name="btnDenoising">
|
||
|
<property name="geometry">
|
||
|
<rect>
|
||
|
<x>330</x>
|
||
|
<y>310</y>
|
||
|
<width>75</width>
|
||
|
<height>23</height>
|
||
|
</rect>
|
||
|
</property>
|
||
|
<property name="text">
|
||
|
<string>加噪</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
<widget class="QPushButton" name="btnSaveImage">
|
||
|
<property name="geometry">
|
||
|
<rect>
|
||
|
<x>190</x>
|
||
|
<y>360</y>
|
||
|
<width>75</width>
|
||
|
<height>23</height>
|
||
|
</rect>
|
||
|
</property>
|
||
|
<property name="text">
|
||
|
<string>保存图片</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</widget>
|
||
|
<widget class="QMenuBar" name="menubar">
|
||
|
<property name="geometry">
|
||
|
<rect>
|
||
|
<x>0</x>
|
||
|
<y>0</y>
|
||
|
<width>664</width>
|
||
|
<height>22</height>
|
||
|
</rect>
|
||
|
</property>
|
||
|
</widget>
|
||
|
<widget class="QStatusBar" name="statusbar"/>
|
||
|
</widget>
|
||
|
<tabstops>
|
||
|
<tabstop>btnOpenCamera</tabstop>
|
||
|
<tabstop>btnCapture</tabstop>
|
||
|
<tabstop>btnReadImage</tabstop>
|
||
|
<tabstop>btnThreshold</tabstop>
|
||
|
<tabstop>btnGray</tabstop>
|
||
|
</tabstops>
|
||
|
<resources/>
|
||
|
<connections>
|
||
|
<connection>
|
||
|
<sender>btnOpenCamera</sender>
|
||
|
<signal>clicked()</signal>
|
||
|
<receiver>MainWindow</receiver>
|
||
|
<slot>btnOpenCamera_Clicked()</slot>
|
||
|
<hints>
|
||
|
<hint type="sourcelabel">
|
||
|
<x>90</x>
|
||
|
<y>276</y>
|
||
|
</hint>
|
||
|
<hint type="destinationlabel">
|
||
|
<x>100</x>
|
||
|
<y>232</y>
|
||
|
</hint>
|
||
|
</hints>
|
||
|
</connection>
|
||
|
<connection>
|
||
|
<sender>btnCapture</sender>
|
||
|
<signal>clicked()</signal>
|
||
|
<receiver>MainWindow</receiver>
|
||
|
<slot>btnCapture_Clicked()</slot>
|
||
|
<hints>
|
||
|
<hint type="sourcelabel">
|
||
|
<x>239</x>
|
||
|
<y>275</y>
|
||
|
</hint>
|
||
|
<hint type="destinationlabel">
|
||
|
<x>281</x>
|
||
|
<y>236</y>
|
||
|
</hint>
|
||
|
</hints>
|
||
|
</connection>
|
||
|
<connection>
|
||
|
<sender>btnReadImage</sender>
|
||
|
<signal>clicked()</signal>
|
||
|
<receiver>MainWindow</receiver>
|
||
|
<slot>btnReadImage_Clicked()</slot>
|
||
|
<hints>
|
||
|
<hint type="sourcelabel">
|
||
|
<x>368</x>
|
||
|
<y>277</y>
|
||
|
</hint>
|
||
|
<hint type="destinationlabel">
|
||
|
<x>470</x>
|
||
|
<y>274</y>
|
||
|
</hint>
|
||
|
</hints>
|
||
|
</connection>
|
||
|
<connection>
|
||
|
<sender>btnThreshold</sender>
|
||
|
<signal>clicked()</signal>
|
||
|
<receiver>MainWindow</receiver>
|
||
|
<slot>btnThreshold_Clicked()</slot>
|
||
|
<hints>
|
||
|
<hint type="sourcelabel">
|
||
|
<x>78</x>
|
||
|
<y>354</y>
|
||
|
</hint>
|
||
|
<hint type="destinationlabel">
|
||
|
<x>126</x>
|
||
|
<y>366</y>
|
||
|
</hint>
|
||
|
</hints>
|
||
|
</connection>
|
||
|
<connection>
|
||
|
<sender>btnGray</sender>
|
||
|
<signal>clicked()</signal>
|
||
|
<receiver>MainWindow</receiver>
|
||
|
<slot>btnGray_Clicked()</slot>
|
||
|
<hints>
|
||
|
<hint type="sourcelabel">
|
||
|
<x>253</x>
|
||
|
<y>354</y>
|
||
|
</hint>
|
||
|
<hint type="destinationlabel">
|
||
|
<x>382</x>
|
||
|
<y>364</y>
|
||
|
</hint>
|
||
|
</hints>
|
||
|
</connection>
|
||
|
<connection>
|
||
|
<sender>btnDenoising</sender>
|
||
|
<signal>clicked()</signal>
|
||
|
<receiver>MainWindow</receiver>
|
||
|
<slot>btnDenoising_Clicked()</slot>
|
||
|
<hints>
|
||
|
<hint type="sourcelabel">
|
||
|
<x>370</x>
|
||
|
<y>337</y>
|
||
|
</hint>
|
||
|
<hint type="destinationlabel">
|
||
|
<x>432</x>
|
||
|
<y>311</y>
|
||
|
</hint>
|
||
|
</hints>
|
||
|
</connection>
|
||
|
<connection>
|
||
|
<sender>btnSaveImage</sender>
|
||
|
<signal>clicked()</signal>
|
||
|
<receiver>MainWindow</receiver>
|
||
|
<slot>btnSaveImage_Clicked()</slot>
|
||
|
<hints>
|
||
|
<hint type="sourcelabel">
|
||
|
<x>230</x>
|
||
|
<y>393</y>
|
||
|
</hint>
|
||
|
<hint type="destinationlabel">
|
||
|
<x>317</x>
|
||
|
<y>388</y>
|
||
|
</hint>
|
||
|
</hints>
|
||
|
</connection>
|
||
|
</connections>
|
||
|
<slots>
|
||
|
<slot>btnOpenCamera_Clicked()</slot>
|
||
|
<slot>btnCapture_Clicked()</slot>
|
||
|
<slot>btnReadImage_Clicked()</slot>
|
||
|
<slot>btnGray_Clicked()</slot>
|
||
|
<slot>btnThreshold_Clicked()</slot>
|
||
|
<slot>btn_Clicked()</slot>
|
||
|
<slot>btnDenoising_Clicked()</slot>
|
||
|
<slot>btnSaveImage_Clicked()</slot>
|
||
|
</slots>
|
||
|
</ui>
|