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

  • SEARCH
  • Home
  • 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 8713677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:23:57+00:00 2026-06-13T05:23:57+00:00

I’m just started to process images from the video instead of still image. What

  • 0

I’m just started to process images from the video instead of still image. What is the proper way of doing it?

  1. Do we usually process every frame of image?
    • means, if I want to change the RGB to HSV colour space etc. what do people usually do here?

Need some guide here since I’ve no experience in video processing.

Thanks all.

EDIT:
Does anyone know why there is a significant lag between the video processed in opencv compared to original video even though it’s just converting from RGB to HSV?

  • 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-13T05:23:58+00:00Added an answer on June 13, 2026 at 5:23 am

    Video processing is always done frame by frame. e.g. if you want to convert RGB video to HSV, you will do the following procedure:

    1. Open A Video File.
    2. Read a color frame (RGB frame).
    3. Convert the frame from RGB to HSV color space.
    4. Do whatever you want with the converted frame.
    5. Go to step 2.

    UPDATE:

    C++ sample code for Converting RGB video to HSV:

    #include<iostream>
    #include<string>
    #include<opencv2/core/core.hpp>
    #include<opencv2/highgui/highgui.hpp>
    #include<opencv2/imgproc/imgproc.hpp>
    
    using namespace std;
    
    int main()
    {
       cv::VideoCapture capture;
       cv::Mat RGB, HSV;
    
       string videoPath = "C:/video.avi";
    
       if(!capture.open(videoPath))
       {
         cout<<"Video Not Found"<<endl;
         return;
       }
    
        while(true)
        {
           capture>>RGB;  //Read a frame from the video
    
           if(RGB.empty()) //Check if the frame has been read correctly or not
           {
              cout<<"Capture Finished"<<endl;
              break;
           }
    
           cv::cvtColor(RGB,HSV,CV_BGR2HSV);
    
           cv::imshow("HSV Image",HSV);
           cv::waitKey(10);
        }
    
        capture.release();
        return 0;
    }
    

    The color conversion function may require preallocating the memory for HSV.
    Read the documentation Here.

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

Sidebar

Related Questions

I am using jsonparser to parse data and images obtained from json response. When
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am doing a simple coin flipping experiment for class that involves flipping a
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a text area in my form which accepts all possible characters from
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
Does anyone know how can I replace this 2 symbol below from the string
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out

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.