main

main(svs_file_path, json_file_path, final_url)[source]

Main function to process an SVS file.

Parameters:
  • svs_file_path (str) – The local file path of the SVS file to be processed.

  • json_file_path (str) – The file path where the output JSON will be saved.

  • final_url (str) – The URL where the SVS file is stored online

  • API. (and can be accessed via HTTP byte range)

Return type:

None

Example

main(‘/path/to/CMU-1-Small-Region.svs’, ‘/path/to/CMU-1-Small-Region.json’, “https://huggingface.co/datasets/TIACentre/TIAToolBox_Remote_Samples/resolve/main/sample_wsis/CMU-1-Small-Region.svs” )