파이썬
-
[PyScript] html에서 파이썬 코드 실행하는 프레임워크Programming/Python 2022. 5. 23. 16:53
https://github.com/pyscript/pyscript 깃허브 주소 GitHub - pyscript/pyscript: Home Page: https://pyscript.net Examples: https://pyscript.net/examples Home Page: https://pyscript.net Examples: https://pyscript.net/examples - GitHub - pyscript/pyscript: Home Page: https://pyscript.net Examples: https://pyscript.net/examples github.com 전체코드 print('Hello, World!') 사용법 1. html의 head태그에 아래 코드 추가 2. body태그 안..
-
[OpenCV] 노트북 캠 스트리밍 하기Programming/Python 2022. 5. 19. 21:04
OpenCV = Open Source Computer Vision Library = 오픈소스 컴퓨터 비전 라이브러리 import cv2 print(cv2.__version__) * 버전을 확인해보니 코랩에서는 4.1.2 버전이 나온다. 전체코드 import cv2 capture = cv2.VideoCapture(0) capture.set(cv2.CAP_PROP_FRAME_WIDTH, 640) capture.set(cv2.CAP_PROP_FRAME_HEIGHT, 480) while cv2.waitKey(33) < 0: ret, frame = capture.read() cv2.imshow("VideoFrame", frame) capture.release() cv2.destroyAllWindows() **노트..