Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
@Home rocking some AI projects

El Bruno elbruno

💭
@Home rocking some AI projects
View GitHub Profile
@elbruno
elbruno / azureiotmodulereadgrovetemp.py
Created Mar 8, 2021
azureiotmodulereadgrovetemp.py
View azureiotmodulereadgrovetemp.py
# Copyright (c) Bruno Capuano. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
# Using the Python Device SDK for IoT Hub:
# https://github.com/Azure/azure-iot-sdk-python
# Azure IoT dependencies installed with >> pip install azure-iot-device
# read temp and humi from DHT11 Sensor
# read values are triggered device message with the information.
import time
import os
View rpigrovetempvalues.py
# Copyright (c) Bruno Capuano. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
# Using the Python Device SDK for IoT Hub:
# https://github.com/Azure/azure-iot-sdk-python
# Azure IoT dependencies installed with >> pip install azure-iot-device
# read temp and humi from DHT11 Sensor
# read values are triggered device message with the information
import random
import time
@elbruno
elbruno / DroneDeviceAzureIoTFullDemo.py
Last active Jan 19, 2021
DroneDeviceAzureIoTFullDemo.py
View DroneDeviceAzureIoTFullDemo.py
# Copyright (c) 2020
# Author: Bruno Capuano
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
@elbruno
elbruno / DroneDeviceAzureIoT.py
Last active Jan 18, 2021
DroneDeviceAzureIoT.py
View DroneDeviceAzureIoT.py
# Copyright (c) 2020
# Author: Bruno Capuano
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
View CSharp9RecordAndWith.cs
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Security.Cryptography.X509Certificates;
namespace ConsoleApp3
{
class Program
{
static void Main(string[] args)
@elbruno
elbruno / opencvnet5winformvideofile.cs
Created Dec 8, 2020
opencvnet5winformvideofile.cs
View opencvnet5winformvideofile.cs
using System;
using System.Threading;
using System.Windows.Forms;
using OpenCvSharp;
using OpenCvSharp.Extensions;
using Size = OpenCvSharp.Size;
namespace Demo13_WinFormVideoFromFile
{
public partial class Form1 : Form
@elbruno
elbruno / opencvnet5googlenet.cs
Created Nov 25, 2020
opencvnet5googlenet.cs
View opencvnet5googlenet.cs
using System;
using System.IO;
using System.Linq;
using System.Threading;
using System.Windows.Forms;
using OpenCvSharp;
using OpenCvSharp.Dnn;
using OpenCvSharp.Extensions;
using Point = OpenCvSharp.Point;
using Size = OpenCvSharp.Size;
@elbruno
elbruno / opencvnet5agegenderestimation.cs
Created Nov 23, 2020
opencvnet5agegenderestimation.cs
View opencvnet5agegenderestimation.cs
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading;
using System.Windows.Forms;
using OpenCvSharp;
using OpenCvSharp.Dnn;
using OpenCvSharp.Extensions;
using Point = OpenCvSharp.Point;
using Size = OpenCvSharp.Size;
@elbruno
elbruno / net5opencvdacedetdnn.cs
Created Nov 17, 2020
net5opencvdacedetdnn.cs
View net5opencvdacedetdnn.cs
using System;
using System.Threading;
using System.Windows.Forms;
using OpenCvSharp;
using OpenCvSharp.Dnn;
using OpenCvSharp.Extensions;
using Point = OpenCvSharp.Point;
using Size = OpenCvSharp.Size;
namespace Demo08_WinFormFaceDetectionDNN
@elbruno
elbruno / net5opencvdacedetcascades.cs
Created Nov 16, 2020
net5opencvdacedetcascades.cs
View net5opencvdacedetcascades.cs
using System;
using System.Threading;
using System.Windows.Forms;
using OpenCvSharp;
using OpenCvSharp.Extensions;
using Point = OpenCvSharp.Point;
using Size = OpenCvSharp.Size;
namespace Demo07_WinFormFaceDetectionCascades
{