Function: repo_add
Applicability
|
Product |
Supported (√/x) |
|---|---|
|
|
x |
|
|
x |
|
|
x |
|
|
√ |
|
|
x |
Function Usage
Adds a repository, or adds features to an existing repository. In this section, 1:N indicates the ratio of the number of search requests to the number of repositories, and N:M indicates the similarity between two repositories.
The
Prototype
- C Prototype
1aclError aclfvRepoAdd(aclfvSearchType type, aclfvFeatureInfo *featureInfo)
- Python Function
1ret = acl.fv.repo_add(type, feature_info)
Parameter Description
|
Parameter |
Description |
|---|---|
|
type |
Int, search type. For details, see aclfvSearchType. |
|
feature_info |
|
Return Value Description
|
Return Value |
Description |
|---|---|
|
ret |
Int, error code.
|
Restrictions
- In 1:N mode, ensure that the offsets in the aclfvFeatureInfo dictionary are consecutive for each repository. In N:M mode, if the offset is not 0, an error is reported.
- In N:M mode, multithreaded adding, search, or deletion is not allowed.
- This API call automatically creates a stream for synchronous task execution within the API. When the tasks are complete, the stream is automatically destroyed.
Hardware has restrictions on the total number of streams. For details, see Function: create_stream.