You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Debug.LogWarning("To use this example, need to add \"OPENCV_USE_UNSAFE_CODE\" to Scripting Define Symbols in Player Settings. In addition, unsafe code requires the `unsafe' command-line option to be specified.");
683
+
Debug.LogWarning("Error : Allow 'unsafe' Code is disable. Please enable Allow 'unsafe' Code. [MenuItem]->[Tools]->[OpenCV for Unity]->[Open Setup Tools]->[Enable Use Unsafe Code]");
Copy file name to clipboardExpand all lines: Assets/OpenCVForUnity/Examples/MainModules/dnn/FacialExpressionRecognitionExample/FacialExpressionRecognizer.cs
+10-7
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@
4
4
usingOpenCVForUnity.DnnModule;
5
5
usingOpenCVForUnity.ImgprocModule;
6
6
usingOpenCVForUnity.ObjdetectModule;
7
+
usingOpenCVForUnity.UnityUtils;
7
8
usingSystem;
8
9
usingSystem.Collections.Generic;
9
10
usingSystem.Linq;
@@ -172,7 +173,7 @@ public virtual void visualize(Mat image, List<Mat> results, Mat faces, bool prin
172
173
StringBuildersb=null;
173
174
174
175
if(print_results)
175
-
sb=newStringBuilder();
176
+
sb=newStringBuilder(64);
176
177
177
178
for(inti=0;i<results.Count;++i)
178
179
{
@@ -186,7 +187,7 @@ public virtual void visualize(Mat image, List<Mat> results, Mat faces, bool prin
Copy file name to clipboardExpand all lines: Assets/OpenCVForUnity/Examples/MainModules/dnn/HandPoseEstimationMediaPipeExample/HandPoseEstimationMediaPipeExample.cs
0 commit comments