-
Notifications
You must be signed in to change notification settings - Fork 33
How to use CircularBufferCaptureHandler combined with another (continious capture) handler #183
Comments
Hey, thanks for the feedback, it's really appreciated. @MV10 has been making some great progress improving the motion detection feature built into the library. We now have low latency motion detection and are able to record video / take still photos when motion is detected. It's still a work in progress and is only available in the current dev branch but I'd recommend giving that a try first. If you want an example which shows how to take still images and record video, you can check out Jon's example in #169. For reference there's also #175 and the wiki example on motion detection here. Hopefully the example in #169 will get you close enough to where you're looking to be, but please let me know if you're struggling with anything. |
Hey Ian, Yes this example is kinda what I was looking for, thanks for the reference - should have found that one myself. With this example I got it to work with version 0.6.0. I'll post my solution below if anyone is looking to do something similar.
|
Is it possible that the V0.6 version of CircularBufferCaptureHandler generates an OutOfRangeException/OutOfMemoryExceptions due to the byte array not being overwritten but constantly extended until you hit the max size? I see this has been resolved with the changes in the dev branch, any idea when v0.7 will be released? |
Not that I recall, do you have a commit ID that you think it was fixed in? I don't have an ETA for 0.7, I'm very busy with other work at the moment and there are some rather large pieces of work I was hoping to get into 0.7 but these may have to be pushed back. I'd like to get the motion detection improvements stable before releasing anything. Pre-release builds can be found on MyGet. |
Seems I was looking on Branch V0.6 instead of Master which contains the current nugget. so ignore my last comment. |
Yes, I need to remove those branches so thanks for reminding me. Master is latest stable in NuGet or you can also use the tags. |
Branches removed. Closing. |
Hi,
First of all I would like to thank you (@techyian) for creating this library! It's great!
Secondly I'm having some issues connecting a CircularBufferCaptureHandler and my own handler together.
Grand picture:
What I'm trying to accomplish is a program that when it detects motion it will send the frame to a computer vision algorithm to identify the motion. If the computer vision algorithm returns a specific value I open up the garden hoze and a second video (capturing the whole scaring away the pigeon part) should be send to the cloud.
Using some of the examples in the docmentation and some answers to the issues here, I was able to create this, which works perfectly for the motiondetection with Emgu.CV:
(source: https://github.com/techyian/MMALSharp/issues/117)
I've been trying to connect an additional (private static) CircularBufferCaptureHandler to continiously capture the videostream. However I can't get it to work. Receiving a lot of mmal_port errors.
What I tried was something like this:
Is it possible to get a small example of how I could use the CircularBufferCaptureHandler in addition to another handler?
Thanks in advance!
The text was updated successfully, but these errors were encountered: