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) |
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 |
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; |
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; |
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 |
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 | |
{ |
View net5opencvlivecamera.cs
using System; | |
using System.Threading; | |
using System.Windows.Forms; | |
using OpenCvSharp; | |
using OpenCvSharp.Extensions; | |
using Point = OpenCvSharp.Point; | |
using Size = OpenCvSharp.Size; | |
namespace Demo04_WinForm | |
{ |
View net5opencvtakephoto.cs
using System; | |
using System.Windows.Forms; | |
using OpenCvSharp; | |
namespace Demo03_WinForm | |
{ | |
public partial class Form1 : Form | |
{ | |
private VideoCapture _capture; | |
private Mat _image; |
View opencvsharpnet5Fasteffect.cs
public Mat applyEffect(Mat image) | |
{ | |
var newImage = new Mat(); | |
Cv2.CvtColor(image, newImage, ColorConversionCodes.BGR2GRAY, 0); | |
KeyPoint[] keypoints = Cv2.FAST(newImage, 50, true); | |
foreach (KeyPoint kp in keypoints) | |
newImage.Circle((Point)kp.Pt, 3, Scalar.Red, -1, LineTypes.AntiAlias, 0); | |
return newImage; | |
} |
NewerOlder