Skip to content

Commit

Permalink
feat: update deps, release 0.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xor22h committed Feb 29, 2024
1 parent 6d07bd3 commit 273ca23
Show file tree
Hide file tree
Showing 5 changed files with 217 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: "1.21"
go-version: "1.22"
# - name: Build static opencv
# run: make opencv
- name: ghcr-login
Expand Down
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM golang:1.22-bookworm as build
RUN apt update && apt install -y libtesseract-dev
ADD . /app
WORKDIR /app
RUN go build -o /usr/bin/rok-server ./cmd/rok-server

FROM debian:bookworm
RUN apt update && apt install -y libtesseract5
COPY --from=build /usr/bin/rok-server /usr/bin/rok-server
EXPOSE 8080
ENTRYPOINT [ "/usr/bin/rok-server" ]
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ snapshot: deps

# start a dev env (for building linux binary from mac/win)
dev:
docker run -p8080:8080 -v ~/.ssh:/root/.ssh --rm -it -v /var/run/docker.sock:/var/run/docker.sock -v $(shell pwd):$(shell pwd) -w $(shell pwd) golang:1.21
docker run -p8080:8080 -v ~/.ssh:/root/.ssh --rm -it -v /var/run/docker.sock:/var/run/docker.sock -v $(shell pwd):$(shell pwd) -w $(shell pwd) golang:1.22


.PHONY: check deps build
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/rokmonster/ocr

go 1.21
go 1.22

require (
github.com/Masterminds/sprig/v3 v3.2.3
Expand Down
203 changes: 203 additions & 0 deletions templates/cod_more_info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,203 @@
{
"title": "Call of Dragons (More Info) / Android / Samsung S23 Ultra",
"version": "1",
"author": "Julius Lisauskas",
"width": 3088,
"height": 1440,
"ocr_schema": {
"farming": {
"callback": [],
"lang": [
"eng"
],
"oem": 1,
"psm": 7,
"crop": [
1993,
1218,
607,
70
],
"allowlist": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
]
},
"healed": {
"callback": [],
"lang": [
"eng"
],
"oem": 1,
"psm": 7,
"crop": [
2001,
1057,
607,
70
],
"allowlist": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
]
},
"high_power": {
"callback": [],
"lang": [
"eng"
],
"oem": 1,
"psm": 7,
"crop": [
1999,
477,
607,
64
],
"allowlist": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
]
},
"kills": {
"callback": [],
"lang": [
"eng"
],
"oem": 1,
"psm": 7,
"crop": [
2014,
915,
607,
64
],
"allowlist": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
]
},
"name": {
"callback": [],
"lang": [
"eng",
"chi_sim",
"chi_tra",
"fra",
"ita",
"jpn",
"kor",
"rus",
"spa"
],
"oem": 1,
"psm": 7,
"crop": [
468,
914,
476,
61
]
},
"power": {
"callback": [],
"lang": [
"eng"
],
"oem": 1,
"psm": 7,
"crop": [
414,
1070,
607,
64
],
"allowlist": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
]
}
},
"fingerprint": "e8d4d8f8f8d0d8d8",
"threshold": 15,
"table": [
[
"high_power",
"high_power",
false,
""
],
[
"kills",
"kills",
false,
""
],
[
"healed",
"healed",
false,
""
],
[
"farming",
"farming",
false,
""
],
[
"name",
"name",
false,
""
],
[
"power",
"power",
false,
""
]
],
"checkpoints": [
]
}

0 comments on commit 273ca23

Please sign in to comment.