File tree 2 files changed +7
-5
lines changed
2 files changed +7
-5
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
3
import { Image } from "../image.class" ;
4
+ import { Region } from "../region.class" ;
4
5
5
6
/**
6
7
* An ImageFinder should provide an abstraction layer to perform image matching
@@ -18,17 +19,17 @@ export interface ImageFinderInterface {
18
19
*/
19
20
findMatch < PROVIDER_DATA_TYPE > (
20
21
matchRequest : MatchRequest < Image , PROVIDER_DATA_TYPE >
21
- ) : Promise < MatchResult > ;
22
+ ) : Promise < MatchResult < Region > > ;
22
23
23
24
/**
24
25
* findMatches should provide an abstraction to search for an image needle
25
26
* in another image haystack
26
27
*
27
- * @param {MatchRequest } matchRequest A matchrequest containing needed matching data
28
+ * @param {MatchRequest } matchRequest A match request containing needed matching data
28
29
* @returns {Promise<MatchResult[]> } A list of {@link MatchResult}s holding the match probability and location
29
30
* @memberof ImageFinderInterface
30
31
*/
31
32
findMatches < PROVIDER_DATA_TYPE > (
32
33
matchRequest : MatchRequest < Image , PROVIDER_DATA_TYPE >
33
- ) : Promise < MatchResult [ ] > ;
34
+ ) : Promise < MatchResult < Region > [ ] > ;
34
35
}
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
3
import { TextQuery } from "../query.class" ;
4
+ import { Region } from "../region.class" ;
4
5
5
6
/**
6
7
* A TextFinder should provide an abstraction layer to perform text searches
@@ -18,7 +19,7 @@ export interface TextFinderInterface {
18
19
*/
19
20
findMatch < PROVIDER_DATA_TYPE > (
20
21
matchRequest : MatchRequest < TextQuery , PROVIDER_DATA_TYPE >
21
- ) : Promise < MatchResult > ;
22
+ ) : Promise < MatchResult < Region > > ;
22
23
23
24
/**
24
25
* findMatches should provide an abstraction to search for an image needle
@@ -30,5 +31,5 @@ export interface TextFinderInterface {
30
31
*/
31
32
findMatches < PROVIDER_DATA_TYPE > (
32
33
matchRequest : MatchRequest < TextQuery , PROVIDER_DATA_TYPE >
33
- ) : Promise < MatchResult [ ] > ;
34
+ ) : Promise < MatchResult < Region > [ ] > ;
34
35
}
You can’t perform that action at this time.
0 commit comments