LightBlog

lundi 26 mars 2018

Xiaomi will launch MiLens, a Google Lens competitor for China, with the Mi Mix 2S

We're a few hours away from the launch of the Xiaomi Mi Mix 2S and the Huawei P20, but while the latter device has had nearly every aspect leaked already, there's still a few things that aren't that clear about the Mi Mix 2S. We know that it'll launch with Android Oreo, wireless charging, a design that's similar to the Mi Mix 2 (and not the corner notch as earlier rumors suggested), and some camera enhancements, but we haven't heard much about its software. With the imminent release of the device, we have obtained access to the MIUI 9 China stable ROM—the software release that will be present at launch time. Within the firmware we have discovered a new app called "MiLens" and it's poised to be a Google Lens alternative for the China market.

The following information is based on firmware files obtained by @FunkyHuawei, the man behind the FunkyHuawei.club service, which allows users to updateunbrick, or rebrand Huawei and Honor phones for a fee. He has provided access to these firmware files exclusively to XDA-Developers.


Xiaomi MiLens on the Xiaomi Mi Mix 2S

Virtual assistants are a hot market these days, but only a few stand a chance in the competitive industry. Among them are Amazon, Google, and to a lesser extent Apple and Samsung. The dominance of these companies has pushed Chinese giant Huawei to develop HiAssistant solely for the Chinese market, and it appears that Xiaomi will follow suit.

The pre-installed MiLens application offers integrations with some of China's largest online services including Baidu, Taobao, and Alibaba. From what we can see, this isn't a full-fledged virtual assistant, as it focuses mostly on image search. Given what is mentioned in the strings, the purpose of this application is to provide an easy way to discover products on each of these services and then facilitate payment online.

Alipay Strings

 
<string name="alisdk_message_804_action">请准备订单号和支付宝错误码至旺旺支付宝移动支持群(旺旺号:移动收单daily)咨询</string>
<string name="alisdk_message_804_message">使用支付宝支付失败,支付宝错误码为 8000, 含义为正在处理中</string>
<string name="alisdk_message_804_name">PAY_IN_PROGRESS</string>
<string name="alisdk_message_804_type">E</string>
<string name="alisdk_message_805_action">请准备订单号和支付宝错误码至旺旺支付宝移动支持群(旺旺号:移动收单daily)咨询</string>
<string name="alisdk_message_805_message">使用支付宝支付失败,支付宝错误码为 4000, 含义为订单支付失败</string>
<string name="alisdk_message_805_name">PAY_ORDER_FAILED</string>
<string name="alisdk_message_805_type">E</string>
<string name="alisdk_message_806_action">请准备订单号和支付宝错误码至旺旺支付宝移动支持群(旺旺号:移动收单daily)咨询</string>
<string name="alisdk_message_806_message">使用支付宝支付失败,支付宝错误码为 6001, 含义为用户中途取消</string>
<string name="alisdk_message_806_name">PAY_USER_CANCEL</string>
<string name="alisdk_message_806_type">E</string>
<string name="alisdk_message_807_action">请准备订单号和支付宝错误码至旺旺支付宝移动支持群(旺旺号:移动收单daily)咨询</string>
<string name="alisdk_message_807_message">使用支付宝支付失败,支付宝错误码为 6002, 含义为网络连接出错</string>
<string name="alisdk_message_807_name">PAY_NETWORK_FAILED</string>
<string name="alisdk_message_807_type">E</string>
<string name="alisdk_message_808_action">请准备订单号和支付宝错误码至旺旺支付宝移动支持群(旺旺号:移动收单daily)咨询</string>
<string name="alisdk_message_808_message">使用支付宝支付失败,支付宝错误码为 {0}</string>
<string name="alisdk_message_808_name">PAY_COMMON_ERROR</string>
<string name="alisdk_message_808_type">E</string>
<string name="alisdk_message_809_message">使用Apliay SDK调用方法失败,请下载最新的ApliaySDK lib包或者使用H5方式付款</string>

Taobao Strings

