Skip to content

add darknet type declarations - #737

Open
robingenz wants to merge 2 commits into
justadudewhohacks:masterfrom
robingenz:darknet-types
Open

add darknet type declarations#737
robingenz wants to merge 2 commits into
justadudewhohacks:masterfrom
robingenz:darknet-types

Conversation

@robingenz

Copy link
Copy Markdown

This PR fixes #736

@UrielCh

UrielCh commented Apr 13, 2022

Copy link
Copy Markdown
Contributor

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

UrielCh commented Dec 28, 2022

Copy link
Copy Markdown
Contributor

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

This PR can be close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing type declarations for darknet

2 participants