FJofre
Posts: 3
Joined: Fri Jun 20, 2014 12:54 pm

How to (video)? Stream (all) and record (only ROI)

Thu Jul 03, 2014 4:08 pm

Hi, this is my first post here! I'm starting in this subjects, (and my knowledge about it is … well, not at all!)

So, I'd like some advice on how to do accomplish this!!

What I'd like to do: connect the raspicam (or a USB webcam?, I have both!), stream video, but record only a region of interest (ROI), in several intervals. For example, a continuous stream of video, and record chunks of 6-10 secs each, with ~1 sec on interval.

For making this more interesting, the stream (the viewing to if) could have a box on it, which is the selected ROI. So, whoever puts him/her in front of the camera, he/she should now what the ROI is.

The ideal format should be rgb, so I´d like to record the cumulative value in a vector (or a file) of each colour per frame in the ROI. And the preferred language is C.

Is that even possible?

I've done this in Matlab, but I cannot transfer it to C!!!

I'm afraid I do not have the proper knowledge to implement it, so one ore time, I'd like to thank any help on this!

Fernando

Reinhard
Posts: 2
Joined: Thu Sep 18, 2014 1:47 pm

Re: How to (video)? Stream (all) and record (only ROI)

Mon Sep 22, 2014 7:02 pm

@Fernando
I just found your question regarding straming the Pi cam and making cropped steady shots in parallel.
Did you find a solution for this?
I tried with RPi Cam Web Interface which streams the Pi cam perfectly and allows to make steady shots. However the problem for me is that setting the region of interest has a bug in calculating the X- Y- shift.

If you found a solution please put in in a post here.
Thank you
Reinhard

FJofre
Posts: 3
Joined: Fri Jun 20, 2014 12:54 pm

Re: How to (video)? Stream (all) and record (only ROI)

Mon Sep 22, 2014 9:10 pm

Hi Reinhard,
To be honest, I dropped this because I could not figure out how to do it!
At the end, I recorded a 640x480 video and then processed it with OpenCV.
Cheers,
Fernando

Return to “Automation, sensing and robotics”