<string name="com_taobao_nb_sdk_loading_progress_message">加载中</string>
<string name="com_taobao_tae_sdk_alert_message">您离开太久了,请重新操作</string>
<string name="com_taobao_tae_sdk_authorize_title">登录授权</string>
<string name="com_taobao_tae_sdk_bind_title">登录并绑定</string>
<string name="com_taobao_tae_sdk_confirm">确定</string>
<string name="com_taobao_tae_sdk_confirm_cancel">取消</string>
<string name="com_taobao_tae_sdk_loading_progress_message">加载中</string>
<string name="com_taobao_tae_sdk_logout_fail_message">登出失败</string>
<string name="com_taobao_tae_sdk_network_not_available_message">网络无法连接</string>
<string name="com_taobao_tae_sdk_ssl_error_info">证书错误. 是否继续访问?</string>
<string name="com_taobao_tae_sdk_ssl_error_title">SSL证书错误</string>
<string name="com_taobao_tae_sdk_system_exception">系统异常</string>

As for the integration with Baidu, the dominant search engine in China, it appears that MiLens will tap into the BaiduAR API in order to allow for scanning objects to then be shown in augmented reality. You can see a demonstration of this in action over on Baidu's webpage.

BaiduAR Strings

  <string name="bdar_align_plane">请向下对准平面放置模型</string> <string name="bdar_app_name">BaiduAr</string> <string name="bdar_ar_case">AR案例展示</string> <string name="bdar_ar_intro">AR简介帮助</string> <string name="bdar_audio_permission_dialog_context">将获取您的麦克风权限,以便录制有声视频</string> <string name="bdar_audio_permission_dialog_title">是否录制有声视频</string> <string name="bdar_camera_permission_dialog_context">没有权限使用你的相机,请在设置中开启</string> <string name="bdar_camera_permission_dialog_ok">我知道了</string> <string name="bdar_camera_permission_dialog_set">去设置</string> <string name="bdar_camera_permission_dialog_title">开启相机权限</string> <string name="bdar_cancel">取消</string> <string name="bdar_capture_pic">拍摄</string> <string name="bdar_capture_video">录制</string> <string name="bdar_click_to_stop_speak">按一下停止说话</string> <string name="bdar_device_disable">抱歉,你的手机不支持</string> <string name="bdar_dialog_prompt_title">提示</string> <string name="bdar_download_timeout_error">网络不给力,确定要继续等待吗?</string> <string name="bdar_error_download">资源下载失败</string> <string name="bdar_error_json_parser">资源解析失败</string> <string name="bdar_error_network_tips">网络不给力,是否立即重试?</string> <string name="bdar_error_unzip">资源解压失败</string> <string name="bdar_find_perfect_plane">请寻找纹理丰富平面</string> <string name="bdar_gesture_guide_btn_text">知道了</string> <string name="bdar_go_setting">去设置</string> <string name="bdar_got">知道了</string> <string name="bdar_got_it">我知道了</string> <string name="bdar_loading">正在加载...</string> <string name="bdar_manage_storage">你可以在"设置"中管理存储空间</string> <string name="bdar_more_information_url">https://dusee.baidu.com/static/site/pages/intro/index.html</string> <string name="bdar_network_invalidate">网络不可用</string> <string name="bdar_non_wifi_tips">"正在非WIFI网络下体验 可能会产生流量费用"</string> <string name="bdar_ok">确定</string> <string name="bdar_open_camera_description_for_android_m_above">"手机百度没有权限使用你的相机, 请在设置中开启"</string> <string name="bdar_open_camera_description_for_android_m_under">"手机百度没有权限使用你的相机, 请在手机的"设置-权限管理-相机"中开启"</string> <string name="bdar_open_camera_permision">开启相机权限</string> <string name="bdar_open_storage_description_for_android_m_above">没有权限使用你的本地存储功能,请在设置中开启</string> <string name="bdar_open_storage_description_for_android_m_under">没有权限使用你的本地存储功能,请在手机的"设置-权限管理-相机"中开启</string> <string name="bdar_open_storage_permision">开启SD卡读写权限</string> <string name="bdar_record_completing">正在生成视频...</string> <string name="bdar_record_error">录制失败</string> <string name="bdar_retry">重试</string> <string name="bdar_save_capture_picture_tips">图片已保存至本地相册</string> <string name="bdar_save_fail">保存失败,该文件已被删除</string> <string name="bdar_save_finish">已保存到相册</string> <string name="bdar_sdcard_disable">SD卡不可用或空间不足</string> <string name="bdar_sdk_ar_track_target_not_finded">未找到扫描物,请重新对准</string> <string name="bdar_sdk_spirit_prize_draw_abnormal">手慢了,精灵逃走了,再玩一次吧~</string> <string name="bdar_sdk_version_unsupport_toolow">抱歉,当前版本不支持,请升级版本</string> <string name="bdar_setting">设置</string> <string name="bdar_settings">设置</string> <string name="bdar_share">分享</string> <string name="bdar_stop_record_toast">再按一次取消录制</string> <string name="bdar_storage_space_is_almost_full">存储空间几乎已满</string> <string name="bdar_upload_error">上传失败</string> <string name="bdar_upload_error_network_tips">网络不给力,请稍后重试</string> <string name="bdar_video_recording_too_short">录制过短,请重新录制</string> <string name="bdar_video_saving">正在保存视频...</string> <string name="bdar_voice_listening">正在聆听中...</string> <string name="bdar_webview_error_tips">网络不给力,请稍后重试</string> <string name="bdar_webview_reload">重新加载</string>  

