Live Camera Feed Enhancement #6219
JahnabDutta
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Boundary based visualization
Features
boundary.
How to use
assets
page.configure
page.Live Feed
section, boundary configuration can be achieved.Add Boundary
button to add a boundary.Camera Feed
button. Now move the camera to see the validation.Implementation
Adding a new boundary and deleting an existing boundary
ONVIFCamera.tsx
page.addBoundaryPreset
to add a new boundary.deleteBoundaryPreset
to delete an existing boundary.ONVIFCamera
component uses theLiveFeed
component which in turn uses theCameraBoundaryConfigure
component where the UI for addition, deletion and preview of boundary is present.previewBoundary
function inLiveFeed
is used to preview the boundary edges.Modifying an existing boundary
ONVIFCamera.tsx
page.updateBoundaryPreset
to modify an existing boundary.ONVIFCamera
component uses theLiveFeed
component which in turn uses theUpdateCameraBoundaryConfigure
component where the UI for modification of boundary is present.LiveFeed
page, thegotoDirectionalBoundary
function is used to move the camera to the directional boundary being modified.Validation based on boundary
Feed.tsx
page.other
insidecameraPTZActionCBs
function to see the validation based on boundary.onvif.py
page.validate_action
function.Patient Privacy Feature
Features
How to use
Camera Feed
button to see effect of privacy.Implementation
Enabling privacy toggle in frontend
PatientPrivacyTogggle.tsx
file in care_fe repo.getPrivacyInfo
function is used to get the current privacy status from the backend.togglePrivacy
function is used to toggle the privacy of the patient.Validating privacy toggle in backend.
bed.py
incare/facility/api/viewsets
.toggle_patient_privacy
API is used to deal with validating role priviledge and toggling privacy.Lock asset feature
Features
How to use
Camera Feed
button.Implementation
Setting up dedicated camera access
Feed.tsx
page.lockAsset
,unlockAsset
for methods of locking,unlocking asset, andrequestAccess
for requesting access to the camera.base.py
andonvif.py
incare/utils/assetintegration
.onvif.py
, the api request forlock_asset
,unlock_asset
is handled via the the respective functions.request_access
api is used to send request to the user who has camera access.Displaying current occupier of the camera
Feed.tsx
page, thecurrentCameraOccupierInfo
function is used to display the current occupier of the camera.subscriptionInfo
used to display information about subscription to push notifications.Making access realtime
base.py
incare/utils/assetintegration
.add_to_waiting_queue
andremove_from waiting_queue
to see how queue of users is maintained who await camera access.generate_notification
function is used to send push notifications to the user who has camera access.request_access
function is used to send request to the user who has camera access.Beta Was this translation helpful? Give feedback.
All reactions