tomasz-lewicki / ai-thermometer

Fever screening with IR & RGB cameras and Deep CNNs
152 stars 40 forks source link

Hi there, how do I change both images like 180 degress? #40

Open jjferreira opened 3 years ago

jjferreira commented 3 years ago

Hi there, how do I change both images like 180 degrees?

Originally posted by @jjferreira in https://github.com/tomek-l/ai-thermometer/issues/39

jjferreira commented 3 years ago

@tomek-l hello, did you had the chance to figure out this issue? Thank you

tomasz-lewicki commented 3 years ago

Hi @jjferreira !

  1. To rotate the RGB image by 180 degrees, you can set flip_method=0 in this line
  2. To rotate the IR image by 180 degrees, you can do self._raw = np.flipud(raw) in this line\

Hope this helps.

jjferreira commented 3 years ago

@tomek-l thank you for your help. The rgb camera is via usb, so that string got no effect.

jjferreira commented 3 years ago

@tomek-l also the change, self._raw = np.flipud(raw) does to seem to work, or st least is not represented on the UI, pls advise