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
Uh oh!
There was an error while loading. Please reload this page.
-
Boundary based visualization
Features
boundary.
How to use
assetspage.configurepage.Live Feedsection, boundary configuration can be achieved.Add Boundarybutton to add a boundary.Camera Feedbutton. Now move the camera to see the validation.Implementation
Adding a new boundary and deleting an existing boundary
ONVIFCamera.tsxpage.addBoundaryPresetto add a new boundary.deleteBoundaryPresetto delete an existing boundary.ONVIFCameracomponent uses theLiveFeedcomponent which in turn uses theCameraBoundaryConfigurecomponent where the UI for addition, deletion and preview of boundary is present.previewBoundaryfunction inLiveFeedis used to preview the boundary edges.Modifying an existing boundary
ONVIFCamera.tsxpage.updateBoundaryPresetto modify an existing boundary.ONVIFCameracomponent uses theLiveFeedcomponent which in turn uses theUpdateCameraBoundaryConfigurecomponent where the UI for modification of boundary is present.LiveFeedpage, thegotoDirectionalBoundaryfunction is used to move the camera to the directional boundary being modified.Validation based on boundary
Feed.tsxpage.otherinsidecameraPTZActionCBsfunction to see the validation based on boundary.onvif.pypage.validate_actionfunction.Patient Privacy Feature
Features
How to use
Camera Feedbutton to see effect of privacy.Implementation
Enabling privacy toggle in frontend
PatientPrivacyTogggle.tsxfile in care_fe repo.getPrivacyInfofunction is used to get the current privacy status from the backend.togglePrivacyfunction is used to toggle the privacy of the patient.Validating privacy toggle in backend.
bed.pyincare/facility/api/viewsets.toggle_patient_privacyAPI is used to deal with validating role priviledge and toggling privacy.Lock asset feature
Features
How to use
Camera Feedbutton.Implementation
Setting up dedicated camera access
Feed.tsxpage.lockAsset,unlockAssetfor methods of locking,unlocking asset, andrequestAccessfor requesting access to the camera.base.pyandonvif.pyincare/utils/assetintegration.onvif.py, the api request forlock_asset,unlock_assetis handled via the the respective functions.request_accessapi is used to send request to the user who has camera access.Displaying current occupier of the camera
Feed.tsxpage, thecurrentCameraOccupierInfofunction is used to display the current occupier of the camera.subscriptionInfoused to display information about subscription to push notifications.Making access realtime
base.pyincare/utils/assetintegration.add_to_waiting_queueandremove_from waiting_queueto see how queue of users is maintained who await camera access.generate_notificationfunction is used to send push notifications to the user who has camera access.request_accessfunction is used to send request to the user who has camera access.Beta Was this translation helpful? Give feedback.
All reactions