opencv4nodejs icon indicating copy to clipboard operation
opencv4nodejs copied to clipboard

add darknet type declarations

Open robingenz opened this issue 5 years ago • 2 comments

This PR fixes #736

robingenz avatar Jul 04 '20 08:07 robingenz

Was implemented in my fork in dnn.d.ts

/**
 * Reads a network model stored in Darknet model files.
 * 
 * https://docs.opencv.org/4.x/d6/d0f/group__dnn.html#gafde362956af949cce087f3f25c6aff0d
 * 
 * @param cfgPath 	path to the .cfg file with text description of the network architecture. (should be an absolute path)
 * @param modelPath to the .weights file with learned network. (should be an absolute path)
 */
export function readNetFromDarknet(cfgPath: string, modelPath: string): Net;
export function readNetFromDarknetAsync(cfgPath: string, modelPath: string): Promise<Net>;

this code is PR is still valid.

UrielCh avatar Apr 13 '22 06:04 UrielCh

please use @u4/opencv-build readNetFromDarknet is available.

This PR can be close.

UrielCh avatar Dec 28 '22 15:12 UrielCh