{"id":41088,"date":"2022-06-18T13:21:44","date_gmt":"2022-06-18T13:21:44","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=41088"},"modified":"2022-06-19T01:06:00","modified_gmt":"2022-06-19T01:06:00","slug":"cameractrls-camera-exposure-white-balance","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2022\/06\/cameractrls-camera-exposure-white-balance\/","title":{"rendered":"This App Let You Configure Camera Exposure, White Balance, HDR &#038; More in Linux"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/webcam-icon.webp\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/webcam-icon-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" class=\"alignleft size-thumbnail wp-image-41091\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/webcam-icon-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/webcam-icon-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/webcam-icon-600x600.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/webcam-icon-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/webcam-icon.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p>Has a webcam connected in your Linux PC or laptop? Here&#8217;s a graphical tool to configure the camera exposure, white balance, brightness, contrast, power line frequency, gamma, etc.<\/p>\n<p>It&#8217;s <a href=\"https:\/\/github.com\/soyersoyer\/cameractrls\" rel=\"noopener\" target=\"_blank\">cameractrls<\/a>, a new open-source tool that provides Python CLI and GUI (GTK, TK) to set the Camera controls in Linux. It can set the V4L2 controls and it is extendable with the non standard controls. <\/p>\n<p>Currently, it has a Logitech extension (Led mode, led frequency), Kiyo Pro extension (HDR, HDR mode, FoV, AF mode, Save), Systemd extension (Save and restore controls with Systemd path+service).<\/p>\n<div id=\"attachment_41096\" style=\"width: 610px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/cheese-cameractrls.webp\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-41096\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/cheese-cameractrls-600x337.webp\" alt=\"\" width=\"600\" height=\"337\" class=\"size-large wp-image-41096\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/cheese-cameractrls-600x337.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/cheese-cameractrls-300x169.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/cheese-cameractrls-768x432.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/cheese-cameractrls.webp 1366w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><p id=\"caption-attachment-41096\" class=\"wp-caption-text\">Cheese and Cameractrls<\/p><\/div>\n<p>As the picture shows, it has the slider bars to adjust the brightness, contrast, saturation, sharpness, and hue, which also configurable via the default Cheese app.<\/p>\n<div id=\"attachment_41097\" style=\"width: 368px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/cameractrls-basic.webp\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-41097\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/cameractrls-basic-358x600.webp\" alt=\"\" width=\"358\" height=\"600\" class=\"size-large wp-image-41097\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/cameractrls-basic-358x600.webp 358w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/cameractrls-basic-179x300.webp 179w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/cameractrls-basic.webp 592w\" sizes=\"auto, (max-width: 358px) 100vw, 358px\" \/><\/a><p id=\"caption-attachment-41097\" class=\"wp-caption-text\">Basic settings page<\/p><\/div>\n<p>There are as well options to switch between Aperture Priority Mode and Manual Mode to adjust camera exposure, backlight compensation, toggle HDR. White Balance temperature is also configurable in both auto and manual mode.<\/p>\n<p>Advanced settings page lets you select power line frequency, toggle focus, AF mode, and adjust Pan, Tilt, Zoom, FoV if your web camera support them.<\/p>\n<div id=\"attachment_41099\" style=\"width: 323px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/cameractrls-adv.webp\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-41099\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/cameractrls-adv-313x600.webp\" alt=\"\" width=\"313\" height=\"600\" class=\"size-large wp-image-41099\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/cameractrls-adv-313x600.webp 313w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/cameractrls-adv-156x300.webp 156w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/cameractrls-adv.webp 543w\" sizes=\"auto, (max-width: 313px) 100vw, 313px\" \/><\/a><p id=\"caption-attachment-41099\" class=\"wp-caption-text\">Cameractrls Advanced<\/p><\/div>\n<h3>How to Install the Camera Control App in Ubuntu &#038; Other Linux:<\/h3>\n<p>This is a Python app that should work on all recent Linux distributions. To install it, <b>open terminal from start menu<\/b> (<i>Ubuntu user may just press <b>Ctrl+Alt+T<\/b> on keyboard<\/i>) and run the command below one by one:<\/p>\n<p>1. Firstly, run command to install git in case you don&#8217;t have it:<\/p>\n<pre>sudo apt install git<\/pre>\n<p>The command is only for Debian, Ubuntu, Linux Mint based systems. Fedora user replace <code>apt<\/code> with <code>dnf<\/code>.<\/p>\n<p>2. Grab the source by running command:<\/p>\n<pre>git clone https:\/\/github.com\/soyersoyer\/cameractrls.git<\/pre>\n<p>After downloaded the tool, <b>run command to verify if it works for you!<\/b><\/p>\n<pre>.\/cameractrls\/cameractrlsgtk.py<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/grab-cameractrls-600x179.webp\" alt=\"\" width=\"600\" height=\"179\" class=\"aligncenter size-large wp-image-41100\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/grab-cameractrls-600x179.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/grab-cameractrls-300x89.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/grab-cameractrls-768x229.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/grab-cameractrls.webp 786w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>3. If the app launches and works, you may then run command in the same terminal window (<i>close the app to continue<\/i>) to install the app shortcut icon.<\/p>\n<ul>\n<li>First, create local bin folder if not exist, and move the app folder into that directory:\n<pre>mkdir -p ~\/.local\/bin\/ && mv cameractrls\/ ~\/.local\/bin\/<\/pre>\n<\/li>\n<li>Navigate to the local bin:\n<pre>cd ~\/.local\/bin\/<\/pre>\n<\/li>\n<li>Finally, install the app shortcut (<i>this is a single command, just copy &#038; paste into terminal and hit run<\/i>):\n<pre>cd cameractrls\r\ndesktop-file-install --dir=\"$HOME\/.local\/share\/applications\" \\\r\n--set-icon=\"$PWD\/images\/icon_256.png\" \\\r\n--set-key=Exec --set-value=\"$PWD\/cameractrlsgtk.py\" \\\r\n--set-key=Path --set-value=\"$PWD\" \\\r\ncameractrls.desktop<\/li><\/ul>\r\n\r\n<a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/install-cameractrls.webp\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/install-cameractrls-600x407.webp\" alt=\"\" width=\"600\" height=\"407\" class=\"aligncenter size-large wp-image-41101\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/install-cameractrls-600x407.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/install-cameractrls-300x203.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/install-cameractrls-768x521.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/install-cameractrls.webp 786w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a>\r\n\r\nFinally, you can search for and open the app from start menu ('Activities' overview):\r\n\r\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/open-cameractrls.webp\" alt=\"\" width=\"565\" height=\"276\" class=\"aligncenter size-full wp-image-41102\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/open-cameractrls.webp 565w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/open-cameractrls-300x147.webp 300w\" sizes=\"auto, (max-width: 565px) 100vw, 565px\" \/>\r\n\r\n<h3>How to Remove this Camera Control App:<\/h3>\r\n\r\nTo remove it, first open terminal and run command to remove the shortcut icon file:\r\n\r\n<pre>rm ~\/.local\/share\/applications\/cameractrls.desktop<\/pre>\n<p>And remove the source folder via command:<\/p>\n<pre>rm -rf ~\/.local\/bin\/cameractrls<\/pre>","protected":false},"excerpt":{"rendered":"<p>Has a webcam connected in your Linux PC or laptop? Here&#8217;s a graphical tool to configure the camera exposure, white balance, brightness, contrast, power line frequency, gamma, etc. It&#8217;s cameractrls, a new open-source tool that provides Python CLI and GUI (GTK, TK) to set the Camera controls in Linux. It can set the V4L2 controls [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":41091,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[1096],"class_list":["post-41088","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-camera"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/41088","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=41088"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/41088\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/41091"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=41088"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=41088"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=41088"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}