feat: implement region-based QR code scanning for inbox documents
Build and Push Multi-Platform Images / build-and-push (push) Successful in 33s
Build and Push Multi-Platform Images / build-and-push (push) Successful in 33s
This commit is contained in:
1 parent
60ac522435
commit
9a1095ad6e
7 files changed
+226
-3
No files matched your search
@@ -93,6 +93,14 @@ export const inboxApi = {
|
||||
api
|
||||
.post(`/api/inbox/${encodeURIComponent(id)}/source`, { source })
|
||||
.then((r) => r.data),
|
||||
|
||||
scanRegion: (id: string, page: number, region: { x: number; y: number; w: number; h: number }) =>
|
||||
api
|
||||
.post<{ found: string[] }>(
|
||||
`/api/inbox/${encodeURIComponent(id)}/pages/${page}/scan-region`,
|
||||
region,
|
||||
)
|
||||
.then((r) => r.data),
|
||||
};
|
||||
|
||||
export interface PostprocessActionResult {
|
||||
|
||||
Reference in new issue
Block a user