public class FaceDescriptorDataWorker
extends com.mware.core.ingest.dataworker.DataWorker
| Modifier and Type | Field and Description |
|---|---|
static com.mware.core.model.properties.types.StringBcProperty |
FACE_DESCRIPTOR |
static com.mware.core.model.properties.types.IntegerBcProperty |
FACE_NUMBER |
| Constructor and Description |
|---|
FaceDescriptorDataWorker(com.mware.core.config.Configuration configuration)
Flow:
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute(java.io.InputStream in,
com.mware.core.ingest.dataworker.DataWorkerData data) |
boolean |
isHandled(com.mware.ge.Element element,
com.mware.ge.Property property) |
void |
prepare(com.mware.core.ingest.dataworker.DataWorkerPrepareData workerPrepareData) |
addVertexToWorkspaceIfNeeded, addVideoTranscriptAsTextPropertiesToMutation, applyTermMentionFilters, getAuthorizations, getConfiguration, getGraph, getGraphAuthorizationRepository, getGraphRepository, getSchemaRepository, getUser, getVisibilityTranslator, getWebQueueRepository, getWorkQueueRepository, getWorkspaceRepository, isConceptType, isDeleteHandled, isHiddenHandled, isLocalFileRequired, isTextProperty, isUnhiddenHandled, isVertex, pushChangedPropertiesOnWorkQueue, pushTextUpdated, pushVideoTranscriptTextPropertiesOnWorkQueue, refresh, setConfiguration, setGraph, setGraphAuthorizationRepository, setGraphRepository, setSchemaRepository, setVisibilityTranslator, setWebQueueRepository, setWorkQueueRepository, setWorkspaceRepository, verifypublic static final com.mware.core.model.properties.types.IntegerBcProperty FACE_NUMBER
public static final com.mware.core.model.properties.types.StringBcProperty FACE_DESCRIPTOR
@Inject public FaceDescriptorDataWorker(com.mware.core.config.Configuration configuration)
One-Shot training phase:
1. Handle on 'faceOf' relationship -> Call face extractor URL for the 'Person' and image in it If multiple descriptors for a person are present then AVG is computed
Detection phase:
1. VGGFaces2 based python script runs in a separate process on a video stream 2. All detected faces are compared with all the existing descriptors in BC (Retrieved as 'Face Descriptors' saved search) 3. If a match is found then the '/face-event' endpoint is called -> 'Event' vertex linked with 'faceEvent' rel to 'Person'
NTH: Store face descriptors in faiss index
public void prepare(com.mware.core.ingest.dataworker.DataWorkerPrepareData workerPrepareData)
throws java.lang.Exception
prepare in class com.mware.core.ingest.dataworker.DataWorkerjava.lang.Exceptionpublic boolean isHandled(com.mware.ge.Element element,
com.mware.ge.Property property)
isHandled in class com.mware.core.ingest.dataworker.DataWorkerpublic void execute(java.io.InputStream in,
com.mware.core.ingest.dataworker.DataWorkerData data)
throws java.lang.Exception
execute in class com.mware.core.ingest.dataworker.DataWorkerjava.lang.ExceptionCopyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.