// // XmlIni.cs // // Author: Ervin, Jung // <${AuthorEmail}> // // Copyright (c) 2011 Ervin, Jung // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of
using System; using Gtk; using GLib; using Emgu.CV; using Emgu.CV.UI; using Emgu.CV.Structure; using Emgu.CV.CvEnum; using System.IO; using System.Drawing; public partial class MainWindow : Gtk.Window { private Capture capture = null; private Bitmap bitmap = null; private MemoryStream memory = new MemoryStream (); private HaarCascade haar; public MainWindow () : base(Gtk.WindowType.Toplevel) { Build (); capture = new Capture (); haar = new HaarCascade ("haarcascade_frontalface_alt2.xml");
| Csatolmány | Méret |
|---|---|
| WebCam.tar_.gz | 413.22 KB |
public class UnixTime { public static DateTime UnixBegun = new DateTime(1970, 1, 1, 0, 0, 0); private Int64 Second; public UnixTime(Int64 second) { Second = second; } public static Int64 GetUnixTime() { return new UnixTime((Int64)(System.DateTime.UtcNow - UnixBegun).TotalSeconds); } public static UnixTime GetUnixTimeFromDateTime(System.DateTime datetime) { return new UnixTime((Int64)(datetime - UnixBegun).TotalSeconds);