This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import jsm | |
| import datetime | |
| import pandas as pd | |
| import matplotlib.dates as mdate | |
| import matplotlib.finance | |
| import pylab as plt | |
| import numpy as np | |
| import sqlite3 | |
| import pandas.io.sql as psql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import jsm | |
| import datetime | |
| import pandas as pd | |
| import dateutil.parser | |
| import matplotlib.dates as mdate | |
| import matplotlib.finance | |
| import pylab as plt | |
| import numpy as np | |
| import sqlite3 | |
| import pandas.io.sql as psql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| import cv2 | |
| import os | |
| import glob | |
| cur_dir = u"C:/Users/user/Desktop" | |
| os.chdir(cur_dir) | |
| jpg_list = glob.glob("*jpg") | |
| pic = jpg_list[0] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| import pylab as plt | |
| import pandas as pd | |
| def histgram2(name): | |
| data = pd.read_csv(name) | |
| a = data['A'].dropna() | |
| b = data['B'].dropna() | |
| c = data['C'].dropna() | |
| d = data['D'].dropna() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| import pylab as plt | |
| import pandas as pd | |
| def histgram2(name): | |
| data = pd.read_csv(name) | |
| a = data['A'] | |
| b = data['B'] | |
| plt.subplot(3,1,1),plt.hist(a.dropna(),bins=np.logspace(-1, 4, 50),normed=True,log=True,color='r'),plt.gca().set_xscale("log") | |
| plt.subplot(3,1,2),plt.hist(b.dropna(),bins=np.logspace(-1, 4, 50),normed=True,log=True,color='g'),plt.gca().set_xscale("log") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import cv2 | |
| #スケールの書き込み関数 | |
| def make_scale(im,length=40,from_edge = 15,thick = 2,hight = 6, font_size = 0.6,pix_size = 10): | |
| w = im.shape[0] | |
| h = im.shape[1] | |
| #横線 | |
| cv2.line(im,(w-length-from_edge,h-from_edge),(w-from_edge,h-from_edge),(255,255,0),thick) | |
| #縦線左 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: cp932 -*- | |
| from __future__ import with_statement | |
| import cv2 | |
| import os | |
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| import glob | |
| import re | |
| import codecs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| from PySide import QtCore,QtGui | |
| """生成されたフォームのファイルからフォームをインポート""" | |
| from pyqt_Opencv import Ui_Qt_CV_MainWindow | |
| """おまじない その1""" | |
| class DesignerMainWindow(QtGui.QMainWindow,Ui_Qt_CV_MainWindow): | |
| def __init__(self, parent = None): | |
| super(DesignerMainWindow, self).__init__(parent) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| import cv2 | |
| class opencv_test: | |
| #初期化 | |
| def __init__(self,parent = None): | |
| self.file = file | |
| #ファイルを読み込み、BGRをRGBに変換する関数 | |
| def open_pic(self,file): | |
| pic = cv2.imread(file) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: cp932 -*- | |
| from __future__ import with_statement | |
| import numpy as np | |
| import sys | |
| from PySide import QtCore,QtGui | |
| import os | |
| from pyqt_Opencv import Ui_Qt_CV_MainWindow | |
| #opencv_testファイルの読み込み | |
| from opencv_test import opencv_test |