isl-org / OpenBot

OpenBot leverages smartphones as brains for low-cost robots. We have designed a small electric vehicle that costs about $50 and serves as a robot body. Our software stack for Android smartphones supports advanced robotics workloads such as person following and real-time autonomous navigation.
https://www.openbot.org
MIT License
2.81k stars 526 forks source link

video stream error #284

Closed alstjr510 closed 2 years ago

alstjr510 commented 2 years ago

Describe the problem A clear and concise description of what the problem is or what information you are looking for. It connects when I run (python keyboard-pygame.py --video), but the video doesn't come out of my laptop!

Can't read stream is an error message when running ( python keyboard-pygame.py --video)

I want to know the camera address information of the cell phone connected to the open bot.(On Openbot Application)

To Reproduce Steps to reproduce the behavior: 1.conda activate [your env] 2.cd Openbot 3.cd controller 4.cd python

  1. python keyboard-pygame.py --video

Expected behavior A clear and concise description of what you expected to happen: I can see the video of the cell phone camera connected to the open-bot app on my laptop.

Screenshots If applicable, add screenshots to help explain your [problem.]

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

thias15 commented 2 years ago

Did you choose RTSP in the settings of the OpenBot app?

alstjr510 commented 2 years ago

Did you choose RTSP in the settings of the OpenBot app?

Yes, I know that there are WebRTC and RTSP in Stream mode. And I set it to RTSP.

thias15 commented 2 years ago

@izivkov any ideas?

izivkov commented 2 years ago

I think unfortunately, some phones are just not compatible with the "cv2" library we are using in the Python program for video. There is no easy alternative, since this is the default official Python library. At one time we tried to replace with VLC library, but AFAIR it just invoked a separate VLC player. So here are some suggestions:

  1. Try a different phone, something more close to standard Google phone, like Motorola or Pixel. Mind you most phones should work.
  2. Use VLC program for video streaming. Run the Python program without the --video flag.
alstjr510 commented 1 year ago

Yes, I know that there are WebRTC and RTSP in Stream mode. And I set it to RTSP. -----Original Message----- From: @.> To: @.>; Cc: @.>; @.>; Sent: 2022-05-05 (목) 15:08:25 (GMT+09:00) Subject: Re: [isl-org/OpenBot] video stream error (Issue #284)

Did you choose RTSP in the settings of the OpenBot app? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>