Jump to content
  • Advertisement

musafir2007

Member
  • Content Count

    137
  • Joined

  • Last visited

Community Reputation

201 Neutral

About musafir2007

  • Rank
    Member

Personal Information

  • Interests
    Programming
    QA
  1. I am trying to save cropped video capture to a file. It all works well if I don't crop using croppedFrame = new Mat(frame, cropArea); writer1.Write(croppedFrame); and just do this instead writer1.Write(frame); With the following code, a file is created on the computer but the size is only 6 Kb and I can't open it. What am I doing wrong. thanks! private void ProcessFrame(object sender, EventArgs arg) { Rectangle cropArea = new Rectangle(10, 10, 533, 400); Mat frame = new Mat(); bool validframeRecieved = camera1Capture.Retrieve(frame); if (validframeRecieved && validFrame2Recieved) { croppedFrame = new Mat(frame, cropArea); imageBox1.Image = croppedFrame; writer1.Write(croppedFrame); } }
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!