Baidu integration also offers MiLens the ability to perform Optical Character Recognition (OCR) in order to translate a variety of languages into Mandarin and to perform search queries based on the results.

Baidu OCR Strings

  <string name="bdtrans_ocr_album">图库</string> <string name="bdtrans_ocr_cancel">取消</string> <string name="bdtrans_ocr_done">完成</string> <string name="bdtrans_ocr_go_to_system_settings">去设置</string> <string name="bdtrans_ocr_help">帮助</string> <string name="bdtrans_ocr_i_known">我知道了</string> <string name="bdtrans_ocr_image_not_exists">图片不存在</string> <string name="bdtrans_ocr_lang_ara">阿拉伯语</string> <string name="bdtrans_ocr_lang_auto">自动检测</string> <string name="bdtrans_ocr_lang_bul">保加利亚语</string> <string name="bdtrans_ocr_lang_choose_error">原文和译文语种相同,请重新设置</string> <string name="bdtrans_ocr_lang_cht">中文繁体</string> <string name="bdtrans_ocr_lang_cs">捷克语</string> <string name="bdtrans_ocr_lang_dan">丹麦语</string> <string name="bdtrans_ocr_lang_de">德语</string> <string name="bdtrans_ocr_lang_el">希腊语</string> <string name="bdtrans_ocr_lang_en">英语</string> <string name="bdtrans_ocr_lang_est">爱沙尼亚语</string> <string name="bdtrans_ocr_lang_fin">芬兰语</string> <string name="bdtrans_ocr_lang_fra">法语</string> <string name="bdtrans_ocr_lang_hu">匈牙利语</string> <string name="bdtrans_ocr_lang_it">意大利语</string> <string name="bdtrans_ocr_lang_jp">日语</string> <string name="bdtrans_ocr_lang_kor">韩语</string> <string name="bdtrans_ocr_lang_nl">荷兰语</string> <string name="bdtrans_ocr_lang_pl">波兰语</string> <string name="bdtrans_ocr_lang_pt">葡萄牙语</string> <string name="bdtrans_ocr_lang_rom">罗马尼亚语</string> <string name="bdtrans_ocr_lang_ru">俄语</string> <string name="bdtrans_ocr_lang_slo">斯洛文尼亚语</string> <string name="bdtrans_ocr_lang_spa">西班牙语</string> <string name="bdtrans_ocr_lang_swe">瑞典语</string> <string name="bdtrans_ocr_lang_th">泰语</string> <string name="bdtrans_ocr_lang_wyw">文言文</string> <string name="bdtrans_ocr_lang_yue">粤语</string> <string name="bdtrans_ocr_lang_zh">中文</string> <string name="bdtrans_ocr_notification_direction">当前翻译为%1$s到%2$s</string> <string name="bdtrans_ocr_notification_gesture_double_touch">双指缩放、移动图片</string> <string name="bdtrans_ocr_notification_gesture_single_touch">单指涂抹</string> <string name="bdtrans_ocr_notification_scrawl">请涂抹要翻译的文字</string> <string name="bdtrans_ocr_picture_trans">拍照翻译</string> <string name="bdtrans_ocr_picture_trans_help_title">如何正确拍照翻译</string> <string name="bdtrans_ocr_prompt">提示</string> <string name="bdtrans_ocr_reminder">温馨提醒</string> <string name="bdtrans_ocr_reminder_no_camera_permission">需要摄像头权限才能使用该功能</string> <string name="bdtrans_ocr_rephoto">重拍</string> <string name="bdtrans_ocr_rescrawl">重涂</string> <string name="bdtrans_ocr_result_copy_success">复制成功</string> <string name="bdtrans_ocr_result_detected_lang_also_trans">仍然翻译为 </string> <string name="bdtrans_ocr_result_detected_lang_also_trans_from_to">%1$s到%2$s</string> <string name="bdtrans_ocr_result_detected_lang_maybe">检测原文可能为【%s】 </string> <string name="bdtrans_ocr_result_detected_lang_maybe_exchange">切换语种</string> <string name="bdtrans_ocr_result_detected_lang_shown">已显示【%1$s到%2$s】的翻译结果</string> <string name="bdtrans_ocr_result_dst_copy">译文复制</string> <string name="bdtrans_ocr_result_dst_search">译文搜索</string> <string name="bdtrans_ocr_result_expand">展开</string> <string name="bdtrans_ocr_result_merge_trans">合并翻译</string> <string name="bdtrans_ocr_result_narrow">收起</string> <string name="bdtrans_ocr_result_network_error_reload">重新加载</string> <string name="bdtrans_ocr_result_network_error_retry">网络不给力,是否重试?</string> <string name="bdtrans_ocr_result_network_error_retry_later">网络不给力,请稍后重试。</string> <string name="bdtrans_ocr_result_recognize_error">未能识别要翻译的文字</string> <string name="bdtrans_ocr_result_recognize_error_note">请涂抹要翻译的文字,并选择正确的语种方向。</string> <string name="bdtrans_ocr_result_separate_trans">分行翻译</string> <string name="bdtrans_ocr_result_src_copy">原文复制</string> <string name="bdtrans_ocr_result_src_search">原文搜索</string> <string name="bdtrans_ocr_result_tts_failed">发音获取失败</string> <string name="bdtrans_ocr_result_tts_network_error">网络错误,请连接网络</string> <string name="bdtrans_ocr_retry">重试</string>  

Lastly, a few standard features for a Google Lens-like app are available, such as recognizing physical addresses, phone numbers, email addresses, calendar events, and more so actions can be performed based on them.

Xiaomi MiLens Basic Actions

  <string name="text_calender">日历</string> <string name="text_call_anyone">拨号</string> <string name="text_copy">复制</string> <string name="text_copy_addr">复制</string> <string name="text_copy_content">复制</string> <string name="text_copy_phone">复制</string> <string name="text_copy_text">复制</string> <string name="text_new_contact_p">新建联系人</string> <string name="text_new_schedule">新建日程</string> <string name="text_number">%1$s</string> <string name="text_open_url">打开链接</string> <string name="text_pailitao">购物</string> <string name="text_search_addr">搜索</string> <string name="text_search_gps">导航</string> <string name="text_send_mail">发邮件</string> <string name="text_translate">翻译</string>  

When the Mi Mix 2S is officially announced, we'll probably catch a live demonstration of the MiLens app in action. Since this app is exclusive to China, it probably won't interest most of you all that much. Still, it's nice to keep up with the software offerings of devices in China as often they will make their way over to international markets in some form.



from xda-developers https://ift.tt/2pHbSuA
via IFTTT

Aucun commentaire:

Enregistrer un commentaire