flutter-webrtc_python-aiortc-opencv

所属分类:图形图像处理
开发工具:Dart
文件大小:2057KB
下载次数:0
上传日期:2021-08-27 11:35:40
上 传 者sh-1993
说明:  Flutter WebRTC演示与Python服务器,使用OpenCV在视频帧上执行图像处理
(Flutter WebRTC demo with Python server to perform image processing on video frames using OpenCV)

文件列表:
flutter (0, 2021-08-27)
flutter\.metadata (305, 2021-08-27)
flutter\android (0, 2021-08-27)
flutter\android\app (0, 2021-08-27)
flutter\android\app\build.gradle (1846, 2021-08-27)
flutter\android\app\src (0, 2021-08-27)
flutter\android\app\src\debug (0, 2021-08-27)
flutter\android\app\src\debug\AndroidManifest.xml (837, 2021-08-27)
flutter\android\app\src\main (0, 2021-08-27)
flutter\android\app\src\main\AndroidManifest.xml (2724, 2021-08-27)
flutter\android\app\src\main\kotlin (0, 2021-08-27)
flutter\android\app\src\main\kotlin\com (0, 2021-08-27)
flutter\android\app\src\main\kotlin\com\example (0, 2021-08-27)
flutter\android\app\src\main\kotlin\com\example\universalgrading (0, 2021-08-27)
flutter\android\app\src\main\kotlin\com\example\universalgrading\MainActivity.kt (130, 2021-08-27)
flutter\android\app\src\main\res (0, 2021-08-27)
flutter\android\app\src\main\res\drawable-v21 (0, 2021-08-27)
flutter\android\app\src\main\res\drawable-v21\launch_background.xml (438, 2021-08-27)
flutter\android\app\src\main\res\drawable (0, 2021-08-27)
flutter\android\app\src\main\res\drawable\launch_background.xml (434, 2021-08-27)
flutter\android\app\src\main\res\mipmap-hdpi (0, 2021-08-27)
flutter\android\app\src\main\res\mipmap-hdpi\ic_launcher.png (544, 2021-08-27)
flutter\android\app\src\main\res\mipmap-mdpi (0, 2021-08-27)
flutter\android\app\src\main\res\mipmap-mdpi\ic_launcher.png (442, 2021-08-27)
flutter\android\app\src\main\res\mipmap-xhdpi (0, 2021-08-27)
flutter\android\app\src\main\res\mipmap-xhdpi\ic_launcher.png (721, 2021-08-27)
flutter\android\app\src\main\res\mipmap-xxhdpi (0, 2021-08-27)
flutter\android\app\src\main\res\mipmap-xxhdpi\ic_launcher.png (1031, 2021-08-27)
flutter\android\app\src\main\res\mipmap-xxxhdpi (0, 2021-08-27)
flutter\android\app\src\main\res\mipmap-xxxhdpi\ic_launcher.png (1443, 2021-08-27)
flutter\android\app\src\main\res\values-night (0, 2021-08-27)
flutter\android\app\src\main\res\values-night\styles.xml (993, 2021-08-27)
flutter\android\app\src\main\res\values (0, 2021-08-27)
flutter\android\app\src\main\res\values\styles.xml (994, 2021-08-27)
... ...

flutter + webrtc => python + aiortc + opencv ============================================ This demo project should help you to get setup sending a video feed from a flutter app to a python backend to allow you to then perform some image processing on the video frames using OpenCV. Running the server ------------------ First install the required packages: $ cd server $ pip install -r requirements.txt When you start the example, it will create an HTTP server which you can connect to from your browser: $ cd server $ python main.py You can then browse to the following page with your browser: http://localhost:8080 Once you click `Start` the browser will send the audio and video from its webcam to the server. The server will play a pre-recorded audio clip and send the received video back to the browser, optionally applying a transform to it. In parallel to media streams, the browser sends a 'ping' message over the data channel, and the server replies with 'pong'. ![Server index page](https://github.com/jcrisp88/flutter-webrtc_python-aiortc-opencv/blob/master/server_index.gif) Additional options ------------------ If you want to enable verbose logging, run: $ cd server $ python server.py -v Running the server in docker ---------------------------- If you have docker setup, run: $ cd server $ docker build -t aiortc_server . $ docker run -p 8080:8080 -it --rm aiortc_server You can then browse to the following page with your browser: http://localhost:8080 Setting up flutter ------------------ First install the required packages. Now you will need to update the /offer path to point to your local python server. ![Flutter Demo](https://github.com/jcrisp88/flutter-webrtc_python-aiortc-opencv/blob/master/flutter_demo.gif) Credits ------- The server files were borrowed from the aiortc github project. https://github.com/aiortc/aiortc

近期下载者

相关文件


收藏者