add Readme
This commit is contained in:
parent
8a8e90d10b
commit
a8245b1f13
2 changed files with 41 additions and 0 deletions
39
README.md
Normal file
39
README.md
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
# Stitch a Ton
|
||||||
|
Solution by Meizar (meizar.rimadana@formulatrix.com)
|
||||||
|
|
||||||
|
|
||||||
|
## Requirement
|
||||||
|
- .Net SDK 6.0
|
||||||
|
- OpenCVSharp4 4.11
|
||||||
|
|
||||||
|
## Setup
|
||||||
|
- Change the environment variables `ASSET_PATH_RO` in `WebApp/Properties/launchSettings.json`
|
||||||
|
- Http port can be changed as needed
|
||||||
|
|
||||||
|
## Publish and Run
|
||||||
|
Publish with targeting `linux-arm64` runtime
|
||||||
|
```
|
||||||
|
cd ./WebApp
|
||||||
|
dotnet publish -r linux-arm64 -c release --self-contained
|
||||||
|
```
|
||||||
|
|
||||||
|
Go to the publish folder
|
||||||
|
```
|
||||||
|
cd bin/release/net6.0/linux-arm64/publish
|
||||||
|
```
|
||||||
|
|
||||||
|
Make it executable
|
||||||
|
```
|
||||||
|
chmod +x WebApp
|
||||||
|
```
|
||||||
|
|
||||||
|
Run
|
||||||
|
```
|
||||||
|
./WebApp
|
||||||
|
```
|
||||||
|
|
||||||
|
Or, if the OpenCV4 has been installed, just run it
|
||||||
|
```
|
||||||
|
cd WebApp
|
||||||
|
dotnet run
|
||||||
|
```
|
||||||
|
|
@ -9,8 +9,10 @@
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="OpenCvSharp4" Version="4.11.0.20250507" />
|
<PackageReference Include="OpenCvSharp4" Version="4.11.0.20250507" />
|
||||||
|
<PackageReference Include="OpenCvSharp4.runtime.linux-arm" Version="4.11.0.20250506" />
|
||||||
<PackageReference Include="OpenCvSharp4.runtime.win" Version="4.11.0.20250507" />
|
<PackageReference Include="OpenCvSharp4.runtime.win" Version="4.11.0.20250507" />
|
||||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
|
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
|
||||||
|
<PackageReference Include="swety.OpenCvSharp4.runtime.linux-arm64" Version="4.10.0.20241108" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue