fork(1) download
  1. using Emgu.CV;
  2. using Emgu.CV.Structure;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.ComponentModel;
  6. using System.Data;
  7. using System.Drawing;
  8. using System.Linq;
  9. using System.Text;
  10. using System.Windows.Forms;
  11.  
  12. namespace 照片背景合成
  13. {
  14. public partial class Form1 : Form
  15. {
  16. private Capture cap = null;
  17. public Form1()
  18. {
  19. InitializeComponent();
  20. }
  21. private void Form1_Load(object sender, EventArgs e)
  22. {
  23. cap = new Capture(0);
  24. Application.Idle += new EventHandler(Application_Idle);
  25. }
  26. void Application_Idle(object sender, EventArgs e)
  27. {
  28. Image<Bgr, Byte> frame = cap.QueryFrame();
  29. pictureBox1.Image = frame.ToBitmap();
  30. }
  31. }
  32. }
  33.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(1,7): error CS0246: The type or namespace name `Emgu' could not be found. Are you missing an assembly reference?
prog.cs(2,7): error CS0246: The type or namespace name `Emgu' could not be found. Are you missing an assembly reference?
prog.cs(6,14): error CS0234: The type or namespace name `Data' does not exist in the namespace `System'. Are you missing `System.Data' assembly reference?
prog.cs(10,22): error CS0234: The type or namespace name `Forms' does not exist in the namespace `System.Windows'. Are you missing `System.Windows.Forms' assembly reference?
prog.cs(14,34): error CS0246: The type or namespace name `Form' could not be found. Are you missing an assembly reference?
prog.cs(16,17): error CS0246: The type or namespace name `Capture' could not be found. Are you missing `System.Text.RegularExpressions' using directive?
Compilation failed: 6 error(s), 0 warnings
stdout
Standard output is empty