-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
587 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,4 +26,5 @@ cypress/screenshots/ | |
|
||
# Test coverage reports | ||
.nyc_output/ | ||
coverage/ | ||
coverage/ | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
/// <reference types="cypress" /> | ||
|
||
context('Timeline', () => { | ||
before(() => { | ||
cy.visit('http://localhost:8080') | ||
// cy.get('[data-cy=timeline]').click() | ||
cy.visit("./timeline") | ||
}) | ||
before(() => { | ||
cy.visit('http://localhost:8080') | ||
// cy.get('[data-cy=timeline]').click() | ||
cy.visit("./timeline") | ||
}) | ||
|
||
it('Should browse to timeline', () => { | ||
cy.url().should('include', '/timeline') | ||
}) | ||
it('Should browse to timeline', () => { | ||
cy.url().should('include', '/timeline') | ||
}) | ||
|
||
// Try to get this to work once we have mock data | ||
// Try to get this to work once we have mock data | ||
|
||
// it('Get timeline data', () => { | ||
// cy.get('[data-cy=timelinedata]').then(($result) => { | ||
// console.log($result) | ||
// }) | ||
// }) | ||
// it('Get timeline data', () => { | ||
// cy.get('[data-cy=timelinedata]').then(($result) => { | ||
// console.log($result) | ||
// }) | ||
// }) | ||
|
||
// it('Should generate no results in timeline', () => { | ||
// cy.get('[data-cy=timeline]').click() | ||
// it('Should generate no results in timeline', () => { | ||
// cy.get('[data-cy=timeline]').click() | ||
|
||
// cy.wait(5000) | ||
// cy.wait(5000) | ||
|
||
// cy.get('.infinite-status-prompt').contains('No results :(') | ||
// }) | ||
// cy.get('.infinite-status-prompt').contains('No results :(') | ||
// }) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,274 @@ | ||
[ | ||
{ | ||
"args": { | ||
"datetime": "2020-05-10T19:05:45.577145", | ||
"id": "page2", | ||
"image_file_name": "20200510-190545.577145-image.jpg", | ||
"inference_meta": { | ||
"display": "Object Detection" | ||
}, | ||
"inference_result": [ | ||
{ | ||
"box": { | ||
"xmax": 0.7228575944900513, | ||
"xmin": 0.3868940770626068, | ||
"ymax": 1, | ||
"ymin": 0.12535724414170846 | ||
}, | ||
"confidence": 0.9921875, | ||
"label": "person" | ||
} | ||
], | ||
"json_file_name": "20200510-190545.577145-inference.json", | ||
"rel_dir": "detections/20200510-190544.936209", | ||
"thumbnail_file_name": "20200510-190545.577145-thumbnail.jpg" | ||
}, | ||
"created": 1589137545.6190686, | ||
"id": "page2", | ||
"message": "Detection Event", | ||
"priority": "INFO", | ||
"source_code": { | ||
"funcName": "_save_sample", | ||
"lineno": 117, | ||
"pathname": "/workspace/src/ambianic/pipeline/store.py" | ||
} | ||
}, | ||
{ | ||
"args": { | ||
"datetime": "2020-05-10T19:05:45.577145", | ||
"id": "page2", | ||
"image_file_name": "20200510-190545.577145-image.jpg", | ||
"inference_meta": { | ||
"display": "Object Detection" | ||
}, | ||
"inference_result": [ | ||
{ | ||
"box": { | ||
"xmax": 0.7228575944900513, | ||
"xmin": 0.3868940770626068, | ||
"ymax": 1, | ||
"ymin": 0.12535724414170846 | ||
}, | ||
"confidence": 0.9921875, | ||
"label": "person" | ||
} | ||
], | ||
"json_file_name": "20200510-190545.577145-inference.json", | ||
"rel_dir": "detections/20200510-190544.936209", | ||
"thumbnail_file_name": "20200510-190545.577145-thumbnail.jpg" | ||
}, | ||
"created": 1589137545.6190686, | ||
"id": "page2", | ||
"message": "Detection Event", | ||
"priority": "INFO", | ||
"source_code": { | ||
"funcName": "_save_sample", | ||
"lineno": 117, | ||
"pathname": "/workspace/src/ambianic/pipeline/store.py" | ||
} | ||
}, | ||
{ | ||
"args": { | ||
"datetime": "2020-05-10T19:05:45.577145", | ||
"id": "page2", | ||
"image_file_name": "20200510-190545.577145-image.jpg", | ||
"inference_meta": { | ||
"display": "Object Detection" | ||
}, | ||
"inference_result": [ | ||
{ | ||
"box": { | ||
"xmax": 0.7228575944900513, | ||
"xmin": 0.3868940770626068, | ||
"ymax": 1, | ||
"ymin": 0.12535724414170846 | ||
}, | ||
"confidence": 0.9921875, | ||
"label": "face" | ||
} | ||
], | ||
"json_file_name": "20200510-190545.577145-inference.json", | ||
"rel_dir": "detections/20200510-190544.936209", | ||
"thumbnail_file_name": "20200510-190545.577145-thumbnail.jpg" | ||
}, | ||
"created": 1589137545.6190686, | ||
"id": "page2", | ||
"message": "Detection Event", | ||
"priority": "INFO", | ||
"source_code": { | ||
"funcName": "_save_sample", | ||
"lineno": 117, | ||
"pathname": "/workspace/src/ambianic/pipeline/store.py" | ||
} | ||
}, | ||
{ | ||
"args": { | ||
"datetime": "2020-05-10T19:05:45.577145", | ||
"id": "page1", | ||
"image_file_name": "20200510-190545.577145-image.jpg", | ||
"inference_meta": { | ||
"display": "Object Detection" | ||
}, | ||
"inference_result": [ | ||
{ | ||
"box": { | ||
"xmax": 0.7228575944900513, | ||
"xmin": 0.3868940770626068, | ||
"ymax": 1, | ||
"ymin": 0.12535724414170846 | ||
}, | ||
"confidence": 0.9921875, | ||
"label": "car" | ||
} | ||
], | ||
"json_file_name": "20200510-190545.577145-inference.json", | ||
"rel_dir": "detections/20200510-190544.936209", | ||
"thumbnail_file_name": "20200510-190545.577145-thumbnail.jpg" | ||
}, | ||
"created": 1589137545.6190686, | ||
"id": "page1", | ||
"message": "Detection Event", | ||
"priority": "INFO", | ||
"source_code": { | ||
"funcName": "_save_sample", | ||
"lineno": 117, | ||
"pathname": "/workspace/src/ambianic/pipeline/store.py" | ||
} | ||
}, | ||
{ | ||
"args": { | ||
"datetime": "2020-05-10T19:05:45.577145", | ||
"id": "page1", | ||
"image_file_name": "20200510-190545.577145-image.jpg", | ||
"inference_meta": { | ||
"display": "Object Detection" | ||
}, | ||
"inference_result": [ | ||
{ | ||
"box": { | ||
"xmax": 0.7228575944900513, | ||
"xmin": 0.3868940770626068, | ||
"ymax": 1, | ||
"ymin": 0.12535724414170846 | ||
}, | ||
"confidence": 0.9921875, | ||
"label": "cat" | ||
} | ||
], | ||
"json_file_name": "20200510-190545.577145-inference.json", | ||
"rel_dir": "detections/20200510-190544.936209", | ||
"thumbnail_file_name": "20200510-190545.577145-thumbnail.jpg" | ||
}, | ||
"created": 1589137545.6190686, | ||
"id": "page1", | ||
"message": "Detection Event", | ||
"priority": "INFO", | ||
"source_code": { | ||
"funcName": "_save_sample", | ||
"lineno": 117, | ||
"pathname": "/workspace/src/ambianic/pipeline/store.py" | ||
} | ||
}, | ||
{ | ||
"args": { | ||
"datetime": "2020-05-10T19:05:45.577145", | ||
"id": "page1", | ||
"image_file_name": "20200510-190545.577145-image.jpg", | ||
"inference_meta": { | ||
"display": "Object Detection" | ||
}, | ||
"inference_result": [ | ||
{ | ||
"box": { | ||
"xmax": 0.7228575944900513, | ||
"xmin": 0.3868940770626068, | ||
"ymax": 1, | ||
"ymin": 0.12535724414170846 | ||
}, | ||
"confidence": 0.9921875, | ||
"label": "dog" | ||
} | ||
], | ||
"json_file_name": "20200510-190545.577145-inference.json", | ||
"rel_dir": "detections/20200510-190544.936209", | ||
"thumbnail_file_name": "20200510-190545.577145-thumbnail.jpg" | ||
}, | ||
"created": 1589137545.6190686, | ||
"id": "page1", | ||
"message": "Detection Event", | ||
"priority": "INFO", | ||
"source_code": { | ||
"funcName": "_save_sample", | ||
"lineno": 117, | ||
"pathname": "/workspace/src/ambianic/pipeline/store.py" | ||
} | ||
}, | ||
{ | ||
"args": { | ||
"datetime": "2020-05-10T19:05:45.577145", | ||
"id": "page1", | ||
"image_file_name": "20200510-190545.577145-image.jpg", | ||
"inference_meta": { | ||
"display": "Object Detection" | ||
}, | ||
"inference_result": [ | ||
{ | ||
"box": { | ||
"xmax": 0.7228575944900513, | ||
"xmin": 0.3868940770626068, | ||
"ymax": 1, | ||
"ymin": 0.12535724414170846 | ||
}, | ||
"confidence": 0.9921875, | ||
"label": "person" | ||
} | ||
], | ||
"json_file_name": "20200510-190545.577145-inference.json", | ||
"rel_dir": "detections/20200510-190544.936209", | ||
"thumbnail_file_name": "20200510-190545.577145-thumbnail.jpg" | ||
}, | ||
"created": 1589137545.6190686, | ||
"id": "page1", | ||
"message": "Detection Event", | ||
"priority": "INFO", | ||
"source_code": { | ||
"funcName": "_save_sample", | ||
"lineno": 117, | ||
"pathname": "/workspace/src/ambianic/pipeline/store.py" | ||
} | ||
}, | ||
{ | ||
"args": { | ||
"datetime": "2020-05-10T19:05:45.577145", | ||
"id": "page1", | ||
"image_file_name": "20200510-190545.577145-image.jpg", | ||
"inference_meta": { | ||
"display": "Object Detection" | ||
}, | ||
"inference_result": [ | ||
{ | ||
"box": { | ||
"xmax": 0.7228575944900513, | ||
"xmin": 0.3868940770626068, | ||
"ymax": 1, | ||
"ymin": 0.12535724414170846 | ||
}, | ||
"confidence": 0.9921875, | ||
"label": "person" | ||
} | ||
], | ||
"json_file_name": "20200510-190545.577145-inference.json", | ||
"rel_dir": "detections/20200510-190544.936209", | ||
"thumbnail_file_name": "20200510-190545.577145-thumbnail.jpg" | ||
}, | ||
"created": 1589137545.6190686, | ||
"id": "page1", | ||
"message": "Detection Event", | ||
"priority": "INFO", | ||
"source_code": { | ||
"funcName": "_save_sample", | ||
"lineno": 117, | ||
"pathname": "/workspace/src/ambianic/pipeline/store.py" | ||
} | ||
} | ||
] |
Oops, something went wrong.