I’m just started to process images from the video instead of still image. What is the proper way of doing it?
- 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?
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:
UPDATE:
C++ sample code for Converting RGB video to HSV:
The color conversion function may require preallocating the memory for HSV.
Read the documentation Here.