diff --git a/lib/typings/Net.d.ts b/lib/typings/Net.d.ts index 3a49c9c82..496731d6e 100644 --- a/lib/typings/Net.d.ts +++ b/lib/typings/Net.d.ts @@ -7,4 +7,8 @@ export class Net { forwardAsync(outBlobNames?: string[]): Promise; setInput(blob: Mat, inputName?: string): void; setInputAsync(blob: Mat, inputName?: string): Promise; + getLayerNames(): string[]; + getLayerNamesAsync(): Promise; + getUnconnectedOutLayers(): number[] + getUnconnectedOutLayersAsync(): Promise; } diff --git a/lib/typings/cv.d.ts b/lib/typings/cv.d.ts index f35bc42ef..084a09b67 100644 --- a/lib/typings/cv.d.ts +++ b/lib/typings/cv.d.ts @@ -173,6 +173,8 @@ export function readNetFromCaffe(prototxt: string, modelPath?: string): Net; export function readNetFromCaffeAsync(prototxt: string, modelPath?: string): Promise; export function readNetFromTensorflow(modelPath: string): Net; export function readNetFromTensorflowAsync(modelPath: string): Promise; +export function readNetFromDarknet(cfgPath: string, modelPath: string): Net; +export function readNetFromDarknetAsync(cfgPath: string, modelPath: string): Promise; export function recoverPose(E: Mat, points1: Point2[], points2: Point2[], focal?: number, pp?: Point2, mask?: Mat): { returnValue: number, R: Mat, T: Vec3 }; export function recoverPoseAsync(E: Mat, points1: Point2[], points2: Point2[], focal?: number, pp?: Point2, mask?: Mat): Promise<{ returnValue: number, R: Mat, T: Vec3 }>; export function reduce(mat: Mat, dim: number, rtype: number, dtype?: number): Mat;