——來自迪文開發(fā)者論壇
本期為大家推送迪文開發(fā)者論壇獲獎開源案例——隔空手勢識別測試系統(tǒng)。工程師采用7英寸COF智能屏,通過T5L OS核與PAJ7620U2手勢識別傳感器進(jìn)行數(shù)據(jù)交互,不需要使用任何按鍵,只需將手貼近傳感器即可進(jìn)入菜單系統(tǒng)控制屏幕,實現(xiàn)上、下、左、右、貼近、遠(yuǎn)離、左旋轉(zhuǎn)、右旋轉(zhuǎn)、揮手9種手勢效果。不一樣的屏幕交互體驗,推薦大家前來觀看!
UI素材展示
UI開發(fā)示例
C51代碼設(shè)計 T5L OS核與PAJ7620U2手勢識別傳感器進(jìn)行數(shù)據(jù)交互,檢測當(dāng)前的手勢,判斷當(dāng)前顯示的圖片和翻頁顯示的圖片,實現(xiàn)利用手勢來切換頁面的功能。參考代碼如下:
void select_operate(uint16_t gesrure_value){ if(gesrure_value == GES_UP) //上 { if(select_value >= 2) { select_value -= 2; } dgus_show_variate_icon_location_set(SELECT_DESCRIBE_RECTANGLE, select_pos[select_value][0], select_pos[select_value][1]); } else if(gesrure_value == GES_DOWN) //下 { if(select_value <= 1) { select_value += 2; } dgus_show_variate_icon_location_set(SELECT_DESCRIBE_RECTANGLE, select_pos[select_value][0], select_pos[select_value][1]); } else if(gesrure_value == GES_LEFT) //左 { if(select_value % 2 == 1) { select_value -= 1; } dgus_show_variate_icon_location_set(SELECT_DESCRIBE_RECTANGLE, select_pos[select_value][0], select_pos[select_value][1]); } else if(gesrure_value == GES_RIGHT) //右 { if(select_value % 2 == 0) { select_value += 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; //翻頁模式,0上,1下,2左,3右 uint16_t turning_count = 0; //翻頁最終次數(shù) if(gesrure_value == GES_UP || gesrure_value == GES_DOWN || gesrure_value == GES_LEFT || gesrure_value == GES_RIGHT) { if(gesrure_value == GES_UP) //上 { turning_mode = 0; turning_count = 48; } else if(gesrure_value == GES_DOWN) //下 { turning_mode = 1; turning_count = 48; } else if(gesrure_value == GES_LEFT) //左 { turning_mode = 2; turning_count = 80; } else if(gesrure_value == GES_RIGHT) //右 { turning_mode = 3; turning_count = 80; } if(turning_current_image == 0 || turning_current_image == 2) { turning_current_image = 1; } else { turning_current_image = 2; } for(i = 0;i <= turning_count;i++) { switch(turning_mode) { case 0: dgus_show_variate_icon_location_set(turning_current_image * 0x100 + 0x2000, 0, 480 - i * 10); t5l0_sys_delay_ms(20); if(turning_last_image != 0) { dgus_show_variate_icon_location_set(turning_last_image * 0x100 + 0x2000, 0, 0 - i * 10); } break; case 1: dgus_show_variate_icon_location_set(turning_current_image * 0x100 + 0x2000, 0, -480 + i * 10); t5l0_sys_delay_ms(20); if(turning_last_image != 0) { dgus_show_variate_icon_location_set(turning_last_image * 0x100 + 0x2000, 0, 0 + i * 10); } break; case 2: dgus_show_variate_icon_location_set(turning_current_image * 0x100 + 0x2000, 800 - i * 10, 0); t5l0_sys_delay_ms(20); if(turning_last_image != 0) { dgus_show_variate_icon_location_set(turning_last_image * 0x100 + 0x2000, 0 - i * 10, 0); } break; case 3: dgus_show_variate_icon_location_set(turning_current_image * 0x100 + 0x2000, -800 + i * 10, 0); t5l0_sys_delay_ms(20); if(turning_last_image != 0) { dgus_show_variate_icon_location_set(turning_last_image * 0x100 + 0x2000, 0 + i * 10, 0); } break; } t5l0_sys_delay_ms(20); } turning_last_image = turning_current_image; }}
-
測試系統(tǒng)
+關(guān)注
關(guān)注
6文章
825瀏覽量
62245 -
開源
+關(guān)注
關(guān)注
3文章
3402瀏覽量
42711 -
智能屏幕
+關(guān)注
關(guān)注
0文章
66瀏覽量
3408
發(fā)布評論請先 登錄
相關(guān)推薦
如何用OpenCV進(jìn)行手勢識別--基于米爾全志T527開發(fā)板
![如何用OpenCV進(jìn)行<b class='flag-5'>手勢</b><b class='flag-5'>識別</b>--基于米爾全志T527開發(fā)板](https://file.elecfans.com/web2/M00/08/64/pYYBAGDwFEGADIPWAAFlJOlmLxg664.jpg)
Cortex-A55國產(chǎn)處理器_教學(xué)實驗箱_操作案例分享:5-21 手勢識別實驗
【開源獲獎案例】基于T5L智能屏的指紋識別解決方案
![【<b class='flag-5'>開源</b><b class='flag-5'>獲獎</b>案例】基于T5L智能屏的指紋<b class='flag-5'>識別</b>解決方案](https://file.elecfans.com/web2/M00/2A/81/poYBAGHKtJGANsQ1AAT-FWnPlz8451.jpg)
基于毫米波雷達(dá)的手勢識別算法
基于毫米波雷達(dá)的手勢識別神經(jīng)網(wǎng)絡(luò)
realme真我 12 現(xiàn)已上架國內(nèi)官方商城,僅售 2399 元
華為MatePad Pro 13.2英寸平板電腦體驗官招募,啟用隔空手勢功能
OpenHarmony實戰(zhàn)開發(fā)-手勢事件
基于FPGA技術(shù)的手勢識別控制型多功能機(jī)械臂系統(tǒng)
【開源獲獎案例】多功能稱重器
![【<b class='flag-5'>開源</b><b class='flag-5'>獲獎</b>案例】多功能稱重器](https://file.elecfans.com/web2/M00/2A/81/poYBAGHKtJGANsQ1AAT-FWnPlz8451.jpg)
Redmi Turbo 3搭載高通驍龍8s Gen 3芯片,配備AI隔空手勢與AI魔法功能
迪文科技2024年首展丨湖南醫(yī)療器械展完美收官
![迪文科技2024年首展丨湖南醫(yī)療器械展完美收官](https://file.elecfans.com/web2/M00/2A/81/poYBAGHKtJGANsQ1AAT-FWnPlz8451.jpg)
蘋果智能手表新專利:涉及UWB、手勢識別、非侵入式體溫監(jiān)測
![蘋果智能手表新專利:涉及UWB、<b class='flag-5'>手勢</b><b class='flag-5'>識別</b>、非侵入式體溫監(jiān)測](https://file1.elecfans.com/web2/M00/C5/D6/wKgZomYCn82AYpD9AAGKuJOoV2A875.png)
評論