MCPcopy Index your code
hub / github.com/pyscript/pyscript / camera_click

Function camera_click

core/tests/manual/camera.py:26–28  ·  view source on GitHub ↗

Take a picture and download it.

(e)

Source from the content-addressed store, hash-verified

24
25@when("click", "#snap")
26async def camera_click(e):
27 """Take a picture and download it."""
28 video.snap().download()
29
30
31await list_media_devices()

Callers

nothing calls this directly

Calls 2

downloadMethod · 0.80
snapMethod · 0.80

Tested by

no test coverage detected