# hellonapi **Repository Path**: peeanut/hellonapi ## Basic Information - **Project Name**: hellonapi - **Description**: 在如意Book(RISC-V OpenHarmony) 上利用OpenCV能力开发OpenHarmony应用——前端代码 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2024-12-26 - **Last Updated**: 2025-01-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 在pathto\OpenHarmony\Sdk\11\ets\api目录下创建@ohos.hellonapi.d.ts文件,内容如下: ``` import resourceManager from './@ohos.resourceManager'; declare namespace hellonapi { interface PixelInfo { rows: number; cols: number; buffSize: number; byteBuffer: ArrayBuffer; } interface Qrcode { detected: boolean; decodes: string[]; } function getHelloString(): string; function add(a: number, b: number): number; function img2Gray(resmgr: resourceManager.ResourceManager, path: string, file: string): PixelInfo; function qrcode(resmgr: resourceManager.ResourceManager, path: string, file: string): Promise; function edgeDetection(resmgr: resourceManager.ResourceManager, path: string, file: string): PixelInfo; function faceDetect(resmgr: resourceManager.ResourceManager, path: string, file: string): PixelInfo; function imgSegmentation(resmgr: resourceManager.ResourceManager, path: string, file: string): PixelInfo; } export default hellonapi; ```