{"id":13430789,"url":"https://github.com/sps014/BlazorML5","last_synced_at":"2025-03-16T06:31:14.603Z","repository":{"id":36852683,"uuid":"230750289","full_name":"sps014/BlazorML5","owner":"sps014","description":" ML5 Machine Learning For Blazor with JSInterop mechanism","archived":false,"fork":false,"pushed_at":"2023-09-14T06:32:20.000Z","size":7742,"stargazers_count":54,"open_issues_count":2,"forks_count":16,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-08-31T13:49:41.069Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://blazor-ml5-sample.netlify.com/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sps014.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-12-29T12:55:58.000Z","updated_at":"2024-07-08T23:58:06.000Z","dependencies_parsed_at":"2024-04-09T22:50:39.814Z","dependency_job_id":"ea720449-b023-4a69-8b07-73ccc35f4e0d","html_url":"https://github.com/sps014/BlazorML5","commit_stats":null,"previous_names":["sps014/blazor.extensions.ml5"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sps014%2FBlazorML5","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sps014%2FBlazorML5/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sps014%2FBlazorML5/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sps014%2FBlazorML5/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sps014","download_url":"https://codeload.github.com/sps014/BlazorML5/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221656387,"owners_count":16858759,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T02:00:57.803Z","updated_at":"2024-10-27T09:30:48.623Z","avatar_url":"https://github.com/sps014.png","language":"C#","funding_links":[],"categories":["Sample Projects"],"sub_categories":["Machine Learning"],"readme":"# ML5-Blazor\n [![NuGet Package](https://img.shields.io/badge/nuget-v1.0.6%20Preview%204-orange.svg)](https://www.nuget.org/packages/BlazorML5/)\n[![NuGet Badge](https://buildstats.info/nuget/BlazorML5)](https://www.nuget.org/packages/BlazorML5)\n![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)\n\n  \n ### An Easy Machine Learning Library for Blazor.\n Now supports both Blazor Server and WASM and MAUI Hybrid.\n\n## Current Features\n1. Neural Network\n2. Image Classification\n3. Sound Classifier\n4. Object Detector (YOLO and COCOSSD based)\n5. PoseNet\n6. Sentiment Analyzer\n7. FaceMesh\n\n#### Hosted Sample\n[Live Demo](https://blazor-ml5-sample.netlify.com/) \n\n\n#### Documentation\nInstall Asp.Net Core payload and then follow [Installation Instructions here](https://github.com/sps014/BlazorML5/wiki/BlazorML5-Installation) to configure ML5 to use it from C# Blazor app.\u003cbr\u003e\nAPI documentation can be followed from [here](https://learn.ml5js.org/#/reference/index) after lib configuration.\n.\n\n#### Sample Neural Network\n```cs\n@page \"/nn\"\n@using BlazorML5\n@using BlazorML5.Helpers\n@inject IJSRuntime runtime\n\n\u003cPageTitle\u003eIndex\u003c/PageTitle\u003e\n\u003cbutton @onclick=\"AddData\"\u003eAdd Data and Train\u003c/button\u003e\n@code\n{\n    NeuralNetwork _network;\n    protected override async Task OnInitializedAsync()\n    {\n        await Ml5.InitAsync(runtime);\n\n        _network = await Ml5.NeuralNetworkAsync(new NeuralNetworkOptions()\n        {\n            Task = TaskType.Classification,\n            DataUrl = \"https://raw.githubusercontent.com/ml5js/ml5-library/main/examples/p5js/NeuralNetwork/NeuralNetwork_color_classifier/data/colorData_small.json\",\n            Debug = true,\n            Inputs = new object[]{\"r\", \"g\", \"b\"},\n            Outputs = new object[]{\"label\"}\n        });\n        _network.OnTraining+=(l,e)=\u003e\n        {\n            Console.WriteLine($\"Training: {e}%\");\n        };\n        _network.OnTrainingComplete+=async ()=\u003e\n        {\n            Console.WriteLine($\"Training Complete\");\n            await _network.ClassifyMultipleAsync(new object[]{new object[]{12,13,14},new object[]{15,16,17}});\n        };\n        _network.OnDataLoaded+=(e)=\u003e\n        {\n            Console.WriteLine($\"Data Loaded\");\n        };\n        _network.OnClassify+=async (l,e)=\u003e\n        {\n            Console.WriteLine(e.Length);\n            Console.WriteLine(e[0].Label);\n        };\n        _network.OnClassifyMultiple+=async (l,e)=\u003e\n        {\n            Console.WriteLine(e.Length);\n            Console.WriteLine(e[0].Length);\n            Console.WriteLine(e[0][0].Label);\n        };\n\n    }\n    async void AddData()\n    {\n        //data fetched from .csv file no need to manually add and hence directly training \n        //await _network.NormalizeDataAsync();\n        await _network.TrainAsync();\n    }\n\n}\n```\n\nMore samples [here](https://github.com/sps014/BlazorML5/tree/master/SampleApp/Pages)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsps014%2FBlazorML5","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsps014%2FBlazorML5","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsps014%2FBlazorML5/lists"}