File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { MatchRequest } from "../match-request.class" ;
2
2
import { MatchResult } from "../match-result.class" ;
3
+ import { Image } from "../image.class" ;
3
4
4
5
/**
5
6
* An ImageFinder should provide an abstraction layer to perform image matching
@@ -15,7 +16,9 @@ export interface ImageFinderInterface {
15
16
* @returns {Promise<MatchResult> } A {@link MatchResult} holding the match probability and location
16
17
* @memberof ImageFinderInterface
17
18
*/
18
- findMatch ( matchRequest : MatchRequest ) : Promise < MatchResult > ;
19
+ findMatch < PROVIDER_DATA_TYPE > (
20
+ matchRequest : MatchRequest < Image , PROVIDER_DATA_TYPE >
21
+ ) : Promise < MatchResult > ;
19
22
20
23
/**
21
24
* findMatches should provide an abstraction to search for an image needle
@@ -25,5 +28,7 @@ export interface ImageFinderInterface {
25
28
* @returns {Promise<MatchResult[]> } A list of {@link MatchResult}s holding the match probability and location
26
29
* @memberof ImageFinderInterface
27
30
*/
28
- findMatches ( matchRequest : MatchRequest ) : Promise < MatchResult [ ] > ;
31
+ findMatches < PROVIDER_DATA_TYPE > (
32
+ matchRequest : MatchRequest < Image , PROVIDER_DATA_TYPE >
33
+ ) : Promise < MatchResult [ ] > ;
29
34
}
You can’t perform that action at this time.
0 commit comments