nischi / MMM-Face-Reco-DNN

Face recognition with opencv and deep neural network
MIT License
90 stars 46 forks source link

Increase resolution extendDataset #127

Closed eurtnl closed 1 year ago

eurtnl commented 1 year ago

Where can I change the resolution for the pictures taken when extendDataset = true?

nischi commented 1 year ago

at the moment the resolution cant be changed with a setting. but i think i can add this.

eurtnl commented 1 year ago

That would be a nice feature. Until then, I found this line in /tools/picam.py class PiVideoStream: def __init__(self, resolution=(320, 240), framerate=32, rotation=0): Is that where I have to change the resolution?

nischi commented 1 year ago

Yes if you use the picam, this is the right file.

eurtnl commented 1 year ago

Ok, I changed the resolution to class PiVideoStream: def __init__(self, resolution=(1280, 960), framerate=32, rotation=0): But the pictures are still in 320,240

nischi commented 1 year ago

Hmm.. so do you have a picam? can you try to change it in https://github.com/nischi/MMM-Face-Reco-DNN/blob/master/tools/stream.py

eurtnl commented 1 year ago

I'm using a Picam Noir Did change the setting in stream.py and picam.py but still resolution is 320,240 Even after a reboot

nischi commented 1 year ago

I created a new version with the settings to set the resolution. can you please check it out?

eurtnl commented 1 year ago

Yep it's working. thank you!