Skip to content

Instantly share code, notes, and snippets.

J0hmy J0hmy

  • Beijing China
Block or report user

Report or block J0hmy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@J0hmy
J0hmy / webcam-cv2.py
Last active Jul 8, 2019 — forked from tedmiston/webcam-cv2.py
Display the webcam in Python using OpenCV (cv2)
View webcam-cv2.py
"""
Simply display the contents of the webcam with optional mirroring using OpenCV
via the new Pythonic cv2 interface. Press <esc> to quit.
"""
import cv2
def show(img):
ret, thresh1 = cv2.threshold(img, 127, 255, cv2.THRESH_BINARY)
View gist:d9385c8d4d81c6b7adfd3fc57c09cd0c
#coding = utf-8
from selenium import webdriver
fp = webdriver.FirefoxProfile('C:/Users/XXX/AppData/Roaming/Mozilla/Firefox/Profiles/i4g2sert.default')
driver = webdriver.Firefox(fp)
# 或 driver = webdriver.Firefox()
driver.get("https://www.bing.com")
print "hello"
driver.close()
You can’t perform that action at this time.