Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/docfx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ jobs:

- name: Build Documentation
shell: pwsh
run: docfx docfx/docfx.json
run: docfx docs/docfx/docfx.json

- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v4
with:
path: docfx/_site
path: docs/docfx/_site

deploy:
needs: build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
- name: Rename
run: |
for f in $(find $PWD -maxdepth 1 -regex ".+\.s?nupkg"); do
dotnet run --project tool/OpenCvSharp.NupkgBetaRemover --configuration Release -- "$f"
dotnet run --project src/tools/OpenCvSharp.NupkgBetaRemover --configuration Release -- "$f"
done

- name: Verify no beta versions remain
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
uses: actions/checkout@v6
with:
fetch-depth: 1
submodules: true

- name: Install .NET
uses: actions/setup-dotnet@v5
Expand Down Expand Up @@ -146,7 +145,7 @@ jobs:
- name: Run ReleaseMaker
shell: powershell
run: |
cd "${env:GITHUB_WORKSPACE}\tool\OpenCvSharp.ReleaseMaker"
cd "${env:GITHUB_WORKSPACE}\src\tools\OpenCvSharp.ReleaseMaker"
dotnet run -c Release --runtime win-x64 -- "${env:GITHUB_WORKSPACE}" "${env:GITHUB_WORKSPACE}\artifacts" ${{env.OPENCV_VERSION}}

- name: Upload NuGet packages and Release packages
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,5 @@ UpgradeLog*.XML
/test/OpenCvSharp.Tests/*.dll
Help
/tesseract_files
/opencv_artifacts
/tesseract_artifacts
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "samples"]
path = samples
url = https://github.com/shimat/opencvsharp_samples.git
10 changes: 4 additions & 6 deletions OpenCvSharp.sln
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,11 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "OpenCvSharpExtern", "src\Op
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenCvSharp.DebuggerVisualizers", "src\OpenCvSharp.DebuggerVisualizers\OpenCvSharp.DebuggerVisualizers.csproj", "{4232CB4A-DFE3-46CA-9503-C5F1798BAED3}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tool", "tool", "{A6E578C0-A34A-4CCF-A808-CBAC81CB48C0}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OpenCvSharp.NupkgBetaRemover", "tool\OpenCvSharp.NupkgBetaRemover\OpenCvSharp.NupkgBetaRemover.csproj", "{CC19F9A5-01A7-4BDF-B34C-CF56F46A474A}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OpenCvSharp.NupkgBetaRemover", "src\tools\OpenCvSharp.NupkgBetaRemover\OpenCvSharp.NupkgBetaRemover.csproj", "{CC19F9A5-01A7-4BDF-B34C-CF56F46A474A}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OpenCvSharp.WpfExtensions", "src\OpenCvSharp.WpfExtensions\OpenCvSharp.WpfExtensions.csproj", "{01FD66CE-F81A-4641-BE30-3CF9DE84D6D5}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OpenCvSharp.ReleaseMaker", "tool\OpenCvSharp.ReleaseMaker\OpenCvSharp.ReleaseMaker.csproj", "{1C399497-5240-439A-879A-4ACB34C409AE}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OpenCvSharp.ReleaseMaker", "src\tools\OpenCvSharp.ReleaseMaker\OpenCvSharp.ReleaseMaker.csproj", "{1C399497-5240-439A-879A-4ACB34C409AE}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{47A5316C-49F2-402A-A04C-0A0AAA397F47}"
ProjectSection(SolutionItems) = preProject
Expand Down Expand Up @@ -216,9 +214,9 @@ Global
{B4B78BB2-1B7C-4CF2-BC72-43789EEDCE00} = {E048D213-B3B9-453F-9A41-29FDEB0D496B}
{8E7279F8-F801-4672-B42F-1ED2C68B16A4} = {E048D213-B3B9-453F-9A41-29FDEB0D496B}
{4232CB4A-DFE3-46CA-9503-C5F1798BAED3} = {E048D213-B3B9-453F-9A41-29FDEB0D496B}
{CC19F9A5-01A7-4BDF-B34C-CF56F46A474A} = {A6E578C0-A34A-4CCF-A808-CBAC81CB48C0}
{CC19F9A5-01A7-4BDF-B34C-CF56F46A474A} = {E048D213-B3B9-453F-9A41-29FDEB0D496B}
{01FD66CE-F81A-4641-BE30-3CF9DE84D6D5} = {E048D213-B3B9-453F-9A41-29FDEB0D496B}
{1C399497-5240-439A-879A-4ACB34C409AE} = {A6E578C0-A34A-4CCF-A808-CBAC81CB48C0}
{1C399497-5240-439A-879A-4ACB34C409AE} = {E048D213-B3B9-453F-9A41-29FDEB0D496B}
{FFD602AA-0A08-40DD-8ACD-7F5A3BA51DEC} = {1F113DD0-E292-47A5-8EFF-3FB5D0869BF3}
{36F6A125-3633-441E-9794-97EB91E50F20} = {1F113DD0-E292-47A5-8EFF-3FB5D0869BF3}
EndGlobalSection
Expand Down
2 changes: 1 addition & 1 deletion docfx/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
{
"files": [
"images/**",
"../web/img/**"
"../docs/img/**"
]
}
],
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
76 changes: 76 additions & 0 deletions docs/docfx/docfx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"metadata": [
{
"src": [
{
"files": ["OpenCvSharp/OpenCvSharp.csproj"],
"src": "../../src"
}
],
"dest": "api",
"disableGitFeatures": false,
"disableDefaultFilter": false,
"properties": {
"TargetFramework": "net8"
}
}
],
"build": {
"content": [
{
"files": [
"api/**.yml",
"api/index.md"
]
},
{
"files": [
"articles/**.md",
"articles/**/toc.yml",
"toc.yml",
"*.md",
"../../*.md"
]
}
],
"resource": [
{
"files": [
"images/**",
"../img/**"
]
}
],
"dest": "_site",
"globalMetadata": {
"_appName": "OpenCvSharp",
"_appTitle": "OpenCvSharp Documentation",
"_appFooter": "OpenCvSharp - .NET wrapper for OpenCV",
"_enableSearch": true,
"_enableNewTab": true,
"_disableContribution": false,
"_gitContribute": {
"repo": "https://github.com/shimat/opencvsharp",
"branch": "main"
},
"_gitUrlPattern": "github",
"pdf": false
},
"globalMetadataFiles": [],
"fileMetadataFiles": [],
"template": [
"default",
"modern",
"templates/material"
],
"postProcessors": [],
"markdownEngineName": "markdig",
"noLangKeyword": false,
"keepFileLink": false,
"cleanupCacheHistory": false,
"disableGitFeatures": false,
"xref": [
"https://xref.docs.microsoft.com/query?uid={uid}"
]
}
}
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions docs/embedded-builds.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ Two build scripts are provided for convenience:

