IT

Photogrammetry and drones · 4 July 2018

Photogrammetry with the Spark

A comparative test of three drone surveys of the same quarry, to see whether you can do photogrammetry with the DJI Spark, the small drone that could be made harmless under the old Italian rules.

In this article I compare three aerial photogrammetric surveys of the same area, made with different drones, to see whether you can do photogrammetry with the Spark, the DJI drone that, suitably lightened, fell into the famous Italian category of the “trecentini” (the under-300-gram drones).

I processed surveys of a quarry made on the same day with a DJI Spark, a DJI Phantom 4 Pro and an iDRONI Venture Mapper.
I compared the data to assess, quantitatively, whether a small, compact drone like the DJI Spark can be used for photogrammetry with reliable results.
I came to the conclusion that you can do photogrammetry with the Spark.

In this article I’ll talk about a simple case study: an aggregates quarry that extends mainly horizontally.
I’ll write another (at least one more) to assess the Spark’s photogrammetric potential again on a more complex case: an almost vertical rock face.

I flew the Spark and the Phantom myself, while the Venture Mapper was flown by Gregorio Silvestro, an experienced pilot at iDRONI Service, a company I’d started a fruitful collaboration with on aerial photogrammetric surveys.

Under-300-gram and harmless drones

Under the Italian rules of the time, drones weighing less than 300 grams and declared harmless could be flown without an RPA pilot certificate.

You’ll find lots of drones on sale that weigh very little, and you can buy them cheaply even at the supermarket (I’m not joking!).
However, their flight performance (battery life and stability in the air) and their cameras (low resolution and small sensors) don’t make them suitable for photogrammetric work.

That’s true of many, but not all.

The DJI Spark was one of the first drones to pack good photographic quality and good flight performance into little space and weight.
If it wasn’t the first, it was certainly the most famous of the lot!

I don’t want to go into the regulations on “harmless drones weighing less than 300 grams”, because that isn’t the aim of this article.
I wrote a post on what you need to know to work with drones in Italy.
You’ll find it at this link, and it contains specific information on the ENAC/ENAV rules of the time to know and follow before sending a drone into the air and working with it.
Including the rules on the trecentini.

Being able to fly a drone without courses and exams for certificates (and paying the related costs) brought many people to these “little ones”.
Many wondered whether the Spark could be used for photogrammetry.
It could be an interesting resource to add to a professional’s toolkit, and it would need a fairly modest investment.

If you search online for “can you do photogrammetry with the Spark”, you’ll find some content supporting this possibility.
And if you delve into the specialist forums, opinions differ: some say yes and some say no.

I’d had a Spark for a year, lightened, declared harmless, registered and insured.
I’d never used it for a commissioned photogrammetric survey.
For every job I’d been given, I’d always used the Phantom 4 Pro.

At last I was able to run a thorough, comparative field test to explore its potential in photogrammetric applications.
The results are very interesting, and I’m glad to share them with you.

A comparative analysis

I chose to do a comparative analysis to assess the results of a survey made (also) with the Spark, processing the photos taken by three different drones in the same area and under the same (almost!) conditions.
That way I could assess other important aspects besides the reliability of the survey: the density of the point clouds (sparse and dense), the characteristics of the mesh and the quality of the texture, the resolution of the DEM (Digital Elevation Model) and the detail of the orthophoto.

Spark, Phantom and Venture Mapper

Below are the characteristics of the camera sensors on board the drones that flew.

The DJI Spark drone in flightThe DJI Spark:
has a 1/2.3″ 12-megapixel CMOS sensor;
its built-in lens has a 25 mm equivalent focal length (35 mm format) with a fixed f/2.6 aperture;
it takes JPG images of 3968×2976 pixels (4:3 aspect ratio);
each sensor pixel measures 1.5 x 1.5 µm.

Photo of the DJI Phantom 4 drone in flightThe DJI Phantom 4 Pro:
has a 1″ 20-megapixel CMOS sensor;
its lens has a 24 mm equivalent focal length and the aperture can vary from f/2.8 to f/11;
I took 3:2 JPG photos of 5472×3648 pixels (although it can also shoot RAW);
its pixels are 2.4 µm squares.

