Comments (15)
Thank you for your inquiry.
Could you edit these files?
WebCamTextureToMat() method of Utils.cs
Examples using the WebCamTextureToMatHelper under the Examples folder
from magicleapwithopencvforunityexample.
Thank you for your inquiry.
Could you edit these files?
WebCamTextureToMat() method of Utils.cs
Examples using the WebCamTextureToMatHelper under the Examples folder
That worked, thank you!
from magicleapwithopencvforunityexample.
I would like to convert this example to real-time detection, for example using the YoloObjectDetectionExample- would that be possible? What would need to be added/changed?
from magicleapwithopencvforunityexample.
Could you change all "WebCamTextureToMatHelper" in the Example code to "MLCameraPreviewToMatHelper"?
https://github.com/EnoxSoftware/OpenCVForUnity/blob/master/Assets/OpenCVForUnity/Examples/MainModules/objdetect/FaceDetectionExample/FaceDetectionWebCamTextureExample.cs#L19
from magicleapwithopencvforunityexample.
Tried it but didn't seem to work? I got all these errors - would you know how to resolve? Thanks so much for your help!
from magicleapwithopencvforunityexample.
Could you add the following line to example code?
using MagicLeapWithOpenCVForUnity.UnityUtils.Helper;
using UnityEngine.XR.MagicLeap;
from magicleapwithopencvforunityexample.
OK - did that and now I get this: WebCamTextureToMatHelper' is an ambiguous reference between
OpenCVForUnity.UnityUtils.Helper.WebCamTextureToMatHelper' and `MagicLeapWithOpenCVForUnity.UnityUtils.Helper.WebCamTextureToMatHelper'
from magicleapwithopencvforunityexample.
FaceDetectionWebCamTextureExample ( MLCameraPreviewToMatHelper version )
FaceDetectionWebCamTextureExample.cs.txt
from magicleapwithopencvforunityexample.
still same errors. Just to be sure- I want to have the same scene as OpenCVImageCapture except that it'll detect objects based on video feed instead of the photo feed, I don't want to detect faces, just same object classes in Yolo.
from magicleapwithopencvforunityexample.
I succeeded in building mpk with the script below.
DnnObjectDetectionWebCamTextureExample.cs.txt
from magicleapwithopencvforunityexample.
I succeeded in building mpk with the script below.
DnnObjectDetectionWebCamTextureExample.cs.txt
And that provided you with real time object detection using video? I updated the DnnObjectDetectionWebCamTextureExample.cs to the one you provided and I keep having that same error about the MLCameraPreviewToMatHelper:
Assets/OpenCVForUnity/Examples/MainModules/dnn/DnnObjectDetectionWebCamTextureExample.cs(251,62): error CS0246: The type or namespace name `MLCameraPreviewToMatHelper' could not be found. Are you missing an assembly reference?
Assets/OpenCVForUnity/Examples/MainModules/dnn/DnnObjectDetectionWebCamTextureExample.cs(70,9): error CS0246: The type or namespace name `MLCameraPreviewToMatHelper' could not be found. Are you missing an assembly reference?
Assets/OpenCVForUnity/Examples/MainModules/objdetect/FaceDetectionExample/FaceDetectionWebCamTextureExample.cs(50,9): error CS0246: The type or namespace name `MLCameraPreviewToMatHelper' could not be found. Are you missing an assembly reference?
Really appreciate all your help! Thank you!
from magicleapwithopencvforunityexample.
I'm trying to perform face detection on Magic Leap's live camera feed. Here are what I did. I attached the ML version of FaceDetectionWebCamTexture.cs and MLCameraPreviewToMatHelper.cs to the quad in this scene OpenCVForUnity/Examples/MainModules/objdetect/FaceDetectionExample/FaceDetectionWebCamTextureExample.unity.
There's no error, but when I deployed to Magic Leap, the quad is simply white, I see no texture from the camera feed let alone any detection. Any idea what could go wrong? BTW, I deleted some of the folders in OpenCVForUnity/Examples/ since there are errors regarding the WebCamTexture stuff.
from magicleapwithopencvforunityexample.
same problem here @JossSun, anyone got output?
from magicleapwithopencvforunityexample.
I couldn't able to find a camera capture option in publishing settings
from magicleapwithopencvforunityexample.
Please copy manifest.xml to add camera capture privileges.
https://creator.magicleap.com/learn/guides/migrate-unity-editors
NEW with 2019.x - Use a custom manifest to add privileges and modify your API level. A template manifest is located in Assets/MagicLeap/Examples/Plugins/Lumin/manifest.xml. Copy it to Assets/Plugins/Lumin/manifest.xml and modify it.
from magicleapwithopencvforunityexample.
Related Issues (15)
- MagicLeapFaceDetectionExample - Only Blank Screen on Magic Leap HOT 12
- Face detection app pauses after around 2 minutes HOT 6
- 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.