You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -130,10 +130,14 @@ The following keyword arguments have default values:
130
130
131
131
### Initializing the camera
132
132
133
+
The camera initializes when constructing the camera object per default. If you set init=False during construction, you need to call the init method manually:
134
+
133
135
```python
134
136
cam.init()
135
137
```
136
138
139
+
Note that most of the camera seeting can only be set or aquired after initialization.
140
+
137
141
### Capture image
138
142
139
143
The general way of capturing an image is calling the `capture` method:
@@ -192,14 +196,14 @@ This gives you the possibility of creating an asynchronous application without u
192
196
Here are just a few examples:
193
197
194
198
```python
195
-
cam.set_quality(90)# The quality goes from 0% to 100%, meaning 100% is the highest but has probably no compression
196
-
camera.get_brightness()
197
-
camera.set_vflip(True)#Enable vertical flip
199
+
cam.quality =90# The quality goes from 0% to 100%, meaning 100% is the highest but has probably no compression
200
+
print("cam.brightness =", cam.brightness)
201
+
camera.vflip =True#Enable vertical flip
198
202
```
199
203
200
204
See autocompletions in Thonny in order to see the list of methods.
201
205
If you want more insights in the methods and what they actually do, you can find a very good documentation [here](https://docs.circuitpython.org/en/latest/shared-bindings/espcamera/index.html).
202
-
Note that each method requires a "get_" or "set_" prefix, depending on the desired action.
206
+
Note: "get_" and "set_" prefixed methods are deprecated.
0 commit comments