An iDRONI Venture Mapper drone in flight with a Sony QX1The Venture Mapper carries a Sony QX1:
which has a 20-megapixel APS-C sensor;
it has a fixed 16 mm lens, whose field of view corresponds to about 24 mm in 35 mm equivalent;
it took JPG images of 5456×3632 pixels, a 3:2 ratio (but it too shoots RAW);
the pixel size is 4.4 x 4.4 µm;
in the configuration we used, the camera is mounted in the nadir position and isn’t connected to any stabilising gimbal.

The area of operations

I ran the tests during an aerial photogrammetric survey of an aggregates quarry west of Milan.
Together with Gregorio Silvestro (pilot) and Luigi Contin (RPAS pilot and instructor, and accountable manager of iDRONI), of iDRONI Service, we surveyed the area flying the Venture Mapper on missions programmed with ArduPilot’s Mission Planner.
At the end of those activities I flew first the Spark and then the Phantom 4 Pro to photograph a small part of the whole surveyed area.

Aerial image of the aggregates quarry surveyed with aerial photogrammetry

A quarry like this lends itself well to surveying with a drone and photogrammetric techniques: it has little vegetation and is more extensive than it is high.
I chose to run the tests on only part of the whole area.
In the photo above, the test area is at the bottom left; it measures just over half a hectare, has little vegetation and some height difference (about ten metres).
You can see a close-up below.

Aerial image of the part of the quarry surveyed with the DJI Spark

The law is (almost) the same for all

In a comparative analysis, each experiment should be run under the same boundary conditions, to assess the results as objectively as possible.
I tried to do that here too, although I cut corners on some things.
I tried to fit in around the operations of the Venture Mapper, which was there for work.
Forgive the lack of rigour in the method!
Take all this as a sharing of experience; it really isn’t a scientific article.
The reviewers of a scientific journal would have sent it back to me at the third line!
🙂

Here’s a summary of the boundary conditions I used.

Nadir shots

The photos taken by the Venture Mapper were nadir (camera pointing down), and the photos with both the Phantom and the Spark were taken the same way.
In reality the Spark can’t take perfectly nadir photos.
The camera tilt, i.e. the pitch angle, stops at 85°.
So it’s 5° short of the Phantom and the Sony QX1 on the Venture Mapper, both nadir at 90°.

Had I had to deliver a survey of this area for a client, I’d also have taken photos with the camera tilted (20°–30° from the horizontal), capturing (more or less) front-on the excavation faces and the more vertical elements.
It helps the data processing in structure from motion software.

Flight missions

The Venture Mapper flew programmed missions to ensure a constant forward overlap and side overlap between frames of 80%.

Camera positions during an automatic flight mission of the Venture Mapper in an aerial photogrammetric survey

The DJI Spark couldn’t fly a programmed mission.
Or rather, it couldn’t when the survey was done (May 2018).
Or, more precisely, it couldn’t at the time of the survey with an Android control device (smartphone) connected to the controller.

On iOS, the Map Pilot app could be used to program an automatic flight mission with the Spark.
It should have worked.
Just as I was writing this post, news came out that DJI had unlocked automatic flight for the Spark, and I expected that all the best-known drone flight control apps would soon allow programmed missions with it (Pix4Dcapture, DroneDeploy, Litchi, Altizure, …).

Something would change, but in short, I flew the Spark manually, taking photos by hand and judging the overlap between photos directly on the smartphone screen in the DJI GO 4 app.
For each shot I stopped the drone in a hover to avoid possible motion blur or loss of focus.

Camera positions during a manual flight of the DJI Spark in an aerial photogrammetric survey

And I did the same with the Phantom 4 Pro (worrying a bit less about stopping it for each shot, because its camera has a mechanical shutter).
Not because it was better (it wasn’t!), but because I wanted to get a bit closer to the operations with the Spark.

Below you can see a comparison of the camera positions in the three drones’ flights.
It’s clear how we go from the order of the Venture Mapper to the greater confusion of the route I tried to make the Spark follow.
And the Phantom is in between!
The colours relate the photographed areas to the number of photos each area appears in.
In all three cases, the survey area was amply and sufficiently covered by the photos.

