MemoLip_tablet
|
カメラ画像取得用モジュール More...
Functions | |
def | camera.camera_sub_process (camera_num, q_tx, q_rx, width, height, stop) |
カメラから直接画像を取得するサブプロセス More... | |
def | camera.open (camera_num=0) |
カメラ画像取得開始 More... | |
def | camera.close () |
カメラ画像取得停止 More... | |
def | camera.get () |
カメラ画像取得 More... | |
def | camera.get_width () |
def | camera.get_height () |
def | camera.transform_angle (x, y) |
def | camera.save (path=None, name=None, frame=None) |
カメラ画像の保存 More... | |
def | camera.jpeg_encode (frame, quality=20) |
jpegへのエンコード | |
def | camera.jpeg_decode (jpeg_frame) |
カメラ画像取得用モジュール
def camera.camera_sub_process | ( | camera_num, | |
q_tx, | |||
q_rx, | |||
width, | |||
height, | |||
stop | |||
) |
カメラから直接画像を取得するサブプロセス
サブプロセスを用いてプログラムのどの場所からでも無駄なくカメラ画像を取得できるようにしている
q_tx | サブプロセスへの送信用キュー |
q_rx | サブプロセスからの受信用キュー |
stop | サブプロセス停止用変数 |
def camera.close | ( | ) |
カメラ画像取得停止
カメラ画像取得とサブプロセスを終了する
def camera.get | ( | ) |
カメラ画像取得
サブプロセスにカメラ画像取得を要求し、サブプロセスから帰ってきた値を戻り値として返す
def camera.open | ( | camera_num = 0 | ) |
カメラ画像取得開始
サブプロセスを起動し、カメラ画像の取得を開始する
def camera.save | ( | path = None , |
|
name = None , |
|||
frame = None |
|||
) |
カメラ画像の保存
指定がなければ今のカメラ画像を'./photo/YMD_HMS.jpg'に保存する
path | ファイルパス |
name | ファイル名 |
frame | カメラ画像 |