config.json 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. {
  2. "lang": "zh",
  3. "hospital": "XXX医院",
  4. "URL": {
  5. "base": "http://localhost:8000",
  6. "ws_base": "ws://localhost:8000",
  7. "static": "/static",
  8. "camera_route": "/api/v1/motion/camera",
  9. "camera_set_output": "/api/v1/motion/camera/set-output",
  10. "close_camera_route": "/api/v1/motion/close-camera",
  11. "eeg_data_read": "/api/v1/eeg/data",
  12. "eeg_data_buffer": "/api/v1/eeg/data-buffer",
  13. "eeg_device_connect": "/api/v1/eeg/eeg-device-connect",
  14. "eeg_device_close": "/api/v1/eeg/eeg-model-close",
  15. "eeg_restart_fake_data": "/api/v1/eeg/restart-fake-data",
  16. "eeg_clf_reset": "/api/v1/eeg/eeg-clf-reset",
  17. "eeg_pipeline_reset": "/api/v1/eeg/eeg-pipeline-reset",
  18. "eeg_train_configs": "/api/v1/eeg/train-configs",
  19. "initial_rest_state_run": "/api/v1/eeg/initial-rest-state-run",
  20. "mi_state_run": "/api/v1/eeg/mi-state-run",
  21. "rest_state_run": "/api/v1/eeg/rest-state-run",
  22. "mi_test_run": "/api/v1/eeg/mi-test-run",
  23. "eeg_edf_set_header": "/api/v1/eeg/eeg-edf-set-header",
  24. "eeg_save_data": "/api/v1/eeg/eeg-save-data",
  25. "eeg_result_data": "/api/v1/trains/{train_id}/result",
  26. "api_train_medical_certificate": "/api/v1/trains/{train_id}/medical-certificate",
  27. "impedance_model_connect": "/api/v1/eeg/impedance-model-connect",
  28. "impedance_model_close": "/api/v1/eeg/impedance-model-close",
  29. "impedance_data": "/api/v1/eeg/impedance-data",
  30. "set_train_finish_flag": "/api/v1/eeg/set-train-finish-flag",
  31. "get_train_finish_flag": "/api/v1/eeg/get-train-finish-flag",
  32. "delete_train": "/api/v1/trains/{train_id}",
  33. "raw_bdf_data_close": "/api/v1/eeg/eeg-edf-close",
  34. "eeg_edf_mark": "/api/v1/eeg/eeg-edf-mark",
  35. "get_today_stats": "/api/v1/subjects/today-stats",
  36. "startup_peripheral": "/api/v1/trains/{train_id}/startup-peripheral",
  37. "web_subjects": "/subjects",
  38. "web_subjects_update": "/subjects/{subject_id}",
  39. "web_subjects_details": "/subjects/{subject_id}/details",
  40. "api_subjects_delete": "/api/v1/subjects/{subject_id}",
  41. "web_trains_start": "/trains/{train_id}/start",
  42. "web_trains_test": "/trains/{train_id}/test",
  43. "web_trains_details": "/trains/{train_id}/details",
  44. "api_subjects_autocomplete": "api/v1/subjects/autocomplete",
  45. "api_peripheral_get_serial_ports": "/api/v1/peripheral/serial-ports",
  46. "api_peripheral_hand_init": "/api/v1/peripheral/hand/init",
  47. "api_peripheral_hand_start": "/api/v1/peripheral/hand/start",
  48. "api_peripheral_hand_stop": "/api/v1/peripheral/hand/stop",
  49. "api_peripheral_hand_status": "/api/v1/peripheral/hand/status",
  50. "api_peripheral_hand_close": "/api/v1/peripheral/hand/close",
  51. "api_mi_img_erds": "/api/v1/mi/img/erds",
  52. "api_mi_img_csp": "/api/v1/mi/img/csp",
  53. "api_mi_img_wpli": "/api/v1/mi/img/wpli",
  54. "api_mi_img_psd": "/api/v1/mi/img/psd"
  55. },
  56. "resource": {
  57. "camera_placeholder": "/images/camera_placeholder.png"
  58. },
  59. "camera": {
  60. "id": 0,
  61. "task": "record"
  62. },
  63. "test_parameter": {
  64. "rest_decrease_time": 0,
  65. "eeg_psd_class": 1,
  66. "fake_data": false,
  67. "verify": false,
  68. "device": "neo"
  69. },
  70. "faker_eeg_config": {
  71. "host": "127.0.0.1",
  72. "port": 21112,
  73. "channel_count": 24,
  74. "sample_rate": 1000,
  75. "delay_milliseconds": 100,
  76. "buffer_plot_size_seconds": 0.1,
  77. "channel_labels": [
  78. "T6",
  79. "P4",
  80. "Pz",
  81. "M2",
  82. "F8",
  83. "F4",
  84. "Fp1",
  85. "Cz",
  86. "M1",
  87. "F7",
  88. "F3",
  89. "C3",
  90. "T3",
  91. "A1",
  92. "Oz",
  93. "O1",
  94. "O2",
  95. "Fz",
  96. "C4",
  97. "T4",
  98. "Fp2",
  99. "A2",
  100. "T5",
  101. "P3"
  102. ],
  103. "sig_types": [
  104. "saw_tooth",
  105. "square",
  106. "square",
  107. "sin",
  108. "sin",
  109. "sin",
  110. "sin",
  111. "sin",
  112. "sin",
  113. "sin",
  114. "sin",
  115. "sin",
  116. "sin",
  117. "sin",
  118. "sin",
  119. "sin",
  120. "sin",
  121. "sin",
  122. "sin",
  123. "sin",
  124. "sin",
  125. "sin",
  126. "sin",
  127. "sin"
  128. ],
  129. "source": "bdf_data/sample.bdf",
  130. "signal_generator_config": {
  131. "frequency": 2,
  132. "wave_height": 100,
  133. "saw_tooth_peak_num": 40,
  134. "noise": true,
  135. "baseline_shift": 0
  136. }
  137. },
  138. "pony_eeg_config": {
  139. "device_address": "192.168.1.88",
  140. "triggerbox_address": "10.0.0.63",
  141. "gain": 12,
  142. "channel_count": 24,
  143. "sample_rate": 1000,
  144. "delay_milliseconds": 100,
  145. "buffer_plot_size_seconds": 0.1,
  146. "channel_labels": [
  147. "T6",
  148. "P4",
  149. "Pz",
  150. "M2",
  151. "F8",
  152. "F4",
  153. "Fp1",
  154. "Cz",
  155. "M1",
  156. "F7",
  157. "F3",
  158. "C3",
  159. "T3",
  160. "A1",
  161. "Oz",
  162. "O1",
  163. "O2",
  164. "Fz",
  165. "C4",
  166. "T4",
  167. "Fp2",
  168. "A2",
  169. "T5",
  170. "P3"
  171. ]
  172. },
  173. "neo_eeg_config": {
  174. "host": "127.0.0.1",
  175. "port": 8712,
  176. "channel_count": 9,
  177. "sample_rate": 1000,
  178. "delay_milliseconds": 40,
  179. "buffer_plot_size_seconds": 0.04,
  180. "channel_labels": [
  181. "C3",
  182. "FC3",
  183. "CP5",
  184. "CP1",
  185. "C4",
  186. "FC4",
  187. "CP2",
  188. "CP6",
  189. "Fp1"
  190. ]
  191. },
  192. "hand_peripheral_parameter": {
  193. "hand_host": "192.168.1.1",
  194. "hand_port": 21111,
  195. "hand_version": [1, 0],
  196. "hand_heart": 0.5
  197. },
  198. "frontend_plot":{
  199. "sample_rate": 100,
  200. "show_channel": [
  201. "C3",
  202. "FC3",
  203. "CP5",
  204. "CP1",
  205. "C4",
  206. "FC4",
  207. "CP2",
  208. "CP6",
  209. "Fp1"
  210. ],
  211. "max_time": 10,
  212. "update_duration": 50
  213. }
  214. }