├── main.jpg ├── juanzeng.png ├── runtimes.jpg ├── .gitmodules ├── opencvsharphelper ├── yiji.ico ├── Views │ ├── YIJIMINI.png │ ├── MainWindow.xaml.cs │ └── MainWindow.xaml ├── Properties │ └── launchSettings.json ├── ViewModels │ └── MainWindowViewModel.cs ├── App.xaml ├── App.xaml.cs └── opencvsharphelper.csproj ├── Module ├── Devices │ ├── Basler.Pylon.dll │ ├── MvCameraControl.Net.dll │ ├── ICameras.cs │ └── BaslerCameras.cs ├── Common │ ├── barcode │ │ ├── sr.caffemodel │ │ └── sr.prototxt │ ├── wechat_qrcode │ │ ├── sr.caffemodel │ │ ├── detect.caffemodel │ │ └── sr.prototxt │ ├── ppocr-v2 │ │ ├── cls │ │ │ ├── inference.pdmodel │ │ │ ├── inference.pdiparams │ │ │ └── inference.pdiparams.info │ │ ├── det │ │ │ ├── inference.pdmodel │ │ │ ├── inference.pdiparams │ │ │ └── inference.pdiparams.info │ │ └── rec │ │ │ ├── inference.pdmodel │ │ │ ├── inference.pdiparams │ │ │ └── inference.pdiparams.info │ ├── Thumbnail.cs │ └── CodeHelper.cs ├── Properties │ └── launchSettings.json ├── GlobalSuppressions.cs ├── Scripts │ ├── run │ │ ├── 极坐标转笛卡尔坐标.cscript │ │ ├── new.cscript │ │ └── run.cscript │ └── new.cscript ├── Operators │ ├── Common │ │ ├── CommonViewModel.cs │ │ ├── CommonView.xaml.cs │ │ └── CommonView.xaml │ ├── Roslyn │ │ ├── RoslynViewModel.cs │ │ ├── RoslynView.xaml.cs │ │ └── RoslynView.xaml │ ├── Camera │ │ ├── CameraViewModel.cs │ │ └── CameraView.xaml.cs │ ├── Calibrate │ │ ├── CalibrateView.xaml.cs │ │ ├── CalibrateCommon.cs │ │ ├── CalibrateViewModel..cs │ │ └── FishEyeModel.cs │ ├── Canny │ │ ├── CannyView.xaml.cs │ │ └── CannyView.xaml │ ├── HogSvm │ │ ├── HogSvmView.xaml.cs │ │ └── HogSvmView.xaml │ ├── Corners │ │ ├── CornersView.xaml.cs │ │ ├── CornersViewModel.cs │ │ └── CornersView.xaml │ ├── Mask │ │ ├── MaskCopyView.xaml.cs │ │ └── MaskCopyView.xaml │ ├── Hough │ │ └── HoughLinesView.xaml.cs │ ├── Threshold │ │ └── ThresholdView.xaml.cs │ ├── Connnected │ │ ├── ConnectedView.xaml.cs │ │ ├── ConnectedView.xaml │ │ └── ConnectedViewModel.cs │ ├── Morphology │ │ ├── MorphologyView.xaml.cs │ │ └── MorphologyViewModel.cs │ └── Matching │ │ └── FeatureMatchingView.xaml.cs ├── Models │ ├── DataPool.cs │ ├── ImagePool.cs │ └── RoslynEditorModel.cs └── opencvsharpModule.cs ├── MvvmTextEditor ├── Properties │ └── launchSettings.json ├── AssemblyInfo.cs ├── MvvmTextEditor.csproj └── MvvmTextEditor.cs ├── README.md ├── .gitattributes ├── opencvsharphelper.sln └── .gitignore /main.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangLei0909/opencvsharpHelper/HEAD/main.jpg -------------------------------------------------------------------------------- /juanzeng.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangLei0909/opencvsharpHelper/HEAD/juanzeng.png -------------------------------------------------------------------------------- /runtimes.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangLei0909/opencvsharpHelper/HEAD/runtimes.jpg -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "Core"] 2 | path = Core 3 | url = https://github.com/wangLei0909/ModuleCore.git 4 | -------------------------------------------------------------------------------- /opencvsharphelper/yiji.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangLei0909/opencvsharpHelper/HEAD/opencvsharphelper/yiji.ico -------------------------------------------------------------------------------- /Module/Devices/Basler.Pylon.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangLei0909/opencvsharpHelper/HEAD/Module/Devices/Basler.Pylon.dll -------------------------------------------------------------------------------- /Module/Common/barcode/sr.caffemodel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangLei0909/opencvsharpHelper/HEAD/Module/Common/barcode/sr.caffemodel -------------------------------------------------------------------------------- /opencvsharphelper/Views/YIJIMINI.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangLei0909/opencvsharpHelper/HEAD/opencvsharphelper/Views/YIJIMINI.png -------------------------------------------------------------------------------- /Module/Devices/MvCameraControl.Net.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangLei0909/opencvsharpHelper/HEAD/Module/Devices/MvCameraControl.Net.dll -------------------------------------------------------------------------------- /Module/Common/wechat_qrcode/sr.caffemodel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangLei0909/opencvsharpHelper/HEAD/Module/Common/wechat_qrcode/sr.caffemodel -------------------------------------------------------------------------------- /Module/Common/ppocr-v2/cls/inference.pdmodel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangLei0909/opencvsharpHelper/HEAD/Module/Common/ppocr-v2/cls/inference.pdmodel -------------------------------------------------------------------------------- /Module/Common/ppocr-v2/det/inference.pdmodel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangLei0909/opencvsharpHelper/HEAD/Module/Common/ppocr-v2/det/inference.pdmodel -------------------------------------------------------------------------------- /Module/Common/ppocr-v2/rec/inference.pdmodel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangLei0909/opencvsharpHelper/HEAD/Module/Common/ppocr-v2/rec/inference.pdmodel -------------------------------------------------------------------------------- /Module/Common/ppocr-v2/cls/inference.pdiparams: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangLei0909/opencvsharpHelper/HEAD/Module/Common/ppocr-v2/cls/inference.pdiparams -------------------------------------------------------------------------------- /Module/Common/ppocr-v2/det/inference.pdiparams: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangLei0909/opencvsharpHelper/HEAD/Module/Common/ppocr-v2/det/inference.pdiparams -------------------------------------------------------------------------------- /Module/Common/ppocr-v2/rec/inference.pdiparams: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangLei0909/opencvsharpHelper/HEAD/Module/Common/ppocr-v2/rec/inference.pdiparams -------------------------------------------------------------------------------- /Module/Common/wechat_qrcode/detect.caffemodel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangLei0909/opencvsharpHelper/HEAD/Module/Common/wechat_qrcode/detect.caffemodel -------------------------------------------------------------------------------- /Module/Common/ppocr-v2/cls/inference.pdiparams.info: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangLei0909/opencvsharpHelper/HEAD/Module/Common/ppocr-v2/cls/inference.pdiparams.info -------------------------------------------------------------------------------- /Module/Common/ppocr-v2/det/inference.pdiparams.info: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangLei0909/opencvsharpHelper/HEAD/Module/Common/ppocr-v2/det/inference.pdiparams.info -------------------------------------------------------------------------------- /Module/Common/ppocr-v2/rec/inference.pdiparams.info: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangLei0909/opencvsharpHelper/HEAD/Module/Common/ppocr-v2/rec/inference.pdiparams.info -------------------------------------------------------------------------------- /Module/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "profiles": { 3 | "Opencvsharphelper": { 4 | "commandName": "Project", 5 | "nativeDebugging": false 6 | } 7 | } 8 | } -------------------------------------------------------------------------------- /MvvmTextEditor/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "profiles": { 3 | "MvvmTextEditor": { 4 | "commandName": "Project", 5 | "nativeDebugging": false 6 | } 7 | } 8 | } -------------------------------------------------------------------------------- /opencvsharphelper/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "profiles": { 3 | "opencvsharphelper": { 4 | "commandName": "Project", 5 | "nativeDebugging": false 6 | } 7 | } 8 | } -------------------------------------------------------------------------------- /Module/GlobalSuppressions.cs: -------------------------------------------------------------------------------- 1 | // This file is used by Code Analysis to maintain SuppressMessage 2 | // attributes that are applied to this project. 3 | // Project-level suppressions either have no target or are given 4 | // a specific target and scoped to a namespace, type, member, etc. 5 | 6 | using System.Diagnostics.CodeAnalysis; 7 | 8 | [assembly: SuppressMessage("Style", "IDE0090:使用 \"new(...)\"")] 9 | -------------------------------------------------------------------------------- /opencvsharphelper/ViewModels/MainWindowViewModel.cs: -------------------------------------------------------------------------------- 1 | using Prism.Mvvm; 2 | 3 | namespace opencvsharphelper.ViewModels 4 | { 5 | public class MainWindowViewModel : BindableBase 6 | { 7 | private string _title = "Prism Application"; 8 | public string Title 9 | { 10 | get { return _title; } 11 | set { SetProperty(ref _title, value); } 12 | } 13 | 14 | public MainWindowViewModel() 15 | { 16 | 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /MvvmTextEditor/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Windows; 2 | 3 | [assembly: ThemeInfo( 4 | ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located 5 | //(used if a resource is not found in the page, 6 | // or application resource dictionaries) 7 | ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located 8 | //(used if a resource is not found in the page, 9 | // app, or any theme specific resource dictionaries) 10 | )] 11 | -------------------------------------------------------------------------------- /Module/Scripts/run/极坐标转笛卡尔坐标.cscript: -------------------------------------------------------------------------------- 1 | using System; 2 | using OpenCvSharp; 3 | using System.Collections.Generic; 4 | 5 | public class NatashaScript 6 | { 7 | static public Dictionary Run(Mat src) 8 | { 9 | //添加到列表就能进入图像池 10 | Dictionary matlist = new Dictionary(); 11 | 12 | Mat recMat = new Mat(); 13 | var radius = Math.Max(src.Width, src.Height) / 2; 14 | Cv2.WarpPolar(src, recMat, new Size(radius, Cv2.PI * radius * 2), new Point2f(src.Width / 2, src.Height / 2), radius, InterpolationFlags.Linear, WarpPolarMode.Linear); 15 | matlist.Add("recMat", recMat); 16 | return matlist; 17 | } 18 | } -------------------------------------------------------------------------------- /Module/Operators/Common/CommonViewModel.cs: -------------------------------------------------------------------------------- 1 | using ModuleCore.Mvvm; 2 | using OpenCvSharp; 3 | using OpenCvSharp.WpfExtensions; 4 | using OpencvsharpModule.Models; 5 | using Prism.Commands; 6 | using Prism.Ioc; 7 | using Prism.Regions; 8 | using System.Threading.Tasks; 9 | using System.Windows.Media.Imaging; 10 | 11 | namespace OpencvsharpModule.ViewModels 12 | { 13 | public class CommonViewModel : RegionViewModelBase 14 | { 15 | public ImagePool Pool { get; set; } 16 | 17 | public CommonViewModel(IContainerExtension container, IRegionManager regionManager) : base(regionManager) 18 | { 19 | Pool = container.Resolve(); 20 | } 21 | 22 | 23 | } 24 | } -------------------------------------------------------------------------------- /opencvsharphelper/App.xaml: -------------------------------------------------------------------------------- 1 | 7 | 8 |