diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2ff4716 --- /dev/null +++ b/Makefile @@ -0,0 +1,1251 @@ +############################################################################# +# Makefile for building: candy +# Generated by qmake (2.01a) (Qt 4.8.7) on: ?? 6? 26 10:44:23 2022 +# Project: candy.pro +# Template: app +# Command: /usr/lib/aarch64-linux-gnu/qt4/bin/qmake -o Makefile candy.pro +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +DEFINES = -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED +CFLAGS = -pipe -O2 -Wall -W -D_REENTRANT $(DEFINES) +CXXFLAGS = -pipe -O2 -Wall -W -D_REENTRANT $(DEFINES) +INCPATH = -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I/opt/MVS/include -I/usr/include/opencv4 -I. -I. +LINK = g++ +LFLAGS = -Wl,-O1 +LIBS = $(SUBLIBS) -L/usr/lib/aarch64-linux-gnu -L/opt/MVS/lib/aarch64/ -lMvCameraControl -L/usr/lib/aarch64-linux-gnu/ -lopencv_core -lopencv_highgui -lopencv_imgcodecs -lopencv_imgproc -lopencv_videoio -lopencv_video -lQtGui -lQtNetwork -lQtCore -lpthread +AR = ar cqs +RANLIB = +QMAKE = /usr/lib/aarch64-linux-gnu/qt4/bin/qmake +TAR = tar -cf +COMPRESS = gzip -9f +COPY = cp -f +SED = sed +COPY_FILE = $(COPY) +COPY_DIR = $(COPY) -r +STRIP = strip +INSTALL_FILE = install -m 644 -p +INSTALL_DIR = $(COPY_DIR) +INSTALL_PROGRAM = install -m 755 -p +DEL_FILE = rm -f +SYMLINK = ln -f -s +DEL_DIR = rmdir +MOVE = mv -f +CHK_DIR_EXISTS= test -d +MKDIR = mkdir -p + +####### Output directory + +OBJECTS_DIR = ./ + +####### Files + +SOURCES = main.cpp \ + widget.cpp \ + initwidget.cpp \ + passwddialog.cpp \ + camera.cpp \ + thread.cpp \ + correct.cpp \ + modifypasswdialog.cpp moc_widget.cpp \ + moc_initwidget.cpp \ + moc_passwddialog.cpp \ + moc_thread.cpp \ + moc_modifypasswdialog.cpp +OBJECTS = main.o \ + widget.o \ + initwidget.o \ + passwddialog.o \ + camera.o \ + thread.o \ + correct.o \ + modifypasswdialog.o \ + moc_widget.o \ + moc_initwidget.o \ + moc_passwddialog.o \ + moc_thread.o \ + moc_modifypasswdialog.o +DIST = /usr/share/qt4/mkspecs/common/unix.conf \ + /usr/share/qt4/mkspecs/common/linux.conf \ + /usr/share/qt4/mkspecs/common/gcc-base.conf \ + /usr/share/qt4/mkspecs/common/gcc-base-unix.conf \ + /usr/share/qt4/mkspecs/common/g++-base.conf \ + /usr/share/qt4/mkspecs/common/g++-unix.conf \ + /usr/share/qt4/mkspecs/qconfig.pri \ + /usr/share/qt4/mkspecs/features/qt_functions.prf \ + /usr/share/qt4/mkspecs/features/qt_config.prf \ + /usr/share/qt4/mkspecs/features/exclusive_builds.prf \ + /usr/share/qt4/mkspecs/features/default_pre.prf \ + /usr/share/qt4/mkspecs/features/release.prf \ + /usr/share/qt4/mkspecs/features/default_post.prf \ + /usr/share/qt4/mkspecs/features/shared.prf \ + /usr/share/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ + /usr/share/qt4/mkspecs/features/warn_on.prf \ + /usr/share/qt4/mkspecs/features/qt.prf \ + /usr/share/qt4/mkspecs/features/unix/thread.prf \ + /usr/share/qt4/mkspecs/features/moc.prf \ + /usr/share/qt4/mkspecs/features/resources.prf \ + /usr/share/qt4/mkspecs/features/uic.prf \ + /usr/share/qt4/mkspecs/features/yacc.prf \ + /usr/share/qt4/mkspecs/features/lex.prf \ + /usr/share/qt4/mkspecs/features/include_source_dir.prf \ + candy.pro +QMAKE_TARGET = candy +DESTDIR = +TARGET = candy + +first: all +####### Implicit rules + +.SUFFIXES: .o .c .cpp .cc .cxx .C + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<" + +####### Build rules + +all: Makefile $(TARGET) + +$(TARGET): ui_widget.h ui_initwidget.h ui_passwddialog.h ui_modifypasswdialog.h $(OBJECTS) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS) + +Makefile: candy.pro /usr/share/qt4/mkspecs/linux-g++/qmake.conf /usr/share/qt4/mkspecs/common/unix.conf \ + /usr/share/qt4/mkspecs/common/linux.conf \ + /usr/share/qt4/mkspecs/common/gcc-base.conf \ + /usr/share/qt4/mkspecs/common/gcc-base-unix.conf \ + /usr/share/qt4/mkspecs/common/g++-base.conf \ + /usr/share/qt4/mkspecs/common/g++-unix.conf \ + /usr/share/qt4/mkspecs/qconfig.pri \ + /usr/share/qt4/mkspecs/features/qt_functions.prf \ + /usr/share/qt4/mkspecs/features/qt_config.prf \ + /usr/share/qt4/mkspecs/features/exclusive_builds.prf \ + /usr/share/qt4/mkspecs/features/default_pre.prf \ + /usr/share/qt4/mkspecs/features/release.prf \ + /usr/share/qt4/mkspecs/features/default_post.prf \ + /usr/share/qt4/mkspecs/features/shared.prf \ + /usr/share/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ + /usr/share/qt4/mkspecs/features/warn_on.prf \ + /usr/share/qt4/mkspecs/features/qt.prf \ + /usr/share/qt4/mkspecs/features/unix/thread.prf \ + /usr/share/qt4/mkspecs/features/moc.prf \ + /usr/share/qt4/mkspecs/features/resources.prf \ + /usr/share/qt4/mkspecs/features/uic.prf \ + /usr/share/qt4/mkspecs/features/yacc.prf \ + /usr/share/qt4/mkspecs/features/lex.prf \ + /usr/share/qt4/mkspecs/features/include_source_dir.prf \ + /usr/lib/aarch64-linux-gnu/libQtGui.prl \ + /usr/lib/aarch64-linux-gnu/libQtNetwork.prl \ + /usr/lib/aarch64-linux-gnu/libQtCore.prl + $(QMAKE) -o Makefile candy.pro +/usr/share/qt4/mkspecs/common/unix.conf: +/usr/share/qt4/mkspecs/common/linux.conf: +/usr/share/qt4/mkspecs/common/gcc-base.conf: +/usr/share/qt4/mkspecs/common/gcc-base-unix.conf: +/usr/share/qt4/mkspecs/common/g++-base.conf: +/usr/share/qt4/mkspecs/common/g++-unix.conf: +/usr/share/qt4/mkspecs/qconfig.pri: +/usr/share/qt4/mkspecs/features/qt_functions.prf: +/usr/share/qt4/mkspecs/features/qt_config.prf: +/usr/share/qt4/mkspecs/features/exclusive_builds.prf: +/usr/share/qt4/mkspecs/features/default_pre.prf: +/usr/share/qt4/mkspecs/features/release.prf: +/usr/share/qt4/mkspecs/features/default_post.prf: +/usr/share/qt4/mkspecs/features/shared.prf: +/usr/share/qt4/mkspecs/features/unix/gdb_dwarf_index.prf: +/usr/share/qt4/mkspecs/features/warn_on.prf: +/usr/share/qt4/mkspecs/features/qt.prf: +/usr/share/qt4/mkspecs/features/unix/thread.prf: +/usr/share/qt4/mkspecs/features/moc.prf: +/usr/share/qt4/mkspecs/features/resources.prf: +/usr/share/qt4/mkspecs/features/uic.prf: +/usr/share/qt4/mkspecs/features/yacc.prf: +/usr/share/qt4/mkspecs/features/lex.prf: +/usr/share/qt4/mkspecs/features/include_source_dir.prf: +/usr/lib/aarch64-linux-gnu/libQtGui.prl: +/usr/lib/aarch64-linux-gnu/libQtNetwork.prl: +/usr/lib/aarch64-linux-gnu/libQtCore.prl: +qmake: FORCE + @$(QMAKE) -o Makefile candy.pro + +dist: + @$(CHK_DIR_EXISTS) .tmp/candy1.0.0 || $(MKDIR) .tmp/candy1.0.0 + $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/candy1.0.0/ && $(COPY_FILE) --parents widget.h initwidget.h passwddialog.h camera.h thread.h correct.h modifypasswdialog.h .tmp/candy1.0.0/ && $(COPY_FILE) --parents main.cpp widget.cpp initwidget.cpp passwddialog.cpp camera.cpp thread.cpp correct.cpp modifypasswdialog.cpp .tmp/candy1.0.0/ && $(COPY_FILE) --parents widget.ui initwidget.ui passwddialog.ui modifypasswdialog.ui .tmp/candy1.0.0/ && (cd `dirname .tmp/candy1.0.0` && $(TAR) candy1.0.0.tar candy1.0.0 && $(COMPRESS) candy1.0.0.tar) && $(MOVE) `dirname .tmp/candy1.0.0`/candy1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/candy1.0.0 + + +clean:compiler_clean + -$(DEL_FILE) $(OBJECTS) + -$(DEL_FILE) *~ core *.core + + +####### Sub-libraries + +distclean: clean + -$(DEL_FILE) $(TARGET) + -$(DEL_FILE) Makefile + + +check: first + +mocclean: compiler_moc_header_clean compiler_moc_source_clean + +mocables: compiler_moc_header_make_all compiler_moc_source_make_all + +compiler_moc_header_make_all: moc_widget.cpp moc_initwidget.cpp moc_passwddialog.cpp moc_thread.cpp moc_modifypasswdialog.cpp +compiler_moc_header_clean: + -$(DEL_FILE) moc_widget.cpp moc_initwidget.cpp moc_passwddialog.cpp moc_thread.cpp moc_modifypasswdialog.cpp +moc_widget.cpp: passwddialog.h \ + modifypasswdialog.h \ + /usr/include/opencv4/opencv2/opencv.hpp \ + /usr/include/opencv4/opencv2/opencv_modules.hpp \ + /usr/include/opencv4/opencv2/core.hpp \ + /usr/include/opencv4/opencv2/core/cvdef.h \ + /usr/include/opencv4/opencv2/core/hal/interface.h \ + /usr/include/opencv4/opencv2/core/cv_cpu_dispatch.h \ + /usr/include/opencv4/opencv2/core/cv_cpu_helper.h \ + /usr/include/opencv4/opencv2/core/fast_math.hpp \ + /usr/include/opencv4/opencv2/core/version.hpp \ + /usr/include/opencv4/opencv2/core/base.hpp \ + /usr/include/opencv4/opencv2/core/cvstd.hpp \ + /usr/include/opencv4/opencv2/core/cvstd_wrapper.hpp \ + /usr/include/opencv4/opencv2/core/neon_utils.hpp \ + /usr/include/opencv4/opencv2/core/vsx_utils.hpp \ + /usr/include/opencv4/opencv2/core/check.hpp \ + /usr/include/opencv4/opencv2/core/traits.hpp \ + /usr/include/opencv4/opencv2/core/matx.hpp \ + /usr/include/opencv4/opencv2/core/saturate.hpp \ + /usr/include/opencv4/opencv2/core/types.hpp \ + /usr/include/opencv4/opencv2/core/mat.hpp \ + /usr/include/opencv4/opencv2/core/bufferpool.hpp \ + /usr/include/opencv4/opencv2/core/mat.inl.hpp \ + /usr/include/opencv4/opencv2/core/persistence.hpp \ + /usr/include/opencv4/opencv2/core/operations.hpp \ + /usr/include/opencv4/opencv2/core/cvstd.inl.hpp \ + /usr/include/opencv4/opencv2/core/utility.hpp \ + /usr/include/opencv4/opencv2/core/optim.hpp \ + /usr/include/opencv4/opencv2/core/ovx.hpp \ + /usr/include/opencv4/opencv2/calib3d.hpp \ + /usr/include/opencv4/opencv2/features2d.hpp \ + /usr/include/opencv4/opencv2/flann/miniflann.hpp \ + /usr/include/opencv4/opencv2/flann/defines.h \ + /usr/include/opencv4/opencv2/flann/config.h \ + /usr/include/opencv4/opencv2/core/affine.hpp \ + /usr/include/opencv4/opencv2/dnn.hpp \ + /usr/include/opencv4/opencv2/dnn/dnn.hpp \ + /usr/include/opencv4/opencv2/core/async.hpp \ + /usr/include/opencv4/opencv2/dnn/version.hpp \ + /usr/include/opencv4/opencv2/dnn/dict.hpp \ + /usr/include/opencv4/opencv2/dnn/layer.hpp \ + /usr/include/opencv4/opencv2/dnn/dnn.inl.hpp \ + /usr/include/opencv4/opencv2/dnn/utils/inference_engine.hpp \ + /usr/include/opencv4/opencv2/flann.hpp \ + /usr/include/opencv4/opencv2/flann/flann_base.hpp \ + /usr/include/opencv4/opencv2/flann/general.h \ + /usr/include/opencv4/opencv2/flann/matrix.h \ + /usr/include/opencv4/opencv2/flann/params.h \ + /usr/include/opencv4/opencv2/flann/any.h \ + /usr/include/opencv4/opencv2/flann/saving.h \ + /usr/include/opencv4/opencv2/flann/nn_index.h \ + /usr/include/opencv4/opencv2/flann/result_set.h \ + /usr/include/opencv4/opencv2/flann/all_indices.h \ + /usr/include/opencv4/opencv2/flann/kdtree_index.h \ + /usr/include/opencv4/opencv2/flann/dynamic_bitset.h \ + /usr/include/opencv4/opencv2/flann/dist.h \ + /usr/include/opencv4/opencv2/flann/heap.h \ + /usr/include/opencv4/opencv2/flann/allocator.h \ + /usr/include/opencv4/opencv2/flann/random.h \ + /usr/include/opencv4/opencv2/flann/kdtree_single_index.h \ + /usr/include/opencv4/opencv2/flann/kmeans_index.h \ + /usr/include/opencv4/opencv2/flann/logger.h \ + /usr/include/opencv4/opencv2/flann/composite_index.h \ + /usr/include/opencv4/opencv2/flann/linear_index.h \ + /usr/include/opencv4/opencv2/flann/hierarchical_clustering_index.h \ + /usr/include/opencv4/opencv2/flann/lsh_index.h \ + /usr/include/opencv4/opencv2/flann/lsh_table.h \ + /usr/include/opencv4/opencv2/flann/autotuned_index.h \ + /usr/include/opencv4/opencv2/flann/ground_truth.h \ + /usr/include/opencv4/opencv2/flann/index_testing.h \ + /usr/include/opencv4/opencv2/flann/timer.h \ + /usr/include/opencv4/opencv2/flann/sampling.h \ + /usr/include/opencv4/opencv2/highgui.hpp \ + /usr/include/opencv4/opencv2/imgcodecs.hpp \ + /usr/include/opencv4/opencv2/videoio.hpp \ + /usr/include/opencv4/opencv2/imgproc.hpp \ + /usr/include/opencv4/opencv2/ml.hpp \ + /usr/include/opencv4/opencv2/ml/ml.inl.hpp \ + /usr/include/opencv4/opencv2/objdetect.hpp \ + /usr/include/opencv4/opencv2/objdetect/detection_based_tracker.hpp \ + /usr/include/opencv4/opencv2/photo.hpp \ + /usr/include/opencv4/opencv2/stitching.hpp \ + /usr/include/opencv4/opencv2/stitching/warpers.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/warpers.hpp \ + /usr/include/opencv4/opencv2/core/cuda.hpp \ + /usr/include/opencv4/opencv2/core/cuda_types.hpp \ + /usr/include/opencv4/opencv2/core/cuda.inl.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/warpers_inl.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/matchers.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/motion_estimators.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/util.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/util_inl.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/camera.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/exposure_compensate.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/seam_finders.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/blenders.hpp \ + /usr/include/opencv4/opencv2/video.hpp \ + /usr/include/opencv4/opencv2/video/tracking.hpp \ + /usr/include/opencv4/opencv2/video/background_segm.hpp \ + thread.h \ + camera.h \ + /opt/MVS/include/MvCameraControl.h \ + /opt/MVS/include/MvErrorDefine.h \ + /opt/MVS/include/CameraParams.h \ + /opt/MVS/include/PixelType.h \ + correct.h \ + widget.h + /usr/lib/aarch64-linux-gnu/qt4/bin/moc $(DEFINES) $(INCPATH) widget.h -o moc_widget.cpp + +moc_initwidget.cpp: widget.h \ + passwddialog.h \ + modifypasswdialog.h \ + /usr/include/opencv4/opencv2/opencv.hpp \ + /usr/include/opencv4/opencv2/opencv_modules.hpp \ + /usr/include/opencv4/opencv2/core.hpp \ + /usr/include/opencv4/opencv2/core/cvdef.h \ + /usr/include/opencv4/opencv2/core/hal/interface.h \ + /usr/include/opencv4/opencv2/core/cv_cpu_dispatch.h \ + /usr/include/opencv4/opencv2/core/cv_cpu_helper.h \ + /usr/include/opencv4/opencv2/core/fast_math.hpp \ + /usr/include/opencv4/opencv2/core/version.hpp \ + /usr/include/opencv4/opencv2/core/base.hpp \ + /usr/include/opencv4/opencv2/core/cvstd.hpp \ + /usr/include/opencv4/opencv2/core/cvstd_wrapper.hpp \ + /usr/include/opencv4/opencv2/core/neon_utils.hpp \ + /usr/include/opencv4/opencv2/core/vsx_utils.hpp \ + /usr/include/opencv4/opencv2/core/check.hpp \ + /usr/include/opencv4/opencv2/core/traits.hpp \ + /usr/include/opencv4/opencv2/core/matx.hpp \ + /usr/include/opencv4/opencv2/core/saturate.hpp \ + /usr/include/opencv4/opencv2/core/types.hpp \ + /usr/include/opencv4/opencv2/core/mat.hpp \ + /usr/include/opencv4/opencv2/core/bufferpool.hpp \ + /usr/include/opencv4/opencv2/core/mat.inl.hpp \ + /usr/include/opencv4/opencv2/core/persistence.hpp \ + /usr/include/opencv4/opencv2/core/operations.hpp \ + /usr/include/opencv4/opencv2/core/cvstd.inl.hpp \ + /usr/include/opencv4/opencv2/core/utility.hpp \ + /usr/include/opencv4/opencv2/core/optim.hpp \ + /usr/include/opencv4/opencv2/core/ovx.hpp \ + /usr/include/opencv4/opencv2/calib3d.hpp \ + /usr/include/opencv4/opencv2/features2d.hpp \ + /usr/include/opencv4/opencv2/flann/miniflann.hpp \ + /usr/include/opencv4/opencv2/flann/defines.h \ + /usr/include/opencv4/opencv2/flann/config.h \ + /usr/include/opencv4/opencv2/core/affine.hpp \ + /usr/include/opencv4/opencv2/dnn.hpp \ + /usr/include/opencv4/opencv2/dnn/dnn.hpp \ + /usr/include/opencv4/opencv2/core/async.hpp \ + /usr/include/opencv4/opencv2/dnn/version.hpp \ + /usr/include/opencv4/opencv2/dnn/dict.hpp \ + /usr/include/opencv4/opencv2/dnn/layer.hpp \ + /usr/include/opencv4/opencv2/dnn/dnn.inl.hpp \ + /usr/include/opencv4/opencv2/dnn/utils/inference_engine.hpp \ + /usr/include/opencv4/opencv2/flann.hpp \ + /usr/include/opencv4/opencv2/flann/flann_base.hpp \ + /usr/include/opencv4/opencv2/flann/general.h \ + /usr/include/opencv4/opencv2/flann/matrix.h \ + /usr/include/opencv4/opencv2/flann/params.h \ + /usr/include/opencv4/opencv2/flann/any.h \ + /usr/include/opencv4/opencv2/flann/saving.h \ + /usr/include/opencv4/opencv2/flann/nn_index.h \ + /usr/include/opencv4/opencv2/flann/result_set.h \ + /usr/include/opencv4/opencv2/flann/all_indices.h \ + /usr/include/opencv4/opencv2/flann/kdtree_index.h \ + /usr/include/opencv4/opencv2/flann/dynamic_bitset.h \ + /usr/include/opencv4/opencv2/flann/dist.h \ + /usr/include/opencv4/opencv2/flann/heap.h \ + /usr/include/opencv4/opencv2/flann/allocator.h \ + /usr/include/opencv4/opencv2/flann/random.h \ + /usr/include/opencv4/opencv2/flann/kdtree_single_index.h \ + /usr/include/opencv4/opencv2/flann/kmeans_index.h \ + /usr/include/opencv4/opencv2/flann/logger.h \ + /usr/include/opencv4/opencv2/flann/composite_index.h \ + /usr/include/opencv4/opencv2/flann/linear_index.h \ + /usr/include/opencv4/opencv2/flann/hierarchical_clustering_index.h \ + /usr/include/opencv4/opencv2/flann/lsh_index.h \ + /usr/include/opencv4/opencv2/flann/lsh_table.h \ + /usr/include/opencv4/opencv2/flann/autotuned_index.h \ + /usr/include/opencv4/opencv2/flann/ground_truth.h \ + /usr/include/opencv4/opencv2/flann/index_testing.h \ + /usr/include/opencv4/opencv2/flann/timer.h \ + /usr/include/opencv4/opencv2/flann/sampling.h \ + /usr/include/opencv4/opencv2/highgui.hpp \ + /usr/include/opencv4/opencv2/imgcodecs.hpp \ + /usr/include/opencv4/opencv2/videoio.hpp \ + /usr/include/opencv4/opencv2/imgproc.hpp \ + /usr/include/opencv4/opencv2/ml.hpp \ + /usr/include/opencv4/opencv2/ml/ml.inl.hpp \ + /usr/include/opencv4/opencv2/objdetect.hpp \ + /usr/include/opencv4/opencv2/objdetect/detection_based_tracker.hpp \ + /usr/include/opencv4/opencv2/photo.hpp \ + /usr/include/opencv4/opencv2/stitching.hpp \ + /usr/include/opencv4/opencv2/stitching/warpers.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/warpers.hpp \ + /usr/include/opencv4/opencv2/core/cuda.hpp \ + /usr/include/opencv4/opencv2/core/cuda_types.hpp \ + /usr/include/opencv4/opencv2/core/cuda.inl.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/warpers_inl.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/matchers.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/motion_estimators.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/util.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/util_inl.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/camera.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/exposure_compensate.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/seam_finders.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/blenders.hpp \ + /usr/include/opencv4/opencv2/video.hpp \ + /usr/include/opencv4/opencv2/video/tracking.hpp \ + /usr/include/opencv4/opencv2/video/background_segm.hpp \ + thread.h \ + camera.h \ + /opt/MVS/include/MvCameraControl.h \ + /opt/MVS/include/MvErrorDefine.h \ + /opt/MVS/include/CameraParams.h \ + /opt/MVS/include/PixelType.h \ + correct.h \ + initwidget.h + /usr/lib/aarch64-linux-gnu/qt4/bin/moc $(DEFINES) $(INCPATH) initwidget.h -o moc_initwidget.cpp + +moc_passwddialog.cpp: passwddialog.h + /usr/lib/aarch64-linux-gnu/qt4/bin/moc $(DEFINES) $(INCPATH) passwddialog.h -o moc_passwddialog.cpp + +moc_thread.cpp: /usr/include/opencv4/opencv2/opencv.hpp \ + /usr/include/opencv4/opencv2/opencv_modules.hpp \ + /usr/include/opencv4/opencv2/core.hpp \ + /usr/include/opencv4/opencv2/core/cvdef.h \ + /usr/include/opencv4/opencv2/core/hal/interface.h \ + /usr/include/opencv4/opencv2/core/cv_cpu_dispatch.h \ + /usr/include/opencv4/opencv2/core/cv_cpu_helper.h \ + /usr/include/opencv4/opencv2/core/fast_math.hpp \ + /usr/include/opencv4/opencv2/core/version.hpp \ + /usr/include/opencv4/opencv2/core/base.hpp \ + /usr/include/opencv4/opencv2/core/cvstd.hpp \ + /usr/include/opencv4/opencv2/core/cvstd_wrapper.hpp \ + /usr/include/opencv4/opencv2/core/neon_utils.hpp \ + /usr/include/opencv4/opencv2/core/vsx_utils.hpp \ + /usr/include/opencv4/opencv2/core/check.hpp \ + /usr/include/opencv4/opencv2/core/traits.hpp \ + /usr/include/opencv4/opencv2/core/matx.hpp \ + /usr/include/opencv4/opencv2/core/saturate.hpp \ + /usr/include/opencv4/opencv2/core/types.hpp \ + /usr/include/opencv4/opencv2/core/mat.hpp \ + /usr/include/opencv4/opencv2/core/bufferpool.hpp \ + /usr/include/opencv4/opencv2/core/mat.inl.hpp \ + /usr/include/opencv4/opencv2/core/persistence.hpp \ + /usr/include/opencv4/opencv2/core/operations.hpp \ + /usr/include/opencv4/opencv2/core/cvstd.inl.hpp \ + /usr/include/opencv4/opencv2/core/utility.hpp \ + /usr/include/opencv4/opencv2/core/optim.hpp \ + /usr/include/opencv4/opencv2/core/ovx.hpp \ + /usr/include/opencv4/opencv2/calib3d.hpp \ + /usr/include/opencv4/opencv2/features2d.hpp \ + /usr/include/opencv4/opencv2/flann/miniflann.hpp \ + /usr/include/opencv4/opencv2/flann/defines.h \ + /usr/include/opencv4/opencv2/flann/config.h \ + /usr/include/opencv4/opencv2/core/affine.hpp \ + /usr/include/opencv4/opencv2/dnn.hpp \ + /usr/include/opencv4/opencv2/dnn/dnn.hpp \ + /usr/include/opencv4/opencv2/core/async.hpp \ + /usr/include/opencv4/opencv2/dnn/version.hpp \ + /usr/include/opencv4/opencv2/dnn/dict.hpp \ + /usr/include/opencv4/opencv2/dnn/layer.hpp \ + /usr/include/opencv4/opencv2/dnn/dnn.inl.hpp \ + /usr/include/opencv4/opencv2/dnn/utils/inference_engine.hpp \ + /usr/include/opencv4/opencv2/flann.hpp \ + /usr/include/opencv4/opencv2/flann/flann_base.hpp \ + /usr/include/opencv4/opencv2/flann/general.h \ + /usr/include/opencv4/opencv2/flann/matrix.h \ + /usr/include/opencv4/opencv2/flann/params.h \ + /usr/include/opencv4/opencv2/flann/any.h \ + /usr/include/opencv4/opencv2/flann/saving.h \ + /usr/include/opencv4/opencv2/flann/nn_index.h \ + /usr/include/opencv4/opencv2/flann/result_set.h \ + /usr/include/opencv4/opencv2/flann/all_indices.h \ + /usr/include/opencv4/opencv2/flann/kdtree_index.h \ + /usr/include/opencv4/opencv2/flann/dynamic_bitset.h \ + /usr/include/opencv4/opencv2/flann/dist.h \ + /usr/include/opencv4/opencv2/flann/heap.h \ + /usr/include/opencv4/opencv2/flann/allocator.h \ + /usr/include/opencv4/opencv2/flann/random.h \ + /usr/include/opencv4/opencv2/flann/kdtree_single_index.h \ + /usr/include/opencv4/opencv2/flann/kmeans_index.h \ + /usr/include/opencv4/opencv2/flann/logger.h \ + /usr/include/opencv4/opencv2/flann/composite_index.h \ + /usr/include/opencv4/opencv2/flann/linear_index.h \ + /usr/include/opencv4/opencv2/flann/hierarchical_clustering_index.h \ + /usr/include/opencv4/opencv2/flann/lsh_index.h \ + /usr/include/opencv4/opencv2/flann/lsh_table.h \ + /usr/include/opencv4/opencv2/flann/autotuned_index.h \ + /usr/include/opencv4/opencv2/flann/ground_truth.h \ + /usr/include/opencv4/opencv2/flann/index_testing.h \ + /usr/include/opencv4/opencv2/flann/timer.h \ + /usr/include/opencv4/opencv2/flann/sampling.h \ + /usr/include/opencv4/opencv2/highgui.hpp \ + /usr/include/opencv4/opencv2/imgcodecs.hpp \ + /usr/include/opencv4/opencv2/videoio.hpp \ + /usr/include/opencv4/opencv2/imgproc.hpp \ + /usr/include/opencv4/opencv2/ml.hpp \ + /usr/include/opencv4/opencv2/ml/ml.inl.hpp \ + /usr/include/opencv4/opencv2/objdetect.hpp \ + /usr/include/opencv4/opencv2/objdetect/detection_based_tracker.hpp \ + /usr/include/opencv4/opencv2/photo.hpp \ + /usr/include/opencv4/opencv2/stitching.hpp \ + /usr/include/opencv4/opencv2/stitching/warpers.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/warpers.hpp \ + /usr/include/opencv4/opencv2/core/cuda.hpp \ + /usr/include/opencv4/opencv2/core/cuda_types.hpp \ + /usr/include/opencv4/opencv2/core/cuda.inl.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/warpers_inl.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/matchers.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/motion_estimators.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/util.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/util_inl.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/camera.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/exposure_compensate.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/seam_finders.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/blenders.hpp \ + /usr/include/opencv4/opencv2/video.hpp \ + /usr/include/opencv4/opencv2/video/tracking.hpp \ + /usr/include/opencv4/opencv2/video/background_segm.hpp \ + thread.h + /usr/lib/aarch64-linux-gnu/qt4/bin/moc $(DEFINES) $(INCPATH) thread.h -o moc_thread.cpp + +moc_modifypasswdialog.cpp: modifypasswdialog.h + /usr/lib/aarch64-linux-gnu/qt4/bin/moc $(DEFINES) $(INCPATH) modifypasswdialog.h -o moc_modifypasswdialog.cpp + +compiler_rcc_make_all: +compiler_rcc_clean: +compiler_image_collection_make_all: qmake_image_collection.cpp +compiler_image_collection_clean: + -$(DEL_FILE) qmake_image_collection.cpp +compiler_moc_source_make_all: +compiler_moc_source_clean: +compiler_uic_make_all: ui_widget.h ui_initwidget.h ui_passwddialog.h ui_modifypasswdialog.h +compiler_uic_clean: + -$(DEL_FILE) ui_widget.h ui_initwidget.h ui_passwddialog.h ui_modifypasswdialog.h +ui_widget.h: widget.ui + /usr/lib/aarch64-linux-gnu/qt4/bin/uic widget.ui -o ui_widget.h + +ui_initwidget.h: initwidget.ui + /usr/lib/aarch64-linux-gnu/qt4/bin/uic initwidget.ui -o ui_initwidget.h + +ui_passwddialog.h: passwddialog.ui + /usr/lib/aarch64-linux-gnu/qt4/bin/uic passwddialog.ui -o ui_passwddialog.h + +ui_modifypasswdialog.h: modifypasswdialog.ui + /usr/lib/aarch64-linux-gnu/qt4/bin/uic modifypasswdialog.ui -o ui_modifypasswdialog.h + +compiler_yacc_decl_make_all: +compiler_yacc_decl_clean: +compiler_yacc_impl_make_all: +compiler_yacc_impl_clean: +compiler_lex_make_all: +compiler_lex_clean: +compiler_clean: compiler_moc_header_clean compiler_uic_clean + +####### Compile + +main.o: main.cpp widget.h \ + passwddialog.h \ + modifypasswdialog.h \ + /usr/include/opencv4/opencv2/opencv.hpp \ + /usr/include/opencv4/opencv2/opencv_modules.hpp \ + /usr/include/opencv4/opencv2/core.hpp \ + /usr/include/opencv4/opencv2/core/cvdef.h \ + /usr/include/opencv4/opencv2/core/hal/interface.h \ + /usr/include/opencv4/opencv2/core/cv_cpu_dispatch.h \ + /usr/include/opencv4/opencv2/core/cv_cpu_helper.h \ + /usr/include/opencv4/opencv2/core/fast_math.hpp \ + /usr/include/opencv4/opencv2/core/version.hpp \ + /usr/include/opencv4/opencv2/core/base.hpp \ + /usr/include/opencv4/opencv2/core/cvstd.hpp \ + /usr/include/opencv4/opencv2/core/cvstd_wrapper.hpp \ + /usr/include/opencv4/opencv2/core/neon_utils.hpp \ + /usr/include/opencv4/opencv2/core/vsx_utils.hpp \ + /usr/include/opencv4/opencv2/core/check.hpp \ + /usr/include/opencv4/opencv2/core/traits.hpp \ + /usr/include/opencv4/opencv2/core/matx.hpp \ + /usr/include/opencv4/opencv2/core/saturate.hpp \ + /usr/include/opencv4/opencv2/core/types.hpp \ + /usr/include/opencv4/opencv2/core/mat.hpp \ + /usr/include/opencv4/opencv2/core/bufferpool.hpp \ + /usr/include/opencv4/opencv2/core/mat.inl.hpp \ + /usr/include/opencv4/opencv2/core/persistence.hpp \ + /usr/include/opencv4/opencv2/core/operations.hpp \ + /usr/include/opencv4/opencv2/core/cvstd.inl.hpp \ + /usr/include/opencv4/opencv2/core/utility.hpp \ + /usr/include/opencv4/opencv2/core/optim.hpp \ + /usr/include/opencv4/opencv2/core/ovx.hpp \ + /usr/include/opencv4/opencv2/calib3d.hpp \ + /usr/include/opencv4/opencv2/features2d.hpp \ + /usr/include/opencv4/opencv2/flann/miniflann.hpp \ + /usr/include/opencv4/opencv2/flann/defines.h \ + /usr/include/opencv4/opencv2/flann/config.h \ + /usr/include/opencv4/opencv2/core/affine.hpp \ + /usr/include/opencv4/opencv2/dnn.hpp \ + /usr/include/opencv4/opencv2/dnn/dnn.hpp \ + /usr/include/opencv4/opencv2/core/async.hpp \ + /usr/include/opencv4/opencv2/dnn/version.hpp \ + /usr/include/opencv4/opencv2/dnn/dict.hpp \ + /usr/include/opencv4/opencv2/dnn/layer.hpp \ + /usr/include/opencv4/opencv2/dnn/dnn.inl.hpp \ + /usr/include/opencv4/opencv2/dnn/utils/inference_engine.hpp \ + /usr/include/opencv4/opencv2/flann.hpp \ + /usr/include/opencv4/opencv2/flann/flann_base.hpp \ + /usr/include/opencv4/opencv2/flann/general.h \ + /usr/include/opencv4/opencv2/flann/matrix.h \ + /usr/include/opencv4/opencv2/flann/params.h \ + /usr/include/opencv4/opencv2/flann/any.h \ + /usr/include/opencv4/opencv2/flann/saving.h \ + /usr/include/opencv4/opencv2/flann/nn_index.h \ + /usr/include/opencv4/opencv2/flann/result_set.h \ + /usr/include/opencv4/opencv2/flann/all_indices.h \ + /usr/include/opencv4/opencv2/flann/kdtree_index.h \ + /usr/include/opencv4/opencv2/flann/dynamic_bitset.h \ + /usr/include/opencv4/opencv2/flann/dist.h \ + /usr/include/opencv4/opencv2/flann/heap.h \ + /usr/include/opencv4/opencv2/flann/allocator.h \ + /usr/include/opencv4/opencv2/flann/random.h \ + /usr/include/opencv4/opencv2/flann/kdtree_single_index.h \ + /usr/include/opencv4/opencv2/flann/kmeans_index.h \ + /usr/include/opencv4/opencv2/flann/logger.h \ + /usr/include/opencv4/opencv2/flann/composite_index.h \ + /usr/include/opencv4/opencv2/flann/linear_index.h \ + /usr/include/opencv4/opencv2/flann/hierarchical_clustering_index.h \ + /usr/include/opencv4/opencv2/flann/lsh_index.h \ + /usr/include/opencv4/opencv2/flann/lsh_table.h \ + /usr/include/opencv4/opencv2/flann/autotuned_index.h \ + /usr/include/opencv4/opencv2/flann/ground_truth.h \ + /usr/include/opencv4/opencv2/flann/index_testing.h \ + /usr/include/opencv4/opencv2/flann/timer.h \ + /usr/include/opencv4/opencv2/flann/sampling.h \ + /usr/include/opencv4/opencv2/highgui.hpp \ + /usr/include/opencv4/opencv2/imgcodecs.hpp \ + /usr/include/opencv4/opencv2/videoio.hpp \ + /usr/include/opencv4/opencv2/imgproc.hpp \ + /usr/include/opencv4/opencv2/ml.hpp \ + /usr/include/opencv4/opencv2/ml/ml.inl.hpp \ + /usr/include/opencv4/opencv2/objdetect.hpp \ + /usr/include/opencv4/opencv2/objdetect/detection_based_tracker.hpp \ + /usr/include/opencv4/opencv2/photo.hpp \ + /usr/include/opencv4/opencv2/stitching.hpp \ + /usr/include/opencv4/opencv2/stitching/warpers.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/warpers.hpp \ + /usr/include/opencv4/opencv2/core/cuda.hpp \ + /usr/include/opencv4/opencv2/core/cuda_types.hpp \ + /usr/include/opencv4/opencv2/core/cuda.inl.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/warpers_inl.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/matchers.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/motion_estimators.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/util.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/util_inl.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/camera.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/exposure_compensate.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/seam_finders.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/blenders.hpp \ + /usr/include/opencv4/opencv2/video.hpp \ + /usr/include/opencv4/opencv2/video/tracking.hpp \ + /usr/include/opencv4/opencv2/video/background_segm.hpp \ + thread.h \ + camera.h \ + /opt/MVS/include/MvCameraControl.h \ + /opt/MVS/include/MvErrorDefine.h \ + /opt/MVS/include/CameraParams.h \ + /opt/MVS/include/PixelType.h \ + correct.h \ + initwidget.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp + +widget.o: widget.cpp widget.h \ + passwddialog.h \ + modifypasswdialog.h \ + /usr/include/opencv4/opencv2/opencv.hpp \ + /usr/include/opencv4/opencv2/opencv_modules.hpp \ + /usr/include/opencv4/opencv2/core.hpp \ + /usr/include/opencv4/opencv2/core/cvdef.h \ + /usr/include/opencv4/opencv2/core/hal/interface.h \ + /usr/include/opencv4/opencv2/core/cv_cpu_dispatch.h \ + /usr/include/opencv4/opencv2/core/cv_cpu_helper.h \ + /usr/include/opencv4/opencv2/core/fast_math.hpp \ + /usr/include/opencv4/opencv2/core/version.hpp \ + /usr/include/opencv4/opencv2/core/base.hpp \ + /usr/include/opencv4/opencv2/core/cvstd.hpp \ + /usr/include/opencv4/opencv2/core/cvstd_wrapper.hpp \ + /usr/include/opencv4/opencv2/core/neon_utils.hpp \ + /usr/include/opencv4/opencv2/core/vsx_utils.hpp \ + /usr/include/opencv4/opencv2/core/check.hpp \ + /usr/include/opencv4/opencv2/core/traits.hpp \ + /usr/include/opencv4/opencv2/core/matx.hpp \ + /usr/include/opencv4/opencv2/core/saturate.hpp \ + /usr/include/opencv4/opencv2/core/types.hpp \ + /usr/include/opencv4/opencv2/core/mat.hpp \ + /usr/include/opencv4/opencv2/core/bufferpool.hpp \ + /usr/include/opencv4/opencv2/core/mat.inl.hpp \ + /usr/include/opencv4/opencv2/core/persistence.hpp \ + /usr/include/opencv4/opencv2/core/operations.hpp \ + /usr/include/opencv4/opencv2/core/cvstd.inl.hpp \ + /usr/include/opencv4/opencv2/core/utility.hpp \ + /usr/include/opencv4/opencv2/core/optim.hpp \ + /usr/include/opencv4/opencv2/core/ovx.hpp \ + /usr/include/opencv4/opencv2/calib3d.hpp \ + /usr/include/opencv4/opencv2/features2d.hpp \ + /usr/include/opencv4/opencv2/flann/miniflann.hpp \ + /usr/include/opencv4/opencv2/flann/defines.h \ + /usr/include/opencv4/opencv2/flann/config.h \ + /usr/include/opencv4/opencv2/core/affine.hpp \ + /usr/include/opencv4/opencv2/dnn.hpp \ + /usr/include/opencv4/opencv2/dnn/dnn.hpp \ + /usr/include/opencv4/opencv2/core/async.hpp \ + /usr/include/opencv4/opencv2/dnn/version.hpp \ + /usr/include/opencv4/opencv2/dnn/dict.hpp \ + /usr/include/opencv4/opencv2/dnn/layer.hpp \ + /usr/include/opencv4/opencv2/dnn/dnn.inl.hpp \ + /usr/include/opencv4/opencv2/dnn/utils/inference_engine.hpp \ + /usr/include/opencv4/opencv2/flann.hpp \ + /usr/include/opencv4/opencv2/flann/flann_base.hpp \ + /usr/include/opencv4/opencv2/flann/general.h \ + /usr/include/opencv4/opencv2/flann/matrix.h \ + /usr/include/opencv4/opencv2/flann/params.h \ + /usr/include/opencv4/opencv2/flann/any.h \ + /usr/include/opencv4/opencv2/flann/saving.h \ + /usr/include/opencv4/opencv2/flann/nn_index.h \ + /usr/include/opencv4/opencv2/flann/result_set.h \ + /usr/include/opencv4/opencv2/flann/all_indices.h \ + /usr/include/opencv4/opencv2/flann/kdtree_index.h \ + /usr/include/opencv4/opencv2/flann/dynamic_bitset.h \ + /usr/include/opencv4/opencv2/flann/dist.h \ + /usr/include/opencv4/opencv2/flann/heap.h \ + /usr/include/opencv4/opencv2/flann/allocator.h \ + /usr/include/opencv4/opencv2/flann/random.h \ + /usr/include/opencv4/opencv2/flann/kdtree_single_index.h \ + /usr/include/opencv4/opencv2/flann/kmeans_index.h \ + /usr/include/opencv4/opencv2/flann/logger.h \ + /usr/include/opencv4/opencv2/flann/composite_index.h \ + /usr/include/opencv4/opencv2/flann/linear_index.h \ + /usr/include/opencv4/opencv2/flann/hierarchical_clustering_index.h \ + /usr/include/opencv4/opencv2/flann/lsh_index.h \ + /usr/include/opencv4/opencv2/flann/lsh_table.h \ + /usr/include/opencv4/opencv2/flann/autotuned_index.h \ + /usr/include/opencv4/opencv2/flann/ground_truth.h \ + /usr/include/opencv4/opencv2/flann/index_testing.h \ + /usr/include/opencv4/opencv2/flann/timer.h \ + /usr/include/opencv4/opencv2/flann/sampling.h \ + /usr/include/opencv4/opencv2/highgui.hpp \ + /usr/include/opencv4/opencv2/imgcodecs.hpp \ + /usr/include/opencv4/opencv2/videoio.hpp \ + /usr/include/opencv4/opencv2/imgproc.hpp \ + /usr/include/opencv4/opencv2/ml.hpp \ + /usr/include/opencv4/opencv2/ml/ml.inl.hpp \ + /usr/include/opencv4/opencv2/objdetect.hpp \ + /usr/include/opencv4/opencv2/objdetect/detection_based_tracker.hpp \ + /usr/include/opencv4/opencv2/photo.hpp \ + /usr/include/opencv4/opencv2/stitching.hpp \ + /usr/include/opencv4/opencv2/stitching/warpers.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/warpers.hpp \ + /usr/include/opencv4/opencv2/core/cuda.hpp \ + /usr/include/opencv4/opencv2/core/cuda_types.hpp \ + /usr/include/opencv4/opencv2/core/cuda.inl.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/warpers_inl.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/matchers.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/motion_estimators.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/util.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/util_inl.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/camera.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/exposure_compensate.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/seam_finders.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/blenders.hpp \ + /usr/include/opencv4/opencv2/video.hpp \ + /usr/include/opencv4/opencv2/video/tracking.hpp \ + /usr/include/opencv4/opencv2/video/background_segm.hpp \ + thread.h \ + camera.h \ + /opt/MVS/include/MvCameraControl.h \ + /opt/MVS/include/MvErrorDefine.h \ + /opt/MVS/include/CameraParams.h \ + /opt/MVS/include/PixelType.h \ + correct.h \ + ui_widget.h \ + /usr/include/opencv4/opencv2/imgproc/types_c.h \ + /usr/include/opencv4/opencv2/core/core_c.h \ + /usr/include/opencv4/opencv2/core/types_c.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o widget.o widget.cpp + +initwidget.o: initwidget.cpp initwidget.h \ + widget.h \ + passwddialog.h \ + modifypasswdialog.h \ + /usr/include/opencv4/opencv2/opencv.hpp \ + /usr/include/opencv4/opencv2/opencv_modules.hpp \ + /usr/include/opencv4/opencv2/core.hpp \ + /usr/include/opencv4/opencv2/core/cvdef.h \ + /usr/include/opencv4/opencv2/core/hal/interface.h \ + /usr/include/opencv4/opencv2/core/cv_cpu_dispatch.h \ + /usr/include/opencv4/opencv2/core/cv_cpu_helper.h \ + /usr/include/opencv4/opencv2/core/fast_math.hpp \ + /usr/include/opencv4/opencv2/core/version.hpp \ + /usr/include/opencv4/opencv2/core/base.hpp \ + /usr/include/opencv4/opencv2/core/cvstd.hpp \ + /usr/include/opencv4/opencv2/core/cvstd_wrapper.hpp \ + /usr/include/opencv4/opencv2/core/neon_utils.hpp \ + /usr/include/opencv4/opencv2/core/vsx_utils.hpp \ + /usr/include/opencv4/opencv2/core/check.hpp \ + /usr/include/opencv4/opencv2/core/traits.hpp \ + /usr/include/opencv4/opencv2/core/matx.hpp \ + /usr/include/opencv4/opencv2/core/saturate.hpp \ + /usr/include/opencv4/opencv2/core/types.hpp \ + /usr/include/opencv4/opencv2/core/mat.hpp \ + /usr/include/opencv4/opencv2/core/bufferpool.hpp \ + /usr/include/opencv4/opencv2/core/mat.inl.hpp \ + /usr/include/opencv4/opencv2/core/persistence.hpp \ + /usr/include/opencv4/opencv2/core/operations.hpp \ + /usr/include/opencv4/opencv2/core/cvstd.inl.hpp \ + /usr/include/opencv4/opencv2/core/utility.hpp \ + /usr/include/opencv4/opencv2/core/optim.hpp \ + /usr/include/opencv4/opencv2/core/ovx.hpp \ + /usr/include/opencv4/opencv2/calib3d.hpp \ + /usr/include/opencv4/opencv2/features2d.hpp \ + /usr/include/opencv4/opencv2/flann/miniflann.hpp \ + /usr/include/opencv4/opencv2/flann/defines.h \ + /usr/include/opencv4/opencv2/flann/config.h \ + /usr/include/opencv4/opencv2/core/affine.hpp \ + /usr/include/opencv4/opencv2/dnn.hpp \ + /usr/include/opencv4/opencv2/dnn/dnn.hpp \ + /usr/include/opencv4/opencv2/core/async.hpp \ + /usr/include/opencv4/opencv2/dnn/version.hpp \ + /usr/include/opencv4/opencv2/dnn/dict.hpp \ + /usr/include/opencv4/opencv2/dnn/layer.hpp \ + /usr/include/opencv4/opencv2/dnn/dnn.inl.hpp \ + /usr/include/opencv4/opencv2/dnn/utils/inference_engine.hpp \ + /usr/include/opencv4/opencv2/flann.hpp \ + /usr/include/opencv4/opencv2/flann/flann_base.hpp \ + /usr/include/opencv4/opencv2/flann/general.h \ + /usr/include/opencv4/opencv2/flann/matrix.h \ + /usr/include/opencv4/opencv2/flann/params.h \ + /usr/include/opencv4/opencv2/flann/any.h \ + /usr/include/opencv4/opencv2/flann/saving.h \ + /usr/include/opencv4/opencv2/flann/nn_index.h \ + /usr/include/opencv4/opencv2/flann/result_set.h \ + /usr/include/opencv4/opencv2/flann/all_indices.h \ + /usr/include/opencv4/opencv2/flann/kdtree_index.h \ + /usr/include/opencv4/opencv2/flann/dynamic_bitset.h \ + /usr/include/opencv4/opencv2/flann/dist.h \ + /usr/include/opencv4/opencv2/flann/heap.h \ + /usr/include/opencv4/opencv2/flann/allocator.h \ + /usr/include/opencv4/opencv2/flann/random.h \ + /usr/include/opencv4/opencv2/flann/kdtree_single_index.h \ + /usr/include/opencv4/opencv2/flann/kmeans_index.h \ + /usr/include/opencv4/opencv2/flann/logger.h \ + /usr/include/opencv4/opencv2/flann/composite_index.h \ + /usr/include/opencv4/opencv2/flann/linear_index.h \ + /usr/include/opencv4/opencv2/flann/hierarchical_clustering_index.h \ + /usr/include/opencv4/opencv2/flann/lsh_index.h \ + /usr/include/opencv4/opencv2/flann/lsh_table.h \ + /usr/include/opencv4/opencv2/flann/autotuned_index.h \ + /usr/include/opencv4/opencv2/flann/ground_truth.h \ + /usr/include/opencv4/opencv2/flann/index_testing.h \ + /usr/include/opencv4/opencv2/flann/timer.h \ + /usr/include/opencv4/opencv2/flann/sampling.h \ + /usr/include/opencv4/opencv2/highgui.hpp \ + /usr/include/opencv4/opencv2/imgcodecs.hpp \ + /usr/include/opencv4/opencv2/videoio.hpp \ + /usr/include/opencv4/opencv2/imgproc.hpp \ + /usr/include/opencv4/opencv2/ml.hpp \ + /usr/include/opencv4/opencv2/ml/ml.inl.hpp \ + /usr/include/opencv4/opencv2/objdetect.hpp \ + /usr/include/opencv4/opencv2/objdetect/detection_based_tracker.hpp \ + /usr/include/opencv4/opencv2/photo.hpp \ + /usr/include/opencv4/opencv2/stitching.hpp \ + /usr/include/opencv4/opencv2/stitching/warpers.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/warpers.hpp \ + /usr/include/opencv4/opencv2/core/cuda.hpp \ + /usr/include/opencv4/opencv2/core/cuda_types.hpp \ + /usr/include/opencv4/opencv2/core/cuda.inl.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/warpers_inl.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/matchers.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/motion_estimators.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/util.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/util_inl.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/camera.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/exposure_compensate.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/seam_finders.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/blenders.hpp \ + /usr/include/opencv4/opencv2/video.hpp \ + /usr/include/opencv4/opencv2/video/tracking.hpp \ + /usr/include/opencv4/opencv2/video/background_segm.hpp \ + thread.h \ + camera.h \ + /opt/MVS/include/MvCameraControl.h \ + /opt/MVS/include/MvErrorDefine.h \ + /opt/MVS/include/CameraParams.h \ + /opt/MVS/include/PixelType.h \ + correct.h \ + ui_initwidget.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o initwidget.o initwidget.cpp + +passwddialog.o: passwddialog.cpp passwddialog.h \ + ui_passwddialog.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o passwddialog.o passwddialog.cpp + +camera.o: camera.cpp camera.h \ + /opt/MVS/include/MvCameraControl.h \ + /opt/MVS/include/MvErrorDefine.h \ + /opt/MVS/include/CameraParams.h \ + /opt/MVS/include/PixelType.h \ + thread.h \ + /usr/include/opencv4/opencv2/opencv.hpp \ + /usr/include/opencv4/opencv2/opencv_modules.hpp \ + /usr/include/opencv4/opencv2/core.hpp \ + /usr/include/opencv4/opencv2/core/cvdef.h \ + /usr/include/opencv4/opencv2/core/hal/interface.h \ + /usr/include/opencv4/opencv2/core/cv_cpu_dispatch.h \ + /usr/include/opencv4/opencv2/core/cv_cpu_helper.h \ + /usr/include/opencv4/opencv2/core/fast_math.hpp \ + /usr/include/opencv4/opencv2/core/version.hpp \ + /usr/include/opencv4/opencv2/core/base.hpp \ + /usr/include/opencv4/opencv2/core/cvstd.hpp \ + /usr/include/opencv4/opencv2/core/cvstd_wrapper.hpp \ + /usr/include/opencv4/opencv2/core/neon_utils.hpp \ + /usr/include/opencv4/opencv2/core/vsx_utils.hpp \ + /usr/include/opencv4/opencv2/core/check.hpp \ + /usr/include/opencv4/opencv2/core/traits.hpp \ + /usr/include/opencv4/opencv2/core/matx.hpp \ + /usr/include/opencv4/opencv2/core/saturate.hpp \ + /usr/include/opencv4/opencv2/core/types.hpp \ + /usr/include/opencv4/opencv2/core/mat.hpp \ + /usr/include/opencv4/opencv2/core/bufferpool.hpp \ + /usr/include/opencv4/opencv2/core/mat.inl.hpp \ + /usr/include/opencv4/opencv2/core/persistence.hpp \ + /usr/include/opencv4/opencv2/core/operations.hpp \ + /usr/include/opencv4/opencv2/core/cvstd.inl.hpp \ + /usr/include/opencv4/opencv2/core/utility.hpp \ + /usr/include/opencv4/opencv2/core/optim.hpp \ + /usr/include/opencv4/opencv2/core/ovx.hpp \ + /usr/include/opencv4/opencv2/calib3d.hpp \ + /usr/include/opencv4/opencv2/features2d.hpp \ + /usr/include/opencv4/opencv2/flann/miniflann.hpp \ + /usr/include/opencv4/opencv2/flann/defines.h \ + /usr/include/opencv4/opencv2/flann/config.h \ + /usr/include/opencv4/opencv2/core/affine.hpp \ + /usr/include/opencv4/opencv2/dnn.hpp \ + /usr/include/opencv4/opencv2/dnn/dnn.hpp \ + /usr/include/opencv4/opencv2/core/async.hpp \ + /usr/include/opencv4/opencv2/dnn/version.hpp \ + /usr/include/opencv4/opencv2/dnn/dict.hpp \ + /usr/include/opencv4/opencv2/dnn/layer.hpp \ + /usr/include/opencv4/opencv2/dnn/dnn.inl.hpp \ + /usr/include/opencv4/opencv2/dnn/utils/inference_engine.hpp \ + /usr/include/opencv4/opencv2/flann.hpp \ + /usr/include/opencv4/opencv2/flann/flann_base.hpp \ + /usr/include/opencv4/opencv2/flann/general.h \ + /usr/include/opencv4/opencv2/flann/matrix.h \ + /usr/include/opencv4/opencv2/flann/params.h \ + /usr/include/opencv4/opencv2/flann/any.h \ + /usr/include/opencv4/opencv2/flann/saving.h \ + /usr/include/opencv4/opencv2/flann/nn_index.h \ + /usr/include/opencv4/opencv2/flann/result_set.h \ + /usr/include/opencv4/opencv2/flann/all_indices.h \ + /usr/include/opencv4/opencv2/flann/kdtree_index.h \ + /usr/include/opencv4/opencv2/flann/dynamic_bitset.h \ + /usr/include/opencv4/opencv2/flann/dist.h \ + /usr/include/opencv4/opencv2/flann/heap.h \ + /usr/include/opencv4/opencv2/flann/allocator.h \ + /usr/include/opencv4/opencv2/flann/random.h \ + /usr/include/opencv4/opencv2/flann/kdtree_single_index.h \ + /usr/include/opencv4/opencv2/flann/kmeans_index.h \ + /usr/include/opencv4/opencv2/flann/logger.h \ + /usr/include/opencv4/opencv2/flann/composite_index.h \ + /usr/include/opencv4/opencv2/flann/linear_index.h \ + /usr/include/opencv4/opencv2/flann/hierarchical_clustering_index.h \ + /usr/include/opencv4/opencv2/flann/lsh_index.h \ + /usr/include/opencv4/opencv2/flann/lsh_table.h \ + /usr/include/opencv4/opencv2/flann/autotuned_index.h \ + /usr/include/opencv4/opencv2/flann/ground_truth.h \ + /usr/include/opencv4/opencv2/flann/index_testing.h \ + /usr/include/opencv4/opencv2/flann/timer.h \ + /usr/include/opencv4/opencv2/flann/sampling.h \ + /usr/include/opencv4/opencv2/highgui.hpp \ + /usr/include/opencv4/opencv2/imgcodecs.hpp \ + /usr/include/opencv4/opencv2/videoio.hpp \ + /usr/include/opencv4/opencv2/imgproc.hpp \ + /usr/include/opencv4/opencv2/ml.hpp \ + /usr/include/opencv4/opencv2/ml/ml.inl.hpp \ + /usr/include/opencv4/opencv2/objdetect.hpp \ + /usr/include/opencv4/opencv2/objdetect/detection_based_tracker.hpp \ + /usr/include/opencv4/opencv2/photo.hpp \ + /usr/include/opencv4/opencv2/stitching.hpp \ + /usr/include/opencv4/opencv2/stitching/warpers.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/warpers.hpp \ + /usr/include/opencv4/opencv2/core/cuda.hpp \ + /usr/include/opencv4/opencv2/core/cuda_types.hpp \ + /usr/include/opencv4/opencv2/core/cuda.inl.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/warpers_inl.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/matchers.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/motion_estimators.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/util.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/util_inl.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/camera.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/exposure_compensate.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/seam_finders.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/blenders.hpp \ + /usr/include/opencv4/opencv2/video.hpp \ + /usr/include/opencv4/opencv2/video/tracking.hpp \ + /usr/include/opencv4/opencv2/video/background_segm.hpp + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o camera.o camera.cpp + +thread.o: thread.cpp camera.h \ + /opt/MVS/include/MvCameraControl.h \ + /opt/MVS/include/MvErrorDefine.h \ + /opt/MVS/include/CameraParams.h \ + /opt/MVS/include/PixelType.h \ + thread.h \ + /usr/include/opencv4/opencv2/opencv.hpp \ + /usr/include/opencv4/opencv2/opencv_modules.hpp \ + /usr/include/opencv4/opencv2/core.hpp \ + /usr/include/opencv4/opencv2/core/cvdef.h \ + /usr/include/opencv4/opencv2/core/hal/interface.h \ + /usr/include/opencv4/opencv2/core/cv_cpu_dispatch.h \ + /usr/include/opencv4/opencv2/core/cv_cpu_helper.h \ + /usr/include/opencv4/opencv2/core/fast_math.hpp \ + /usr/include/opencv4/opencv2/core/version.hpp \ + /usr/include/opencv4/opencv2/core/base.hpp \ + /usr/include/opencv4/opencv2/core/cvstd.hpp \ + /usr/include/opencv4/opencv2/core/cvstd_wrapper.hpp \ + /usr/include/opencv4/opencv2/core/neon_utils.hpp \ + /usr/include/opencv4/opencv2/core/vsx_utils.hpp \ + /usr/include/opencv4/opencv2/core/check.hpp \ + /usr/include/opencv4/opencv2/core/traits.hpp \ + /usr/include/opencv4/opencv2/core/matx.hpp \ + /usr/include/opencv4/opencv2/core/saturate.hpp \ + /usr/include/opencv4/opencv2/core/types.hpp \ + /usr/include/opencv4/opencv2/core/mat.hpp \ + /usr/include/opencv4/opencv2/core/bufferpool.hpp \ + /usr/include/opencv4/opencv2/core/mat.inl.hpp \ + /usr/include/opencv4/opencv2/core/persistence.hpp \ + /usr/include/opencv4/opencv2/core/operations.hpp \ + /usr/include/opencv4/opencv2/core/cvstd.inl.hpp \ + /usr/include/opencv4/opencv2/core/utility.hpp \ + /usr/include/opencv4/opencv2/core/optim.hpp \ + /usr/include/opencv4/opencv2/core/ovx.hpp \ + /usr/include/opencv4/opencv2/calib3d.hpp \ + /usr/include/opencv4/opencv2/features2d.hpp \ + /usr/include/opencv4/opencv2/flann/miniflann.hpp \ + /usr/include/opencv4/opencv2/flann/defines.h \ + /usr/include/opencv4/opencv2/flann/config.h \ + /usr/include/opencv4/opencv2/core/affine.hpp \ + /usr/include/opencv4/opencv2/dnn.hpp \ + /usr/include/opencv4/opencv2/dnn/dnn.hpp \ + /usr/include/opencv4/opencv2/core/async.hpp \ + /usr/include/opencv4/opencv2/dnn/version.hpp \ + /usr/include/opencv4/opencv2/dnn/dict.hpp \ + /usr/include/opencv4/opencv2/dnn/layer.hpp \ + /usr/include/opencv4/opencv2/dnn/dnn.inl.hpp \ + /usr/include/opencv4/opencv2/dnn/utils/inference_engine.hpp \ + /usr/include/opencv4/opencv2/flann.hpp \ + /usr/include/opencv4/opencv2/flann/flann_base.hpp \ + /usr/include/opencv4/opencv2/flann/general.h \ + /usr/include/opencv4/opencv2/flann/matrix.h \ + /usr/include/opencv4/opencv2/flann/params.h \ + /usr/include/opencv4/opencv2/flann/any.h \ + /usr/include/opencv4/opencv2/flann/saving.h \ + /usr/include/opencv4/opencv2/flann/nn_index.h \ + /usr/include/opencv4/opencv2/flann/result_set.h \ + /usr/include/opencv4/opencv2/flann/all_indices.h \ + /usr/include/opencv4/opencv2/flann/kdtree_index.h \ + /usr/include/opencv4/opencv2/flann/dynamic_bitset.h \ + /usr/include/opencv4/opencv2/flann/dist.h \ + /usr/include/opencv4/opencv2/flann/heap.h \ + /usr/include/opencv4/opencv2/flann/allocator.h \ + /usr/include/opencv4/opencv2/flann/random.h \ + /usr/include/opencv4/opencv2/flann/kdtree_single_index.h \ + /usr/include/opencv4/opencv2/flann/kmeans_index.h \ + /usr/include/opencv4/opencv2/flann/logger.h \ + /usr/include/opencv4/opencv2/flann/composite_index.h \ + /usr/include/opencv4/opencv2/flann/linear_index.h \ + /usr/include/opencv4/opencv2/flann/hierarchical_clustering_index.h \ + /usr/include/opencv4/opencv2/flann/lsh_index.h \ + /usr/include/opencv4/opencv2/flann/lsh_table.h \ + /usr/include/opencv4/opencv2/flann/autotuned_index.h \ + /usr/include/opencv4/opencv2/flann/ground_truth.h \ + /usr/include/opencv4/opencv2/flann/index_testing.h \ + /usr/include/opencv4/opencv2/flann/timer.h \ + /usr/include/opencv4/opencv2/flann/sampling.h \ + /usr/include/opencv4/opencv2/highgui.hpp \ + /usr/include/opencv4/opencv2/imgcodecs.hpp \ + /usr/include/opencv4/opencv2/videoio.hpp \ + /usr/include/opencv4/opencv2/imgproc.hpp \ + /usr/include/opencv4/opencv2/ml.hpp \ + /usr/include/opencv4/opencv2/ml/ml.inl.hpp \ + /usr/include/opencv4/opencv2/objdetect.hpp \ + /usr/include/opencv4/opencv2/objdetect/detection_based_tracker.hpp \ + /usr/include/opencv4/opencv2/photo.hpp \ + /usr/include/opencv4/opencv2/stitching.hpp \ + /usr/include/opencv4/opencv2/stitching/warpers.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/warpers.hpp \ + /usr/include/opencv4/opencv2/core/cuda.hpp \ + /usr/include/opencv4/opencv2/core/cuda_types.hpp \ + /usr/include/opencv4/opencv2/core/cuda.inl.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/warpers_inl.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/matchers.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/motion_estimators.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/util.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/util_inl.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/camera.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/exposure_compensate.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/seam_finders.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/blenders.hpp \ + /usr/include/opencv4/opencv2/video.hpp \ + /usr/include/opencv4/opencv2/video/tracking.hpp \ + /usr/include/opencv4/opencv2/video/background_segm.hpp + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o thread.o thread.cpp + +correct.o: correct.cpp correct.h \ + /usr/include/opencv4/opencv2/opencv.hpp \ + /usr/include/opencv4/opencv2/opencv_modules.hpp \ + /usr/include/opencv4/opencv2/core.hpp \ + /usr/include/opencv4/opencv2/core/cvdef.h \ + /usr/include/opencv4/opencv2/core/hal/interface.h \ + /usr/include/opencv4/opencv2/core/cv_cpu_dispatch.h \ + /usr/include/opencv4/opencv2/core/cv_cpu_helper.h \ + /usr/include/opencv4/opencv2/core/fast_math.hpp \ + /usr/include/opencv4/opencv2/core/version.hpp \ + /usr/include/opencv4/opencv2/core/base.hpp \ + /usr/include/opencv4/opencv2/core/cvstd.hpp \ + /usr/include/opencv4/opencv2/core/cvstd_wrapper.hpp \ + /usr/include/opencv4/opencv2/core/neon_utils.hpp \ + /usr/include/opencv4/opencv2/core/vsx_utils.hpp \ + /usr/include/opencv4/opencv2/core/check.hpp \ + /usr/include/opencv4/opencv2/core/traits.hpp \ + /usr/include/opencv4/opencv2/core/matx.hpp \ + /usr/include/opencv4/opencv2/core/saturate.hpp \ + /usr/include/opencv4/opencv2/core/types.hpp \ + /usr/include/opencv4/opencv2/core/mat.hpp \ + /usr/include/opencv4/opencv2/core/bufferpool.hpp \ + /usr/include/opencv4/opencv2/core/mat.inl.hpp \ + /usr/include/opencv4/opencv2/core/persistence.hpp \ + /usr/include/opencv4/opencv2/core/operations.hpp \ + /usr/include/opencv4/opencv2/core/cvstd.inl.hpp \ + /usr/include/opencv4/opencv2/core/utility.hpp \ + /usr/include/opencv4/opencv2/core/optim.hpp \ + /usr/include/opencv4/opencv2/core/ovx.hpp \ + /usr/include/opencv4/opencv2/calib3d.hpp \ + /usr/include/opencv4/opencv2/features2d.hpp \ + /usr/include/opencv4/opencv2/flann/miniflann.hpp \ + /usr/include/opencv4/opencv2/flann/defines.h \ + /usr/include/opencv4/opencv2/flann/config.h \ + /usr/include/opencv4/opencv2/core/affine.hpp \ + /usr/include/opencv4/opencv2/dnn.hpp \ + /usr/include/opencv4/opencv2/dnn/dnn.hpp \ + /usr/include/opencv4/opencv2/core/async.hpp \ + /usr/include/opencv4/opencv2/dnn/version.hpp \ + /usr/include/opencv4/opencv2/dnn/dict.hpp \ + /usr/include/opencv4/opencv2/dnn/layer.hpp \ + /usr/include/opencv4/opencv2/dnn/dnn.inl.hpp \ + /usr/include/opencv4/opencv2/dnn/utils/inference_engine.hpp \ + /usr/include/opencv4/opencv2/flann.hpp \ + /usr/include/opencv4/opencv2/flann/flann_base.hpp \ + /usr/include/opencv4/opencv2/flann/general.h \ + /usr/include/opencv4/opencv2/flann/matrix.h \ + /usr/include/opencv4/opencv2/flann/params.h \ + /usr/include/opencv4/opencv2/flann/any.h \ + /usr/include/opencv4/opencv2/flann/saving.h \ + /usr/include/opencv4/opencv2/flann/nn_index.h \ + /usr/include/opencv4/opencv2/flann/result_set.h \ + /usr/include/opencv4/opencv2/flann/all_indices.h \ + /usr/include/opencv4/opencv2/flann/kdtree_index.h \ + /usr/include/opencv4/opencv2/flann/dynamic_bitset.h \ + /usr/include/opencv4/opencv2/flann/dist.h \ + /usr/include/opencv4/opencv2/flann/heap.h \ + /usr/include/opencv4/opencv2/flann/allocator.h \ + /usr/include/opencv4/opencv2/flann/random.h \ + /usr/include/opencv4/opencv2/flann/kdtree_single_index.h \ + /usr/include/opencv4/opencv2/flann/kmeans_index.h \ + /usr/include/opencv4/opencv2/flann/logger.h \ + /usr/include/opencv4/opencv2/flann/composite_index.h \ + /usr/include/opencv4/opencv2/flann/linear_index.h \ + /usr/include/opencv4/opencv2/flann/hierarchical_clustering_index.h \ + /usr/include/opencv4/opencv2/flann/lsh_index.h \ + /usr/include/opencv4/opencv2/flann/lsh_table.h \ + /usr/include/opencv4/opencv2/flann/autotuned_index.h \ + /usr/include/opencv4/opencv2/flann/ground_truth.h \ + /usr/include/opencv4/opencv2/flann/index_testing.h \ + /usr/include/opencv4/opencv2/flann/timer.h \ + /usr/include/opencv4/opencv2/flann/sampling.h \ + /usr/include/opencv4/opencv2/highgui.hpp \ + /usr/include/opencv4/opencv2/imgcodecs.hpp \ + /usr/include/opencv4/opencv2/videoio.hpp \ + /usr/include/opencv4/opencv2/imgproc.hpp \ + /usr/include/opencv4/opencv2/ml.hpp \ + /usr/include/opencv4/opencv2/ml/ml.inl.hpp \ + /usr/include/opencv4/opencv2/objdetect.hpp \ + /usr/include/opencv4/opencv2/objdetect/detection_based_tracker.hpp \ + /usr/include/opencv4/opencv2/photo.hpp \ + /usr/include/opencv4/opencv2/stitching.hpp \ + /usr/include/opencv4/opencv2/stitching/warpers.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/warpers.hpp \ + /usr/include/opencv4/opencv2/core/cuda.hpp \ + /usr/include/opencv4/opencv2/core/cuda_types.hpp \ + /usr/include/opencv4/opencv2/core/cuda.inl.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/warpers_inl.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/matchers.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/motion_estimators.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/util.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/util_inl.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/camera.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/exposure_compensate.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/seam_finders.hpp \ + /usr/include/opencv4/opencv2/stitching/detail/blenders.hpp \ + /usr/include/opencv4/opencv2/video.hpp \ + /usr/include/opencv4/opencv2/video/tracking.hpp \ + /usr/include/opencv4/opencv2/video/background_segm.hpp + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o correct.o correct.cpp + +modifypasswdialog.o: modifypasswdialog.cpp modifypasswdialog.h \ + ui_modifypasswdialog.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o modifypasswdialog.o modifypasswdialog.cpp + +moc_widget.o: moc_widget.cpp + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_widget.o moc_widget.cpp + +moc_initwidget.o: moc_initwidget.cpp + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_initwidget.o moc_initwidget.cpp + +moc_passwddialog.o: moc_passwddialog.cpp + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_passwddialog.o moc_passwddialog.cpp + +moc_thread.o: moc_thread.cpp + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_thread.o moc_thread.cpp + +moc_modifypasswdialog.o: moc_modifypasswdialog.cpp + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_modifypasswdialog.o moc_modifypasswdialog.cpp + +####### Install + +install: FORCE + +uninstall: FORCE + +FORCE: + diff --git a/camera.cpp b/camera.cpp new file mode 100644 index 0000000..a099824 --- /dev/null +++ b/camera.cpp @@ -0,0 +1,467 @@ +#include "camera.h" +#include +#include "thread.h" + +void __stdcall onImageDataCallBackFunc(unsigned char * pData, MV_FRAME_OUT_INFO_EX* pFrameInfo, void* pUser); +void __stdcall onOfflineCallBackFunc(unsigned int nMsgType, void* pUser); + +Camera::Camera() +{ + camera_handle = NULL; + + memset(&camera_param, 0, sizeof(camera_param)); + camera_param.exposure_time = 10000.00; + camera_param.white_balance_ratio = 1000; + camera_param.gain = 1.0; + memset(&device_list, 0, sizeof(device_list)); +} + +uint32_t Camera::enum_device() +{ + int ret = MV_CC_EnumDevices(MV_GIGE_DEVICE | MV_USB_DEVICE, &device_list); + if(ret != MV_OK) + { + return -1; + } + + return device_list.nDeviceNum; +} + + +bool Camera::print_device_info() +{ + for(int i =0; i < device_list.nDeviceNum; i++) + { + MV_CC_DEVICE_INFO* device_info = device_list.pDeviceInfo[i]; + if(device_info == NULL) + { + qDebug()<<"device info:"<nTLayerType == MV_GIGE_DEVICE) + { + int nIp1 = ((device_info->SpecialInfo.stGigEInfo.nCurrentIp & 0xff000000) >> 24); + int nIp2 = ((device_info->SpecialInfo.stGigEInfo.nCurrentIp & 0x00ff0000) >> 16); + int nIp3 = ((device_info->SpecialInfo.stGigEInfo.nCurrentIp & 0x0000ff00) >> 8); + int nIp4 = (device_info->SpecialInfo.stGigEInfo.nCurrentIp & 0x000000ff); + + qDebug()<<"Device index" << i; + qDebug()<<"Device Model Name: " << device_info->SpecialInfo.stGigEInfo.chModelName; + qDebug()<<"CurrentIp: " << nIp1 << "." << nIp2 << "." << nIp3 << "." << nIp4; + qDebug()<<"UserDefinedName: " << device_info->SpecialInfo.stGigEInfo.chUserDefinedName; + + } + else if (device_info->nTLayerType == MV_USB_DEVICE) + { + qDebug()<<"Device Model Name:" << device_info->SpecialInfo.stUsb3VInfo.chModelName; + qDebug()<<"UserDefinedName: " << device_info->SpecialInfo.stUsb3VInfo.chUserDefinedName; + } + else + { + qDebug()<<"Not support"; + } + } + + return true; +} + +bool Camera::select_device(int device_index) +{ + int ret = MV_CC_CreateHandle(&camera_handle, device_list.pDeviceInfo[device_index]); + if(ret != MV_OK) + { + return false; + } + + return true; +} + + +bool Camera::open_camera() +{ + int ret = MV_CC_OpenDevice(camera_handle); + if(ret != MV_OK) + { + return false; + } + + return true; +} + + +bool Camera::register_image_callback(imageCallbackFunc onImageDataCallBackFunc) +{ + int ret = MV_CC_RegisterImageCallBackForBGR(camera_handle, onImageDataCallBackFunc, NULL); + if (MV_OK != ret) + { + return false; + } + return true; +} + +bool Camera::register_offline_callback(exceptionCallbackFunc onOfflineCallBackFunc) +{ + int nRet = MV_CC_RegisterExceptionCallBack(camera_handle, onOfflineCallBackFunc, NULL); + if (MV_OK != nRet) + { + return false; + } + return true; +} + +bool Camera::start_capture() +{ + int ret = MV_CC_StartGrabbing(camera_handle); + if (MV_OK != ret) + { + return false; + } + return true; +} + +bool Camera::stop_capture() +{ + int ret = MV_CC_StopGrabbing(camera_handle); + if (MV_OK != ret) + { + return false; + } + return true; +} + + +bool Camera::set_acquisition_mode() +{ + int ret = MV_CC_SetEnumValue(camera_handle, "TriggerMode", 1); + if(MV_OK != ret) + { + return false; + } + + ret = MV_CC_SetEnumValue(camera_handle, "TriggerSource", 2); + if(MV_OK != ret) + { + return false; + } + + ret = MV_CC_SetEnumValue(camera_handle, "TriggerActivation", 1); + if(MV_OK != ret) + { + return false; + } + + ret = MV_CC_SetEnumValue(camera_handle, "AcquisitionMode", 2); + if(MV_OK != ret) + { + return false; + } + + return true; +} + + +bool Camera::set_test_acquisition_mode() +{ + int ret = MV_CC_SetEnumValue(camera_handle, "TriggerMode", 0); + if(MV_OK != ret) + { + return false; + } + + ret = MV_CC_SetEnumValue(camera_handle, "AcquisitionMode", 2); + if(MV_OK != ret) + { + return false; + } + + return true; +} + + +bool Camera::set_ROI(int offset_x, int offset_y, int width, int height) +{ + roi_offset_x = offset_x; + roi_offset_y = offset_y; + roi_width = width; + roi_height = height; + + int ret = MV_CC_SetIntValue(camera_handle, "OffsetX", 0); + if(MV_OK != ret) + { + return false; + } + + ret = MV_CC_SetIntValue(camera_handle, "OffsetY", 0); + if(MV_OK != ret) + { + return false; + } + + + ret = MV_CC_SetIntValue(camera_handle, "Width", roi_width); + if(MV_OK != ret) + { + return false; + } + + ret = MV_CC_SetIntValue(camera_handle, "Height", roi_height); + if(MV_OK != ret) + { + return false; + } + + ret = MV_CC_SetIntValue(camera_handle, "OffsetX", roi_offset_x); + if(MV_OK != ret) + { + return false; + } + + ret = MV_CC_SetIntValue(camera_handle, "OffsetY", roi_offset_y); + if(MV_OK != ret) + { + return false; + } + + return true; +} + + + + + +bool Camera::close_camera() +{ + int ret = MV_CC_CloseDevice(camera_handle); + if (MV_OK != ret) + { + return false; + } + + return true; +} + +bool Camera::destroy_handle() +{ + int ret = MV_CC_DestroyHandle(camera_handle); + if (MV_OK != ret) + { + return false; + } + + return true; +} + + +bool Camera::import_config_file() +{ + int ret = MV_CC_FeatureLoad(camera_handle, CAMERA_CONFIG_PATH); + if(ret != MV_OK) + { + return false; + } + return true; +} + + +bool Camera::save_config_file() +{ + int ret = MV_CC_FeatureSave(camera_handle, CAMERA_CONFIG_PATH); + if(ret != MV_OK) + { + return false; + } + return true; +} + + +bool Camera::set_param(Camera_param param_struct) +{ + camera_param = param_struct; + int ret = MV_CC_SetIntValue(camera_handle, "BalanceRatio", camera_param.white_balance_ratio); + if (ret != MV_OK) + { + qDebug()<<"white balance ration set failed"; + return false; + } + + ret = MV_CC_SetFloatValue(camera_handle, "ExposureTime", camera_param.exposure_time); + if(ret != MV_OK) + { + qDebug()<<"exposure time set failed"; + return false; + } + + ret = MV_CC_SetFloatValue(camera_handle, "Gain", camera_param.gain); + if(ret != MV_OK) + { + qDebug()<<"gain set failed"; + return false; + } + + return true; +} + + +Camera_param Camera::get_param() +{ + MVCC_INTVALUE BalanceRatio = {0}; + int ret = MV_CC_GetIntValue(camera_handle, "BalanceRatio", &BalanceRatio); + if (ret == MV_OK) + { + camera_param.white_balance_ratio = BalanceRatio.nCurValue; + } + else + { + qDebug()<<"get white balance ratio failed"; + } + + + MVCC_FLOATVALUE ExposureTime = {0}; + ret = MV_CC_GetFloatValue(camera_handle, "ExposureTime", &ExposureTime); + if(ret == MV_OK) + { + camera_param.exposure_time = ExposureTime.fCurValue; + } + else + { + qDebug()<<"get exposure time failed"; + } + + MVCC_FLOATVALUE Gain = {0}; + ret = MV_CC_GetFloatValue(camera_handle, "Gain", &Gain); + if(ret == MV_OK) + { + camera_param.gain = Gain.fCurValue; + } + else + { + qDebug()<<"get gain failed"; + } + +#if 1 + qDebug()<< camera_param.white_balance_ratio; + qDebug()< + + + + + EnvironmentId + {f40858e6-f94a-4d17-9db8-96ef47726f77} + + + ProjectExplorer.Project.ActiveTarget + 0 + + + ProjectExplorer.Project.EditorSettings + + true + false + true + + Cpp + + CppGlobal + + + + QmlJS + + QmlJSGlobal + + + 2 + UTF-8 + false + 4 + false + 80 + true + true + 1 + true + false + 0 + true + true + 0 + 8 + true + 1 + true + true + true + false + + + + ProjectExplorer.Project.PluginSettings + + + + ProjectExplorer.Project.Target.0 + + Desktop + Desktop + {8fde18c1-a446-458e-9f45-046b48cb1bad} + 0 + 0 + 0 + + /home/nvidia/CandyProject/candy + + + true + qmake + + QtProjectManager.QMakeBuildStep + false + + false + false + false + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Release + + Qt4ProjectManager.Qt4BuildConfiguration + 0 + true + + 1 + + + 0 + Deploy + + ProjectExplorer.BuildSteps.Deploy + + 1 + Deploy locally + + ProjectExplorer.DefaultDeployConfiguration + + 1 + + + false + false + 1000 + + true + + false + false + false + false + true + 0.01 + 10 + true + 1 + 25 + + 1 + true + false + true + valgrind + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + + 2 + + candy + + Qt4ProjectManager.Qt4RunConfiguration:/home/nvidia/CandyProject/candy/candy.pro + true + + candy.pro + false + + /home/nvidia/CandyProject/candy + 3768 + false + true + false + false + true + + 1 + + + + ProjectExplorer.Project.TargetCount + 1 + + + ProjectExplorer.Project.Updater.FileVersion + 18 + + + Version + 18 + + diff --git a/ccc.mfs b/ccc.mfs new file mode 100644 index 0000000..3f68df2 --- /dev/null +++ b/ccc.mfs @@ -0,0 +1,253 @@ +# {05D8C294-F295-4dfb-9D01-096BD04049F4} +# GenApi persistence file (version 3.0.0) +# Device = HIKROBOT::HIKCamera -- HIKROBOT GigE Vision Camera Interface -- Device version = 1.2.0 -- Product GUID = EE4B7E09-DA29-4956-A1EC-212263331CFC -- Product version GUID = 79ace398-62e3-44a6-8845-f81aaf104382 +DeviceLinkSelector 0 +DeviceLinkHeartbeatMode On +DeviceLinkSelector 0 +DeviceStreamChannelSelector 0 +DeviceStreamChannelPacketSize 1500 +DeviceStreamChannelSelector 0 +RegionSelector Region0 +RegionDestination Stream0 +RegionSelector Region0 +RegionSelector Region0 +Width 2376 +RegionSelector Region0 +RegionSelector Region0 +Height 584 +RegionSelector Region0 +RegionSelector Region0 +OffsetX 72 +RegionSelector Region0 +RegionSelector Region0 +OffsetY 700 +RegionSelector Region0 +ReverseX 0 +ReverseY 0 +PixelFormat BayerRG8 +TestPatternGeneratorSelector Region0 +TestPatternGeneratorSelector Region0 +TestPattern Off +TestPatternGeneratorSelector Region0 +BinningSelector Region0 +BinningSelector Region0 +BinningHorizontal BinningHorizontal1 +BinningSelector Region0 +BinningSelector Region0 +BinningVertical BinningVertical1 +BinningSelector Region0 +DecimationHorizontal DecimationHorizontal1 +DecimationVertical DecimationVertical1 +FrameSpecInfoSelector Timestamp +FrameSpecInfoSelector Timestamp +FrameSpecInfo 0 +FrameSpecInfoSelector Gain +FrameSpecInfo 0 +FrameSpecInfoSelector Exposure +FrameSpecInfo 0 +FrameSpecInfoSelector BrightnessInfo +FrameSpecInfo 0 +FrameSpecInfoSelector WhiteBalance +FrameSpecInfo 0 +FrameSpecInfoSelector Framecounter +FrameSpecInfo 0 +FrameSpecInfoSelector ExtTriggerCount +FrameSpecInfo 0 +FrameSpecInfoSelector LineInputOutput +FrameSpecInfo 0 +FrameSpecInfoSelector ROIPosition +FrameSpecInfo 0 +FrameSpecInfoSelector Timestamp +AcquisitionMode Continuous +AcquisitionBurstFrameCount 1 +AcquisitionFrameRate 11.57 +AcquisitionFrameRateEnable 1 +TriggerSelector FrameBurstStart +TriggerSelector FrameBurstStart +TriggerMode On +TriggerSelector FrameBurstStart +TriggerSelector FrameBurstStart +TriggerSource Line2 +TriggerSelector FrameBurstStart +TriggerSelector FrameBurstStart +TriggerActivation FallingEdge +TriggerSelector FrameBurstStart +TriggerSelector FrameBurstStart +TriggerDelay 0 +TriggerSelector FrameBurstStart +TriggerCacheEnable 0 +ExposureMode Timed +ExposureTimeMode Standard +ExposureTime 1800 +ExposureAuto Off +AutoExposureTimeLowerLimit 15 +AutoExposureTimeUpperLimit 85930 +HDREnable 0 +HDRSelector 0 +HDRSelector 0 +HDRShutter 15 +HDRSelector 1 +HDRShutter 15 +HDRSelector 2 +HDRShutter 15 +HDRSelector 3 +HDRShutter 15 +HDRSelector 0 +HDRSelector 0 +HDRGain 0 +HDRSelector 1 +HDRGain 0 +HDRSelector 2 +HDRGain 0 +HDRSelector 3 +HDRGain 0 +HDRSelector 0 +LineSelector Line0 +LineSelector Line1 +LineMode Strobe +LineSelector Line0 +LineSelector Line1 +LineInverter 0 +LineSelector Line0 +LineSelector Line1 +LineSource ExposureStartActive +LineSelector Line0 +LineSelector Line1 +StrobeEnable 0 +LineSelector Line0 +LineSelector Line0 +LineDebouncerTime 100 +LineSelector Line2 +LineDebouncerTime 50 +LineSelector Line0 +LineSelector Line1 +StrobeLineDuration 0 +LineSelector Line0 +LineSelector Line1 +StrobeLineDelay 0 +LineSelector Line0 +LineSelector Line1 +StrobeLinePreDelay 0 +LineSelector Line0 +ActionDeviceKey 0 +ActionSelector 0 +ActionSelector 0 +ActionGroupMask 0 +ActionSelector 0 +ActionSelector 0 +ActionGroupKey 0 +ActionSelector 0 +CounterSelector Counter0 +CounterSelector Counter0 +CounterEventSource Off +CounterSelector Counter0 +CounterSelector Counter0 +CounterResetSource Off +CounterSelector Counter0 +CounterSelector Counter0 +CounterValue 1 +CounterSelector Counter0 +FileSelector UserSet1 +FileSelector UserSet1 +FileOperationSelector Open +FileSelector UserSet2 +FileOperationSelector Open +FileSelector UserSet3 +FileOperationSelector Open +FileSelector DPC +FileOperationSelector Open +FileSelector UserSet1 +FileSelector UserSet1 +FileOpenMode Read +FileSelector UserSet2 +FileOpenMode Read +FileSelector UserSet3 +FileOpenMode Read +FileSelector DPC +FileOpenMode Read +FileSelector UserSet1 +EventSelector AcquisitionStart +EventSelector AcquisitionStart +EventNotification Off +EventSelector AcquisitionEnd +EventNotification Off +EventSelector FrameStart +EventNotification Off +EventSelector FrameEnd +EventNotification Off +EventSelector FrameBurstStart +EventNotification Off +EventSelector FrameBurstEnd +EventNotification Off +EventSelector ExposureStart +EventNotification Off +EventSelector ExposureEnd +EventNotification Off +EventSelector Line0RisingEdge +EventNotification Off +EventSelector Line0FallingEdge +EventNotification Off +EventSelector FrameStartOverTrigger +EventNotification Off +EventSelector AcquisitionStart +ChunkModeActive 0 +ColorTransformationSelector RGBtoRGB +ColorTransformationEnable 1 +ColorTransformationValueSelector Gain00 +Gain 8.0057 +GainAuto Off +AutoGainLowerLimit 0 +AutoGainUpperLimit 16.9807 +DigitalShiftEnable 0 +BlackLevel 240 +BlackLevelEnable 1 +BalanceWhiteAuto Off +BalanceRatioSelector Red +BalanceRatioSelector Red +BalanceRatio 1458 +BalanceRatioSelector Green +BalanceRatio 1024 +BalanceRatioSelector Blue +BalanceRatio 1957 +BalanceRatioSelector Red +AutoFunctionAOISelector AOI1 +AutoFunctionAOISelector AOI1 +AutoFunctionAOIWidth 2448 +AutoFunctionAOISelector AOI2 +AutoFunctionAOIWidth 2448 +AutoFunctionAOISelector AOI1 +AutoFunctionAOISelector AOI1 +AutoFunctionAOIHeight 2048 +AutoFunctionAOISelector AOI2 +AutoFunctionAOIHeight 2048 +AutoFunctionAOISelector AOI1 +AutoFunctionAOISelector AOI1 +AutoFunctionAOIOffsetX 0 +AutoFunctionAOISelector AOI2 +AutoFunctionAOIOffsetX 0 +AutoFunctionAOISelector AOI1 +AutoFunctionAOISelector AOI1 +AutoFunctionAOIOffsetY 0 +AutoFunctionAOISelector AOI2 +AutoFunctionAOIOffsetY 0 +AutoFunctionAOISelector AOI1 +AutoFunctionAOISelector AOI1 +AutoFunctionAOIUsageIntensity 0 +AutoFunctionAOISelector AOI1 +AutoFunctionAOISelector AOI2 +AutoFunctionAOIUsageWhiteBalance 0 +AutoFunctionAOISelector AOI1 +UserSetSelector Default +UserSetDefault Default +GevHeartbeatTimeout 3000 +GevGVCPHeartbeatDisable 0 +GevMCTT 0 +GevMCRC 0 +GevStreamChannelSelector 0 +GevSCPSPacketSize 1500 +GevStreamChannelSelector 0 +GevStreamChannelSelector 0 +GevSCPD 400 +GevStreamChannelSelector 0 +GevIEEE1588 0 +GevGVSPExtendedIDMode Off diff --git a/correct.cpp b/correct.cpp new file mode 100644 index 0000000..233deed --- /dev/null +++ b/correct.cpp @@ -0,0 +1,50 @@ +#include "correct.h" + +Correct::Correct() +{ + is_corrected = false; + correction_ratio_r = 1; + correction_ratio_g = 1; + correction_ratio_b = 1; +} + +void Correct::get_rgb(cv::Mat img) +{ + int b_temp = 0; + int g_temp = 0; + int r_temp = 0; + for(int i=0; i<=img.rows; i++) + { + for(int j=0; j<=img.cols; j++) + { + b_temp += (int)img.at(i, j)[0]; + g_temp += (int)img.at(i, j)[1]; + r_temp += (int)img.at(i, j)[2]; + } + } + b = b_temp / (img.cols * img.rows); + g = g_temp / (img.cols * img.rows); + r = r_temp / (img.cols * img.rows); +} + +void Correct::cal_correction_ratio() +{ + correction_ratio_b = b / b_base; + correction_ratio_g = g / g_base; + correction_ratio_r = r / r_base; + qDebug()<<"correction ratio"<(j, i)[0] * correction_ratio_b) > 255) ? img.at(j, i)[0] = 255 :img.at(j, i)[0] *= correction_ratio_b; + ((img.at(j, i)[1] * correction_ratio_g) > 255) ? img.at(j, i)[1] = 255 :img.at(j, i)[1] *= correction_ratio_g; + ((img.at(j, i)[2] * correction_ratio_r) > 255) ? img.at(j, i)[2] = 255 :img.at(j, i)[2] *= correction_ratio_r; + } + } +} diff --git a/correct.h b/correct.h new file mode 100644 index 0000000..43b5cca --- /dev/null +++ b/correct.h @@ -0,0 +1,27 @@ +#ifndef CORRECT_H +#define CORRECT_H + +#include "opencv2/opencv.hpp" +#include + +class Correct +{ +private: + float correction_ratio; + float r; + float g; + float b; + float correction_ratio_r; + float correction_ratio_g; + float correction_ratio_b; + int b_base = 125.0f; + int g_base = 125.0f; + int r_base = 125.0f; +public: + Correct(); + bool is_corrected; + void get_rgb(cv::Mat img); + void cal_correction_ratio(); + void correct_img(cv::Mat img); +}; +#endif // CORRECT_H diff --git a/correct.o b/correct.o new file mode 100644 index 0000000..081ed45 Binary files /dev/null and b/correct.o differ diff --git a/initwidget.cpp b/initwidget.cpp new file mode 100644 index 0000000..8108e0c --- /dev/null +++ b/initwidget.cpp @@ -0,0 +1,42 @@ +#include "initwidget.h" +#include "ui_initwidget.h" + + +InitWidget::InitWidget(QWidget *parent) : + QWidget(parent), + ui(new Ui::InitWidget) +{ + ui->setupUi(this); + resize(1024, 768); + this->showFullScreen(); + this->setAutoFillBackground(true); + this->setPalette(QColor(211, 239, 251)); + + init_mainwindow = new QTimer(this); + change_window = new QTimer(this); + connect(init_mainwindow, SIGNAL(timeout()), this, SLOT(init_mainwindow_slot())); + connect(change_window, SIGNAL(timeout()), this, SLOT(change_window_slot())); + change_window->start(25000); + init_mainwindow->start(15000); +} + +InitWidget::~InitWidget() +{ + delete ui; +} + +void InitWidget::change_window_slot() +{ + change_window->stop(); + this->hide(); + w->show(); +} + + +void InitWidget::init_mainwindow_slot() +{ + init_mainwindow->stop(); + w = new Widget(); +} + + diff --git a/initwidget.h b/initwidget.h new file mode 100644 index 0000000..ddd05b2 --- /dev/null +++ b/initwidget.h @@ -0,0 +1,31 @@ +#ifndef INITWIDGET_H +#define INITWIDGET_H + +#include +#include "widget.h" +#include + +namespace Ui { +class InitWidget; +} + +class InitWidget : public QWidget +{ + Q_OBJECT + +public: + explicit InitWidget(QWidget *parent = 0); + ~InitWidget(); + +private slots: + void init_mainwindow_slot(); + void change_window_slot(); + +private: + Ui::InitWidget *ui; + Widget* w; + QTimer* init_mainwindow; + QTimer* change_window; +}; + +#endif // INITWIDGET_H diff --git a/initwidget.o b/initwidget.o new file mode 100644 index 0000000..5465334 Binary files /dev/null and b/initwidget.o differ diff --git a/initwidget.ui b/initwidget.ui new file mode 100644 index 0000000..1baff70 --- /dev/null +++ b/initwidget.ui @@ -0,0 +1,63 @@ + + + InitWidget + + + + 0 + 0 + 1024 + 768 + + + + Form + + + + + 130 + 80 + 741 + 220 + + + + + 36 + + + + 南通维尔斯机械科技有限公司 +Nantong Wealth Technical Co, Ltd + + + Qt::AlignCenter + + + + + + 342 + 656 + 340 + 71 + + + + + 21 + + + + 系统初始化中... +Initialization... + + + Qt::AlignCenter + + + + + + diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..eeb2edd --- /dev/null +++ b/main.cpp @@ -0,0 +1,11 @@ +#include "widget.h" +#include +#include "initwidget.h" + +int main(int argc, char *argv[]) +{ + QApplication a(argc, argv); + InitWidget w; + w.show(); + return a.exec(); +} diff --git a/main.o b/main.o new file mode 100644 index 0000000..e39727d Binary files /dev/null and b/main.o differ diff --git a/moc_initwidget.cpp b/moc_initwidget.cpp new file mode 100644 index 0000000..ae1faf8 --- /dev/null +++ b/moc_initwidget.cpp @@ -0,0 +1,96 @@ +/**************************************************************************** +** Meta object code from reading C++ file 'initwidget.h' +** +** Created by: The Qt Meta Object Compiler version 63 (Qt 4.8.7) +** +** WARNING! All changes made in this file will be lost! +*****************************************************************************/ + +#include "initwidget.h" +#if !defined(Q_MOC_OUTPUT_REVISION) +#error "The header file 'initwidget.h' doesn't include ." +#elif Q_MOC_OUTPUT_REVISION != 63 +#error "This file was generated using the moc from 4.8.7. It" +#error "cannot be used with the include files from this version of Qt." +#error "(The moc has changed too much.)" +#endif + +QT_BEGIN_MOC_NAMESPACE +static const uint qt_meta_data_InitWidget[] = { + + // content: + 6, // revision + 0, // classname + 0, 0, // classinfo + 2, 14, // methods + 0, 0, // properties + 0, 0, // enums/sets + 0, 0, // constructors + 0, // flags + 0, // signalCount + + // slots: signature, parameters, type, tag, flags + 11, 34, 34, 34, 0x08, + 35, 34, 34, 34, 0x08, + + 0 // eod +}; + +static const char qt_meta_stringdata_InitWidget[] = { + "InitWidget\0init_mainwindow_slot()\0\0" + "change_window_slot()\0" +}; + +void InitWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) +{ + if (_c == QMetaObject::InvokeMetaMethod) { + Q_ASSERT(staticMetaObject.cast(_o)); + InitWidget *_t = static_cast(_o); + switch (_id) { + case 0: _t->init_mainwindow_slot(); break; + case 1: _t->change_window_slot(); break; + default: ; + } + } + Q_UNUSED(_a); +} + +const QMetaObjectExtraData InitWidget::staticMetaObjectExtraData = { + 0, qt_static_metacall +}; + +const QMetaObject InitWidget::staticMetaObject = { + { &QWidget::staticMetaObject, qt_meta_stringdata_InitWidget, + qt_meta_data_InitWidget, &staticMetaObjectExtraData } +}; + +#ifdef Q_NO_DATA_RELOCATION +const QMetaObject &InitWidget::getStaticMetaObject() { return staticMetaObject; } +#endif //Q_NO_DATA_RELOCATION + +const QMetaObject *InitWidget::metaObject() const +{ + return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; +} + +void *InitWidget::qt_metacast(const char *_clname) +{ + if (!_clname) return 0; + if (!strcmp(_clname, qt_meta_stringdata_InitWidget)) + return static_cast(const_cast< InitWidget*>(this)); + return QWidget::qt_metacast(_clname); +} + +int InitWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a) +{ + _id = QWidget::qt_metacall(_c, _id, _a); + if (_id < 0) + return _id; + if (_c == QMetaObject::InvokeMetaMethod) { + if (_id < 2) + qt_static_metacall(this, _c, _id, _a); + _id -= 2; + } + return _id; +} +QT_END_MOC_NAMESPACE diff --git a/moc_initwidget.o b/moc_initwidget.o new file mode 100644 index 0000000..a32c76e Binary files /dev/null and b/moc_initwidget.o differ diff --git a/moc_modifypasswdialog.cpp b/moc_modifypasswdialog.cpp new file mode 100644 index 0000000..0f8c427 --- /dev/null +++ b/moc_modifypasswdialog.cpp @@ -0,0 +1,144 @@ +/**************************************************************************** +** Meta object code from reading C++ file 'modifypasswdialog.h' +** +** Created by: The Qt Meta Object Compiler version 63 (Qt 4.8.7) +** +** WARNING! All changes made in this file will be lost! +*****************************************************************************/ + +#include "modifypasswdialog.h" +#if !defined(Q_MOC_OUTPUT_REVISION) +#error "The header file 'modifypasswdialog.h' doesn't include ." +#elif Q_MOC_OUTPUT_REVISION != 63 +#error "This file was generated using the moc from 4.8.7. It" +#error "cannot be used with the include files from this version of Qt." +#error "(The moc has changed too much.)" +#endif + +QT_BEGIN_MOC_NAMESPACE +static const uint qt_meta_data_ModifyPasswdialog[] = { + + // content: + 6, // revision + 0, // classname + 0, 0, // classinfo + 18, 14, // methods + 0, 0, // properties + 0, 0, // enums/sets + 0, 0, // constructors + 0, // flags + 1, // signalCount + + // signals: signature, parameters, type, tag, flags + 18, 46, 46, 46, 0x05, + + // slots: signature, parameters, type, tag, flags + 47, 46, 46, 46, 0x08, + 65, 46, 46, 46, 0x08, + 83, 46, 46, 46, 0x08, + 101, 46, 46, 46, 0x08, + 119, 46, 46, 46, 0x08, + 137, 46, 46, 46, 0x08, + 155, 46, 46, 46, 0x08, + 173, 46, 46, 46, 0x08, + 191, 46, 46, 46, 0x08, + 209, 46, 46, 46, 0x08, + 227, 46, 46, 46, 0x08, + 247, 46, 46, 46, 0x08, + 266, 46, 46, 46, 0x08, + 285, 46, 46, 46, 0x08, + 308, 46, 46, 46, 0x08, + 328, 46, 46, 46, 0x08, + 349, 46, 46, 46, 0x08, + + 0 // eod +}; + +static const char qt_meta_stringdata_ModifyPasswdialog[] = { + "ModifyPasswdialog\0send_modify_passwd(QString)\0" + "\0on_btn1_clicked()\0on_btn2_clicked()\0" + "on_btn3_clicked()\0on_btn4_clicked()\0" + "on_btn5_clicked()\0on_btn6_clicked()\0" + "on_btn7_clicked()\0on_btn8_clicked()\0" + "on_btn9_clicked()\0on_btn0_clicked()\0" + "on_btnDot_clicked()\0on_btnCL_clicked()\0" + "on_btnDE_clicked()\0on_btnCancel_clicked()\0" + "on_btnEnt_clicked()\0On_editingFinished()\0" + "On_editingFinished_2()\0" +}; + +void ModifyPasswdialog::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) +{ + if (_c == QMetaObject::InvokeMetaMethod) { + Q_ASSERT(staticMetaObject.cast(_o)); + ModifyPasswdialog *_t = static_cast(_o); + switch (_id) { + case 0: _t->send_modify_passwd((*reinterpret_cast< QString(*)>(_a[1]))); break; + case 1: _t->on_btn1_clicked(); break; + case 2: _t->on_btn2_clicked(); break; + case 3: _t->on_btn3_clicked(); break; + case 4: _t->on_btn4_clicked(); break; + case 5: _t->on_btn5_clicked(); break; + case 6: _t->on_btn6_clicked(); break; + case 7: _t->on_btn7_clicked(); break; + case 8: _t->on_btn8_clicked(); break; + case 9: _t->on_btn9_clicked(); break; + case 10: _t->on_btn0_clicked(); break; + case 11: _t->on_btnDot_clicked(); break; + case 12: _t->on_btnCL_clicked(); break; + case 13: _t->on_btnDE_clicked(); break; + case 14: _t->on_btnCancel_clicked(); break; + case 15: _t->on_btnEnt_clicked(); break; + case 16: _t->On_editingFinished(); break; + case 17: _t->On_editingFinished_2(); break; + default: ; + } + } +} + +const QMetaObjectExtraData ModifyPasswdialog::staticMetaObjectExtraData = { + 0, qt_static_metacall +}; + +const QMetaObject ModifyPasswdialog::staticMetaObject = { + { &QDialog::staticMetaObject, qt_meta_stringdata_ModifyPasswdialog, + qt_meta_data_ModifyPasswdialog, &staticMetaObjectExtraData } +}; + +#ifdef Q_NO_DATA_RELOCATION +const QMetaObject &ModifyPasswdialog::getStaticMetaObject() { return staticMetaObject; } +#endif //Q_NO_DATA_RELOCATION + +const QMetaObject *ModifyPasswdialog::metaObject() const +{ + return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; +} + +void *ModifyPasswdialog::qt_metacast(const char *_clname) +{ + if (!_clname) return 0; + if (!strcmp(_clname, qt_meta_stringdata_ModifyPasswdialog)) + return static_cast(const_cast< ModifyPasswdialog*>(this)); + return QDialog::qt_metacast(_clname); +} + +int ModifyPasswdialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a) +{ + _id = QDialog::qt_metacall(_c, _id, _a); + if (_id < 0) + return _id; + if (_c == QMetaObject::InvokeMetaMethod) { + if (_id < 18) + qt_static_metacall(this, _c, _id, _a); + _id -= 18; + } + return _id; +} + +// SIGNAL 0 +void ModifyPasswdialog::send_modify_passwd(QString _t1) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)) }; + QMetaObject::activate(this, &staticMetaObject, 0, _a); +} +QT_END_MOC_NAMESPACE diff --git a/moc_modifypasswdialog.o b/moc_modifypasswdialog.o new file mode 100644 index 0000000..79dbc45 Binary files /dev/null and b/moc_modifypasswdialog.o differ diff --git a/moc_passwddialog.cpp b/moc_passwddialog.cpp new file mode 100644 index 0000000..5a75edb --- /dev/null +++ b/moc_passwddialog.cpp @@ -0,0 +1,141 @@ +/**************************************************************************** +** Meta object code from reading C++ file 'passwddialog.h' +** +** Created by: The Qt Meta Object Compiler version 63 (Qt 4.8.7) +** +** WARNING! All changes made in this file will be lost! +*****************************************************************************/ + +#include "passwddialog.h" +#if !defined(Q_MOC_OUTPUT_REVISION) +#error "The header file 'passwddialog.h' doesn't include ." +#elif Q_MOC_OUTPUT_REVISION != 63 +#error "This file was generated using the moc from 4.8.7. It" +#error "cannot be used with the include files from this version of Qt." +#error "(The moc has changed too much.)" +#endif + +QT_BEGIN_MOC_NAMESPACE +static const uint qt_meta_data_PasswdDialog[] = { + + // content: + 6, // revision + 0, // classname + 0, 0, // classinfo + 17, 14, // methods + 0, 0, // properties + 0, 0, // enums/sets + 0, 0, // constructors + 0, // flags + 1, // signalCount + + // signals: signature, parameters, type, tag, flags + 13, 36, 36, 36, 0x05, + + // slots: signature, parameters, type, tag, flags + 37, 36, 36, 36, 0x08, + 55, 36, 36, 36, 0x08, + 73, 36, 36, 36, 0x08, + 91, 36, 36, 36, 0x08, + 109, 36, 36, 36, 0x08, + 127, 36, 36, 36, 0x08, + 145, 36, 36, 36, 0x08, + 163, 36, 36, 36, 0x08, + 181, 36, 36, 36, 0x08, + 199, 36, 36, 36, 0x08, + 217, 36, 36, 36, 0x08, + 237, 36, 36, 36, 0x08, + 256, 36, 36, 36, 0x08, + 275, 36, 36, 36, 0x08, + 298, 36, 36, 36, 0x08, + 318, 36, 36, 36, 0x08, + + 0 // eod +}; + +static const char qt_meta_stringdata_PasswdDialog[] = { + "PasswdDialog\0send_password(QString)\0" + "\0on_btn1_clicked()\0on_btn2_clicked()\0" + "on_btn3_clicked()\0on_btn4_clicked()\0" + "on_btn5_clicked()\0on_btn6_clicked()\0" + "on_btn7_clicked()\0on_btn8_clicked()\0" + "on_btn9_clicked()\0on_btn0_clicked()\0" + "on_btnDot_clicked()\0on_btnCL_clicked()\0" + "on_btnDE_clicked()\0on_btnCancel_clicked()\0" + "on_btnEnt_clicked()\0deal_wrong_passwd()\0" +}; + +void PasswdDialog::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) +{ + if (_c == QMetaObject::InvokeMetaMethod) { + Q_ASSERT(staticMetaObject.cast(_o)); + PasswdDialog *_t = static_cast(_o); + switch (_id) { + case 0: _t->send_password((*reinterpret_cast< QString(*)>(_a[1]))); break; + case 1: _t->on_btn1_clicked(); break; + case 2: _t->on_btn2_clicked(); break; + case 3: _t->on_btn3_clicked(); break; + case 4: _t->on_btn4_clicked(); break; + case 5: _t->on_btn5_clicked(); break; + case 6: _t->on_btn6_clicked(); break; + case 7: _t->on_btn7_clicked(); break; + case 8: _t->on_btn8_clicked(); break; + case 9: _t->on_btn9_clicked(); break; + case 10: _t->on_btn0_clicked(); break; + case 11: _t->on_btnDot_clicked(); break; + case 12: _t->on_btnCL_clicked(); break; + case 13: _t->on_btnDE_clicked(); break; + case 14: _t->on_btnCancel_clicked(); break; + case 15: _t->on_btnEnt_clicked(); break; + case 16: _t->deal_wrong_passwd(); break; + default: ; + } + } +} + +const QMetaObjectExtraData PasswdDialog::staticMetaObjectExtraData = { + 0, qt_static_metacall +}; + +const QMetaObject PasswdDialog::staticMetaObject = { + { &QDialog::staticMetaObject, qt_meta_stringdata_PasswdDialog, + qt_meta_data_PasswdDialog, &staticMetaObjectExtraData } +}; + +#ifdef Q_NO_DATA_RELOCATION +const QMetaObject &PasswdDialog::getStaticMetaObject() { return staticMetaObject; } +#endif //Q_NO_DATA_RELOCATION + +const QMetaObject *PasswdDialog::metaObject() const +{ + return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; +} + +void *PasswdDialog::qt_metacast(const char *_clname) +{ + if (!_clname) return 0; + if (!strcmp(_clname, qt_meta_stringdata_PasswdDialog)) + return static_cast(const_cast< PasswdDialog*>(this)); + return QDialog::qt_metacast(_clname); +} + +int PasswdDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a) +{ + _id = QDialog::qt_metacall(_c, _id, _a); + if (_id < 0) + return _id; + if (_c == QMetaObject::InvokeMetaMethod) { + if (_id < 17) + qt_static_metacall(this, _c, _id, _a); + _id -= 17; + } + return _id; +} + +// SIGNAL 0 +void PasswdDialog::send_password(QString _t1) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)) }; + QMetaObject::activate(this, &staticMetaObject, 0, _a); +} +QT_END_MOC_NAMESPACE diff --git a/moc_passwddialog.o b/moc_passwddialog.o new file mode 100644 index 0000000..eaf55d2 Binary files /dev/null and b/moc_passwddialog.o differ diff --git a/moc_thread.cpp b/moc_thread.cpp new file mode 100644 index 0000000..62cae1b --- /dev/null +++ b/moc_thread.cpp @@ -0,0 +1,265 @@ +/**************************************************************************** +** Meta object code from reading C++ file 'thread.h' +** +** Created by: The Qt Meta Object Compiler version 63 (Qt 4.8.7) +** +** WARNING! All changes made in this file will be lost! +*****************************************************************************/ + +#include "thread.h" +#if !defined(Q_MOC_OUTPUT_REVISION) +#error "The header file 'thread.h' doesn't include ." +#elif Q_MOC_OUTPUT_REVISION != 63 +#error "This file was generated using the moc from 4.8.7. It" +#error "cannot be used with the include files from this version of Qt." +#error "(The moc has changed too much.)" +#endif + +QT_BEGIN_MOC_NAMESPACE +static const uint qt_meta_data_Process_img[] = { + + // content: + 6, // revision + 0, // classname + 0, 0, // classinfo + 3, 14, // methods + 0, 0, // properties + 0, 0, // enums/sets + 0, 0, // constructors + 0, // flags + 3, // signalCount + + // signals: signature, parameters, type, tag, flags + 12, 32, 32, 32, 0x05, + 33, 32, 32, 32, 0x05, + 66, 32, 32, 32, 0x05, + + 0 // eod +}; + +static const char qt_meta_stringdata_Process_img[] = { + "Process_img\0send_image(cv::Mat)\0\0" + "send_res(QVector)\0" + "send_tab(uint8_t*)\0" +}; + +void Process_img::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) +{ + if (_c == QMetaObject::InvokeMetaMethod) { + Q_ASSERT(staticMetaObject.cast(_o)); + Process_img *_t = static_cast(_o); + switch (_id) { + case 0: _t->send_image((*reinterpret_cast< cv::Mat(*)>(_a[1]))); break; + case 1: _t->send_res((*reinterpret_cast< QVector(*)>(_a[1]))); break; + case 2: _t->send_tab((*reinterpret_cast< uint8_t*(*)>(_a[1]))); break; + default: ; + } + } +} + +const QMetaObjectExtraData Process_img::staticMetaObjectExtraData = { + 0, qt_static_metacall +}; + +const QMetaObject Process_img::staticMetaObject = { + { &QThread::staticMetaObject, qt_meta_stringdata_Process_img, + qt_meta_data_Process_img, &staticMetaObjectExtraData } +}; + +#ifdef Q_NO_DATA_RELOCATION +const QMetaObject &Process_img::getStaticMetaObject() { return staticMetaObject; } +#endif //Q_NO_DATA_RELOCATION + +const QMetaObject *Process_img::metaObject() const +{ + return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; +} + +void *Process_img::qt_metacast(const char *_clname) +{ + if (!_clname) return 0; + if (!strcmp(_clname, qt_meta_stringdata_Process_img)) + return static_cast(const_cast< Process_img*>(this)); + return QThread::qt_metacast(_clname); +} + +int Process_img::qt_metacall(QMetaObject::Call _c, int _id, void **_a) +{ + _id = QThread::qt_metacall(_c, _id, _a); + if (_id < 0) + return _id; + if (_c == QMetaObject::InvokeMetaMethod) { + if (_id < 3) + qt_static_metacall(this, _c, _id, _a); + _id -= 3; + } + return _id; +} + +// SIGNAL 0 +void Process_img::send_image(cv::Mat _t1) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)) }; + QMetaObject::activate(this, &staticMetaObject, 0, _a); +} + +// SIGNAL 1 +void Process_img::send_res(QVector _t1) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)) }; + QMetaObject::activate(this, &staticMetaObject, 1, _a); +} + +// SIGNAL 2 +void Process_img::send_tab(uint8_t * _t1) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)) }; + QMetaObject::activate(this, &staticMetaObject, 2, _a); +} +static const uint qt_meta_data_Adjust_para[] = { + + // content: + 6, // revision + 0, // classname + 0, 0, // classinfo + 2, 14, // methods + 0, 0, // properties + 0, 0, // enums/sets + 0, 0, // constructors + 0, // flags + 1, // signalCount + + // signals: signature, parameters, type, tag, flags + 12, 38, 38, 38, 0x05, + + // slots: signature, parameters, type, tag, flags + 39, 38, 38, 38, 0x0a, + + 0 // eod +}; + +static const char qt_meta_stringdata_Adjust_para[] = { + "Adjust_para\0send_image_debug(cv::Mat)\0" + "\0get_correct_siganl()\0" +}; + +void Adjust_para::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) +{ + if (_c == QMetaObject::InvokeMetaMethod) { + Q_ASSERT(staticMetaObject.cast(_o)); + Adjust_para *_t = static_cast(_o); + switch (_id) { + case 0: _t->send_image_debug((*reinterpret_cast< cv::Mat(*)>(_a[1]))); break; + case 1: _t->get_correct_siganl(); break; + default: ; + } + } +} + +const QMetaObjectExtraData Adjust_para::staticMetaObjectExtraData = { + 0, qt_static_metacall +}; + +const QMetaObject Adjust_para::staticMetaObject = { + { &QThread::staticMetaObject, qt_meta_stringdata_Adjust_para, + qt_meta_data_Adjust_para, &staticMetaObjectExtraData } +}; + +#ifdef Q_NO_DATA_RELOCATION +const QMetaObject &Adjust_para::getStaticMetaObject() { return staticMetaObject; } +#endif //Q_NO_DATA_RELOCATION + +const QMetaObject *Adjust_para::metaObject() const +{ + return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; +} + +void *Adjust_para::qt_metacast(const char *_clname) +{ + if (!_clname) return 0; + if (!strcmp(_clname, qt_meta_stringdata_Adjust_para)) + return static_cast(const_cast< Adjust_para*>(this)); + return QThread::qt_metacast(_clname); +} + +int Adjust_para::qt_metacall(QMetaObject::Call _c, int _id, void **_a) +{ + _id = QThread::qt_metacall(_c, _id, _a); + if (_id < 0) + return _id; + if (_c == QMetaObject::InvokeMetaMethod) { + if (_id < 2) + qt_static_metacall(this, _c, _id, _a); + _id -= 2; + } + return _id; +} + +// SIGNAL 0 +void Adjust_para::send_image_debug(cv::Mat _t1) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)) }; + QMetaObject::activate(this, &staticMetaObject, 0, _a); +} +static const uint qt_meta_data_Grab_img[] = { + + // content: + 6, // revision + 0, // classname + 0, 0, // classinfo + 0, 0, // methods + 0, 0, // properties + 0, 0, // enums/sets + 0, 0, // constructors + 0, // flags + 0, // signalCount + + 0 // eod +}; + +static const char qt_meta_stringdata_Grab_img[] = { + "Grab_img\0" +}; + +void Grab_img::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) +{ + Q_UNUSED(_o); + Q_UNUSED(_id); + Q_UNUSED(_c); + Q_UNUSED(_a); +} + +const QMetaObjectExtraData Grab_img::staticMetaObjectExtraData = { + 0, qt_static_metacall +}; + +const QMetaObject Grab_img::staticMetaObject = { + { &QThread::staticMetaObject, qt_meta_stringdata_Grab_img, + qt_meta_data_Grab_img, &staticMetaObjectExtraData } +}; + +#ifdef Q_NO_DATA_RELOCATION +const QMetaObject &Grab_img::getStaticMetaObject() { return staticMetaObject; } +#endif //Q_NO_DATA_RELOCATION + +const QMetaObject *Grab_img::metaObject() const +{ + return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; +} + +void *Grab_img::qt_metacast(const char *_clname) +{ + if (!_clname) return 0; + if (!strcmp(_clname, qt_meta_stringdata_Grab_img)) + return static_cast(const_cast< Grab_img*>(this)); + return QThread::qt_metacast(_clname); +} + +int Grab_img::qt_metacall(QMetaObject::Call _c, int _id, void **_a) +{ + _id = QThread::qt_metacall(_c, _id, _a); + if (_id < 0) + return _id; + return _id; +} +QT_END_MOC_NAMESPACE diff --git a/moc_thread.o b/moc_thread.o new file mode 100644 index 0000000..89f51e1 Binary files /dev/null and b/moc_thread.o differ diff --git a/moc_widget.cpp b/moc_widget.cpp new file mode 100644 index 0000000..41568b0 --- /dev/null +++ b/moc_widget.cpp @@ -0,0 +1,228 @@ +/**************************************************************************** +** Meta object code from reading C++ file 'widget.h' +** +** Created by: The Qt Meta Object Compiler version 63 (Qt 4.8.7) +** +** WARNING! All changes made in this file will be lost! +*****************************************************************************/ + +#include "widget.h" +#if !defined(Q_MOC_OUTPUT_REVISION) +#error "The header file 'widget.h' doesn't include ." +#elif Q_MOC_OUTPUT_REVISION != 63 +#error "This file was generated using the moc from 4.8.7. It" +#error "cannot be used with the include files from this version of Qt." +#error "(The moc has changed too much.)" +#endif + +QT_BEGIN_MOC_NAMESPACE +static const uint qt_meta_data_Widget[] = { + + // content: + 6, // revision + 0, // classname + 0, 0, // classinfo + 48, 14, // methods + 0, 0, // properties + 0, 0, // enums/sets + 0, 0, // constructors + 0, // flags + 2, // signalCount + + // signals: signature, parameters, type, tag, flags + 7, 24, 24, 24, 0x05, + 25, 24, 24, 24, 0x05, + + // slots: signature, parameters, type, tag, flags + 40, 24, 24, 24, 0x08, + 62, 24, 24, 24, 0x08, + 84, 24, 24, 24, 0x08, + 104, 24, 24, 24, 0x08, + 123, 24, 24, 24, 0x08, + 145, 24, 24, 24, 0x08, + 167, 24, 24, 24, 0x08, + 191, 24, 24, 24, 0x08, + 213, 24, 24, 24, 0x08, + 235, 24, 24, 24, 0x08, + 257, 24, 24, 24, 0x08, + 281, 24, 24, 24, 0x08, + 303, 24, 24, 24, 0x08, + 329, 24, 24, 24, 0x08, + 356, 24, 24, 24, 0x08, + 379, 24, 24, 24, 0x08, + 405, 24, 24, 24, 0x08, + 434, 24, 24, 24, 0x08, + 456, 24, 24, 24, 0x08, + 478, 24, 24, 24, 0x08, + 508, 24, 24, 24, 0x08, + 530, 24, 24, 24, 0x08, + 551, 24, 24, 24, 0x08, + 589, 24, 24, 24, 0x08, + 613, 24, 24, 24, 0x08, + 635, 24, 24, 24, 0x08, + 659, 24, 24, 24, 0x08, + 685, 24, 24, 24, 0x08, + 715, 24, 24, 24, 0x08, + 739, 24, 24, 24, 0x08, + 764, 24, 24, 24, 0x08, + 783, 24, 24, 24, 0x08, + 815, 24, 24, 24, 0x08, + 839, 24, 24, 24, 0x08, + 861, 24, 24, 24, 0x08, + 879, 24, 24, 24, 0x08, + 897, 24, 24, 24, 0x08, + 915, 24, 24, 24, 0x08, + 933, 24, 24, 24, 0x08, + 951, 24, 24, 24, 0x08, + 969, 24, 24, 24, 0x08, + 987, 24, 24, 24, 0x08, + 1005, 24, 24, 24, 0x08, + 1023, 24, 24, 24, 0x08, + 1041, 24, 24, 24, 0x08, + 1059, 24, 24, 24, 0x08, + + 0 // eod +}; + +static const char qt_meta_stringdata_Widget[] = { + "Widget\0correct_signal()\0\0wrong_passwd()\0" + "On_btn_Tab1_2_click()\0On_btn_Tab1_3_click()\0" + "On_btnStart_click()\0On_bthStop_click()\0" + "On_btn_Tab2_1_click()\0On_btn_Tab2_5_click()\0" + "On_btnValveTest_click()\0On_btn_Tab3_1_click()\0" + "On_btn_Tab3_4_click()\0On_btn_Tab3_6_click()\0" + "On_btnImportImg_click()\0On_btnSaveImg_click()\0" + "On_btnImportModel_click()\0" + "On_btnModifyPasswd_click()\0" + "On_btn_correct_click()\0On_btn_getcorrect_click()\0" + "On_btn_setcamerapara_click()\0" + "On_btn_Tab4_3_click()\0On_btn_Tab5_3_click()\0" + "On_btn_set_thereshold_click()\0" + "On_btn_Tab6_3_click()\0On_btn_close_click()\0" + "On_candy_select_box_index_change(int)\0" + "On_btnManualValveTest()\0On_btn_Tab7_3_click()\0" + "On_btnchannelup_click()\0" + "On_btnchanneldown_click()\0" + "On_btn_channel_send_clicked()\0" + "judge_password(QString)\0" + "modify_password(QString)\0showimage(cv::Mat)\0" + "drawbox(QVector)\0" + "showimage_test(cv::Mat)\0ServerNewConnection()\0" + "get_tab(uint8_t*)\0On_btn1_clicked()\0" + "On_btn2_clicked()\0On_btn3_clicked()\0" + "On_btn4_clicked()\0On_btn5_clicked()\0" + "On_btn6_clicked()\0On_btn7_clicked()\0" + "On_btn8_clicked()\0On_btn9_clicked()\0" + "On_btn0_clicked()\0On_btn_DEL_clicked()\0" +}; + +void Widget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) +{ + if (_c == QMetaObject::InvokeMetaMethod) { + Q_ASSERT(staticMetaObject.cast(_o)); + Widget *_t = static_cast(_o); + switch (_id) { + case 0: _t->correct_signal(); break; + case 1: _t->wrong_passwd(); break; + case 2: _t->On_btn_Tab1_2_click(); break; + case 3: _t->On_btn_Tab1_3_click(); break; + case 4: _t->On_btnStart_click(); break; + case 5: _t->On_bthStop_click(); break; + case 6: _t->On_btn_Tab2_1_click(); break; + case 7: _t->On_btn_Tab2_5_click(); break; + case 8: _t->On_btnValveTest_click(); break; + case 9: _t->On_btn_Tab3_1_click(); break; + case 10: _t->On_btn_Tab3_4_click(); break; + case 11: _t->On_btn_Tab3_6_click(); break; + case 12: _t->On_btnImportImg_click(); break; + case 13: _t->On_btnSaveImg_click(); break; + case 14: _t->On_btnImportModel_click(); break; + case 15: _t->On_btnModifyPasswd_click(); break; + case 16: _t->On_btn_correct_click(); break; + case 17: _t->On_btn_getcorrect_click(); break; + case 18: _t->On_btn_setcamerapara_click(); break; + case 19: _t->On_btn_Tab4_3_click(); break; + case 20: _t->On_btn_Tab5_3_click(); break; + case 21: _t->On_btn_set_thereshold_click(); break; + case 22: _t->On_btn_Tab6_3_click(); break; + case 23: _t->On_btn_close_click(); break; + case 24: _t->On_candy_select_box_index_change((*reinterpret_cast< int(*)>(_a[1]))); break; + case 25: _t->On_btnManualValveTest(); break; + case 26: _t->On_btn_Tab7_3_click(); break; + case 27: _t->On_btnchannelup_click(); break; + case 28: _t->On_btnchanneldown_click(); break; + case 29: _t->On_btn_channel_send_clicked(); break; + case 30: _t->judge_password((*reinterpret_cast< QString(*)>(_a[1]))); break; + case 31: _t->modify_password((*reinterpret_cast< QString(*)>(_a[1]))); break; + case 32: _t->showimage((*reinterpret_cast< cv::Mat(*)>(_a[1]))); break; + case 33: _t->drawbox((*reinterpret_cast< QVector(*)>(_a[1]))); break; + case 34: _t->showimage_test((*reinterpret_cast< cv::Mat(*)>(_a[1]))); break; + case 35: _t->ServerNewConnection(); break; + case 36: _t->get_tab((*reinterpret_cast< uint8_t*(*)>(_a[1]))); break; + case 37: _t->On_btn1_clicked(); break; + case 38: _t->On_btn2_clicked(); break; + case 39: _t->On_btn3_clicked(); break; + case 40: _t->On_btn4_clicked(); break; + case 41: _t->On_btn5_clicked(); break; + case 42: _t->On_btn6_clicked(); break; + case 43: _t->On_btn7_clicked(); break; + case 44: _t->On_btn8_clicked(); break; + case 45: _t->On_btn9_clicked(); break; + case 46: _t->On_btn0_clicked(); break; + case 47: _t->On_btn_DEL_clicked(); break; + default: ; + } + } +} + +const QMetaObjectExtraData Widget::staticMetaObjectExtraData = { + 0, qt_static_metacall +}; + +const QMetaObject Widget::staticMetaObject = { + { &QWidget::staticMetaObject, qt_meta_stringdata_Widget, + qt_meta_data_Widget, &staticMetaObjectExtraData } +}; + +#ifdef Q_NO_DATA_RELOCATION +const QMetaObject &Widget::getStaticMetaObject() { return staticMetaObject; } +#endif //Q_NO_DATA_RELOCATION + +const QMetaObject *Widget::metaObject() const +{ + return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; +} + +void *Widget::qt_metacast(const char *_clname) +{ + if (!_clname) return 0; + if (!strcmp(_clname, qt_meta_stringdata_Widget)) + return static_cast(const_cast< Widget*>(this)); + return QWidget::qt_metacast(_clname); +} + +int Widget::qt_metacall(QMetaObject::Call _c, int _id, void **_a) +{ + _id = QWidget::qt_metacall(_c, _id, _a); + if (_id < 0) + return _id; + if (_c == QMetaObject::InvokeMetaMethod) { + if (_id < 48) + qt_static_metacall(this, _c, _id, _a); + _id -= 48; + } + return _id; +} + +// SIGNAL 0 +void Widget::correct_signal() +{ + QMetaObject::activate(this, &staticMetaObject, 0, 0); +} + +// SIGNAL 1 +void Widget::wrong_passwd() +{ + QMetaObject::activate(this, &staticMetaObject, 1, 0); +} +QT_END_MOC_NAMESPACE diff --git a/moc_widget.o b/moc_widget.o new file mode 100644 index 0000000..a06707e Binary files /dev/null and b/moc_widget.o differ diff --git a/modifypasswdialog.cpp b/modifypasswdialog.cpp new file mode 100644 index 0000000..a9ad25c --- /dev/null +++ b/modifypasswdialog.cpp @@ -0,0 +1,250 @@ +#include "modifypasswdialog.h" +#include "ui_modifypasswdialog.h" +#include +#include + +ModifyPasswdialog::ModifyPasswdialog(QWidget *parent) : + QDialog(parent), + ui(new Ui::ModifyPasswdialog) +{ + ui->setupUi(this); + setWindowFlags(Qt::FramelessWindowHint); //隐藏窗体 + setModal(true); //设置为模态对话框 + + // ui->lineEdit->setFocus(); //lineEdit为焦点 + ui->lineEdit->setEchoMode(QLineEdit::Password); //显示模式为密码 + ui->lineEdit_2->setEchoMode(QLineEdit::Password); + QList button = findChildren(); //设置所有按键不为焦点 + for(int i=0; isetFocusPolicy(Qt::NoFocus); + } + + connect(ui->lineEdit, SIGNAL(editingFinished()), this, SLOT(On_editingFinished())); + connect(ui->lineEdit_2, SIGNAL(editingFinished()), this, SLOT(On_editingFinished_2())); +} + +ModifyPasswdialog::~ModifyPasswdialog() +{ + delete ui; +} + +void ModifyPasswdialog::on_btn1_clicked() +{ + if(which_edit == 1) + { + QString password = ui->lineEdit->text(); + password.append("1"); + ui->lineEdit->setText(password); + } + if(which_edit == 2) + { + QString password = ui->lineEdit_2->text(); + password.append("1"); + ui->lineEdit_2->setText(password); + } +} + +void ModifyPasswdialog::on_btn2_clicked() +{ + if(which_edit == 1) + { + QString password = ui->lineEdit->text(); + password.append("2"); + ui->lineEdit->setText(password); + } + if(which_edit == 2) + { + QString password = ui->lineEdit_2->text(); + password.append("2"); + ui->lineEdit_2->setText(password); + } +} + +void ModifyPasswdialog::on_btn3_clicked() +{ + if(which_edit == 1) + { + QString password = ui->lineEdit->text(); + password.append("3"); + ui->lineEdit->setText(password); + } + if(which_edit == 2) + { + QString password = ui->lineEdit_2->text(); + password.append("3"); + ui->lineEdit_2->setText(password); + } +} + +void ModifyPasswdialog::on_btn4_clicked() +{ + if(which_edit == 1) + { + QString password = ui->lineEdit->text(); + password.append("4"); + ui->lineEdit->setText(password); + } + if(which_edit == 2) + { + QString password = ui->lineEdit_2->text(); + password.append("4"); + ui->lineEdit_2->setText(password); + } +} + +void ModifyPasswdialog::on_btn5_clicked() +{ + if(which_edit == 1) + { + QString password = ui->lineEdit->text(); + password.append("5"); + ui->lineEdit->setText(password); + } + if(which_edit == 2) + { + QString password = ui->lineEdit_2->text(); + password.append("5"); + ui->lineEdit_2->setText(password); + } +} + +void ModifyPasswdialog::on_btn6_clicked() +{ + if(which_edit == 1) + { + QString password = ui->lineEdit->text(); + password.append("6"); + ui->lineEdit->setText(password); + } + if(which_edit == 2) + { + QString password = ui->lineEdit_2->text(); + password.append("6"); + ui->lineEdit_2->setText(password); + } +} + +void ModifyPasswdialog::on_btn7_clicked() +{ + if(which_edit == 1) + { + QString password = ui->lineEdit->text(); + password.append("7"); + ui->lineEdit->setText(password); + } + if(which_edit == 2) + { + QString password = ui->lineEdit_2->text(); + password.append("8"); + ui->lineEdit_2->setText(password); + } +} + +void ModifyPasswdialog::on_btn8_clicked() +{ + if(which_edit == 1) + { + QString password = ui->lineEdit->text(); + password.append("8"); + ui->lineEdit->setText(password); + } + if(which_edit == 2) + { + QString password = ui->lineEdit_2->text(); + password.append("8"); + ui->lineEdit_2->setText(password); + } +} + +void ModifyPasswdialog::on_btn9_clicked() +{ + if(which_edit == 1) + { + QString password = ui->lineEdit->text(); + password.append("9"); + ui->lineEdit->setText(password); + } + if(which_edit == 2) + { + QString password = ui->lineEdit_2->text(); + password.append("9"); + ui->lineEdit_2->setText(password); + } +} + +void ModifyPasswdialog::on_btn0_clicked() +{ + if(which_edit == 1) + { + QString password = ui->lineEdit->text(); + password.append("0"); + ui->lineEdit->setText(password); + } + if(which_edit == 2) + { + QString password = ui->lineEdit_2->text(); + password.append("0"); + ui->lineEdit_2->setText(password); + } +} + +void ModifyPasswdialog::on_btnDot_clicked() +{ + +} + +void ModifyPasswdialog::on_btnCL_clicked() +{ + if(which_edit == 1) + { + ui->lineEdit->clear(); + } + if(which_edit == 2) + { + ui->lineEdit_2->clear(); + } +} + +void ModifyPasswdialog::on_btnDE_clicked() +{ + if(which_edit == 1) + { + ui->lineEdit->backspace(); + } + if(which_edit == 2) + { + ui->lineEdit_2->backspace(); + } +} + +void ModifyPasswdialog::on_btnCancel_clicked() +{ + this->close(); +} + +void ModifyPasswdialog::on_btnEnt_clicked() +{ + QString password = ui->lineEdit->text(); + QString password2 = ui->lineEdit_2->text(); + if(password == password2) + { + emit send_modify_passwd(password); + } + else + { + QMessageBox::warning(this, "", QString::fromUtf8("密码不一致")); + ui->lineEdit->clear(); + ui->lineEdit_2->clear(); + } +} + +void ModifyPasswdialog::On_editingFinished() +{ + which_edit = 2; +} + +void ModifyPasswdialog::On_editingFinished_2() +{ + which_edit = 1; +} diff --git a/modifypasswdialog.h b/modifypasswdialog.h new file mode 100644 index 0000000..240b6a2 --- /dev/null +++ b/modifypasswdialog.h @@ -0,0 +1,46 @@ +#ifndef MODIFYPASSWDIALOG_H +#define MODIFYPASSWDIALOG_H + +#include + +namespace Ui { +class ModifyPasswdialog; +} + +class ModifyPasswdialog : public QDialog +{ + Q_OBJECT + +public: + explicit ModifyPasswdialog(QWidget *parent = 0); + ~ModifyPasswdialog(); + +private slots: + void on_btn1_clicked(); + void on_btn2_clicked(); + void on_btn3_clicked(); + void on_btn4_clicked(); + void on_btn5_clicked(); + void on_btn6_clicked(); + void on_btn7_clicked(); + void on_btn8_clicked(); + void on_btn9_clicked(); + void on_btn0_clicked(); + void on_btnDot_clicked(); + void on_btnCL_clicked(); + void on_btnDE_clicked(); + void on_btnCancel_clicked(); + void on_btnEnt_clicked(); + + void On_editingFinished(); + void On_editingFinished_2(); + +private: + Ui::ModifyPasswdialog *ui; + int which_edit = 1; + +signals: + void send_modify_passwd(QString); +}; + +#endif // MODIFYPASSWDIALOG_H diff --git a/modifypasswdialog.o b/modifypasswdialog.o new file mode 100644 index 0000000..c89caf9 Binary files /dev/null and b/modifypasswdialog.o differ diff --git a/modifypasswdialog.ui b/modifypasswdialog.ui new file mode 100644 index 0000000..33a40c9 --- /dev/null +++ b/modifypasswdialog.ui @@ -0,0 +1,300 @@ + + + ModifyPasswdialog + + + + 0 + 0 + 348 + 432 + + + + Dialog + + + + + 10 + 60 + 221 + 31 + + + + 6 + + + Qt::AlignCenter + + + + + + 60 + 10 + 191 + 41 + + + + + 20 + + + + Input Password + + + + + + 160 + 290 + 51 + 51 + + + + 9 + + + + + + 20 + 220 + 51 + 51 + + + + 4 + + + + + + 90 + 360 + 51 + 51 + + + + . + + + + + + 160 + 150 + 51 + 51 + + + + 3 + + + + + + 160 + 220 + 51 + 51 + + + + 6 + + + + + + 230 + 290 + 61 + 51 + + + + CLEAR + + + + + + 20 + 360 + 51 + 51 + + + + 0 + + + + + + 90 + 290 + 51 + 51 + + + + 8 + + + + + + 230 + 360 + 61 + 51 + + + + ENTER + + + + + + 90 + 150 + 51 + 51 + + + + 2 + + + + + + 20 + 290 + 51 + 51 + + + + 7 + + + + + + 20 + 150 + 51 + 51 + + + + 1 + + + + + + 90 + 220 + 51 + 51 + + + + 5 + + + + + + 230 + 150 + 61 + 51 + + + + DELETE + + + + + + 230 + 220 + 61 + 51 + + + + CANCEL + + + + + + 10 + 100 + 221 + 31 + + + + 6 + + + Qt::AlignCenter + + + + + + 240 + 60 + 81 + 31 + + + + + 17 + + + + NEW + + + + + + 240 + 100 + 101 + 31 + + + + + 17 + + + + CONFIRM + + + + + + diff --git a/para.ini b/para.ini new file mode 100644 index 0000000..24f8863 Binary files /dev/null and b/para.ini differ diff --git a/passwddialog.cpp b/passwddialog.cpp new file mode 100644 index 0000000..fb52482 --- /dev/null +++ b/passwddialog.cpp @@ -0,0 +1,129 @@ +#include "passwddialog.h" +#include "ui_passwddialog.h" +#include + +PasswdDialog::PasswdDialog(QWidget *parent) : + QDialog(parent), + ui(new Ui::PasswdDialog) +{ + ui->setupUi(this); + setWindowFlags(Qt::FramelessWindowHint); //隐藏窗体 + setModal(true); //设置为模态对话框 + + ui->lineEdit->setFocus(); //lineEdit为焦点 + ui->lineEdit->setEchoMode(QLineEdit::Password); //显示模式为密码 + QList button = findChildren(); //设置所有按键不为焦点 + for(int i=0; isetFocusPolicy(Qt::NoFocus); + } + +} + +PasswdDialog::~PasswdDialog() +{ + delete ui; +} + +void PasswdDialog::on_btn1_clicked() +{ + + QString password = ui->lineEdit->text(); + password.append("1"); + ui->lineEdit->setText(password); +} + +void PasswdDialog::on_btn2_clicked() +{ + QString password = ui->lineEdit->text(); + password.append("2"); + ui->lineEdit->setText(password); +} + +void PasswdDialog::on_btn3_clicked() +{ + QString password = ui->lineEdit->text(); + password.append("3"); + ui->lineEdit->setText(password); +} + +void PasswdDialog::on_btn4_clicked() +{ + QString password = ui->lineEdit->text(); + password.append("4"); + ui->lineEdit->setText(password); +} + +void PasswdDialog::on_btn5_clicked() +{ + QString password = ui->lineEdit->text(); + password.append("5"); + ui->lineEdit->setText(password); +} + +void PasswdDialog::on_btn6_clicked() +{ + QString password = ui->lineEdit->text(); + password.append("6"); + ui->lineEdit->setText(password); +} + +void PasswdDialog::on_btn7_clicked() +{ + QString password = ui->lineEdit->text(); + password.append("7"); + ui->lineEdit->setText(password); +} + +void PasswdDialog::on_btn8_clicked() +{ + QString password = ui->lineEdit->text(); + password.append("8"); + ui->lineEdit->setText(password); +} + +void PasswdDialog::on_btn9_clicked() +{ + QString password = ui->lineEdit->text(); + password.append("9"); + ui->lineEdit->setText(password); +} + +void PasswdDialog::on_btn0_clicked() +{ + QString password = ui->lineEdit->text(); + password.append("0"); + ui->lineEdit->setText(password); +} + +void PasswdDialog::on_btnDot_clicked() +{ + +} + +void PasswdDialog::on_btnCL_clicked() +{ + ui->lineEdit->clear(); +} + +void PasswdDialog::on_btnDE_clicked() +{ + ui->lineEdit->backspace(); +} + + +void PasswdDialog::on_btnCancel_clicked() +{ + this->close(); +} + +void PasswdDialog::on_btnEnt_clicked() +{ + QString password = ui->lineEdit->text(); + emit send_password(password); +} + +void PasswdDialog::deal_wrong_passwd() +{ + ui->lineEdit->clear(); +} diff --git a/passwddialog.h b/passwddialog.h new file mode 100644 index 0000000..88b0793 --- /dev/null +++ b/passwddialog.h @@ -0,0 +1,44 @@ +#ifndef PASSWDDIALOG_H +#define PASSWDDIALOG_H + +#include + +namespace Ui { +class PasswdDialog; +} + +class PasswdDialog : public QDialog +{ + Q_OBJECT + +public: + explicit PasswdDialog(QWidget *parent = 0); + ~PasswdDialog(); + +private slots: + void on_btn1_clicked(); + void on_btn2_clicked(); + void on_btn3_clicked(); + void on_btn4_clicked(); + void on_btn5_clicked(); + void on_btn6_clicked(); + void on_btn7_clicked(); + void on_btn8_clicked(); + void on_btn9_clicked(); + void on_btn0_clicked(); + void on_btnDot_clicked(); + void on_btnCL_clicked(); + void on_btnDE_clicked(); + void on_btnCancel_clicked(); + void on_btnEnt_clicked(); + + void deal_wrong_passwd(); + +signals: + void send_password(QString); + +private: + Ui::PasswdDialog *ui; +}; + +#endif // PASSWDDIALOG_H diff --git a/passwddialog.o b/passwddialog.o new file mode 100644 index 0000000..89016a4 Binary files /dev/null and b/passwddialog.o differ diff --git a/passwddialog.ui b/passwddialog.ui new file mode 100644 index 0000000..e6ace18 --- /dev/null +++ b/passwddialog.ui @@ -0,0 +1,248 @@ + + + PasswdDialog + + + + 0 + 0 + 300 + 433 + + + + Dialog + + + + + 20 + 120 + 51 + 51 + + + + 1 + + + + + + 90 + 120 + 51 + 51 + + + + 2 + + + + + + 20 + 330 + 51 + 51 + + + + 0 + + + + + + 90 + 330 + 51 + 51 + + + + . + + + + + + 90 + 190 + 51 + 51 + + + + 5 + + + + + + 90 + 260 + 51 + 51 + + + + 8 + + + + + + 160 + 190 + 51 + 51 + + + + 6 + + + + + + 20 + 190 + 51 + 51 + + + + 4 + + + + + + 20 + 260 + 51 + 51 + + + + 7 + + + + + + 10 + 60 + 281 + 31 + + + + 6 + + + Qt::AlignCenter + + + + + + 230 + 260 + 61 + 51 + + + + CLEAR + + + + + + 160 + 120 + 51 + 51 + + + + 3 + + + + + + 160 + 260 + 51 + 51 + + + + 9 + + + + + + 230 + 120 + 61 + 51 + + + + DELETE + + + + + + 230 + 190 + 61 + 51 + + + + CANCEL + + + + + + 230 + 330 + 61 + 51 + + + + ENTER + + + + + + 60 + 10 + 191 + 41 + + + + + 20 + + + + Input password + + + + + + diff --git a/thread.cpp b/thread.cpp new file mode 100644 index 0000000..db3d8fb --- /dev/null +++ b/thread.cpp @@ -0,0 +1,435 @@ +#include "camera.h" +#include "thread.h" +#include +#include +#include +#include +#include +#include "unistd.h" +#include +#include +#include + +QSemaphore emptybuff(2); //空缓冲区信号量 +QSemaphore fullbuff(0); //正在处理的缓冲区信号量 +QMutex judge_connect_mutex; + + +cv::Mat img_buf1, img_buf2; //抓取图像缓冲区 +bool is_first_buf = true; //当前存入图像的缓冲区序号,初始化第1个缓冲区 +extern int save_flag; +extern bool is_connected; +extern int area_threshold; +extern int delay_time; +extern bool empty_flag; +extern int blow_time; +extern int fd_img; +int fd_result; +bool loss_flag = false; + +uint8_t temp_buf[(PULSE_NUMBER - TRIGGER_PULSE_NUMBER)*(VALVE_NUMBER/8)]; //每次处理结果的最后100个脉冲数据暂存 + + +extern void __stdcall onImageDataCallBackFunc(unsigned char * pData, MV_FRAME_OUT_INFO_EX* pFrameInfo, void* pUser) +{ + if (pFrameInfo) //帧信息有效 + { + cv::Mat img(pFrameInfo->nHeight, pFrameInfo->nWidth, CV_8UC3, pData); //构造图像 + + if(!emptybuff.tryAcquire()) //申请空缓冲区 + { + loss_flag = true; + qDebug()<<"loss loss loss loss loss loss loss loss"; + return; + } + + if(is_first_buf) + { + img_buf1 = img; + is_first_buf = false; //切换缓冲区 + fullbuff.release(); //释放正在处理的缓冲区 + + //qDebug()<<"_____buffer 1 get data_____"; + } + else + { + img_buf2 = img; + is_first_buf = true; + fullbuff.release(); + + //qDebug()<<"_____buffer 2 get data_____"; + } + } + return ; +} + +extern void __stdcall onOfflineCallBackFunc(unsigned int nMsgType, void* pUser) +{ + qDebug()<<"camera offline"; + judge_connect_mutex.lock(); + is_connected = false; + judge_connect_mutex.unlock(); + return; +} + + +Process_img::Process_img(QObject *parent) : QThread(parent), m_stop(false) +{ + +} + + +void Process_img::run() +{ + qDebug()<<"deal thread:"< 0) //确保为0 + { + fullbuff.acquire(n); + } + memset(temp_buf, 0, sizeof(temp_buf)); + while(1) + { + + stop_mutex.lock(); //是否停止 + if(m_stop) + { + stop_mutex.unlock(); + qDebug()<<"process thread quit_______________________"; + return; + } + stop_mutex.unlock(); + if(!fullbuff.tryAcquire()) + { + continue; + } + + if(is_first_buf) + { + emit send_image(img_buf2); //向主线程发送图片 + data_process(img_buf2); +// cv::cvtColor(img_buf2, img_buf2, CV_BGRA2RGB); +// save_img(img_buf2); + emptybuff.release(); + } + else + { + emit send_image(img_buf1); + data_process(img_buf1); +// cv::cvtColor(img_buf1, img_buf1, CV_BGRA2RGB); +// save_img(img_buf1); + emptybuff.release(); + } + } +} + + +void Process_img::exitThread() +{ + stop_mutex.lock(); + m_stop = true; + stop_mutex.unlock(); +} + +void Process_img::data_process(cv::Mat img) +{ + int ret = write(fd_img, img.data, img.rows*img.cols*3*sizeof(unsigned char)); + if(ret<0) + { + qDebug()<<"write error"; + } + uint8_t buf[1024]; + + fd_result = open(RESULT_PIPE, O_RDONLY); + if(fd_result != -1) + { + ret = read(fd_result, buf, 1024); + } + close(fd_result); + //qDebug()< bounding_box_set; + + for(int i=0; i1) +// { +// valve_index1++; +// valve_index2 = valve_index1; +// } + // 延长过小的糖果缺陷所需脉冲个数 + int defect_size = end - start; + //qDebug()< (PULSE_NUMBER-1)) +// { +// end = PULSE_NUMBER-1; +// } +// else +// { +// end = end + compensation; +// } + if((start - compensation > 0) && ((end + compensation) < PULSE_NUMBER - 1)) + { + start = start - compensation; + end = end + compensation; + } + if((start - compensation) < 0) + { + start = 0; + end = end + compensation + (compensation - start); + } + if((end + compensation) > (PULSE_NUMBER - 1)) + { + end = PULSE_NUMBER - 1; + start = start - compensation -(compensation - (PULSE_NUMBER - 1 - end)); + } + } + + //qDebug() << "valve_index1" << valve_index1 << " valve_index2" <=0; j--) + { + for(int k = 0; k < 8 ; k++) + temp = (temp << 1) | (plc_data[i][j*8 + k]); + send_buf[i * (VALVE_NUMBER/8) + j] = temp; + } + } + + for(int i=0; i < (PULSE_NUMBER - TRIGGER_PULSE_NUMBER)*(VALVE_NUMBER/8); i++) //这次图像的前100个脉冲与上次图像的后100脉冲取或运算,合并重合部分的两次处理结果 + { + send_buf[i] &= temp_buf[i]; + } + + memcpy(temp_buf, &send_buf[TRIGGER_PULSE_NUMBER*(VALVE_NUMBER/8)], (PULSE_NUMBER - TRIGGER_PULSE_NUMBER)*(VALVE_NUMBER/8)); //保存这次成像的后100脉冲处理结果 + + emit send_tab(send_buf); //通知主线程向下位机发送结果 +} + + +void Process_img::save_img(cv::Mat img) +{ + QDateTime time = QDateTime::currentDateTime(); + QString str = time.toString("yyyyMMddhhmmss"); + QString filepath = SAVE_IMAGE_PATH + str + ".bmp"; + cv::imwrite(filepath.toLatin1().data(), img); +} + + + +Adjust_para::Adjust_para(QObject *parent) : QThread(parent), m_stop(false), correct_flag(false) +{ + +} + + +void Adjust_para::run() +{ + int n = fullbuff.available(); + if(n > 0) + { + fullbuff.acquire(n); + } + + while(1) + { + stop_mutex.lock(); + if(m_stop) + { + stop_mutex.unlock(); + return; + } + stop_mutex.unlock(); + if(!fullbuff.tryAcquire()) + { + continue; + } + + if(is_first_buf) + { + emit send_image_debug(img_buf2); + correct_mutex.lock(); + if(correct_flag) + { + cv::imwrite("./correct.bmp", img_buf2); + + correct_flag = false; + } + correct_mutex.unlock(); + emptybuff.release(); + } + else + { + emit send_image_debug(img_buf1); + correct_mutex.lock(); + if(correct_flag) + { + cv::imwrite("./correct.bmp", img_buf1); + + correct_flag = false; + } + correct_mutex.unlock(); + emptybuff.release(); + } + } +} + + +void Adjust_para::exitThread() +{ + stop_mutex.lock(); + m_stop = true; + stop_mutex.unlock(); +} + + +void Adjust_para::get_correct_siganl() +{ + correct_mutex.lock(); + correct_flag = true; + correct_mutex.unlock(); +} + + +//test_thread +Grab_img::Grab_img(QObject *parent) : QThread(parent) +{ + is_stop = false; +} + +void Grab_img::run() +{ + int n = emptybuff.available(); + if(n < 2) + { + emptybuff.release(2 - n); + } + + while (1) + { + stop_mutex.lock(); + if(is_stop) + { + stop_mutex.unlock(); + qDebug()<<"grab thread will exit"; + return; + } + stop_mutex.unlock(); + + if(!emptybuff.tryAcquire()) + { + continue; + } + + if(is_first_buf) + { + char file_name[128] = "20220524085547.bmp"; + char test_img_path[128] = TEST_IMAGE_PATH; + strcat(test_img_path, file_name); + img_buf1 = cv::imread(test_img_path, 1); + is_first_buf = false; + fullbuff.release(); + } + else + { + char file_name[128] = "20220524091200.bmp"; + char test_img_path[128] = TEST_IMAGE_PATH; + strcat(test_img_path, file_name); + img_buf2 = cv::imread(test_img_path, 1); + is_first_buf = true; + fullbuff.release(); + } + msleep(200); + } +} + + +void Grab_img::thread_quit() +{ + stop_mutex.lock(); + is_stop = true; + stop_mutex.unlock(); +} + diff --git a/thread.h b/thread.h new file mode 100644 index 0000000..2064127 --- /dev/null +++ b/thread.h @@ -0,0 +1,108 @@ +#ifndef THREAD_H +#define THREAD_H + +#include +#include "opencv2/opencv.hpp" +#include +#include +#include +#include + +#define SAVE_IMAGE_PATH "/home/nvidia/candyPic/" +#define TEST_IMAGE_PATH "/home/nvidia/testImg/" +#define CONFIG_PATH "/home/nvidia/CandyProject/candy/para.ini" +#define CAMERA_CONFIG_PATH "/home/nvidia/CandyProject/candy/ccc.mfs" +#define RESULT_PATH "/home/nvidia/result/" +#define MODEL_INFO_PATH "/home/nvidia/CandyProject/yolov5/weights/model_info.txt" +#define CUR_MODEL_PATH "/home/nvidia/CandyProject/yolov5/weights/current_model.txt" +#define MODEL_PATH "/home/nvidia/CandyProject/yolov5/weights/" + + +#define VALVE_INTERVAL 49.5f // 2376(像素) / 48(喷阀个数) +#define TIME_INTERVAL 0.932f // 每个脉冲对应的像素个数 计算方法:图片像素数/对应脉冲数 +#define IMG_SAVE_PATH "./images5/%d.bmp" //路径自己指定,必须存在 +#define PULSE_NUMBER 626 // 一张图片占据648个编码器脉冲 +#define TRIGGER_PULSE_NUMBER 500 // 相机每隔500个脉冲触发一次(若修改,则需要联系下位机) +#define VALVE_NUMBER 48 // 喷阀个数(必须是8的倍数) + +// 识别相关 +#define SMALL_DEFECT_SIZE 170 // 当缺陷长度小于该值时自动补齐到EXPAND_SIZE +#define EXPAND_SIZE 170 // 将缺陷区域的大小以原位置为中心向上下延长到EXPAND_SIZE +#define RESULT_PIPE "/tmp/result_fifo.pipe" + +typedef struct +{ + int pointA_x; + int pointA_y; + int pointB_x; + int pointB_y; +}bad_candy_box; + + +class Process_img: public QThread +{ Q_OBJECT + +private: + QMutex stop_mutex; + bool m_stop; + +protected: + void run(); + +public: + explicit Process_img(QObject *parent = NULL); + void exitThread(); + void data_process(cv::Mat img); + void save_img(cv::Mat img); + + +signals: + void send_image(cv::Mat); + void send_res(QVector); + void send_tab(uint8_t*); +}; + + + + +class Adjust_para: public QThread +{ Q_OBJECT +private: + QMutex stop_mutex; + bool m_stop; + bool correct_flag; + QMutex correct_mutex; + +protected: + void run(); + +public: + explicit Adjust_para(QObject *parent = NULL); + void exitThread(); + +public slots: + void get_correct_siganl(); + +signals: + void send_image_debug(cv::Mat); +}; + + +//test_thread +class Grab_img: public QThread +{ Q_OBJECT +private: + QMutex stop_mutex; + bool is_stop; + +public: + explicit Grab_img(QObject *parent = NULL); + void judge_stop(); + void thread_quit(); + +protected: + void run(); +}; + +#endif // THREAD_H + diff --git a/thread.o b/thread.o new file mode 100644 index 0000000..afdc2e2 Binary files /dev/null and b/thread.o differ diff --git a/ui_initwidget.h b/ui_initwidget.h new file mode 100644 index 0000000..53ccfd5 --- /dev/null +++ b/ui_initwidget.h @@ -0,0 +1,70 @@ +/******************************************************************************** +** Form generated from reading UI file 'initwidget.ui' +** +** Created by: Qt User Interface Compiler version 4.8.7 +** +** WARNING! All changes made in this file will be lost when recompiling UI file! +********************************************************************************/ + +#ifndef UI_INITWIDGET_H +#define UI_INITWIDGET_H + +#include +#include +#include +#include +#include +#include +#include + +QT_BEGIN_NAMESPACE + +class Ui_InitWidget +{ +public: + QLabel *label; + QLabel *label_2; + + void setupUi(QWidget *InitWidget) + { + if (InitWidget->objectName().isEmpty()) + InitWidget->setObjectName(QString::fromUtf8("InitWidget")); + InitWidget->resize(1024, 768); + label = new QLabel(InitWidget); + label->setObjectName(QString::fromUtf8("label")); + label->setGeometry(QRect(130, 80, 741, 220)); + QFont font; + font.setPointSize(36); + label->setFont(font); + label->setAlignment(Qt::AlignCenter); + label_2 = new QLabel(InitWidget); + label_2->setObjectName(QString::fromUtf8("label_2")); + label_2->setGeometry(QRect(342, 656, 340, 71)); + QFont font1; + font1.setPointSize(21); + label_2->setFont(font1); + label_2->setAlignment(Qt::AlignCenter); + + retranslateUi(InitWidget); + + QMetaObject::connectSlotsByName(InitWidget); + } // setupUi + + void retranslateUi(QWidget *InitWidget) + { + InitWidget->setWindowTitle(QApplication::translate("InitWidget", "Form", 0, QApplication::UnicodeUTF8)); + label->setText(QApplication::translate("InitWidget", "\345\215\227\351\200\232\347\273\264\345\260\224\346\226\257\346\234\272\346\242\260\347\247\221\346\212\200\346\234\211\351\231\220\345\205\254\345\217\270\n" +"Nantong Wealth Technical Co, Ltd", 0, QApplication::UnicodeUTF8)); + label_2->setText(QApplication::translate("InitWidget", "\347\263\273\347\273\237\345\210\235\345\247\213\345\214\226\344\270\255...\n" +"Initialization...", 0, QApplication::UnicodeUTF8)); + } // retranslateUi + +}; + +namespace Ui { + class InitWidget: public Ui_InitWidget {}; +} // namespace Ui + +QT_END_NAMESPACE + +#endif // UI_INITWIDGET_H diff --git a/ui_modifypasswdialog.h b/ui_modifypasswdialog.h new file mode 100644 index 0000000..c13e88a --- /dev/null +++ b/ui_modifypasswdialog.h @@ -0,0 +1,161 @@ +/******************************************************************************** +** Form generated from reading UI file 'modifypasswdialog.ui' +** +** Created by: Qt User Interface Compiler version 4.8.7 +** +** WARNING! All changes made in this file will be lost when recompiling UI file! +********************************************************************************/ + +#ifndef UI_MODIFYPASSWDIALOG_H +#define UI_MODIFYPASSWDIALOG_H + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +QT_BEGIN_NAMESPACE + +class Ui_ModifyPasswdialog +{ +public: + QLineEdit *lineEdit; + QLabel *label; + QPushButton *btn9; + QPushButton *btn4; + QPushButton *btnDot; + QPushButton *btn3; + QPushButton *btn6; + QPushButton *btnCL; + QPushButton *btn0; + QPushButton *btn8; + QPushButton *btnEnt; + QPushButton *btn2; + QPushButton *btn7; + QPushButton *btn1; + QPushButton *btn5; + QPushButton *btnDE; + QPushButton *btnCancel; + QLineEdit *lineEdit_2; + QLabel *label_2; + QLabel *label_3; + + void setupUi(QDialog *ModifyPasswdialog) + { + if (ModifyPasswdialog->objectName().isEmpty()) + ModifyPasswdialog->setObjectName(QString::fromUtf8("ModifyPasswdialog")); + ModifyPasswdialog->resize(348, 432); + lineEdit = new QLineEdit(ModifyPasswdialog); + lineEdit->setObjectName(QString::fromUtf8("lineEdit")); + lineEdit->setGeometry(QRect(10, 60, 221, 31)); + lineEdit->setMaxLength(6); + lineEdit->setAlignment(Qt::AlignCenter); + label = new QLabel(ModifyPasswdialog); + label->setObjectName(QString::fromUtf8("label")); + label->setGeometry(QRect(60, 10, 191, 41)); + QFont font; + font.setPointSize(20); + label->setFont(font); + btn9 = new QPushButton(ModifyPasswdialog); + btn9->setObjectName(QString::fromUtf8("btn9")); + btn9->setGeometry(QRect(160, 290, 51, 51)); + btn4 = new QPushButton(ModifyPasswdialog); + btn4->setObjectName(QString::fromUtf8("btn4")); + btn4->setGeometry(QRect(20, 220, 51, 51)); + btnDot = new QPushButton(ModifyPasswdialog); + btnDot->setObjectName(QString::fromUtf8("btnDot")); + btnDot->setGeometry(QRect(90, 360, 51, 51)); + btn3 = new QPushButton(ModifyPasswdialog); + btn3->setObjectName(QString::fromUtf8("btn3")); + btn3->setGeometry(QRect(160, 150, 51, 51)); + btn6 = new QPushButton(ModifyPasswdialog); + btn6->setObjectName(QString::fromUtf8("btn6")); + btn6->setGeometry(QRect(160, 220, 51, 51)); + btnCL = new QPushButton(ModifyPasswdialog); + btnCL->setObjectName(QString::fromUtf8("btnCL")); + btnCL->setGeometry(QRect(230, 290, 61, 51)); + btn0 = new QPushButton(ModifyPasswdialog); + btn0->setObjectName(QString::fromUtf8("btn0")); + btn0->setGeometry(QRect(20, 360, 51, 51)); + btn8 = new QPushButton(ModifyPasswdialog); + btn8->setObjectName(QString::fromUtf8("btn8")); + btn8->setGeometry(QRect(90, 290, 51, 51)); + btnEnt = new QPushButton(ModifyPasswdialog); + btnEnt->setObjectName(QString::fromUtf8("btnEnt")); + btnEnt->setGeometry(QRect(230, 360, 61, 51)); + btn2 = new QPushButton(ModifyPasswdialog); + btn2->setObjectName(QString::fromUtf8("btn2")); + btn2->setGeometry(QRect(90, 150, 51, 51)); + btn7 = new QPushButton(ModifyPasswdialog); + btn7->setObjectName(QString::fromUtf8("btn7")); + btn7->setGeometry(QRect(20, 290, 51, 51)); + btn1 = new QPushButton(ModifyPasswdialog); + btn1->setObjectName(QString::fromUtf8("btn1")); + btn1->setGeometry(QRect(20, 150, 51, 51)); + btn5 = new QPushButton(ModifyPasswdialog); + btn5->setObjectName(QString::fromUtf8("btn5")); + btn5->setGeometry(QRect(90, 220, 51, 51)); + btnDE = new QPushButton(ModifyPasswdialog); + btnDE->setObjectName(QString::fromUtf8("btnDE")); + btnDE->setGeometry(QRect(230, 150, 61, 51)); + btnCancel = new QPushButton(ModifyPasswdialog); + btnCancel->setObjectName(QString::fromUtf8("btnCancel")); + btnCancel->setGeometry(QRect(230, 220, 61, 51)); + lineEdit_2 = new QLineEdit(ModifyPasswdialog); + lineEdit_2->setObjectName(QString::fromUtf8("lineEdit_2")); + lineEdit_2->setGeometry(QRect(10, 100, 221, 31)); + lineEdit_2->setMaxLength(6); + lineEdit_2->setAlignment(Qt::AlignCenter); + label_2 = new QLabel(ModifyPasswdialog); + label_2->setObjectName(QString::fromUtf8("label_2")); + label_2->setGeometry(QRect(240, 60, 81, 31)); + QFont font1; + font1.setPointSize(17); + label_2->setFont(font1); + label_3 = new QLabel(ModifyPasswdialog); + label_3->setObjectName(QString::fromUtf8("label_3")); + label_3->setGeometry(QRect(240, 100, 101, 31)); + label_3->setFont(font1); + + retranslateUi(ModifyPasswdialog); + + QMetaObject::connectSlotsByName(ModifyPasswdialog); + } // setupUi + + void retranslateUi(QDialog *ModifyPasswdialog) + { + ModifyPasswdialog->setWindowTitle(QApplication::translate("ModifyPasswdialog", "Dialog", 0, QApplication::UnicodeUTF8)); + label->setText(QApplication::translate("ModifyPasswdialog", "Input Password", 0, QApplication::UnicodeUTF8)); + btn9->setText(QApplication::translate("ModifyPasswdialog", "9", 0, QApplication::UnicodeUTF8)); + btn4->setText(QApplication::translate("ModifyPasswdialog", "4", 0, QApplication::UnicodeUTF8)); + btnDot->setText(QApplication::translate("ModifyPasswdialog", ".", 0, QApplication::UnicodeUTF8)); + btn3->setText(QApplication::translate("ModifyPasswdialog", "3", 0, QApplication::UnicodeUTF8)); + btn6->setText(QApplication::translate("ModifyPasswdialog", "6", 0, QApplication::UnicodeUTF8)); + btnCL->setText(QApplication::translate("ModifyPasswdialog", "CLEAR", 0, QApplication::UnicodeUTF8)); + btn0->setText(QApplication::translate("ModifyPasswdialog", "0", 0, QApplication::UnicodeUTF8)); + btn8->setText(QApplication::translate("ModifyPasswdialog", "8", 0, QApplication::UnicodeUTF8)); + btnEnt->setText(QApplication::translate("ModifyPasswdialog", "ENTER", 0, QApplication::UnicodeUTF8)); + btn2->setText(QApplication::translate("ModifyPasswdialog", "2", 0, QApplication::UnicodeUTF8)); + btn7->setText(QApplication::translate("ModifyPasswdialog", "7", 0, QApplication::UnicodeUTF8)); + btn1->setText(QApplication::translate("ModifyPasswdialog", "1", 0, QApplication::UnicodeUTF8)); + btn5->setText(QApplication::translate("ModifyPasswdialog", "5", 0, QApplication::UnicodeUTF8)); + btnDE->setText(QApplication::translate("ModifyPasswdialog", "DELETE", 0, QApplication::UnicodeUTF8)); + btnCancel->setText(QApplication::translate("ModifyPasswdialog", "CANCEL", 0, QApplication::UnicodeUTF8)); + label_2->setText(QApplication::translate("ModifyPasswdialog", "NEW", 0, QApplication::UnicodeUTF8)); + label_3->setText(QApplication::translate("ModifyPasswdialog", "CONFIRM", 0, QApplication::UnicodeUTF8)); + } // retranslateUi + +}; + +namespace Ui { + class ModifyPasswdialog: public Ui_ModifyPasswdialog {}; +} // namespace Ui + +QT_END_NAMESPACE + +#endif // UI_MODIFYPASSWDIALOG_H diff --git a/ui_passwddialog.h b/ui_passwddialog.h new file mode 100644 index 0000000..60c8c93 --- /dev/null +++ b/ui_passwddialog.h @@ -0,0 +1,141 @@ +/******************************************************************************** +** Form generated from reading UI file 'passwddialog.ui' +** +** Created by: Qt User Interface Compiler version 4.8.7 +** +** WARNING! All changes made in this file will be lost when recompiling UI file! +********************************************************************************/ + +#ifndef UI_PASSWDDIALOG_H +#define UI_PASSWDDIALOG_H + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +QT_BEGIN_NAMESPACE + +class Ui_PasswdDialog +{ +public: + QPushButton *btn1; + QPushButton *btn2; + QPushButton *btn0; + QPushButton *btnDot; + QPushButton *btn5; + QPushButton *btn8; + QPushButton *btn6; + QPushButton *btn4; + QPushButton *btn7; + QLineEdit *lineEdit; + QPushButton *btnCL; + QPushButton *btn3; + QPushButton *btn9; + QPushButton *btnDE; + QPushButton *btnCancel; + QPushButton *btnEnt; + QLabel *label; + + void setupUi(QDialog *PasswdDialog) + { + if (PasswdDialog->objectName().isEmpty()) + PasswdDialog->setObjectName(QString::fromUtf8("PasswdDialog")); + PasswdDialog->resize(300, 433); + btn1 = new QPushButton(PasswdDialog); + btn1->setObjectName(QString::fromUtf8("btn1")); + btn1->setGeometry(QRect(20, 120, 51, 51)); + btn2 = new QPushButton(PasswdDialog); + btn2->setObjectName(QString::fromUtf8("btn2")); + btn2->setGeometry(QRect(90, 120, 51, 51)); + btn0 = new QPushButton(PasswdDialog); + btn0->setObjectName(QString::fromUtf8("btn0")); + btn0->setGeometry(QRect(20, 330, 51, 51)); + btnDot = new QPushButton(PasswdDialog); + btnDot->setObjectName(QString::fromUtf8("btnDot")); + btnDot->setGeometry(QRect(90, 330, 51, 51)); + btn5 = new QPushButton(PasswdDialog); + btn5->setObjectName(QString::fromUtf8("btn5")); + btn5->setGeometry(QRect(90, 190, 51, 51)); + btn8 = new QPushButton(PasswdDialog); + btn8->setObjectName(QString::fromUtf8("btn8")); + btn8->setGeometry(QRect(90, 260, 51, 51)); + btn6 = new QPushButton(PasswdDialog); + btn6->setObjectName(QString::fromUtf8("btn6")); + btn6->setGeometry(QRect(160, 190, 51, 51)); + btn4 = new QPushButton(PasswdDialog); + btn4->setObjectName(QString::fromUtf8("btn4")); + btn4->setGeometry(QRect(20, 190, 51, 51)); + btn7 = new QPushButton(PasswdDialog); + btn7->setObjectName(QString::fromUtf8("btn7")); + btn7->setGeometry(QRect(20, 260, 51, 51)); + lineEdit = new QLineEdit(PasswdDialog); + lineEdit->setObjectName(QString::fromUtf8("lineEdit")); + lineEdit->setGeometry(QRect(10, 60, 281, 31)); + lineEdit->setMaxLength(6); + lineEdit->setAlignment(Qt::AlignCenter); + btnCL = new QPushButton(PasswdDialog); + btnCL->setObjectName(QString::fromUtf8("btnCL")); + btnCL->setGeometry(QRect(230, 260, 61, 51)); + btn3 = new QPushButton(PasswdDialog); + btn3->setObjectName(QString::fromUtf8("btn3")); + btn3->setGeometry(QRect(160, 120, 51, 51)); + btn9 = new QPushButton(PasswdDialog); + btn9->setObjectName(QString::fromUtf8("btn9")); + btn9->setGeometry(QRect(160, 260, 51, 51)); + btnDE = new QPushButton(PasswdDialog); + btnDE->setObjectName(QString::fromUtf8("btnDE")); + btnDE->setGeometry(QRect(230, 120, 61, 51)); + btnCancel = new QPushButton(PasswdDialog); + btnCancel->setObjectName(QString::fromUtf8("btnCancel")); + btnCancel->setGeometry(QRect(230, 190, 61, 51)); + btnEnt = new QPushButton(PasswdDialog); + btnEnt->setObjectName(QString::fromUtf8("btnEnt")); + btnEnt->setGeometry(QRect(230, 330, 61, 51)); + label = new QLabel(PasswdDialog); + label->setObjectName(QString::fromUtf8("label")); + label->setGeometry(QRect(60, 10, 191, 41)); + QFont font; + font.setPointSize(20); + label->setFont(font); + + retranslateUi(PasswdDialog); + + QMetaObject::connectSlotsByName(PasswdDialog); + } // setupUi + + void retranslateUi(QDialog *PasswdDialog) + { + PasswdDialog->setWindowTitle(QApplication::translate("PasswdDialog", "Dialog", 0, QApplication::UnicodeUTF8)); + btn1->setText(QApplication::translate("PasswdDialog", "1", 0, QApplication::UnicodeUTF8)); + btn2->setText(QApplication::translate("PasswdDialog", "2", 0, QApplication::UnicodeUTF8)); + btn0->setText(QApplication::translate("PasswdDialog", "0", 0, QApplication::UnicodeUTF8)); + btnDot->setText(QApplication::translate("PasswdDialog", ".", 0, QApplication::UnicodeUTF8)); + btn5->setText(QApplication::translate("PasswdDialog", "5", 0, QApplication::UnicodeUTF8)); + btn8->setText(QApplication::translate("PasswdDialog", "8", 0, QApplication::UnicodeUTF8)); + btn6->setText(QApplication::translate("PasswdDialog", "6", 0, QApplication::UnicodeUTF8)); + btn4->setText(QApplication::translate("PasswdDialog", "4", 0, QApplication::UnicodeUTF8)); + btn7->setText(QApplication::translate("PasswdDialog", "7", 0, QApplication::UnicodeUTF8)); + btnCL->setText(QApplication::translate("PasswdDialog", "CLEAR", 0, QApplication::UnicodeUTF8)); + btn3->setText(QApplication::translate("PasswdDialog", "3", 0, QApplication::UnicodeUTF8)); + btn9->setText(QApplication::translate("PasswdDialog", "9", 0, QApplication::UnicodeUTF8)); + btnDE->setText(QApplication::translate("PasswdDialog", "DELETE", 0, QApplication::UnicodeUTF8)); + btnCancel->setText(QApplication::translate("PasswdDialog", "CANCEL", 0, QApplication::UnicodeUTF8)); + btnEnt->setText(QApplication::translate("PasswdDialog", "ENTER", 0, QApplication::UnicodeUTF8)); + label->setText(QApplication::translate("PasswdDialog", "Input password", 0, QApplication::UnicodeUTF8)); + } // retranslateUi + +}; + +namespace Ui { + class PasswdDialog: public Ui_PasswdDialog {}; +} // namespace Ui + +QT_END_NAMESPACE + +#endif // UI_PASSWDDIALOG_H diff --git a/ui_widget.h b/ui_widget.h new file mode 100644 index 0000000..582a4cf --- /dev/null +++ b/ui_widget.h @@ -0,0 +1,1478 @@ +/******************************************************************************** +** Form generated from reading UI file 'widget.ui' +** +** Created by: Qt User Interface Compiler version 4.8.7 +** +** WARNING! All changes made in this file will be lost when recompiling UI file! +********************************************************************************/ + +#ifndef UI_WIDGET_H +#define UI_WIDGET_H + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +QT_BEGIN_NAMESPACE + +class Ui_Widget +{ +public: + QTabWidget *tabWidget; + QWidget *tab_1; + QPushButton *btn_Tab1_2; + QPushButton *btn_Tab1_3; + QLabel *label_1_1; + QLabel *label_1_5; + QLabel *MCU_status; + QPushButton *btn_close; + QWidget *tab_2; + QLabel *showlabel; + QPushButton *btnStart; + QPushButton *btnStop; + QPushButton *btn_Tab2_1; + QPushButton *btn_Tab2_5; + QLabel *label_stop; + QWidget *tab_3; + QPushButton *btn_Tab3_4; + QPushButton *btn_Tab3_6; + QLabel *label_3_3; + QPushButton *btnValveTest; + QPushButton *btn_Tab3_1; + QPushButton *btnImportImg; + QPushButton *btnSaveImg; + QPushButton *btnImportModel; + QPushButton *btnModifyPasswd; + QPushButton *btnManualValveTest; + QWidget *tab_4; + QLabel *showlabel_set; + QLabel *label_4_1; + QLabel *label_4_2; + QLabel *label_4_3; + QPushButton *btn_setcamerapara; + QDoubleSpinBox *gain_spinBox; + QDoubleSpinBox *et_spinBox; + QSpinBox *white_spinBox; + QPushButton *btn_getcorrect; + QPushButton *btn_correct; + QPushButton *btn_Tab4_3; + QLabel *label_1; + QLabel *label_2; + QWidget *tab_5; + QLabel *label_5_2; + QLabel *label_5_3; + QSpinBox *area_spinBox; + QSpinBox *delay_spinBox; + QLabel *label_5_1; + QPushButton *btn_Tab5_3; + QPushButton *btn_set_thereshold; + QLabel *label_5_4; + QSpinBox *blow_time_spinbox; + QPushButton *btn2; + QPushButton *btn3; + QPushButton *btn4; + QPushButton *btn5; + QPushButton *btn6; + QPushButton *btn7; + QPushButton *btn8; + QPushButton *btn9; + QPushButton *btn_DEL; + QPushButton *btn1; + QPushButton *btn0; + QLabel *label_5_5; + QSpinBox *rigorous_spinbox; + QWidget *tab_123; + QLabel *label_6_1; + QPushButton *btn_Tab6_3; + QComboBox *candy_select_box; + QWidget *tab; + QLabel *label_7_1; + QLabel *label; + QLabel *label_channel; + QPushButton *btn_channel_up; + QPushButton *btn_channel_down; + QPushButton *btn_Tab7_3; + QPushButton *btn_channel_send; + + void setupUi(QWidget *Widget) + { + if (Widget->objectName().isEmpty()) + Widget->setObjectName(QString::fromUtf8("Widget")); + Widget->resize(1024, 768); + tabWidget = new QTabWidget(Widget); + tabWidget->setObjectName(QString::fromUtf8("tabWidget")); + tabWidget->setGeometry(QRect(0, 0, 1021, 761)); + tabWidget->setStyleSheet(QString::fromUtf8("background-color: rgb(218, 239, 252);")); + tab_1 = new QWidget(); + tab_1->setObjectName(QString::fromUtf8("tab_1")); + btn_Tab1_2 = new QPushButton(tab_1); + btn_Tab1_2->setObjectName(QString::fromUtf8("btn_Tab1_2")); + btn_Tab1_2->setGeometry(QRect(100, 210, 291, 121)); + QPalette palette; + QBrush brush(QColor(238, 238, 236, 255)); + brush.setStyle(Qt::SolidPattern); + palette.setBrush(QPalette::Active, QPalette::WindowText, brush); + QBrush brush1(QColor(136, 138, 133, 255)); + brush1.setStyle(Qt::SolidPattern); + palette.setBrush(QPalette::Active, QPalette::Button, brush1); + QBrush brush2(QColor(204, 207, 200, 255)); + brush2.setStyle(Qt::SolidPattern); + palette.setBrush(QPalette::Active, QPalette::Light, brush2); + QBrush brush3(QColor(170, 172, 166, 255)); + brush3.setStyle(Qt::SolidPattern); + palette.setBrush(QPalette::Active, QPalette::Midlight, brush3); + QBrush brush4(QColor(68, 69, 66, 255)); + brush4.setStyle(Qt::SolidPattern); + palette.setBrush(QPalette::Active, QPalette::Dark, brush4); + QBrush brush5(QColor(91, 92, 89, 255)); + brush5.setStyle(Qt::SolidPattern); + palette.setBrush(QPalette::Active, QPalette::Mid, brush5); + palette.setBrush(QPalette::Active, QPalette::Text, brush); + QBrush brush6(QColor(255, 255, 255, 255)); + brush6.setStyle(Qt::SolidPattern); + palette.setBrush(QPalette::Active, QPalette::BrightText, brush6); + palette.setBrush(QPalette::Active, QPalette::ButtonText, brush); + palette.setBrush(QPalette::Active, QPalette::Base, brush1); + palette.setBrush(QPalette::Active, QPalette::Window, brush1); + QBrush brush7(QColor(0, 0, 0, 255)); + brush7.setStyle(Qt::SolidPattern); + palette.setBrush(QPalette::Active, QPalette::Shadow, brush7); + QBrush brush8(QColor(195, 196, 194, 255)); + brush8.setStyle(Qt::SolidPattern); + palette.setBrush(QPalette::Active, QPalette::AlternateBase, brush8); + QBrush brush9(QColor(255, 255, 220, 255)); + brush9.setStyle(Qt::SolidPattern); + palette.setBrush(QPalette::Active, QPalette::ToolTipBase, brush9); + palette.setBrush(QPalette::Active, QPalette::ToolTipText, brush7); + palette.setBrush(QPalette::Inactive, QPalette::WindowText, brush); + palette.setBrush(QPalette::Inactive, QPalette::Button, brush1); + palette.setBrush(QPalette::Inactive, QPalette::Light, brush2); + palette.setBrush(QPalette::Inactive, QPalette::Midlight, brush3); + palette.setBrush(QPalette::Inactive, QPalette::Dark, brush4); + palette.setBrush(QPalette::Inactive, QPalette::Mid, brush5); + palette.setBrush(QPalette::Inactive, QPalette::Text, brush); + palette.setBrush(QPalette::Inactive, QPalette::BrightText, brush6); + palette.setBrush(QPalette::Inactive, QPalette::ButtonText, brush); + palette.setBrush(QPalette::Inactive, QPalette::Base, brush1); + palette.setBrush(QPalette::Inactive, QPalette::Window, brush1); + palette.setBrush(QPalette::Inactive, QPalette::Shadow, brush7); + palette.setBrush(QPalette::Inactive, QPalette::AlternateBase, brush8); + palette.setBrush(QPalette::Inactive, QPalette::ToolTipBase, brush9); + palette.setBrush(QPalette::Inactive, QPalette::ToolTipText, brush7); + palette.setBrush(QPalette::Disabled, QPalette::WindowText, brush); + palette.setBrush(QPalette::Disabled, QPalette::Button, brush1); + palette.setBrush(QPalette::Disabled, QPalette::Light, brush2); + palette.setBrush(QPalette::Disabled, QPalette::Midlight, brush3); + palette.setBrush(QPalette::Disabled, QPalette::Dark, brush4); + palette.setBrush(QPalette::Disabled, QPalette::Mid, brush5); + palette.setBrush(QPalette::Disabled, QPalette::Text, brush); + palette.setBrush(QPalette::Disabled, QPalette::BrightText, brush6); + palette.setBrush(QPalette::Disabled, QPalette::ButtonText, brush); + palette.setBrush(QPalette::Disabled, QPalette::Base, brush1); + palette.setBrush(QPalette::Disabled, QPalette::Window, brush1); + palette.setBrush(QPalette::Disabled, QPalette::Shadow, brush7); + palette.setBrush(QPalette::Disabled, QPalette::AlternateBase, brush1); + palette.setBrush(QPalette::Disabled, QPalette::ToolTipBase, brush9); + palette.setBrush(QPalette::Disabled, QPalette::ToolTipText, brush7); + btn_Tab1_2->setPalette(palette); + QFont font; + font.setFamily(QString::fromUtf8("Ubuntu")); + font.setPointSize(24); + font.setBold(false); + font.setItalic(false); + font.setWeight(50); + btn_Tab1_2->setFont(font); + btn_Tab1_2->setStyleSheet(QString::fromUtf8("color: rgb(238, 238, 236);\n" +"border-radius:10px;\n" +"background-color: rgb(136, 138, 133);\n" +"font: 24pt \"Ubuntu\";\n" +"border-width:4px; ")); + btn_Tab1_3 = new QPushButton(tab_1); + btn_Tab1_3->setObjectName(QString::fromUtf8("btn_Tab1_3")); + btn_Tab1_3->setGeometry(QRect(570, 210, 291, 121)); + QPalette palette1; + palette1.setBrush(QPalette::Active, QPalette::WindowText, brush); + palette1.setBrush(QPalette::Active, QPalette::Button, brush1); + palette1.setBrush(QPalette::Active, QPalette::Light, brush2); + palette1.setBrush(QPalette::Active, QPalette::Midlight, brush3); + palette1.setBrush(QPalette::Active, QPalette::Dark, brush4); + palette1.setBrush(QPalette::Active, QPalette::Mid, brush5); + palette1.setBrush(QPalette::Active, QPalette::Text, brush); + palette1.setBrush(QPalette::Active, QPalette::BrightText, brush6); + palette1.setBrush(QPalette::Active, QPalette::ButtonText, brush); + palette1.setBrush(QPalette::Active, QPalette::Base, brush1); + palette1.setBrush(QPalette::Active, QPalette::Window, brush1); + palette1.setBrush(QPalette::Active, QPalette::Shadow, brush7); + palette1.setBrush(QPalette::Active, QPalette::AlternateBase, brush8); + palette1.setBrush(QPalette::Active, QPalette::ToolTipBase, brush9); + palette1.setBrush(QPalette::Active, QPalette::ToolTipText, brush7); + palette1.setBrush(QPalette::Inactive, QPalette::WindowText, brush); + palette1.setBrush(QPalette::Inactive, QPalette::Button, brush1); + palette1.setBrush(QPalette::Inactive, QPalette::Light, brush2); + palette1.setBrush(QPalette::Inactive, QPalette::Midlight, brush3); + palette1.setBrush(QPalette::Inactive, QPalette::Dark, brush4); + palette1.setBrush(QPalette::Inactive, QPalette::Mid, brush5); + palette1.setBrush(QPalette::Inactive, QPalette::Text, brush); + palette1.setBrush(QPalette::Inactive, QPalette::BrightText, brush6); + palette1.setBrush(QPalette::Inactive, QPalette::ButtonText, brush); + palette1.setBrush(QPalette::Inactive, QPalette::Base, brush1); + palette1.setBrush(QPalette::Inactive, QPalette::Window, brush1); + palette1.setBrush(QPalette::Inactive, QPalette::Shadow, brush7); + palette1.setBrush(QPalette::Inactive, QPalette::AlternateBase, brush8); + palette1.setBrush(QPalette::Inactive, QPalette::ToolTipBase, brush9); + palette1.setBrush(QPalette::Inactive, QPalette::ToolTipText, brush7); + palette1.setBrush(QPalette::Disabled, QPalette::WindowText, brush); + palette1.setBrush(QPalette::Disabled, QPalette::Button, brush1); + palette1.setBrush(QPalette::Disabled, QPalette::Light, brush2); + palette1.setBrush(QPalette::Disabled, QPalette::Midlight, brush3); + palette1.setBrush(QPalette::Disabled, QPalette::Dark, brush4); + palette1.setBrush(QPalette::Disabled, QPalette::Mid, brush5); + palette1.setBrush(QPalette::Disabled, QPalette::Text, brush); + palette1.setBrush(QPalette::Disabled, QPalette::BrightText, brush6); + palette1.setBrush(QPalette::Disabled, QPalette::ButtonText, brush); + palette1.setBrush(QPalette::Disabled, QPalette::Base, brush1); + palette1.setBrush(QPalette::Disabled, QPalette::Window, brush1); + palette1.setBrush(QPalette::Disabled, QPalette::Shadow, brush7); + palette1.setBrush(QPalette::Disabled, QPalette::AlternateBase, brush1); + palette1.setBrush(QPalette::Disabled, QPalette::ToolTipBase, brush9); + palette1.setBrush(QPalette::Disabled, QPalette::ToolTipText, brush7); + btn_Tab1_3->setPalette(palette1); + QFont font1; + font1.setPointSize(24); + btn_Tab1_3->setFont(font1); + btn_Tab1_3->setStyleSheet(QString::fromUtf8("color: rgb(238, 238, 236); \n" +"background-color: rgb(136, 138, 133);\n" +"font: 24pt \"Ubuntu\";\n" +"border-radius:10px;")); + label_1_1 = new QLabel(tab_1); + label_1_1->setObjectName(QString::fromUtf8("label_1_1")); + label_1_1->setGeometry(QRect(35, 10, 921, 61)); + QFont font2; + font2.setPointSize(40); + label_1_1->setFont(font2); + label_1_1->setStyleSheet(QString::fromUtf8("color: rgb(238, 238, 236);\n" +"background-color: rgb(136, 138, 133);\n" +"border-width:4px;\n" +"border-radius:25px;")); + label_1_1->setAlignment(Qt::AlignCenter); + label_1_5 = new QLabel(tab_1); + label_1_5->setObjectName(QString::fromUtf8("label_1_5")); + label_1_5->setGeometry(QRect(35, 640, 931, 61)); + label_1_5->setFont(font2); + label_1_5->setStyleSheet(QString::fromUtf8("color: rgb(238, 238, 236);\n" +"background-color: rgb(136, 138, 133);\n" +"border-width:4px;\n" +"border-radius:25px;")); + label_1_5->setAlignment(Qt::AlignCenter); + MCU_status = new QLabel(tab_1); + MCU_status->setObjectName(QString::fromUtf8("MCU_status")); + MCU_status->setGeometry(QRect(870, 560, 71, 41)); + btn_close = new QPushButton(tab_1); + btn_close->setObjectName(QString::fromUtf8("btn_close")); + btn_close->setGeometry(QRect(590, 530, 231, 101)); + QFont font3; + font3.setFamily(QString::fromUtf8("Samyak Devanagari")); + font3.setPointSize(20); + font3.setBold(true); + font3.setWeight(75); + btn_close->setFont(font3); + btn_close->setStyleSheet(QString::fromUtf8("color: rgb(238, 238, 236);\n" +"background-color: rgb(204, 0, 0);\n" +"border-radius:10px;")); + tabWidget->addTab(tab_1, QString()); + tab_2 = new QWidget(); + tab_2->setObjectName(QString::fromUtf8("tab_2")); + showlabel = new QLabel(tab_2); + showlabel->setObjectName(QString::fromUtf8("showlabel")); + showlabel->setGeometry(QRect(0, 0, 981, 521)); + showlabel->setStyleSheet(QString::fromUtf8("background-color: rgb(0, 0, 0);")); + btnStart = new QPushButton(tab_2); + btnStart->setObjectName(QString::fromUtf8("btnStart")); + btnStart->setGeometry(QRect(20, 580, 221, 91)); + QPalette palette2; + palette2.setBrush(QPalette::Active, QPalette::WindowText, brush); + palette2.setBrush(QPalette::Active, QPalette::Button, brush1); + palette2.setBrush(QPalette::Active, QPalette::Light, brush2); + palette2.setBrush(QPalette::Active, QPalette::Midlight, brush3); + palette2.setBrush(QPalette::Active, QPalette::Dark, brush4); + palette2.setBrush(QPalette::Active, QPalette::Mid, brush5); + palette2.setBrush(QPalette::Active, QPalette::Text, brush); + palette2.setBrush(QPalette::Active, QPalette::BrightText, brush6); + palette2.setBrush(QPalette::Active, QPalette::ButtonText, brush); + palette2.setBrush(QPalette::Active, QPalette::Base, brush1); + palette2.setBrush(QPalette::Active, QPalette::Window, brush1); + palette2.setBrush(QPalette::Active, QPalette::Shadow, brush7); + palette2.setBrush(QPalette::Active, QPalette::AlternateBase, brush8); + palette2.setBrush(QPalette::Active, QPalette::ToolTipBase, brush9); + palette2.setBrush(QPalette::Active, QPalette::ToolTipText, brush7); + palette2.setBrush(QPalette::Inactive, QPalette::WindowText, brush); + palette2.setBrush(QPalette::Inactive, QPalette::Button, brush1); + palette2.setBrush(QPalette::Inactive, QPalette::Light, brush2); + palette2.setBrush(QPalette::Inactive, QPalette::Midlight, brush3); + palette2.setBrush(QPalette::Inactive, QPalette::Dark, brush4); + palette2.setBrush(QPalette::Inactive, QPalette::Mid, brush5); + palette2.setBrush(QPalette::Inactive, QPalette::Text, brush); + palette2.setBrush(QPalette::Inactive, QPalette::BrightText, brush6); + palette2.setBrush(QPalette::Inactive, QPalette::ButtonText, brush); + palette2.setBrush(QPalette::Inactive, QPalette::Base, brush1); + palette2.setBrush(QPalette::Inactive, QPalette::Window, brush1); + palette2.setBrush(QPalette::Inactive, QPalette::Shadow, brush7); + palette2.setBrush(QPalette::Inactive, QPalette::AlternateBase, brush8); + palette2.setBrush(QPalette::Inactive, QPalette::ToolTipBase, brush9); + palette2.setBrush(QPalette::Inactive, QPalette::ToolTipText, brush7); + palette2.setBrush(QPalette::Disabled, QPalette::WindowText, brush); + palette2.setBrush(QPalette::Disabled, QPalette::Button, brush1); + palette2.setBrush(QPalette::Disabled, QPalette::Light, brush2); + palette2.setBrush(QPalette::Disabled, QPalette::Midlight, brush3); + palette2.setBrush(QPalette::Disabled, QPalette::Dark, brush4); + palette2.setBrush(QPalette::Disabled, QPalette::Mid, brush5); + palette2.setBrush(QPalette::Disabled, QPalette::Text, brush); + palette2.setBrush(QPalette::Disabled, QPalette::BrightText, brush6); + palette2.setBrush(QPalette::Disabled, QPalette::ButtonText, brush); + palette2.setBrush(QPalette::Disabled, QPalette::Base, brush1); + palette2.setBrush(QPalette::Disabled, QPalette::Window, brush1); + palette2.setBrush(QPalette::Disabled, QPalette::Shadow, brush7); + palette2.setBrush(QPalette::Disabled, QPalette::AlternateBase, brush1); + palette2.setBrush(QPalette::Disabled, QPalette::ToolTipBase, brush9); + palette2.setBrush(QPalette::Disabled, QPalette::ToolTipText, brush7); + btnStart->setPalette(palette2); + btnStart->setFont(font1); + btnStart->setStyleSheet(QString::fromUtf8("color: rgb(238, 238, 236);\n" +"border-radius:15px;\n" +"background-color: rgb(136, 138, 133);\n" +"border-width:4px; ")); + btnStop = new QPushButton(tab_2); + btnStop->setObjectName(QString::fromUtf8("btnStop")); + btnStop->setGeometry(QRect(260, 580, 221, 91)); + QPalette palette3; + palette3.setBrush(QPalette::Active, QPalette::WindowText, brush7); + QBrush brush10(QColor(46, 52, 54, 255)); + brush10.setStyle(Qt::SolidPattern); + palette3.setBrush(QPalette::Active, QPalette::Button, brush10); + palette3.setBrush(QPalette::Active, QPalette::Light, brush2); + palette3.setBrush(QPalette::Active, QPalette::Midlight, brush3); + palette3.setBrush(QPalette::Active, QPalette::Dark, brush4); + palette3.setBrush(QPalette::Active, QPalette::Mid, brush5); + palette3.setBrush(QPalette::Active, QPalette::Text, brush7); + palette3.setBrush(QPalette::Active, QPalette::BrightText, brush6); + palette3.setBrush(QPalette::Active, QPalette::ButtonText, brush7); + palette3.setBrush(QPalette::Active, QPalette::Base, brush10); + palette3.setBrush(QPalette::Active, QPalette::Window, brush10); + palette3.setBrush(QPalette::Active, QPalette::Shadow, brush7); + palette3.setBrush(QPalette::Active, QPalette::AlternateBase, brush8); + palette3.setBrush(QPalette::Active, QPalette::ToolTipBase, brush9); + palette3.setBrush(QPalette::Active, QPalette::ToolTipText, brush7); + palette3.setBrush(QPalette::Inactive, QPalette::WindowText, brush7); + palette3.setBrush(QPalette::Inactive, QPalette::Button, brush10); + palette3.setBrush(QPalette::Inactive, QPalette::Light, brush2); + palette3.setBrush(QPalette::Inactive, QPalette::Midlight, brush3); + palette3.setBrush(QPalette::Inactive, QPalette::Dark, brush4); + palette3.setBrush(QPalette::Inactive, QPalette::Mid, brush5); + palette3.setBrush(QPalette::Inactive, QPalette::Text, brush7); + palette3.setBrush(QPalette::Inactive, QPalette::BrightText, brush6); + palette3.setBrush(QPalette::Inactive, QPalette::ButtonText, brush7); + palette3.setBrush(QPalette::Inactive, QPalette::Base, brush10); + palette3.setBrush(QPalette::Inactive, QPalette::Window, brush10); + palette3.setBrush(QPalette::Inactive, QPalette::Shadow, brush7); + palette3.setBrush(QPalette::Inactive, QPalette::AlternateBase, brush8); + palette3.setBrush(QPalette::Inactive, QPalette::ToolTipBase, brush9); + palette3.setBrush(QPalette::Inactive, QPalette::ToolTipText, brush7); + palette3.setBrush(QPalette::Disabled, QPalette::WindowText, brush7); + palette3.setBrush(QPalette::Disabled, QPalette::Button, brush10); + palette3.setBrush(QPalette::Disabled, QPalette::Light, brush2); + palette3.setBrush(QPalette::Disabled, QPalette::Midlight, brush3); + palette3.setBrush(QPalette::Disabled, QPalette::Dark, brush4); + palette3.setBrush(QPalette::Disabled, QPalette::Mid, brush5); + palette3.setBrush(QPalette::Disabled, QPalette::Text, brush7); + palette3.setBrush(QPalette::Disabled, QPalette::BrightText, brush6); + palette3.setBrush(QPalette::Disabled, QPalette::ButtonText, brush7); + palette3.setBrush(QPalette::Disabled, QPalette::Base, brush10); + palette3.setBrush(QPalette::Disabled, QPalette::Window, brush10); + palette3.setBrush(QPalette::Disabled, QPalette::Shadow, brush7); + palette3.setBrush(QPalette::Disabled, QPalette::AlternateBase, brush1); + palette3.setBrush(QPalette::Disabled, QPalette::ToolTipBase, brush9); + palette3.setBrush(QPalette::Disabled, QPalette::ToolTipText, brush7); + btnStop->setPalette(palette3); + btnStop->setFont(font1); + btnStop->setStyleSheet(QString::fromUtf8("color: rgb(0, 0, 0);\n" +"background-color: rgb(46, 52, 54);\n" +"border-radius:10px;")); + btn_Tab2_1 = new QPushButton(tab_2); + btn_Tab2_1->setObjectName(QString::fromUtf8("btn_Tab2_1")); + btn_Tab2_1->setGeometry(QRect(510, 580, 221, 91)); + QPalette palette4; + palette4.setBrush(QPalette::Active, QPalette::WindowText, brush); + palette4.setBrush(QPalette::Active, QPalette::Button, brush1); + palette4.setBrush(QPalette::Active, QPalette::Light, brush2); + palette4.setBrush(QPalette::Active, QPalette::Midlight, brush3); + palette4.setBrush(QPalette::Active, QPalette::Dark, brush4); + palette4.setBrush(QPalette::Active, QPalette::Mid, brush5); + palette4.setBrush(QPalette::Active, QPalette::Text, brush); + palette4.setBrush(QPalette::Active, QPalette::BrightText, brush6); + palette4.setBrush(QPalette::Active, QPalette::ButtonText, brush); + palette4.setBrush(QPalette::Active, QPalette::Base, brush1); + palette4.setBrush(QPalette::Active, QPalette::Window, brush1); + palette4.setBrush(QPalette::Active, QPalette::Shadow, brush7); + palette4.setBrush(QPalette::Active, QPalette::AlternateBase, brush8); + palette4.setBrush(QPalette::Active, QPalette::ToolTipBase, brush9); + palette4.setBrush(QPalette::Active, QPalette::ToolTipText, brush7); + palette4.setBrush(QPalette::Inactive, QPalette::WindowText, brush); + palette4.setBrush(QPalette::Inactive, QPalette::Button, brush1); + palette4.setBrush(QPalette::Inactive, QPalette::Light, brush2); + palette4.setBrush(QPalette::Inactive, QPalette::Midlight, brush3); + palette4.setBrush(QPalette::Inactive, QPalette::Dark, brush4); + palette4.setBrush(QPalette::Inactive, QPalette::Mid, brush5); + palette4.setBrush(QPalette::Inactive, QPalette::Text, brush); + palette4.setBrush(QPalette::Inactive, QPalette::BrightText, brush6); + palette4.setBrush(QPalette::Inactive, QPalette::ButtonText, brush); + palette4.setBrush(QPalette::Inactive, QPalette::Base, brush1); + palette4.setBrush(QPalette::Inactive, QPalette::Window, brush1); + palette4.setBrush(QPalette::Inactive, QPalette::Shadow, brush7); + palette4.setBrush(QPalette::Inactive, QPalette::AlternateBase, brush8); + palette4.setBrush(QPalette::Inactive, QPalette::ToolTipBase, brush9); + palette4.setBrush(QPalette::Inactive, QPalette::ToolTipText, brush7); + palette4.setBrush(QPalette::Disabled, QPalette::WindowText, brush); + palette4.setBrush(QPalette::Disabled, QPalette::Button, brush1); + palette4.setBrush(QPalette::Disabled, QPalette::Light, brush2); + palette4.setBrush(QPalette::Disabled, QPalette::Midlight, brush3); + palette4.setBrush(QPalette::Disabled, QPalette::Dark, brush4); + palette4.setBrush(QPalette::Disabled, QPalette::Mid, brush5); + palette4.setBrush(QPalette::Disabled, QPalette::Text, brush); + palette4.setBrush(QPalette::Disabled, QPalette::BrightText, brush6); + palette4.setBrush(QPalette::Disabled, QPalette::ButtonText, brush); + palette4.setBrush(QPalette::Disabled, QPalette::Base, brush1); + palette4.setBrush(QPalette::Disabled, QPalette::Window, brush1); + palette4.setBrush(QPalette::Disabled, QPalette::Shadow, brush7); + palette4.setBrush(QPalette::Disabled, QPalette::AlternateBase, brush1); + palette4.setBrush(QPalette::Disabled, QPalette::ToolTipBase, brush9); + palette4.setBrush(QPalette::Disabled, QPalette::ToolTipText, brush7); + btn_Tab2_1->setPalette(palette4); + btn_Tab2_1->setFont(font1); + btn_Tab2_1->setStyleSheet(QString::fromUtf8("color: rgb(238, 238, 236);\n" +"border-radius:10px;\n" +"background-color: rgb(136, 138, 133);\n" +"font: 24pt \"Ubuntu\";\n" +"border-width:4px; ")); + btn_Tab2_5 = new QPushButton(tab_2); + btn_Tab2_5->setObjectName(QString::fromUtf8("btn_Tab2_5")); + btn_Tab2_5->setGeometry(QRect(760, 580, 221, 91)); + QPalette palette5; + palette5.setBrush(QPalette::Active, QPalette::WindowText, brush); + palette5.setBrush(QPalette::Active, QPalette::Button, brush1); + palette5.setBrush(QPalette::Active, QPalette::Light, brush2); + palette5.setBrush(QPalette::Active, QPalette::Midlight, brush3); + palette5.setBrush(QPalette::Active, QPalette::Dark, brush4); + palette5.setBrush(QPalette::Active, QPalette::Mid, brush5); + palette5.setBrush(QPalette::Active, QPalette::Text, brush); + palette5.setBrush(QPalette::Active, QPalette::BrightText, brush6); + palette5.setBrush(QPalette::Active, QPalette::ButtonText, brush); + palette5.setBrush(QPalette::Active, QPalette::Base, brush1); + palette5.setBrush(QPalette::Active, QPalette::Window, brush1); + palette5.setBrush(QPalette::Active, QPalette::Shadow, brush7); + palette5.setBrush(QPalette::Active, QPalette::AlternateBase, brush8); + palette5.setBrush(QPalette::Active, QPalette::ToolTipBase, brush9); + palette5.setBrush(QPalette::Active, QPalette::ToolTipText, brush7); + palette5.setBrush(QPalette::Inactive, QPalette::WindowText, brush); + palette5.setBrush(QPalette::Inactive, QPalette::Button, brush1); + palette5.setBrush(QPalette::Inactive, QPalette::Light, brush2); + palette5.setBrush(QPalette::Inactive, QPalette::Midlight, brush3); + palette5.setBrush(QPalette::Inactive, QPalette::Dark, brush4); + palette5.setBrush(QPalette::Inactive, QPalette::Mid, brush5); + palette5.setBrush(QPalette::Inactive, QPalette::Text, brush); + palette5.setBrush(QPalette::Inactive, QPalette::BrightText, brush6); + palette5.setBrush(QPalette::Inactive, QPalette::ButtonText, brush); + palette5.setBrush(QPalette::Inactive, QPalette::Base, brush1); + palette5.setBrush(QPalette::Inactive, QPalette::Window, brush1); + palette5.setBrush(QPalette::Inactive, QPalette::Shadow, brush7); + palette5.setBrush(QPalette::Inactive, QPalette::AlternateBase, brush8); + palette5.setBrush(QPalette::Inactive, QPalette::ToolTipBase, brush9); + palette5.setBrush(QPalette::Inactive, QPalette::ToolTipText, brush7); + palette5.setBrush(QPalette::Disabled, QPalette::WindowText, brush); + palette5.setBrush(QPalette::Disabled, QPalette::Button, brush1); + palette5.setBrush(QPalette::Disabled, QPalette::Light, brush2); + palette5.setBrush(QPalette::Disabled, QPalette::Midlight, brush3); + palette5.setBrush(QPalette::Disabled, QPalette::Dark, brush4); + palette5.setBrush(QPalette::Disabled, QPalette::Mid, brush5); + palette5.setBrush(QPalette::Disabled, QPalette::Text, brush); + palette5.setBrush(QPalette::Disabled, QPalette::BrightText, brush6); + palette5.setBrush(QPalette::Disabled, QPalette::ButtonText, brush); + palette5.setBrush(QPalette::Disabled, QPalette::Base, brush1); + palette5.setBrush(QPalette::Disabled, QPalette::Window, brush1); + palette5.setBrush(QPalette::Disabled, QPalette::Shadow, brush7); + palette5.setBrush(QPalette::Disabled, QPalette::AlternateBase, brush1); + palette5.setBrush(QPalette::Disabled, QPalette::ToolTipBase, brush9); + palette5.setBrush(QPalette::Disabled, QPalette::ToolTipText, brush7); + btn_Tab2_5->setPalette(palette5); + btn_Tab2_5->setFont(font1); + btn_Tab2_5->setStyleSheet(QString::fromUtf8("color: rgb(238, 238, 236);\n" +"border-radius:10px;\n" +"background-color: rgb(136, 138, 133);\n" +"font: 24pt \"Ubuntu\";\n" +"border-width:4px; ")); + label_stop = new QLabel(tab_2); + label_stop->setObjectName(QString::fromUtf8("label_stop")); + label_stop->setGeometry(QRect(290, 530, 161, 41)); + QFont font4; + font4.setPointSize(18); + label_stop->setFont(font4); + tabWidget->addTab(tab_2, QString()); + tab_3 = new QWidget(); + tab_3->setObjectName(QString::fromUtf8("tab_3")); + btn_Tab3_4 = new QPushButton(tab_3); + btn_Tab3_4->setObjectName(QString::fromUtf8("btn_Tab3_4")); + btn_Tab3_4->setGeometry(QRect(130, 140, 291, 81)); + QPalette palette6; + palette6.setBrush(QPalette::Active, QPalette::WindowText, brush); + palette6.setBrush(QPalette::Active, QPalette::Button, brush1); + palette6.setBrush(QPalette::Active, QPalette::Light, brush2); + palette6.setBrush(QPalette::Active, QPalette::Midlight, brush3); + palette6.setBrush(QPalette::Active, QPalette::Dark, brush4); + palette6.setBrush(QPalette::Active, QPalette::Mid, brush5); + palette6.setBrush(QPalette::Active, QPalette::Text, brush); + palette6.setBrush(QPalette::Active, QPalette::BrightText, brush6); + palette6.setBrush(QPalette::Active, QPalette::ButtonText, brush); + palette6.setBrush(QPalette::Active, QPalette::Base, brush1); + palette6.setBrush(QPalette::Active, QPalette::Window, brush1); + palette6.setBrush(QPalette::Active, QPalette::Shadow, brush7); + palette6.setBrush(QPalette::Active, QPalette::AlternateBase, brush8); + palette6.setBrush(QPalette::Active, QPalette::ToolTipBase, brush9); + palette6.setBrush(QPalette::Active, QPalette::ToolTipText, brush7); + palette6.setBrush(QPalette::Inactive, QPalette::WindowText, brush); + palette6.setBrush(QPalette::Inactive, QPalette::Button, brush1); + palette6.setBrush(QPalette::Inactive, QPalette::Light, brush2); + palette6.setBrush(QPalette::Inactive, QPalette::Midlight, brush3); + palette6.setBrush(QPalette::Inactive, QPalette::Dark, brush4); + palette6.setBrush(QPalette::Inactive, QPalette::Mid, brush5); + palette6.setBrush(QPalette::Inactive, QPalette::Text, brush); + palette6.setBrush(QPalette::Inactive, QPalette::BrightText, brush6); + palette6.setBrush(QPalette::Inactive, QPalette::ButtonText, brush); + palette6.setBrush(QPalette::Inactive, QPalette::Base, brush1); + palette6.setBrush(QPalette::Inactive, QPalette::Window, brush1); + palette6.setBrush(QPalette::Inactive, QPalette::Shadow, brush7); + palette6.setBrush(QPalette::Inactive, QPalette::AlternateBase, brush8); + palette6.setBrush(QPalette::Inactive, QPalette::ToolTipBase, brush9); + palette6.setBrush(QPalette::Inactive, QPalette::ToolTipText, brush7); + palette6.setBrush(QPalette::Disabled, QPalette::WindowText, brush); + palette6.setBrush(QPalette::Disabled, QPalette::Button, brush1); + palette6.setBrush(QPalette::Disabled, QPalette::Light, brush2); + palette6.setBrush(QPalette::Disabled, QPalette::Midlight, brush3); + palette6.setBrush(QPalette::Disabled, QPalette::Dark, brush4); + palette6.setBrush(QPalette::Disabled, QPalette::Mid, brush5); + palette6.setBrush(QPalette::Disabled, QPalette::Text, brush); + palette6.setBrush(QPalette::Disabled, QPalette::BrightText, brush6); + palette6.setBrush(QPalette::Disabled, QPalette::ButtonText, brush); + palette6.setBrush(QPalette::Disabled, QPalette::Base, brush1); + palette6.setBrush(QPalette::Disabled, QPalette::Window, brush1); + palette6.setBrush(QPalette::Disabled, QPalette::Shadow, brush7); + palette6.setBrush(QPalette::Disabled, QPalette::AlternateBase, brush1); + palette6.setBrush(QPalette::Disabled, QPalette::ToolTipBase, brush9); + palette6.setBrush(QPalette::Disabled, QPalette::ToolTipText, brush7); + btn_Tab3_4->setPalette(palette6); + btn_Tab3_4->setFont(font); + btn_Tab3_4->setStyleSheet(QString::fromUtf8("color: rgb(238, 238, 236);\n" +"border-radius:10px;\n" +"background-color: rgb(136, 138, 133);\n" +"font: 24pt \"Ubuntu\";\n" +"border-width:4px; ")); + btn_Tab3_6 = new QPushButton(tab_3); + btn_Tab3_6->setObjectName(QString::fromUtf8("btn_Tab3_6")); + btn_Tab3_6->setGeometry(QRect(130, 270, 291, 81)); + QPalette palette7; + palette7.setBrush(QPalette::Active, QPalette::WindowText, brush); + palette7.setBrush(QPalette::Active, QPalette::Button, brush1); + palette7.setBrush(QPalette::Active, QPalette::Light, brush2); + palette7.setBrush(QPalette::Active, QPalette::Midlight, brush3); + palette7.setBrush(QPalette::Active, QPalette::Dark, brush4); + palette7.setBrush(QPalette::Active, QPalette::Mid, brush5); + palette7.setBrush(QPalette::Active, QPalette::Text, brush); + palette7.setBrush(QPalette::Active, QPalette::BrightText, brush6); + palette7.setBrush(QPalette::Active, QPalette::ButtonText, brush); + palette7.setBrush(QPalette::Active, QPalette::Base, brush1); + palette7.setBrush(QPalette::Active, QPalette::Window, brush1); + palette7.setBrush(QPalette::Active, QPalette::Shadow, brush7); + palette7.setBrush(QPalette::Active, QPalette::AlternateBase, brush8); + palette7.setBrush(QPalette::Active, QPalette::ToolTipBase, brush9); + palette7.setBrush(QPalette::Active, QPalette::ToolTipText, brush7); + palette7.setBrush(QPalette::Inactive, QPalette::WindowText, brush); + palette7.setBrush(QPalette::Inactive, QPalette::Button, brush1); + palette7.setBrush(QPalette::Inactive, QPalette::Light, brush2); + palette7.setBrush(QPalette::Inactive, QPalette::Midlight, brush3); + palette7.setBrush(QPalette::Inactive, QPalette::Dark, brush4); + palette7.setBrush(QPalette::Inactive, QPalette::Mid, brush5); + palette7.setBrush(QPalette::Inactive, QPalette::Text, brush); + palette7.setBrush(QPalette::Inactive, QPalette::BrightText, brush6); + palette7.setBrush(QPalette::Inactive, QPalette::ButtonText, brush); + palette7.setBrush(QPalette::Inactive, QPalette::Base, brush1); + palette7.setBrush(QPalette::Inactive, QPalette::Window, brush1); + palette7.setBrush(QPalette::Inactive, QPalette::Shadow, brush7); + palette7.setBrush(QPalette::Inactive, QPalette::AlternateBase, brush8); + palette7.setBrush(QPalette::Inactive, QPalette::ToolTipBase, brush9); + palette7.setBrush(QPalette::Inactive, QPalette::ToolTipText, brush7); + palette7.setBrush(QPalette::Disabled, QPalette::WindowText, brush); + palette7.setBrush(QPalette::Disabled, QPalette::Button, brush1); + palette7.setBrush(QPalette::Disabled, QPalette::Light, brush2); + palette7.setBrush(QPalette::Disabled, QPalette::Midlight, brush3); + palette7.setBrush(QPalette::Disabled, QPalette::Dark, brush4); + palette7.setBrush(QPalette::Disabled, QPalette::Mid, brush5); + palette7.setBrush(QPalette::Disabled, QPalette::Text, brush); + palette7.setBrush(QPalette::Disabled, QPalette::BrightText, brush6); + palette7.setBrush(QPalette::Disabled, QPalette::ButtonText, brush); + palette7.setBrush(QPalette::Disabled, QPalette::Base, brush1); + palette7.setBrush(QPalette::Disabled, QPalette::Window, brush1); + palette7.setBrush(QPalette::Disabled, QPalette::Shadow, brush7); + palette7.setBrush(QPalette::Disabled, QPalette::AlternateBase, brush1); + palette7.setBrush(QPalette::Disabled, QPalette::ToolTipBase, brush9); + palette7.setBrush(QPalette::Disabled, QPalette::ToolTipText, brush7); + btn_Tab3_6->setPalette(palette7); + btn_Tab3_6->setFont(font1); + btn_Tab3_6->setStyleSheet(QString::fromUtf8("color: rgb(238, 238, 236);\n" +"border-radius:10px;\n" +"background-color: rgb(136, 138, 133);\n" +"font: 24pt \"Ubuntu\";\n" +"border-width:4px; ")); + label_3_3 = new QLabel(tab_3); + label_3_3->setObjectName(QString::fromUtf8("label_3_3")); + label_3_3->setGeometry(QRect(0, 20, 311, 101)); + QFont font5; + font5.setPointSize(30); + label_3_3->setFont(font5); + label_3_3->setStyleSheet(QString::fromUtf8("color: rgb(238, 238, 236);\n" +"background-color: rgb(204, 0, 0);\n" +"border-radius:10px;")); + label_3_3->setAlignment(Qt::AlignCenter); + btnValveTest = new QPushButton(tab_3); + btnValveTest->setObjectName(QString::fromUtf8("btnValveTest")); + btnValveTest->setGeometry(QRect(540, 140, 301, 81)); + QPalette palette8; + palette8.setBrush(QPalette::Active, QPalette::WindowText, brush); + palette8.setBrush(QPalette::Active, QPalette::Button, brush1); + palette8.setBrush(QPalette::Active, QPalette::Light, brush2); + palette8.setBrush(QPalette::Active, QPalette::Midlight, brush3); + palette8.setBrush(QPalette::Active, QPalette::Dark, brush4); + palette8.setBrush(QPalette::Active, QPalette::Mid, brush5); + palette8.setBrush(QPalette::Active, QPalette::Text, brush); + palette8.setBrush(QPalette::Active, QPalette::BrightText, brush6); + palette8.setBrush(QPalette::Active, QPalette::ButtonText, brush); + palette8.setBrush(QPalette::Active, QPalette::Base, brush1); + palette8.setBrush(QPalette::Active, QPalette::Window, brush1); + palette8.setBrush(QPalette::Active, QPalette::Shadow, brush7); + palette8.setBrush(QPalette::Active, QPalette::AlternateBase, brush8); + palette8.setBrush(QPalette::Active, QPalette::ToolTipBase, brush9); + palette8.setBrush(QPalette::Active, QPalette::ToolTipText, brush7); + palette8.setBrush(QPalette::Inactive, QPalette::WindowText, brush); + palette8.setBrush(QPalette::Inactive, QPalette::Button, brush1); + palette8.setBrush(QPalette::Inactive, QPalette::Light, brush2); + palette8.setBrush(QPalette::Inactive, QPalette::Midlight, brush3); + palette8.setBrush(QPalette::Inactive, QPalette::Dark, brush4); + palette8.setBrush(QPalette::Inactive, QPalette::Mid, brush5); + palette8.setBrush(QPalette::Inactive, QPalette::Text, brush); + palette8.setBrush(QPalette::Inactive, QPalette::BrightText, brush6); + palette8.setBrush(QPalette::Inactive, QPalette::ButtonText, brush); + palette8.setBrush(QPalette::Inactive, QPalette::Base, brush1); + palette8.setBrush(QPalette::Inactive, QPalette::Window, brush1); + palette8.setBrush(QPalette::Inactive, QPalette::Shadow, brush7); + palette8.setBrush(QPalette::Inactive, QPalette::AlternateBase, brush8); + palette8.setBrush(QPalette::Inactive, QPalette::ToolTipBase, brush9); + palette8.setBrush(QPalette::Inactive, QPalette::ToolTipText, brush7); + palette8.setBrush(QPalette::Disabled, QPalette::WindowText, brush); + palette8.setBrush(QPalette::Disabled, QPalette::Button, brush1); + palette8.setBrush(QPalette::Disabled, QPalette::Light, brush2); + palette8.setBrush(QPalette::Disabled, QPalette::Midlight, brush3); + palette8.setBrush(QPalette::Disabled, QPalette::Dark, brush4); + palette8.setBrush(QPalette::Disabled, QPalette::Mid, brush5); + palette8.setBrush(QPalette::Disabled, QPalette::Text, brush); + palette8.setBrush(QPalette::Disabled, QPalette::BrightText, brush6); + palette8.setBrush(QPalette::Disabled, QPalette::ButtonText, brush); + palette8.setBrush(QPalette::Disabled, QPalette::Base, brush1); + palette8.setBrush(QPalette::Disabled, QPalette::Window, brush1); + palette8.setBrush(QPalette::Disabled, QPalette::Shadow, brush7); + palette8.setBrush(QPalette::Disabled, QPalette::AlternateBase, brush1); + palette8.setBrush(QPalette::Disabled, QPalette::ToolTipBase, brush9); + palette8.setBrush(QPalette::Disabled, QPalette::ToolTipText, brush7); + btnValveTest->setPalette(palette8); + btnValveTest->setFont(font1); + btnValveTest->setStyleSheet(QString::fromUtf8("color: rgb(238, 238, 236);\n" +"border-radius:10px;\n" +"background-color: rgb(136, 138, 133);\n" +"font: 24pt \"Ubuntu\";\n" +"border-width:4px; ")); + btn_Tab3_1 = new QPushButton(tab_3); + btn_Tab3_1->setObjectName(QString::fromUtf8("btn_Tab3_1")); + btn_Tab3_1->setGeometry(QRect(700, 610, 221, 91)); + QPalette palette9; + palette9.setBrush(QPalette::Active, QPalette::WindowText, brush); + palette9.setBrush(QPalette::Active, QPalette::Button, brush1); + palette9.setBrush(QPalette::Active, QPalette::Light, brush2); + palette9.setBrush(QPalette::Active, QPalette::Midlight, brush3); + palette9.setBrush(QPalette::Active, QPalette::Dark, brush4); + palette9.setBrush(QPalette::Active, QPalette::Mid, brush5); + palette9.setBrush(QPalette::Active, QPalette::Text, brush); + palette9.setBrush(QPalette::Active, QPalette::BrightText, brush6); + palette9.setBrush(QPalette::Active, QPalette::ButtonText, brush); + palette9.setBrush(QPalette::Active, QPalette::Base, brush1); + palette9.setBrush(QPalette::Active, QPalette::Window, brush1); + palette9.setBrush(QPalette::Active, QPalette::Shadow, brush7); + palette9.setBrush(QPalette::Active, QPalette::AlternateBase, brush8); + palette9.setBrush(QPalette::Active, QPalette::ToolTipBase, brush9); + palette9.setBrush(QPalette::Active, QPalette::ToolTipText, brush7); + palette9.setBrush(QPalette::Inactive, QPalette::WindowText, brush); + palette9.setBrush(QPalette::Inactive, QPalette::Button, brush1); + palette9.setBrush(QPalette::Inactive, QPalette::Light, brush2); + palette9.setBrush(QPalette::Inactive, QPalette::Midlight, brush3); + palette9.setBrush(QPalette::Inactive, QPalette::Dark, brush4); + palette9.setBrush(QPalette::Inactive, QPalette::Mid, brush5); + palette9.setBrush(QPalette::Inactive, QPalette::Text, brush); + palette9.setBrush(QPalette::Inactive, QPalette::BrightText, brush6); + palette9.setBrush(QPalette::Inactive, QPalette::ButtonText, brush); + palette9.setBrush(QPalette::Inactive, QPalette::Base, brush1); + palette9.setBrush(QPalette::Inactive, QPalette::Window, brush1); + palette9.setBrush(QPalette::Inactive, QPalette::Shadow, brush7); + palette9.setBrush(QPalette::Inactive, QPalette::AlternateBase, brush8); + palette9.setBrush(QPalette::Inactive, QPalette::ToolTipBase, brush9); + palette9.setBrush(QPalette::Inactive, QPalette::ToolTipText, brush7); + palette9.setBrush(QPalette::Disabled, QPalette::WindowText, brush); + palette9.setBrush(QPalette::Disabled, QPalette::Button, brush1); + palette9.setBrush(QPalette::Disabled, QPalette::Light, brush2); + palette9.setBrush(QPalette::Disabled, QPalette::Midlight, brush3); + palette9.setBrush(QPalette::Disabled, QPalette::Dark, brush4); + palette9.setBrush(QPalette::Disabled, QPalette::Mid, brush5); + palette9.setBrush(QPalette::Disabled, QPalette::Text, brush); + palette9.setBrush(QPalette::Disabled, QPalette::BrightText, brush6); + palette9.setBrush(QPalette::Disabled, QPalette::ButtonText, brush); + palette9.setBrush(QPalette::Disabled, QPalette::Base, brush1); + palette9.setBrush(QPalette::Disabled, QPalette::Window, brush1); + palette9.setBrush(QPalette::Disabled, QPalette::Shadow, brush7); + palette9.setBrush(QPalette::Disabled, QPalette::AlternateBase, brush1); + palette9.setBrush(QPalette::Disabled, QPalette::ToolTipBase, brush9); + palette9.setBrush(QPalette::Disabled, QPalette::ToolTipText, brush7); + btn_Tab3_1->setPalette(palette9); + btn_Tab3_1->setFont(font1); + btn_Tab3_1->setStyleSheet(QString::fromUtf8("color: rgb(238, 238, 236);\n" +"border-radius:10px;\n" +"background-color: rgb(136, 138, 133);\n" +"font: 24pt \"Ubuntu\";\n" +"border-width:4px; ")); + btnImportImg = new QPushButton(tab_3); + btnImportImg->setObjectName(QString::fromUtf8("btnImportImg")); + btnImportImg->setGeometry(QRect(130, 390, 291, 81)); + QPalette palette10; + palette10.setBrush(QPalette::Active, QPalette::WindowText, brush); + palette10.setBrush(QPalette::Active, QPalette::Button, brush1); + palette10.setBrush(QPalette::Active, QPalette::Light, brush2); + palette10.setBrush(QPalette::Active, QPalette::Midlight, brush3); + palette10.setBrush(QPalette::Active, QPalette::Dark, brush4); + palette10.setBrush(QPalette::Active, QPalette::Mid, brush5); + palette10.setBrush(QPalette::Active, QPalette::Text, brush); + palette10.setBrush(QPalette::Active, QPalette::BrightText, brush6); + palette10.setBrush(QPalette::Active, QPalette::ButtonText, brush); + palette10.setBrush(QPalette::Active, QPalette::Base, brush1); + palette10.setBrush(QPalette::Active, QPalette::Window, brush1); + palette10.setBrush(QPalette::Active, QPalette::Shadow, brush7); + palette10.setBrush(QPalette::Active, QPalette::AlternateBase, brush8); + palette10.setBrush(QPalette::Active, QPalette::ToolTipBase, brush9); + palette10.setBrush(QPalette::Active, QPalette::ToolTipText, brush7); + palette10.setBrush(QPalette::Inactive, QPalette::WindowText, brush); + palette10.setBrush(QPalette::Inactive, QPalette::Button, brush1); + palette10.setBrush(QPalette::Inactive, QPalette::Light, brush2); + palette10.setBrush(QPalette::Inactive, QPalette::Midlight, brush3); + palette10.setBrush(QPalette::Inactive, QPalette::Dark, brush4); + palette10.setBrush(QPalette::Inactive, QPalette::Mid, brush5); + palette10.setBrush(QPalette::Inactive, QPalette::Text, brush); + palette10.setBrush(QPalette::Inactive, QPalette::BrightText, brush6); + palette10.setBrush(QPalette::Inactive, QPalette::ButtonText, brush); + palette10.setBrush(QPalette::Inactive, QPalette::Base, brush1); + palette10.setBrush(QPalette::Inactive, QPalette::Window, brush1); + palette10.setBrush(QPalette::Inactive, QPalette::Shadow, brush7); + palette10.setBrush(QPalette::Inactive, QPalette::AlternateBase, brush8); + palette10.setBrush(QPalette::Inactive, QPalette::ToolTipBase, brush9); + palette10.setBrush(QPalette::Inactive, QPalette::ToolTipText, brush7); + palette10.setBrush(QPalette::Disabled, QPalette::WindowText, brush); + palette10.setBrush(QPalette::Disabled, QPalette::Button, brush1); + palette10.setBrush(QPalette::Disabled, QPalette::Light, brush2); + palette10.setBrush(QPalette::Disabled, QPalette::Midlight, brush3); + palette10.setBrush(QPalette::Disabled, QPalette::Dark, brush4); + palette10.setBrush(QPalette::Disabled, QPalette::Mid, brush5); + palette10.setBrush(QPalette::Disabled, QPalette::Text, brush); + palette10.setBrush(QPalette::Disabled, QPalette::BrightText, brush6); + palette10.setBrush(QPalette::Disabled, QPalette::ButtonText, brush); + palette10.setBrush(QPalette::Disabled, QPalette::Base, brush1); + palette10.setBrush(QPalette::Disabled, QPalette::Window, brush1); + palette10.setBrush(QPalette::Disabled, QPalette::Shadow, brush7); + palette10.setBrush(QPalette::Disabled, QPalette::AlternateBase, brush1); + palette10.setBrush(QPalette::Disabled, QPalette::ToolTipBase, brush9); + palette10.setBrush(QPalette::Disabled, QPalette::ToolTipText, brush7); + btnImportImg->setPalette(palette10); + btnImportImg->setFont(font1); + btnImportImg->setStyleSheet(QString::fromUtf8("color: rgb(238, 238, 236);\n" +"border-radius:10px;\n" +"background-color: rgb(136, 138, 133);\n" +"font: 24pt \"Ubuntu\";\n" +"border-width:4px; ")); + btnSaveImg = new QPushButton(tab_3); + btnSaveImg->setObjectName(QString::fromUtf8("btnSaveImg")); + btnSaveImg->setGeometry(QRect(540, 270, 301, 81)); + QPalette palette11; + palette11.setBrush(QPalette::Active, QPalette::WindowText, brush); + palette11.setBrush(QPalette::Active, QPalette::Button, brush1); + palette11.setBrush(QPalette::Active, QPalette::Light, brush2); + palette11.setBrush(QPalette::Active, QPalette::Midlight, brush3); + palette11.setBrush(QPalette::Active, QPalette::Dark, brush4); + palette11.setBrush(QPalette::Active, QPalette::Mid, brush5); + palette11.setBrush(QPalette::Active, QPalette::Text, brush); + palette11.setBrush(QPalette::Active, QPalette::BrightText, brush6); + palette11.setBrush(QPalette::Active, QPalette::ButtonText, brush); + palette11.setBrush(QPalette::Active, QPalette::Base, brush1); + palette11.setBrush(QPalette::Active, QPalette::Window, brush1); + palette11.setBrush(QPalette::Active, QPalette::Shadow, brush7); + palette11.setBrush(QPalette::Active, QPalette::AlternateBase, brush8); + palette11.setBrush(QPalette::Active, QPalette::ToolTipBase, brush9); + palette11.setBrush(QPalette::Active, QPalette::ToolTipText, brush7); + palette11.setBrush(QPalette::Inactive, QPalette::WindowText, brush); + palette11.setBrush(QPalette::Inactive, QPalette::Button, brush1); + palette11.setBrush(QPalette::Inactive, QPalette::Light, brush2); + palette11.setBrush(QPalette::Inactive, QPalette::Midlight, brush3); + palette11.setBrush(QPalette::Inactive, QPalette::Dark, brush4); + palette11.setBrush(QPalette::Inactive, QPalette::Mid, brush5); + palette11.setBrush(QPalette::Inactive, QPalette::Text, brush); + palette11.setBrush(QPalette::Inactive, QPalette::BrightText, brush6); + palette11.setBrush(QPalette::Inactive, QPalette::ButtonText, brush); + palette11.setBrush(QPalette::Inactive, QPalette::Base, brush1); + palette11.setBrush(QPalette::Inactive, QPalette::Window, brush1); + palette11.setBrush(QPalette::Inactive, QPalette::Shadow, brush7); + palette11.setBrush(QPalette::Inactive, QPalette::AlternateBase, brush8); + palette11.setBrush(QPalette::Inactive, QPalette::ToolTipBase, brush9); + palette11.setBrush(QPalette::Inactive, QPalette::ToolTipText, brush7); + palette11.setBrush(QPalette::Disabled, QPalette::WindowText, brush); + palette11.setBrush(QPalette::Disabled, QPalette::Button, brush1); + palette11.setBrush(QPalette::Disabled, QPalette::Light, brush2); + palette11.setBrush(QPalette::Disabled, QPalette::Midlight, brush3); + palette11.setBrush(QPalette::Disabled, QPalette::Dark, brush4); + palette11.setBrush(QPalette::Disabled, QPalette::Mid, brush5); + palette11.setBrush(QPalette::Disabled, QPalette::Text, brush); + palette11.setBrush(QPalette::Disabled, QPalette::BrightText, brush6); + palette11.setBrush(QPalette::Disabled, QPalette::ButtonText, brush); + palette11.setBrush(QPalette::Disabled, QPalette::Base, brush1); + palette11.setBrush(QPalette::Disabled, QPalette::Window, brush1); + palette11.setBrush(QPalette::Disabled, QPalette::Shadow, brush7); + palette11.setBrush(QPalette::Disabled, QPalette::AlternateBase, brush1); + palette11.setBrush(QPalette::Disabled, QPalette::ToolTipBase, brush9); + palette11.setBrush(QPalette::Disabled, QPalette::ToolTipText, brush7); + btnSaveImg->setPalette(palette11); + btnSaveImg->setFont(font1); + btnSaveImg->setStyleSheet(QString::fromUtf8("color: rgb(238, 238, 236);\n" +"border-radius:10px;\n" +"background-color: rgb(136, 138, 133);\n" +"font: 24pt \"Ubuntu\";\n" +"border-width:4px; ")); + btnImportModel = new QPushButton(tab_3); + btnImportModel->setObjectName(QString::fromUtf8("btnImportModel")); + btnImportModel->setGeometry(QRect(540, 390, 301, 81)); + QPalette palette12; + palette12.setBrush(QPalette::Active, QPalette::WindowText, brush); + palette12.setBrush(QPalette::Active, QPalette::Button, brush1); + palette12.setBrush(QPalette::Active, QPalette::Light, brush2); + palette12.setBrush(QPalette::Active, QPalette::Midlight, brush3); + palette12.setBrush(QPalette::Active, QPalette::Dark, brush4); + palette12.setBrush(QPalette::Active, QPalette::Mid, brush5); + palette12.setBrush(QPalette::Active, QPalette::Text, brush); + palette12.setBrush(QPalette::Active, QPalette::BrightText, brush6); + palette12.setBrush(QPalette::Active, QPalette::ButtonText, brush); + palette12.setBrush(QPalette::Active, QPalette::Base, brush1); + palette12.setBrush(QPalette::Active, QPalette::Window, brush1); + palette12.setBrush(QPalette::Active, QPalette::Shadow, brush7); + palette12.setBrush(QPalette::Active, QPalette::AlternateBase, brush8); + palette12.setBrush(QPalette::Active, QPalette::ToolTipBase, brush9); + palette12.setBrush(QPalette::Active, QPalette::ToolTipText, brush7); + palette12.setBrush(QPalette::Inactive, QPalette::WindowText, brush); + palette12.setBrush(QPalette::Inactive, QPalette::Button, brush1); + palette12.setBrush(QPalette::Inactive, QPalette::Light, brush2); + palette12.setBrush(QPalette::Inactive, QPalette::Midlight, brush3); + palette12.setBrush(QPalette::Inactive, QPalette::Dark, brush4); + palette12.setBrush(QPalette::Inactive, QPalette::Mid, brush5); + palette12.setBrush(QPalette::Inactive, QPalette::Text, brush); + palette12.setBrush(QPalette::Inactive, QPalette::BrightText, brush6); + palette12.setBrush(QPalette::Inactive, QPalette::ButtonText, brush); + palette12.setBrush(QPalette::Inactive, QPalette::Base, brush1); + palette12.setBrush(QPalette::Inactive, QPalette::Window, brush1); + palette12.setBrush(QPalette::Inactive, QPalette::Shadow, brush7); + palette12.setBrush(QPalette::Inactive, QPalette::AlternateBase, brush8); + palette12.setBrush(QPalette::Inactive, QPalette::ToolTipBase, brush9); + palette12.setBrush(QPalette::Inactive, QPalette::ToolTipText, brush7); + palette12.setBrush(QPalette::Disabled, QPalette::WindowText, brush); + palette12.setBrush(QPalette::Disabled, QPalette::Button, brush1); + palette12.setBrush(QPalette::Disabled, QPalette::Light, brush2); + palette12.setBrush(QPalette::Disabled, QPalette::Midlight, brush3); + palette12.setBrush(QPalette::Disabled, QPalette::Dark, brush4); + palette12.setBrush(QPalette::Disabled, QPalette::Mid, brush5); + palette12.setBrush(QPalette::Disabled, QPalette::Text, brush); + palette12.setBrush(QPalette::Disabled, QPalette::BrightText, brush6); + palette12.setBrush(QPalette::Disabled, QPalette::ButtonText, brush); + palette12.setBrush(QPalette::Disabled, QPalette::Base, brush1); + palette12.setBrush(QPalette::Disabled, QPalette::Window, brush1); + palette12.setBrush(QPalette::Disabled, QPalette::Shadow, brush7); + palette12.setBrush(QPalette::Disabled, QPalette::AlternateBase, brush1); + palette12.setBrush(QPalette::Disabled, QPalette::ToolTipBase, brush9); + palette12.setBrush(QPalette::Disabled, QPalette::ToolTipText, brush7); + btnImportModel->setPalette(palette12); + btnImportModel->setFont(font1); + btnImportModel->setStyleSheet(QString::fromUtf8("color: rgb(238, 238, 236);\n" +"border-radius:10px;\n" +"background-color: rgb(136, 138, 133);\n" +"font: 24pt \"Ubuntu\";\n" +"border-width:4px; ")); + btnModifyPasswd = new QPushButton(tab_3); + btnModifyPasswd->setObjectName(QString::fromUtf8("btnModifyPasswd")); + btnModifyPasswd->setGeometry(QRect(130, 510, 291, 81)); + QPalette palette13; + palette13.setBrush(QPalette::Active, QPalette::WindowText, brush); + palette13.setBrush(QPalette::Active, QPalette::Button, brush1); + palette13.setBrush(QPalette::Active, QPalette::Light, brush2); + palette13.setBrush(QPalette::Active, QPalette::Midlight, brush3); + palette13.setBrush(QPalette::Active, QPalette::Dark, brush4); + palette13.setBrush(QPalette::Active, QPalette::Mid, brush5); + palette13.setBrush(QPalette::Active, QPalette::Text, brush); + palette13.setBrush(QPalette::Active, QPalette::BrightText, brush6); + palette13.setBrush(QPalette::Active, QPalette::ButtonText, brush); + palette13.setBrush(QPalette::Active, QPalette::Base, brush1); + palette13.setBrush(QPalette::Active, QPalette::Window, brush1); + palette13.setBrush(QPalette::Active, QPalette::Shadow, brush7); + palette13.setBrush(QPalette::Active, QPalette::AlternateBase, brush8); + palette13.setBrush(QPalette::Active, QPalette::ToolTipBase, brush9); + palette13.setBrush(QPalette::Active, QPalette::ToolTipText, brush7); + palette13.setBrush(QPalette::Inactive, QPalette::WindowText, brush); + palette13.setBrush(QPalette::Inactive, QPalette::Button, brush1); + palette13.setBrush(QPalette::Inactive, QPalette::Light, brush2); + palette13.setBrush(QPalette::Inactive, QPalette::Midlight, brush3); + palette13.setBrush(QPalette::Inactive, QPalette::Dark, brush4); + palette13.setBrush(QPalette::Inactive, QPalette::Mid, brush5); + palette13.setBrush(QPalette::Inactive, QPalette::Text, brush); + palette13.setBrush(QPalette::Inactive, QPalette::BrightText, brush6); + palette13.setBrush(QPalette::Inactive, QPalette::ButtonText, brush); + palette13.setBrush(QPalette::Inactive, QPalette::Base, brush1); + palette13.setBrush(QPalette::Inactive, QPalette::Window, brush1); + palette13.setBrush(QPalette::Inactive, QPalette::Shadow, brush7); + palette13.setBrush(QPalette::Inactive, QPalette::AlternateBase, brush8); + palette13.setBrush(QPalette::Inactive, QPalette::ToolTipBase, brush9); + palette13.setBrush(QPalette::Inactive, QPalette::ToolTipText, brush7); + palette13.setBrush(QPalette::Disabled, QPalette::WindowText, brush); + palette13.setBrush(QPalette::Disabled, QPalette::Button, brush1); + palette13.setBrush(QPalette::Disabled, QPalette::Light, brush2); + palette13.setBrush(QPalette::Disabled, QPalette::Midlight, brush3); + palette13.setBrush(QPalette::Disabled, QPalette::Dark, brush4); + palette13.setBrush(QPalette::Disabled, QPalette::Mid, brush5); + palette13.setBrush(QPalette::Disabled, QPalette::Text, brush); + palette13.setBrush(QPalette::Disabled, QPalette::BrightText, brush6); + palette13.setBrush(QPalette::Disabled, QPalette::ButtonText, brush); + palette13.setBrush(QPalette::Disabled, QPalette::Base, brush1); + palette13.setBrush(QPalette::Disabled, QPalette::Window, brush1); + palette13.setBrush(QPalette::Disabled, QPalette::Shadow, brush7); + palette13.setBrush(QPalette::Disabled, QPalette::AlternateBase, brush1); + palette13.setBrush(QPalette::Disabled, QPalette::ToolTipBase, brush9); + palette13.setBrush(QPalette::Disabled, QPalette::ToolTipText, brush7); + btnModifyPasswd->setPalette(palette13); + btnModifyPasswd->setFont(font1); + btnModifyPasswd->setStyleSheet(QString::fromUtf8("color: rgb(238, 238, 236);\n" +"border-radius:10px;\n" +"background-color: rgb(136, 138, 133);\n" +"font: 24pt \"Ubuntu\";\n" +"border-width:4px; ")); + btnManualValveTest = new QPushButton(tab_3); + btnManualValveTest->setObjectName(QString::fromUtf8("btnManualValveTest")); + btnManualValveTest->setGeometry(QRect(540, 510, 301, 81)); + QPalette palette14; + palette14.setBrush(QPalette::Active, QPalette::WindowText, brush); + palette14.setBrush(QPalette::Active, QPalette::Button, brush1); + palette14.setBrush(QPalette::Active, QPalette::Light, brush2); + palette14.setBrush(QPalette::Active, QPalette::Midlight, brush3); + palette14.setBrush(QPalette::Active, QPalette::Dark, brush4); + palette14.setBrush(QPalette::Active, QPalette::Mid, brush5); + palette14.setBrush(QPalette::Active, QPalette::Text, brush); + palette14.setBrush(QPalette::Active, QPalette::BrightText, brush6); + palette14.setBrush(QPalette::Active, QPalette::ButtonText, brush); + palette14.setBrush(QPalette::Active, QPalette::Base, brush1); + palette14.setBrush(QPalette::Active, QPalette::Window, brush1); + palette14.setBrush(QPalette::Active, QPalette::Shadow, brush7); + palette14.setBrush(QPalette::Active, QPalette::AlternateBase, brush8); + palette14.setBrush(QPalette::Active, QPalette::ToolTipBase, brush9); + palette14.setBrush(QPalette::Active, QPalette::ToolTipText, brush7); + palette14.setBrush(QPalette::Inactive, QPalette::WindowText, brush); + palette14.setBrush(QPalette::Inactive, QPalette::Button, brush1); + palette14.setBrush(QPalette::Inactive, QPalette::Light, brush2); + palette14.setBrush(QPalette::Inactive, QPalette::Midlight, brush3); + palette14.setBrush(QPalette::Inactive, QPalette::Dark, brush4); + palette14.setBrush(QPalette::Inactive, QPalette::Mid, brush5); + palette14.setBrush(QPalette::Inactive, QPalette::Text, brush); + palette14.setBrush(QPalette::Inactive, QPalette::BrightText, brush6); + palette14.setBrush(QPalette::Inactive, QPalette::ButtonText, brush); + palette14.setBrush(QPalette::Inactive, QPalette::Base, brush1); + palette14.setBrush(QPalette::Inactive, QPalette::Window, brush1); + palette14.setBrush(QPalette::Inactive, QPalette::Shadow, brush7); + palette14.setBrush(QPalette::Inactive, QPalette::AlternateBase, brush8); + palette14.setBrush(QPalette::Inactive, QPalette::ToolTipBase, brush9); + palette14.setBrush(QPalette::Inactive, QPalette::ToolTipText, brush7); + palette14.setBrush(QPalette::Disabled, QPalette::WindowText, brush); + palette14.setBrush(QPalette::Disabled, QPalette::Button, brush1); + palette14.setBrush(QPalette::Disabled, QPalette::Light, brush2); + palette14.setBrush(QPalette::Disabled, QPalette::Midlight, brush3); + palette14.setBrush(QPalette::Disabled, QPalette::Dark, brush4); + palette14.setBrush(QPalette::Disabled, QPalette::Mid, brush5); + palette14.setBrush(QPalette::Disabled, QPalette::Text, brush); + palette14.setBrush(QPalette::Disabled, QPalette::BrightText, brush6); + palette14.setBrush(QPalette::Disabled, QPalette::ButtonText, brush); + palette14.setBrush(QPalette::Disabled, QPalette::Base, brush1); + palette14.setBrush(QPalette::Disabled, QPalette::Window, brush1); + palette14.setBrush(QPalette::Disabled, QPalette::Shadow, brush7); + palette14.setBrush(QPalette::Disabled, QPalette::AlternateBase, brush1); + palette14.setBrush(QPalette::Disabled, QPalette::ToolTipBase, brush9); + palette14.setBrush(QPalette::Disabled, QPalette::ToolTipText, brush7); + btnManualValveTest->setPalette(palette14); + btnManualValveTest->setFont(font1); + btnManualValveTest->setStyleSheet(QString::fromUtf8("color: rgb(238, 238, 236);\n" +"border-radius:10px;\n" +"background-color: rgb(136, 138, 133);\n" +"font: 24pt \"Ubuntu\";\n" +"border-width:4px; ")); + tabWidget->addTab(tab_3, QString()); + tab_4 = new QWidget(); + tab_4->setObjectName(QString::fromUtf8("tab_4")); + showlabel_set = new QLabel(tab_4); + showlabel_set->setObjectName(QString::fromUtf8("showlabel_set")); + showlabel_set->setGeometry(QRect(0, 0, 641, 431)); + showlabel_set->setStyleSheet(QString::fromUtf8("background-color: rgb(0, 0, 0);")); + label_4_1 = new QLabel(tab_4); + label_4_1->setObjectName(QString::fromUtf8("label_4_1")); + label_4_1->setGeometry(QRect(640, 60, 151, 71)); + QFont font6; + font6.setPointSize(16); + label_4_1->setFont(font6); + label_4_2 = new QLabel(tab_4); + label_4_2->setObjectName(QString::fromUtf8("label_4_2")); + label_4_2->setGeometry(QRect(640, 150, 181, 61)); + label_4_2->setFont(font6); + label_4_3 = new QLabel(tab_4); + label_4_3->setObjectName(QString::fromUtf8("label_4_3")); + label_4_3->setGeometry(QRect(640, 240, 161, 51)); + label_4_3->setFont(font6); + btn_setcamerapara = new QPushButton(tab_4); + btn_setcamerapara->setObjectName(QString::fromUtf8("btn_setcamerapara")); + btn_setcamerapara->setGeometry(QRect(690, 350, 241, 101)); + btn_setcamerapara->setFont(font1); + btn_setcamerapara->setStyleSheet(QString::fromUtf8("color: rgb(238, 238, 236);\n" +"background-color: rgb(136, 138, 133);\n" +"border-radius:10px;")); + gain_spinBox = new QDoubleSpinBox(tab_4); + gain_spinBox->setObjectName(QString::fromUtf8("gain_spinBox")); + gain_spinBox->setGeometry(QRect(780, 250, 231, 41)); + gain_spinBox->setFont(font4); + gain_spinBox->setStyleSheet(QString::fromUtf8("QDoubleSpinBox::up-button\n" +"{subcontrol-origin:border;\n" +"subcontrol-position:right;\n" +"width:50px;\n" +"height:100px;\n" +"}\n" +"QDoubleSpinBox::down-button\n" +"{subcontrol-origin:border;\n" +"subcontrol-position:left;\n" +"width:50px;\n" +"height:100px;\n" +"}")); + et_spinBox = new QDoubleSpinBox(tab_4); + et_spinBox->setObjectName(QString::fromUtf8("et_spinBox")); + et_spinBox->setGeometry(QRect(790, 60, 221, 61)); + et_spinBox->setFont(font4); + et_spinBox->setStyleSheet(QString::fromUtf8("QDoubleSpinBox::up-button\n" +"{subcontrol-origin:border;\n" +"subcontrol-position:right;\n" +"width:50px;\n" +"height:100px;\n" +"}\n" +"QDoubleSpinBox::down-button\n" +"{subcontrol-origin:border;\n" +"subcontrol-position:left;\n" +"width:50px;\n" +"height:100px;\n" +"}")); + white_spinBox = new QSpinBox(tab_4); + white_spinBox->setObjectName(QString::fromUtf8("white_spinBox")); + white_spinBox->setGeometry(QRect(780, 150, 231, 51)); + white_spinBox->setFont(font4); + white_spinBox->setStyleSheet(QString::fromUtf8("QSpinBox::up-button\n" +"{subcontrol-origin:border;\n" +"subcontrol-position:right;\n" +"width:50px;\n" +"height:100px;\n" +"}\n" +"QSpinBox::down-button\n" +"{subcontrol-origin:border;\n" +"subcontrol-position:left;\n" +"width:50px;\n" +"height:100px;\n" +"}")); + btn_getcorrect = new QPushButton(tab_4); + btn_getcorrect->setObjectName(QString::fromUtf8("btn_getcorrect")); + btn_getcorrect->setGeometry(QRect(10, 450, 341, 91)); + btn_getcorrect->setFont(font1); + btn_getcorrect->setStyleSheet(QString::fromUtf8("color: rgb(238, 238, 236);\n" +"background-color: rgb(136, 138, 133);\n" +"border-radius:10px;")); + btn_correct = new QPushButton(tab_4); + btn_correct->setObjectName(QString::fromUtf8("btn_correct")); + btn_correct->setGeometry(QRect(10, 570, 341, 81)); + btn_correct->setFont(font1); + btn_correct->setStyleSheet(QString::fromUtf8("color: rgb(238, 238, 236);\n" +"background-color: rgb(136, 138, 133);\n" +"border-radius:10px;")); + btn_Tab4_3 = new QPushButton(tab_4); + btn_Tab4_3->setObjectName(QString::fromUtf8("btn_Tab4_3")); + btn_Tab4_3->setGeometry(QRect(780, 610, 201, 81)); + btn_Tab4_3->setFont(font1); + btn_Tab4_3->setStyleSheet(QString::fromUtf8("color: rgb(238, 238, 236);\n" +"background-color: rgb(136, 138, 133);\n" +"border-radius:10px;")); + label_1 = new QLabel(tab_4); + label_1->setObjectName(QString::fromUtf8("label_1")); + label_1->setGeometry(QRect(400, 550, 261, 81)); + label_1->setFont(font6); + label_2 = new QLabel(tab_4); + label_2->setObjectName(QString::fromUtf8("label_2")); + label_2->setGeometry(QRect(590, 540, 121, 51)); + label_2->setFont(font6); + tabWidget->addTab(tab_4, QString()); + label_4_3->raise(); + label_4_2->raise(); + label_4_1->raise(); + showlabel_set->raise(); + btn_setcamerapara->raise(); + gain_spinBox->raise(); + et_spinBox->raise(); + white_spinBox->raise(); + btn_getcorrect->raise(); + btn_correct->raise(); + btn_Tab4_3->raise(); + label_1->raise(); + label_2->raise(); + tab_5 = new QWidget(); + tab_5->setObjectName(QString::fromUtf8("tab_5")); + label_5_2 = new QLabel(tab_5); + label_5_2->setObjectName(QString::fromUtf8("label_5_2")); + label_5_2->setGeometry(QRect(20, 150, 331, 61)); + QFont font7; + font7.setPointSize(20); + label_5_2->setFont(font7); + label_5_3 = new QLabel(tab_5); + label_5_3->setObjectName(QString::fromUtf8("label_5_3")); + label_5_3->setGeometry(QRect(20, 240, 331, 71)); + label_5_3->setFont(font7); + area_spinBox = new QSpinBox(tab_5); + area_spinBox->setObjectName(QString::fromUtf8("area_spinBox")); + area_spinBox->setGeometry(QRect(380, 149, 221, 51)); + area_spinBox->setFont(font4); + delay_spinBox = new QSpinBox(tab_5); + delay_spinBox->setObjectName(QString::fromUtf8("delay_spinBox")); + delay_spinBox->setGeometry(QRect(380, 249, 221, 51)); + delay_spinBox->setFont(font4); + label_5_1 = new QLabel(tab_5); + label_5_1->setObjectName(QString::fromUtf8("label_5_1")); + label_5_1->setGeometry(QRect(0, 30, 391, 91)); + label_5_1->setFont(font5); + label_5_1->setStyleSheet(QString::fromUtf8("color: rgb(238, 238, 236);\n" +"background-color: rgb(204, 0, 0);\n" +"border-radius:10px;")); + label_5_1->setAlignment(Qt::AlignCenter); + btn_Tab5_3 = new QPushButton(tab_5); + btn_Tab5_3->setObjectName(QString::fromUtf8("btn_Tab5_3")); + btn_Tab5_3->setGeometry(QRect(790, 600, 201, 91)); + QFont font8; + font8.setPointSize(28); + btn_Tab5_3->setFont(font8); + btn_Tab5_3->setStyleSheet(QString::fromUtf8("color: rgb(238, 238, 236);\n" +"background-color: rgb(136, 138, 133);\n" +"border-radius:10px;")); + btn_set_thereshold = new QPushButton(tab_5); + btn_set_thereshold->setObjectName(QString::fromUtf8("btn_set_thereshold")); + btn_set_thereshold->setGeometry(QRect(410, 610, 181, 91)); + btn_set_thereshold->setFont(font8); + btn_set_thereshold->setStyleSheet(QString::fromUtf8("color: rgb(238, 238, 236);\n" +"background-color: rgb(136, 138, 133);\n" +"border-radius:10px;")); + label_5_4 = new QLabel(tab_5); + label_5_4->setObjectName(QString::fromUtf8("label_5_4")); + label_5_4->setGeometry(QRect(20, 350, 331, 61)); + label_5_4->setFont(font7); + blow_time_spinbox = new QSpinBox(tab_5); + blow_time_spinbox->setObjectName(QString::fromUtf8("blow_time_spinbox")); + blow_time_spinbox->setGeometry(QRect(380, 360, 221, 51)); + blow_time_spinbox->setFont(font4); + btn2 = new QPushButton(tab_5); + btn2->setObjectName(QString::fromUtf8("btn2")); + btn2->setGeometry(QRect(760, 150, 61, 51)); + QFont font9; + font9.setPointSize(15); + btn2->setFont(font9); + btn3 = new QPushButton(tab_5); + btn3->setObjectName(QString::fromUtf8("btn3")); + btn3->setGeometry(QRect(840, 150, 61, 51)); + btn3->setFont(font9); + btn4 = new QPushButton(tab_5); + btn4->setObjectName(QString::fromUtf8("btn4")); + btn4->setGeometry(QRect(680, 220, 61, 51)); + btn4->setFont(font9); + btn5 = new QPushButton(tab_5); + btn5->setObjectName(QString::fromUtf8("btn5")); + btn5->setGeometry(QRect(760, 220, 61, 51)); + btn5->setFont(font9); + btn6 = new QPushButton(tab_5); + btn6->setObjectName(QString::fromUtf8("btn6")); + btn6->setGeometry(QRect(840, 220, 61, 51)); + btn6->setFont(font9); + btn7 = new QPushButton(tab_5); + btn7->setObjectName(QString::fromUtf8("btn7")); + btn7->setGeometry(QRect(680, 290, 61, 51)); + btn7->setFont(font9); + btn8 = new QPushButton(tab_5); + btn8->setObjectName(QString::fromUtf8("btn8")); + btn8->setGeometry(QRect(760, 290, 61, 51)); + btn8->setFont(font9); + btn9 = new QPushButton(tab_5); + btn9->setObjectName(QString::fromUtf8("btn9")); + btn9->setGeometry(QRect(840, 290, 61, 51)); + btn9->setFont(font9); + btn_DEL = new QPushButton(tab_5); + btn_DEL->setObjectName(QString::fromUtf8("btn_DEL")); + btn_DEL->setGeometry(QRect(840, 360, 71, 51)); + btn_DEL->setFont(font9); + btn1 = new QPushButton(tab_5); + btn1->setObjectName(QString::fromUtf8("btn1")); + btn1->setGeometry(QRect(680, 150, 61, 51)); + btn1->setFont(font9); + btn0 = new QPushButton(tab_5); + btn0->setObjectName(QString::fromUtf8("btn0")); + btn0->setGeometry(QRect(760, 360, 61, 51)); + btn0->setFont(font9); + label_5_5 = new QLabel(tab_5); + label_5_5->setObjectName(QString::fromUtf8("label_5_5")); + label_5_5->setGeometry(QRect(20, 460, 331, 81)); + label_5_5->setFont(font7); + rigorous_spinbox = new QSpinBox(tab_5); + rigorous_spinbox->setObjectName(QString::fromUtf8("rigorous_spinbox")); + rigorous_spinbox->setGeometry(QRect(380, 480, 221, 51)); + rigorous_spinbox->setFont(font4); + tabWidget->addTab(tab_5, QString()); + tab_123 = new QWidget(); + tab_123->setObjectName(QString::fromUtf8("tab_123")); + label_6_1 = new QLabel(tab_123); + label_6_1->setObjectName(QString::fromUtf8("label_6_1")); + label_6_1->setGeometry(QRect(0, 40, 351, 101)); + label_6_1->setFont(font5); + label_6_1->setStyleSheet(QString::fromUtf8("color: rgb(238, 238, 236);\n" +"background-color: rgb(204, 0, 0);\n" +"border-radius:10px;")); + label_6_1->setAlignment(Qt::AlignCenter); + btn_Tab6_3 = new QPushButton(tab_123); + btn_Tab6_3->setObjectName(QString::fromUtf8("btn_Tab6_3")); + btn_Tab6_3->setGeometry(QRect(710, 590, 211, 91)); + btn_Tab6_3->setFont(font8); + btn_Tab6_3->setStyleSheet(QString::fromUtf8("color: rgb(238, 238, 236);\n" +"background-color: rgb(136, 138, 133);\n" +"border-radius:10px;")); + candy_select_box = new QComboBox(tab_123); + candy_select_box->setObjectName(QString::fromUtf8("candy_select_box")); + candy_select_box->setGeometry(QRect(190, 210, 361, 91)); + candy_select_box->setStyleSheet(QString::fromUtf8("QComboBox\n" +"{\n" +" border: 1px solid gray; \n" +" border-radius: 3px; \n" +" padding: 1px 18px 1px 3px; \n" +" color: #000;\n" +" font: normal normal 25px \"Microsoft YaHei\";\n" +" background: transparent;\n" +"}\n" +"QCombox::drop-down\n" +"{\n" +"width:100px;\n" +"border:none;\n" +"}")); + tabWidget->addTab(tab_123, QString()); + tab = new QWidget(); + tab->setObjectName(QString::fromUtf8("tab")); + label_7_1 = new QLabel(tab); + label_7_1->setObjectName(QString::fromUtf8("label_7_1")); + label_7_1->setGeometry(QRect(0, 40, 351, 101)); + label_7_1->setFont(font5); + label_7_1->setStyleSheet(QString::fromUtf8("color: rgb(238, 238, 236);\n" +"background-color: rgb(204, 0, 0);\n" +"border-radius:10px;")); + label_7_1->setAlignment(Qt::AlignCenter); + label = new QLabel(tab); + label->setObjectName(QString::fromUtf8("label")); + label->setGeometry(QRect(30, 260, 131, 101)); + label->setFont(font7); + label_channel = new QLabel(tab); + label_channel->setObjectName(QString::fromUtf8("label_channel")); + label_channel->setGeometry(QRect(200, 260, 131, 101)); + label_channel->setFont(font7); + btn_channel_up = new QPushButton(tab); + btn_channel_up->setObjectName(QString::fromUtf8("btn_channel_up")); + btn_channel_up->setGeometry(QRect(30, 410, 141, 91)); + btn_channel_up->setFont(font5); + btn_channel_up->setStyleSheet(QString::fromUtf8("color: rgb(238, 238, 236);\n" +"background-color: rgb(136, 138, 133);\n" +"border-radius:10px;")); + btn_channel_down = new QPushButton(tab); + btn_channel_down->setObjectName(QString::fromUtf8("btn_channel_down")); + btn_channel_down->setGeometry(QRect(230, 410, 141, 91)); + btn_channel_down->setFont(font5); + btn_channel_down->setStyleSheet(QString::fromUtf8("color: rgb(238, 238, 236);\n" +"background-color: rgb(136, 138, 133);\n" +"border-radius:10px;")); + btn_Tab7_3 = new QPushButton(tab); + btn_Tab7_3->setObjectName(QString::fromUtf8("btn_Tab7_3")); + btn_Tab7_3->setGeometry(QRect(750, 560, 201, 91)); + btn_Tab7_3->setFont(font8); + btn_Tab7_3->setStyleSheet(QString::fromUtf8("color: rgb(238, 238, 236);\n" +"background-color: rgb(136, 138, 133);\n" +"border-radius:10px;")); + btn_channel_send = new QPushButton(tab); + btn_channel_send->setObjectName(QString::fromUtf8("btn_channel_send")); + btn_channel_send->setGeometry(QRect(30, 550, 341, 91)); + btn_channel_send->setFont(font5); + btn_channel_send->setStyleSheet(QString::fromUtf8("color: rgb(238, 238, 236);\n" +"background-color: rgb(136, 138, 133);\n" +"border-radius:10px;")); + tabWidget->addTab(tab, QString()); + + retranslateUi(Widget); + + tabWidget->setCurrentIndex(4); + + + QMetaObject::connectSlotsByName(Widget); + } // setupUi + + void retranslateUi(QWidget *Widget) + { + Widget->setWindowTitle(QApplication::translate("Widget", "Widget", 0, QApplication::UnicodeUTF8)); + btn_Tab1_2->setText(QApplication::translate("Widget", "\345\210\206\351\200\211\351\241\265\351\235\242\n" +"Sorting Page", 0, QApplication::UnicodeUTF8)); + btn_Tab1_3->setText(QApplication::translate("Widget", "\350\257\246\347\273\206\350\256\276\347\275\256\n" +"Settings", 0, QApplication::UnicodeUTF8)); + label_1_1->setText(QApplication::translate("Widget", "Candy Grading System", 0, QApplication::UnicodeUTF8)); + label_1_5->setText(QString()); + MCU_status->setText(QString()); + btn_close->setText(QApplication::translate("Widget", "\345\205\263 \346\234\272\n" +"Power off", 0, QApplication::UnicodeUTF8)); + tabWidget->setTabText(tabWidget->indexOf(tab_1), QApplication::translate("Widget", "Tab 1", 0, QApplication::UnicodeUTF8)); + showlabel->setText(QString()); + btnStart->setText(QApplication::translate("Widget", "\345\274\200\345\247\213\345\210\206\351\200\211\n" +"Start", 0, QApplication::UnicodeUTF8)); + btnStop->setText(QApplication::translate("Widget", "\345\201\234\346\255\242\345\210\206\351\200\211\n" +"Stop", 0, QApplication::UnicodeUTF8)); + btn_Tab2_1->setText(QApplication::translate("Widget", "\344\270\273\350\217\234\345\215\225\n" +"Menu", 0, QApplication::UnicodeUTF8)); + btn_Tab2_5->setText(QApplication::translate("Widget", "\345\217\202\346\225\260\350\260\203\346\225\264\n" +"Parameters", 0, QApplication::UnicodeUTF8)); + label_stop->setText(QString()); + tabWidget->setTabText(tabWidget->indexOf(tab_2), QApplication::translate("Widget", "Tab 2", 0, QApplication::UnicodeUTF8)); + btn_Tab3_4->setText(QApplication::translate("Widget", "\347\233\270\346\234\272\345\217\202\346\225\260\350\256\276\347\275\256\n" +"Camera Parameters", 0, QApplication::UnicodeUTF8)); + btn_Tab3_6->setText(QApplication::translate("Widget", "\345\210\206\351\200\211\347\263\226\346\236\234\347\261\273\345\236\213\n" +"Candy Types", 0, QApplication::UnicodeUTF8)); + label_3_3->setText(QApplication::translate("Widget", "\350\257\246\347\273\206\350\256\276\347\275\256\n" +"Settings", 0, QApplication::UnicodeUTF8)); + btnValveTest->setText(QApplication::translate("Widget", "\345\226\267\351\230\200\346\265\213\350\257\225\n" +"Test Valves", 0, QApplication::UnicodeUTF8)); + btn_Tab3_1->setText(QApplication::translate("Widget", "\344\270\273\350\217\234\345\215\225\n" +"Menu", 0, QApplication::UnicodeUTF8)); + btnImportImg->setText(QApplication::translate("Widget", "\345\257\274\345\207\272\345\233\276\347\211\207\n" +"Export Images", 0, QApplication::UnicodeUTF8)); + btnSaveImg->setText(QApplication::translate("Widget", "Save", 0, QApplication::UnicodeUTF8)); + btnImportModel->setText(QApplication::translate("Widget", "\345\257\274\345\205\245\346\250\241\345\236\213\n" +"Import Models", 0, QApplication::UnicodeUTF8)); + btnModifyPasswd->setText(QApplication::translate("Widget", "\344\277\256\346\224\271\345\257\206\347\240\201\n" +"Change Password", 0, QApplication::UnicodeUTF8)); + btnManualValveTest->setText(QApplication::translate("Widget", "\345\226\267\351\230\200\346\211\213\345\212\250\346\265\213\350\257\225\n" +"Manual Test Valves", 0, QApplication::UnicodeUTF8)); + tabWidget->setTabText(tabWidget->indexOf(tab_3), QApplication::translate("Widget", "Tab3", 0, QApplication::UnicodeUTF8)); + showlabel_set->setText(QString()); + label_4_1->setText(QApplication::translate("Widget", "\346\233\235\345\205\211\346\227\266\351\227\264\n" +"Explosure", 0, QApplication::UnicodeUTF8)); + label_4_2->setText(QApplication::translate("Widget", "\347\231\275\345\271\263\350\241\241\n" +"White Balance", 0, QApplication::UnicodeUTF8)); + label_4_3->setText(QApplication::translate("Widget", "\345\242\236\347\233\212\n" +"Gain", 0, QApplication::UnicodeUTF8)); + btn_setcamerapara->setText(QApplication::translate("Widget", "\350\256\276\347\275\256\345\217\202\346\225\260\n" +"Set", 0, QApplication::UnicodeUTF8)); + btn_getcorrect->setText(QApplication::translate("Widget", "\351\207\207\351\233\206\346\240\241\346\255\243\345\233\276\345\203\217\n" +"Grap Correcting Image", 0, QApplication::UnicodeUTF8)); + btn_correct->setText(QApplication::translate("Widget", "\350\211\262\345\275\251\346\240\241\346\255\243\n" +"Color Correcting", 0, QApplication::UnicodeUTF8)); + btn_Tab4_3->setText(QApplication::translate("Widget", "\350\277\224\345\233\236\n" +"Back", 0, QApplication::UnicodeUTF8)); + label_1->setText(QApplication::translate("Widget", "\344\272\256\345\272\246\345\200\274(brightness):\n" +"\n" +"(need correcting board)", 0, QApplication::UnicodeUTF8)); + label_2->setText(QApplication::translate("Widget", "TextLabel", 0, QApplication::UnicodeUTF8)); + tabWidget->setTabText(tabWidget->indexOf(tab_4), QApplication::translate("Widget", "tab_4", 0, QApplication::UnicodeUTF8)); + label_5_2->setText(QApplication::translate("Widget", "\347\274\272\351\231\267\351\235\242\347\247\257\351\230\210\345\200\274\n" +"Defect Area", 0, QApplication::UnicodeUTF8)); + label_5_3->setText(QApplication::translate("Widget", "\345\273\266\346\227\266\346\227\266\351\227\264\n" +"Delay Time", 0, QApplication::UnicodeUTF8)); + label_5_1->setText(QApplication::translate("Widget", "\345\210\206\351\200\211\351\230\210\345\200\274\350\256\276\347\275\256\n" +"Parameters", 0, QApplication::UnicodeUTF8)); + btn_Tab5_3->setText(QApplication::translate("Widget", "\350\277\224\345\233\236\n" +"Back", 0, QApplication::UnicodeUTF8)); + btn_set_thereshold->setText(QApplication::translate("Widget", "\350\256\276\347\275\256\n" +"Set", 0, QApplication::UnicodeUTF8)); + label_5_4->setText(QApplication::translate("Widget", "\345\220\271\346\260\224\351\207\217\n" +"Blow Time", 0, QApplication::UnicodeUTF8)); + btn2->setText(QApplication::translate("Widget", "2", 0, QApplication::UnicodeUTF8)); + btn3->setText(QApplication::translate("Widget", "3", 0, QApplication::UnicodeUTF8)); + btn4->setText(QApplication::translate("Widget", "4", 0, QApplication::UnicodeUTF8)); + btn5->setText(QApplication::translate("Widget", "5", 0, QApplication::UnicodeUTF8)); + btn6->setText(QApplication::translate("Widget", "6", 0, QApplication::UnicodeUTF8)); + btn7->setText(QApplication::translate("Widget", "7", 0, QApplication::UnicodeUTF8)); + btn8->setText(QApplication::translate("Widget", "8", 0, QApplication::UnicodeUTF8)); + btn9->setText(QApplication::translate("Widget", "9", 0, QApplication::UnicodeUTF8)); + btn_DEL->setText(QApplication::translate("Widget", "DEL", 0, QApplication::UnicodeUTF8)); + btn1->setText(QApplication::translate("Widget", "1", 0, QApplication::UnicodeUTF8)); + btn0->setText(QApplication::translate("Widget", "0", 0, QApplication::UnicodeUTF8)); + label_5_5->setText(QApplication::translate("Widget", "\344\270\245\346\240\274\347\250\213\345\272\246\n" +"Rigorous Level", 0, QApplication::UnicodeUTF8)); + tabWidget->setTabText(tabWidget->indexOf(tab_5), QApplication::translate("Widget", "tab_5", 0, QApplication::UnicodeUTF8)); + label_6_1->setText(QApplication::translate("Widget", "\347\263\226\346\236\234\347\261\273\345\236\213\351\200\211\346\213\251\357\274\232\n" +"Candy Type", 0, QApplication::UnicodeUTF8)); + btn_Tab6_3->setText(QApplication::translate("Widget", "\350\277\224\345\233\236\n" +"Back", 0, QApplication::UnicodeUTF8)); + tabWidget->setTabText(tabWidget->indexOf(tab_123), QApplication::translate("Widget", "tab_6", 0, QApplication::UnicodeUTF8)); + label_7_1->setText(QApplication::translate("Widget", "\345\226\267\351\230\200\346\211\213\345\212\250\346\265\213\350\257\225\357\274\232\n" +"Manual Test Valves", 0, QApplication::UnicodeUTF8)); + label->setText(QApplication::translate("Widget", "\351\200\232\351\201\223:\n" +"Channel", 0, QApplication::UnicodeUTF8)); + label_channel->setText(QApplication::translate("Widget", "0", 0, QApplication::UnicodeUTF8)); + btn_channel_up->setText(QApplication::translate("Widget", "+", 0, QApplication::UnicodeUTF8)); + btn_channel_down->setText(QApplication::translate("Widget", "-", 0, QApplication::UnicodeUTF8)); + btn_Tab7_3->setText(QApplication::translate("Widget", "\350\277\224\345\233\236\n" +"Back", 0, QApplication::UnicodeUTF8)); + btn_channel_send->setText(QApplication::translate("Widget", "\345\217\221\351\200\201\351\200\232\351\201\223\n" +"Channel Send", 0, QApplication::UnicodeUTF8)); + tabWidget->setTabText(tabWidget->indexOf(tab), QApplication::translate("Widget", "Page", 0, QApplication::UnicodeUTF8)); + } // retranslateUi + +}; + +namespace Ui { + class Widget: public Ui_Widget {}; +} // namespace Ui + +QT_END_NAMESPACE + +#endif // UI_WIDGET_H diff --git a/widget.cpp b/widget.cpp new file mode 100644 index 0000000..ae74b0e --- /dev/null +++ b/widget.cpp @@ -0,0 +1,1466 @@ +#include "widget.h" +#include "ui_widget.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "opencv2/imgproc/types_c.h" +#include + +#define BTN_ENABLIE_STYTLE "QPushButton{color:rgb(255, 255, 255); background-color:rgb(34, 139, 34);border-radius:15px;}" +#define BTN_DISABLIE_STYTLE "QPushButton{color:rgb(255, 255, 255); background-color:rgb(136, 138, 133);border-radius:15px;}" + +#define IMG_PIPE "/tmp/img_fifo.pipe" +#define RESULT_PIPE "/tmp/result_fifo.pipe" + +bool is_connected = false; +int save_flag; //保存标志位 +int area_threshold; //面积最小阈值 +int delay_time; //延时时间 +int blow_time; //吹气量 +int rigorous; +bool empty_flag; // +extern QSemaphore emptybuff; +extern bool loss_flag; +int fd_img; //管道文件描述符 图片传递 +//int fd_result; //管道文件描述符 回传结果 + +Widget::Widget(QWidget *parent) : + QWidget(parent), + ui(new Ui::Widget) +{ + ui->setupUi(this); + this->setWindowFlags(Qt::Widget); + this->showFullScreen(); + init_window(); + connect_signals(); + +} + +Widget::~Widget() +{ + delete ui; +} + +void Widget::init_window() +{ + resize(1024, 768); + + ui->tabWidget->findChildren().at(0)->hide(); + ui->tabWidget->setCurrentIndex(0); + + QList button = findChildren(); //设置所有按键不为焦点,设置按钮样式和是否使能 + for(int i=0; isetFocusPolicy(Qt::NoFocus); + button[i]->setStyleSheet(BTN_ENABLIE_STYTLE); + } + ui->btnStop->setStyleSheet(BTN_DISABLIE_STYTLE); + ui->btnStop->setEnabled(false); + ui->btn_correct->setStyleSheet(BTN_DISABLIE_STYTLE); + ui->btn_correct->setEnabled(false); + ui->btn_close->setStyleSheet("QPushButton{color:rgb(255, 255, 255); background-color:rgb(255, 0, 0);border-radius:15px;}"); + + + ui->et_spinBox->setRange(0, 9999500.00); + //ui->et_spinBox->setDecimals(2); + ui->et_spinBox->setSingleStep(0.01); + ui->gain_spinBox->setRange(0, 16.98); + //ui->gain_spinBox->setDecimals(2); + ui->gain_spinBox->setSingleStep(0.01); + ui->white_spinBox->setRange(0, 4095); + + ui->delay_spinBox->setRange(0, 5000); + ui->area_spinBox->setRange(0, 10000); + ui->blow_time_spinbox->setRange(0, 148); + ui->rigorous_spinbox->setRange(1, 99); + + channel = 1; + ui->label_channel->setText(QString::number(channel)); + ui->label_stop->setText(" "); + + m_camera = new Camera; + m_camera->init_camera(); + + server = new QTcpServer(); + server->listen(QHostAddress::Any, 13452); + + set_candy_select_box(); + load_para_config(); + + if(access(IMG_PIPE, F_OK) == -1) + { + int res = mkfifo(IMG_PIPE, 0755); + if(res<0) + { + qDebug()<<"create img fifo failed"; + } + } + if(access(RESULT_PIPE, F_OK) == -1) + { + int res = mkfifo(RESULT_PIPE, 0755); + if(res<0) + { + qDebug()<<"create img fifo failed"; + } + } + + fd_img = open(IMG_PIPE, O_WRONLY); + if(fd_img<0) + { + qDebug()<<"open img fifo failed"; + } +// fd_result = open(RESULT_PIPE, O_RDONLY); +// if(fd_result<0) +// { +// qDebug()<<"open result fifo failed"; +// } + + + ui->MCU_status->setStyleSheet("QLabel{background-color:rgb(255,0,0);}"); + ui->MCU_status->setText(QString::fromLocal8Bit("未连接")); +} + +void Widget::connect_signals() +{ + //Tab_1 + connect(ui->btn_Tab1_2, SIGNAL(clicked()), this, SLOT(On_btn_Tab1_2_click())); + connect(ui->btn_Tab1_3, SIGNAL(clicked()), this, SLOT(On_btn_Tab1_3_click())); + + //Tab_2 + connect(ui->btnStart, SIGNAL(clicked()), this, SLOT(On_btnStart_click())); + connect(ui->btnStop, SIGNAL(clicked()), this, SLOT(On_bthStop_click())); + + connect(ui->btn_Tab2_1, SIGNAL(clicked()), this, SLOT(On_btn_Tab2_1_click())); + connect(ui->btn_Tab2_5, SIGNAL(clicked()), this, SLOT(On_btn_Tab2_5_click())); + + //Tab_3 + connect(ui->btnValveTest, SIGNAL(clicked()), this, SLOT(On_btnValveTest_click())); + connect(ui->btn_Tab3_1,SIGNAL(clicked()), this, SLOT(On_btn_Tab3_1_click())); + connect(ui->btn_Tab3_4,SIGNAL(clicked()), this, SLOT(On_btn_Tab3_4_click())); + connect(ui->btn_Tab3_6,SIGNAL(clicked()), this, SLOT(On_btn_Tab3_6_click())); + connect(ui->btnImportImg, SIGNAL(clicked()), this, SLOT(On_btnImportImg_click())); + connect(ui->btnSaveImg, SIGNAL(clicked()), this, SLOT(On_btnSaveImg_click())); + connect(ui->btnImportModel, SIGNAL(clicked()), this, SLOT(On_btnImportModel_click())); + connect(ui->btnModifyPasswd, SIGNAL(clicked()), this, SLOT(On_btnModifyPasswd_click())); + connect(ui->btnManualValveTest, SIGNAL(clicked()), this, SLOT(On_btnManualValveTest())); + //Tab_4 + connect(ui->btn_correct, SIGNAL(clicked()), this, SLOT(On_btn_correct_click())); + connect(ui->btn_getcorrect, SIGNAL(clicked()), this, SLOT(On_btn_getcorrect_click())); + connect(ui->btn_setcamerapara, SIGNAL(clicked()), this, SLOT(On_btn_setcamerapara_click())); + connect(ui->btn_Tab4_3, SIGNAL(clicked()), this, SLOT(On_btn_Tab4_3_click())); + + //Tab_5 + connect(ui->btn_Tab5_3, SIGNAL(clicked()), this, SLOT(On_btn_Tab5_3_click())); + connect(ui->btn_set_thereshold, SIGNAL(clicked()), this, SLOT(On_btn_set_thereshold_click())); + + //Tab_6 + connect(ui->btn_Tab6_3, SIGNAL(clicked()), this, SLOT(On_btn_Tab6_3_click())); + + connect(ui->candy_select_box, SIGNAL(currentIndexChanged(int)), this, SLOT(On_candy_select_box_index_change(int))); + connect(server, SIGNAL(newConnection()), this, SLOT(ServerNewConnection())); + connect(ui->btn_close, SIGNAL(clicked()), this, SLOT(On_btn_close_click())); + + connect(ui->btn1, SIGNAL(clicked()), this, SLOT(On_btn1_clicked())); + connect(ui->btn2, SIGNAL(clicked()), this, SLOT(On_btn2_clicked())); + connect(ui->btn3, SIGNAL(clicked()), this, SLOT(On_btn3_clicked())); + connect(ui->btn4, SIGNAL(clicked()), this, SLOT(On_btn4_clicked())); + connect(ui->btn5, SIGNAL(clicked()), this, SLOT(On_btn5_clicked())); + connect(ui->btn6, SIGNAL(clicked()), this, SLOT(On_btn6_clicked())); + connect(ui->btn7, SIGNAL(clicked()), this, SLOT(On_btn7_clicked())); + connect(ui->btn8, SIGNAL(clicked()), this, SLOT(On_btn8_clicked())); + connect(ui->btn9, SIGNAL(clicked()), this, SLOT(On_btn9_clicked())); + connect(ui->btn0, SIGNAL(clicked()), this, SLOT(On_btn0_clicked())); + connect(ui->btn_DEL, SIGNAL(clicked()), this, SLOT(On_btn_DEL_clicked())); + + //Tab 7 + connect(ui->btn_Tab7_3, SIGNAL(clicked()), this, SLOT(On_btn_Tab7_3_click())); + connect(ui->btn_channel_up, SIGNAL(clicked()), this, SLOT(On_btnchannelup_click())); + connect(ui->btn_channel_down, SIGNAL(clicked()), this, SLOT(On_btnchanneldown_click())); + connect(ui->btn_channel_send, SIGNAL(clicked()), this, SLOT(On_btn_channel_send_clicked())); +// connect(ui->btn_1, SIGNAL(clicked()), this, SLOT(On_btn_1_clicked())); +// connect(ui->btn_2, SIGNAL(clicked()), this, SLOT(On_btn_2_clicked())); +// connect(ui->btn_3, SIGNAL(clicked()), this, SLOT(On_btn_3_clicked())); +// connect(ui->btn_4, SIGNAL(clicked()), this, SLOT(On_btn_4_clicked())); +// connect(ui->btn_5, SIGNAL(clicked()), this, SLOT(On_btn_5_clicked())); +// connect(ui->btn_6, SIGNAL(clicked()), this, SLOT(On_btn_6_clicked())); +// connect(ui->btn_7, SIGNAL(clicked()), this, SLOT(On_btn_7_clicked())); +// connect(ui->btn_8, SIGNAL(clicked()), this, SLOT(On_btn_8_clicked())); +// connect(ui->btn_9, SIGNAL(clicked()), this, SLOT(On_btn_9_clicked())); +// connect(ui->btn_0, SIGNAL(clicked()), this, SLOT(On_btn_0_clicked())); +// connect(ui->btn_dot, SIGNAL(clicked()), this, SLOT(On_btn_dot_clicked())); +// connect(ui->btn_del, SIGNAL(clicked()), this, SLOT(On_btn_del_clicked())); +// connect(ui->btn_clr, SIGNAL(clicked()), this, SLOT(On_btn_clr_clicked())); +} + +void Widget::On_btn_Tab1_2_click() +{ + ui->tabWidget->setCurrentIndex(1); +} + +void Widget::On_btn_Tab1_3_click() +{ + passwd_dialog = new PasswdDialog(); + connect(passwd_dialog, SIGNAL(send_password(QString)), this, SLOT(judge_password(QString))); + connect(this, SIGNAL(wrong_passwd()), passwd_dialog, SLOT(deal_wrong_passwd())); + passwd_dialog->show(); +} + +void Widget::On_btnStart_click() +{ + process_img = new Process_img(this); + //grab_img = new Grab_img(this); //my_test_thread + connect(process_img, SIGNAL(send_image(cv::Mat)), this, SLOT(showimage(cv::Mat)),Qt::BlockingQueuedConnection); + connect(process_img, SIGNAL(send_res(QVector)), this, SLOT(drawbox(QVector)), Qt::BlockingQueuedConnection); + connect(process_img, SIGNAL(send_tab(uint8_t*)), this, SLOT(get_tab(uint8_t*)), Qt::BlockingQueuedConnection); + + int n = emptybuff.available(); + if(n < 2) + { + emptybuff.release(2 - n); + } + //grab_img->start(); + m_camera->set_acquisition_mode(); + m_camera->start_capture(); + process_img->start(); + + QString delay_time = ui->delay_spinBox->text(); + QByteArray ba = delay_time.toLatin1(); + char* dt = ba.data(); + char send_tab[12]; + qDebug() << dt[0] << dt[1] <write((const char*)send_tab, 12); + + send_tab[0] = 0xAA; + send_tab[1] = 0x00; + send_tab[2] = 0x05; + send_tab[3] = 's'; + send_tab[4] = 'c'; + send_tab[5] = '5'; + send_tab[6] = '0'; + send_tab[7] = '0'; + send_tab[8] = 0xFF; + send_tab[9] = 0xFF; + send_tab[10] = 0xBB; + socket->write((const char*)send_tab, 11); + + send_tab[0] = 0xAA; + send_tab[1] = 0x00; + send_tab[2] = 0x04; + send_tab[3] = 's'; + send_tab[4] = 'v'; + send_tab[5] = '1'; + send_tab[6] = '0'; + send_tab[7] = 0xFF; + send_tab[8] = 0xFF; + send_tab[9] = 0xBB; + socket->write((const char*)send_tab, 10); + + send_tab[0] = 0xAA; + send_tab[1] = 0x00; + send_tab[2] = 0x03; + send_tab[3] = 's'; + send_tab[4] = 't'; + send_tab[5] = 0xFF; + send_tab[6] = 0xFF; + send_tab[7] = 0xFF; + send_tab[8] = 0xBB; + socket->write((const char*)send_tab, 9); + + ui->btnStart->setStyleSheet(BTN_DISABLIE_STYTLE); + ui->btnStart->setEnabled(false); + ui->btnStop->setStyleSheet(BTN_ENABLIE_STYTLE); + ui->btnStop->setEnabled(true); + ui->btn_Tab1_3->setStyleSheet(BTN_DISABLIE_STYTLE); + ui->btn_Tab1_3->setEnabled(false); + ui->btn_Tab2_5->setStyleSheet(BTN_DISABLIE_STYTLE); + ui->btn_Tab2_5->setEnabled(false); + + +} + + +void Widget::On_bthStop_click() +{ + ui->label_stop->setText("stopping..."); + qApp->processEvents(); + disconnect(process_img, SIGNAL(send_image(cv::Mat)), this, SLOT(showimage(cv::Mat))); + disconnect(process_img, SIGNAL(send_res(QVector)), this, SLOT(drawbox(QVector))); + disconnect(process_img, SIGNAL(send_tab(uint8_t*)), this, SLOT(get_tab(uint8_t*))); +// +// grab_img->thread_quit(); +// + char send_tab[9]; + send_tab[0] = 0xAA; + send_tab[1] = 0x00; + send_tab[2] = 0x03; + send_tab[3] = 's'; + send_tab[4] = 'p'; + send_tab[5] = 0xFF; + send_tab[6] = 0xFF; + send_tab[7] = 0xFF; + send_tab[8] = 0xBB; + + socket->write((const char*)send_tab, 9); + + sleep(1); + m_camera->stop_capture(); + sleep(3); + + + QMessageBox box; + box.setText("Stopping..."); + + box.setWindowFlags(Qt::Tool | Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint);//去掉边框 + + box.setStandardButtons(0); //不要按键 + + box.setStyleSheet("QLabel{min-width: 250px;min-height: 120px;font-size:40px;}"); + QTimer::singleShot(3000, &box, SLOT(accept())); //3秒自动关闭 + box.exec(); + + process_img->exitThread(); + process_img->wait(); + +// + //my_test_thread +// grab_img->wait(); +// if(grab_img->isFinished()) +// { +// qDebug()<<"grab thread finish"; +// } +// + + if(process_img->isFinished()) + { + qDebug()<<"process thread finish"; + } + + +// +// delete grab_img; +// + + delete process_img; + + qDebug() << "Stop Success!"; + ui->btnStop->setStyleSheet(BTN_DISABLIE_STYTLE); + ui->btnStop->setEnabled(false); + + ui->btnStart->setStyleSheet(BTN_ENABLIE_STYTLE); + ui->btnStart->setEnabled(true); + ui->btn_Tab1_3->setStyleSheet(BTN_ENABLIE_STYTLE); + ui->btn_Tab1_3->setEnabled(true); + ui->btn_Tab2_5->setStyleSheet(BTN_ENABLIE_STYTLE); + ui->btn_Tab2_5->setEnabled(true); + + + ui->showlabel->clear(); + ui->label_stop->setText(" "); +} + +void Widget::On_btn_Tab2_1_click() +{ + ui->tabWidget->setCurrentIndex(0); +} + +void Widget::On_btn_Tab2_5_click() +{ + qDebug()<<"adjust"; + ui->tabWidget->setCurrentIndex(4); +} + +void Widget::On_btnValveTest_click() +{ + qDebug()<<"valvetest"; + char send_tab[9]; + send_tab[0] = 0xAA; + send_tab[1] = 0x00; + send_tab[2] = 0x03; + send_tab[3] = 't'; + send_tab[4] = 'e'; + send_tab[5] = 0xFF; + send_tab[6] = 0xFF; + send_tab[7] = 0xFF; + send_tab[8] = 0xBB; + socket->write((const char*)send_tab, 9); +} + +void Widget::On_btn_Tab3_1_click() +{ + ui->tabWidget->setCurrentIndex(0); +} + +void Widget::On_btn_Tab3_4_click() +{ + ui->tabWidget->setCurrentIndex(3); + adjust_para = new Adjust_para(this); + connect(adjust_para, SIGNAL(send_image_debug(cv::Mat)), this, SLOT(showimage_test(cv::Mat)),Qt::BlockingQueuedConnection); + connect(this, SIGNAL(correct_signal()), adjust_para, SLOT(get_correct_siganl())); + int n = emptybuff.available(); + if(n < 2) + { + emptybuff.release(2 - n); + } + Camera_param param = m_camera->get_param(); + ui->et_spinBox->setValue(param.exposure_time); + ui->white_spinBox->setValue(param.white_balance_ratio); + ui->gain_spinBox->setValue(param.gain); + m_camera->set_test_acquisition_mode(); + m_camera->start_capture(); +// grab_img = new Grab_img(this); //my_test_thread +// grab_img->start(); //my_test_thread + adjust_para->start(); +} + +void Widget::On_btn_Tab3_6_click() +{ + ui->tabWidget->setCurrentIndex(5); +} + +void Widget::On_btn_correct_click() +{ + qDebug()<<"correct"; +// cv::Mat correct_image = cv::imread("./correct.bmp", 1); +// m_correct->get_rgb(correct_image); +// m_correct->cal_correction_ratio(); +// m_correct->is_corrected=true; +} + +void Widget::On_btn_getcorrect_click() +{ + qDebug()<<"get correct"; + //emit correct_signal(); + ui->btn_correct->setStyleSheet(BTN_ENABLIE_STYTLE); + ui->btn_correct->setEnabled(true); +} + +void Widget::On_btn_setcamerapara_click() +{ + Camera_param sets; + sets.exposure_time = ui->et_spinBox->text().toFloat(); + sets.gain = ui->gain_spinBox->text().toFloat(); + sets.white_balance_ratio = ui->white_spinBox->text().toInt(); + + qDebug()<set_param(sets); + + m_camera->stop_capture(); + usleep(1000); + + m_camera->get_param(); + if(!m_camera->save_config_file()) + { + qDebug()<<"SAVE FAILED"; + } + m_camera->start_capture(); +} + +void Widget::On_btn_Tab4_3_click() +{ + disconnect(adjust_para, SIGNAL(send_image_debug(cv::Mat)), this, SLOT(showimage_test(cv::Mat))); + disconnect(this, SIGNAL(correct_signal()), adjust_para, SLOT(get_correct_siganl())); + m_camera->stop_capture(); + adjust_para->exitThread(); + //grab_img->thread_quit(); + adjust_para->wait(); +// grab_img->wait(); +// if(grab_img->isFinished()) +// { +// qDebug()<<"grab thread finish"; +// } + if(adjust_para->isFinished()) + { + qDebug()<<"process thread finish"; + } +// delete grab_img; + delete adjust_para; + + ui->tabWidget->setCurrentIndex(2); +} + +void Widget::On_btn_Tab5_3_click() +{ + ui->tabWidget->setCurrentIndex(1); +} + + +void Widget::On_btn_set_thereshold_click() +{ + area_threshold = ui->area_spinBox->text().toInt(); + delay_time = ui->delay_spinBox->text().toInt(); + blow_time = ui->blow_time_spinbox->text().toInt(); + rigorous = ui->rigorous_spinbox->text().toInt(); + Para para = {0}; + int fd = open(CONFIG_PATH,O_RDWR); + read(fd, ¶, sizeof(para)); + lseek(fd, 0, SEEK_SET); + + + char rigorous_buf[8]; + sprintf(rigorous_buf, "RL:%d", rigorous); + qDebug() << rigorous_buf; + write(fd_img, rigorous_buf, strlen(rigorous_buf)); + + if(para.delay == delay_time) + { + para.defect_area = area_threshold; + para.delay = delay_time; + para.blow_time = blow_time; + para.rigorous = rigorous; + write(fd, ¶, sizeof(para)); + ::close(fd); + } + else + { + para.defect_area = area_threshold; + para.delay = delay_time; + para.blow_time = blow_time; + para.rigorous = rigorous; + write(fd, ¶, sizeof(para)); + ::close(fd); +// uint16_t x = (uint16_t)delay_time; +// uint8_t high = (x>>8)&0xFF; +// uint8_t low = x&0xFF; +// uint8_t send_tab[5]={0xAA, 0xBB, high, low, 0xCC}; +// if(socket->isWritable()) +// { +// socket->write((const char*)send_tab, 5); +// } +// else +// { +// qDebug() << "Socket is not writable!!!!!!!!!!"; +// } + } + QMessageBox box; + box.setText("set success"); + box.setStyleSheet("QLabel{min-width: 250px;min-height: 120px;font-size:40px;} QPushButton{width:100px;font-size:50px;}"); + box.exec(); +} + +void Widget::On_btn_Tab6_3_click() +{ + ui->tabWidget->setCurrentIndex(2); +} + +void Widget::judge_password(QString password) +{ + QString s(passwd); + if(password == s) + { + passwd_dialog->close(); + ui->tabWidget->setCurrentIndex(2); + } + else + { + QMessageBox::warning(this, "", QString::fromLocal8Bit("密码错误")); + emit wrong_passwd(); + } +} + +void Widget::showimage(cv::Mat img) +{ + static int counter = 0; + if(save_flag && counter == 0) + { + QDateTime time = QDateTime::currentDateTime(); + QString str = time.toString("yyyyMMddhhmmss"); + QString filepath = SAVE_IMAGE_PATH + str + ".bmp"; + qDebug()<showlabel->width(),ui->showlabel->height(),Qt::KeepAspectRatio)); + ui->showlabel->setPixmap(pix); + ui->showlabel->show(); +} + +void Widget::drawbox(QVector bounding_box) +{ + QPainter painter(&pix); + QPen pen(QColor(255, 0, 0), 1); + painter.setPen(pen); + QVector rects; + int size = bounding_box.size(); + for(int i = 0; i < size; i++) + { + int width = (bounding_box[i].pointB_x - bounding_box[i].pointA_x) * (ui->showlabel->width() / 2376.0f); + int height = (bounding_box[i].pointB_y - bounding_box[i].pointA_y) * (ui->showlabel->width() / 2376.0f); + QRect rect(bounding_box[i].pointA_x* (pix.width() / 2376.0f), bounding_box[i].pointA_y* (pix.height() / 584.0f), width, height); + rects << rect; + } + + painter.drawRects(rects); + ui->showlabel->setPixmap(pix); + +// if(empty_flag == false) +// { +// QDateTime time = QDateTime::currentDateTime();648 +// QString str = time.toString("yyyyMMddhhmmss"); +// QString filepath = RESULT_PATH + str + ".bmp";. +//#ifdef DEBUG +// cv::imwrite(filepath.toLatin1().data(), defect_pic); +//#else +// pix.save(filepath); +//#endif +// empty_flag = true; +// } + + if(loss_flag) + { + uint8_t buf[2500] = {0}; + socket->write((const char*)buf, 2500); + loss_flag = false; + } +} + +void Widget::showimage_test(cv::Mat img) +{ + cv::cvtColor(img, img, CV_BGRA2RGB); + cv::Mat img_gray; + cv::cvtColor(img, img_gray, CV_RGB2GRAY); + int value = 0; + for(int i=300; i<400; i++) + { + for(int j=300; j<400; j++) + { + value = value + img_gray.ptr(i)[j]; + } + } + float brightness = value/10000.0; + ui->label_2->setText(QString("%1").arg(brightness)); + const unsigned char *pSrc = (const unsigned char*)img.data; + QImage image(pSrc, img.cols, img.rows, img.step, QImage::Format_RGB888); + + pix_test = QPixmap::fromImage(image.scaled(ui->showlabel_set->width(),ui->showlabel_set->height(),Qt::KeepAspectRatio)); + QPainter painter(&pix_test); + QPen pen(QColor(255,0,0), 1); + painter.setPen(pen); + + QVector m_lines; + QLine a((pix_test.width()/2+35), pix_test.height()/2, (pix_test.width()/2-35), pix_test.height()/2); + QLine b((pix_test.width()/2), pix_test.height()/2+35, (pix_test.width()/2), pix_test.height()/2-35); + QLine c((int)((907*pix_test.width())/2300), 0, (int)((907*pix_test.width())/2300), pix_test.height()); + QLine d((int)((1493*pix_test.width())/2300), 0, (int)((1493*pix_test.width())/2300), pix_test.height()); + m_lines << a << b << c << d; + painter.drawLines(m_lines); + ui->showlabel_set->setPixmap(pix_test); +} + +void Widget::ServerNewConnection() +{ + socket = server->nextPendingConnection(); + ui->MCU_status->setStyleSheet("QLabel{background-color:rgb(0,255,0);}"); + ui->MCU_status->setText(QString::fromLocal8Bit("已连接")); + qDebug()<<"new connection"; + + //char send_buf[13] = {0xAA, 0x00, 0x07, 'p', 'o', 'w', 'e', 'r', 'o', 'n', 0xFF, 0xFF, 0xBB}; + //socket->write((const char*)send_buf, 13); +} + +void Widget::get_tab(uint8_t* send_buff) +{ + char buf[TRIGGER_PULSE_NUMBER * (VALVE_NUMBER / 8) + 8]; + buf[0] = 0xAA; + buf[1] = 0x0B; + buf[2] = 0xBA; + buf[3] = 'd'; + buf[4] = 'a'; + buf[3005] = 0xFF; + buf[3006] = 0xFF; + buf[3007] = 0xBB; + memcpy(buf+5, send_buff, TRIGGER_PULSE_NUMBER * (VALVE_NUMBER / 8)); + socket->write((const char*)buf, TRIGGER_PULSE_NUMBER * (VALVE_NUMBER / 8) + 8); +} + + +void Widget::load_para_config() +{ + int fd = open(CONFIG_PATH, O_CREAT|O_RDWR, 0666); + Para para; + memset(¶, 0, sizeof(para)); + int ret = read(fd, ¶, sizeof(para)); + if(ret==0) //读不到东西,表示程序第一次运行,需要设置默认参数,写入文件的是定义在widget.h开始的Para结构体,直接写二进制 + { + //qDebug()<<"DEFAULT CONFIG"; + strcpy(para.passwd, "123456"); + para.delay = 3110; + para.defect_area = 10; + para.save_img = 1; + para.blow_time = 140; + para.rigorous = 50; + + write(fd, ¶, sizeof(para)); //写入默认配置参数 + + ui->delay_spinBox->setValue(para.delay); + ui->area_spinBox->setValue(para.defect_area); + ui->blow_time_spinbox->setValue(para.blow_time); + ui->rigorous_spinbox->setValue(para.rigorous); + strcpy(passwd, para.passwd); + save_flag = para.save_img; + area_threshold = para.defect_area; + delay_time = para.delay; + blow_time = para.blow_time; + rigorous = para.rigorous; + ui->btnSaveImg->setText(QString::fromLocal8Bit("不保存图片")); + //qDebug()<delay_spinBox->setValue(para.delay); + ui->area_spinBox->setValue(para.defect_area); + ui->blow_time_spinbox->setValue(para.blow_time); + ui->rigorous_spinbox->setValue(para.rigorous); + save_flag = para.save_img; + area_threshold = para.defect_area; + delay_time = para.delay; + blow_time = para.blow_time; + rigorous = para.rigorous; + strcpy(passwd, para.passwd); + if(save_flag == 1) + { + ui->btnSaveImg->setText(QString::fromLocal8Bit("不保存图片\nDon't save")); + } + else + { + ui->btnSaveImg->setText(QString::fromLocal8Bit("保存图片\nSave")); + } + //qDebug()<btnImportImg->setText(QString::fromLocal8Bit("导出中")); + system(command.toUtf8().data()); + ui->btnImportImg->setText(QString::fromLocal8Bit("导出图片\nExport Images")); + } +} + +void Widget::On_btnSaveImg_click() +{ + if(save_flag == 1) + { + save_flag = 0; + ui->btnSaveImg->setText(QString::fromLocal8Bit("保存图片\nSave")); + } + else + { + save_flag = 1; + ui->btnSaveImg->setText(QString::fromLocal8Bit("不保存图片\nDon't save")); + } + + Para para = {0}; + int fd = open(CONFIG_PATH,O_RDWR); + read(fd, ¶, sizeof(para)); + lseek(fd, 0, SEEK_SET); + + para.save_img = save_flag; + + write(fd, ¶, sizeof(para)); + ::close(fd); + +} + +void Widget::On_btnImportModel_click() +{ + QString file = QFileDialog::getExistingDirectory(this, "",SAVE_IMAGE_PATH,QFileDialog::DontUseCustomDirectoryIcons|QFileDialog::DontUseSheet|QFileDialog::ReadOnly|QFileDialog::ShowDirsOnly|QFileDialog::DontResolveSymlinks); + if(file=="") + { + return; + } + + //考虑路径带空格的情况 + QStringList list = file.split("\ "); + QString filepath = ""; + for(int i =0; icandy_select_box, SIGNAL(currentIndexChanged(int)), this, SLOT(On_candy_select_box_index_change(int))); + ui->candy_select_box->clear(); + models_vector.clear(); + set_candy_select_box(); + connect(ui->candy_select_box, SIGNAL(currentIndexChanged(int)), this, SLOT(On_candy_select_box_index_change(int))); +} + +void Widget::On_candy_select_box_index_change(int index) +{ + char* name = models_vector[index].name.toLatin1().data(); + char head[16] = "MN:"; + strncat(head, name, strlen(name)); + write(fd_img, head, strlen(head)); + qDebug() << "from c" << head; +} + +void Widget::On_btnModifyPasswd_click() +{ + modify_passwd_dialog = new ModifyPasswdialog; + connect(modify_passwd_dialog, SIGNAL(send_modify_passwd(QString)), this, SLOT(modify_password(QString))); + modify_passwd_dialog->show(); +} + +void Widget::modify_password(QString password) +{ + modify_passwd_dialog->close(); + memset(passwd, 0, sizeof(passwd)); + strcpy(passwd, password.toLatin1().data()); + + Para para = {0}; + int fd = open(CONFIG_PATH,O_RDWR); + read(fd, ¶, sizeof(para)); + lseek(fd, 0, SEEK_SET); + strcpy(para.passwd, password.toLatin1().data()); + + write(fd, ¶, sizeof(para)); + ::close(fd); +} + +void Widget::On_btn_close_click() +{ + //::raise(SIGKILL); + //abort(); + system("poweroff"); +} + + +void Widget::set_candy_select_box() +{ + FILE* fp = fopen(MODEL_INFO_PATH, "r"); + char buf[128]; + int index = 0; + Models models; + while(fgets(buf, sizeof(buf), fp)) + { + buf[strlen(buf)-1]='\0'; + QString str(buf); + QStringList list = str.split("\ "); + ui->candy_select_box->addItem(list[0]); + models.name = list[1]; + models.index = index; + index++; + memset(buf, 0, sizeof(buf)); + //qDebug()<candy_select_box->setCurrentIndex(models_vector[i].index); +// qDebug()<focusWidget(); + QSpinBox* spinbox = qobject_cast(m_widget); + int value = spinbox->value(); + QString str = QString::number(value); + str.append("1"); + spinbox->setValue(str.toInt()); +} + +void Widget::On_btn2_clicked() +{ + QWidget* m_widget = this->focusWidget(); + QSpinBox* spinbox = qobject_cast(m_widget); + int value = spinbox->value(); + QString str = QString::number(value); + str.append("2"); + spinbox->setValue(str.toInt()); +} + +void Widget::On_btn3_clicked() +{ + QWidget* m_widget = this->focusWidget(); + QSpinBox* spinbox = qobject_cast(m_widget); + int value = spinbox->value(); + QString str = QString::number(value); + str.append("3"); + spinbox->setValue(str.toInt()); +} + +void Widget::On_btn4_clicked() +{ + QWidget* m_widget = this->focusWidget(); + QSpinBox* spinbox = qobject_cast(m_widget); + int value = spinbox->value(); + QString str = QString::number(value); + str.append("4"); + spinbox->setValue(str.toInt()); +} + +void Widget::On_btn5_clicked() +{ + QWidget* m_widget = this->focusWidget(); + QSpinBox* spinbox = qobject_cast(m_widget); + int value = spinbox->value(); + QString str = QString::number(value); + str.append("5"); + spinbox->setValue(str.toInt()); +} + +void Widget::On_btn6_clicked() +{ + QWidget* m_widget = this->focusWidget(); + QSpinBox* spinbox = qobject_cast(m_widget); + int value = spinbox->value(); + QString str = QString::number(value); + str.append("6"); + spinbox->setValue(str.toInt()); +} + +void Widget::On_btn7_clicked() +{ + QWidget* m_widget = this->focusWidget(); + QSpinBox* spinbox = qobject_cast(m_widget); + int value = spinbox->value(); + QString str = QString::number(value); + str.append("7"); + spinbox->setValue(str.toInt()); +} + +void Widget::On_btn8_clicked() +{ + QWidget* m_widget = this->focusWidget(); + QSpinBox* spinbox = qobject_cast(m_widget); + int value = spinbox->value(); + QString str = QString::number(value); + str.append("8"); + spinbox->setValue(str.toInt()); +} + +void Widget::On_btn9_clicked() +{ + QWidget* m_widget = this->focusWidget(); + QSpinBox* spinbox = qobject_cast(m_widget); + int value = spinbox->value(); + QString str = QString::number(value); + str.append("9"); + spinbox->setValue(str.toInt()); +} + +void Widget::On_btn0_clicked() +{ + QWidget* m_widget = this->focusWidget(); + QSpinBox* spinbox = qobject_cast(m_widget); + int value = spinbox->value(); + QString str = QString::number(value); + str.append("0"); + spinbox->setValue(str.toInt()); +} + +void Widget::On_btn_DEL_clicked() +{ + QWidget* m_widget = this->focusWidget(); + QSpinBox* spinbox = qobject_cast(m_widget); + int value = spinbox->value(); + QString str = QString::number(value); + if(str.size()==0) return; + str = str.left(str.size()-1); + spinbox->setValue(str.toInt()); +} + +void Widget::On_btnManualValveTest() +{ + char send_tab[11]; + send_tab[0] = 0xAA; + send_tab[1] = 0x00; + send_tab[2] = 0x04; + send_tab[3] = 's'; + send_tab[4] = 'd'; + send_tab[5] = '5'; + send_tab[6] = '0'; + send_tab[7] = 0xFF; + send_tab[8] = 0xFF; + send_tab[9] = 0xBB; + socket->write((const char*)send_tab, 10); + + send_tab[0] = 0xAA; + send_tab[1] = 0x00; + send_tab[2] = 0x05; + send_tab[3] = 's'; + send_tab[4] = 'c'; + send_tab[5] = '5'; + send_tab[6] = '0'; + send_tab[7] = '0'; + send_tab[8] = 0xFF; + send_tab[9] = 0xFF; + send_tab[10] = 0xBB; + socket->write((const char*)send_tab, 11); + + send_tab[0] = 0xAA; + send_tab[1] = 0x00; + send_tab[2] = 0x04; + send_tab[3] = 's'; + send_tab[4] = 'v'; + send_tab[5] = '1'; + send_tab[6] = '0'; + send_tab[7] = 0xFF; + send_tab[8] = 0xFF; + send_tab[9] = 0xBB; + socket->write((const char*)send_tab, 10); + + send_tab[0] = 0xAA; + send_tab[1] = 0x00; + send_tab[2] = 0x03; + send_tab[3] = 's'; + send_tab[4] = 't'; + send_tab[5] = 0xFF; + send_tab[6] = 0xFF; + send_tab[7] = 0xFF; + send_tab[8] = 0xBB; + socket->write((const char*)send_tab, 9); + + ui->tabWidget->setCurrentIndex(6); +} + +void Widget::On_btn_Tab7_3_click() +{ + char send_tab[9]; + send_tab[0] = 0xAA; + send_tab[1] = 0x00; + send_tab[2] = 0x03; + send_tab[3] = 's'; + send_tab[4] = 'p'; + send_tab[5] = 0xFF; + send_tab[6] = 0xFF; + send_tab[7] = 0xFF; + send_tab[8] = 0xBB; + + socket->write((const char*)send_tab, 9); + ui->tabWidget->setCurrentIndex(2); +} + +void Widget::On_btnchannelup_click() +{ + channel++; + if(channel > 48) + { + channel = 1; + } + ui->label_channel->setText(QString::number(channel)); +} + +void Widget::On_btnchanneldown_click() +{ + channel--; + if(channel < 1) + { + channel = 48; + } + ui->label_channel->setText(QString::number(channel)); +} + + +void Widget::On_btn_channel_send_clicked() +{ + + uint32_t valve_data_l; + uint32_t valve_data_h; + if(channel < 33) + { + valve_data_l = 1 << (channel - 1); + valve_data_h = 0; + } + else + { + valve_data_l = 0; + valve_data_h = 1 << (channel -33); + } + + + uint8_t data[6]; + uint8_t send_data[3000]; + data[0] = (valve_data_h >> 8) & 0xFF; + data[1]= valve_data_h & 0xFF; + data[2]= (valve_data_l >> 24) & 0xFF; + data[3]= (valve_data_l >> 16) & 0xFF; + data[4]= (valve_data_l >> 8) & 0xFF; + data[5]= valve_data_l & 0xFF; + + for(int i = 0; i < 500; i++) + { + memcpy(send_data +i*6, data, 6); + } + + char buf[TRIGGER_PULSE_NUMBER * (VALVE_NUMBER / 8) + 8]; + buf[0] = 0xAA; + buf[1] = 0x0B; + buf[2] = 0xBA; + buf[3] = 'd'; + buf[4] = 'a'; + buf[3005] = 0xFF; + buf[3006] = 0xFF; + buf[3007] = 0xBB; + memcpy(buf+5, send_data, TRIGGER_PULSE_NUMBER * (VALVE_NUMBER / 8)); + socket->write((const char*)buf, TRIGGER_PULSE_NUMBER * (VALVE_NUMBER / 8) + 8); +} + +//void Widget::On_btn_1_clicked() +//{ +// QWidget* m_widget = this->focusWidget(); +// if(m_widget->inherits("QSpinBox")) +// { +// QSpinBox* spinbox = qobject_cast(m_widget); +// int value = spinbox->value(); +// QString str = QString::number(value); +// str.append("1"); +// spinbox->setValue(str.toInt()); +// } +// else +// { +// QDoubleSpinBox* spinbox = qobject_cast(m_widget); +// int value = spinbox->value(); +// QString str = QString::number(value); +// str.append("1"); +// spinbox->setValue(str.toDouble()); +// } +//} + +//void Widget::On_btn_2_clicked() +//{ +// QWidget* m_widget = this->focusWidget(); +// if(m_widget->inherits("QSpinBox")) +// { +// QSpinBox* spinbox = qobject_cast(m_widget); +// int value = spinbox->value(); +// QString str = QString::number(value); +// str.append("2"); +// spinbox->setValue(str.toInt()); +// } +// else +// { +// QDoubleSpinBox* spinbox = qobject_cast(m_widget); +// int value = spinbox->value(); +// QString str = QString::number(value); +// str.append("2"); +// spinbox->setValue(str.toDouble()); +// } +//} + +//void Widget::On_btn_3_clicked() +//{ +// QWidget* m_widget = this->focusWidget(); +// if(m_widget->inherits("QSpinBox")) +// { +// QSpinBox* spinbox = qobject_cast(m_widget); +// int value = spinbox->value(); +// QString str = QString::number(value); +// str.append("3"); +// spinbox->setValue(str.toInt()); +// } +// else +// { +// QDoubleSpinBox* spinbox = qobject_cast(m_widget); +// int value = spinbox->value(); +// QString str = QString::number(value); +// str.append("3"); +// spinbox->setValue(str.toDouble()); +// } +//} + +//void Widget::On_btn_4_clicked() +//{ +// QWidget* m_widget = this->focusWidget(); +// if(m_widget->inherits("QSpinBox")) +// { +// QSpinBox* spinbox = qobject_cast(m_widget); +// int value = spinbox->value(); +// QString str = QString::number(value); +// str.append("4"); +// spinbox->setValue(str.toInt()); +// } +// else +// { +// QDoubleSpinBox* spinbox = qobject_cast(m_widget); +// int value = spinbox->value(); +// QString str = QString::number(value); +// str.append("4"); +// spinbox->setValue(str.toDouble()); +// } +//} + +//void Widget::On_btn_5_clicked() +//{ +// QWidget* m_widget = this->focusWidget(); +// if(m_widget->inherits("QSpinBox")) +// { +// QSpinBox* spinbox = qobject_cast(m_widget); +// int value = spinbox->value(); +// QString str = QString::number(value); +// str.append("5"); +// spinbox->setValue(str.toInt()); +// } +// else +// { +// QDoubleSpinBox* spinbox = qobject_cast(m_widget); +// int value = spinbox->value(); +// QString str = QString::number(value); +// str.append("5"); +// spinbox->setValue(str.toDouble()); +// } +//} + +//void Widget::On_btn_6_clicked() +//{ +// QWidget* m_widget = this->focusWidget(); +// if(m_widget->inherits("QSpinBox")) +// { +// QSpinBox* spinbox = qobject_cast(m_widget); +// int value = spinbox->value(); +// QString str = QString::number(value); +// str.append("6"); +// spinbox->setValue(str.toInt()); +// } +// else +// { +// QDoubleSpinBox* spinbox = qobject_cast(m_widget); +// int value = spinbox->value(); +// QString str = QString::number(value); +// str.append("6"); +// spinbox->setValue(str.toDouble()); +// } +//} + +//void Widget::On_btn_7_clicked() +//{ +// QWidget* m_widget = this->focusWidget(); +// if(m_widget->inherits("QSpinBox")) +// { +// QSpinBox* spinbox = qobject_cast(m_widget); +// int value = spinbox->value(); +// QString str = QString::number(value); +// str.append("7"); +// spinbox->setValue(str.toInt()); +// } +// else +// { +// QDoubleSpinBox* spinbox = qobject_cast(m_widget); +// int value = spinbox->value(); +// QString str = QString::number(value); +// str.append("7"); +// spinbox->setValue(str.toDouble()); +// } +//} + +//void Widget::On_btn_8_clicked() +//{ +// QWidget* m_widget = this->focusWidget(); +// if(m_widget->inherits("QSpinBox")) +// { +// QSpinBox* spinbox = qobject_cast(m_widget); +// int value = spinbox->value(); +// QString str = QString::number(value); +// str.append("8"); +// spinbox->setValue(str.toInt()); +// } +// else +// { +// QDoubleSpinBox* spinbox = qobject_cast(m_widget); +// int value = spinbox->value(); +// QString str = QString::number(value); +// str.append("8"); +// spinbox->setValue(str.toDouble()); +// } +//} + +//void Widget::On_btn_9_clicked() +//{ +// QWidget* m_widget = this->focusWidget(); +// if(m_widget->inherits("QSpinBox")) +// { +// QSpinBox* spinbox = qobject_cast(m_widget); +// int value = spinbox->value(); +// QString str = QString::number(value); +// str.append("9"); +// spinbox->setValue(str.toInt()); +// } +// else +// { +// QDoubleSpinBox* spinbox = qobject_cast(m_widget); +// int value = spinbox->value(); +// QString str = QString::number(value); +// str.append("9"); +// spinbox->setValue(str.toDouble()); +// } +//} + +//void Widget::On_btn_0_clicked() +//{ +// QWidget* m_widget = this->focusWidget(); +// if(m_widget->inherits("QSpinBox")) +// { +// QSpinBox* spinbox = qobject_cast(m_widget); +// int value = spinbox->value(); +// QString str = QString::number(value); +// str.append("0"); +// spinbox->setValue(str.toInt()); +// } +// else +// { +// QDoubleSpinBox* spinbox = qobject_cast(m_widget); +// int value = spinbox->value(); +// QString str = QString::number(value); +// str.append("0"); +// spinbox->setValue(str.toDouble()); +// } +//} + +//void Widget::On_btn_dot_clicked() +//{ +// QWidget* m_widget = this->focusWidget(); +// if(m_widget->inherits("QDoubleSpinbox")) +// { +// QDoubleSpinBox* spinbox = qobject_cast(m_widget); +// int value = spinbox->value(); +// QString str = QString::number(value); +// str.append("."); +// spinbox->setValue(str.toDouble()); +// } +//} + +//void Widget::On_btn_del_clicked() +//{ +// QWidget* m_widget = this->focusWidget(); +// if(m_widget->inherits("QSpinBox")) +// { +// QSpinBox* spinbox = qobject_cast(m_widget); +// int value = spinbox->value(); +// QString str = QString::number(value); +// if(str.size()==0) return; +// str = str.left(str.size()-1); + +// spinbox->setValue(str.toInt()); +// } +// else +// { +// QDoubleSpinBox* spinbox = qobject_cast(m_widget); +// int value = spinbox->value(); +// QString str = QString::number(value); +// if(str.size()==0) return; +// str = str.left(str.size()-1); +// spinbox->setValue(str.toDouble()); +// } +//} + +//void Widget::On_btn_clr_clicked() +//{ +// QWidget* m_widget = this->focusWidget(); +// if(m_widget->inherits("QSpinBox")) +// { +// QSpinBox* spinbox = qobject_cast(m_widget); +// spinbox->clear(); +// } +// else +// { +// QDoubleSpinBox* spinbox = qobject_cast(m_widget); +// spinbox->cleanText(); +// } +//} diff --git a/widget.h b/widget.h new file mode 100644 index 0000000..b22c3a2 --- /dev/null +++ b/widget.h @@ -0,0 +1,155 @@ +#ifndef WIDGET_H +#define WIDGET_H + +#include +#include "passwddialog.h" +#include "modifypasswdialog.h" +#include +#include +#include +#include +#include "thread.h" +#include "camera.h" +#include "correct.h" + +//#define DEBUG + +typedef struct +{ + char passwd[7]; //密码 + int delay; //延时时间 + int defect_area; //缺陷大小阈值 + int blow_time; //吹气量 + int save_img; //保是否存图片标志位 + int rigorous; +}Para; + +typedef struct +{ + QString name; + int index; +}Models; + + +namespace Ui { +class Widget; +} + +class Widget : public QWidget +{ + Q_OBJECT + +public: + explicit Widget(QWidget *parent = 0); + ~Widget(); + +private slots: + //button + //Tab_1 + void On_btn_Tab1_2_click(); + void On_btn_Tab1_3_click(); + //Tab_2 + void On_btnStart_click(); + void On_bthStop_click(); + void On_btn_Tab2_1_click(); + void On_btn_Tab2_5_click(); + //Tab_3 + void On_btnValveTest_click(); + void On_btn_Tab3_1_click(); + void On_btn_Tab3_4_click(); + void On_btn_Tab3_6_click(); + void On_btnImportImg_click(); + void On_btnSaveImg_click(); + void On_btnImportModel_click(); + void On_btnModifyPasswd_click(); + //Tab_4 + void On_btn_correct_click(); + void On_btn_getcorrect_click(); + void On_btn_setcamerapara_click(); + void On_btn_Tab4_3_click(); + //Tab_5 + void On_btn_Tab5_3_click(); + void On_btn_set_thereshold_click(); + //Tab_6 + void On_btn_Tab6_3_click(); + + void On_btn_close_click(); + + void On_candy_select_box_index_change(int); + + + void On_btnManualValveTest(); + void On_btn_Tab7_3_click(); + void On_btnchannelup_click(); + void On_btnchanneldown_click(); + void On_btn_channel_send_clicked(); + + void judge_password(QString); + void modify_password(QString); + void showimage(cv::Mat); + void drawbox(QVector); + void showimage_test(cv::Mat); + //void deal_camera_offline(); + void ServerNewConnection(); + void get_tab(uint8_t*); + + void On_btn1_clicked(); + void On_btn2_clicked(); + void On_btn3_clicked(); + void On_btn4_clicked(); + void On_btn5_clicked(); + void On_btn6_clicked(); + void On_btn7_clicked(); + void On_btn8_clicked(); + void On_btn9_clicked(); + void On_btn0_clicked(); + void On_btn_DEL_clicked(); + +// void On_btn_1_clicked(); +// void On_btn_2_clicked(); +// void On_btn_3_clicked(); +// void On_btn_4_clicked(); +// void On_btn_5_clicked(); +// void On_btn_6_clicked(); +// void On_btn_7_clicked(); +// void On_btn_8_clicked(); +// void On_btn_9_clicked(); +// void On_btn_0_clicked(); +// void On_btn_dot_clicked(); +// void On_btn_del_clicked(); +// void On_btn_clr_clicked(); + +private: + Ui::Widget *ui; + PasswdDialog* passwd_dialog; + ModifyPasswdialog* modify_passwd_dialog; + QPixmap pix; + QPixmap pix_test; + Process_img* process_img; + Adjust_para* adjust_para; + Camera* m_camera; + QVector models_vector; + //Correct* m_correct; + QTcpServer* server; + QTcpSocket* socket; + Correct* m_correct; + char passwd[7]; + int channel; +#ifdef DEBUG + cv::Mat defect_pic; +#endif + Grab_img* grab_img;//test_thread + + void connect_signals(); + void init_window(); + bool init_script(); + bool select_candy(); + void load_para_config(); + void set_candy_select_box(); + +signals: + void correct_signal(); + void wrong_passwd(); +}; + +#endif // WIDGET_H diff --git a/widget.o b/widget.o new file mode 100644 index 0000000..be862d3 Binary files /dev/null and b/widget.o differ diff --git a/widget.ui b/widget.ui new file mode 100644 index 0000000..0656cdf --- /dev/null +++ b/widget.ui @@ -0,0 +1,7795 @@ + + + Widget + + + + 0 + 0 + 1024 + 768 + + + + Widget + + + + + 0 + 0 + 1021 + 761 + + + + background-color: rgb(218, 239, 252); + + + 4 + + + + Tab 1 + + + + + 100 + 210 + 291 + 121 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 195 + 196 + 194 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 195 + 196 + 194 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 136 + 138 + 133 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + Ubuntu + 24 + 50 + false + false + + + + color: rgb(238, 238, 236); +border-radius:10px; +background-color: rgb(136, 138, 133); +font: 24pt "Ubuntu"; +border-width:4px; + + + 分选页面 +Sorting Page + + + + + + 570 + 210 + 291 + 121 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 195 + 196 + 194 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 195 + 196 + 194 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 136 + 138 + 133 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 24 + + + + color: rgb(238, 238, 236); +background-color: rgb(136, 138, 133); +font: 24pt "Ubuntu"; +border-radius:10px; + + + 详细设置 +Settings + + + + + + 35 + 10 + 921 + 61 + + + + + 40 + + + + color: rgb(238, 238, 236); +background-color: rgb(136, 138, 133); +border-width:4px; +border-radius:25px; + + + Candy Grading System + + + Qt::AlignCenter + + + + + + 35 + 640 + 931 + 61 + + + + + 40 + + + + color: rgb(238, 238, 236); +background-color: rgb(136, 138, 133); +border-width:4px; +border-radius:25px; + + + + + + Qt::AlignCenter + + + + + + 870 + 560 + 71 + 41 + + + + + + + + + + 590 + 530 + 231 + 101 + + + + + Samyak Devanagari + 20 + 75 + true + + + + color: rgb(238, 238, 236); +background-color: rgb(204, 0, 0); +border-radius:10px; + + + 关 机 +Power off + + + + + + Tab 2 + + + + + 0 + 0 + 981 + 521 + + + + background-color: rgb(0, 0, 0); + + + + + + + + + 20 + 580 + 221 + 91 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 195 + 196 + 194 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 195 + 196 + 194 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 136 + 138 + 133 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 24 + + + + color: rgb(238, 238, 236); +border-radius:15px; +background-color: rgb(136, 138, 133); +border-width:4px; + + + 开始分选 +Start + + + + + + 260 + 580 + 221 + 91 + + + + + + + + + 0 + 0 + 0 + + + + + + + 46 + 52 + 54 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 0 + 0 + 0 + + + + + + + 255 + 255 + 255 + + + + + + + 0 + 0 + 0 + + + + + + + 46 + 52 + 54 + + + + + + + 46 + 52 + 54 + + + + + + + 0 + 0 + 0 + + + + + + + 195 + 196 + 194 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 0 + 0 + 0 + + + + + + + 46 + 52 + 54 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 0 + 0 + 0 + + + + + + + 255 + 255 + 255 + + + + + + + 0 + 0 + 0 + + + + + + + 46 + 52 + 54 + + + + + + + 46 + 52 + 54 + + + + + + + 0 + 0 + 0 + + + + + + + 195 + 196 + 194 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 0 + 0 + 0 + + + + + + + 46 + 52 + 54 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 0 + 0 + 0 + + + + + + + 255 + 255 + 255 + + + + + + + 0 + 0 + 0 + + + + + + + 46 + 52 + 54 + + + + + + + 46 + 52 + 54 + + + + + + + 0 + 0 + 0 + + + + + + + 136 + 138 + 133 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 24 + + + + color: rgb(0, 0, 0); +background-color: rgb(46, 52, 54); +border-radius:10px; + + + 停止分选 +Stop + + + + + + 510 + 580 + 221 + 91 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 195 + 196 + 194 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 195 + 196 + 194 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 136 + 138 + 133 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 24 + + + + color: rgb(238, 238, 236); +border-radius:10px; +background-color: rgb(136, 138, 133); +font: 24pt "Ubuntu"; +border-width:4px; + + + 主菜单 +Menu + + + + + + 760 + 580 + 221 + 91 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 195 + 196 + 194 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 195 + 196 + 194 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 136 + 138 + 133 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 24 + + + + color: rgb(238, 238, 236); +border-radius:10px; +background-color: rgb(136, 138, 133); +font: 24pt "Ubuntu"; +border-width:4px; + + + 参数调整 +Parameters + + + + + + 290 + 530 + 161 + 41 + + + + + 18 + + + + + + + + + + Tab3 + + + + + 130 + 140 + 291 + 81 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 195 + 196 + 194 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 195 + 196 + 194 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 136 + 138 + 133 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + Ubuntu + 24 + 50 + false + false + + + + color: rgb(238, 238, 236); +border-radius:10px; +background-color: rgb(136, 138, 133); +font: 24pt "Ubuntu"; +border-width:4px; + + + 相机参数设置 +Camera Parameters + + + + + + 130 + 270 + 291 + 81 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 195 + 196 + 194 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 195 + 196 + 194 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 136 + 138 + 133 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 24 + + + + color: rgb(238, 238, 236); +border-radius:10px; +background-color: rgb(136, 138, 133); +font: 24pt "Ubuntu"; +border-width:4px; + + + 分选糖果类型 +Candy Types + + + + + + 0 + 20 + 311 + 101 + + + + + 30 + + + + color: rgb(238, 238, 236); +background-color: rgb(204, 0, 0); +border-radius:10px; + + + 详细设置 +Settings + + + Qt::AlignCenter + + + + + + 540 + 140 + 301 + 81 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 195 + 196 + 194 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 195 + 196 + 194 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 136 + 138 + 133 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 24 + + + + color: rgb(238, 238, 236); +border-radius:10px; +background-color: rgb(136, 138, 133); +font: 24pt "Ubuntu"; +border-width:4px; + + + 喷阀测试 +Test Valves + + + + + + 700 + 610 + 221 + 91 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 195 + 196 + 194 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 195 + 196 + 194 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 136 + 138 + 133 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 24 + + + + color: rgb(238, 238, 236); +border-radius:10px; +background-color: rgb(136, 138, 133); +font: 24pt "Ubuntu"; +border-width:4px; + + + 主菜单 +Menu + + + + + + 130 + 390 + 291 + 81 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 195 + 196 + 194 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 195 + 196 + 194 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 136 + 138 + 133 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 24 + + + + color: rgb(238, 238, 236); +border-radius:10px; +background-color: rgb(136, 138, 133); +font: 24pt "Ubuntu"; +border-width:4px; + + + 导出图片 +Export Images + + + + + + 540 + 270 + 301 + 81 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 195 + 196 + 194 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 195 + 196 + 194 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 136 + 138 + 133 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 24 + + + + color: rgb(238, 238, 236); +border-radius:10px; +background-color: rgb(136, 138, 133); +font: 24pt "Ubuntu"; +border-width:4px; + + + Save + + + + + + 540 + 390 + 301 + 81 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 195 + 196 + 194 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 195 + 196 + 194 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 136 + 138 + 133 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 24 + + + + color: rgb(238, 238, 236); +border-radius:10px; +background-color: rgb(136, 138, 133); +font: 24pt "Ubuntu"; +border-width:4px; + + + 导入模型 +Import Models + + + + + + 130 + 510 + 291 + 81 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 195 + 196 + 194 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 195 + 196 + 194 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 136 + 138 + 133 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 24 + + + + color: rgb(238, 238, 236); +border-radius:10px; +background-color: rgb(136, 138, 133); +font: 24pt "Ubuntu"; +border-width:4px; + + + 修改密码 +Change Password + + + + + + 540 + 510 + 301 + 81 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 195 + 196 + 194 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 195 + 196 + 194 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 204 + 207 + 200 + + + + + + + 170 + 172 + 166 + + + + + + + 68 + 69 + 66 + + + + + + + 91 + 92 + 89 + + + + + + + 238 + 238 + 236 + + + + + + + 255 + 255 + 255 + + + + + + + 238 + 238 + 236 + + + + + + + 136 + 138 + 133 + + + + + + + 136 + 138 + 133 + + + + + + + 0 + 0 + 0 + + + + + + + 136 + 138 + 133 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 24 + + + + color: rgb(238, 238, 236); +border-radius:10px; +background-color: rgb(136, 138, 133); +font: 24pt "Ubuntu"; +border-width:4px; + + + 喷阀手动测试 +Manual Test Valves + + + + + + tab_4 + + + + + 0 + 0 + 641 + 431 + + + + background-color: rgb(0, 0, 0); + + + + + + + + + 640 + 60 + 151 + 71 + + + + + 16 + + + + 曝光时间 +Explosure + + + + + + 640 + 150 + 181 + 61 + + + + + 16 + + + + 白平衡 +White Balance + + + + + + 640 + 240 + 161 + 51 + + + + + 16 + + + + 增益 +Gain + + + + + + 690 + 350 + 241 + 101 + + + + + 24 + + + + color: rgb(238, 238, 236); +background-color: rgb(136, 138, 133); +border-radius:10px; + + + 设置参数 +Set + + + + + + 780 + 250 + 231 + 41 + + + + + 18 + + + + QDoubleSpinBox::up-button +{subcontrol-origin:border; +subcontrol-position:right; +width:50px; +height:100px; +} +QDoubleSpinBox::down-button +{subcontrol-origin:border; +subcontrol-position:left; +width:50px; +height:100px; +} + + + + + + 790 + 60 + 221 + 61 + + + + + 18 + + + + QDoubleSpinBox::up-button +{subcontrol-origin:border; +subcontrol-position:right; +width:50px; +height:100px; +} +QDoubleSpinBox::down-button +{subcontrol-origin:border; +subcontrol-position:left; +width:50px; +height:100px; +} + + + + + + 780 + 150 + 231 + 51 + + + + + 18 + + + + QSpinBox::up-button +{subcontrol-origin:border; +subcontrol-position:right; +width:50px; +height:100px; +} +QSpinBox::down-button +{subcontrol-origin:border; +subcontrol-position:left; +width:50px; +height:100px; +} + + + + + + 10 + 450 + 341 + 91 + + + + + 24 + + + + color: rgb(238, 238, 236); +background-color: rgb(136, 138, 133); +border-radius:10px; + + + 采集校正图像 +Grap Correcting Image + + + + + + 10 + 570 + 341 + 81 + + + + + 24 + + + + color: rgb(238, 238, 236); +background-color: rgb(136, 138, 133); +border-radius:10px; + + + 色彩校正 +Color Correcting + + + + + + 780 + 610 + 201 + 81 + + + + + 24 + + + + color: rgb(238, 238, 236); +background-color: rgb(136, 138, 133); +border-radius:10px; + + + 返回 +Back + + + + + + 400 + 550 + 261 + 81 + + + + + 16 + + + + 亮度值(brightness): + +(need correcting board) + + + + + + 590 + 540 + 121 + 51 + + + + + 16 + + + + TextLabel + + + label_4_3 + label_4_2 + label_4_1 + showlabel_set + btn_setcamerapara + gain_spinBox + et_spinBox + white_spinBox + btn_getcorrect + btn_correct + btn_Tab4_3 + label_1 + label_2 + + + + tab_5 + + + + + 20 + 150 + 331 + 61 + + + + + 20 + + + + 缺陷面积阈值 +Defect Area + + + + + + 20 + 240 + 331 + 71 + + + + + 20 + + + + 延时时间 +Delay Time + + + + + + 380 + 149 + 221 + 51 + + + + + 18 + + + + + + + 380 + 249 + 221 + 51 + + + + + 18 + + + + + + + 0 + 30 + 391 + 91 + + + + + 30 + + + + color: rgb(238, 238, 236); +background-color: rgb(204, 0, 0); +border-radius:10px; + + + 分选阈值设置 +Parameters + + + Qt::AlignCenter + + + + + + 790 + 600 + 201 + 91 + + + + + 28 + + + + color: rgb(238, 238, 236); +background-color: rgb(136, 138, 133); +border-radius:10px; + + + 返回 +Back + + + + + + 410 + 610 + 181 + 91 + + + + + 28 + + + + color: rgb(238, 238, 236); +background-color: rgb(136, 138, 133); +border-radius:10px; + + + 设置 +Set + + + + + + 20 + 350 + 331 + 61 + + + + + 20 + + + + 吹气量 +Blow Time + + + + + + 380 + 360 + 221 + 51 + + + + + 18 + + + + + + + 760 + 150 + 61 + 51 + + + + + 15 + + + + 2 + + + + + + 840 + 150 + 61 + 51 + + + + + 15 + + + + 3 + + + + + + 680 + 220 + 61 + 51 + + + + + 15 + + + + 4 + + + + + + 760 + 220 + 61 + 51 + + + + + 15 + + + + 5 + + + + + + 840 + 220 + 61 + 51 + + + + + 15 + + + + 6 + + + + + + 680 + 290 + 61 + 51 + + + + + 15 + + + + 7 + + + + + + 760 + 290 + 61 + 51 + + + + + 15 + + + + 8 + + + + + + 840 + 290 + 61 + 51 + + + + + 15 + + + + 9 + + + + + + 840 + 360 + 71 + 51 + + + + + 15 + + + + DEL + + + + + + 680 + 150 + 61 + 51 + + + + + 15 + + + + 1 + + + + + + 760 + 360 + 61 + 51 + + + + + 15 + + + + 0 + + + + + + 20 + 460 + 331 + 81 + + + + + 20 + + + + 严格程度 +Rigorous Level + + + + + + 380 + 480 + 221 + 51 + + + + + 18 + + + + + + + tab_6 + + + + + 0 + 40 + 351 + 101 + + + + + 30 + + + + color: rgb(238, 238, 236); +background-color: rgb(204, 0, 0); +border-radius:10px; + + + 糖果类型选择: +Candy Type + + + Qt::AlignCenter + + + + + + 710 + 590 + 211 + 91 + + + + + 28 + + + + color: rgb(238, 238, 236); +background-color: rgb(136, 138, 133); +border-radius:10px; + + + 返回 +Back + + + + + + 190 + 210 + 361 + 91 + + + + QComboBox +{ + border: 1px solid gray; + border-radius: 3px; + padding: 1px 18px 1px 3px; + color: #000; + font: normal normal 25px "Microsoft YaHei"; + background: transparent; +} +QCombox::drop-down +{ +width:100px; +border:none; +} + + + + + + Page + + + + + 0 + 40 + 351 + 101 + + + + + 30 + + + + color: rgb(238, 238, 236); +background-color: rgb(204, 0, 0); +border-radius:10px; + + + 喷阀手动测试: +Manual Test Valves + + + Qt::AlignCenter + + + + + + 30 + 260 + 131 + 101 + + + + + 20 + + + + 通道: +Channel + + + + + + 200 + 260 + 131 + 101 + + + + + 20 + + + + 0 + + + + + + 30 + 410 + 141 + 91 + + + + + 30 + + + + color: rgb(238, 238, 236); +background-color: rgb(136, 138, 133); +border-radius:10px; + + + + + + + + + + 230 + 410 + 141 + 91 + + + + + 30 + + + + color: rgb(238, 238, 236); +background-color: rgb(136, 138, 133); +border-radius:10px; + + + - + + + + + + 750 + 560 + 201 + 91 + + + + + 28 + + + + color: rgb(238, 238, 236); +background-color: rgb(136, 138, 133); +border-radius:10px; + + + 返回 +Back + + + + + + 30 + 550 + 341 + 91 + + + + + 30 + + + + color: rgb(238, 238, 236); +background-color: rgb(136, 138, 133); +border-radius:10px; + + + 发送通道 +Channel Send + + + + + + + + +