<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE rdf:RDF[
	<!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
	<!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#'>
	<!ENTITY owl 'http://www.w3.org/2002/07/owl#'>
	<!ENTITY swivt 'http://semantic-mediawiki.org/swivt/1.0#'>
	<!ENTITY wiki 'http://https://wikifab.hatlab.fr/Special:URIResolver/'>
	<!ENTITY category 'http://https://wikifab.hatlab.fr/Special:URIResolver/Category-3A'>
	<!ENTITY property 'http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3A'>
	<!ENTITY wikiurl 'https://wikifab.hatlab.fr/'>
]>

<rdf:RDF
	xmlns:rdf="&rdf;"
	xmlns:rdfs="&rdfs;"
	xmlns:owl ="&owl;"
	xmlns:swivt="&swivt;"
	xmlns:wiki="&wiki;"
	xmlns:category="&category;"
	xmlns:property="&property;">

	<owl:Ontology rdf:about="https://wikifab.hatlab.fr/Special:ExportRDF/Portique_de_course_de_voitures_RC">
		<swivt:creationDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2026-04-28T15:00:33+02:00</swivt:creationDate>
		<owl:imports rdf:resource="http://semantic-mediawiki.org/swivt/1.0"/>
	</owl:Ontology>
	<swivt:Subject rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Portique_de_course_de_voitures_RC">
		<rdf:type rdf:resource="http://https://wikifab.hatlab.fr/Special:URIResolver/Category-3ATutoriels"/>
		<rdfs:label>Portique de course de voitures RC</rdfs:label>
		<rdfs:isDefinedBy rdf:resource="https://wikifab.hatlab.fr/Special:ExportRDF/Portique_de_course_de_voitures_RC"/>
		<swivt:page rdf:resource="https://wikifab.hatlab.fr/Portique_de_course_de_voitures_RC"/>
		<swivt:wikiNamespace rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">0</swivt:wikiNamespace>
		<swivt:wikiPageContentLanguage rdf:datatype="http://www.w3.org/2001/XMLSchema#string">fr</swivt:wikiPageContentLanguage>
		<property:Area rdf:resource="&wiki;-C3-89lectronique"/>
		<property:Area rdf:resource="&wiki;Robotique"/>
		<property:Area rdf:resource="&wiki;Projet_de_Groupe"/>
		<property:Cost rdf:datatype="http://www.w3.org/2001/XMLSchema#double">30</property:Cost>
		<property:Currency rdf:datatype="http://www.w3.org/2001/XMLSchema#string">EUR (€)</property:Currency>
		<property:Description rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Portique pour gérer une course de voitures radio-commandée: départ, mesure des performances, affichage.</property:Description>
		<property:Difficulty rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Difficile</property:Difficulty>
		<property:Duration rdf:datatype="http://www.w3.org/2001/XMLSchema#double">2</property:Duration>
		<property:Duration-2Dtype rdf:datatype="http://www.w3.org/2001/XMLSchema#string">jour(s)</property:Duration-2Dtype>
		<property:Introduction rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Faire des courses de voitures Radio-Commandée, c'est bien s'amuser entre amis. Mais faire des mesures fiables est difficile.
Le portique le fait pour vous: compte les tours de chaque voiture, son meilleur temps et son dernier tour de piste.
De quoi assurer l'ambiance !</property:Introduction>
		<property:Licences rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Attribution (CC BY)</property:Licences>
		<property:Material rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Voici les bestioles qu'il va falloir détecter !</property:Material>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Montage sans colle grâce aux extensions "tabbed box" de Inkscape.</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Bien plus tard...

maintenant que le résultat est fonctionnel, améliorer l'emballage.</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">La maquette.

Dans la version finale, chaque ligne est de la couleur de la voiture.</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">C'est une longue étape pour le mettre au point et choisir le bon algo.

Notre meilleur ami est la libairie OPENCV.

