<?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/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>eXperiências</title>
	<atom:link href="http://blogdu.com.br/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogdu.com.br</link>
	<description>Inovação, Automação, Tecnologia, Dicas, Internet das Coisas</description>
	<lastBuildDate>Sat, 03 Feb 2018 18:03:35 +0000</lastBuildDate>
	<language>pt-BR</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.5.1</generator>
<site xmlns="com-wordpress:feed-additions:1">60766959</site>	<item>
		<title>Instalando o openCV em uma raspberry pi 3</title>
		<link>http://blogdu.com.br/opencv-na-raspberry-pi-3/</link>
					<comments>http://blogdu.com.br/opencv-na-raspberry-pi-3/#comments</comments>
		
		<dc:creator><![CDATA[kadu]]></dc:creator>
		<pubDate>Sat, 03 Feb 2018 15:03:35 +0000</pubDate>
				<category><![CDATA[OpenCV]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<guid isPermaLink="false">http://blogdu.com.br/?p=25</guid>

					<description><![CDATA[<p>Depois de tentar algumas vezes, a instalação finalmente funcionou. Quase torrou o processador da raspi mais agora temos openCV 3.4.0 funcional, com python 3x. Se&#8230;</p>
<p>O post <a rel="nofollow" href="http://blogdu.com.br/opencv-na-raspberry-pi-3/">Instalando o openCV em uma raspberry pi 3</a> apareceu primeiro em <a rel="nofollow" href="http://blogdu.com.br">eXperiências</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img data-attachment-id="31" data-permalink="http://blogdu.com.br/opencv-na-raspberry-pi-3/raspopencv/" data-orig-file="https://i0.wp.com/blogdu.com.br/wp-content/uploads/2018/02/raspopencv.png?fit=580%2C267" data-orig-size="580,267" 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="raspopencv" data-image-description="&lt;p&gt;Imagem com uma raspiberry e o logo do opencv&lt;/p&gt;
" data-medium-file="https://i0.wp.com/blogdu.com.br/wp-content/uploads/2018/02/raspopencv.png?fit=300%2C138" data-large-file="https://i0.wp.com/blogdu.com.br/wp-content/uploads/2018/02/raspopencv.png?fit=580%2C267" loading="lazy" class="wp-image-31 aligncenter" src="https://i0.wp.com/blogdu.com.br/wp-content/uploads/2018/02/raspopencv.png?resize=473%2C218" alt="" width="473" height="218" data-recalc-dims="1" />Depois de tentar algumas vezes, a instalação finalmente funcionou. Quase torrou o processador da raspi mais agora temos openCV 3.4.0 funcional, com python 3x.<br />
Se você também vai se aventurar a fazer essa instalação, esteja preparado, reserve um tempo, pois no passo de compilação, vai te tomar uma hora e meia ou um pouco mais de tempo, isso em uma raspi 3, se for na zero, pede uma pizza e coloque um netflix pra dar uma relaxada enquando o processador trabalha.</p>
<p>A grande receita de bolo veio do <a href="https://www.pyimagesearch.com/2016/04/18/install-guide-raspberry-pi-3-raspbian-jessie-opencv-3/">PyImageSearch</a>, um site que é referencia quando falamos de OpenCV com python. Basta seguir e tudo funcionará, observe que é possível fazer uma compilação usando os multiplos cores do raspberry, &#8220;make -j4&#8221;, além desse detalhe, prestando bastante atenção na parte de alterar o tamanho do swap do raspibian, porque sem isso sua rasp vai reiniciar várias vezes do nada e você vai por a culpa no OpenCV :P&#8230;, depois de instalar é hora de fazer um &#8220;Hello World&#8221;.</p>
<p>Primeiro vamos checar se está tudo ok:</p><pre class="crayon-plain-tag">$ source ~/.profile 
$ workon cv
$ python
&gt;&gt;&gt; import cv2
&gt;&gt;&gt; cv2.__version__
'3.1.0'
&gt;&gt;&gt;</pre><p>Agora é hora de colocar uma webcam e ver se aparece alguma coisa, e isso sera nosso hello world <img src="https://s.w.org/images/core/emoji/13.0.0/72x72/1f609.png" alt="😉" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p><pre class="crayon-plain-tag">import numpy as np
import cv2

cap = cv2.VideoCapture(0)

# Define the codec and create VideoWriter object
fourcc = cv2.VideoWriter_fourcc(*'XVID')
out = cv2.VideoWriter('output.avi',fourcc, 6.704, (640,480))

while(cap.isOpened()):
    ret, frame = cap.read()
    if ret==True:
        frame = cv2.flip(frame,0)

        # write the flipped frame
        out.write(frame)

        cv2.imshow('frame',frame)
        if cv2.waitKey(1) &amp; 0xFF == ord('q'):
            break
    else:
        break

# Release everything if job is finished
cap.release()
out.release()
cv2.destroyAllWindows()</pre><p>Existe vários tutorias bacanas sobre visão computacional utilizando o OpenCV, abaixo fiz um apanhado de links que me ajudaram na instalação, e recomendo o ultimo link, são 9 passos pra fazer um contador de pessoas, os textos não são grandes e está bem detalhado cada um dos passo a seguir.</p>
<p>Aqui alguns links que achei &#8220;no caminho&#8221;</p>
<ul>
<li><a href="https://www.pyimagesearch.com/">https://www.pyimagesearch.com/</a></li>
<li><a href="https://www.embarcados.com.br/opencv-3-1-0-na-raspberry-pi-zero-w/">Compilação e instalação do OpenCV 3.1.0 na Raspberry Pi Zero W</a></li>
<li><a href="https://www.filipeflop.com/blog/robo-seguidor-de-linha-pi-zero-w-opencv/">Robô seguidor de linha com Raspberry Pi Zero W e OpenCV</a></li>
<li><a href="https://www.embarcados.com.br/objetos-opencv-e-python-raspberry-pi/">Contagem de objetos em movimento com OpenCV e Python usando Raspberry Pi</a></li>
<li><a href="https://www.learnopencv.com/how-to-find-frame-rate-or-frames-per-second-fps-in-opencv-python-cpp/">How to find frame rate</a></li>
<li><a href="https://www.femb.com.mx/people-counter/people-counter-with-opencv-python/">People Counter with OpenCV Python</a></li>
</ul>
<p>Pra fechar um projeto que achei ao procurar sobre detecção de rostos: <a href="http://openbiometrics.org">OpenBiometrics</a></p>
<p>O post <a rel="nofollow" href="http://blogdu.com.br/opencv-na-raspberry-pi-3/">Instalando o openCV em uma raspberry pi 3</a> apareceu primeiro em <a rel="nofollow" href="http://blogdu.com.br">eXperiências</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://blogdu.com.br/opencv-na-raspberry-pi-3/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">25</post-id>	</item>
		<item>
		<title>May the 4th be with you!</title>
		<link>http://blogdu.com.br/may-the-4th-be-with-you/</link>
					<comments>http://blogdu.com.br/may-the-4th-be-with-you/#respond</comments>
		
		<dc:creator><![CDATA[kadu]]></dc:creator>
		<pubDate>Fri, 05 May 2017 00:36:05 +0000</pubDate>
				<category><![CDATA[CNC]]></category>
		<category><![CDATA[inventables]]></category>
		<category><![CDATA[ugs]]></category>
		<category><![CDATA[universal gcode sender]]></category>
		<category><![CDATA[x-carve]]></category>
		<guid isPermaLink="false">http://blogdu.com.br/?p=4</guid>

					<description><![CDATA[<p>E aqui vai uma &#8220;musiquinha&#8221; pra comemorar! &#160;</p>
<p>O post <a rel="nofollow" href="http://blogdu.com.br/may-the-4th-be-with-you/">May the 4th be with you!</a> apareceu primeiro em <a rel="nofollow" href="http://blogdu.com.br">eXperiências</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>E aqui vai uma &#8220;musiquinha&#8221; pra comemorar!</p>
<iframe class='youtube-player' width='560' height='315' src='https://www.youtube.com/embed/9AOryedNi5c?version=3&#038;rel=1&#038;fs=1&#038;autohide=2&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' allowfullscreen='true' style='border:0;'></iframe>
<p>&nbsp;</p>
<p>O post <a rel="nofollow" href="http://blogdu.com.br/may-the-4th-be-with-you/">May the 4th be with you!</a> apareceu primeiro em <a rel="nofollow" href="http://blogdu.com.br">eXperiências</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://blogdu.com.br/may-the-4th-be-with-you/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4</post-id>	</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Page Caching using disk: enhanced (Page is feed) 
Minified using disk

Served from: blogdu.com.br @ 2020-09-14 18:12:03 by W3 Total Cache
-->