-
Notifications
You must be signed in to change notification settings - Fork 0
automatic document-level Annotation
recorder
#226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think I am missing something on what exactly the "recording process" is. I was thinking of this "capital A" annotation process as something that proceeds in the same way as regular view creation, that is, the app adds a view with he document-level annotation, and no extra machinery is needed. |
You are correct regarding the current status of the The "recoding process" is the lines of code in the |
I've definitely been frustrated with how inelegant my handling of video document properties has been. I've been extracting the location, fps, etc and then passing those values around "loose" or making them app instance attributes which wouldn't work for handling multiple video documents. I think this will make it easier to make apps more flexible. It feels like something we'd want to have in the
This was my first thought reading through this. |
Adding |
4600e65 solves the problem raise in the above comment. |
* `view.metadata.contains.some_at_type` dictionary * the basic idea is the same as proposed in #226 * mmif.utils.vdhelper.get_annotation_property is now deprecated in favor of Annotation.get_property
New Feature Summary
We have added a place to store document-level information by re-purposing
Annotation
at_type (clamsproject/mmif#134) but none of the apps have been taking advantage of the feature so far, AFIK. That said, I'd like to propose a way to automate some of the recording process implemented as a part of the SDK.Implementation plan;
on
Document
sideDocument
class keeps a secondaryproperties2
attributes for temporary storage for document-level information.Document.add_property()
should add information to theproperties2
to keep the originalproperties
from the source document object from the top-leveldocuments
list intact.automatic generation of
Annotation
objectsproperties2
attribute.serialize
#212) in theserialize()
to generate those objects.properties2
dict is "converted" to anAnnotation
annotation, it should be popped out to prevent duplicate recording.Annotation
s were added to the corresponding views. In such case, there's no "duplicate" recording/serialization hence this point is irrelevant. On the other hand, during development and testing, devs can use serialization for debugging purposes, so in that case, popping properties out from the temporary memory is not a good idea. So I decide not to pop out them.Annotation
objects? I'm thinking whichever comes first during the serialization.automatic loading of
Annotation
objectsproperties3
attributes to loading document properties from existingAnnotation
objects during de-serialization.Document
instance when serializing.properties
dictionary, henceDocument
should provideget_property(prop_name)
to look for all three dicts and return the found value.Example
Suppose a slate detection app, having with code:
Then in the
mmif_utils_videodocument
:Then, you'll write something like this
to see
And finally, if there's a downstream processing:
will show
{ } # nothing has added during current processing app
Related
serialize
#212Alternatives
No response
Additional context
I propose this feature since I realized we must have all video-related MMIFs have
Annotation
for the FPS of the video, but none of the current video apps implements that. Without FPS information, we cannot perform evaluation of video apps solely based on the MMIF files without having access to the source video files because then time unit conversion is impossible without opening up the video files.It's true that devs still need to update the existing apps to use this new feature (once it's ready) to have FPS properly "recorded", but having this feature will make future video apps development much easier, with combination with #221.
@kelleyl @MrSqually @snewman-aa I know you guys have been working on some video processing apps, and want to hear your feedback on this proposal.
The text was updated successfully, but these errors were encountered: