(flush_data)
| 36 | |
| 37 | |
| 38 | def test_regsiter_with_json(flush_data): |
| 39 | img_path = "../unit/dataset/img1.jpg" |
| 40 | result = DeepFace.register( |
| 41 | img=img_path, |
| 42 | model_name="Facenet", |
| 43 | detector_backend="mtcnn", |
| 44 | connection_details=connection_details_dict, |
| 45 | ) |
| 46 | assert result["inserted"] == 1 |
| 47 | logger.info("✅ Registered with json test passed.") |
| 48 | |
| 49 | |
| 50 | def test_register_with_string(flush_data): |