delete_listener()
  • 1 Minute to read

delete_listener()


Article summary

Disable and delete a previously created frame listener, see create_color_frame_listener().

Reference

Arguments

ArgumentsType
camera_namestr
Camera name

Return

None

Exceptions

  • RayaCameraInvalidName

See the complete list of cameras exceptions.

Usage Example

1. Delete listener

...
self.cameras = await self.enable_controller('cameras')
self.camera_name = 'chest'
self.cameras.enable_camera(self.camera_name)
self.cameras.create_color_frame_listener(camera_name=self.camera_name, callback=self.camera_frame_callback)
...
self.cameras.delete_listener(camera_name=self.camera_name)
...

Was this article helpful?