<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ca">
	<id>http://wiki.joanillo.org/index.php?action=history&amp;feed=atom&amp;title=OpenCV%3A_aplicatiu_recta_perfecte%2C_cercle_perfecte</id>
	<title>OpenCV: aplicatiu recta perfecte, cercle perfecte - Historial de revisió</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.joanillo.org/index.php?action=history&amp;feed=atom&amp;title=OpenCV%3A_aplicatiu_recta_perfecte%2C_cercle_perfecte"/>
	<link rel="alternate" type="text/html" href="http://wiki.joanillo.org/index.php?title=OpenCV:_aplicatiu_recta_perfecte,_cercle_perfecte&amp;action=history"/>
	<updated>2026-10-10T23:31:13Z</updated>
	<subtitle>Historial de revisió per a aquesta pàgina del wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>http://wiki.joanillo.org/index.php?title=OpenCV:_aplicatiu_recta_perfecte,_cercle_perfecte&amp;diff=258801&amp;oldid=prev</id>
		<title>Joan: /* detectar cercles */</title>
		<link rel="alternate" type="text/html" href="http://wiki.joanillo.org/index.php?title=OpenCV:_aplicatiu_recta_perfecte,_cercle_perfecte&amp;diff=258801&amp;oldid=prev"/>
		<updated>2020-01-29T17:59:25Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;detectar cercles&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Pàgina nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__TOC__&lt;br /&gt;
=Proves prèvies=&lt;br /&gt;
==Creating Bounding boxes and circles for contours==&lt;br /&gt;
*https://docs.opencv.org/3.4.9/da/d0c/tutorial_bounding_rects_circles.html&lt;br /&gt;
'''C++'''. Compila bé l'exemple amb OpenCV4&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ g++ contour.cpp -o contour `pkg-config --cflags --libs opencv4`&lt;br /&gt;
$ ./contour&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Python''':&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ python3 contour.py &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Per tal de què s'executi bé he de canviar (estem fent servir OpenCV 4.2)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_, contours, _ = cv.findContours(...)&lt;br /&gt;
per&lt;br /&gt;
contours, _ = cv.findContours(...)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==detectar_rectes_v7.cpp==&lt;br /&gt;
[[Fitxer:Detectar rectes.png | thumbnail]]&lt;br /&gt;
Post:&lt;br /&gt;
*http://www.joanillo.org/?p=2155&lt;br /&gt;
&lt;br /&gt;
A partir de l'exemple anterior he anat evolucionant en la carpeta ''projectes/linia_cercle_perfectes/proves'', i ara estic en aquesta versió que fa el següent:&lt;br /&gt;
*partim d'una imatge amb vàries rectes.&lt;br /&gt;
*detecta les rectes (el contorn)&lt;br /&gt;
*dibuixa la recta de millor ajustament&lt;br /&gt;
*calcula la correlació que en dóna el valor de ''lo'' bona que és la recta.&lt;br /&gt;
&lt;br /&gt;
==detectar cercles==&lt;br /&gt;
[[Fitxer:Rodonesa.png | thumbnail]]&lt;br /&gt;
[[Fitxer:Deteccio cercles.png | thumbnail]]&lt;br /&gt;
Basant-me en el codi anterior de detectar_rectes, ara ja puc detectar cercles.&lt;br /&gt;
&lt;br /&gt;
Poso en un fitxer participants.txt el nom del participant, i el seu fitxer de rectes i cercles:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Maria;img/rpere.png;img/cercles_prova.png&lt;br /&gt;
Pere;img/rmaria.png;img/cercles_prova2.png&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
i obtinc el fitxer resultat.txt.&lt;/div&gt;</summary>
		<author><name>Joan</name></author>
		
	</entry>
</feed>