googlecreativelab / teachablemachine-community

Example code snippets and machine learning code for Teachable Machine
https://g.co/teachablemachine
Apache License 2.0
1.5k stars 666 forks source link

[BUG]: Can't change used webcam on the website #186

Open marksamfd opened 3 years ago

marksamfd commented 3 years ago

Describe the bug can't use any webcam even if I used the selector

To Reproduce Steps to reproduce the behavior:

  1. Go to pose trainer
  2. Click on 'webcam select'
  3. Select any webcam
  4. It doesn't change

Relevant Links https://teachablemachine.withgoogle.com/train/pose Expected behavior sea preview on the other webcam

Desktop (please complete the following information):

realgsong commented 3 years ago

+1 In my case, students are using another camera instead of built-in webcam which is wireless portable camera. So that students can use it to capture image freely.

As I remember, changing webcam worked well before in google teachable machine web site. It looks like this feature is broken recently.

realgsong commented 3 years ago

Ok, here's my test result. This bug is not reproduced with my wired USB webcam. But it's reproduced with wireless webcam which uses Wifi network to transmit video data. (in short, IP camera)

Repro steps

  1. Windows PC
  2. Install https://play.google.com/store/apps/details?id=com.pas.webcam app in your android smartphone
  3. Execute https://github.com/shenyaocn/IP-Camera-Bridge and set video stream url to 192.168.0.*/video
  4. Close all your browser window
  5. Start your browser
  6. Visit here and check your ip camera webcam works well
  7. Visit google teachable machine site and selelct image project
  8. Click Webcam and try to change webcam to ipcamera

Expected

camera view is updated with ipcamera

Actual

not updated.