I am Charmie

メモとログ

2019-01-01から1年間の記事一覧

RealSense SDK 2.0 on Mac OSX

目標は以下の通り. - RealSsnse d435をMac OSXで使えるようにする - pythonでも使えるようにする 公式のreadmeで不足している情報も書く. コンパイル時にlibusb関係のエラーが出たので~/.bash_profileに以下を追記 (ディレクトリ名はインストールされてい…

Mac OS X crashes and goes back to login window as soon as python codes executed

I had experiences that Mac OS X crashed and goes back to login window as soon as I execute some python codes. The codes contain either matplotlib or tk visualization. The first experience was with matplotlib on spyder. I guess the crash is…

inotify_add_watch( ) failed: "No space left on device"

The solution written here worked on my PC.

PyCharm: cross platform Python IDE

PyCharm is a python IDE. Community Edition How to install for Ubuntu We can install via Ubuntu software center as a snap package. See here for detail. Alternatively, we can do it via terminal as written in the official web. sudo snap insta…

Homebrew install error

Homebrewでgraphvizをインストールしようとしたら以下のようなエラーが表示された. ==> Downloading from https://akamai.bintray.com/a1/a1283e332d0754e450a7e46a1e1b0 ######################################################################## 100.0%…

ffmpeg: 動画ファイルの連結

色々試したけど,以下の方法でうまくいった. 詳細は公式ページ参照. ffmpeg -f concat -sefe 0 -i INPUT_LIST -c copy OUTPUT_FILE INPUT_LISTファイルの中身は以下の通り file 'INPUT_FILE_1' ... file 'INPUT_FILE_N'

g2opy on Mac Mojave

The two issues on the repository has not been merged yet as of 2019.10.05, however is super important to compile and install. It's fine to apply these two pull requests by yourself before compile,

g2opy compilation error on mac

The problem occurs when I compiled g2opy on Mac OS X Mojave. The solution is to edit as follows: // this is code is one before edit .def("x", (double (Eigen::Quaterniond::*) () const) &Eigen::Quaterniond::x) .def("y", (double (Eigen::Quate…

No module named cv2.aruco

opencv-python と opencv-contrib-pythonが競合を起こすらしい. 解決策は,いったん両方をアンインストールしてから,再度 opencv-contrib-python のみをインストール. pip uninstall opencv-python pip uninstall opencv-contrib-python pip install open…

ffmpeg: memo

映像の一部(領域)を切り出し ffmpeg -i INPUT_FILE -vf crop=WIDTH:HEIGHT:X:Y OUTPUT_FILE ffmpeg -i input.mp4 -vf crop=300:200:50:100 output.mp4 映像の一部(時間)を切り出し (開始・終了時刻の指定) ffmpeg -i INPUT_FILE -ss hh:mm:ss -to hh:mm:ss -…

評価値

領域分割の評価値

性格診断

www.16personalities.com www.motivation-up.com xn--u9j342hcwjvlftpd486czfm.com www2.osk.3web.ne.jp

医用画像

単純X線 X線源からイオン化した放射線を使う 肺・腹部疾患の有無,骨折の確認 CT (Computed Tomography) 異なる方向から観察される放射線の減衰度から再構成 骨,臓器,血管,癌の病変の有無を見る.診断や手術計画 造影剤の使用により血管を可視化可能 MRI …

Ubuntuで音楽ファイルを云々

ファイル形式の変更 SoundConverterが便利だった. - apt install soundconverter でインストール - GUIベースなので操作が簡単 - 読込可能な形式: Ogg Vorbis, AAC, MP3, FLAC, WAV, AVI, MPEG, MOV, M4A, AC3, DTS, ALAC, MPC, Shorten, APE, SID, MOD, XM…

zip file extraction on Google Drive

This app unpacks zip files on Google Drive.

install imapsync on Ubuntu 18.04

The minimum set of commands are following to install imapsync. sudo apt install git make cpanminus git clone https://github.com/imapsync/imapsync.git cd imapsync sudo make install However, I got the following error What you have to do befo…

Anaconda's channel priority

Summary about Anaconda's channel priority to avoid unexpected version change of some packages manage channel priority by conda config --add/--prepend/--append channels new_channel -. You can check the official information here The problem …

Nvidiaのドライバを間違えてupgradeしちゃった時の対処

3行で nvidiaのドライバを削除 cuda関係のファイルを削除 再インストール 経緯 ubuntuのパッケージマネージャでupgradeをした時に,nvidiaのドライバをupgradeしてしまったっぽく,pytorchでcudaを使った処理ができなくて困った. (実は未だに)状況を完全に…

HPatches

HPatchesの概要 CVPR2017で発表された論文 画像の局所特徴記述子を評価するためのベンチマークを提案 複数のタスクで既存手法を評価 背景 既存のデータセット・評価方法 評価の全ての側面を明らかにしていない 論文に掲載される結果に曖昧性や非一貫性が生じ…

Unityで3次元モデルを表示

Unityで3次元モデルを表示する. 公式ドキュメントの意訳なので間違っているかも. 使用可能な3次元モデルのファイル形式 (公式ドキュメント) 以下の2種類のファイルのいずれかであれば扱える. ※ ただし,Proprietaryファイルを扱うためには,該当するソフ…

Unity 2D で画像を動的に切り替える

とりあえず3行で Unity 2Dで Scriptを駆使して ゲーム実行中に複数枚の画像を切り替える 動画確認バージョン 以下のUnityで動作確認済み 2018.3.7f1 2019.1.3 手順 そんなに大変じゃない. 手順 1 プロジェクトの新規作成 2Dのプロジェクトを新規作成 手順 2…

DICOM viewer with Unity

Purpose The purpose of this post is to describe how to view (and control) a 3D medical data as DICOM. Material to check Slide: Unity for medical and educational applications Simple DICOM loader an asset to display DICOM data $49.99 High Sp…

Control HTC Vive with C++

will add as soon as I tested those libraries. C++ libraries for HMDs OpenVR OpenXR OpenHMD C++ libraries for graphics Ogre3d

OvrVisionPro with HTC Vive

タイトル通り,前ポストで散々けなしたOvrvision Proの映像をHTC Viveで閲覧した. 簡単.感動.Unity恐るべし!!Viva Ovrvision Pro!! バージョン 以下のバージョンで成功 Unity Ovrvision SDK SteamVR 2018.3.7f1 1.90 1.3.23 2019.1.3 1.90 ? 事前準備 以…

OvrVision Pro SDK

タイトル通り,Ovrvision ProのSDKを使ってみようという企画. 簡単にまとめると - SDKをダウンロードすればすぐ動く - 重要な説明が全く書いていないため,自分で新しくプロジェクトを作るのはほぼ不可能 - 買って失敗した UnityやUnreal Engineから使う,…

はてなブログ開設

10年近く続けていたwordpress.comでのブログを辞め,はてなブログに移行した. 以降の理由はwordpress.comでの記事作成にストレスを感じていたから.厳密には箇条書きが階層化できないとか些細な理由が蓄積していったんだと思う. どのサービスを使おうか検…

control HMD by C++

I just wanna show images and videos on an HMD, HTC Vive so far. To build as simple system as possible, I want C++ based development. Python is also fine. OpenVRC++ OpenXRC++ Ogre3dC++ library for graphics OpenHMD C++ for handling HMDs

Unreal Engine 4: 静的ライブラリの使用

このチュートリアルを読んだ.ビルドシステムを使ってUE4に静的ライブラリをリンクする方法.読んでて飽きたから途中まで. Visual Studioのバージョンに気を付ける.当然のことだけど,静的ライブラリをコンパイルしたVSとUE4と一緒に使うVSのバージョンは…

Unreal Engine 4: Media Playerで動画再生

全然スマートじゃないけどMedia Playerで動画を再生できた.銃を持っているのが気になるけど,1人称視点のテンプレートについてきただけ.手順も思ったほど複雑じゃない. 手順1 動画を読み込むContent Browserを使って再生したい動画ファイルを読み込む.Co…

Unreal Engine 4: Media Editor

このチュートリアルを読んだ. プレイヤーウィンドウメディアの再生表示だけではなく,再生オプションの定義なども行うウィンドウ.プレイヤーウィンドウ左側にあるドロップダウンメニューからCapture Devicesオプションを選択できる.Capture Devicesオプシ…