# Using Camera in the MakeCode Micro:Bit Simulator

**URL:** <https://forum.makecode.com/t/using-camera-in-the-makecode-micro-bit-simulator/17762>\
**Category:** micro:bit\
**Tags:** make, extension\
**Created:** [February 3, 2023, 6:05pm UTC](https://forum.makecode.com/t/using-camera-in-the-makecode-micro-bit-simulator/17762 "2023-02-03T18:05:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KrishnaTheCoder756](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/krishnathecoder756/32/7623_2.png) [@KrishnaTheCoder756](https://forum.makecode.com/u/KrishnaTheCoder756)\
**Post date:** [February 3, 2023, 6:05pm UTC](https://forum.makecode.com/t/using-camera-in-the-makecode-micro-bit-simulator/17762/1 "2023-02-03T18:05:17Z")

</div>

**I am planning to make a face Recognition** system using makeCoder micro:bit for a coding competition. Now, in the competition, it will be convenient to send the simulator code and demonstration other than hardware. So are there any ways in which I can access the computer camera for the Face Recognition and perform the demonstration in the simulator itself?

---

<div class="post-metadata">

**Author:** ![bsiever](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bsiever/32/1032_2.png) [@bsiever](https://forum.makecode.com/u/bsiever)\
**Post date:** [February 3, 2023, 11:25pm UTC](https://forum.makecode.com/t/using-camera-in-the-makecode-micro-bit-simulator/17762/2 "2023-02-03T23:25:08Z")

</div>

This isn’t using MakeCode, but the “How to Train Your Robot” curriculum, which is described here: [https://httyr.media.mit.edu/](https://httyr.media.mit.edu/) , has a Scratch-based editor that uses the micro:bit and can do webcam image recognition.

To go to the Scratch blocks: [https://playground.raise.mit.edu/httyr/](https://playground.raise.mit.edu/httyr/)

They can use the Web cam and Google’s Teachable Machine for image recognition. You can use just the Scratch environment if you want to demonstrate things entirely in a simulation.

If you want it to interact with a real micro:bit but not use the CuteBot robot that the blocks are designed for, you can change the code and make it do other things. You can download the micro:bit .hex files from here: [https://httyr.media.mit.edu/computer-setup/connect-to-ai-blocks](https://httyr.media.mit.edu/computer-setup/connect-to-ai-blocks) and open them in MakeCode. Then remove/replace the CuteBot blocks with the code you want the micro:bit to do for that “command”.  
Here’s the code that works for a V2 micro:bit: [https://makecode.microbit.org/\_g1D0gL8TeaDz](https://makecode.microbit.org/_g1D0gL8TeaDz) .
