Test AI Kit by ssh connection command line

No module named ‘hailo’
import hailo
ModuleNotFoundError: No module named ‘hailo’

  • I have executed the next code, but I encountered the error that I sent you earlier.
    cap = cv2.VideoCapture(“rtsp://admin:anas1155@192.168.1.168:554/Streaming/Channels/1/”)

    cap = cv2.VideoCapture(“speed3.mp4”)

    device = hailo.Device()

    pipeline = hailo.create_pipeline(device)

    while True:
    success, frame = cap.read()
    if not success:
    break

      frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
      
      try:
          roi = hailo.get_roi_from_buffer(frame)
          detections = roi.get_objects_typed(hailo.HAILO_DETECTION)
          print('hailo while ',detections)
          # Process detections...
      except Exception as e:
          print(f"Error occurred: {e}")
          break
    

    cap.release()