——來自迪文開發(fā)者論壇
本期為大家推送迪文開發(fā)者論壇獲獎(jiǎng)開源案例——隔空手勢(shì)識(shí)別測(cè)試系統(tǒng)。工程師采用7英寸COF智能屏,通過T5L OS核與PAJ7620U2手勢(shì)識(shí)別傳感器進(jìn)行數(shù)據(jù)交互,不需要使用任何按鍵,只需將手貼近傳感器即可進(jìn)入菜單系統(tǒng)控制屏幕,實(shí)現(xiàn)上、下、左、右、貼近、遠(yuǎn)離、左旋轉(zhuǎn)、右旋轉(zhuǎn)、揮手9種手勢(shì)效果。不一樣的屏幕交互體驗(yàn),推薦大家前來觀看!
UI素材展示
UI開發(fā)示例
C51代碼設(shè)計(jì) T5L OS核與PAJ7620U2手勢(shì)識(shí)別傳感器進(jìn)行數(shù)據(jù)交互,檢測(cè)當(dāng)前的手勢(shì),判斷當(dāng)前顯示的圖片和翻頁(yè)顯示的圖片,實(shí)現(xiàn)利用手勢(shì)來切換頁(yè)面的功能。參考代碼如下:
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; //翻頁(yè)模式,0上,1下,2左,3右 uint16_t turning_count = 0; //翻頁(yè)最終次數(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; }}
-
測(cè)試系統(tǒng)
+關(guān)注
關(guān)注
6文章
858瀏覽量
62755 -
開源
+關(guān)注
關(guān)注
3文章
3624瀏覽量
43536 -
智能屏幕
+關(guān)注
關(guān)注
0文章
72瀏覽量
3613
發(fā)布評(píng)論請(qǐng)先 登錄
【開源獲獎(jiǎng)案例】基于T5L智能屏的音樂播放與歌詞顯示方案

最具影響力開源創(chuàng)新貢獻(xiàn)獎(jiǎng)!RT-Thread睿賽德再獲殊榮

高壓放大器在壓電疊堆主動(dòng)隔振實(shí)驗(yàn)中的應(yīng)用

【開源獲獎(jiǎng)案例】基于T5L智能屏的FM收音機(jī)

【開源獲獎(jiǎng)案例】基于T5L智能屏的EQ均衡效果器

開源項(xiàng)目 ! 利用邊緣計(jì)算打造便攜式視覺識(shí)別系統(tǒng)
如何用OpenCV進(jìn)行手勢(shì)識(shí)別--基于米爾全志T527開發(fā)板

Arm加入OpenCloudOS操作系統(tǒng)開源社區(qū)
Cortex-A55國(guó)產(chǎn)處理器_教學(xué)實(shí)驗(yàn)箱_操作案例分享:5-21 手勢(shì)識(shí)別實(shí)驗(yàn)
【開源獲獎(jiǎng)案例】基于T5L智能屏的汽車抬頭顯示器方案

多通道肌電臂環(huán)精準(zhǔn)手勢(shì)識(shí)別,下一代交互系統(tǒng)

【開源獲獎(jiǎng)案例】基于T5L智能屏的指紋識(shí)別解決方案

鴻蒙ArkTS聲明式開發(fā):跨平臺(tái)支持列表 組合手勢(shì)

鴻蒙ArkTS聲明式開發(fā):跨平臺(tái)支持列表PinchGesture之基礎(chǔ)手勢(shì)

鴻蒙ArkTS聲明式開發(fā):跨平臺(tái)支持列表PanGesture之基礎(chǔ)手勢(shì)

評(píng)論