• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Web cam problem please help me T.T

Scheduled Pinned Locked Moved Unsolved Troubleshooting
6 Posts 2 Posters 1.8k Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    pkj
    last edited by Jun 22, 2018, 6:31 AM

    We are now using Microsoft’s hd-3000 as a Raspberry Pi webcam. This webcam has a built-in microphone. Before we start the program, stop the stream with sudo service motion stop and start npm start, then the webcam’s signal is blink and voice recognition will bring up Python. However, after a month, if we start npm start with a raspberry pi , it will not be able to recognize the voice and it does not signal to the webcam. I have a webcam problem, but when I run the Python code separately, the webcam gets a signal and runs fine. I do not know if it’s a problem with the webcam or if it does not accept the voice itself from Raspberry Pi. If we start npm and speak the speech recognition word, there is no error code and Python does not run.

    S 1 Reply Last reply Jun 22, 2018, 12:47 PM Reply Quote 0
    • S Away
      sdetweil @pkj
      last edited by Jun 22, 2018, 12:47 PM

      @pkj i use a webcam on my MM as well, and use github motion for my MM-SleepWake module, and MM-voice/HelloLucy for the voice recognition

      none of that uses python.

      On a different Smart mirror platform (smart-mirror) that uses arecord to capture the voice sounds, there is a problem like u describe, due to a bug in arecord, but it starts to fail around 20 consecutive hours…

      what modules are u using?

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      P 1 Reply Last reply Jun 22, 2018, 12:48 PM Reply Quote 0
      • P Offline
        pkj @sdetweil
        last edited by pkj Jun 22, 2018, 12:51 PM Jun 22, 2018, 12:48 PM

        @sdetweil I use voicecontrol module and camera module. !!! and when i typed lsusb commands there were my webcam device. But when i typed arecord -l , there were nothing

        1 Reply Last reply Reply Quote 0
        • S Away
          sdetweil
          last edited by Jun 22, 2018, 1:07 PM

          i see this
          -l = -L (lowercase)

          ~/MagicMirror/modules$ arecord -l
          **** List of CAPTURE Hardware Devices ****
          card 1: U0x46d0x825 [USB Device 0x46d:0x825], device 0: USB Audio [USB Audio]
            Subdevices: 0/1
            Subdevice #0: subdevice #0
          

          also the bug i spoke to is also using Snowboy… the bug is that when spooling audio via stdout, arecord’s size counter wraps at 18 hours(2gig) , and no more audio is captured. only fix is to kill arecord and restart it (means restarting mirror app)

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          P 1 Reply Last reply Jun 23, 2018, 12:26 PM Reply Quote 0
          • P Offline
            pkj @sdetweil
            last edited by Jun 23, 2018, 12:26 PM

            @sdetweil Thank you so much! Anyway I solved this problem!

            S 1 Reply Last reply Jun 23, 2018, 12:29 PM Reply Quote 0
            • S Away
              sdetweil @pkj
              last edited by Jun 23, 2018, 12:29 PM

              @pkj what did you do to fix the problem?

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              1 / 1
              • First post
                5/6
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy