ハジメです。

先日、海外のチームから"PixyMonの使い方を教えて!"とメッセージが来ました。答えるための素材の写真をいくつか撮ったのでついでにブログも書こう!って感じで書いています。RCJのPixy初心者向けとなると思います。

1, PixyMonを起動しよう!
1, Let's start PixyMon

まず,PixyMonを起動しましょう。Pixyをパソコンに接続していない状態だと黒い画面が出ると思います。

First let's start PixyMon. A black screen will appear if Pixy is not connected to the PC.45
2, Pixyとパソコンをつなげよう!
2, Connect pixy and computer!

PixyとパソコンをUSBケーブルで繋ぎます。正常に接続できていれば、Pixy前面のLEDが光ります。

Connect Pixy and PC with USB cable. If it is successfully connected, the LED on the front of the Pixy will light up.
写真 2018-02-02 17 30 39


Pixyを接続した状態でPixyMonを開くとこのような画面が出ます。

If you open PixyMon with Pixy connected, you will see this screen.
29

3, 設定をしよう!
3, Let's set up!

左上の歯車マークを押すと設定画面を開くことができます。
はじめに、"Camera"のタブを開きます。続いて、"Auto Exposure Correction"と"Auto White Balance"をチェックします。
"Auto Exposure Correction"は自動で明るさを調整、"Auto White Balance"は自動でホワイトバランスを調整してくれます。チェックできたら"OK"
を押して設定を保存します。

You can open the setting screen by pressing the upper left gear mark.

First, open the "Camera" tab. Next, check "Auto Exposure Correction" and "Auto White Balance".
If you can check it, "OK"Press to save the setting.
10


続いて、左上の"Action"タブを開きます。任意の番号の
"Set signature N..."押し、検出したい色をドラッグ&ドロップで設定します。

Open the "Action" tab at the top left. Press "Set signature N ..." of an arbitrary number and set the color to be detected with drag & drop.
26
11


検出したい色を設定したら、感度を調整します。"Signature N range"で色の感度、"Min brigtness"で検知できる明るさ、"Camera Brightness"でカメラ(画面)の明るさを調整する事ができます。初めにチェックを付けた"Camera"タブの"Auto Exposure Correction"にチェックがついてないと、
"Camera Brightness"は反映されないので注意してください!

Adjust the sensitivity of the camera.With "Signature N range" you can adjust the color sensitivity, the brightness that can be detected with "Min brigtness", and "Camera Brightness" you can adjust the brightness of the camera (screen).Please be aware that if "Auto Exposure Correction" on the "Camera" tab is unchecked, "Camera Brightness" will not be reflected!
47


最後に"Camera"タブの
"Auto Exposure Correction"、"Auto White Balance"のチェックを外しましょう。この2つは自動で明るさ、ホワイトバランスを調整してくれてとても便利なのですが、試合中に勝手に明るさとホワイトバランスが変更されると設定した色が場合によっては検知できなくなります。

Finally, uncheck "Auto Exposure Correction", "Auto White Balance" on the "Camera" tab.
41

4, 小ネタ
4, bonus

・LED brightness
試合のときは"Expert"タブの"LED brightness"を必ず0にしましょう。これはPixyの前面についているLEDの明るさを調整する事ができます。このLEDはPixyが検知している色に光ります。例えばオレンジ色を検知しているときはオレンジ色に光ってしまいます。なので、試合をする際は必ず0にしましょう。また、Pixyのデバッグをする際に光らせるのは便利かもしれません。

Be sure to set "LED brightness" on the "Expert" tab to 0 when playing.
29


・Min brightness

"Min brightness"についてです。1枚目の画像では光がボール上部にしか合っておらず、ボールの上下で若干いろの変化があります。なので明るいボール上部しか検知できていません。しかし、2枚目の画像のように"Min brightness"の値を下げることによって、検知できる色の明るさ(?)を下げることができます。従って、ボール全体を検知できるようになりました。
21
37