signbank / signbank-video Goto Github PK
View Code? Open in Web Editor NEWVideo handling for the Signbank sign language dictionary
License: Other
Video handling for the Signbank sign language dictionary
License: Other
@henrinie said:
We need a way to connect uploaded videos that don't have a Gloss set (yet) to a Dataset.
I wonder if TaggedVideo could be used like this to solve this issue?
category="dataset"
tag=dataset.pk
Would it make sense to make use of the contenttypes framework to handle relations? It would allow us have generic relations based on the contenttypes, like explained in https://docs.djangoproject.com/en/1.10/ref/contrib/contenttypes/#generic-relations
Is there a requirement to have categories that are not models?
I guess this:
class TaggedVideo(models.Model):
"""A video that can be tagged with a category (eg. gloss, definintion, feedback)
and a tag (eg. the gloss id) """
objects = TaggedVideoManager()
category = models.CharField(max_length=50)
tag = models.CharField(max_length=50)
Could be changed to this:
class TaggedVideo(models.Model):
"""A video that can be tagged with a category (eg. gloss, definintion, feedback)
and a tag (eg. the gloss id) """
objects = TaggedVideoManager()
content_type = models.ForeignKey(ContentType, on_delete=models.CASCADE)
object_id = models.PositiveIntegerField() # The pk/id of the object
content_object = GenericForeignKey('content_type', 'object_id')
tag = models.CharField(max_length=50)
Would this kind of change be of any use?
Also if we implement #3 , don't we have to remove the 'unique_together' part?
class Meta:
unique_together = (("category", "tag"),)
It seems that currently the filename of all uploaded files is changed to end with .mp4
@henrinie said:
We don't generate these on the server, instead our users pick a frame and upload it.
I think we would need a FileField for poster images.
The extract_frame part would need to be made optional (add a boolean to settings?)
@henrinie said:
We need to be able to upload multiple videos for one Gloss. We use GlossVideo.version to store the defined order of videos to show on gloss page. Users can arrange the videos to a desired order on the gloss page.
It seems that TaggedVideoManager would "mess" the version numbers for us if a new video is uploaded. On the other hand, it might not, the uploaded video would just show first and then it could be moved to where the user wants. Does TaggedVideoManager only update the version when a new video is added (it seems so)?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.