import base64
import json
from pyzkfp import ZKFP2
import sys

def fp_capture():
    zkfp2 = ZKFP2()
    zkfp2.Init()  # Initialize the ZKFP2 class
    # if zkfp2.Init() != 0:
    #     print("Failed to initialize the device")
    #     return
    device_count = zkfp2.GetDeviceCount()
    print(f"{device_count} devices found")
    zkfp2.OpenDevice(0) # connect to the first device


    # print(firstArgv, currentTemp)
    # return

    # Get device count and open the first device
    # device_count = zkfp2.GetDeviceCount()

if __name__ == "__main__":
    fp_capture()
