일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- nmap
- Materials
- port forwarding
- ssh
- STF
- STF_PortForwarding
- openpyxl
- 실행권한
- appium server
- nohup
- Jupyter
- mysql
- insert
- kitura
- rethinkdb
- create table
- Jupyter Notebook
- nGrinder
- sshpass
- postgresql
- PYTHON
- postgres
- appium
- ubuntu
- 28015
- perfect
- ftp
- SWIFT
- centos
- GoCD
- Today
- Total
don't stop believing
template 이미지를 원본 이미지와 매칭 시키는 sample 입니다.http://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_imgproc/py_template_matching/py_template_matching.html 6가지의 template matching method를 비교해 보는 예제입니다.원본 이미지는 twice 입니다. template 이미지는 누군지 모르겠습니다. 복스럽게 생겼네요. 아래와 같이 작성하고 OpenCV가 여러 matching method를 사용해 원본 이미지에서 template 이미지를 찾게해 보겠습니다. import cv2 import numpy as np from matplotlib import p..
Windows에 OpenCV 설치는 whl 파일로 설치합니다.먼저 python 버전을 확인합니다. C:\Users\tongchun>python --version Python 3.5.4 이제 아래 경로에서 버전에 맞는 whl 파일을 다운받아야 합니다.openCV는 numpy가 있어야 합니다. 그래서 numpy도 같이 설치 합니다. 아래 url에서 whl 파일을 다운받습니다.Numpy: https://www.lfd.uci.edu/~gohlke/pythonlibs/#numpyOpenCV: https://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv저는 python 버전이 3.5이기 때문에 아래 두 파일을 다운 받았습니다.numpy-1.13.3+mkl-cp35-cp35m-win_a..
Selenium With Python[http://selenium-python.readthedocs.io] 1. Installationhttp://selenium-python.readthedocs.io/installation.htmlSelenium 설치와 기본 설명입니다. 2. Getting Startedhttp://selenium-python.readthedocs.io/getting-started.htmlPython을 이용한 Selenium 기본 사용 설명과 Python Code 구조에 대해 설명합니다. 3. Navigatinghttp://selenium-python.readthedocs.io/navigating.html웹 페이지의 이동과 input에 대한 typing, drag and drop 등을 ..
Selenium을 사용해 테스트를 할때 element를 찾을 수 있도록 Web Page가 로딩이 끝날때 까지 기다려야 합니다.AJAX를 이용해 만든 Web의 경우 리소스가 로드하는데 부문별로 다를 수 있습니다. Selenium에서는 두 가지 타입의 wait method를 제공합니다. Explicit Waits특정 상태가 될때까지 기다리고, 상태가 되면 바로 실행한다. from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions a..
앞서 selenium에서 element를 찾는 것을 확인했습니다.Selenium Locating Elements (python) 각 element에 따라 method를 따로 사용하는 것 보다 깔끔하게 정리하기 위해 By를 사용해 봅시다.driver.find_element(By., '')으로 사용합니다. 여러 element를 찾을 경우 find_elements로 할 수 있습니다. 사용은 아래와 같이 합니다. from selenium.webdriver.common.by import By driver.find_element(By.XPATH, '//button[text()="Some text"]') driver.find_element(By.XPATH, '//button') driver.find_element(B..
Selenium을 사용하기 위해서는 Web source의 element를 찾아야 합니다.[http://selenium-python.readthedocs.io/locating-elements.html] Selenium에서는 web page의 elements를 찾기위해 아래와 같은 method들을 제공합니다.아래 method들은 HTML의 page source중 가장 첫번째 element를 반환합니다.find_element_by_idfind_element_by_namefind_element_by_xpathfind_element_by_link_textfind_element_by_partial_link_textfind_element_by_tag_namefind_element_by_class_namefind_el..