c# - How to add effects to image -



c# - How to add effects to image -

i new image processing.i want know how can add together effects image using emgucv or other technique.just microsoft lifecam.(ex. showing hat on head,showing name on head etc.)

please help,thanks in advance.

update::i working code

face recognition x86

in using function currentframe.draw(...) drow image. want add together new bitmap image current image showing me exception.

opencv: operation neither 'array op array' (where arrays have same size , same number of channels), nor 'array op scalar', nor 'scalar op array'

so image myimg.add()

a start read documentation.

i have used emgu cv , there face detection module, returns rectangle of persons face. (haar cascades)

once have info easy position graphic on top of image in location relative face.

the library supports eye detection draw on glasses using same method above.

it's easy utilize , documentation first-class start there.

update:

i found code used (emgu cv) detects every face in image , returns list of rectangles locations. (please excuse poor code quality)

you need tweak parameters suit needs.

public list<rectangle> detect(bitmap inputimage) { inimage = new image<bgr, byte>(inputimage); grayimage = inimage.convert<gray, byte>(); list<rectangle> facerects = new list<rectangle>(); var faces = grayimage.detecthaarcascade(haar, 1.1, 1, haar_detection_type.do_canny_pruning, new size(inimage.width, inimage.height))[0]; grayimage.dispose(); foreach (var face in faces) { facerects.add(face.rect); } inimage.dispose(); homecoming facerects; }

c# image opencv emgucv

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -