Live visualiser
eskin viz starts a small web server on your computer and opens a page that shows each frame as it arrives.
The page is a demonstration and a tool to check the sensor. It does not save data.
eskin viz # 20 mm padeskin viz --rotate 0 --size-mm 190 # 190 mm padControls
Section titled “Controls”| Control | Function |
|---|---|
| 2D / 3D | Change between the flat heatmap and a 3D surface. In 3D, drag to turn the view and use the wheel to zoom. |
| range | The count that maps to the brightest colour. |
| auto | Set the range from the maximum of each frame. |
| smooth | Interpolate between taxels. Turn it off to see each taxel as one square. |
| re-calibrate | Record a new baseline. Remove all load from the pad first. |
The line above the picture shows the frame count, the maximum value and the frame rate that the browser gets.
Use the data stream in your own page
Section titled “Use the data stream in your own page”The server has three addresses.
| Address | Content |
|---|---|
/ |
The page. |
/events |
Server-Sent Events. Each event is one frame as JSON: {"seq", "t", "rows", "cols", "v"}. v holds the 2304 corrected values. |
/calibrate |
A GET request records a new baseline. The answer is 204, or 500 with the reason. |
Limits
Section titled “Limits”- The server has no login and no encryption. Keep the default host
127.0.0.1unless you trust all devices on the network. - Each open page gets all frames as JSON text. This is correct for a demonstration on one computer. It is not a data interface for recording.
- One serial port can have one reader. Stop
eskin vizbefore you start a different program that reads the sensor.