microsoft / VoTT

Visual Object Tagging Tool: An electron app for building end to end Object Detection Models from Images and Videos.
MIT License
4.28k stars 834 forks source link

Cannot export annotations: Error: Failed to execute 'toBlob' on 'HTMLCanvasElement' #919

Closed usuyama closed 4 years ago

usuyama commented 4 years ago

Describe the bug Cannot export annotations with the following error:

SecurityError Failed to execute 'toBlob' on 'HTMLCanvasElement': Tainted canvases may not be exported.

To Reproduce

  1. Go to the main annotation page for videos
  2. Click on 'Export project' button on the main menu
  3. See error

Expected behavior Can export annotations (it worked once, but not anymore. Not sure what's the diff)

Screenshots vott_error

Desktop

Additional context

usuyama commented 4 years ago

By trial and error, I just found a workaround!

I needed to uncheck "Include Images" in the export settings. I guess it tries to get images from canvas but fails with the error.

vott_include_images