728x90 분류 전체보기720 OCR - 테서랙트(Tesseract) 윈도우 버전 설치 https://github.com/UB-Mannheim/tesseract/wiki GitHub - UB-Mannheim/tesseract: Tesseract Open Source OCR Engine (main repository) Tesseract Open Source OCR Engine (main repository) - GitHub - UB-Mannheim/tesseract: Tesseract Open Source OCR Engine (main repository) github.com 2022. 5. 17. 콘솔창 바로 꺼지지 않게 방지하기 app.exe :_loop pause goto _loop 실행.bat 2022. 5. 15. VSCode 우클릭으로 파일 바로 열기 Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\*\shell\Open with VS Code] @="Edit with VS Code" "Icon"="C:\\\\Users\\\\[사용자 이름]\\\\AppData\\\\Local\\\\Programs\\\\Microsoft VS Code\\\\Code.exe,0" [HKEY_CLASSES_ROOT\*\shell\Open with VS Code\command] @="\"C:\\Users\\[사용자 이름]\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\" \"%1\"" 2022. 5. 12. PyQt - 스타일시트 레퍼런스 https://doc.qt.io/archives/qt-4.8/stylesheet-reference.html#list-of-properties Qt Style Sheets Reference | Qt 4.8 Qt Style Sheets Reference Qt Style Sheets support various properties, pseudo-states, and subcontrols that make it possible to customize the look of widgets. The following table lists the Qt widgets that can be customized using style sheets: WidgetHow to St doc.qt.io 출처: https://forum.. 2022. 5. 9. 파이썬 - ini 설정 파일 불러오기 import configparser def readConfigure(self): config = configparser.ConfigParser() config.read('./settings.ini', encoding='utf-8') settings = config['settings'] self.uid = settings['uid'] self.upw = settings['upw'] 2022. 5. 8. 파이썬 - 스레드 상관 없이 프로그램 완전 종료 import os os._exit() 출처: https://stackoverflow.com/questions/905189/why-does-sys-exit-not-exit-when-called-inside-a-thread-in-python Why does sys.exit() not exit when called inside a thread in Python? I am confused as to why the following code snippet would not exit when called in the thread, but would exit when called in the main thread. import sys, time from threading import Thread def testex... 2022. 5. 7. PyQt - 간단하게 토글 스위치 디자인하기 QCheckBox::indicator:unchecked { image: url("switch_off.png"); } QCheckBox::indicator:checked { image: url("switch_on.png"); } 이미지를 이용해서 토글 디자인 출처: https://stackoverflow.com/questions/62363953/how-to-create-toggle-switch-button-in-qt-designer How to create toggle switch button in qt designer? I am trying to create toggle button in qt designer. I refer on internet also but i couldn't find how to .. 2022. 5. 7. PyQt - designer .ui를 .py로 변환하기 pyuic5 -x sub.ui -o sub.py 2022. 5. 7. PyQt - 윈도우창 투명하게 만들기 [완전 투명하게 만들기] Form.setWindowFlags(QtCore.Qt.FramelessWindowHint) Form.setAttribute(QtCore.Qt.WA_TranslucentBackground) Form.setStyleSheet("background:transparent;") [불투명도 설정] Form.setWindowOpacity(0.5) 출처: https://stackoverflow.com/questions/7667552/qt-widget-with-transparent-background Qt Widget with Transparent Background (I'm using PySide, but I think the answer would be the same/similar for .. 2022. 5. 7. PyQt - 트레이(Tray) 만들기 및 메뉴 추가 from PyQt5.QtGui import QIcon trayIcon = QSystemTrayIcon(Form) icon = QIcon("icon.png") trayIcon.setIcon(icon) trayIcon.setToolTip('트레이 아이콘 설명') trayIcon.setVisible(True) trayIcon.show() menu = QMenu() exitAction = menu.addAction('Exit') exitAction.triggered.connect(app.quit) trayIcon.setContextMenu(menu) 참고: https://www.pythonguis.com/tutorials/system-tray-mac-menu-bar-applications-pyqt/ System.. 2022. 5. 7. PyQt - designer 스타일시트 추가하기 원하는 위젯 우클릭하고 styleSheet 바꾸기 클릭 이런식으로 border, :hover 등 다양한 스타일시트를 설정할 수 있음 문법은 CSS와 동일하며 다만 기능은 더 적다. 참고: https://blog.naver.com/PostView.naver?blogId=dhksrl0508&logNo=222344023916&parentCategoryNo=&categoryNo=232&viewDate=&isShowPopularPosts=false&from=postView PyQt StyleSheet로 Visual Studio UI를 만들어보자 마이크로소프트는 UI를 정말 잘 만드는 것 같습니다. 학교 공부로 Visual C++ 실습을 진행하는데, 우연... blog.naver.com 2022. 5. 7. 텐서플로우 - 꽃 이미지 맞추기 from shutil import ExecError import matplotlib.pyplot as plt import numpy as np import os import PIL import tensorflow as tf from tensorflow import keras from tensorflow.keras import layers from tensorflow.keras.models import Sequential # 데이터세트 다운로드 및 탐색하기 import pathlib dataset_url = "https://storage.googleapis.com/download.tensorflow.org/example_images/flower_photos.tgz" data_dir = tf.keras.ut.. 2022. 4. 29. 이전 1 ··· 42 43 44 45 46 47 48 ··· 60 다음 728x90