windows camera frame server内存占用过大问题

只要电脑开摄像头,几分钟内存占用就超90%了?打开【任务管理器】,可以看到是这个进程占用了:windows camera frame server

解决办法:

升级摄像头驱动到Realtek camera driver (10.0.18362.20133)

下载地址(cab格式 1.4MB)

https://link.zhihu.com/?target=https%3A//drivers.softpedia.com/get/SCANNER-Digital-CAMERA-WEBCAM/Realtek/Realtek-DMFT-IR-Camera-Driver-10-0-18362-20133-for-Windows-10-October-2018-Update-64-bit.shtml

Download Realtek DMFT IR Camera Driver 10.0.18362.20133 for Windows 10 64 bit

https://link.zhihu.com/?target=https%3A//drivers.softpedia.com/get/SCANNER-Digital-CAMERA-WEBCAM/Realtek/Realtek-DMFT-IR-Camera-Driver-10-0-18362-20133-for-Windows-10-October-2018-Update-64-bit.shtml

安装方法

1.解压cab

2.打开【设备管理器】,双击【摄像头】realtek,在解压文件夹下搜索更新驱动

正常开相机占用最多几十M的内存

 

亲测 相当好用

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
要使用 ESP32-CAM 和 Arduino Uno 实现摄像头功能,需要完成以下步骤: 1. 连接 ESP32-CAM 到 Arduino Uno 将 ESP32-CAM 连接到 Arduino Uno 的引脚上。连接方式如下: - ESP32-CAM VCC 引脚 -> Arduino Uno 5V 引脚 - ESP32-CAM GND 引脚 -> Arduino Uno GND 引脚 - ESP32-CAM U0T 引脚 -> Arduino Uno RX 引脚 - ESP32-CAM U0R 引脚 -> Arduino Uno TX 引脚 2. 配置 Arduino IDE 环境 在 Arduino IDE 中,需要安装 ESP32 开发板支持库以及 ESP32-CAM 库。在“文件”->“首选项”中添加以下网址到“附加开发板管理器网址”中: ``` https://dl.espressif.com/dl/package_esp32_index.json ``` 然后在“工具”->“开发板”->“开发板管理器”中安装 ESP32 开发板支持库和 ESP32-CAM 库。 3. 上传代码 将以下代码上传到 Arduino Uno 中: ``` #include "esp_camera.h" #include <WiFi.h> // Replace with your network credentials const char* ssid = "your_SSID"; const char* password = "your_PASSWORD"; // IP address to send captured images IPAddress server(192, 168, 1, 100); WiFiClient client; void setup() { Serial.begin(115200); WiFi.begin(ssid, password); while (WiFi.status() != WL_CONNECTED) { delay(1000); Serial.println("Connecting to WiFi..."); } Serial.println("Connected to WiFi"); // Initialize camera camera_config_t config; config.ledc_channel = LEDC_CHANNEL_0; config.ledc_timer = LEDC_TIMER_0; config.pin_d0 = 5; config.pin_d1 = 18; config.pin_d2 = 19; config.pin_d3 = 21; config.pin_d4 = 36; config.pin_d5 = 39; config.pin_d6 = 34; config.pin_d7 = 35; config.pin_xclk = 0; config.pin_pclk = 22; config.pin_vsync = 25; config.pin_href = 23; config.pin_sscb_sda = 26; config.pin_sscb_scl = 27; config.pin_pwdn = 32; config.pin_reset = -1; config.xclk_freq_hz = 20000000; config.pixel_format = PIXFORMAT_JPEG; // Init with high specs to pre-allocate larger buffers if(psramFound()){ config.frame_size = FRAMESIZE_UXGA; config.jpeg_quality = 10; config.fb_count = 2; } else { config.frame_size = FRAMESIZE_SVGA; config.jpeg_quality = 12; config.fb_count = 1; } // Camera init esp_err_t err = esp_camera_init(&config); if (err != ESP_OK) { Serial.printf("Camera init failed with error 0x%x", err); return; } // Drop down frame size for higher initial frame rate sensor_t * s = esp_camera_sensor_get(); s->set_framesize(s, FRAMESIZE_QVGA); // Set up HTTP client if (client.connect(server, 80)) { Serial.println("Connected to server"); } } void loop() { // Take a photo camera_fb_t * fb = esp_camera_fb_get(); if (!fb) { Serial.println("Camera capture failed"); return; } // Send photo to server if (client.connected()) { client.write("POST /upload HTTP/1.1\r\n"); client.write("Host: 192.168.1.100\r\n"); client.write("Content-Type: image/jpeg\r\n"); client.write("Content-Length: " + String(fb->len) + "\r\n"); client.write("\r\n"); client.write(fb->buf, fb->len); client.write("\r\n"); Serial.println("Photo sent to server"); } else { Serial.println("Server disconnected"); } // Free memory esp_camera_fb_return(fb); delay(5000); } ``` 将代码中的以下内容替换为你的网络凭证: ``` const char* ssid = "your_SSID"; const char* password = "your_PASSWORD"; ``` 将以下内容替换为你的服务器 IP 地址: ``` IPAddress server(192, 168, 1, 100); ``` 上传代码后,打开串口监视器并等待 ESP32-CAM 连接到 Wi-Fi 网络。然后它会自动拍摄照片并将其发送到指定的服务器。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值