일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- ReactNative
- Android
- react
- androidstudio
- pydantic
- 네트워크
- 개발
- 센토스
- build
- linux
- 맥
- centos
- TensorFlow
- vsCode
- IOS
- 오블완
- PYTHON
- MachineLearning
- MAC
- Chrome
- xcode
- unittest
- 티스토리챌린지
- localserver
- VirtualBox
- 리눅스
- fastapi
- webpack
- node
- Today
- Total
목록Backend/Python & Blockchain (35)
로메오의 블로그

PYTHON CRAWLING 차례 selenium 설치 requests, beautifulsoap4가 설치되어 있다고 간주합니다. $ pip install selenium Chrome Webdriver 설치 나의 크롬 버전 확인합니다. chrome://version/ Chrome79.0.3945.130 (공식 빌드) (64비트) (cohort: Stable) 개정e22de67c28798d98833a7137c0e22876237fc40a-refs/branch-heads/3945@{#1047} OSWindows 10 OS Version 1709 (Build 16299.611) JavaScriptV8 7.9.317.33 chrome 79.0입니다. https://sites.google.com/a/chromium..
PYTHON CRAWLING 차례 beautifulsoup, requests 설치 $ pip install requests beautifulsoup4 $ touch index.py 문서 전체 출력하기 ## 문서 전체 출력 from urllib.request import urlopen from bs4 import BeautifulSoup html = urlopen('http://www.naver.com') bsObject = BeautifulSoup(html, 'html.parser') print(bsObject) $ python index.py 문서 title 출력 ## 문서 title 출력 from urllib.request import urlopen from bs4 import BeautifulSou..

[Facial Recognition] 단체사진에서 인원수 알아내기 [FACIAL RECOGNITION] 얼굴 비교하기 [FACIAL RECOGNITION] 얼굴 추출하기 img/group 폴더에 gates-jobs.jpg 사진을 추가합니다. $ touch identify.py import face_recognition from PIL import Image, ImageDraw # 빌게이츠 원본 인코딩 bill_image = face_recognition.load_image_file('./img/known/Bill Gates.jpg') bill_face_encoding = face_recognition.face_encodings(bill_image)[0] # 스티브잡스 원본 인코딩 steve_image =..

[Facial Recognition] 단체사진에서 인원수 알아내기 [FACIAL RECOGNITION] 얼굴 비교하기 img/group 폴더에 PYH2017063009810001300.jpg 사진을 추가합니다. $ touch pullfaces.py from PIL import Image import face_recognition image = face_recognition.load_image_file('./img/group/PYH2017063009810001300.jpg') face_locations = face_recognition.face_locations(image) for face_location in face_locations: top, right, bottom, left = face_locat..

[Facial Recognition] 단체사진에서 인원수 알아내기 $ mkdir img/known img/unknown known폴더에는 기준이 되는 얼굴을 넣습니다. 파일명으로 사람이름을 정확히 넣어줍니다. unknown 폴더는 비교대상이 되는 얼굴을 넣습니다. $ touch facematch.py import face_recognition trump = face_recognition.load_image_file('./img/known/Donald Trump.jpg') trump_face_encording = face_recognition.face_encodings(trump)[0] unknownface = face_recognition.load_image_file('./img/unknown/1BF80..

프로젝트 설정 $ python3 --version Python 3.7.4 $ cd /my/project/path $ mkdir facial_recognition $ mkdir facial_recognition/img facial_recognition/img/group $ code ./facial_recognition img/group 폴더에 단체 사진을 넣습니다. 라이브러리 설치 $ pip3 install opencv-python $ pip3 install opencv-contrib-python $ pip3 install cmake $ pip3 install dlib $ pip3 install face_recognition $ pip3 install flask findfaces.py $ touch fin..

App.js에서 truffle과 연결하도록 하겠습니다. /src/js/App.js 계정 정보를 가져와서 Content.js 콤포넌트로 넘겨서 화면에 표시하도록 하겠습니다. import React from 'react' import ReactDOM from 'react-dom' import Web3 from 'web3' import TruffleContract from 'truffle-contract' import Election from '../../build/contracts/Election.json' import Content from './Content' class App extends React.Component { constructor(props) { super(props) this.state ..

/src/index.html react용 root컴포넌트 추가하고 build.js 파일을 불러옵니다. webpack에서 output을 build.js 로 build 합니다. /src/App.js webpack.config.js에서 App.js 파일을 entry로 설정했기 때문에 App.js가 react의 시작이 됩니다. entry: path.join(__dirname, 'src/js', 'App.js'), $ touch src/js/App.js App.js의 기본 구조는 아래와 같습니다. import React from 'react' import ReactDOM from 'react-dom' class App extends React.Component { constructor(props) { super(..