GithubHelp home page GithubHelp logo

huayuxiao / ncslab Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 138.92 MB

Home Page: http://10.20.82.195:8090

License: Creative Commons Zero v1.0 Universal

C++ 1.06% Python 11.84% Jupyter Notebook 11.50% Java 13.70% Shell 0.04% HTML 59.51% CSS 1.30% JavaScript 1.05%
flask html iot nodejs raspberry-pi-4b threejs

ncslab's Introduction

ncslab's People

Contributors

555hhh555hhh avatar huayuxiao avatar xizhe-hao avatar

Watchers

 avatar

ncslab's Issues

This channel is already in use, continuing anyway

hyx020222@raspberrypi:~/GitHub/NCSLab $  cd /home/hyx020222/GitHub/NCSLab ; /usr/bin/env /usr/bin/python3 /home/hyx020222/.vscode-server/extensions/ms-python.debugpy-2024.2.0-linux-arm64/bundled/libs/debugpy/adapter/../../debugpy/launcher 54565 -- /home/hyx020222/GitHub/NCSLab/src/PWM.py 
/home/hyx020222/GitHub/NCSLab/src/PWM.py:15: RuntimeWarning: This channel is already in use, continuing anyway.  Use GPIO.setwarnings(False) to disable warnings.
  GPIO.setup(pwm_pin, GPIO.OUT)

Can't open file: 'haarcascade_frontalface_default.xml' in read mode

/usr/bin/python3.11 /home/hyx020222/NCSLab/Camera/opencv_face_detect.py 
[ERROR:[email protected]] global ./modules/core/src/persistence.cpp (505) open Can't open file: '/usr/share/opencv4/haarcascades/haarcascade_frontalface_default.xml' in read mode
[0:08:39.099549290] [3626]  INFO Camera camera_manager.cpp:284 libcamera v0.2.0+46-075b54d5
[0:08:39.238377046] [3691]  WARN RPiSdn sdn.cpp:39 Using legacy SDN tuning - please consider moving SDN inside rpi.denoise
[0:08:39.242892936] [3691]  INFO RPI vc4.cpp:447 Registered camera /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media4 and ISP device /dev/media1
[0:08:39.243011880] [3691]  INFO RPI pipeline_base.cpp:1144 Using configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'
[0:08:39.249159603] [3626]  INFO Camera camera_manager.cpp:284 libcamera v0.2.0+46-075b54d5
[0:08:39.381339877] [3694]  WARN RPiSdn sdn.cpp:39 Using legacy SDN tuning - please consider moving SDN inside rpi.denoise
[0:08:39.394903304] [3694]  INFO RPI vc4.cpp:447 Registered camera /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media4 and ISP device /dev/media1
[0:08:39.395020175] [3694]  INFO RPI pipeline_base.cpp:1144 Using configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'
[0:08:39.407146713] [3626]  INFO Camera camera.cpp:1183 configuring streams: (0) 640x480-XRGB8888 (1) 640x480-SGBRG10_CSI2P
[0:08:39.408022713] [3694]  INFO RPI vc4.cpp:611 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 640x480-SGBRG10_1X10 - Selected unicam format: 640x480-pGAA
Traceback (most recent call last):
  File "/home/hyx020222/NCSLab/Camera/opencv_face_detect.py", line 20, in <module>
    faces = face_detector.detectMultiScale(grey, 1.1, 5)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cv2.error: OpenCV(4.6.0) ./modules/objdetect/src/cascadedetect.cpp:1689: error: (-215:Assertion failed) !empty() in function 'detectMultiScale'


Process finished with exit code 1

jinja2.exceptions.TemplateNotFound

TemplateNotFound
jinja2.exceptions.TemplateNotFound: /home/hyx020222/NCSLab/src/Server/index.html

