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:
@@ -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