| Script | Description | Output Size |
|--------|-------------|-------------|
| [build-opencvsharp-arm64.sh](tool/build-opencvsharp-arm64.sh) | Full build with all features and contrib modules | ~140MB |
| [build-opencvsharp-minimal-arm64.sh](tool/build-opencvsharp-minimal-arm64.sh) | Minimal build for basic camera capture | ~25MB |
| [build-opencvsharp-arm64.sh](../src/tools/build-opencvsharp-arm64.sh) | Full build with all features and contrib modules | ~140MB |
| [build-opencvsharp-minimal-arm64.sh](../src/tools/build-opencvsharp-minimal-arm64.sh) | Minimal build for basic camera capture | ~25MB |

To use either script:
```bash
Expand All @@ -70,15 +70,15 @@ git checkout 4.10.0

# Run the desired build script
cd ~
chmod +x ~/opencvsharp/tool/build-opencvsharp-minimal-arm64.sh
~/opencvsharp/tool/build-opencvsharp-minimal-arm64.sh
chmod +x ~/opencvsharp/src/tools/build-opencvsharp-minimal-arm64.sh
~/opencvsharp/src/tools/build-opencvsharp-minimal-arm64.sh
```

## Building a full OpenCV feature set - large (~140MB) output

First, you can run with a full-featured set of binaries. It's large, and contains probably things you don't need, but it works.

[A script to do the full-up build for linux-arm64 is available here](tool/build-opencvsharp-arm64.sh), but below are the manual instructions.
[A script to do the full-up build for linux-arm64 is available here](../src/tools/build-opencvsharp-arm64.sh), but below are the manual instructions.

```bash
cd ~
Expand All @@ -99,7 +99,7 @@ You can build a subset, but it takes some work. The way Linux libraries link, yo

This repository attempts to address that by providing better support for minimal, configurable builds.

[A script to do a minimal build for linux-arm64 is available here](tool/build-opencvsharp-minimal-arm64.sh), but below are the manual instructions.
[A script to do a minimal build for linux-arm64 is available here](../src/tools/build-opencvsharp-minimal-arm64.sh), but below are the manual instructions.

### Building OpenCV from Source

Expand Down
1 change: 0 additions & 1 deletion samples
Submodule samples deleted from 938f16
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ private static IReadOnlyList<string> UwpNativeDlls(string version)
public static void Pack(string srcDir, string dstDir, string opencvVersion)
{
MakeBinaryPackage(srcDir, dstDir, opencvVersion);
MakeSamplePackage(srcDir, dstDir, opencvVersion);
}

/// <summary>
Expand Down Expand Up @@ -197,43 +196,12 @@ private static void MakeBinaryPackage(string dir, string dirDst, string opencvVe
}
}

/// <summary>
/// Create a zip package that contains code samples
/// </summary>
/// <param name="dirSrc"></param>
/// <param name="dirDst"></param>
/// <param name="version"></param>
private static void MakeSamplePackage(string dirSrc, string dirDst, string version)
{
dirSrc = Path.Combine(dirSrc, "samples");
dirDst = Path.Combine(dirDst, GetSampleDstDirName(version));

CopyDirectory(dirSrc, dirDst);

var dstFileName = dirDst + ".zip";
File.Delete(dstFileName);

ZipFile.CreateFromDirectory(
dirDst,
dstFileName,
CompressionLevel.Optimal,
false);

Directory.Delete(dirDst, true);
}

private static string GetBinaryDstDirName(string version)
{
var date = DateTime.Now.ToString("yyyyMMdd");
return $"OpenCvSharp-{version}-{date}";
}

private static string GetSampleDstDirName(string version)
{
var date = DateTime.Now.ToString("yyyyMMdd");
return $"Sample-{version}-{date}";
}

/// <summary>
/// ディレクトリをコピーする。
/// .svn bin obj は除外。
Expand Down
File renamed without changes.
Loading