<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Python on Simplestory</title><link>https://simplestory.github.io/en/tags/python/</link><description>Recent content in Python on Simplestory</description><generator>Hugo</generator><language>en-us</language><copyright>Simplestory</copyright><lastBuildDate>Mon, 19 Feb 2018 00:00:00 +0000</lastBuildDate><atom:link href="https://simplestory.github.io/en/tags/python/index.xml" rel="self" type="application/rss+xml"/><item><title>Configuring Django on Ubuntu</title><link>https://simplestory.github.io/en/posts/20180219_c851e812699d1207837d404c0af593ce/</link><pubDate>Mon, 19 Feb 2018 00:00:00 +0000</pubDate><guid>https://simplestory.github.io/en/posts/20180219_c851e812699d1207837d404c0af593ce/</guid><description>&lt;blockquote&gt;
&lt;p&gt;At the time of the 2018 Spring Festival, heaven knows what I went through, posting a blog article on the fourth day of the new year. Django was actually configured before the New Year; I had just learned some knowledge about developing web applications with python at that time, so I configured it along the way.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;Environment used for the configuration&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;System: Ubuntu16.04 (LTS)&lt;/li&gt;
&lt;li&gt;python version: python3.6 (using Anaconda to create a virtual environment)&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="preparation"&gt;Preparation&lt;/h2&gt;
&lt;h4 id="uninstalling-an-old-version-of-django"&gt;Uninstalling an old version of Django&lt;/h4&gt;
&lt;p&gt;If you are upgrading from an older version of Django, you need to deal with the old version a little.&lt;/p&gt;</description></item><item><title>Configuring Tensorflow on Linux</title><link>https://simplestory.github.io/en/posts/20180204_68b9e972b5a534bc31d12d9be53b57ec/</link><pubDate>Sun, 04 Feb 2018 00:00:00 +0000</pubDate><guid>https://simplestory.github.io/en/posts/20180204_68b9e972b5a534bc31d12d9be53b57ec/</guid><description>&lt;blockquote&gt;
&lt;p&gt;Borrowing a line from the &lt;a href="http://www.tensorfly.cn/"&gt;TensorFlow Chinese community&lt;/a&gt;: TensorFlow, an open-source magic tool for artificial intelligence.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;Environment used for the configuration&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;System: Ubuntu16.04 (LTS)&lt;/li&gt;
&lt;li&gt;python version: python3.6 (using Anaconda to create a virtual environment)&lt;/li&gt;
&lt;li&gt;Nvidia card: Geforce 920M (if there is no Nvidia card, only the CPU version can be installed)&lt;/li&gt;
&lt;/ul&gt;
&lt;h1 id="installing-tensorflow"&gt;Installing Tensorflow&lt;/h1&gt;
&lt;p&gt;tensorflow has two versions, CPU and GPU; I created two python virtual environments and installed these two versions separately. Below I record this painful installation process&lt;/p&gt;</description></item><item><title>Detecting Traffic Violations with Opencv</title><link>https://simplestory.github.io/en/posts/20171104_bb6e9cb8623b3bf044c62bbbca472d53/</link><pubDate>Sun, 05 Nov 2017 00:00:00 +0000</pubDate><guid>https://simplestory.github.io/en/posts/20171104_bb6e9cb8623b3bf044c62bbbca472d53/</guid><description>&lt;blockquote&gt;
&lt;p&gt;Opencv contains more than 2500 functions, and almost any mature algorithm you can think of can be implemented by calling Opencv&amp;rsquo;s functions, which is super convenient. This post combines Python and Opencv to detect cars in surveillance video and check whether they commit a violation (crossing the double yellow line).&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;System environment: Ubuntu16.04LTS+OpenCV3.3.0+Python2.7.12&lt;/strong&gt;&lt;/p&gt;
&lt;h2 id="background-extraction"&gt;Background extraction&lt;/h2&gt;
&lt;p&gt;For surveillance the position is relatively fixed, so the background will not change considerably over a long period of time. We can therefore consider using background subtraction to roughly extract the background.&lt;/p&gt;</description></item><item><title>Python Classes</title><link>https://simplestory.github.io/en/posts/20170820_7cb802827b60ef8c770d824ec28a65a0/</link><pubDate>Sun, 20 Aug 2017 00:00:00 +0000</pubDate><guid>https://simplestory.github.io/en/posts/20170820_7cb802827b60ef8c770d824ec28a65a0/</guid><description>Life is short, I use Python</description></item><item><title>Python, Object Oriented</title><link>https://simplestory.github.io/en/posts/20170810_3193456a2ce85ef1e01f5a219b37cebd/</link><pubDate>Thu, 10 Aug 2017 00:00:00 +0000</pubDate><guid>https://simplestory.github.io/en/posts/20170810_3193456a2ce85ef1e01f5a219b37cebd/</guid><description>Life is short, I use Python</description></item></channel></rss>