Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8938891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:43:51+00:00 2026-06-15T10:43:51+00:00

I am doing a project on COmputer Vision and I have a question. After

  • 0

I am doing a project on COmputer Vision and I have a question. After I have successfully loaded a video using OpenCV, I would like to extract the video frames and view their similarities. I have been told I need to use a matrix to achieve this purpose. How would I go about doing this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T10:43:52+00:00Added an answer on June 15, 2026 at 10:43 am

    When you capture a video frame you get an instance of the Mat Class. This is already a Matrix of your video frames images pixels.

    To view similarities you will need to capture a frame and then capture another, once you have two frames you can run a comparison.

    You will need to explain further exactly what you want to achieve as there are lots of ways to compare images and get different results using two frames of a video capture.

    Mat videoFrame, previousFrame;
    VideoSource myCam;
    // initialise your video frame.
    prepVideoCam();
    
    // start a loop{
        myCam >> videoFrame; // Captures the current frame to videoFrame.
        if(i_have_previousFrame)
            // do some processing if i have a previous frame.
    
        videoFrame.copyTo(previousFrame);
    // back to loop
    

    You will find that videoFrame is a matrix already.

    To help you on your way start here http://code.opencv.org/projects/opencv/wiki if you haven’t already done so. OpenCV moved from an old website to a new one and i believe this is the latest.

    Download this document http://docs.opencv.org/opencv_tutorials.pdf

    This document will explain the differences and provide you with lots of tutorials to work your way through.

    The section “2.1 Mat – The Basic Image Container” begins to explain the differences and updates to openCV between v1 and v2. It also shows how to use them interchangeably, but personally stick to v2 syntax and classes.

    Take your time in this section as it can quickly get complicated.

    Also note that when you install opencv, all of the source files for these tutorials i think are a part of the package, or at least there is a file somewhere with them all in.

    Hope that helps further.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am doing project euler question 33 and have divised a refactor to solve
I am doing a video player. I have the following in my project folder:
I am currently doing a project called eye controlled cursor using MATLAB. I have
I am planning on doing a small arduino project and would like to know
I have a project that is source controlled using TFS. I was doing some
I was doing a project for computer course on programming concepts. This project was
I've been doing project Euler for a few days, and I have to admit
I'm doing project on object detection using javacv in that I went through couple
After doing a project with WPF and getting very much attached to it's excellent
Im doing a project where Alice and Bob send each other messages using the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.