<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://airwiki.deib.polimi.it/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=MatteoCarcano</id>
		<title>AIRWiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://airwiki.deib.polimi.it/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=MatteoCarcano"/>
		<link rel="alternate" type="text/html" href="https://airwiki.deib.polimi.it/index.php/Special:Contributions/MatteoCarcano"/>
		<updated>2026-04-04T17:32:32Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.25.6</generator>

	<entry>
		<id>https://airwiki.deib.polimi.it/index.php?title=Analyzing_Traffic_Speed_From_a_Single_Night_Image_-_Light_Streaks_Detection&amp;diff=3661</id>
		<title>Analyzing Traffic Speed From a Single Night Image - Light Streaks Detection</title>
		<link rel="alternate" type="text/html" href="https://airwiki.deib.polimi.it/index.php?title=Analyzing_Traffic_Speed_From_a_Single_Night_Image_-_Light_Streaks_Detection&amp;diff=3661"/>
				<updated>2008-06-23T14:00:27Z</updated>
		
		<summary type="html">&lt;p&gt;MatteoCarcano: /* Documentation and Implementation files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Part 1: project profile''' ==&lt;br /&gt;
&lt;br /&gt;
=== Project name ===&lt;br /&gt;
&lt;br /&gt;
Analyzing Traffic Speed From a Single Night Image - Light Streaks Detection&lt;br /&gt;
&lt;br /&gt;
=== Project short description ===&lt;br /&gt;
&lt;br /&gt;
When you shot a night photo of a road, you will notice that car’s lights are often the most relevant thing of the photo. Then, if you use a longer exposure time, lights will leave amazing streaks or “trails” in the image, which are really the image of the car’s lights trajectory during the exposure. So, starting from a photo of a street, possibly busy, the aim is that of trying to compute the approximate speed of every car that is running along the road.&lt;br /&gt;
&lt;br /&gt;
[[Image:Nightshot.jpg|center|thumb|An example of a long exposure photo.|500px]]&lt;br /&gt;
&lt;br /&gt;
=== Dates ===&lt;br /&gt;
Start date: 2008/04/28&lt;br /&gt;
&lt;br /&gt;
End date: 2008/06/16&lt;br /&gt;
&lt;br /&gt;
=== People involved ===&lt;br /&gt;
&lt;br /&gt;
===== Project Advisor(s) =====&lt;br /&gt;
&lt;br /&gt;
Alessandro Giusti - [[User:AlessandroGiusti]]&lt;br /&gt;
&lt;br /&gt;
Giacomo Boracchi - [[User:GiacomoBoracchi]]&lt;br /&gt;
&lt;br /&gt;
===== Students currently working on the project =====&lt;br /&gt;
&lt;br /&gt;
Matteo Albinola - [[User:MatteoAlbinola]] - as a project for the course Image Analysis and Synthesis, prof. Caglioti&lt;br /&gt;
&lt;br /&gt;
Matteo Carcano - [[User:MatteoCarcano]] - as a project for the course Image Analysis and Synthesis, prof. Caglioti&lt;br /&gt;
&lt;br /&gt;
===== Students who worked on the project in the past =====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== '''Part 2: project description''' ==&lt;br /&gt;
&lt;br /&gt;
=== The Problem ===&lt;br /&gt;
&lt;br /&gt;
The problem is to find a method in orderd to approximatively estimate the speed of every car, starting from their light streaks left in a long exposure photo.&lt;br /&gt;
&lt;br /&gt;
=== Preliminary Studies and Sketches ===&lt;br /&gt;
&lt;br /&gt;
The first part of this work is centered on a preliminary analysis of this scenario that allowed to define a very important set of assumptions on the features that a night long esposure photo must satisfy, and also a set of constraints related to the environment.&lt;br /&gt;
Then, a deeper analysis shows a possible problem decomposition into three sub problems:&lt;br /&gt;
&lt;br /&gt;
* Identification of all light streaks left by the car&lt;br /&gt;
* Approximative estimation of the speed&lt;br /&gt;
* Clustering compatible streaks in order to identify cars that are really lying on the road&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
&lt;br /&gt;
The solution merges different techniques from image analysis and others from image geometry.&lt;br /&gt;
&lt;br /&gt;
The first sub problem is treated using two different approaches, one based on a technique for estimating the blur extent (very similar to a long streak), and consequently streak’s extremes, with the application of autocorrelation function (ACF) and the other that try to reach same results but using the Hough transform.&lt;br /&gt;
Last two sub problems are solved instead with knowledge about image geometry, so working on relations between lines, angles and cross-ratios (alternatively homography).&lt;br /&gt;
&lt;br /&gt;
=== Description and Results of Experiments ===&lt;br /&gt;
&lt;br /&gt;
There are two different categories of images belonging to dataset:&lt;br /&gt;
&lt;br /&gt;
* Photo of cars with known speed&lt;br /&gt;
* Photo of cars with unknown speed (traffic photos)&lt;br /&gt;
&lt;br /&gt;
The first category is mainly used to test quality and robustness of the speed estimation.&lt;br /&gt;
This is an example result:&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|  [[Image:Test1(nightshot).jpg|center|thumb|An example of photo with a known car speed (Car speed: 37Km/h, Exposure time: 2s)|370px]]    ||   &lt;br /&gt;
   [[Image:Test1(clustering).jpg|center|thumb|Result of car speed estimation (Estimated speed: 38.56Km/h, Car speed: 37Km/h, Exposure time: 2s)|370px]] &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The second category is especially used to test the quality of the streaks detection and car clustering on a busy road.&lt;br /&gt;
This is an example result:&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|  [[Image:Test2(nightshot).jpg|center|thumb|An example of photo with an unknown car speed (Exposure time: 1s)|370px]]    ||   &lt;br /&gt;
   [[Image:Test2(clustering).jpg|center|thumb|Result of car detection and clustering (Exposure time: 1s)|370px]] &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Main problems revealed by the testing are:&lt;br /&gt;
&lt;br /&gt;
* Overestimation of cars speed&lt;br /&gt;
* Wrong car detection for non parallel streaks trajectories&lt;br /&gt;
&lt;br /&gt;
From the experimental results, we notice also a set of important things that must be taken into account:&lt;br /&gt;
&lt;br /&gt;
* Photo quality - the background of the photo must be dark exept in correspondence of the light streaks&lt;br /&gt;
* Exposure time - important is to find the right tradeoff between a shorter and longer time&lt;br /&gt;
&lt;br /&gt;
=== Documentation and Implementation files ===&lt;br /&gt;
&lt;br /&gt;
* [[Media:Analyzing_Traffic_Speed_From_a_Single_Night_Image.pdf | Project Documentation (in italian with english abstract)]]&lt;br /&gt;
* [[Media:SourceCode(reduced).zip | MatLab Source Code (with reduced dataset)]]&lt;br /&gt;
* [http://home.dei.polimi.it/giusti/var/Traffic%20Speed%20from%20Light%20Streaks%20code%20and%20images.zip MatLab Source Code (with full dataset)]&lt;/div&gt;</summary>
		<author><name>MatteoCarcano</name></author>	</entry>

	</feed>