Comments (6)
Thank you very much for reporting.
The MagicLeapFaceDetectionExample is based on the VideoCaptureExample.
Does VideoCaptureExample with the following line commented out work in rawVideoCaptureMode for more than 2 minutes?
https://github.com/magicleap/MagicLeapUnitySDK/blob/master/Assets/MagicLeap/Examples/Scripts/VideoCaptureExample.cs#L136-L143
from magicleapwithopencvforunityexample.
It is already commented out and unfortunately, it pauses after 2 minutes. I tried including those commented out parts and increased the max recording time to 100 minutes but it did not change anything. I think memory overloads after around 2 minuted but disposing variable like "yuvMat" or "rgbMat" crashes the app without even starting.
I checked methods like "OnDestroy", "EndCapture", "DisableMLCamera", "OnDisable", etc. and none of them are being entered before the pause. In addition, I checked the bool variable "_isCapturing", "_isCameraConnected", "_hasStarted" and "_appPaused" to see if they are chenged to trigger a pause but they are not. "_appPaused" is false even though the capture stops. In addition, capture resumes when I press the bumper again.
from magicleapwithopencvforunityexample.
Does VideoCaptureExample's rawVideoCaptureMode work for more than 2 minutes?
from magicleapwithopencvforunityexample.
Yes, it definitely runs for more than 2 minutes and actually looks like it can go on forever.
Update: I increased the value of "scaleFactor" parameter in "detectMultiScale" to decrease the workload caused by detection and now the application runs for at least 10 minutes which is a big upgrade. However, now that the quality of detection decreased due to the increase in "scaleFactor", sometimes I get multiple bounding boxes for a single face and I want to select the one with the higher confidence. I checked the code but couldn't find a way to obtain bounding box confidence values. Is there way to get them?
from magicleapwithopencvforunityexample.
It is recommended to adjust the minNeighbors parameter.
https://stackoverflow.com/questions/22249579/opencv-detectmultiscale-minneighbors-parameter
For confidence levels, it seems you can get rejectLevels and levelWeights.
https://enoxsoftware.github.io/OpenCVForUnity/3.0.0/doc/html/class_open_c_v_for_unity_1_1_objdetect_module_1_1_cascade_classifier.html#ab492876a1b8dfcb4986acac71c24ba97
from magicleapwithopencvforunityexample.
I fixed the issue by slightly decreasing the scale factor so that it applies a more thorough detection.
from magicleapwithopencvforunityexample.
Related Issues (15)
- Webcam Texture & WebcamDevice: The type or namespace name `WebCamTexture' could not be found. Are you missing an assembly reference? HOT 15
- MagicLeapFaceDetectionExample - Only Blank Screen on Magic Leap HOT 12
- Recording video while running the app and getting rid of the zoomed in view behind the face detection UI HOT 5
- Object detection with MobileNet HOT 2
- MagicLeapImageCaptureExample removed in version 1.0.6 HOT 1
- no support for SDK 0.26. and Lumin OS 0.98
- Detecting but not showing the name of the object HOT 3
- Unity 2019.x - custom manifest HOT 2
- Diagonal Red Line
- Custom Object Detector
- MagicLeapDnnExample does not do anything
- Unable to find Entry Point HOT 1
- MagicLeapArUcoExample is just a blank screen HOT 8
- DNN Example with Torch HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magicleapwithopencvforunityexample.