Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add darknet type declarations #737

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

robingenz
Copy link

This PR fixes #736

@UrielCh
Copy link
Contributor

UrielCh commented Apr 13, 2022

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
Copy link
Contributor

UrielCh commented Dec 28, 2022

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