Comparison of camera positions during the three flights with different drones

Had I done things properly, and had this been a commissioned job, I’d have flown with the “double grid” approach: a first acquisition with strips in one direction and then a second with strips perpendicular to the first (with a lighter forward overlap between consecutive frames, around 60%).

GSD and flight height

The GSD (Ground Sampling Distance) is a very important parameter in photogrammetry.
In aerial photogrammetry it defines the ground resolution of each image.
The smaller the GSD, the more detailed the image.

I’ve written articles on GSD too.
So I won’t go into more explanations and will refer you to these posts: aerial photogrammetry on sloping ground and Ground Sampling Distance.

The Venture Mapper flew at about 100 m above the ground, for a GSD of 3 cm/pixel.
It had to fly high to cover the whole survey area with a reasonable number of images.

I flew the Spark and the Phantom 4 Pro at heights giving a theoretical GSD of 1.6–1.7 cm/pixel.

The Spark flew at about 40 m above the ground.
The Phantom took photos at about 60 m above the ground.

I flew both the Spark and the Phantom varying the height above the ground to follow the changes in terrain height.
While surveying the ground control points with GNSS, I checked the height differences between the various levels of the survey area and changed the flight heights accordingly, helped by the telemetry I read in the flight control app connected to the controller (DJI GO 4 on a Samsung Galaxy S8 for the Spark and Litchi on a Samsung Galaxy Tab S2 for the Phantom).

Below are the camera positions of the Phantom flight.

Camera positions during a manual flight of the DJI Phantom 4 Pro in an aerial photogrammetric survey

How many photos and what format

All the photos taken by the drones were in JPG format.

I’m a fan of RAW files (I wrote an article on retouching RAW photos before photogrammetric processing, which you’ll find at this link), but for this test I shot JPG.
The Spark doesn’t let you shoot RAW.

For the area covered by the photogrammetric surveys:
the Sony QX1 on the Venture Mapper took 31 photos to cover about 5 hectares (much more than the comparative test area!);
the Phantom 4 Pro covered just under 2 hectares with 64 images;
the Spark took 79 images for one hectare.

Surveying the control points

The ground control points of the photogrammetric survey are the only boundary condition that was truly identical in the three surveys with the different drones.
They’re the same for all the processing!

I laid out plenty of artificial targets, in soft 80×80 cm PVC (the ones I had made, which you can download at this link) and rigid 60×60 cm ones, and surveyed their positions with a GNSS antenna in NRTK mode, using the fixed stations of the Italpos network with real-time corrections.

Compared with the points laid out for the whole quarry survey, I increased the density in the test area.

The average precision of the measurements was about 3 cm.

I converted the coordinates of the measured points from the acquisition system to the ETRF2000 (2008.0) – RDN2008 – UTM zone 32N map system (EPSG 6707) using the free software Convergo.
ETRF2000 was the reference system I chose for the photogrammetric processing with Structure from Motion (SfM) software, which I’ll tell you about now.

SfM processing

After the fieldwork I created 3 new projects in Agisoft PhotoScan, feeding it the photos from each drone and the measurements to derive the 3D models.

Below are the main processing settings I kept the same from one project to another.

  • Image alignment: High mode, without using the GPS information in each image’s metadata;
  • Optimisation of the camera parameters based on 7 ground control points;
  • Dense point cloud: High quality and Aggressive filtering;
  • Mesh generation: High quality, Arbitrary surface type;
  • Texture: Generic mapping mode, Mosaic blending mode, texture size 16 x 2048 x 2048 pixels;
  • DEM and orthomosaic generated from the 3D mesh.

GCPs and CPs

Of all the points surveyed on the ground, I chose to use a limited number.
That kept the processing time down (confirming the position of every marker on every photo of every dataset would have taken quite a while) and left me other points, clearly visible on the model, to assess the coordinates delivered by the various processing runs and check them against their actual surveyed positions.

I entered the coordinates of 10 control points in the software: 7 GCPs, Ground Control Points (1 to 7), to orient and georeference the model, and 3 CPs, Check Points (8 to 10), to check the overall accuracy.
You can see their layout in plan in the image below.

The layout of 7 GCPs and 3 CPs on an orthophoto for a photogrammetric survey in PhotoScan

