﻿{"id":12000,"date":"2023-10-12T15:06:04","date_gmt":"2023-10-12T13:06:04","guid":{"rendered":"https:\/\/www.sigterritoires.fr\/?p=12000"},"modified":"2023-10-12T15:06:06","modified_gmt":"2023-10-12T13:06:06","slug":"installing-the-qgis-semi-automatic-classification-scp-v-8-0-plugin","status":"publish","type":"post","link":"https:\/\/www.sigterritoires.fr\/index.php\/en\/installing-the-qgis-semi-automatic-classification-scp-v-8-0-plugin\/","title":{"rendered":"Installing the QGIS- Semi-Automatic Classification (SCP) v 8.0 plugin"},"content":{"rendered":"\n<p>This article describes the installation of version 8.0.3 of the QGis SCP (semi-automatic classification) plugin on a 64-bit Windows machine.<\/p>\n\n\n\n<p>The new version of the QGis image classification plugin (SCP) is a little more complicated than previous versions. It&rsquo;s not enough to install the plugin using the extension manager, you also need to check and install its dependencies, i.e. the libraries required for it to work properly.<\/p>\n\n\n\n<p>The semi-automatic classification plugin requires Remotior Sensus, GDAL, NumPy and SciPy for most functionalities. Optionally, scikit-learn and PyTorch are required for machine learning.<\/p>\n\n\n\n<p>Therefore, we need to install dependencies that are not included in the QGIS installation.<\/p>\n\n\n\n<p>If you have installed the latest version of QGis, GDAL, NumPy and SciPy should be up to date, and you will only need to install Remotior Sensus, scikit-learn and PyTorch.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Installing dependencies.<\/h2>\n\n\n\n<p>Close QGIS if it is open.<br>In the Start menu, open OSGeo4W Shell (administration rights may be required);<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/osgeo4w_shell.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"366\" data-attachment-id=\"11989\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/installation-du-plugin-qgis-semi-automatic-classification-scp-v-8-0\/osgeo4w_shell\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/osgeo4w_shell.jpg?fit=800%2C457&amp;ssl=1\" data-orig-size=\"800,457\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"osgeo4w_shell\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/osgeo4w_shell.jpg?fit=640%2C366&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/osgeo4w_shell.jpg?resize=640%2C366&#038;ssl=1\" alt=\" OSGeo4W Shell \" class=\"wp-image-11989\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/osgeo4w_shell.jpg?w=800&amp;ssl=1 800w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/osgeo4w_shell.jpg?resize=300%2C171&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/osgeo4w_shell.jpg?resize=768%2C439&amp;ssl=1 768w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/figure>\n\n\n\n<p>Enter the following command:<\/p>\n\n\n\n<p>pip3 install &#8211;upgrade remotior-sensus scikit-learn torch<\/p>\n\n\n\n<p>If you need to install or upgrade other dependencies, use the same command (pip3 install &#8211;upgrade) followed by the dependency to be installed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Installing the plugin<\/h2>\n\n\n\n<p>Install the plugin in the usual way:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open the extension manager<\/li>\n\n\n\n<li>Search for &lsquo;SCP<\/li>\n\n\n\n<li>Click on &lsquo;Install extension<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/install-scp-plugin.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"367\" data-attachment-id=\"11990\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/installation-du-plugin-qgis-semi-automatic-classification-scp-v-8-0\/install-scp-plugin\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/install-scp-plugin.png?fit=3365%2C1928&amp;ssl=1\" data-orig-size=\"3365,1928\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"install-scp-plugin\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/install-scp-plugin.png?fit=640%2C367&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/install-scp-plugin.png?resize=640%2C367&#038;ssl=1\" alt=\"installing the scp plugin under QGis\" class=\"wp-image-11990\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/install-scp-plugin.png?resize=1024%2C587&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/install-scp-plugin.png?resize=300%2C172&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/install-scp-plugin.png?resize=768%2C440&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/install-scp-plugin.png?resize=1536%2C880&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/install-scp-plugin.png?resize=2048%2C1173&amp;ssl=1 2048w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/install-scp-plugin.png?w=1280&amp;ssl=1 1280w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/install-scp-plugin.png?w=1920&amp;ssl=1 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/figure>\n\n\n\n<p>You&rsquo;ll find the QGis interface modified with the plugin&rsquo;s tools:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/interface_plugin_scp.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"360\" data-attachment-id=\"11991\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/installation-du-plugin-qgis-semi-automatic-classification-scp-v-8-0\/interface_plugin_scp\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/interface_plugin_scp.png?fit=3842%2C2160&amp;ssl=1\" data-orig-size=\"3842,2160\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"interface_plugin_scp\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/interface_plugin_scp.png?fit=640%2C360&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/interface_plugin_scp.png?resize=640%2C360&#038;ssl=1\" alt=\"scp interface in qgis\" class=\"wp-image-11991\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/interface_plugin_scp.png?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/interface_plugin_scp.png?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/interface_plugin_scp.png?resize=768%2C432&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/interface_plugin_scp.png?resize=1536%2C864&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/interface_plugin_scp.png?resize=2048%2C1151&amp;ssl=1 2048w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/interface_plugin_scp.png?w=1280&amp;ssl=1 1280w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/interface_plugin_scp.png?w=1920&amp;ssl=1 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/figure>\n\n\n\n<p>The plugin adds:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>an SCP main menu<\/li>\n\n\n\n<li>an SCP toolbar<\/li>\n\n\n\n<li>an SCP dockable panel<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Updates<\/h2>\n\n\n\n<p>The Remotior Sensus dependency is frequently updated. The semi-automatic classification plugin can automatically check if a new version is available, and display a message in the SCP dock.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/remotior_sensus_update.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"371\" height=\"137\" data-attachment-id=\"11992\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/installation-du-plugin-qgis-semi-automatic-classification-scp-v-8-0\/remotior_sensus_update\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/remotior_sensus_update.png?fit=371%2C137&amp;ssl=1\" data-orig-size=\"371,137\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"remotior_sensus_update\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/remotior_sensus_update.png?fit=371%2C137&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/remotior_sensus_update.png?resize=371%2C137&#038;ssl=1\" alt=\"update message for remotior sensus\" class=\"wp-image-11992\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/remotior_sensus_update.png?w=371&amp;ssl=1 371w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/remotior_sensus_update.png?resize=300%2C111&amp;ssl=1 300w\" sizes=\"auto, (max-width: 371px) 100vw, 371px\" \/><\/a><\/figure>\n\n\n\n<p>We recommend that you close QGIS and update Remotior Sensus by following the same installation steps described above in Installing required dependencies .<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Plugin configuration<\/h2>\n\n\n\n<p>Compared with previous versions, we recommend configuring the memory used by the plugin.<\/p>\n\n\n\n<p>It is recommended to configure the available RAM to reduce processing time. In the SCP menu, select <strong><em>Settings &gt; Processing<\/em><\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/scp_memoire_settings.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"483\" data-attachment-id=\"11993\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/installation-du-plugin-qgis-semi-automatic-classification-scp-v-8-0\/scp_memoire_settings\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/scp_memoire_settings.png?fit=1757%2C1325&amp;ssl=1\" data-orig-size=\"1757,1325\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"scp_memoire_settings\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/scp_memoire_settings.png?fit=640%2C483&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/scp_memoire_settings.png?resize=640%2C483&#038;ssl=1\" alt=\"ram configuration for scp\" class=\"wp-image-11993\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/scp_memoire_settings.png?resize=1024%2C772&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/scp_memoire_settings.png?resize=300%2C226&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/scp_memoire_settings.png?resize=768%2C579&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/scp_memoire_settings.png?resize=1536%2C1158&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/scp_memoire_settings.png?w=1757&amp;ssl=1 1757w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/scp_memoire_settings.png?w=1280&amp;ssl=1 1280w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/figure>\n\n\n\n<p>In Settings, set Available RAM (MB) to a value corresponding to half the system RAM. For example, if your system has 16 GB of RAM, set the value to 8,192 MB.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article describes the installation of version 8.0.3 of the QGis SCP (semi-automatic classification) plugin on a 64-bit Windows machine. The new version of the QGis image classification plugin (SCP) is a little more complicated than&hellip;<\/p>\n","protected":false},"author":1,"featured_media":11991,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"give_campaign_id":0,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"sfsi_plus_gutenberg_text_before_share":"","sfsi_plus_gutenberg_show_text_before_share":"","sfsi_plus_gutenberg_icon_type":"","sfsi_plus_gutenberg_icon_alignemt":"","sfsi_plus_gutenburg_max_per_row":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[1377],"tags":[2709,2711,1758,1386,2713,2705,2707],"class_list":["post-12000","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-qgis-en","tag-classification-en","tag-image-en","tag-plugin-en","tag-qgis-en","tag-scp-en","tag-semi-automatic","tag-supervised"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/10\/interface_plugin_scp.png?fit=3842%2C2160&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p6XU0A-37y","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/12000","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/comments?post=12000"}],"version-history":[{"count":0,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/12000\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/media\/11991"}],"wp:attachment":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/media?parent=12000"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/categories?post=12000"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/tags?post=12000"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}