-
Notifications
You must be signed in to change notification settings - Fork 33
Default motion detection example for v0.6 throws "Unhandled exception. System.TypeInitializationException: The type initializer for 'Gdip' threw an exception." #195
Comments
Update, issue looks to be fixed by
as suggested here dotnet/core#2746 |
Yes, I was going to suggest that, apologies - I thought that was already mentioned in the wiki but possibly not. I would definitely advise cloning the master branch as it features many improvements to the motion detection API, including huge performance improvements. |
@techyian Yes, thank you, I cloned and built master on a Win 10 machine, then dropped dlls into project on my Pi, but encountered some strange behavior. When I tried to run a basic video stream, video was in 1280x720 resolution and trying to change it via
so, I thought Alpha was still at an early stage and went back to V0.6. P.S. thank you for great lib. |
Thanks for the positive feedback. Could you provide an example code snippet? I may be able to see where the issue is. |
@techyian I sent out an invitation to the private repo with my Pi surveillance fun-project. Link to particular snapshot: https://github.com/IKoshelev/reseye-sharp/blob/1720383726bf936b6fad17b7f3a94a06aeef9bbd/StreamSplitterExperiment/Program.cs
|
@techyian I've forked this repo, added a playground project and replicated P.S. Which camera module are you using? I'm getting this issue on OV5647. |
@techyian Can you maybe activate discussions for this repo? https://docs.github.com/en/discussions/quickstart I've done some experiments with |
@IKoshelev I just ran a quick test and I see that Because motion detection is my focus, I have been very interested in seeing what the overall .NET 5 improvements look like, but I like your thinking about intrinsics, too. That would be a big change for me (I'm running 32 bit at the moment) but probably worthwhile. Hi @techyian -- hope you're well. |
@MV10 I tried intrinsics with Raspbian 64. They worked great, the loop that took 60 ms in plain C# took nole 2 ms with intrinsics. BUT Raspbian 64 is in beta and camera does not work yet at all. Not to mention, I'm guessing MMAL bindings for x64 would be different? |
@IKoshelev Any news about the "our of resources" error? I`m using the hq-camera with my pi, but when I change the resolution to more the 2mp I get the "our of resources" error... Would be grate to be able to use the last version with hq-camera... |
I have a .NET 5 app, referencing MMALSharp v0.6, building and running on Pi 4 (2Gb) Raspbian Lite, copypasted default motion detection example verbatim from https://github.com/techyian/MMALSharp/wiki/Advanced-Examples/93b717ebbf4502f3a6c1ef99137a6b416dd0c3e6#FrameDiffDetection , getting an exception:
The text was updated successfully, but these errors were encountered: