mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Fixed thermal image rotation issues
This commit is contained in:
parent
12af3cae9f
commit
a3cc10bf72
@ -525,8 +525,10 @@ mp_obj_t py_fir_read_ir()
|
|||||||
tuple[2] = mp_obj_new_float(min);
|
tuple[2] = mp_obj_new_float(min);
|
||||||
tuple[3] = mp_obj_new_float(max);
|
tuple[3] = mp_obj_new_float(max);
|
||||||
|
|
||||||
for (int i=0; i<768; i++) {
|
for (int i=0; i<24; i++) {
|
||||||
mp_obj_list_append(tuple[1], mp_obj_new_float(To[i]));
|
for (int j=0; j<32; j++) {
|
||||||
|
mp_obj_list_append(tuple[1], mp_obj_new_float(To[(i*32)+(31-j)]));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fb_free();
|
fb_free();
|
||||||
@ -560,8 +562,10 @@ mp_obj_t py_fir_read_ir()
|
|||||||
tuple[2] = mp_obj_new_float(min);
|
tuple[2] = mp_obj_new_float(min);
|
||||||
tuple[3] = mp_obj_new_float(max);
|
tuple[3] = mp_obj_new_float(max);
|
||||||
|
|
||||||
for (int i=0; i<64; i++) {
|
for (int i=0; i<8; i++) {
|
||||||
mp_obj_list_append(tuple[1], mp_obj_new_float(To[i]));
|
for (int j=0; j<8; j++) {
|
||||||
|
mp_obj_list_append(tuple[1], mp_obj_new_float(To[((7-j)*8)+i]));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fb_free();
|
fb_free();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user