Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: cc-by-nc-sa-3.0
|
| 3 |
-
--
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-nc-sa-3.0
|
| 3 |
+
library_name: image-matching-models
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
```python
|
| 7 |
+
from imm import get_matcher
|
| 8 |
+
|
| 9 |
+
matcher = get_matcher("r2d2", device=device)
|
| 10 |
+
|
| 11 |
+
result = matcher(img0, img1)
|
| 12 |
+
# result.keys() = # result.keys() = ['num_inliers', 'H', 'all_kpts0', 'all_kpts1', 'all_desc0', 'all_desc1', 'matched_kpts0', 'matched_kpts1', 'inlier_kpts0', 'inlier_kpts1']
|
| 13 |
+
```
|
| 14 |
+
|
| 15 |
+
## Links
|
| 16 |
+
- [Original repository](https://github.com/naver/r2d2/tree/209b36dce146bfa5fcc69c3fb67ce076c3137b17?tab=readme-ov-file)
|
| 17 |
+
- [Image Matching Models](https://github.com/gmberton/image-matching-models)
|
| 18 |
+
|