@techolution-ai/computer-vision
Version:
A JavaScript/TypeScript library for computer vision applications, providing tools for image processing, scanning, and MQTT-based messaging.
43 lines (41 loc) • 1.03 kB
text/typescript
type TUseScannerProps = {
baseUrl: string;
endpoints?: {
startInference?: string;
stopInference?: string;
startVideoFeed?: string;
stopVideoFeed?: string;
captureFrame?: string;
};
};
declare const useScanner: ({ baseUrl, endpoints }: TUseScannerProps) => {
getVideoStreamUrl: () => string;
startInference: () => Promise<{
status: number;
statusText: string;
headers: Headers;
url: string;
redirected: boolean;
ok: boolean;
data: unknown;
}>;
stopInference: () => Promise<{
status: number;
statusText: string;
headers: Headers;
url: string;
redirected: boolean;
ok: boolean;
data: unknown;
}>;
captureFrame: () => Promise<{
status: number;
statusText: string;
headers: Headers;
url: string;
redirected: boolean;
ok: boolean;
data: unknown;
}>;
};
export { useScanner as default };