# Embedded system for IA Assistant

**URL:** <https://forums.balena.io/t/embedded-system-for-ia-assistant/1502>\
**Category:** Product support\
**Tags:** raspberrypi3, docker\
**Created:** [July 21, 2017, 8:23am UTC](https://forums.balena.io/t/embedded-system-for-ia-assistant/1502 "2017-07-21T08:23:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@Paul](https://forums.balena.io/u/Paul)\
**Post date:** [July 21, 2017, 8:23am UTC](https://forums.balena.io/t/embedded-system-for-ia-assistant/1502/1 "2017-07-21T08:23:32Z")

</div>

Hello,

I got a large project from school, the goal of this project is to develop a connected device like a Google Home but a lot more simple and for kids usage :), We have a lot of libraries to install on our linux software and it’s very annoying to install libraries manually or with sh script on Raspberry pi. So, Docker seemed nice to use. Creating image with everything installed on it and launch the container, like a dump ready to use. But we need audio, video back and also the return of sensor data.  
We tried docker on normal processor no rapsberry but we got already an issue for launching video, we use Opencv as library to read video.

 ![](https://global.discourse-cdn.com/balena/original/1X/88cd03c8b766b292f0bf10695b2a145cf8e278f5.jpg)

So, I discovered [Resin.io](http://Resin.io) , do you think Resin can help me to implement all the sensor ?  
The [Resin.io](http://Resin.io) dump can help me to read video with this libraries ?

Thanks in advance for your responses.

---

<div class="post-metadata">

**Author:** ![willnewton](https://avatars.discourse-cdn.com/v4/letter/w/e9c0ed/32.png) [@willnewton](https://forums.balena.io/u/willnewton)\
**Post date:** [July 21, 2017, 8:50am UTC](https://forums.balena.io/t/embedded-system-for-ia-assistant/1502/2 "2017-07-21T08:50:37Z")

</div>

There are people building video based products using resin and the Raspberry Pi. One example is:

> **[balena-io-playground/balena-cam-uv4l](https://github.com/balena-io-playground/balena-cam-uv4l)**
>
> a Raspberry Pi based network camera. Contribute to balena-io-playground/balena-cam-uv4l development by creating an account on GitHub.

I’m not sure if there is an example using OpenCV but it should certainly be possible.

---

<div class="post-metadata">

**Author:** ![Paul](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@Paul](https://forums.balena.io/u/Paul)\
**Post date:** [July 21, 2017, 8:55am UTC](https://forums.balena.io/t/embedded-system-for-ia-assistant/1502/3 "2017-07-21T08:55:51Z")

</div>

> [@willn](#):
>
> There are people building video based products using resin and the Raspberry Pi. One example is:

Thanks for your answer !!!  
I will try it , tonight 🙂

Thanks 🙂

---

<div class="post-metadata">

**Author:** ![willnewton](https://avatars.discourse-cdn.com/v4/letter/w/e9c0ed/32.png) [@willnewton](https://forums.balena.io/u/willnewton)\
**Post date:** [July 21, 2017, 9:02am UTC](https://forums.balena.io/t/embedded-system-for-ia-assistant/1502/4 "2017-07-21T09:02:01Z")

</div>

With resinOS you’re working within a Docker container so you would be able to choose a base image such as e.g. Debian/Raspbian or Arch or Alpine which come with pre-built versions of OpenCV.

---

<div class="post-metadata">

**Author:** ![Paul](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@Paul](https://forums.balena.io/u/Paul)\
**Post date:** [July 21, 2017, 9:14am UTC](https://forums.balena.io/t/embedded-system-for-ia-assistant/1502/5 "2017-07-21T09:14:15Z")

</div>

so I can use [https://hub.docker.com/r/resin/rpi-raspbian/](https://hub.docker.com/r/resin/rpi-raspbian/) right ?

To access the Dockerfile at the root of the project ,We have to deploy first and then access the dockerfile to change the base image ? or we can push our dockerfile when we deploy ?

---

<div class="post-metadata">

**Author:** ![willnewton](https://avatars.discourse-cdn.com/v4/letter/w/e9c0ed/32.png) [@willnewton](https://forums.balena.io/u/willnewton)\
**Post date:** [July 21, 2017, 9:23am UTC](https://forums.balena.io/t/embedded-system-for-ia-assistant/1502/6 "2017-07-21T09:23:12Z")

</div>

Using the resin-cam as an example:

> <https://github.com/resin-io-playground/resin-cam/blob/master/Dockerfile.template>

The FROM line selects the Debian Jessie distribution, then subsequent lines allow us to install some packages we need using APT (in your case this might be OpenCV packages).

There are more docs here:

[https://docs.resin.io/raspberrypi3/python/getting-started/](https://docs.resin.io/raspberrypi3/python/getting-started/)

Specifically for how deployment works:

[https://docs.resin.io/raspberrypi3/python/getting-started/#deploying-code](https://docs.resin.io/raspberrypi3/python/getting-started/#deploying-code)