Analysis of the results

After the SfM processing in PhotoScan I exported some results, and now I’ll tell you what I found.

Sparse cloud and matching points

All three cases generated a similar number of tie points (matching points) between images during alignment.
With the Spark I got 25,500 points.
With the Phantom 22,400.
And with the Venture 20,800.

These points make up the sparse point cloud.

The area covered by the Spark survey is a little smaller than that covered by the Phantom, which is smaller still than the Venture’s.
So, relative to the area, the Spark gave more points than the Phantom and the Venture.
I think this is because manual flight and taking photos by hand generally lead to more images than a programmed mission.
And more images help the search for common points between them, increasing the number of matching points.

Dense point cloud

The dense point cloud is the “star” product of a photogrammetric survey.
It’s made of points very close together, whose coordinates and colour are known.
The point cloud is georeferenced.

It contains everything needed to extract the other products of a survey (digital elevation models, orthophotos, heights, sections and contour lines, …) and everything the client needs to get the information according to their own specific sensitivity (which differs from the surveyor’s) and needs.

It’s from analysing the dense point cloud that I get most of the evidence to judge how good and fit for purpose the surveys are.

Point density

The point cloud generated by processing the photos from the Sony QX1 on the Venture Mapper has 19,000,000 points.
The one from the Phantom 4 Pro photos has 21,000,000.
And the Spark’s 15,000,000.

But, as with the sparse cloud points, the dense cloud has to be related to a specific area, because the Spark’s is much smaller than the Venture Mapper’s, as you can see in the images below (first: Venture Mapper, second: Phantom, third: Spark).

The point cloud from processing the photos of the Sony QX1 on the Venture Mapper
The point cloud from processing the photos of the DJI Phantom 4 Pro camera
The point cloud from processing the photos of the DJI Spark camera

I took the three point clouds into CloudCompare (a very good open source program for handling point clouds) and cropped all three with a common polyline acting as the boundary.
With the area fixed, about 3,000 m², comparing the clouds gives a better assessment of point density.
Here it is below!

The boundary of the check area used to assess the density of the dense point clouds

In this area, the dense cloud from the Venture Mapper survey has 1,300,000 points, which means just over 400 points per square metre.
The Phantom 4 Pro produced, for the same area, a dense cloud of 3,500,000 points, which corresponds to 1,100 points per square metre.
And finally, processing the Spark data generated, for this same piece of land, 4,500,000 points, which gives 1,500 points per square metre!

Before comparing the cloud densities, I filtered them in CloudCompare with the Remove Duplicate Points function, which removes points closer to each other than a certain threshold.
I chose to remove points closer than 1 mm to each other.

It’s really interesting to see that the dense cloud generated by the Spark is the densest of all.

This is how I explain it:

  • The Venture Mapper’s design GSD is almost double that of the Phantom and Spark.
  • The overlap of the photos taken with the Phantom and Spark is greater than with the Venture Mapper.
    Redundancy pays! 🙂
  • The Phantom and Spark flights followed the terrain height, so the GSD is constant in each sector.
    Given the size of the whole surveyed area, the Venture flew at a constant height, which means lower ground resolution in the lower areas further from the camera. For the purposes of the overall survey this was of little importance.
  • Some photos taken by the Venture are out of focus at the edges of the frame.
    In the overall survey this caused no problems for the general results, but in this specific case, given also the few photos covering the whole test area, the ground resolution suffered a little.
  • The photos taken by the Spark were automatically edited by its processor, with increased contrast.
    The Phantom 4 Pro, on the other hand, shot images with a “flat” profile (which is what I use for video), and the lack of contrast may have led the software to recognise fewer points for the dense cloud (I normally shoot RAW and then optimise the images for processing, which I didn’t do in this test).

In any case, I’d say that in all three cases there’s enough ground information for a 3D representation of the land!

Accuracy of the models

And here we are at precision, or rather accuracy.
Precision is a concept tied to repeated measurements.
The accuracy of a survey, on the other hand, indicates how close a delivered point is to its real surveyed position.

Accuracy is measured with an analysis of the root mean square errors of the coordinates of some points, the CPs (Check Points) or QCPs (Quality Control Points), generated in the 3D modelling process, compared with the coordinates measured in the field.
I used 3 check points for each model of each flight.
That’s a bit few, I know.
I normally use more, 7–10 depending on how complex the area is.

Anyway, based on these points I got these accuracies:
Venture Mapper: 4.5 cm
DJI Phantom 4 Pro: 7.0 cm
DJI Spark: 5.5 cm

All the values fall within a confidence limit for surveys with photogrammetric techniques (also in relation to the GSD values and the precision of the control point measurements), which is 10 cm.
An accuracy of 7 cm is a sound average value for photogrammetry (except in specific cases).

The accuracy of the survey made with the Spark is very interesting!

Comparing models and real coordinates

All the other targets I laid on the ground, which you can see in the point clouds, are excellent for further analyses and assessments of the accuracy of the delivered models.
You can compare the coordinates of a target in one model with the coordinates of the same target in the other models.

Below are three screenshots where I measured a point on the model generated by the Venture Mapper, then on the one from the Phantom photos and finally on the Spark’s.
The field-surveyed coordinates of this target (converted to plane coordinates) are: Easting 494301.04; Northing 5041071.87; Height 166.28.

The differences from model to model and from model to surveyed data are under 5 cm.

Querying the coordinates of a point in the dense cloud generated by the Spark Querying the coordinates of a point in the dense cloud generated by the Phantom 4 Pro Querying the coordinates of a point in the dense cloud generated by the Venture Mapper

For reference, here are the coordinates of about ten targets, which you can see in plan in the image below.

ID EASTING [m] NORTHING [m] HEIGHT [m a.s.l.]
1 494,330.24 5,041,077.74 166.18
2 494,346.19 5,041,064.92 166.47
3 494,333.73 5,041,051.17 164.18
5 494,291.65 5,041,066.16 161.17
6 494,298.81 5,041,047.66 160.06
7 494,319.13 5,041,051.09 158.68
8 494,328.64 5,041,042.68 159.19
9 494,307.08 5,041,035.89 156.02

The layout of the ground check points on the orthophoto

Mesh, texture and 3D model

After the point cloud I move on to mesh, texture and 3D model.
From a surveying point of view these are a little less relevant than the dense point cloud or a digital elevation model (which I’ll talk about later), but I’ll cover them anyway.
Quickly!

Mesh

The 3D mesh of the model made with the Spark photos has 2,900,000 triangular faces.
The one made with the Phantom has 4,300,000.
And the one made with the Venture’s Sony QX1 has 3,900,000.

These numbers aren’t related to a specific area (as I did for the dense cloud) but cover the whole area flown by each drone.

I won’t do an in-depth analysis, but I’ll just note that the mesh of the model made with the Spark is decidedly solid!

The 3D triangle mesh from photogrammetric processing of the photos taken with the DJI Spark

Texture and 3D model

Texture generation is very closely tied to the quality of the photographs.
The photos taken by the Venture Mapper pay for its double GSD and a little for the poor sharpness at the edges of some of them, while the models generated by the Spark and Phantom have a sufficiently defined texture.

I uploaded the textured models to Sketchfab.
They’re models of the whole area covered by each drone.
I suggest comparing the texture only in the area common to all three surveys, the one surveyed by the Spark.

TEST-CAVA-SONYQX1
TEST-CAVA-PH4
TEST-CAVA-SPARK

DEM and orthophoto

With the DEM and the orthophoto I’m back in the territory of products that matter for a topographic survey.
There aren’t many considerations to make on these 2D products, and they follow closely those on the point clouds.
I’ll show you some comparisons!

DEM – Digital Elevation Models

I should say up front that what I’m about to show you are DSMs (Digital Surface Models): they describe the surface seen from above and modelled in the photogrammetric processing (including vegetation, cars and plant).
I didn’t clean or classify the point clouds to generate a DTM (Digital Terrain Model).
If you want to go deeper into the differences between DTM and DSM, there’s an article at this link.

The DSM made with the Venture Mapper photos has a resolution of 5.5 cm/pixel.
The one made with the Phantom photos has a resolution of 3.3 cm/pixel.
And the Spark’s goes down to 3.0 cm/pixel.

