ilusm.dev

cv

Computer vision: object detection, OCR, face recognition, image analysis.

Load with: use cv

Quick example

use cv

result = cvfd("value")
prn(result)

Functions

Face detection

cvfd(img)

Performs the operation. Takes img.

cvfdr(img, faces)

Performs the operation. Takes img, faces.

Face recognition

cvfr()

Creates from another format.

cvfrt(m, faces, lbls)

Performs the operation. Takes m, faces, lbls.

cvfrp(m, img)

Performs the operation. Takes m, img.

cvfrs(e1, e2)

Resets. Takes e1, e2.

Object detection

cvbjd(img, model)

Performs the operation. Takes img, model.

cvbjb(img, dets)

Performs the operation. Takes img, dets.

OCR

cvocr(img, lang)

Creates a new instance. Takes img, lang.

cvcrb(img, lang)

Performs the operation. Takes img, lang.

QR/Barcode

cvqrd(img)

Reads data. Takes img.

cvqrg(txt, size)

Performs the operation. Takes txt, size.

cvbrc(img)

Performs the operation. Takes img.

Template matching

cvtmp(img, tmpl, thresh)

Performs the operation. Takes img, tmpl, thresh.

Contours

cvcn1(img, mode)

Performs the operation. Takes img, mode.

cvdr0(img, ct, col)

Performs the operation. Takes img, ct, col.

cvcnt(ct)

Performs the operation. Takes ct.

cvcn0(ct)

Performs the operation. Takes ct.

Keypoints/SIFT-like

cvkp(img)

Performs the operation. Takes img.

cvkpm(kp1, kp2)

Performs the operation. Takes kp1, kp2.

Optical flow

cvfl0(prev, curr)

Performs the operation. Takes prev, curr.

Background subtraction

cvmg2()

Performs the operation.

cvbsp(bs, frm)

Performs the operation. Takes bs, frm.

cvbsf(bs)

Performs the operation. Takes bs.

Color spaces

cvgry(img)

Performs the operation. Takes img.

cvhsv(img)

Performs the operation. Takes img.

cvlab(img)

Performs the operation. Takes img.

cvycr(img)

Creates a new instance. Takes img.

Thresholding

cvthb(img, th)

Performs the operation. Takes img, th.

cvthd(img, blk, c)

Performs the operation. Takes img, blk, c.

cvtht(img)

Performs the operation. Takes img.

Morphology

cverd(img, ker)

Reads data. Takes img, ker.

cvdil(img, ker)

Performs the operation. Takes img, ker.

cvopn(img, ker)

Performs the operation. Takes img, ker.

cvcls(img, ker)

Lists items. Takes img, ker.

Edge detection

cvcan(img, th1, th2)

Performs the operation. Takes img, th1, th2.

cvsbl(img, dx, dy)

Performs the operation. Takes img, dx, dy.

cvlpl(img)

Performs the operation. Takes img.

Corner detection

cvhrr(img)

Performs the operation. Takes img.

cvshi(img)

Performs the operation. Takes img.

cvorb(img)

Performs the operation. Takes img.

Hough transforms

cvhg0(img, th)

Performs the operation. Takes img, th.

cvhgh(img, dp, minr, mxr)

Performs the operation. Takes img, dp, minr, mxr.

Histograms

cvhs1(img, ch)

Performs the operation. Takes img, ch.

cvhs0(img)

Performs the operation. Takes img.

cvhst(img, ref)

Sets a value or starts a process. Takes img, ref.

Image stitching

cvstt(imgs)

Performs the operation. Takes imgs.

Panorama

cvpno(imgs)

Performs the operation. Takes imgs.

Depth estimation

cvdpt(img, model)

Performs the operation. Takes img, model.

Segmentation

cvseg(img, model)

Performs the operation. Takes img, model.

cvgrb(img, rect)

Performs the operation. Takes img, rect.

Feature extraction

cvhog(img)

Performs the operation. Takes img.

