[Open Source] Interval Gesture Recognition Testy System

——Saka DWIN Developer Forum

Ing masalah iki, kita bakal ngenalake kasus open source sing menang penghargaan saka DWIN Developer Forum - Interval Gesture Recognition Test System. Insinyur nggunakake layar cerdas COF 7-inch kanggo sesambungan karo sensor pangenalan gerakan PAJ7620U2 liwat inti T5L OS. Ora perlu nggunakake tombol apa wae. Sampeyan mung kudu nyelehake tangan sampeyan menyang sensor kanggo mlebu ing layar kontrol sistem menu, lan ngerteni 9 efek gerakan munggah, mudhun, kiwa, tengen, cedhak, adoh, rotasi kiwa, rotasi tengen, lan gelombang.

1.UIMmateriDmuter

asd (2)
asd (1)

2. C51 Engineering Design

Inti OS T5L sesambungan karo sensor pangenalan gerakan PAJ7620U2 kanggo interaksi data, ndeteksi gerakan saiki, nemtokake gambar sing saiki ditampilake lan gambar sing ditampilake kanthi ngowahi kaca, lan nyadari fungsi ngalih kaca nggunakake gerakan. Kode referensi kaya ing ngisor iki:

void pilih_operate(uint16_t gesrure_value)

{

yen (gesrure_value == GES_UP) //munggah

{

if(select_value >= 2)

{

pilih_nilai -= 2;

}

dgus_show_variate_icon_location_set(SELECT_DESCRIBE_RECTANGLE, select_pos[select_value][0], select_pos[select_value][1]);

}

liya yen (gesrure_value == GES_DOWN) //mudhun

{

if(select_value

{

pilih_nilai += 2;

}

dgus_show_variate_icon_location_set(SELECT_DESCRIBE_RECTANGLE, select_pos[select_value][0], select_pos[select_value][1]);

}

liya yen (gesrure_value == GES_LEFT) // ngiwa

{

if(select_value % 2 == 1)

{

pilih_nilai -= 1;

}

dgus_show_variate_icon_location_set(SELECT_DESCRIBE_RECTANGLE, select_pos[select_value][0], select_pos[select_value][1]);

}

liya yen (gesrure_value == GES_RIGHT) // tengen

{

if(select_value % 2 == 0)

{

pilih_nilai += 1;

}

dgus_show_variate_icon_location_set(SELECT_DESCRIBE_RECTANGLE, select_pos[select_value][0], select_pos[select_value][1]);

}

}

 

void turning_operate(uint16_t gesrure_value)

{

uint16_t i = 0;

uint8_t turning_mode = 0; //Mode ngowahi kaca, 0 munggah, 1 mudhun, 2 kiwa, 3 tengen

uint16_t turning_count = 0; //Nomer pungkasan kaca giliran

if(nilai_gesrure == GES_UP || nilai_gesrure == GES_DOWN || nilai_gesrure == GES_LEFT || nilai_gesrure == GES_RIGHT)

{

yen (gesrure_value == GES_UP) //munggah

{

turning_mode = 0;

turning_count = 48;

}

liya yen (gesrure_value == GES_DOWN) //mudhun

{

turning_mode = 1;

turning_count = 48;

}

liya yen (gesrure_value == GES_LEFT) // ngiwa

{

turning_mode = 2;

turning_count = 80;

}

liya yen (gesrure_value == GES_RIGHT) // tengen

{

turning_mode = 3;

turning_count = 80;

}

if(turning_current_image == 0 || turning_current_image == 2)

{

turning_current_image = 1;

}

liyane

{

turning_current_image = 2;

}

for(i = 0;i

{

ngalih (turning_mode)

{

kasus 0:

dgus_show_variate_icon_location_set(turning_current_image * 0x100 + 0x2000, 0, 480 - i * 10);

t5l0_sys_delay_ms(20);

yen (turning_last_image!= 0)

{

dgus_show_variate_icon_location_set(turning_last_image * 0x100 + 0x2000, 0, 0 - i * 10);

}

putus;

kasus 1:

dgus_show_variate_icon_location_set(turning_current_image * 0x100 + 0x2000, 0, -480 + i * 10);

t5l0_sys_delay_ms(20);

yen (turning_last_image!= 0)

{

dgus_show_variate_icon_location_set(turning_last_image * 0x100 + 0x2000, 0, 0 + i * 10);

}

putus;

kasus 2:

dgus_show_variate_icon_location_set(turning_current_image * 0x100 + 0x2000, 800 - i * 10, 0);

t5l0_sys_delay_ms(20);

yen (turning_last_image!= 0)

{

dgus_show_variate_icon_location_set(turning_last_image * 0x100 + 0x2000, 0 - i * 10, 0);

}

putus;

kasus 3:

dgus_show_variate_icon_location_set(turning_current_image * 0x100 + 0x2000, -800 + i * 10, 0);

t5l0_sys_delay_ms(20);

yen (turning_last_image!= 0)

{

dgus_show_variate_icon_location_set(turning_last_image * 0x100 + 0x2000, 0 + i * 10, 0);

}

putus;

}

t5l0_sys_delay_ms(20);

}

turning_last_image = turning_current_image;

}

}


Wektu kirim: Mar-21-2024