Skip to content

quality_QualityBRISQUE_compute

qualityfunctionOpenCV 5.0.0
import { quality_QualityBRISQUE_compute } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSimg, model_file_path, range_file_path
FUNCTIONquality_QualityBRISQUE_compute
RETURN TYPEScalar
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

static method for computing quality

quality_QualityBRISQUE_compute(img: Mat, model_file_path: EmbindString, range_file_path: EmbindString): Scalar;
img

image for which to compute quality

model_file_path

cv::String which contains a path to the BRISQUE model data, eg. /path/to/brisque_model_live.yml

range_file_path

cv::String which contains a path to the BRISQUE range data, eg. /path/to/brisque_range_live.yml

Returns

cv::Scalar with the score in the first element. The score ranges from 0 (best quality) to 100 (worst quality)

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.