728x90 분류 전체보기720 파이썬 - 캡챠 생성기(captcha) 모듈 설치 pip install captcha 글자 생성 예시 # Import the following modules from captcha.image import ImageCaptcha # Create an image instance of the given size image = ImageCaptcha(width = 280, height = 90) # Image captcha text captcha_text = 'GeeksforGeeks' # generate the image of the given text data = image.generate(captcha_text) # write the image on the given file and save it image.write(captcha_text, .. 2023. 3. 12. YOLO - 간단한 사물 인식 예제(YOLOv5, Colab) YOLO(You Only Look Once)는 딥러닝을 이용한 사물 인식 프레임워크다. 많은 인기 탓에 다양한 버전들(v3, v4, v5...)이 생겨나고 있다. 내가 사용할 예제의 버전은 YOLOv5이다. 깃허브 https://github.com/ultralytics/yolov5/wiki/Train-Custom-Data Train Custom Data YOLOv5 🚀 in PyTorch > ONNX > CoreML > TFLite. Contribute to ultralytics/yolov5 development by creating an account on GitHub. github.com 위 깃허브 페이지를 바탕으로 따라 하였다. Roboflow - 커스텀 데이터셋 만들기 https://app.rob.. 2023. 3. 12. 리눅스 - 현재 시간, 날짜 변경하기(date, NTP) date 명령어 date # 현재 시간 확인 sudo date -s "20230315 14:30:30" # 현재 시간 변경 date # 바뀐 시간 확인 NTP(Network Time Protocol) 명령어 (외부로부터 정확한 시간 정보를 가져오는 방법) sudo apt-get install ntp NTP 설치 sudo nano /etc/ntp.conf 설정 파일 수정 server time.bora.net server kr.pool.ntp.org server time.bora.net server time.kornet.net 설정 파일에 한국 시간 NTP 주소 등록 sudo service ntp restart NTP 서비스 재시작 2023. 3. 12. 네트워크 보안 - 아이피로 악의적인 피해 사례 검색(criminalip.io) https://www.criminalip.io/ko Cybersecurity Search Engine | Criminal IP Criminal IP is a Cyber Threat Intelligence Search Engine and Attack Surface Management(ASM) platform to find everything in Cybersecurity with impressive amount data capacities, API speed, and price. www.criminalip.io 2023. 3. 12. 리눅스 - 기본 게이트웨이 주소 변경 명령어(route) sudo route add default gw 192.168.0.2 # 추가 sudo route change default gw 192.168.0.2 # 변경 sudo route del default gw 192.168.0.2 # 제거 영구적으로 변경하고 싶을 경우 sudo vi /etc/network/interfaces 설정 파일 에디터로 열기 iface eth0 inet static address netmask gateway 설정 파일의 내용 수정 sudo service networking restart 서비스 재시작 2023. 3. 10. 리눅스 - ifconfig 아이피 변경 명령어 $ ifconfig eth0 예시) eth0의 IP 주소를 `192.168.0.100`로 변경하기 $ ifconfig eth0 192.168.0.100 2023. 3. 10. 셀레니움 - 크롬드라이브 자동 설치 모듈 설치 pip install webdriver_manager from webdriver_manager.chrome import ChromeDriverManager def exec_chrom(): driver = webdriver.Chrome(service=Service(ChromeDriverManager().install())) return driver 2023. 3. 8. 파이썬 - pyinstaller의 RecursionError : maximum recursion depth exceeded 오류 해결 방법 pyinstaller -w --onefile main.py 이런 예시로 main.py를 exe로 변환하는 과정에 RecursionError 오류가 생겼다면 .spec 파일을 아래처럼 수정 pyinstaller로 빌드를 한번 해주면 그 폴더에 main.spec이라는 파일이 하나 생기는데 이걸 연다. 상위 부분에다. (인코딩 바로 아래에) # -*- mode: python ; coding: utf-8 -*- import sys sys.setrecursionlimit(5000) # 혹은 import sys ; sys.setrecursionlimit(sys.getrecursionlimit() * 5) 두 줄을 새로 추가한다. (sys.setrecursionlimit 함수는 재귀 호출의 제한 설정이라고 한다. 기.. 2023. 3. 8. 일회용 이메일 사이트(sharklasers.com) https://www.sharklasers.com/ ✉ SharkLasers.com www.sharklasers.com 2023. 3. 7. Jekyll - {{ }}, {% %} 사용하기 (escape liquid template) Jekyll에서 마크다운을 작성하던 중 liquid template 문법을 사용을 해 깃허브 페이지에 디플로잉을 해보았는데 이상하게 결과가 출력이 되지 않았다. 알고 보니 Jekyll에서는 따로 {% raw %} {% endraw %}를 사용해 예외 처리를 시켜줘야 하는 것이었다. 작성 방법 {% raw %} {{ example }} {% endraw %} {% raw %} {% example %} {% endraw %} 결과 {{ example }} {% example %} 출처: https://atomic0x90.github.io/jekyll/markdown/2019/06/08/escape-liquid-template.html atomic0x90(Yujun Han) c와 c++ 를 사용하는 방법 설명.. 2023. 3. 7. 리눅스 - 파일 이름으로 파일 찾는 명령어(find, locate) find find / -name my.cnf 2>/dev/null /에서부터 my.cnf라는 이름의 파일을 찾는 명령어다. 뒤에 2>/dev/null은 Permission denied 같은 표준 오류 문자가 뜨면 /dev/null로 리다이렉션 시켜서 오류 문구가 출력을 하지 않기 위함이다. 장점: 기본적인 파일 찾는 명령어이고 다양한 옵션들을 사용할 수 있다. 단점: 파일을 찾는데 오랜 시간이 걸린다. locate locate my.cnf 검색 목록을 미리 mlocate.db 파일에 인덱싱 하므로 find 보다 더 빠르게 파일을 찾을 수 있다. 주기적으로 파일의 목록을 기록하는 cron 스케줄이 작동한다. 장점: find 명령어 보다 빠른 속도로 파일을 찾을 수 있다. 단점: 리눅스에 설치가 되지 않은 .. 2023. 3. 6. 프론트엔드 - 사이트맵 만드는 사이트(gloomaps.com) https://www.gloomaps.com/ GlooMaps - Visual Sitemap Tool Visual sitemaps made easy Start creating Watch video Create your visual sitemap on the go - easy peasy With GlooMaps it's really easy to create your own sitemaps fast and efficiently. Click a box to attach a child box, drag & drop to reorder or double clic www.gloomaps.com 2023. 3. 5. 이전 1 ··· 19 20 21 22 23 24 25 ··· 60 다음 728x90