MCPcopy
hub / github.com/makelove/OpenCV-Python-Tutorial / id_generator

Function id_generator

ch05-视频/VideoCaptureOnePicture.py:16–17  ·  view source on GitHub ↗
(size=6, chars=string.ascii_uppercase + string.digits)

Source from the content-addressed store, hash-verified

14
15
16def id_generator(size=6, chars=string.ascii_uppercase + string.digits):
17 return ''.join(random.choice(chars) for _ in range(size))
18
19
20cap = cv2.VideoCapture(0)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected