vitrivr / cineast

Cineast is a multi-feature content-based mulitmedia retrieval engine. It is capable of retrieving images, audio- and video sequences as well as 3d models based on edge or color sketches, textual descriptions and example objects.
MIT License
57 stars 50 forks source link

Rework extraction API endpoints #339

Closed simonpeterhans closed 2 years ago

simonpeterhans commented 2 years ago

This PR fixes the broken REST API endpoints for feature extraction from items.

The session concept is roughly kept, meaning that an extraction session first has to be opened before items can be added, and should be closed once all items have been added.

The path to the extraction configuration to use can be specified in the config file with sessionExtractionConfigLocation.

The ExtractionContextProvider interface is used in GenericExtractionItemHandler instead of an IngestConfig to properly reuse the handler.


Since I will not have any time for further changes or contributions to this, @silvanheller asked me to open this PR as-is -- feel very free to make further changes to the respective branch.