Le code complet est là: [https://gitlab.com/sylvaingiraud/racingcarsscore Code du projet sur Gitlab]

Il comprend:

* le site web
* le code python qui fait les calculs</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Les petits malins fond demi-tour sous le portique: pour éviter de compter 2 passages:
*  une tempo de 6,5 sec est ajoutée dans le code. 
* la page grise est relevée d' 1mm côté "sortie" afin d'empêcher de passer en sens inverse

Eviter la projection de l'ombre du portique sur la page grise, soit en masquant la lumière externe, soit en ajoutant plus de lumière sous le portique 

Parfois l'affichage se fige: faire un "refresh" (touche F5) de la page dans le navigateur

Autos:
* bien sélectionner des couleurs différentes bien distinctes: rouge, bleu foncé, vert, jaune
* éviter les couleurs "intermédiaires" et "aditions de couleurs" : rose, bleu turquoise, pas de noir, ni gris, ni blanc</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Avec une webcam.

Clairement, l'éclairage joue un rôle primordial.
Et gare à l'ennemi qui se cache dans l'ombre.

&lt;p&gt;
&lt;div class="icon-instructions-image"&gt;[[File:Icon-idea.jpg|link=]]&lt;/div&gt;
&lt;div class="icon-instructions-text"&gt;Une bande de LED RGB est ajoutée pour tenter de maitriser tout ça.&lt;/div&gt;
&lt;/p&gt;</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Détecter la couleur nécessite déjà de bien les équilibrer.

2 images: sans et avec la correction de l'éclairage.

En bas sont indiqués les valeurs RGB du cercle blanc.

&lt;p&gt;
&lt;div class="icon-instructions-image"&gt;[[File:Icon-idea.jpg|link=]]&lt;/div&gt;
&lt;div class="icon-instructions-text"&gt;Je révèle l'astuce: au lancement de la course, le logiciel "apprend" la couleur de chacune des voitures en course. Ce sont ces couleurs qu'il va ensuite cherche à détecter.&lt;/div&gt;
&lt;/p&gt;</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">&lt;p&gt;
&lt;div class="icon-instructions-image"&gt;[[File:Icon-idea.jpg|link=]]&lt;/div&gt;
&lt;div class="icon-instructions-text"&gt;Astuce: maîtriser la couleur de fond avec une feuille ni trop claire, ni trop sombre.&lt;/div&gt;
&lt;/p&gt;

Un gris moyen fait l'affaire. Grâce à lui, la caméra limitera ses réglages d'exposition.

(Surtout pas un cadrillage comme sur l'image!)</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">&lt;p&gt;
&lt;div class="icon-instructions-image"&gt;[[File:Pin-icon.jpg|link=]]&lt;/div&gt;
&lt;div class="icon-instructions-text"&gt;Super succès à chaque évènement!&lt;/div&gt;
&lt;/p&gt;</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">&lt;p&gt;
&lt;div class="icon-instructions-image"&gt;[[File:Icon-idea.jpg|link=]]&lt;/div&gt;
&lt;div class="icon-instructions-text"&gt;Quelques idées à réaliser&lt;/div&gt;
&lt;/p&gt;

Barrières du circuit:
* les peindre rayées en rouge et blanc
* ajouter des trous verticaux et des "agragfes" entre les barres pour éviter que les autos les déplacent

Code:
* refaire le site en Flask
* filtrer les passage à l'envers par analyse de l'image, ou par un simple "trig" et une tempo sur la detection (comptage lors de la fin de la détection seulement)
* ajouter des boutons start/stop sur le portique

Détection:
* Tester des tags RFID et un détecteur moyenne distance</property:Step_Content>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">1 essais</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">La couleur!</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Le code</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Découpe laser</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">On branche tout</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Big fun !</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Le portique</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Affichage des scores</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Instructions pour de meilleurs résultats</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Idées d'amélioration</property:Step_Title>
		<property:Tags rdf:datatype="http://www.w3.org/2001/XMLSchema#string">course</property:Tags>
		<property:Tags rdf:datatype="http://www.w3.org/2001/XMLSchema#string">radio-commandé</property:Tags>
		<property:Tags rdf:datatype="http://www.w3.org/2001/XMLSchema#string">remote</property:Tags>
		<property:Tags rdf:datatype="http://www.w3.org/2001/XMLSchema#string">cars</property:Tags>
		<property:Tags rdf:datatype="http://www.w3.org/2001/XMLSchema#string">racing</property:Tags>
		<property:Tags rdf:datatype="http://www.w3.org/2001/XMLSchema#string">score</property:Tags>
		<property:Tags rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Arduino</property:Tags>
		<property:Tags rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Projet-De-Groupe</property:Tags>
		<property:Type rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Technique</property:Type>
		<swivt:wikiPageModificationDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2025-12-21T14:12:54Z</swivt:wikiPageModificationDate>
		<property:Modification_date-23aux rdf:datatype="http://www.w3.org/2001/XMLSchema#double">2461031.0922917</property:Modification_date-23aux>
		<swivt:wikiPageSortKey rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Portique de course de voitures RC</swivt:wikiPageSortKey>
	</swivt:Subject>
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#creationDate" />
	<owl:Class rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Category-3ATutoriels" />
	<owl:ObjectProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#page" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiNamespace" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageContentLanguage" />
	<owl:ObjectProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3AArea" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3ACost" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3ACurrency" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3ADescription" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3ADifficulty" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3ADuration" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3ADuration-2Dtype" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3AIntroduction" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3ALicences" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3AMaterial" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3AStep_Content" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3AStep_Title" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3ATags" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3AType" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageModificationDate" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3AModification_date-23aux" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageSortKey" />
	<!-- Created by Semantic MediaWiki, https://www.semantic-mediawiki.org/ -->
</rdf:RDF>