cameras88
差分
このページの2つのバージョン間の差分を表示します。
次のリビジョン | 前のリビジョン次のリビジョン両方とも次のリビジョン | ||
cameras88 [2015/01/04 10:43] – created yaasan | cameras88 [2015/01/04 11:25] – yaasan | ||
---|---|---|---|
行 11: | 行 11: | ||
{{http:// | {{http:// | ||
+ | |||
+ | ===== Unzip ===== | ||
+ | |||
+ | Unzip downloaded files. | ||
+ | |||
+ | ===== Assemble ===== | ||
+ | |||
+ | Prepare and assemble your track for playing model railway. | ||
+ | Please assemble your rails. Then you don't need to place the locomotives. | ||
+ | |||
+ | {{http:// | ||
+ | |||
+ | ===== Connect PC and tracks, DSmain / DCC/MM2 shields etc. ===== | ||
+ | |||
+ | Connect tracks and trackbox, PC. After that, place web cam. Because you are caught in web cam cable. | ||
+ | |||
+ | ===== Place web cam on the visible point of layout. Connect web cam to PC ===== | ||
+ | |||
+ | You need to check the visible point of your layout. Of course, you can select the monitor area which you want to sense the locomotive. | ||
+ | |||
+ | {{http:// | ||
+ | |||
+ | ===== Prepare DSmain or DCC/MM2 shield (assembled with Arduino). ===== | ||
+ | |||
+ | You have to prepare booster or trackbox. Fore example, DSmain, DCC/MM2 Shield with Arduino, Railuino kits etc. | ||
+ | |||
+ | ===== Run CameraS88. ===== | ||
+ | |||
+ | Run CameraS88. You can see the window. | ||
+ | |||
+ | {{http:// | ||
+ | |||
+ | ===== Check webcam ===== | ||
+ | |||
+ | Click start button of CameraS88. Check the view of web cam. | ||
+ | If the position is wrong, you need to adjust the position of web cam. After that, please keep the web cam. | ||
+ | Click register button. Do not place the locomotives on the track. Then Do not place your locomotives. If did, CameraS88 doesn' | ||
+ | |||
+ | {{http:// | ||
+ | |||
+ | ===== Register S88 areas ===== | ||
+ | |||
+ | Register S88 areas. Drag the image on the window, you can add new sensor areas. When double click the area, you can adjust the position and size. Registering requires a virtual S88 address. Please assign S88 address. Please watch the following instruction video. | ||
+ | |||
+ | {{http:// | ||
+ | |||
+ | ===== Check the area ===== | ||
+ | |||
+ | Please check the registered area. When the background color is like the locomotives, | ||
+ | |||
+ | ===== Place your locomotives ===== | ||
+ | |||
+ | Keeo CameraS88 software and run Desktop Station. Please click start button and provide power on the track. | ||
+ | Desktop Station can communicate with CameraS88 automatically. When CameraS88 doesn' | ||
+ | |||
+ | ===== Check the recognition of locomotives ===== | ||
+ | |||
+ | Please check the recognition of the locomotives. Then, you need to check the S88 sensor status in the event script window on the Desktop station. | ||
+ | |||
+ | When the locomotive is on the Address 3 area on the CameraS88, the address 3 shows green on the Desktop Station. | ||
+ | [[http:// | ||
+ | |||
+ | When the locomotive is on the Address 1 area on the CameraS88, the address 1 shows green on the Desktop Station. | ||
+ | [[http:// | ||
+ | |||
+ | ===== Edit an event script with Desktop Station ===== | ||
+ | |||
+ | You can edit an event script which controls your locomotives and turnouts triggered by S88 sensor. | ||
+ | Please see the following instruction video. | ||
+ | |||
+ | {{http:// | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | ===== Example scripts ===== | ||
+ | |||
+ | Sensor 1 (STATION-1): | ||
+ | DESKTOPSTATION, | ||
+ | SPEED, | ||
+ | WAIT,2,,0 | ||
+ | SPEED, | ||
+ | WAIT,2,,0 | ||
+ | DIRECTION, | ||
+ | WAIT,20,,0 | ||
+ | SPEED, | ||
+ | |||
+ | Sensor 2 (STATION-2): | ||
+ | DESKTOPSTATION, | ||
+ | SPEED, | ||
+ | WAIT,2,,0 | ||
+ | SPEED, | ||
+ | WAIT,2,,0 | ||
+ | ACCESSORY, | ||
+ | DIRECTION, | ||
+ | WAIT,20,,0 | ||
+ | SPEED, | ||
+ | |||
+ | |||
+ | Sensor 3 (STATION-3): | ||
+ | DESKTOPSTATION, | ||
+ | SPEED, | ||
+ | WAIT,2,,0 | ||
+ | SPEED, | ||
+ | ACCESSORY, | ||
+ | WAIT,2,,0 | ||
+ | DIRECTION, | ||
+ | WAIT,20,,0 | ||
+ | SPEED, | ||
+ | |||
+ | {{http:// | ||
+ | |||
+ | {{http:// | ||
+ | |||
+ | ===== Technical issue about recognition ===== | ||
+ | |||
+ | CameraS88の反応レベルを微調整することが可能です。使用するのは、Thresholdのボックス内の2つのパラメータです。 | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | Matchingの値: | ||
+ | 色の変化量の閾値を示します。たとえば、予め登録した画像と、監視中のカメラの画像を比較し、色の違いがこの閾値以上ある場合、変化があると見なします。0~255の値を指定します。初期値は32です。およそ、12.5%の色の変化がある場合に反応します。この値を大きくすると、反応しにくくなります。反応が過敏な場合に、たとえば48とか64のように少しずつ値を調整してください。 | ||
+ | |||
+ | Blockの値: | ||
+ | 領域内で反応したブロック数のボーダーラインを規定します。0~255の値を指定します。128とすると、半分の領域が反応したとき、ブロックに変化が起こったと見なします。64の場合、1/ |
cameras88.txt · 最終更新: 2015/01/04 11:36 by yaasan