{"id":1894,"date":"2025-08-26T16:29:14","date_gmt":"2025-08-26T08:29:14","guid":{"rendered":"https:\/\/www.thermal-image.com\/?p=1894"},"modified":"2025-09-12T09:48:56","modified_gmt":"2025-09-12T01:48:56","slug":"%d8%a8%d8%b1%d9%86%d8%a7%d9%85%d8%ac-%d8%aa%d8%b4%d8%ba%d9%8a%d9%84-%d8%a7%d9%84%d9%83%d8%a7%d9%85%d9%8a%d8%b1%d8%a7-%d8%a7%d9%84%d8%ad%d8%b1%d8%a7%d8%b1%d9%8a%d8%a9-rs300-%d9%84%d9%80-raspberry-pi","status":"publish","type":"post","link":"https:\/\/www.thermal-image.com\/ar\/blog\/rs300-thermal-camera-driver-for-raspberry-pi\/","title":{"rendered":"\u0628\u0631\u0646\u0627\u0645\u062c \u062a\u0634\u063a\u064a\u0644 \u0627\u0644\u0643\u0627\u0645\u064a\u0631\u0627 \u0627\u0644\u062d\u0631\u0627\u0631\u064a\u0629 RS300 \u0644\u0640 Raspberry Pi"},"content":{"rendered":"<p>\u0647\u0630\u0627 \u0627\u0644\u062a\u0639\u0631\u064a\u0641 \u0645\u062e\u0635\u0635 \u0644\u0640 <a href=\"https:\/\/www.thermal-image.com\/ar\/product\/mini2-640x512-9mm-thermal-imaging-camera-module-for-drones\/\">\"\u0648\u062d\u062f\u0629 \u0627\u0644\u0643\u0627\u0645\u064a\u0631\u0627 \u0627\u0644\u062d\u0631\u0627\u0631\u064a\u0629 \"mini2\"<\/a> \u0627\u0644\u0645\u0634\u0627\u0631 \u0625\u0644\u064a\u0647\u0627 \u0628\u0627\u0633\u0645 rs300 \u0641\u064a \u0627\u0644\u062a\u0639\u0631\u064a\u0641 \u0627\u0644\u0623\u0635\u0644\u064a.<\/p><h2 class=\"wp-block-heading\">\u0628\u0639\u0636 \u0627\u0644\u0645\u0648\u0627\u0635\u0641\u0627\u062a \u0627\u0644\u0623\u0633\u0627\u0633\u064a\u0629<\/h2><p>\"mini2\" \u0647\u064a \u0643\u0627\u0645\u064a\u0631\u0627 \u062a\u0635\u0648\u064a\u0631 \u062d\u0631\u0627\u0631\u064a \u062a\u0623\u062a\u064a \u0628\u062f\u0642\u0627\u062a \u0645\u062a\u0639\u062f\u062f\u0629. \u0644\u0642\u064a\u0627\u0633\u0627\u062a \u062f\u0631\u062c\u0629 \u0627\u0644\u062d\u0631\u0627\u0631\u0629\u060c \u064a\u0644\u0632\u0645 \u0648\u062c\u0648\u062f \u0648\u062d\u062f\u0629 \u0623\u0648 \u0625\u0635\u062f\u0627\u0631 \u0645\u062e\u062a\u0644\u0641.<a href=\"https:\/\/github.com\/Kodrea\/rs300-v4l2-driver\/blob\/main\/README.md#some-basic-specs\" target=\"_blank\" rel=\"noopener\"><\/a><\/p><p>\u0627\u0644\u062f\u0642\u0627\u062a \u0627\u0644\u0645\u062a\u0627\u062d\u0629 \u0647\u064a:<\/p><ol class=\"wp-block-list\"><li><a href=\"https:\/\/www.thermal-image.com\/ar\/product\/mini2-640x512-9mm-thermal-imaging-camera-module-for-drones\/\">256x192<\/a> - 25\/50 \u0647\u0631\u062a\u0632 (25\/50 \u0647\u0631\u062a\u0632 \u0645\u062a\u0627\u062d\u0629 \u0639\u0628\u0631 USB)<\/li>\n\n<li><a href=\"https:\/\/www.thermal-image.com\/ar\/product\/mini2-640x512-9mm-thermal-imaging-camera-module-for-drones\/\">384x288<\/a> - 30\/60 \u0647\u0631\u062a\u0632 (30\/60 \u0647\u0631\u062a\u0632 \u0645\u062a\u0627\u062d\u0629 \u0639\u0628\u0631 USB)<\/li>\n\n<li><a href=\"https:\/\/www.thermal-image.com\/ar\/product\/mini2-640x512-9mm-thermal-imaging-camera-module-for-drones\/\">640x512<\/a> - 30\/60 \u0647\u0631\u062a\u0632 (60 \u0647\u0631\u062a\u0632 \u063a\u064a\u0631 \u0645\u062f\u0639\u0648\u0645\u0629 \u0639\u0628\u0631 USB)<\/li><\/ol><h2 class=\"wp-block-heading\">NETD: 40 \u0645\u0644\u064a \u0643\u0644\u0641\u0646<\/h2><p><strong>\u0637\u0631\u0642 \u0625\u062e\u0631\u0627\u062c \u0627\u0644\u0641\u064a\u062f\u064a\u0648<\/strong><\/p><p>\u064a\u0645\u0643\u0646 \u0644\u0647\u0630\u0647 \u0627\u0644\u0648\u062d\u062f\u0629 \u0625\u062e\u0631\u0627\u062c \u062f\u0641\u0642\u064a\u0646 \u0641\u064a\u062f\u064a\u0648 \u0645\u062a\u0632\u0627\u0645\u0646\u064a\u0646. \u0623\u062d\u062f\u0647\u0645\u0627 \u0631\u0642\u0645\u064a \u0648\u0627\u0644\u0622\u062e\u0631 \u062a\u0646\u0627\u0638\u0631\u064a.<\/p><p><strong>USB 2.0<\/strong><\/p><ul class=\"wp-block-list\"><li>\u0648\u062d\u062f\u0629 640 \u0645\u062d\u062f\u0648\u062f\u0629 \u0628\u0640 30 \u0625\u0637\u0627\u0631\u064b\u0627 \u0641\u064a \u0627\u0644\u062b\u0627\u0646\u064a\u0629 \u0639\u0628\u0631 USB.<\/li>\n\n<li>\u0627\u0644\u0643\u0627\u0645\u064a\u0631\u0627 \u0645\u062a\u0648\u0627\u0641\u0642\u0629 \u0645\u0639 UVC \u0648\u0633\u062a\u0639\u0645\u0644 \u0628\u0646\u0641\u0633 \u0637\u0631\u064a\u0642\u0629 \u0643\u0627\u0645\u064a\u0631\u0627 \u0627\u0644\u0648\u064a\u0628\u060c \u0644\u0643\u0646 \u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u062a\u062d\u0643\u0645 \u0641\u064a \u0627\u0644\u0643\u0627\u0645\u064a\u0631\u0627 \u063a\u064a\u0631 \u0645\u0643\u0634\u0648\u0641\u0629. \u0628\u0627\u0644\u0646\u0633\u0628\u0629 \u0644\u0648\u062d\u062f\u0629 256\u060c \u064a\u0645\u0643\u0646\u0643 \u062d\u062a\u0649 \u062a\u0628\u062f\u064a\u0644 \u0645\u0639\u062f\u0644 \u0627\u0644\u0625\u0637\u0627\u0631\u0627\u062a \u0645\u0646 25 \u0625\u0637\u0627\u0631\u064b\u0627 \u0641\u064a \u0627\u0644\u062b\u0627\u0646\u064a\u0629 \u0625\u0644\u0649 50 \u0625\u0637\u0627\u0631\u064b\u0627 \u0641\u064a \u0627\u0644\u062b\u0627\u0646\u064a\u0629 \u0641\u064a \u062a\u0637\u0628\u064a\u0642\u0627\u062a \u0627\u0644\u0643\u0627\u0645\u064a\u0631\u0627 \u0627\u0644\u0642\u064a\u0627\u0633\u064a\u0629.<\/li>\n\n<li>\u062a\u0646\u0633\u064a\u0642 \u0627\u0644\u0628\u0643\u0633\u0644 \u0647\u0648 YUYV422 \u0648\u0644\u0643\u0646 \u064a\u0645\u0643\u0646\u0643 \u062a\u063a\u064a\u064a\u0631\u0647 \u0625\u0644\u0649 \u062a\u0631\u062a\u064a\u0628 \u0645\u062e\u062a\u0644\u0641 \u0645\u062b\u0644 UYVU \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 SDK.<\/li>\n\n<li>\u0644\u0625\u0631\u0633\u0627\u0644 \u0623\u0648\u0627\u0645\u0631 \u0625\u0644\u0649 \u0627\u0644\u0643\u0627\u0645\u064a\u0631\u0627 \u0639\u0628\u0631 USB\u060c \u0645\u062b\u0644 \u062a\u063a\u064a\u064a\u0631\u0627\u062a \u0627\u0644\u0633\u0637\u0648\u0639\u060c \u0648\u0645\u0639\u0627\u064a\u0631\u0629 \u0627\u0644\u063a\u0627\u0644\u0642\u060c \u0648\u062a\u063a\u064a\u064a\u0631 \u062e\u0631\u0627\u0626\u0637 \u0627\u0644\u0623\u0644\u0648\u0627\u0646\u060c \u0633\u062a\u062d\u062a\u0627\u062c \u0625\u0644\u0649 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 SDK \u0627\u0644\u0645\u0642\u062f\u0645. SDK \u0645\u062e\u0635\u0635 \u0644\u0646\u0638\u0627\u0645\u064a \u0627\u0644\u062a\u0634\u063a\u064a\u0644 windows \u0648 linux.<\/li><\/ul><p><strong>MIPI<\/strong><\/p><ul class=\"wp-block-list\"><li>\u064a\u0633\u0645\u062d \u0628\u0640 60 \u0625\u0637\u0627\u0631\u064b\u0627 \u0641\u064a \u0627\u0644\u062b\u0627\u0646\u064a\u0629 \u0631\u0642\u0645\u064a\u064b\u0627 \u0645\u0639 \u0648\u062d\u062f\u0629 640.<\/li>\n\n<li>\u062a\u062d\u062a\u0648\u064a \u0644\u0648\u062d\u0629 \u0627\u0644\u062f\u0648\u0627\u0626\u0631 \u0627\u0644\u0645\u0637\u0628\u0648\u0639\u0629 \u0627\u0644\u0645\u062e\u0635\u0635\u0629 \u0639\u0644\u0649 \u0645\u0648\u0635\u0644 \u0630\u064a 15 \u0633\u0646\u064b\u0627 \u0645\u062a\u0648\u0627\u0641\u0642\u064b\u0627 \u0645\u0639 \u0645\u0646\u0641\u0630 \u0643\u0627\u0645\u064a\u0631\u0627 MIPI CSI-2 \u0641\u064a RPi 4B. \u064a\u0645\u0643\u0646\u0643 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0643\u0627\u0628\u0644 \u0645\u062d\u0648\u0644 \u0645\u0646 15 \u0625\u0644\u0649 22 \u0633\u0646\u064b\u0627 \u0644\u062a\u0648\u0635\u064a\u0644 RPi 5 \u0648 0 \u0648 CM.<\/li>\n\n<li>\u064a\u0633\u062a\u062e\u062f\u0645 \u062a\u0639\u0631\u064a\u0641 rs300 \u0644\u0644\u0627\u062a\u0635\u0627\u0644 \u0628\u0640 Pi. \u062a\u0646\u0641\u064a\u0630 \u0623\u0648\u0627\u0645\u0631 \u0627\u0644\u0643\u0627\u0645\u064a\u0631\u0627 \u0639\u0628\u0631 I2C \u062f\u0648\u0646 \u0627\u0644\u062d\u0627\u062c\u0629 \u0625\u0644\u0649 \u0623\u064a SDK \u0623\u0648 \u0645\u0644\u0641\u0627\u062a \u062b\u0646\u0627\u0626\u064a\u0629 \u0645\u062c\u0645\u0639\u0629 \u0645\u0633\u0628\u0642\u064b\u0627. \u0628\u0642\u062f\u0631 \u0645\u0627 \u062a\u0633\u062a\u0637\u064a\u0639 \u0645\u0646 \u0627\u0644\u0623\u0648\u0627\u0645\u0631\u060c \u064a\u0645\u0643\u0646\u0643 \u062c\u0639\u0644\u0647\u0627 \u0645\u062a\u0648\u0627\u0641\u0642\u0629 \u0645\u0639 V4L2 \u0644\u0633\u0647\u0648\u0644\u0629 \u0627\u0644\u062a\u0643\u0627\u0645\u0644.<\/li><\/ul><p><strong>CVBS<\/strong><\/p><ul class=\"wp-block-list\"><li>\u064a\u0645\u0643\u0646 \u0636\u0628\u0637 \u0627\u0644\u0625\u062e\u0631\u0627\u062c \u0627\u0644\u062a\u0646\u0627\u0638\u0631\u064a \u0639\u0644\u0649 NTSC \u0623\u0648 PAL.<\/li>\n\n<li>\u064a\u0645\u0643\u0646 \u0625\u062e\u0631\u0627\u062c\u0647 \u0628\u0627\u0644\u062a\u0632\u0627\u0645\u0646 \u0645\u0639 USB \u0623\u0648 MIPI.<\/li>\n\n<li>\u064a\u062a\u0645 \u0639\u0631\u0636 \u062e\u0631\u0627\u0626\u0637 \u0627\u0644\u0623\u0644\u0648\u0627\u0646 \u0627\u0644\u0623\u0628\u064a\u0636 \u0627\u0644\u062d\u0627\u0631 \u0648\u0627\u0644\u0623\u0633\u0648\u062f \u0627\u0644\u062d\u0627\u0631 \u0641\u0642\u0637. \u062d\u062a\u0649 \u0627\u0644\u0622\u0646\u060c \u064a\u0628\u062f\u0648 \u0623\u0646 \u062c\u0645\u064a\u0639 \u0627\u0644\u0645\u0639\u0644\u0645\u0627\u062a \u0627\u0644\u0623\u062e\u0631\u0649 \u062a\u0624\u062b\u0631 \u0628\u0627\u0644\u062a\u0633\u0627\u0648\u064a \u0639\u0644\u0649 \u062f\u0641\u0642 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0627\u0644\u062a\u0646\u0627\u0638\u0631\u064a \u0645\u062b\u0644\u061b \u0627\u0644\u0633\u0637\u0648\u0639\u060c \u0648\u0627\u0644\u062a\u0628\u0627\u064a\u0646\u060c \u0648\u062a\u0642\u0644\u064a\u0644 \u0627\u0644\u0636\u0648\u0636\u0627\u0621\u060c \u0648\u062a\u062d\u0633\u064a\u0646 \u0627\u0644\u062a\u0641\u0627\u0635\u064a\u0644 \u0627\u0644\u0631\u0642\u0645\u064a\u0629 (DDE)\u060c \u0648\u0627\u0644\u062a\u0643\u0628\u064a\u0631\/\u0627\u0644\u062a\u0635\u063a\u064a\u0631 \u0627\u0644\u0631\u0642\u0645\u064a.<br><\/li><\/ul><h2 class=\"wp-block-heading\">\u0627\u0644\u062a\u062b\u0628\u064a\u062a<\/h2><p><strong>\u0627\u0644\u0645\u062a\u0637\u0644\u0628\u0627\u062a \u0627\u0644\u0623\u0633\u0627\u0633\u064a\u0629<\/strong><\/p><ul class=\"wp-block-list\"><li>Raspberry Pi \u0645\u0639 \u0646\u0638\u0627\u0645 Raspbian\/Raspberry Pi OS Bookworm (\u0644\u0645 \u064a\u062a\u0645 \u0627\u062e\u062a\u0628\u0627\u0631 Bullseye)<\/li>\n\n<li>\u062a\u062b\u0628\u064a\u062a \u062a\u0631\u0648\u064a\u0633\u0627\u062a Linux<\/li>\n\n<li>\u062f\u0639\u0645 DKMS<a href=\"https:\/\/github.com\/Kodrea\/rs300-v4l2-driver\/blob\/main\/README.md#prerequisites\" target=\"_blank\" rel=\"noopener\"><\/a><\/li><\/ul><h3 class=\"wp-block-heading\">\u0627\u0644\u0628\u0646\u0627\u0621 \u0648\u0627\u0644\u062a\u062b\u0628\u064a\u062a<\/h3><p>\u062a\u062b\u0628\u064a\u062a \u0627\u0644\u062a\u0631\u0648\u064a\u0633\u0627\u062a \u0627\u0644\u0645\u0637\u0644\u0648\u0628\u0629:<\/p><p><mark style=\"background-color:#ececec\" class=\"has-inline-color\">sudo apt install linux-headers dkms git<\/mark><\/p><p>\u062a\u0639\u062f\u064a\u0644 \u0627\u0644\u062a\u0639\u0631\u064a\u0641 \u0642\u0628\u0644 \u0627\u0644\u0628\u0646\u0627\u0621. \u0633\u064a\u062a\u0645 \u062a\u062d\u0633\u064a\u0646 \u0647\u0630\u0627 \u0642\u0631\u064a\u0628\u064b\u0627 \u0628\u062d\u064a\u062b \u064a\u0645\u0643\u0646 \u0636\u0628\u0637\u0647 \u062f\u0648\u0646 \u062a\u0639\u062f\u064a\u0644 \u0643\u0648\u062f \u0627\u0644\u062a\u0639\u0631\u064a\u0641<\/p><p><mark style=\"background-color:#ececec\" class=\"has-inline-color\">static int mode = 2; \/\/0-640; 1-256; 2-384<br>static int fps = 60; \/\/256: 25\/50fps, 384\/640: 30\/60fps<\/mark><\/p><p>\u062a\u0634\u063a\u064a\u0644 \u0633\u0643\u0631\u064a\u0628\u062a \u0627\u0644\u0625\u0639\u062f\u0627\u062f:<\/p><pre class=\"wp-block-preformatted\"><mark style=\"background-color:#ececec\" class=\"has-inline-color\">git clone https:\/\/github.com\/Kodrea\/rs300-v4l2-driver.git<br>cd \/rs300-v4l2-driver<br>\u062a\u0639\u062f\u064a\u0644 \u0627\u0644\u062a\u0639\u0631\u064a\u0641 \u0644\u0627\u062e\u062a\u064a\u0627\u0631 \u0627\u0644\u0648\u062d\u062f\u0629<br>sudo nano rs300.c<br>chmod +x setup.sh<br>.\/setup.sh<\/mark><\/pre><p>\u0641\u064a \u0645\u0644\u0641 config.txt \u0627\u0644\u062e\u0627\u0635 \u0628\u0643\u060c \u0623\u0636\u0641 \u0627\u0644\u062a\u0631\u0627\u0643\u0628<a href=\"https:\/\/github.com\/Kodrea\/rs300-v4l2-driver\/blob\/main\/README.md#build-and-install\" target=\"_blank\" rel=\"noopener\"><\/a><\/p><ul class=\"wp-block-list\"><li>\u0644\u0646\u0638\u0627\u0645 bookworm<br><a href=\"https:\/\/github.com\/Kodrea\/rs300-v4l2-driver\/blob\/main\/README.md#build-and-install\" target=\"_blank\" rel=\"noopener\"><\/a><a href=\"https:\/\/github.com\/Kodrea\/rs300-v4l2-driver\/blob\/main\/README.md#installation\" target=\"_blank\" rel=\"noopener\"><\/a><\/li><\/ul><pre class=\"wp-block-preformatted\"><mark style=\"background-color:#ececec\" class=\"has-inline-color\">sudo nano \/boot\/firmware\/config.txt<\/mark><\/pre><p>\u062b\u0645 \u0623\u0636\u0641<\/p><pre class=\"wp-block-preformatted\"><mark style=\"background-color:#ececec\" class=\"has-inline-color\">camera_auto_detect=0<br>dtoverlay=rs300<\/mark><\/pre><p>\u062b\u0645 \u0623\u0639\u062f \u0627\u0644\u062a\u0634\u063a\u064a\u0644<\/p><pre class=\"wp-block-preformatted\"><mark style=\"background-color:#ececec\" class=\"has-inline-color\">sudo reboot<\/mark><\/pre><h2 class=\"wp-block-heading\">\u0627\u0644\u0627\u0633\u062a\u062e\u062f\u0627\u0645<\/h2><h3 class=\"wp-block-heading\"><strong>\u0639\u0631\u0636 \u0645\u0639\u0644\u0648\u0645\u0627\u062a \u0627\u0644\u062c\u0647\u0627\u0632<\/strong><\/h3><p>\u064a\u062c\u0628 \u0627\u0644\u0622\u0646 \u0623\u0646 \u062a\u0643\u0648\u0646 \u0627\u0644\u0643\u0627\u0645\u064a\u0631\u0627 \u0645\u0631\u062a\u0628\u0637\u0629 \u0628\u0645\u0634\u063a\u0644 Unicam \u0627\u0644\u062e\u0627\u0635 \u0628\u0640 Raspberry Pi \u0648\u0645\u062a\u0627\u062d\u0629 \u0639\u0644\u0649 \/dev\/video0 \u0627\u062d\u0635\u0644 \u0639\u0644\u0649 \u0645\u0639\u0644\u0648\u0645\u0627\u062a \u0623\u0633\u0627\u0633\u064a\u0629 \u062d\u0648\u0644 \u0645\u0634\u063a\u0644 \u062c\u0633\u0631 Unicam:<\/p><pre class=\"wp-block-preformatted\"><mark style=\"background-color:#ececec\" class=\"has-inline-color\">v4l2-ctl --list-devices<br>v4l2-ctl --all -d \/dev\/video0<\/mark><\/pre><p>\u062a\u0645 \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u0643\u0627\u0645\u064a\u0631\u0627 \u0627\u0644\u0641\u0639\u0644\u064a\u0629 \u0643\u062c\u0647\u0627\u0632 \u0641\u0631\u0639\u064a \u0641\u064a \u0627\u0644\u0645\u0634\u063a\u0644<\/p><p><mark style=\"background-color:#ececec\" class=\"has-inline-color\">v4l2-ctl -d \/dev\/v4l-subdev0 --list-ctrls<\/mark><\/p><h3 class=\"wp-block-heading\"><strong>\u0627\u062e\u062a\u0628\u0627\u0631 \u0627\u0644\u062a\u0642\u0627\u0637 \u0627\u0644\u0641\u064a\u062f\u064a\u0648<\/strong><\/h3><p>\u0627\u0636\u0628\u0637 \u062f\u0642\u0629 \u0627\u0644\u062a\u0646\u0633\u064a\u0642 \u0644\u0644\u0648\u062d\u062f\u0629 \u0627\u0644\u0645\u0646\u0627\u0633\u0628\u0629<\/p><p>Mini2-256<\/p><p><mark style=\"background-color:#ececec\" class=\"has-inline-color\">v4l2-ctl -d \/dev\/video0 --set-fmt-video=width=256,height=192,pixelformat=YUYV<\/mark><a href=\"https:\/\/github.com\/Kodrea\/rs300-v4l2-driver\/blob\/main\/README.md#testing-video-capture\" target=\"_blank\" rel=\"noopener\"><\/a><a href=\"https:\/\/github.com\/Kodrea\/rs300-v4l2-driver\/blob\/main\/README.md#viewing-device-information\" target=\"_blank\" rel=\"noopener\"><\/a><a href=\"https:\/\/github.com\/Kodrea\/rs300-v4l2-driver\/blob\/main\/README.md#usage\" target=\"_blank\" rel=\"noopener\"><\/a><\/p><p>Mini2-384<\/p><p><mark style=\"background-color:#ececec\" class=\"has-inline-color\">v4l2-ctl -d \/dev\/video0 --set-fmt-video=width=384,height=288,pixelformat=YUYV<\/mark><\/p><p>Mini2-640<\/p><p><mark style=\"background-color:#ececec\" class=\"has-inline-color\">v4l2-ctl -d \/dev\/video0 --set-fmt-video=width=640,height=512,pixelformat=YUYV<\/mark><\/p><h3 class=\"wp-block-heading\">gstreamer<\/h3><p>gstreamer \u0648\u0643\u0627\u0646 \u0623\u0633\u0631\u0639 \u0628\u0627\u0644\u0646\u0633\u0628\u0629 \u0644\u064a \u0645\u0646 ffmpeg\u060c \u0642\u0645 \u0623\u0648\u0644\u0627\u064b \u0628\u062a\u062b\u0628\u064a\u062a \u0647\u0630\u0627<\/p><p><mark style=\"background-color:#ececec\" class=\"has-inline-color\">sudo apt install gstreamer1.0-tools<\/mark><\/p><p>\u0627\u0636\u0628\u0637 test-overlay=false \u0644\u0625\u0632\u0627\u0644\u0629 \u0639\u062f\u0627\u062f \u0627\u0644\u0625\u0637\u0627\u0631\u0627\u062a \u0641\u064a \u0627\u0644\u062b\u0627\u0646\u064a\u0629<\/p><p>Mini2-256<\/p><p><mark style=\"background-color:#ececec\" class=\"has-inline-color\">gst-launch-1.0 v4l2src device=\/dev\/video0 ! video\/x-raw,format=YUY2,width=256,height=192,framerate=50\/1 ! videoconvert ! fpsdisplaysink video-sink=autovideosink text-overlay=true<\/mark><\/p><p>Mini2-384<\/p><p><mark style=\"background-color:#ececec\" class=\"has-inline-color\">gst-launch-1.0 v4l2src device=\/dev\/video0 ! video\/x-raw,format=YUY2,width=384,height=288,framerate=60\/1 ! videoconvert ! fpsdisplaysink video-sink=autovideosink text-overlay=true<\/mark><a href=\"https:\/\/github.com\/Kodrea\/rs300-v4l2-driver\/blob\/main\/README.md#gstreamer\" target=\"_blank\" rel=\"noopener\"><\/a><\/p><p>Mini2-640<\/p><p><mark style=\"background-color:#ececec\" class=\"has-inline-color\">gst-launch-1.0 v4l2src device=\/dev\/video0 ! video\/x-raw,format=YUY2,width=640,height=512,framerate=60\/1 ! videoconvert ! fpsdisplaysink video-sink=autovideosink text-overlay=true<\/mark><\/p><h3 class=\"wp-block-heading\">\u0639\u0646\u0627\u0635\u0631 \u062a\u062d\u0643\u0645 \u0627\u0644\u0643\u0627\u0645\u064a\u0631\u0627<\/h3><p>\u0627\u0633\u062a\u062e\u062f\u0645 \u0639\u0646\u0627\u0635\u0631 \u062a\u062d\u0643\u0645 v4l2<\/p><p>\u0647\u0630\u0627 \u064a\u0634\u063a\u0644 \u0645\u0639\u0627\u064a\u0631\u0629 \u063a\u0627\u0644\u0642 ffc<\/p><p><mark style=\"background-color:#ececec\" class=\"has-inline-color\">v4l2-ctl -d \/dev\/v4l-subdev0 --set-ctrl=ffc_trigger=0<\/mark><\/p><p>\u062a\u063a\u064a\u064a\u0631 \u062e\u0631\u0627\u0626\u0637 \u0627\u0644\u0623\u0644\u0648\u0627\u0646<\/p><p><mark style=\"background-color:#ececec\" class=\"has-inline-color\">v4l2-ctl -d \/dev\/v4l-subdev0 --set-ctrl=colormap=3<\/mark><\/p><h3 class=\"wp-block-heading\"><strong>\u0627\u0644\u0645\u0634\u0643\u0644\u0627\u062a \u0627\u0644\u0634\u0627\u0626\u0639\u0629 \u0648\u0627\u0644\u062d\u0644\u0648\u0644<\/strong><\/h3><ol class=\"wp-block-list\"><li><strong>\u062f\u0642\u0629 \u062e\u0627\u0637\u0626\u0629<\/strong>: \u062a\u0623\u0643\u062f \u0645\u0646 \u0636\u0628\u0637 \u0627\u0644\u0628\u062b \u0639\u0644\u0649 \u062f\u0642\u0629 \u0648\u062d\u062f\u062a\u0643. \u0628\u0634\u0643\u0644 \u0627\u0641\u062a\u0631\u0627\u0636\u064a\u060c \u0633\u064a\u0639\u062a\u0628\u0631\u0647\u0627 \u0645\u0634\u063a\u0644 Unicam \u0628\u062f\u0642\u0629 640x480<a href=\"https:\/\/github.com\/Kodrea\/rs300-v4l2-driver\/blob\/main\/README.md#common-issues-and-solutions\" target=\"_blank\" rel=\"noopener\"><\/a><\/li><\/ol><h3 class=\"wp-block-heading\">\u0627\u0633\u062a\u0643\u0634\u0627\u0641 \u0627\u0644\u0623\u062e\u0637\u0627\u0621 \u0648\u0625\u0635\u0644\u0627\u062d\u0647\u0627<\/h3><p>\u0625\u0630\u0627 \u0648\u0627\u062c\u0647\u062a \u0645\u0634\u0643\u0644\u0627\u062a:<\/p><ol class=\"wp-block-list\"><li>\u062a\u062d\u0642\u0642 \u0645\u0646 \u0631\u0633\u0627\u0626\u0644 \u0627\u0644\u0646\u0648\u0627\u0629:\u00a0<code><mark style=\"background-color:#ececec\" class=\"has-inline-color\">dmesg | grep rs300<\/mark><\/code><\/li>\n\n<li>\u0641\u064a \u0637\u0631\u0641\u064a\u0629 \u0645\u0646\u0641\u0635\u0644\u0629:\u00a0<code><mark style=\"background-color:#ececec\" class=\"has-inline-color\">dmesg wH<\/mark><\/code><\/li>\n\n<li>\u062a\u062d\u0642\u0642 \u0645\u0646 \u0627\u062a\u0635\u0627\u0644 I2C:\u00a0<code><mark style=\"background-color:#ececec\" class=\"has-inline-color\">i2c-detect -y 1<\/mark><\/code><\/li>\n\n<li>\u062a\u062d\u0642\u0642 \u0645\u0646 \u0627\u0644\u062c\u0647\u0627\u0632:\u00a0<code><mark style=\"background-color:#ececec\" class=\"has-inline-color\">ls -la \/dev\/video*<\/mark><\/code><\/li>\n\n<li>\u0628\u062f\u0623\u062a \u0623\u062a\u0644\u0642\u0649 \u0631\u0633\u0627\u0644\u0629 \u0628\u0623\u0646 postinst \u0644\u0645 \u064a\u0643\u0646 \u064a\u0639\u0645\u0644\u060c \u0644\u0643\u0646\u0647 \u0645\u0637\u0644\u0648\u0628 \u0641\u0642\u0637 \u0644\u0644\u0645\u0631\u0629 \u0627\u0644\u0623\u0648\u0644\u0649 \u0623\u0648 \u0625\u0630\u0627 \u062a\u0645 \u0625\u062c\u0631\u0627\u0621 \u062a\u063a\u064a\u064a\u0631\u0627\u062a \u0639\u0644\u0649 \u062a\u0631\u0627\u0643\u0628 \u0634\u062c\u0631\u0629 \u0627\u0644\u062c\u0647\u0627\u0632<\/li><\/ol><p><mark style=\"background-color:#ececec\" class=\"has-inline-color\">.\/setup.sh<br>sudo sh \/usr\/src\/rs300-0.0.1\/dkms.postinst<\/mark><\/p><h3 class=\"wp-block-heading\">\u0623\u0648\u0627\u0645\u0631 \u0623\u062e\u0631\u0649 \u0645\u062a\u0646\u0648\u0639\u0629 \u0627\u0633\u062a\u062e\u062f\u0645\u062a\u0647\u0627 \u0644\u0627\u0633\u062a\u0643\u0634\u0627\u0641 \u0627\u0644\u0623\u062e\u0637\u0627\u0621 \u0648\u0625\u0635\u0644\u0627\u062d\u0647\u0627<\/h3><p>TODO: \u062a\u0646\u0638\u064a\u0641 \u0647\u0630\u0627 \u0627\u0644\u0642\u0633\u0645<\/p><p><mark style=\"background-color:#ececec\" class=\"has-inline-color\">cd rs300-v4l2-driver<\/mark><\/p><ul class=\"wp-block-list\"><li>\u0627\u062c\u0639\u0644\u0647\u0627 \u0642\u0627\u0628\u0644\u0629 \u0644\u0644\u062a\u0646\u0641\u064a\u0630<a href=\"https:\/\/github.com\/Kodrea\/rs300-v4l2-driver\/blob\/main\/README.md#various-other-commands-i-used-for-troubleshooting\" target=\"_blank\" rel=\"noopener\"><\/a><a href=\"https:\/\/github.com\/Kodrea\/rs300-v4l2-driver\/blob\/main\/README.md#troubleshooting\" target=\"_blank\" rel=\"noopener\"><\/a><a href=\"https:\/\/github.com\/Kodrea\/rs300-v4l2-driver\/blob\/main\/README.md#camera-controls\" target=\"_blank\" rel=\"noopener\"><\/a><\/li><\/ul><p><mark style=\"background-color:#ececec\" class=\"has-inline-color\">chmod +x setup.sh dkms.postinst<\/mark><\/p><h3 class=\"wp-block-heading\">\u062a\u062b\u0628\u064a\u062a DKMS \u0625\u0630\u0627 \u0644\u0645 \u064a\u0643\u0646 \u0645\u062b\u0628\u062a\u064b\u0627 \u0628\u0627\u0644\u0641\u0639\u0644<\/h3><p><mark style=\"background-color:#ececec\" class=\"has-inline-color\">sudo apt install linux-headers dkms git<\/mark><a href=\"https:\/\/github.com\/Kodrea\/rs300-v4l2-driver\/blob\/main\/README.md#install-dkms-if-not-already-installed\" target=\"_blank\" rel=\"noopener\"><\/a><\/p><h3 class=\"wp-block-heading\">\u062a\u0634\u063a\u064a\u0644 \u0633\u0643\u0631\u064a\u0628\u062a \u0627\u0644\u0625\u0639\u062f\u0627\u062f<\/h3><p><a href=\"https:\/\/github.com\/Kodrea\/rs300-v4l2-driver\/blob\/main\/README.md#run-the-setup-script\" target=\"_blank\" rel=\"noopener\"><\/a><mark style=\"background-color:#ececec\" class=\"has-inline-color\">.\/setup.sh<\/mark><\/p><h3 class=\"wp-block-heading\">\u0627\u0644\u062a\u062d\u0642\u0642 \u0645\u0646 \u062d\u0627\u0644\u0629 DKMS \u0648\u0645\u0627 \u0625\u0630\u0627 \u0643\u0627\u0646\u062a \u0627\u0644\u0648\u062d\u062f\u0629 \u0645\u062d\u0645\u0644\u0629<\/h3><p><a href=\"https:\/\/github.com\/Kodrea\/rs300-v4l2-driver\/blob\/main\/README.md#check-dkms-status-and-if-module-is-loaded\" target=\"_blank\" rel=\"noopener\"><\/a><mark style=\"background-color:#ececec\" class=\"has-inline-color\">dkms status<br>lsmod | grep rs300<br>modinfo rs300<\/mark><\/p><h3 class=\"wp-block-heading\">\u0627\u0644\u062a\u062d\u0642\u0642 \u0645\u0646 \u0623\u062c\u0647\u0632\u0629 i2c<\/h3><p><a href=\"https:\/\/github.com\/Kodrea\/rs300-v4l2-driver\/blob\/main\/README.md#check-i2c-devices\" target=\"_blank\" rel=\"noopener\"><\/a><mark style=\"background-color:#ececec\" class=\"has-inline-color\">ls \/dev\/i2c*<br>i2cdetect -l<br>i2cdetect -y 10 # \u062d\u0627\u0644\u064a\u064b\u0627 \u0647\u0648 \u0627\u0644\u0646\u0627\u0642\u0644 10 \u0628\u0627\u0644\u0646\u0633\u0628\u0629 \u0644\u064a<br>i2cdump -f -y 10 0x3c # i2c 10\u060c 0x3c \u0647\u0648 \u0639\u0646\u0648\u0627\u0646 \u062c\u0647\u0627\u0632\u0643<\/mark><\/p><h3 class=\"wp-block-heading\">\u0627\u0644\u062a\u062d\u0642\u0642 \u0645\u0646 \u0623\u062c\u0647\u0632\u0629 v4l2<\/h3><p><a href=\"https:\/\/github.com\/Kodrea\/rs300-v4l2-driver\/blob\/main\/README.md#check-v4l2-devices\" target=\"_blank\" rel=\"noopener\"><\/a><mark style=\"background-color:#ececec\" class=\"has-inline-color\">ls \/dev\/video*<br>v4l2-ctl --list-devices<br>v4l2-ctl -d \/dev\/video0 --all<br># \u0639\u0631\u0636 \u0627\u0644\u0635\u064a\u063a \u0627\u0644\u0645\u062f\u0639\u0648\u0645\u0629<br>v4l2-ctl -d \/dev\/video0 --list-formats-ext<br># \u0639\u0631\u0636 \u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u062a\u062d\u0643\u0645 \u0627\u0644\u0645\u062f\u0639\u0648\u0645\u0629<br>v4l2-ctl -d \/dev\/video0 --list-ctrls<br># \u0639\u0631\u0636 \u0627\u0644\u0625\u062f\u062e\u0627\u0644\/\u0627\u0644\u0625\u062e\u0631\u0627\u062c \u0627\u0644\u062d\u0627\u0644\u064a<br>v4l2-ctl -d \/dev\/video0 --info<\/mark><\/p><h3 class=\"wp-block-heading\">\u062a\u0639\u064a\u064a\u0646 \u0645\u0639\u0627\u0645\u0644\u0627\u062a v4l2 \u064a\u062f\u0648\u064a\u064b\u0627\u061b \u0627\u0644\u062f\u0642\u0629\u060c \u0645\u0639\u062f\u0644 \u0627\u0644\u0625\u0637\u0627\u0631\u0627\u062a\u060c \u0625\u0644\u062e<\/h3><p><mark style=\"background-color:#ececec\" class=\"has-inline-color\">v4l2-ctl -d \/dev\/video0 --set-fmt-video width=256,height=192,pixelformat=YUYV<br>v4l2-ctl -d \/dev\/video0 --set-fmt-video=width=640,height=512,pixelformat=YUYV<br>v4l2-ctl --stream-mmap -d \/dev\/video0 -o test.yuv<\/mark><\/p><p>ffplay -f v4l2 -input_format yuyv422 -video_size 256x192 -i \/dev\/video0<\/p><p>ffplay -f v4l2 -input_format yuyv422 -video_size 640x512 -i \/dev\/video0<a href=\"https:\/\/github.com\/Kodrea\/rs300-v4l2-driver\/blob\/main\/README.md#set-v4l2-parameters-manually-resolution-fps-etc\" target=\"_blank\" rel=\"noopener\"><\/a><\/p><h3 class=\"wp-block-heading\">\u0625\u0639\u0627\u062f\u0629 \u0628\u0646\u0627\u0621 \u0627\u0644\u0648\u062d\u062f\u0629<\/h3><p><mark style=\"background-color:#ececec\" class=\"has-inline-color\">cd rs300-v4l2-driver<br>.\/setup.sh<\/mark><\/p><h3 class=\"wp-block-heading\">\u0627\u0644\u062a\u062d\u0642\u0642 \u0628\u0639\u062f \u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0628\u0646\u0627\u0621 \u0648\u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u062a\u0634\u063a\u064a\u0644<\/h3><ul class=\"wp-block-list\"><li>\u0627\u0644\u062a\u062d\u0642\u0642 \u0645\u0645\u0627 \u0625\u0630\u0627 \u0643\u0627\u0646\u062a \u0627\u0644\u0648\u062d\u062f\u0629 \u0639\u0644\u0649 i2c<\/li>\n\n<li>\u0627\u0644\u062a\u062d\u0642\u0642 \u0645\u0645\u0627 \u0625\u0630\u0627 \u0643\u0627\u0646\u062a \u0639\u0642\u062f\u0629 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0642\u062f \u0623\u064f\u0646\u0634\u0626\u062a<br><a href=\"https:\/\/github.com\/Kodrea\/rs300-v4l2-driver\/blob\/main\/README.md#check-after-rebuild-and-reboot\" target=\"_blank\" rel=\"noopener\"><\/a><\/li><\/ul><p><mark style=\"background-color:#ececec\" class=\"has-inline-color\">i2cdetect -l <br>i2cdetect -y 10<br>lsmod | grep rs300<br>dmesg | grep -i rs300<br>modinfo rs300<br><br>media-ctl -p<br>ls \/dev\/v4l-subdev*<br><br>v4l2-ctl --list-devices<br>v4l2-ctl -d \/dev\/video0 --all<br><\/mark><br><mark style=\"background-color:#ececec\" class=\"has-inline-color\">v4l2-ctl -d \/dev\/video0 --list-ctrls<br>v4l2-ctl -d \/dev\/v4l-subdev0 --list-ctrls<br><br>v4l2-ctl -d \/dev\/video0 --list-formats-ext<br>vcgencmd get_camera<br><br><br>v4l2-ctl -d \/dev\/v4l-subdev0 --all<br>sudo cat \/dev\/kmsg | grep rs300<br>v4l2-ctl -d \/dev\/video0 --stream-mmap -o test.yuv<br>sudo dmesg -wH<br>ffplay -f video4linux2 -input_format yuyv422 -video_size 256x192 -i \/dev\/video0<br>ffplay -f video4linux2 -input_format yuyv422 -video_size 640x512 -i \/dev\/video0<\/mark><\/p><p><a href=\"https:\/\/github.com\/Kodrea\/rs300-v4l2-driver\/blob\/main\/README.md#rebuild-the-module\" target=\"_blank\" rel=\"noopener\"><\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>This driver is for the \"mini2\" thermal camera module referred to as the rs300 in the original driver. Some Basic Specs The \"mini2\" is a thermal<span class=\"excerpt-hellip\"> [\u2026]<\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"RS300 Thermal Camera Driver for Raspberry Pi","rank_math_description":"RS300 Thermal Camera Driver for Raspberry Pi","rank_math_focus_keyword":"","rank_math_robots":"","_rank_math_focus_keyword":"","_rank_math_title":"","_rank_math_description":""},"categories":[148],"tags":[],"class_list":["post-1894","post","type-post","status-publish","format-standard","hentry","category-news"],"_links":{"self":[{"href":"https:\/\/www.thermal-image.com\/ar\/wp-json\/wp\/v2\/posts\/1894","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thermal-image.com\/ar\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thermal-image.com\/ar\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thermal-image.com\/ar\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thermal-image.com\/ar\/wp-json\/wp\/v2\/comments?post=1894"}],"version-history":[{"count":0,"href":"https:\/\/www.thermal-image.com\/ar\/wp-json\/wp\/v2\/posts\/1894\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.thermal-image.com\/ar\/wp-json\/wp\/v2\/media?parent=1894"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thermal-image.com\/ar\/wp-json\/wp\/v2\/categories?post=1894"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thermal-image.com\/ar\/wp-json\/wp\/v2\/tags?post=1894"}],"curies":[{"name":"\u0648\u0648\u0631\u062f\u0628\u0631\u064a\u0633","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}