Create image from feature

Discussion related to "under the hood" OpenMV topics.
goliatone
Posts: 10
Joined: Wed Oct 25, 2017 8:31 am

Create image from feature

Postby goliatone » Thu Dec 14, 2017 3:56 pm

I am detecting faces using HaarCascade, have a img.find_features returning the detected faces. What I want to do is to crop the original frame to the area where the face was detected. Any ideas?
User avatar
iabdalkader
Posts: 690
Joined: Sun May 24, 2015 3:53 pm

Re: Create image from feature

Postby iabdalkader » Thu Dec 14, 2017 8:11 pm

Do you want to save the cropped image to file ?
goliatone
Posts: 10
Joined: Wed Oct 25, 2017 8:31 am

Re: Create image from feature

Postby goliatone » Fri Dec 15, 2017 8:04 am

Not necessarily to a file. Just make a new image from cropping a source image.
User avatar
iabdalkader
Posts: 690
Joined: Sun May 24, 2015 3:53 pm

Re: Create image from feature

Postby iabdalkader » Fri Dec 15, 2017 8:13 am

mrunalkalyankar
Posts: 2
Joined: Thu Jan 03, 2019 8:39 am

Re: Create image from feature

Postby mrunalkalyankar » Thu Jan 03, 2019 8:58 am

iabdalkader wrote:
Thu Dec 14, 2017 8:11 pm
Do you want to save the cropped image to file ?
Yes I want to save the cropped image to file.How I can do this?
User avatar
kwagyeman
Posts: 2796
Joined: Sun May 24, 2015 2:10 pm

Re: Create image from feature

Postby kwagyeman » Thu Jan 03, 2019 12:34 pm

Use the save() method and use the roi= argument.
Nyamekye,
mrunalkalyankar
Posts: 2
Joined: Thu Jan 03, 2019 8:39 am

Re: Create image from feature

Postby mrunalkalyankar » Fri Jan 04, 2019 7:29 am

kwagyeman wrote:
Thu Jan 03, 2019 12:34 pm
Use the save() method and use the roi= argument.
Sir, I not able to do this so please can I share you code?
User avatar
kwagyeman
Posts: 2796
Joined: Sun May 24, 2015 2:10 pm

Re: Create image from feature

Postby kwagyeman » Fri Jan 04, 2019 12:11 pm

Nyamekye,

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 8 guests