Open jcmaslan opened 7 years ago
I can do this with ffmpeg, it'll require recoding the video prior to upload but it can be done relatively easily.
@postfalk created https://github.com/tnc-ca-geo/extract for people to use if they decide to re-encode during import and they can still use this json file for the specification of the masked regions. However to reduce the compute load for v1 end-to-end, we've concluded that it's better that the segmenter hook preform the masking to avoid decoding the video twice.
The recorded video sometimes has sensitive information watermarked on it (e.g. name of a vessel, its lat/lng, time, etc.), so add the option to the importer scripts to specify the
masked_regions
at the level of eachcamera_id
so that they may vary by camera even though many users may have the same watermarking across all cameras associated with their account.Per discussion with @mmerrifield these masks may also be helpful to encourage labeling research by making it simple to contribute sample data anonymously.
For example:
Where
myregions.json
is a description of the masking polygons similar to: