add first version
This commit is contained in:
13
aisee_flutter/lib/utils/app_config.dart
Normal file
13
aisee_flutter/lib/utils/app_config.dart
Normal file
@@ -0,0 +1,13 @@
|
||||
class AppConfig {
|
||||
// API 配置
|
||||
static const String apiBaseUrl = 'http://10.0.2.2:8000'; // Android 模拟器访问本机
|
||||
// 如果使用真机,改为你的电脑 IP,例如:'http://192.168.1.100:8000'
|
||||
|
||||
// 图像配置
|
||||
static const int imageMaxWidth = 640;
|
||||
static const int imageMaxHeight = 480;
|
||||
static const int imageQuality = 85;
|
||||
|
||||
// 实时传输配置
|
||||
static const Duration captureInterval = Duration(milliseconds: 500); // 每 500ms 捕获一帧
|
||||
}
|
||||
Reference in New Issue
Block a user