예제 #1
0
        private async void InitConfig(NeuralNetworkOptions options, bool isCallBack = true)
        {
            DotNet      = DotNetObjectReference.Create(this);
            JSReference = await Runtime.InvokeAsync <IJSInProcessObjectReference>("import", "./_content/BlazorML5/ml5NeuralNetwork.js");

            JSReference.InvokeVoid("createNNConfigML5", Hash, options, isCallBack, DotNet);
        }
예제 #2
0
 private async void InitConfig(NeuralNetworkOptions options, bool isCallBack = true)
 {
     DotNet = DotNetObjectReference.Create(this);
     await Runtime.InvokeVoidAsync("createNNConfigML5", Hash, options, isCallBack, DotNet);
 }
예제 #3
0
 public NeuralNetwork(IJSRuntime jSRuntime, NeuralNetworkOptions options)
 {
     Runtime = jSRuntime;
     Hash    = Helper.UIDGenerator();
     InitConfig(options);
 }