Skip to content

stephenctw/openvino-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

Azure IoT Edge OpenVino

Using this module, developers can build Azure IoT Edge solutions with Intel OpenVino toolkit.

Target Device Setup

Platform Compatibility

Azure IoT Edge is designed to be used with a broad range of operating system platforms. OpenVino module has been tested on the following platforms:

  • UP2 board with ubuntu 16.04 operating system

Device Setup

Build Environment Setup

OpenVino module is a C++ application, which is developed and built based on the guidelines in Azure IoT Edge document. Please follow this link to setup the build environment. Also check Intel website for more about openvino toolkit.

Basic requirement:

  • Docker CE

HowTo Run

Run as an IoT Edge module

Please follow the link to deploy the module as an IoT Edge module.

If edge device is connected to a monitor, run xhost command to enable display from containers.

xhost +

In the Container Create Option section, enter the following.

{
    "NetworkingConfig":
    {
        "EndpointsConfig":{
            "host":{}
        }
    },
    "Env":["DISPLAY=:0","DEVICE=GPU"],
    "HostConfig":
    {
        "NetworkMode":"host",
        "IpcMode":"host",
        "Devices":
        [
            {
                "PathOnHost":"/dev/dri",
                "PathInContainer":"/dev/dri",
                "CgroupPermissions":"rwm"
            },
            {
                "PathOnHost":"/dev/video0",
                "PathInContainer":"/dev/video0",
                "CgroupPermissions":"rwm"
            }
        ],
        "Binds":["/tmp.X11-unix:/tmp/.X11-unix"]
    }
}

See result on Device Explorer

10/1/2018 4:00:37 PM> Device: [OpenVinoDev01], Data:[{"faces":"1","male":"1","female":"0","timestamp":"2018-10-01 08:00:32"}]
10/1/2018 4:00:42 PM> Device: [OpenVinoDev01], Data:[{"faces":"1","male":"1","female":"0","timestamp":"2018-10-01 08:00:37"}]

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published