<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>opencv Archives - Creatronix</title>
	<atom:link href="https://creatronix.de/tag/opencv/feed/" rel="self" type="application/rss+xml" />
	<link>https://creatronix.de/tag/opencv/</link>
	<description>My adventures in code &#38; business</description>
	<lastBuildDate>Tue, 23 Dec 2025 08:33:29 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.1</generator>
	<item>
		<title>10 things I didn&#8217;t know about Data Science a year ago</title>
		<link>https://creatronix.de/10-things-i-didnt-know-about-data-science-a-year-ago/</link>
		
		<dc:creator><![CDATA[Jörn]]></dc:creator>
		<pubDate>Mon, 12 Nov 2018 08:42:26 +0000</pubDate>
				<category><![CDATA[Data Science & SQL]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[ai]]></category>
		<category><![CDATA[Bayes theorem]]></category>
		<category><![CDATA[data science]]></category>
		<category><![CDATA[machine learning]]></category>
		<category><![CDATA[matplotlib]]></category>
		<category><![CDATA[naive bayes]]></category>
		<category><![CDATA[numpy]]></category>
		<category><![CDATA[opencv]]></category>
		<guid isPermaLink="false">http://creatronix.de/?p=2269</guid>

					<description><![CDATA[<p>In my article My personal road map for learning data science in 2018 I wrote about how I try to tackle the data science knowledge sphere. Due to the fact that 2018 is slowly coming to an end I think it is time for a little wrap up. What are the things I learned about&#8230;</p>
<p>The post <a href="https://creatronix.de/10-things-i-didnt-know-about-data-science-a-year-ago/">10 things I didn&#8217;t know about Data Science a year ago</a> appeared first on <a href="https://creatronix.de">Creatronix</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In my article <a href="https://creatronix.de/my-personal-road-map-for-learning-data-science/">My personal road map for learning data science in 2018</a> I wrote about how I try to tackle the data science knowledge sphere. Due to the fact that 2018 is slowly coming to an end I think it is time for a little wrap up.</p>
<p>What are the things I learned about Data Science in 2018? Here we go:</p>
<h2>The difference between Data Science, Machine Learning, Deep Learning and AI</h2>
<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-2276" src="https://creatronix.de/wp-content/uploads/2018/10/data_science_vs_ml.png" alt="" width="514" height="392" srcset="https://creatronix.de/wp-content/uploads/2018/10/data_science_vs_ml.png 514w, https://creatronix.de/wp-content/uploads/2018/10/data_science_vs_ml-300x229.png 300w" sizes="(max-width: 514px) 100vw, 514px" /></p>
<p>A picture says more than a thousand words.</p>
<h2>The difference between supervised and unsupervised learning</h2>
<p><em>Supervised Learning</em></p>
<p>You have training and test data with <strong>labels</strong>. Labels tell You to which e.g. class a certain data item belongs. Image you have images of pets and the labels are the name of the pets.</p>
<p><em>Unsupervised Learning</em></p>
<p>Your data doesn’t have labels. Your algorithm e.g. k-means clustering need to figure out a structure given only the data</p>
<h2>The areas of applied machine learning</h2>
<p>are described here: <a href="https://creatronix.de/the-essence-of-machine-learning/">The Essence of Machine Learning </a>and <a href="https://creatronix.de/data-science-overview/">Data Science Overview</a></p>
<h2>Bayes Theorem</h2>
<p>In my article <a href="https://creatronix.de/bayes-theorem/">Bayes theorem</a> I elaborated about the <strong>base rate fallacy </strong>and in <a href="https://creatronix.de/lesson-2-naive-bayes/">naive bayes</a> I recapped the second lesson from udacity&#8217;s <a href="https://creatronix.de/ud120-intro-to-machine-learning/">UD120 Intro to Machine Learning</a></p>
<h2>Precision and Recall and ROC</h2>
<p>In my article <a href="https://creatronix.de/classification-precision-and-recall/">classification: precision and recall</a> I wrote about different useful measures to evaluate the quality of a supervised learning algorithm.</p>
<p>In <a href="https://creatronix.de/receiver-operating-characteristic/">Receiver Operating Characteristic</a> I wrote about another useful measures the ROC.</p>
<h2>Visualization with matplotlib</h2>
<p>Matplotlib is a really good starting point for visualization. I wrote about it in <a href="https://creatronix.de/introduction-to-matplotlib/">Introduction to matplotlib</a>, <a href="https://creatronix.de/introduction-to-matplotlib-part-2/">Matplotlib &#8211; Part 2</a>, <a href="https://creatronix.de/scatterplot-with-matplotlib/">Scatterplot with matplotlib</a></p>
<h2>Math with numpy</h2>
<p>I wrote some articles about the usage of numpy but only scraped the surface of this mighty library</p>
<ul>
<li><a href="https://creatronix.de/linear-algebra-with-numpy-part-1/">Linear Algebra with numpy &#8211; Part 1</a></li>
<li><a href="https://creatronix.de/numpy-random-choice/">numpy random choice</a></li>
<li><a href="https://creatronix.de/numpy-linspace-function/">Numpy linspace function</a></li>
</ul>
<h2>Image manipulation with OpenCV</h2>
<p><a href="https://creatronix.de/intro-to-opencv-with-python/">Intro to OpenCV with Python</a></p>
<h2>JuPyter Notebooks</h2>
<p>Sometimes I love them sometimes I hate them. I wrote an <a href="https://creatronix.de/introduction-to-jupyter-notebook/">Introduction to JuPyter Notebook</a></p>
<h2>Podcasts</h2>
<p>In 2018 I&#8217;ve listened to a bunch of great podcasts on iTunes:</p>
<ul>
<li><a href="https://lineardigressions.com/">Linear digressions</a></li>
<li><a href="https://lexfridman.com/ai/">MIT Lex Fridman</a></li>
<li><a href="https://itunes.apple.com/de/podcast/self-driving-cars-dr-lance-eliot-podcast-series/id1330558096?mt=2">Dr. Lance Eliot</a></li>
</ul>
<p>&nbsp;</p>
<p>The post <a href="https://creatronix.de/10-things-i-didnt-know-about-data-science-a-year-ago/">10 things I didn&#8217;t know about Data Science a year ago</a> appeared first on <a href="https://creatronix.de">Creatronix</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Intro to OpenCV with Python</title>
		<link>https://creatronix.de/intro-to-opencv-with-python/</link>
		
		<dc:creator><![CDATA[Jörn]]></dc:creator>
		<pubDate>Mon, 23 Jul 2018 19:11:18 +0000</pubDate>
				<category><![CDATA[Data Science & SQL]]></category>
		<category><![CDATA[bgr]]></category>
		<category><![CDATA[blur]]></category>
		<category><![CDATA[gaussian]]></category>
		<category><![CDATA[noise]]></category>
		<category><![CDATA[opencv]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[rgb]]></category>
		<category><![CDATA[smoothing]]></category>
		<guid isPermaLink="false">http://creatronix.de/?p=1593</guid>

					<description><![CDATA[<p>Installation To work with OpenCV from python, you need to install it first. We additionally install numpy and matplotlib as well pip install opencv-python numpy matplotlib Reading Images from file After we import cv2 we can directly work with images like so: import cv2 img = cv2.imread("doc_brown.png") For showing the image, it is recommended to&#8230;</p>
<p>The post <a href="https://creatronix.de/intro-to-opencv-with-python/">Intro to OpenCV with Python</a> appeared first on <a href="https://creatronix.de">Creatronix</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Installation</h2>
<p>To work with OpenCV from python, you need to install it first. We additionally install numpy and matplotlib as well</p>
<div class="hcb_wrap">
<pre class="prism line-numbers lang-bash" data-lang="Bash"><code>pip install opencv-python numpy matplotlib</code></pre>
</div>
<h2>Reading Images from file</h2>
<p>After we import cv2 we can directly work with images like so:</p>
<div class="hcb_wrap">
<pre class="prism line-numbers lang-python" data-lang="Python"><code>import cv2 
img = cv2.imread("doc_brown.png")</code></pre>
</div>
<p>For showing the image, it is recommended to use matplotlib</p>
<div class="hcb_wrap">
<pre class="prism line-numbers lang-python" data-lang="Python"><code>import matplotlib.pyplot as plt 
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) 
plt.imshow(img) 
plt.show()</code></pre>
</div>
<p>OpenCV stores images internally in the BGR format &#8211; blue &#8211; green &#8211; red so we have to convert to RGB before displaying them.</p>
<h2><img decoding="async" class="alignnone size-full wp-image-1748" src="https://creatronix.de/wp-content/uploads/2018/07/doc_brown.png" alt="" width="640" height="480" srcset="https://creatronix.de/wp-content/uploads/2018/07/doc_brown.png 640w, https://creatronix.de/wp-content/uploads/2018/07/doc_brown-300x225.png 300w" sizes="(max-width: 640px) 100vw, 640px" /></h2>
<h2>Image Shape</h2>
<p>We have now an image object which can already tell us more about the image itself:</p>
<div class="hcb_wrap">
<pre class="prism line-numbers lang-python" data-lang="Python"><code>print(img.shape) 
(205, 236, 3)</code></pre>
</div>
<p>The tuple shows us the number of (rows, columns, channels)</p>
<h2>Manipulate brightness</h2>
<div class="hcb_wrap">
<pre class="prism line-numbers lang-python" data-lang="Python"><code>import numpy as np 
brightness = np.zeros(img.shape, dtype="uint8") + 30 
img = cv2.add(img, brightness)</code></pre>
</div>
<p>Manipulating brightness works like this: you need a numpy array with the size of the image, add your brightness and add the brightness array to the original image.</p>
<h2><img decoding="async" class="alignnone size-full wp-image-1749" src="https://creatronix.de/wp-content/uploads/2018/07/bright_doc_30.png" alt="" width="640" height="480" srcset="https://creatronix.de/wp-content/uploads/2018/07/bright_doc_30.png 640w, https://creatronix.de/wp-content/uploads/2018/07/bright_doc_30-300x225.png 300w" sizes="(max-width: 640px) 100vw, 640px" /></h2>
<h2>Adding noise</h2>
<p>Adding noise works the same way, but instead of adding a fixed value to every pixel you add normal distributed values.</p>
<div class="hcb_wrap">
<pre class="prism line-numbers lang-python" data-lang="Python"><code>noise = np.random.randint(0, 100, size=img.shape, dtype="uint8") 
img = cv2.add(img, noise)</code></pre>
</div>
<p><img decoding="async" class="alignnone size-full wp-image-1811" src="https://creatronix.de/wp-content/uploads/2018/07/noisy_doc.png" alt="" width="640" height="480" srcset="https://creatronix.de/wp-content/uploads/2018/07/noisy_doc.png 640w, https://creatronix.de/wp-content/uploads/2018/07/noisy_doc-300x225.png 300w" sizes="(max-width: 640px) 100vw, 640px" /></p>
<h2>Smoothing</h2>
<p>Smoothing is reducing the noise of an image by adding a Gaussian blur:</p>
<div class="hcb_wrap">
<pre class="prism line-numbers lang-python" data-lang="Python"><code>img = cv2.GaussianBlur(img, ksize=(31, 31), sigmaX=5)</code></pre>
</div>
<h2><img decoding="async" class="alignnone size-full wp-image-1812" src="https://creatronix.de/wp-content/uploads/2018/07/smooth_doc.png" alt="" width="640" height="480" srcset="https://creatronix.de/wp-content/uploads/2018/07/smooth_doc.png 640w, https://creatronix.de/wp-content/uploads/2018/07/smooth_doc-300x225.png 300w" sizes="(max-width: 640px) 100vw, 640px" /></h2>
<h2>Gray-scale conversion</h2>
<p>Last but not least we can convert an image to a gray scale. Beware that for showing / storing the image you need to add the flag cmap=&#8221;gray&#8221;</p>
<div class="hcb_wrap">
<pre class="prism line-numbers lang-python" data-lang="Python"><code>img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) 
plt.imshow(img, cmap='gray')</code></pre>
</div>
<p><img decoding="async" class="alignnone size-full wp-image-1815" src="https://creatronix.de/wp-content/uploads/2018/07/gray_doc.png" alt="" width="640" height="480" srcset="https://creatronix.de/wp-content/uploads/2018/07/gray_doc.png 640w, https://creatronix.de/wp-content/uploads/2018/07/gray_doc-300x225.png 300w" sizes="(max-width: 640px) 100vw, 640px" /></p>
<p>Have fun fiddling around with OpenCV!</p>
<h2>Github Repo</h2>
<p><a href="https://github.com/jboegeholz/introduction_to_opencv">https://github.com/jboegeholz/introduction_to_opencv</a></p>
<p>The post <a href="https://creatronix.de/intro-to-opencv-with-python/">Intro to OpenCV with Python</a> appeared first on <a href="https://creatronix.de">Creatronix</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
