- Home /
Unity Web Camera Crash
Hi, I'm trying to use web camera for machine learning, i have my web camera texture at the Start
private void Start()
{
this._webTexture = new WebCamTexture();
this._rawImage.texture = this._webTexture;
this._webTexture.Play();
}
It works fine until this function of UWP: https://docs.microsoft.com/en-us/uwp/api/windows.media.capture.frames.mediaframereader.startasync?view=winrt-19041 Аfter that the camera crashes (like freezing texture) and i can't play it again. Is there another way to get webcam texture from Unity API and pass image to raw texture in Unity ? Thanks in advance.
Your answer
Follow this Question
Related Questions
Why Game Frames per second drops to almost zero on SurfacePro? 1 Answer
Building as UWP for PC runs very slowly when PC Standalone runs very smoothly. 2 Answers
VCRuntime errors with Universal Windows Platform, but it runs within Unity 0 Answers
InputField cannot enter Chinese after publishing the game to UWP. 0 Answers