cvlbp(img)

Performs the operation. Takes img.

cvhgv(hog)

Performs the operation. Takes hog.

Camera calibration

cvchs(nx, ny)

Performs the operation. Takes nx, ny.

cvfnd(img, bd)

Performs the operation. Takes img, bd.

cvclb(objpts, imgpts, sz)

Performs the operation. Takes objpts, imgpts, sz.

cvnds(img, cam, dist)

Performs the operation. Takes img, cam, dist.

Pose estimation

cvpse(objpts, imgpts, cam, dist)

Sets a value. Takes objpts, imgpts, cam, dist.

cvaxs(img, r, t, cam, dist, sz)

Performs the operation. Takes img, r, t, cam, dist, sz.

AR markers

cvrco(board, id)

Connects. Takes board, id.

cvdtr(img, dict)

Performs the operation. Takes img, dict.

cvdrw(img, corners, ids)

Performs the operation. Takes img, corners, ids.

Motion detection

cvmtn(bg, frm, th)

Performs the operation. Takes bg, frm, th.

cvmgs()

Performs the operation.

cvpdm(mog, frm)

Performs the operation. Takes mog, frm.

cvfgm(mog)

Performs the operation. Takes mog.

Tracking

cvtr0()

Performs the operation.

cvtr2()

Performs the operation.

cvtr3()

Performs the operation.

cvtrk()

Performs the operation.

cvtr1(trk, img, box)

Performs the operation. Takes trk, img, box.

cvtr4(trk, img)

Performs the operation. Takes trk, img.

Augmented reality

cvwrp(img, dst, h)

Performs the operation. Takes img, dst, h.

cvfn0(src, dst)

Performs the operation. Takes src, dst.

cvwr0(img, m, sz)

Performs the operation. Takes img, m, sz.

DNN/Deep learning inference

cvne(net, cfg)

Creates a new instance. Takes net, cfg.

cvprd(m, img)

Reads data. Takes m, img.

cvgtl(m, nm)

Performs the operation. Takes m, nm.

cvstl(m, nm, w, b)

Performs the operation. Takes m, nm, w, b.

YOLO specific

cvylo(img, cfg, wts)

Performs the operation. Takes img, cfg, wts.

cvydr(img, dets, cls)

Performs the operation. Takes img, dets, cls.

Image classification

cvcls1(img, model)

Performs the operation. Takes img, model.

Super resolution

cvsr(img, factor)

Performs the operation. Takes img, factor.

Denoising

cvdn0(img)

Performs the operation. Takes img.

cvdns(img)

Performs the operation. Takes img.

Inpainting

cvnpn(img, mask)

Performs the operation. Takes img, mask.

Blur detection

cvblr(img)

Performs the operation. Takes img.

Focus measure

cvfcs(img)

Performs the operation. Takes img.

Color clustering

cvqnt(img, k)

Performs the operation. Takes img, k.

Dominant colors

cvdmc(img, n)

Performs the operation. Takes img, n.

Image comparison

cvssm(a, b)

Performs the operation. Takes a, b.

cvpsn(a, b)

Performs the operation. Takes a, b.

cvmse(a, b)

Sets a value. Takes a, b.

cvncc(a, b)

Performs the operation. Takes a, b.

Stereoscopic

cvstr(l, r, disp)

Performs the operation. Takes l, r, disp.

cvrpr(disp, q)

Processes or prints. Takes disp, q.

Video analysis

cvflw(prev, nxt, pts)

Performs the operation. Takes prev, nxt, pts.

cvcms(prob, win, crit)

Performs the operation. Takes prob, win, crit.

cvmen(img, mask)

Encodes. Takes img, mask.

Video stabilization

cvstb(vid)

Performs the operation. Takes vid.

Scene text detection

cvtxt(img)

Performs the operation. Takes img.

cvtx0(boxes)

Performs the operation. Takes boxes.

Notes

  • Computer vision primitives - image matrices, convolutions, filters.