three.MF.V3.Settings.CaptureImage
1from enum import Enum 2from typing import List 3 4 5class CaptureImage: 6 7 """ 8 Capture image settings. 9 """ 10 class Codec(Enum): 11 12 """ 13 Image codecs. 14 """ 15 jpg = "jpg" # JPEG encoding. 16 png = "png" # PNG encoding. 17 bmp = "bmp" # Bitmap encoding. 18 raw = "raw" # Raw pixel data (no encoding). 19 20 def __init__(self, selection: List[int] = None, codec: 'Codec' = None, grayscale: bool = None): 21 # Camera selection. Default is all cameras. 22 self.selection = selection 23 # Image codec. Default is jpg. 24 self.codec = codec 25 # Capture 8-bit grayscale image. Default is false (BGR888). 26 self.grayscale = grayscale
class
CaptureImage:
6class CaptureImage: 7 8 """ 9 Capture image settings. 10 """ 11 class Codec(Enum): 12 13 """ 14 Image codecs. 15 """ 16 jpg = "jpg" # JPEG encoding. 17 png = "png" # PNG encoding. 18 bmp = "bmp" # Bitmap encoding. 19 raw = "raw" # Raw pixel data (no encoding). 20 21 def __init__(self, selection: List[int] = None, codec: 'Codec' = None, grayscale: bool = None): 22 # Camera selection. Default is all cameras. 23 self.selection = selection 24 # Image codec. Default is jpg. 25 self.codec = codec 26 # Capture 8-bit grayscale image. Default is false (BGR888). 27 self.grayscale = grayscale
Capture image settings.
CaptureImage( selection: List[int] = None, codec: CaptureImage.Codec = None, grayscale: bool = None)
21 def __init__(self, selection: List[int] = None, codec: 'Codec' = None, grayscale: bool = None): 22 # Camera selection. Default is all cameras. 23 self.selection = selection 24 # Image codec. Default is jpg. 25 self.codec = codec 26 # Capture 8-bit grayscale image. Default is false (BGR888). 27 self.grayscale = grayscale
class
CaptureImage.Codec(enum.Enum):
11 class Codec(Enum): 12 13 """ 14 Image codecs. 15 """ 16 jpg = "jpg" # JPEG encoding. 17 png = "png" # PNG encoding. 18 bmp = "bmp" # Bitmap encoding. 19 raw = "raw" # Raw pixel data (no encoding).
Image codecs.