Considering that a very good grid size for a digital terrain model available online from regional or national mapping portals is 80 cm/pixel, I’d say the result is excellent!

Here are the three DSMs, in order.

DEM generated from the Sony QX1 images on the Venture Mapper

DEM generated from the Phantom 4 images

DEM generated from the Spark images

Orthophoto

And to finish the analysis of the results, here are the orthophotos generated from the three models, first in full and then compared in a close-up at 100% of their size.
The order is always the same:
1 – Sony QX1 on Venture Mapper;
2 – DJI Phantom 4 Pro;
3 – DJI Spark.

The detail of the orthophoto from the Spark survey isn’t bad at all!

Orthophoto generated from the Sony QX1 images on the Venture Mapper

Orthophoto generated from the Phantom 4 Pro images

Orthophoto generated from the Spark images

Orthophoto generated from the Sony QX1 images on the Venture Mapper, 100% detail

Orthophoto generated from the Phantom 4 Pro images, 100% detail

Orthophoto generated from the Spark images, 100% detail

Conclusions

OK, it’s time for conclusions.
And given the subject of the article, they concern the concrete possibility of doing photogrammetry with the Spark!
I’ll list them in no particular order of importance, just as they come to me.

  • To the question “Can you do photogrammetry with the Spark?”, I answer “Yes”.
  • To the question “Can you do photogrammetry with the Spark anywhere?”, I’d say “Better not”.
  • The results of the aerial photogrammetric survey with the Spark are solid and robust in terms of the accuracy of the delivered data, the density of ground points and the resolution of the raster outputs.
    And that wasn’t a given.
  • If you use the Spark for photogrammetry, you have to fly lower than with other drones to get the same GSD.
    Lower heights mean more photos.
    For one hectare of ground, the Venture Mapper took 10 photos, the Phantom 30 and the Spark 80.
    It’s true that a programmed mission would allow fewer photos, but I think you’d hardly go below 60.
    Lots of photos mean longer processing times and more storage space on your hard disks.
    Although we often impose limits that exist only in our heads, I can reasonably say that I wouldn’t use the Spark to survey large areas.
  • With the Spark it will be quite hard to fly at the limits allowed by the rules.
    Personally I never took it to 150 m above the ground.
    It’s a small drone, and even though it flies very well, it’s easy to lose visual contact between pilot and drone and break the compulsory VLOS (Visual Line of Sight) conditions.
    What’s more, its controller-to-drone link and video downlink have some weaknesses, and it’s inadvisable to send it far away or fly it in areas with high electromagnetic interference.
  • A Spark battery has a nominal life of about 15 minutes.
    In practice you have 10 minutes of flight.
    That isn’t much, and you’ll need plenty of spare batteries to cover large areas.
  • I haven’t said it before, but I always flew the Spark with the remote controller.
    Direct control from a smartphone or tablet is hardly worth considering for photogrammetric work.
    It’s too flimsy!
  • Under the Italian rules of the time, using a harmless drone weighing less than 300 grams let you fly without a pilot certificate (as I’ve already said) but above all made every operating scenario non-critical.
    This meant you could use the Spark, made harmless, to survey an urban area without making people stay indoors, or near a road without stopping the traffic.
    A big advantage compared with the procedures needed with a heavier drone in a critical operation.
    I think the Spark was very interesting for architectural and urban building surveys, roads, construction sites and work areas…
    But watch out for no-fly zones, because you have to respect them all!
  • The Spark is really small and easy to carry.
    Lightness and a tiny footprint could be crucial for surveys in particular areas.

I’ll end this long article by saying that the tests I’ve done so far say that you can do photogrammetry with the Spark!
But without ever forgetting to measure the control points and all the rigour surveying requires.

I hope I’ve given you some interesting ideas or content.
In another case study I’ll bring you a different example, where I tried it on an almost vertical rock face that needed photos at different angles (not just nadir ones, as in this quarry).

For doubts, questions or further thoughts, get in touch: on Telegram, @paolocorradeghini, or from the contact page.

Thanks so much for your time and for reading this far!
Even if you skipped some bits!
🙂

See you soon!

Paolo Corradeghini

← All articles