Advertisement
Guest User

Untitled

a guest
Feb 21st, 2020
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. # Vayyar Producer
  2. <!--
  3. Text here
  4. -->
  5. This module collects, analyses and translates data from the Vayyar. After these steps the translated data is sent as `JSON` to the RabbitMQ server.
  6. The Vayyar module is designed to be simple to use and easily configureable for your needs. This is done by using a `toml` config. Lastly the module is coded in `python` and is fully `asyncio` based.
  7.  
  8. ## Starting the Vayyar module
  9.  
  10. To start the module run:
  11.  
  12. ```bash
  13. python start_vayyar_recording.py
  14. ```
  15. The default behaviour for the Vayyar module is to collect, translate and send data to RabbitMQ indefinetly (until terminated).
  16.  
  17.  
  18. ## Configuration
  19. The Vayyar module loads a file called `config_vayyar.toml` in the root directory.
  20. This config is used to configure vayyar settings, connection to the vayyar websocket, async and rabbitMQ.
  21.  
  22. The config file is structured just as below.
  23.  
  24.  
  25. ```toml
  26. #Config for the Vayyar sensor
  27. [rabbitmq]
  28. username = "username"
  29. password = "password"
  30. host = "ip-address:port"
  31. routing_key = "key"
  32.  
  33. [connection]
  34. #Ip of the connection
  35. ip = "ip-address"
  36.  
  37. [vayyar]
  38. #Room dimensions
  39. rd = [0.5, 2.6, -4.0, -0.6, 0.8, 2.2]
  40. #Orientation Mount Plane
  41. mp = "xy"
  42. #Orientation TransVector
  43. tv = [0.0, 0.0, 2.4]
  44. #Image processing substractionmode
  45. ips = 6.0
  46. #Max persons in arena
  47. maxpia = 2.0
  48. #Standing maximum height
  49. stamaxh = 2.0
  50. #Standing minimum height
  51. staminh = 1.6
  52. #Sitting minumum height
  53. sitminh = 0.8
  54. #Lying minimum height
  55. lyiminh = 0.2
  56. #Person radius
  57. pr = 0.6
  58. #MPR save dir
  59. mprsd = ""
  60. #MPR read from file
  61. mprrff = 0.0
  62. #MPR save to file
  63. mprstf = 0.0
  64. #MPR save image to file
  65. mpsitf = 0.0
  66. #Output Data save to file
  67. odstf = 0.0
  68. #External GUI filter image
  69. egfi = 0.0
  70. #External GUI filter image number of Sd
  71. egfin = 5.0
  72. #People Counter in car is locked
  73. pcic = false
  74. #Zones beds
  75. zb = ""
  76.  
  77. [asynctimer]
  78. #Await asyncio sleep time
  79. aast = 1
  80. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement