본문 바로가기

전체 글38

2021 01 15 MongoDB - Pymongo를 이용한 MongoDB 사용, Crawling -Python에서 MongoDB접속 www.wheelodex.org/projects/pymongo/ Wheelodex — pymongo pymongo View on PyPI — Reverse Dependencies (838) Wheel Details Project: pymongo Version: 3.11.2 Filename: pymongo-3.11.2-cp39-cp39-manylinux2014_x86_64.whl Download: [link] Size: 518051 MD5: 727a7c310e57b9320c0b65ca6b7928a1 SHA256: 270a1f6a331eac3a39309 www.wheelodex.org from pymongo import MongoClient #client = MongoCl.. 2021. 1. 15.
2021 01 14 MongoDB - Python PyCharm(간단 예제, Class,Package,Crawling) -BMI 측정 k = int(input('몸무게: ')) h = float(input('키 : ')) m_h = h/100 bmi = k/m_h**2 bmi = round(bmi,1) if bmi 30 : print(f'BMI:{bmi}\n비만') -class import math class Bmi: def __init__(self): self.height = 0.0 self.weight = 0 self.bmi = 0.0 def __init__(self, weight, he.. 2021. 1. 14.
2021 01 14 MongoDB 수업 - MongoDB(compass,atlas) 설정 및 연결 MongoDB 설치 www.mongodb.com/try/download/enterprise MongoDB Enterprise Server Download Download MongoDB Enterprise Server, which provides advanced security and performance options for the most demanding apps. Use for free for development. www.mongodb.com Python 3.9.1 설치 www.python.org/ Welcome to Python.org The official home of the Python Programming Language www.python.org PyCharm Community 설치 w.. 2021. 1. 14.
Python openCV 이미지,동영상 출력/대칭/회전/확대,축소/크기조절/자르기 076923.github.io/posts/ Posts | 076923 Posts about Category 076923.github.io -이미지 출력 import cv2 image = cv2.imread("Image/cat.jpg", cv2.IMREAD_ANYCOLOR) # imread("경로", mode) / 이미지를 불러와 변수에 저장 cv2.imshow("cat",image) # 윈도우 창에 이미지를 띄움 height, width ,channel = image.shape # 해당 이미지의 높이, 너비, 채널의 값을 확인 print(height,width, channel) # 유효 비트가 많을 수록 더 정밀 / 채널 3 = 다색 이미지, 채널 1 = 단색 이미지 #cv2.waitKey(time) /.. 2020. 10. 22.