Official Raspberry Pi Camera Guide Raspberry Pi download
Official Raspberry Pi Camera Guide Raspberry Pi download
download
https://ebookbell.com/product/official-raspberry-pi-camera-guide-
raspberry-pi-11115238
The Official Raspberry Pi Camera Module Guide 2nd Edition Updated For
Picamera2 2nd Edition David Plowman Phil King Nate Contino Pj Evans
https://ebookbell.com/product/the-official-raspberry-pi-camera-module-
guide-2nd-edition-updated-for-picamera2-2nd-edition-david-plowman-
phil-king-nate-contino-pj-evans-83561216
https://ebookbell.com/product/the-official-raspberry-pi-beginners-
guide-2nd-edition-halfacree-22130462
https://ebookbell.com/product/the-official-raspberry-pi-
handbook-2022-wwwdbooksorg-38479684
https://ebookbell.com/product/the-official-raspberry-pi-projects-book-
volume-4-44646958
The Official Raspberry Pi Beginners Guide How To Use Your New Computer
4th Edition Gareth Halfacree
https://ebookbell.com/product/the-official-raspberry-pi-beginners-
guide-how-to-use-your-new-computer-4th-edition-gareth-
halfacree-12267990
https://ebookbell.com/product/the-official-raspberry-pi-
handbook-2021-lou-hattersley-49850518
https://ebookbell.com/product/the-official-raspberry-pi-beginners-
guide-5th-edition-gareth-halfacree-92648812
https://ebookbell.com/product/halfacre-g-official-raspberry-pi-
beginners-guide-3rd-edition-gareth-halfacree-11053020
https://ebookbell.com/product/get-started-with-micropython-on-
raspberry-pi-pico-the-official-raspberry-pi-pico-guide-2nd-edition-
gareth-halfacree-ben-everard-57829246
THE OFFICIAL RASPBERRY PI
CAMERA
GUIDE
3
First published in 2020 by Raspberry Pi Trading Ltd, Maurice Wilkes Building,
St. John's Innovation Park, Cowley Road, Cambridge, CB4 0DS
ISBN: 978-1-912047-52-9
Welcome to
The Official Raspberry
Pi Camera Guide
O
ne of the most popular add-ons for the Raspberry Pi, the official Camera Module –
or the new High Quality Camera – turns your favourite single-board computer into
a powerful digital camera. Launched back in 2013, the original Camera Module was
succeeded by the higher-spec v2 in April 2016. The High Quality Camera was launched in April
2020, offers Ultra HD image resolution, and enables you to attach any C- or CS-mount lens.
In this book we’ll show you how to get started with your Raspberry Pi camera, taking photos
and videos from the command line and writing Python programs to automate the process.
We’ll reveal how to create time-lapse and slow-motion videos, before moving on to exciting
projects including a Minecraft photo booth, wildlife camera trap, and smart door with video.
There are just so many things you can do with a Raspberry Pi camera!
5
Contents
Chapter 1: Getting started 008
Set up and connect your camera and start taking shots
7
Chapter 1
Getting started
Find out how to connect your High Quality Camera or
Camera Module, enable it, and take your first shots
I
n this chapter, we show you how to connect the High Quality Camera or Camera Module
to your Raspberry Pi using the supplied ribbon cable. We will then enable it in Raspbian,
before entering some commands in a Terminal window to start shooting photos and
video. Let’s get started…
6 mm CS-mount lens
A low-cost 6 mm lens is available for the
HQ Camera. This lens is suitable for basic
photography. It can also be used for macro
photography because it can focus objects at
very short distances.
04 Focus
First, lock the inner focus ring, labelled
‘NEAR FAR’, in position by tightening its
screw. Now hold the camera with the lens
facing away from you. Hold the outer two
rings of the lens and turn them both clockwise
until the image comes into focus – it’ll take
four or five whole turns. To adjust focus, turn
the outer two rings clockwise to focus on a
nearby object. Turn them anti-clockwise to
focus on a distant object. You may find you
need to adjust the aperture again after this.
16 mm C-mount lens
The 16 mm lens provides a higher-quality
image than the 6 mm lens. It has a narrow
angle of view which is more suited to
viewing distant objects.
01 Fitting the
C-CS adapter
Ensure the C-CS adapter that comes with the
HQ Camera is fitted to the 16 mm lens. The
lens is a C-mount device, so it has a longer
back focus than the 6 mm lens and therefore
requires the adapter.
04 Aperture
To adjust the aperture, hold the camera
with the lens facing away from you. Turn the
inner ring, closest to the camera, while holding
the camera steady. Turn clockwise to close the
aperture and reduce image brightness. Turn anti-
clockwise to open the aperture. When happy with
the light level, tighten the screw on the side of
the lens to lock the aperture into position.
05 Focus
To adjust focus, hold the camera with the
lens facing away from you. Turn the focus ring,
labelled ‘NEAR FAR’, anti-clockwise to focus
on a nearby object. Turn it clockwise to focus on
a distant object. You may find you need to adjust
the aperture again after this.
Figure 2
Figure 3
Terminal. A black window with green and blue writing in it will appear (Figure 4): this is the
Terminal, which allows you to access the command-line interface.
To take a test shot, type the following into the Terminal:
raspistill -o test.jpg
As soon as you hit the ENTER key, you’ll see a large picture of what the camera sees
appear on-screen (Figure 5). This is called the live preview and, unless you tell raspistill
otherwise, it will last for five seconds. After those five seconds are up, the camera will
capture a single still picture and save it in your home folder under the name test.jpg. If you
want to capture another, type the same command again – but make sure to change the
output file name, after the -o, or you’ll save over the top of your first picture.
The -t option changes the delay before the picture is taken, from the default five seconds
to whatever time you give it in milliseconds – in this case, you have a full 15 seconds to get
FULL-SIZE -- Medium-Size
All these thoughts hurry along with the force of habit, repelling
and stifling the historic spectacle which was going to lift itself into
full light and unroll itself before the mind. Set down the same man in
Pau: there he knows neither hotels, nor people, nor shops; his
imagination, out of its element, may run at random; no known
object will trip him up and make him fall into the cares of interest,
the passion of to-day; he enters into the past as a matter of course,
and walks there as if at home, at his ease. It was eight o’clock in the
morning; not a visitor at the castle, no one in the courts nor on the
terrace; I should not have been too much astonished at meeting the
Béarnais, “that lusty gallant, that very devil,” who was sharp enough
to get for himself the name of “the good king.”
His chateau is very irregular; it is only when seen from the valley
that any grace and harmony can be found in it. Above two rows of
pointed roofs and old houses, it stands out alone against the sky and
gazes upon the valley in the distance; two bell-turrets project from
the front toward the west; the oblong body follows, and two massive
brick towers close the line with their esplanades and battlements. It
is connected with the city by a narrow old bridge, by a broad
modern one with the park, and the foot of its terrace is bathed by a
dark but lovely stream. Near at hand, this arrangement disappears;
a fifth tower upon the north side deranges the symmetry.
FULL-SIZE -- Medium-Size
The great egg-shaped court is a mosaic of incongruous masonry;
above the porch, a wall of pebbles from the Gave, and of red bricks
crossed like a tapestry design; opposite, fixed to the wall, a row of
medallions in stone; upon the sides, doors of every form and age;
dormer windows, windows square, pointed, embattled, with stone
mullions garlanded with elaborate reliefs. This masquerade of styles
troubles the mind, yet not unpleasantly; it is unpretending and
artless; each century has built according to its own fancy, without
concerning itself about its neighbor.
FULL-SIZE -- Medium-Size
II.
She sang an old Bearnese song when she brought him into the
world. They say that the aged grandfather rubbed the lips of the
new-born child with a clove of garlic, poured into his mouth a few
drops of Jurançon wine, and carried him away in his dressing-gown.
FULL-SIZE -- Medium-Size
The child was born in the chamber which opens into the tower of
Mazères, on the south-west corner. “His grandfather took him away
from his father and mother, and would have this child brought up at
his door, reproaching his daughter and his son-in-law with having
lost several of their children through French luxuries. And, indeed,
he brought him up in the Bearnese manner, that is, bareheaded and
barefoot, often with no more nicety than is shown in the bringing up
of children among the peasantry. This odd resolution was successful,
and formed a body in which heat and cold, unmeasured toil and all
sorts of troubles were unable to produce any change, thus
apportioning his nourishment to his condition, as though God wished
at that time to prepare a sure remedy and a firm heart of steel
against the iron knots of our dire calamities.”
His mother, a warm and severe Calvinist, when he was fifteen
years old, led him through the Catholic army to la Rochelle, and
gave him to her followers as their general. At sixteen years old, at
the combat of Arnay-le-Duc, he led the first charge of cavalry. What
an education and what men! Their descendants were just now
passing in the streets, going to school to compose Latin verses and
recite the pastorals of Massillon.
Those old wars are the most poetic in French history; they were
made for pleasure rather than interest. It was a chase in which
adventures, dangers, emotions were found, in which men lived in
the sunlight, on horseback, amidst flashes of fire, and where the
body, as well as the soul, had its enjoyment and its exercise. Henry
carries it on as briskly as a dance, with a Gascon’s fire and a soldier’s
ardor, with abrupt sallies, and pursuing his point against the enemy
as with the ladies. This is no spectacle of great masses of well-
disciplined men, coming heavily into collision and falling by
thousands on the field, according to the rules of good tactics. The
king leaves Pau or Nérac with a little troop, picks up the neighboring
garrisons on his way, scales a fortress, intercepts a body of
arquebusiers as they pass, extricates himself pistol in hand from the
midst of a hostile troop, and returns to the feet of Mlle. de
Tignonville.
FULL-SIZE -- Medium-Size
They arrange their plan from day to day; nothing is done unless
unexpectedly and by chance. Enterprises are strokes of fortune.
Here is one which Sully had recounted by his secretary; I like to
listen to old words among old monuments, and to feel the mutual
fitness of objects and of style: "The king of Navarre formed the
design of seizing on the city of Eause, which, by good right, was his,
and where he had chance of fine fortune; for deeming that the
inhabitants, who had not been willing to receive a garrison, should
have respect for his person, who was their lord, he determined to
march all day long in order to enter in with few people, so as to
create no alarm, and, indeed, having taken only fifteen or sixteen of
you, gentlemen, who placed yourselves nearest to him, among
whom were you, with simple cuirasses under your hunting tunics,
two swords and two pistols, he surprised the gate of the city and
entered in before they of the guard were able to take up arms. But
one of these gave the alarm to him who was sentinel at the portal,
and he cut the cord in the slide of the portcullis, so that it fell
immediately almost on the croup of your horse and that of your
cousin, M. de Béthune the elder, and hindered the troop which was
coming up on the gallop from entering, so that the king and you
fifteen or sixteen alone remained shut up in this city, where all the
people, being armed, fell upon you in divers troops and at divers
times, while the tocsin rang furiously, and a cry of ‘Arm, arm!’ and
'Kill, Kill! resounded on all sides,—seeing which, the king of Navarre,
from the first troop which came up, some fifty strong, in part well, in
part ill armed, he, I say, marching, pistol in hand, straight at them,
called out to you: ‘Come now, my friends, my comrades; it is here
that you must show courage and resolution, for thereon depends our
safety; let each one then follow me and do as I do, and not fire until
the pistol touches.’ At the same time, hearing three or four cry out:
'Fire at that scarlet tunic, at that white plume, for it is the king of
Navarre,’ he charged on them so impetuously that, without firing
more than five or six times, they took fright and withdrew in several
troops. Others in like manner came against you three or four times;
but as soon as they saw that they were broken, they fired a few
times and turned away until, having rallied nearly two hundred
together, they forced you to gain a doorway, and two of you went up
to give a signal to the rest of the troop that the king was there, and
that the gate must be burst open, as the draw-bridge had not been
raised. Whereupon each one began working, and then several
among that populace who loved the king, and others who feared to
offend him, began raising a tumult in his favor; finally, after a few
arquebusades and pistol-shots from both sides, there arose such
dissension among them, some crying, ‘We must yield;’ others, ‘We
must defend ourselves;’ that the irresolution afforded means and
time for opening the gates, and for all the troops to present
themselves, at the head of whom the king placed himself, and saw
most of the peoples fleeing and the consuls with their chaperons
crying: ‘Sire, we are your subjects and your peculiar servants. Alas!
allow not the sacking of this city, which is yours, on account of the
madness of a few worthless fellows, who should be driven out. He
placed himself, I said, at the head to prevent pillage: thus there was
committed neither violence, nor disorder, nor any other punishment,
except that four, who had fired at the white plume, were hung, to
the joy of all the other inhabitants, who thought not that they should
be quiet on such ood terms."
FULL-SIZE -- Medium-Size
At Cahors he burst in the two gates with petard and axe, and
fought five days and five nights in the city, carrying house after
house. Are not these chivalric adventures and poetry in action? “So,
so, cavaliers,” cried the Catholics at Marmande; “a pistol-shot for
love of the mistress; for your court is too full of lovely ladies to know
any lack of them.” Henry escaped like a true paladin, and lost his
victory at Contras in order to carry to the beautiful Corisandre the
flags that he had taken. To act, to dare, to enjoy, to expend force
and trouble like a prodigal, to be given up to the present sensation,
be forever urged by passions forever lively, support and search the
extremes of all contrasts, that was the life of the sixteenth century.
Henry at Fontenay “worked in the trenches with pick and mattock.”
On his return there was nothing but feasting.
FULL-SIZE -- Medium-Size
FULL-SIZE -- Medium-Size
The little chapel has disappeared, I believe, since the castle and
the whole country were restored to the Catholic worship. Besides,
this treatment arose from humanity: Saint-Pont, at Macon, “afforded
the ladies, as they went out from the banquets that he gave, the
pleasure of seeing a certain number of prisoners leap off from the
bridge.” Such were these men, extreme in everything, in fanaticism,
in pleasure, in violence; never did the fountain of desires flow fuller
and deeper; never did more vigorous passions unfold themselves
with more of sap and greenness. Walking through these silent halls,
disturbed from time to time by fair invalids or pale young
consumptives who walk there, I fancied that enervation of the inner
nature came from the enervation of the bodies. We spend our time
within doors, taken up with discussions, reflections and reading; the
gentleness of manners removes dangers from us, and industrial
progress fatigues. They lived in the open air, ever following the
chase and in war. “Queen Catherine was very fond of riding, up to
the age of sixty and more, and of making great and active journeys,
even after she had often fallen, to the great injury of her body, for
she was several times so far hurt as to break her leg and wound her
head.” The rude exercises hardened their nerves; their warmer
blood, stirred by incessant peril, urged upon the brain impetuous
caprices; they made history, while we write it.
III.
FULL-SIZE -- Medium-Size
FULL-SIZE -- Medium-Size
IV.
To-day the sun shines. On my way to the Place Nationale, I
remarked a poor, half-ruined church, which had been turned into a
coachhouse; they have fastened upon it a carrier’s sign. The
arcades, in small gray stones, still round themselves with an elegant
boldness; beneath are stowed away carts and casks and pieces of
wood; here and there workmen were handling wheels. A broad ray
of light fell upon a pile of straw, and made the sombre corners seem
yet darker; the pictures that one meets with outweigh those one has
come to seek.
From the esplanade which is opposite, the whole valley and the
mountains beyond may be seen; this first sight of a southern sun, as
it breaks from the rainy mists, is admirable; a sheet of white light
stretches from one horizon to another without meeting a single
cloud. The heart expands in this immense space; the very air is
festal; the dazzled eyes close beneath the brightness which deluges
them and which runs over, radiated from the burning dome of
heaven. The current of the river sparkles like a girdle of jewels; the
chains of hills, yesterday veiled and damp, extend at their own
sweet will beneath the warming, penetrating rays, and mount range
upon range to spread out their green robe to the sun. In the
distance, the blue Pyrenees look like a bank of clouds; the air that
bathes them shapes them into aerial forms, vapory phantoms, the
farthest of which vanish in the canescent horizon—dim contours,
that might be taken for a fugitive sketch from the lightest of pencils.
FULL-SIZE -- Medium-Size
In the midst of the serrate chain the peak du Midi d’ Ossau lifts its
abrupt cone; at this distance, forms are softened, colors are
blended, the Pyrenees are only the graceful bordering of a smiling
landscape and of the magnificent sky. There is nothing imposing
about them nor severe; the beauty here is serene, and the pleasure
pure.
The statue of Henry IV., with an inscription in Latin and in patois,
is on the esplanade; the armor is finished so perfectly that it might
make an armorer jealous. But why does the king wear so sad an air?
His neck is ill at ease on his shoulders; his features are small and full
of care; he has lost his gayety, his spirit, his confidence in his
fortune, his proud bearing. His air is neither that of a great nor a
good man, nor of a man of intellect; his face is discontented, and
one would say that he was bored with Pau. I am not sure that he
was wrong: and yet the city passes for agreeable; the climate is very
mild, and invalids who fear the cold pass the winter in it. Balls are
given in the clubs; the English abound, and it is well known that in
the matter of cookery, of beds and inns, these people are the first
reformers in the universe.
They would have done well in reforming the vehicles: the rickety
little diligences of the country are drawn by gaunt jades which
descend the hills on a walk, and make stops in the ascent. All
encouragements of the whip are thrown away on their backs; you
could not bear them any grudge on that account, so piteous is their
appearance, with their ridgy backbones, hanging ears, and shrunken
bellies. The coachman rises on his seat, pulls the reins, waves his
arms, bawls and storms, clambers down and up again; his is a rude
calling, but he has a soul like his calling. His passengers are of small
consequence to him; he treats them as useful packages, a necessary
counterpoise over which he has rights. At the foot of a mountain,
the machine got its wheel into a ditch and tilted over; every one
leaped out after the manner of Panurge’s sheep.
FULL-SIZE -- Medium-Size
VI.
The harvests, pale in the north, here wave with a reflex of reddish
gold. A warmer sun makes the vigorous verdure shine more richly;
the stalks of maize spring from the earth like discharges of rockets,
and their strong, wrinkled leaves fall over in plumes; such burning
rays are needed to urge the sap through those gross fibres and gild
the massy spike.
FULL-SIZE -- Medium-Size
Toward Gan, the hills, over which undulates the road, draw nearer
together, and you travel on through little green valleys, planted with
ash and alder in clusters, according to the caprices of the slopes,
and with their feet bathed in living water; a pellucid stream borders
the road, with waters sombre and hurried under the cover of the
trees, and then, by fits and starts, brilliant and blue as the sky. Four
times in the course of a league it encounters a mill, leaps and foams,
then resumes its course, hurried and stealthy; during two leagues
we have its company, half hid among the trees that it nourishes, and
breathing the freshness it exhales. In these gorges, water is the
mother of all life and the nurse of all beauty.
FULL-SIZE -- Medium-Size
FULL-SIZE -- Medium-Size
CHAPTER III. EAUX BONNES.
I.
I
thought that here I should find the country; a village like a
hundred others, with long roofs of thatch or tiles, with crannied
walls and shaky doors, and in the courts a pell-mell of carts with
fagots, and tools, and domestic animals, in short, the whole
picturesque and charming unconstraint of country life. I find a Paris
street and the promenades of the Bois de Boulogne.
Never was country less countrified: you skirt a row of houses
drawn up in line, like a row of soldiers when carrying arms, all
pierced regularly with regular windows, decked with signs and
posters, bordered by a side-walk, and having the disagreeably
decent aspect of hotels garnis. These uniform buildings,
mathematical lines, this disciplined and formal architecture make a
laughable contrast with the green ridges that flank them. It seems
grotesque that a little warm water should have imported into these
mountain hollows civilization and the cuisine.
Welcome to our website – the perfect destination for book lovers and
knowledge seekers. We believe that every book holds a new world,
offering opportunities for learning, discovery, and personal growth.
That’s why we are dedicated to bringing you a diverse collection of
books, ranging from classic literature and specialized publications to
self-development guides and children's books.
ebookbell.com