Traceback (most recent call last)
File "/usr/lib/python3/dist-packages/flask/app.py", line 2548, in call
return self.wsgi_app(environ, start_response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/flask/app.py", line 2528, in wsgi_app
response = self.handle_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/flask/app.py", line 2525, in wsgi_app
response = self.full_dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/flask/app.py", line 1822, in full_dispatch_request
rv = self.handle_user_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/flask/app.py", line 1820, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/flask/app.py", line 1796, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hyx020222/NCSLab/src/Server/Server.py", line 8, in index
return render_template('/home/hyx020222/NCSLab/src/Server/index.html')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/flask/templating.py", line 146, in render_template
template = app.jinja_env.get_or_select_template(template_name_or_list)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1081, in get_or_select_template
return self.get_template(template_name_or_list, parent, globals)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1010, in get_template
return self._load_template(name, globals)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 969, in _load_template
template = self.loader.load(self, name, self.make_globals(globals))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/jinja2/loaders.py", line 126, in load
source, filename, uptodate = self.get_source(environment, name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/flask/templating.py", line 62, in get_source
return self._get_source_fast(environment, template)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/flask/templating.py", line 98, in _get_source_fast
raise TemplateNotFound(template)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
jinja2.exceptions.TemplateNotFound: /home/hyx020222/NCSLab/src/Server/index.html
The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error.
To switch between the interactive traceback and the plaintext one, you can click on the "Traceback" headline. From the text traceback you can also create a paste of it. For code execution mouse-over the frame you want to debug and click on the console icon on the right side.

You can execute arbitrary Python code in the stack frames and there are some extra helpers available for introspection:

dump() shows all variables in the frame
dump(obj) dumps all that's known about the object
Brought to you by DON'T PANIC, your friendly Werkzeug powered traceback interpreter.

Error: ENOSPC: System limit for number of file watchers reached

hyx020222@hyx020222-ThinkBook-14:~$ npx vite

  VITE v5.3.1  ready in 532 ms

  ➜  Local:   http://localhost:5173/
  ➜  Network: use --host to expose
  ➜  press h + enter to show help
node:internal/fs/watchers:247
    const error = new UVException({
                  ^

Error: ENOSPC: System limit for number of file watchers reached, watch '/home/hyx020222/.gazebo/models/gazebo-models/r2_description/meshes'
    at FSWatcher.<computed> (node:internal/fs/watchers:247:19)
    at Object.watch (node:fs:2469:36)
    at createFsWatchInstance (file:///home/hyx020222/node_modules/vite/dist/node/chunks/dep-BcXSligG.js:43324:17)
    at setFsWatchListener (file:///home/hyx020222/node_modules/vite/dist/node/chunks/dep-BcXSligG.js:43371:15)
    at NodeFsHandler._watchWithNodeFs (file:///home/hyx020222/node_modules/vite/dist/node/chunks/dep-BcXSligG.js:43526:14)
    at NodeFsHandler._handleDir (file:///home/hyx020222/node_modules/vite/dist/node/chunks/dep-BcXSligG.js:43762:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async NodeFsHandler._addToNodeFs (file:///home/hyx020222/node_modules/vite/dist/node/chunks/dep-BcXSligG.js:43812:16)
Emitted 'error' event on FSWatcher instance at:
    at FSWatcher._handleError (file:///home/hyx020222/node_modules/vite/dist/node/chunks/dep-BcXSligG.js:45025:10)
    at NodeFsHandler._addToNodeFs (file:///home/hyx020222/node_modules/vite/dist/node/chunks/dep-BcXSligG.js:43840:18)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  errno: -28,
  syscall: 'watch',
  code: 'ENOSPC',
  path: '/home/hyx020222/.gazebo/models/gazebo-models/r2_description/meshes',
  filename: '/home/hyx020222/.gazebo/models/gazebo-models/r2_description/meshes'
}

Node.js v20.14.0

grep: /etc/apt/sources.list.d/vscode.list: No such file or directory

hyx020222@raspberrypi:~/Downloads $ sudo dpkg -i code_1.87.1-1709684532_arm64.deb 
(Reading database ... 126706 files and directories currently installed.)
Preparing to unpack code_1.87.1-1709684532_arm64.deb ...
Unpacking code (1.87.1-1709684532) over (1.87.1-1709684532) ...
Setting up code (1.87.1-1709684532) ...
grep: /etc/apt/sources.list.d/vscode.list: No such file or directory
grep: /etc/apt/sources.list.d/vscode.list: No such file or directory
Processing triggers for gnome-menus (3.36.0-1.1) ...
Processing triggers for mailcap (3.70+nmu1) ...
Processing triggers for desktop-file-utils (0.26-1) ...
Processing triggers for shared-mime-info (2.2-1) ...

'BroadcastOutput' object has no attribute 'start'

Traceback (most recent call last):
File "/home/hyx020222/pistreaming/server.py", line 181, in
main()
File "/home/hyx020222/pistreaming/server.py", line 153, in main
camera.start_recording(output, 'yuv')
File "/usr/lib/python3/dist-packages/picamera2/picamera2.py", line 1760, in start_recording
self.start_encoder(encoder, output, pts=pts, quality=quality, name=name)
File "/usr/lib/python3/dist-packages/picamera2/picamera2.py", line 1700, in start_encoder
_encoder.start(quality=quality)
^^^^^^^^^^^^^^
AttributeError: 'BroadcastOutput' object has no attribute 'start'

RuntimeError: Camera __init__ sequence did not complete

[Running] python -u "/home/hyx020222/NCSLab/src/Server/Server.py"
[0:09:39.589965269] [3602] �[1;32m INFO �[1;37mCamera �[1;34mcamera_manager.cpp:284 �[0mlibcamera v0.2.0+46-075b54d5
[0:09:39.626163489] [3612] �[1;33m WARN �[1;37mRPiSdn �[1;34msdn.cpp:39 �[0mUsing legacy SDN tuning - please consider moving SDN inside rpi.denoise
[0:09:39.629162264] [3612] �[1;32m INFO �[1;37mRPI �[1;34mvc4.cpp:447 �[0mRegistered camera /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media4 and ISP device /dev/media1
[0:09:39.629255854] [3612] �[1;32m INFO �[1;37mRPI �[1;34mpipeline_base.cpp:1144 �[0mUsing configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'
[0:09:39.633564233] [3602] �[1;32m INFO �[1;37mCamera �[1;34mcamera_manager.cpp:284 �[0mlibcamera v0.2.0+46-075b54d5
[0:09:39.689865523] [3615] �[1;33m WARN �[1;37mRPiSdn �[1;34msdn.cpp:39 �[0mUsing legacy SDN tuning - please consider moving SDN inside rpi.denoise
[0:09:39.696555596] [3615] �[1;32m INFO �[1;37mRPI �[1;34mvc4.cpp:447 �[0mRegistered camera /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media4 and ISP device /dev/media1
[0:09:39.697032698] [3615] �[1;32m INFO �[1;37mRPI �[1;34mpipeline_base.cpp:1144 �[0mUsing configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'
WebSocket transport not available. Install simple-websocket for improved performance.
Werkzeug appears to be used in a production deployment. Consider switching to a production web server instead.

  • Serving Flask app 'Server'
  • Debug mode: on
    WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
  • Running on all addresses (0.0.0.0)
  • Running on http://127.0.0.1:5000
  • Running on http://10.14.15.105:5000
    Press CTRL+C to quit
  • Restarting with stat
    [0:09:41.932090114] [3619] �[1;32m INFO �[1;37mCamera �[1;34mcamera_manager.cpp:284 �[0mlibcamera v0.2.0+46-075b54d5
    [0:09:41.971011159] [3636] �[1;33m WARN �[1;37mRPiSdn �[1;34msdn.cpp:39 �[0mUsing legacy SDN tuning - please consider moving SDN inside rpi.denoise
    [0:09:41.977127615] [3636] �[1;32m INFO �[1;37mRPI �[1;34mvc4.cpp:447 �[0mRegistered camera /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media4 and ISP device /dev/media1
    [0:09:41.977733899] [3636] �[1;32m INFO �[1;37mRPI �[1;34mpipeline_base.cpp:1144 �[0mUsing configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'
    [0:09:41.986953388] [3619] �[1;32m INFO �[1;37mCamera �[1;34mcamera_manager.cpp:284 �[0mlibcamera v0.2.0+46-075b54d5
    [0:09:42.032841613] [3639] �[1;33m WARN �[1;37mRPiSdn �[1;34msdn.cpp:39 �[0mUsing legacy SDN tuning - please consider moving SDN inside rpi.denoise
    [0:09:42.041442280] [3639] �[1;32m INFO �[1;37mRPI �[1;34mvc4.cpp:447 �[0mRegistered camera /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media4 and ISP device /dev/media1
    [0:09:42.041799791] [3639] �[1;32m INFO �[1;37mRPI �[1;34mpipeline_base.cpp:1144 �[0mUsing configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'
    [0:09:42.046919600] [3619] �[1;32m INFO �[1;37mCamera �[1;34mcamera.cpp:990 �[0mPipeline handler in use by another process
    Camera init sequence did not complete.
    Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/picamera2/picamera2.py", line 254, in init
    self._open_camera()
    File "/usr/lib/python3/dist-packages/picamera2/picamera2.py", line 465, in _open_camera
    self.camera.acquire()
    RuntimeError: Failed to acquire camera: Device or resource busy

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/hyx020222/NCSLab/src/Server/Server.py", line 12, in
camera = Picamera2()
^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/picamera2/picamera2.py", line 266, in init
raise RuntimeError("Camera init sequence did not complete.")
RuntimeError: Camera init sequence did not complete.

[Done] exited with code=1 in 5.609 seconds

RuntimeError: Camera __init__ sequence did not complete.

[0:25:35.263489329] [7187] ERROR Camera camera.cpp:675 Camera in Running state trying acquire() requiring state Available
Camera __init__ sequence did not complete.
Exception in thread Thread-3 (listen):
Traceback (most recent call last):
  File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.11/threading.py", line 975, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3/dist-packages/picamera2/picamera2.py", line 90, in listen
    callback()
  File "/usr/lib/python3/dist-packages/picamera2/picamera2.py", line 107, in handle_request
    self.cameras[req.cookie]._requests += [CompletedRequest(req, self.cameras[req.cookie])]
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/picamera2/request.py", line 108, in __init__
    self.config = self.picam2.camera_config.copy()
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'copy'
10.12.212.15 - - [04/Jun/2024 15:55:54] "GET /video_feed HTTP/1.1" 500 -
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/picamera2/picamera2.py", line 254, in __init__
    self._open_camera()
  File "/usr/lib/python3/dist-packages/picamera2/picamera2.py", line 465, in _open_camera
    self.camera.acquire()
RuntimeError: Failed to acquire camera: Device or resource busy

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/flask/app.py", line 2548, in __call__
    return self.wsgi_app(environ, start_response)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/flask/app.py", line 2528, in wsgi_app
    response = self.handle_exception(e)
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/flask/app.py", line 2525, in wsgi_app
    response = self.full_dispatch_request()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/flask/app.py", line 1822, in full_dispatch_request
    rv = self.handle_user_exception(e)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/flask/app.py", line 1820, in full_dispatch_request
    rv = self.dispatch_request()
         ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/flask/app.py", line 1796, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/hyx020222/NCSLab/src/online/Camera_test/server_camera.py", line 57, in video_feed
    picam = Picamera2()
            ^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/picamera2/picamera2.py", line 266, in __init__
    raise RuntimeError("Camera __init__ sequence did not complete.")
RuntimeError: Camera __init__ sequence did not complete.

error: RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly: CANCEL (err 8)

hyx020222@raspberrypi:~ $ git clone https://github.com/opencv/opencv_contrib.git
Cloning into 'opencv_contrib'...
remote: Enumerating objects: 40570, done.
remote: Counting objects: 100% (388/388), done.
remote: Compressing objects: 100% (302/302), done.
error: RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly: CANCEL (err 8)
error: 105 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

RPiSdn sdn.cpp:39 Using legacy SDN tuning - please consider moving SDN inside rpi.denoise

[1:16:49.664695088] [10467]  INFO Camera camera_manager.cpp:284 libcamera v0.2.0+46-075b54d5
[1:16:49.729193983] [10477]  WARN RPiSdn sdn.cpp:39 Using legacy SDN tuning - please consider moving SDN inside rpi.denoise
[1:16:49.735894642] [10477]  INFO RPI vc4.cpp:447 Registered camera /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media4 and ISP device /dev/media1
[1:16:49.736249230] [10477]  INFO RPI pipeline_base.cpp:1144 Using configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'
[1:16:49.744933587] [10467]  INFO Camera camera_manager.cpp:284 libcamera v0.2.0+46-075b54d5
[1:16:49.791279612] [10480]  WARN RPiSdn sdn.cpp:39 Using legacy SDN tuning - please consider moving SDN inside rpi.denoise
[1:16:49.793898209] [10480]  INFO RPI vc4.cpp:447 Registered camera /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media4 and ISP device /dev/media1
[1:16:49.794154743] [10480]  INFO RPI pipeline_base.cpp:1144 Using configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'
[1:16:49.802658435] [10467]  INFO Camera camera.cpp:1183 configuring streams: (0) 640x480-XBGR8888 (1) 640x480-SGBRG10_CSI2P
[1:16:49.803959845] [10480]  INFO RPI vc4.cpp:611 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 640x480-SGBRG10_1X10 - Selected unicam format: 640x480-pGAA
QStandardPaths: wrong permissions on runtime directory /run/user/1000, 0770 instead of 0700
[1:16:56.037142801] [10484]  INFO Camera camera.cpp:1183 configuring streams: (0) 2592x1944-BGR888 (1) 2592x1944-SGBRG10_CSI2P
[1:16:56.039523494] [10480]  INFO RPI vc4.cpp:611 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 2592x1944-SGBRG10_1X10 - Selected unicam format: 2592x1944-pGAA
[1:16:56.962175406] [10484]  INFO Camera camera.cpp:1183 configuring streams: (0) 640x480-XBGR8888 (1) 640x480-SGBRG10_CSI2P
[1:16:56.967690635] [10480]  INFO RPI vc4.cpp:611 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 640x480-SGBRG10_1X10 - Selected unicam format: 640x480-pGAA
[1:16:57.143872438] [10484]  INFO Camera camera.cpp:1183 configuring streams: (0) 640x480-XBGR8888 (1) 640x480-SGBRG10_CSI2P
[1:16:57.145397049] [10480]  INFO RPI vc4.cpp:611 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 640x480-SGBRG10_1X10 - Selected unicam format: 640x480-pGAA
[1:16:58.394146760] [10484]  INFO Camera camera.cpp:1183 configuring streams: (0) 2592x1944-BGR888 (1) 2592x1944-SGBRG10_CSI2P
[1:16:58.397265536] [10480]  INFO RPI vc4.cpp:611 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 2592x1944-SGBRG10_1X10 - Selected unicam format: 2592x1944-pGAA
[1:16:59.205500072] [10484]  INFO Camera camera.cpp:1183 configuring streams: (0) 640x480-XBGR8888 (1) 640x480-SGBRG10_CSI2P
[1:16:59.212266600] [10480]  INFO RPI vc4.cpp:611 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 640x480-SGBRG10_1X10 - Selected unicam format: 640x480-pGAA
[1:16:59.980720752] [10484]  INFO Camera camera.cpp:1183 configuring streams: (0) 2592x1944-BGR888 (1) 2592x1944-SGBRG10_CSI2P
[1:16:59.984510224] [10480]  INFO RPI vc4.cpp:611 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 2592x1944-SGBRG10_1X10 - Selected unicam format: 2592x1944-pGAA
[1:17:00.536196830] [10484]  INFO Camera camera.cpp:1183 configuring streams: (0) 640x480-XBGR8888 (1) 640x480-SGBRG10_CSI2P
[1:17:00.541467191] [10480]  INFO RPI vc4.cpp:611 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 640x480-SGBRG10_1X10 - Selected unicam format: 640x480-pGAA
[1:17:01.194967826] [10484]  INFO Camera camera.cpp:1183 configuring streams: (0) 2592x1944-BGR888 (1) 2592x1944-SGBRG10_CSI2P
[1:17:01.200068578] [10480]  INFO RPI vc4.cpp:611 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 2592x1944-SGBRG10_1X10 - Selected unicam format: 2592x1944-pGAA
[1:17:01.707642817] [10484]  INFO Camera camera.cpp:1183 configuring streams: (0) 640x480-XBGR8888 (1) 640x480-SGBRG10_CSI2P
[1:17:01.711844062] [10480]  INFO RPI vc4.cpp:611 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 640x480-SGBRG10_1X10 - Selected unicam format: 640x480-pGAA

WebSocket transport not available

WebSocket transport not available. Install simple-websocket for improved performance.
Traceback (most recent call last):
File "/home/hyx020222/NCSLab/src/Server/Server.py", line 58, in
socketio.run(app, host='0.0.0.0')
File "/usr/lib/python3/dist-packages/flask_socketio/init.py", line 641, in run
raise RuntimeError('The Werkzeug web server is not '
RuntimeError: The Werkzeug web server is not designed to run in production. Pass allow_unsafe_werkzeug=True to the run() method to disable this error.

error: externally-managed-environment

hyx020222@raspberrypi:~/NCSLab $ pip install http.server
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.
    
    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.
    
    For more information visit http://rptl.io/venv

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.