Add README.md
This commit is contained in:
parent
ef3b7d68fb
commit
969376cf97
2 changed files with 31 additions and 4 deletions
|
|
@ -5,11 +5,7 @@
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<InvariantGlobalization>true</InvariantGlobalization>
|
<InvariantGlobalization>true</InvariantGlobalization>
|
||||||
<PublishAot>true</PublishAot>
|
|
||||||
<RootNamespace>StitchATon2.App</RootNamespace>
|
<RootNamespace>StitchATon2.App</RootNamespace>
|
||||||
|
|
||||||
<!-- <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>-->
|
|
||||||
<!-- <CompilerGeneratedFilesOutputPath>Generated</CompilerGeneratedFilesOutputPath>-->
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
||||||
31
README.md
Normal file
31
README.md
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
# Stitch-a-ton Contest Submission
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
### 1. Build
|
||||||
|
|
||||||
|
Install dependencies:
|
||||||
|
```
|
||||||
|
wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb
|
||||||
|
sudo dpkg -i packages-microsoft-prod.deb
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install -y dotnet-sdk-8.0
|
||||||
|
```
|
||||||
|
|
||||||
|
Build the project in `App` folder using command:
|
||||||
|
```
|
||||||
|
dotnet publish -c Release -r linux-arm64 --self-contained true -o ./publish
|
||||||
|
```
|
||||||
|
|
||||||
|
### 2. Running the app
|
||||||
|
|
||||||
|
After publishing, enter the folder `/publish` then run
|
||||||
|
```
|
||||||
|
./StitchATon2.App
|
||||||
|
```
|
||||||
|
|
||||||
|
## Approach
|
||||||
|
Since we only serve a static assets and the output is downscale only, I think it's good to pre-process each image to [image integral](https://en.wikipedia.org/wiki/Summed-area_table) first and then save it to another directory (eg. temp).
|
||||||
|
|
||||||
|
Later, we can apply Box Filter averaging on the fly to output Stream (HttpResponse).
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue