CN116301362A - Image processing method, electronic device and storage medium - Google Patents

Image processing method, electronic device and storage medium Download PDF

Info

Publication number
CN116301362A
CN116301362A CN202310222795.XA CN202310222795A CN116301362A CN 116301362 A CN116301362 A CN 116301362A CN 202310222795 A CN202310222795 A CN 202310222795A CN 116301362 A CN116301362 A CN 116301362A
Authority
CN
China
Prior art keywords
screen
image
algorithm
service
smart
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310222795.XA
Other languages
Chinese (zh)
Other versions
CN116301362B (en
Inventor
管一凡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202310222795.XA priority Critical patent/CN116301362B/en
Publication of CN116301362A publication Critical patent/CN116301362A/en
Application granted granted Critical
Publication of CN116301362B publication Critical patent/CN116301362B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请提供了一种图像处理方法、电子设备及存储介质,涉及电子技术领域。本申请在原生AON算法平台基础上新增了智慧感知算法平台,在AON智能感知场景中,通过前置摄像头常开并采集图像,智慧感知用户业务,能够广泛应用于隔空手势、智能扫码、智能注视等各种场景,极大地满足用户需求。本申请在监听到所采集图像满足第一预设触发条件时,先判断触发场景是在亮屏场景下触发还是在灭屏场景下触发,进行业务分类识别,然后将业务分发给本申请提供的智慧感知算法平台,并进一步判断具体业务内容。本申请AON相机以极低功耗运行,能够准确地感知用户业务,提升用户体验。

Figure 202310222795

The application provides an image processing method, electronic equipment and a storage medium, which relate to the field of electronic technology. This application adds a new intelligent perception algorithm platform based on the original AON algorithm platform. In the AON intelligent perception scene, the front camera is always on and collects images to intelligently perceive user services, which can be widely used in air gestures and intelligent code scanning. , smart gaze and other scenarios, which greatly meet the needs of users. When the application detects that the collected image meets the first preset trigger condition, it first judges whether the triggering scene is triggered in the bright screen scene or in the off-screen scene, performs business classification and identification, and then distributes the business to the Intelligent perception algorithm platform, and further judge the specific business content. The AON camera of this application operates with extremely low power consumption, can accurately perceive user services, and improves user experience.

Figure 202310222795

Description

图像处理方法、电子设备及存储介质Image processing method, electronic device and storage medium

技术领域technical field

本申请涉及电子技术领域,尤其涉及一种图像处理方法、电子设备及存储介质。The present application relates to the field of electronic technology, and in particular to an image processing method, electronic equipment and a storage medium.

背景技术Background technique

目前,手机等智能电子设备可以应用摄像头实时在线(always-on camera,AON)功能,能够在手机处于灭屏状态时快速实现人脸解锁屏幕。具体而言,在手机应用AON功能的情况下,手机相机的前置摄像头处于常开状态,可以实时采集图像,通过图像分析进行人脸识别,可以实现更快地响应人脸解锁屏幕,无需用户接触手机,即可解锁手机屏幕。At present, smart electronic devices such as mobile phones can use an always-on camera (AON) function, which can quickly unlock the screen with a face when the mobile phone is in an off-screen state. Specifically, when the AON function is applied to the mobile phone, the front camera of the mobile phone camera is always on, and images can be collected in real time, and face recognition can be performed through image analysis, which can achieve faster response to face unlocking the screen, without the need for users to Touch the phone to unlock the phone screen.

如上所述,AON功能可以应用于手机灭屏状态时的人脸解锁屏幕场景,但是由于大部分情况下用户需要在亮屏状态下使用手机,因此AON功能的应用场景过于局限。As mentioned above, the AON function can be applied to face unlock screen scenarios when the screen of the mobile phone is off. However, since users need to use the mobile phone with the screen on in most cases, the application scenarios of the AON function are too limited.

发明内容Contents of the invention

本申请提供一种图像处理方法、电子设备及存储介质,在原生AON算法平台基础上新增了智慧感知算法平台,在AON智能感知场景中,通过前置摄像头常开并采集图像,智慧感知用户业务,能够广泛应用于隔空手势、智能扫码、智能注视等各种场景,极大地满足用户需求。This application provides an image processing method, electronic equipment, and storage media. Based on the original AON algorithm platform, a new intelligent perception algorithm platform is added. In the AON intelligent perception scene, the front camera is always on and collects images to intelligently perceive users. It can be widely used in various scenarios such as air gestures, smart code scanning, and smart gazing, which can greatly meet the needs of users.

为达到上述目的,本申请采用如下技术方案:In order to achieve the above object, the application adopts the following technical solutions:

第一方面,本申请提供一种图像处理方法,应用于电子设备的系统架构,该系统架构包括第一算法平台和第二算法平台,该第一算法平台支持处理的业务不同于第二算法平台支持处理的业务,该第二算法平台支持处理的业务为人脸解锁屏幕业务,该方法包括:In the first aspect, the present application provides an image processing method, which is applied to the system architecture of electronic equipment. The system architecture includes a first algorithm platform and a second algorithm platform, and the business supported by the first algorithm platform is different from that of the second algorithm platform. The business that supports processing, the business that the second algorithm platform supports processing is face unlocking screen business, the method includes:

电子设备开启第一功能,在第一功能开启后,电子设备的相机模块处于常开状态;The electronic device turns on the first function, and after the first function is turned on, the camera module of the electronic device is in a normally-on state;

通过相机模块输出第一尺寸规格的多帧第一图像;Outputting the multi-frame first image of the first size specification through the camera module;

调用第一算法平台对多帧第一图像进行图像分析,得到第一图像分析结果;Invoking the first algorithm platform to perform image analysis on multiple frames of the first image to obtain the first image analysis result;

当第一图像分析结果满足第一预设触发条件时,通过相机模块输出第二尺寸规格的多帧第二图像;调用第一算法平台对多帧第二图像进行图像分析,得到第二图像分析结果;按照第二图像分析结果对应的预设策略做出响应;When the first image analysis result satisfies the first preset trigger condition, the camera module outputs multi-frame second images of the second size specification; calls the first algorithm platform to perform image analysis on the multi-frame second images to obtain the second image analysis Result; making a response according to a preset strategy corresponding to the second image analysis result;

当第一图像分析结果满足第二预设触发条件时,通过相机模块输出第三尺寸规格的多帧第三图像;调用第二算法平台对多帧第三图像进行图像分析,得到第三图像分析结果;按照第三图像分析结果对应的预设策略做出响应;When the first image analysis result satisfies the second preset trigger condition, the camera module outputs a multi-frame third image of a third size specification; the second algorithm platform is called to perform image analysis on the multi-frame third image to obtain a third image analysis Result; making a response according to a preset strategy corresponding to the third image analysis result;

其中,第一尺寸规格对应的分辨率低于第二尺寸规格对应的分辨率,第二尺寸规格对应的分辨率低于或等于第三尺寸规格对应的分辨率。Wherein, the resolution corresponding to the first size specification is lower than the resolution corresponding to the second size specification, and the resolution corresponding to the second size specification is lower than or equal to the resolution corresponding to the third size specification.

通过本申请方案,本申请在原生芯片提供的AON算法平台基础上新增了智慧感知算法平台,在AON智能感知场景中,通过相机模块常开并采集图像,智慧感知用户业务,不限于实现原生芯片提供的AON算法平台支持的人脸解锁屏幕业务,还能够广泛应用于其他各种场景(例如隔空手势、智能扫码、智能注视等),极大地满足用户需求。并且,本申请方案在不同阶段应用不同的图像分辨率进行图像分析,不但可以保证手势识别的准确性,而且还可以有效地降低手势识别过程中所需的功耗以及内存空间。本申请AON相机以极低功耗运行,能够准确地感知用户业务,提升用户体验。Through the proposal of this application, this application adds a new intelligent perception algorithm platform on the basis of the AON algorithm platform provided by the original chip. In the AON intelligent perception scene, the camera module is always on and collects images to intelligently perceive user services, which is not limited to the realization of native The face unlocking screen service supported by the AON algorithm platform provided by the chip can also be widely used in various other scenarios (such as air gestures, smart scanning codes, smart gaze, etc.), which greatly meet user needs. Moreover, the solution of the present application uses different image resolutions for image analysis at different stages, which not only can ensure the accuracy of gesture recognition, but also can effectively reduce the power consumption and memory space required in the gesture recognition process. The AON camera of this application operates with extremely low power consumption, can accurately perceive user services, and improves user experience.

在一些实现方式中,相机模块为前置摄像头。其中,在初始阶段相机模块(AON相机)持续输出较低分辨率的图像,使得AON相机以极低功耗运行,感知用户业务,提升用户体验。In some implementations, the camera module is a front camera. Among them, in the initial stage, the camera module (AON camera) continues to output lower-resolution images, so that the AON camera operates with extremely low power consumption, senses user services, and improves user experience.

在一些实现方式中,第一预设触发条件为以下任一项:(1)图像中包含第一预设特征,且该图像是在屏幕亮屏且解锁时采集的图像;其中,第一预设特征包括人脸特征、人眼特征、手势特征和二维码特征中的任一项;(2)图像中包含人脸特征,且该图像是在屏幕灭屏时采集的图像。In some implementations, the first preset trigger condition is any of the following: (1) the image contains the first preset feature, and the image is an image collected when the screen is turned on and unlocked; Assume that the features include any one of face features, human eye features, gesture features and two-dimensional code features; (2) the image contains face features, and the image is an image collected when the screen is off.

通过本申请方案,可以在监听到所采集图像满足第一预设触发条件时,先判断触发场景是在亮屏场景下触发还是在灭屏场景下触发,进行业务分类识别,并进一步判断具体业务内容,能够准确地感知用户业务,提升用户体验。Through the solution of this application, when the collected images are monitored to meet the first preset trigger condition, it is possible to first judge whether the triggering scene is triggered in the bright screen scene or in the off-screen scene, perform business classification and identification, and further judge the specific business Content can accurately perceive user services and improve user experience.

在一些实现方式中,第二预设触发条件为图像中包含人脸特征,且该图像是在屏幕亮屏且锁屏时采集的图像。In some implementations, the second preset trigger condition is that the image contains facial features, and the image is an image collected when the screen is on and locked.

在一些实现方式中,第一算法平台支持处理的业务包括隔空手势业务、智能识码业务、注视屏幕不熄屏业务、注视屏幕降低音量业务、智能横竖屏业务、辅助拍照业务以及智能熄屏显示业务。In some implementations, the services supported by the first algorithm platform include air gesture services, intelligent code recognition services, services that keep the screen on while watching the screen, services that reduce the volume while watching the screen, services on intelligent horizontal and vertical screens, auxiliary photo taking services, and intelligent screen off. Show business.

通过本申请方案,本申请在原生AON算法平台基础上新增了智慧感知算法平台,在AON智能感知场景中,通过前置摄像头常开并采集图像,智慧感知用户业务,能够广泛应用于隔空手势、智能扫码、智能注视等各种场景,极大地满足用户需求。Through the proposal of this application, this application adds a new intelligent perception algorithm platform on the basis of the original AON algorithm platform. In the AON intelligent perception scene, the front camera is always on and collects images to intelligently perceive user services, which can be widely used in the air Various scenarios such as gestures, smart code scanning, and smart gazing can greatly meet user needs.

在一些实现方式中,上述方法还包括:在通过电子设备的相机模块输出第一尺寸规格的多帧第一图像之后,将多帧第一图像存储于第一内存器;在通过相机模块输出第二尺寸规格的多帧第二图像之后,将多帧第二图像存储于第一内存器和第二内存器;在通过相机模块输出第三尺寸规格的多帧第三图像之后,将多帧第三图像存储于第二内存器。In some implementations, the above method further includes: after outputting multiple frames of first images of the first size specification through the camera module of the electronic device, storing the multiple frames of first images in the first memory; After the multi-frame second images of the second size specification, the multi-frame second images are stored in the first memory and the second memory; after the multi-frame third images of the third size specification are output by the camera module, the multi-frame second images are output. Three images are stored in the second memory.

其中,在存储同一图像的情况下,第一内存器引起的功耗小于第二内存器引起的功耗,并且第一内存器和第二内存器共同引起的功耗小于第二内存器引起的功耗。Wherein, in the case of storing the same image, the power consumption caused by the first memory is less than the power consumption caused by the second memory, and the power consumption caused by the first memory and the second memory together is less than that caused by the second memory power consumption.

在一些实现方式中,第一内存器为紧密耦合存储器TCM,第二内存器为双倍速率同步动态随机存储器DDR。In some implementations, the first memory is a TCM, and the second memory is a double-rate synchronous dynamic random access memory (DDR).

通过本申请方案,在初始阶段采用低功耗内存进行数据缓存,并在确定了业务被触发之后采用低功耗内存结合正常功耗内存进行数据缓存,本申请AON相机以极低功耗运行,能够准确地感知用户业务,提升用户体验。Through the solution of this application, low-power memory is used for data caching in the initial stage, and after the business is determined to be triggered, low-power memory combined with normal power memory is used for data caching. The AON camera of this application runs at extremely low power consumption. It can accurately perceive user services and improve user experience.

在一些实现方式中,第三尺寸规格为视频图形阵列VGA,对应的分辨率为640×480。第二尺寸规格为QVGA,对应的分辨率为320×240。第一尺寸规格为QQVGA,对应的分辨率为160×120。In some implementations, the third size specification is Video Graphics Array VGA, and the corresponding resolution is 640×480. The second size specification is QVGA, and the corresponding resolution is 320×240. The first size specification is QQVGA, and the corresponding resolution is 160×120.

在一些实现方式中,第二算法平台为原生芯片提供的支持相机常开AON算法的框架,第一算法平台为基于第二算法平台创建的支持多业务的AON算法集成框架。In some implementations, the second algorithm platform is a framework provided by the original chip that supports the camera always-on AON algorithm, and the first algorithm platform is an AON algorithm integration framework that supports multiple services created based on the second algorithm platform.

在一些实现方式中,系统框架还包括智慧感知应用,所述第一功能为智慧感知应用提供的功能。在所述电子设备开启第一功能之后,上述方法还包括:智慧感知应用接收用户开启第一业务的第一操作,第一业务为智慧感知应用支持的业务;响应于第一操作,智慧感知应用向第一算法平台下发第一消息,该第一消息用于指示订阅第一业务;第一算法平台响应于第一消息,订阅第一业务。其中,第一业务为隔空手势、智能识码、注视屏幕不熄屏、注视屏幕降低音量、智能横竖屏、辅助拍照以及智能熄屏显示中的至少一项。In some implementation manners, the system framework further includes a smart sensing application, and the first function is a function provided by the smart sensing application. After the electronic device starts the first function, the above method further includes: the smart sensing application receives the first operation of the user to start the first service, and the first service is a service supported by the smart sensing application; in response to the first operation, the smart sensing application Sending a first message to the first algorithm platform, where the first message is used to indicate subscription to the first service; the first algorithm platform subscribes to the first service in response to the first message. Among them, the first service is at least one of gestures in the air, intelligent code recognition, keeping the screen on while watching the screen, lowering the volume while watching the screen, intelligent horizontal and vertical screens, auxiliary photo taking, and intelligent screen-off display.

在一些实现方式中,在订阅第一业务之后,上述方法还包括:第一算法平台向相机模块发送第二消息,该第二消息用于请求相机模块按照第一尺寸规格输出图像。In some implementation manners, after subscribing to the first service, the above method further includes: the first algorithm platform sends a second message to the camera module, where the second message is used to request the camera module to output images according to the first size specification.

在一些实现方式中,在得到第一图像分析结果之后,上述方法还包括:第一算法平台判断第一图像分析结果满足第一预设触发条件;第一算法平台向相机模块发送第三消息,该第三消息用于请求相机模块按照第二尺寸规格输出图像。In some implementations, after obtaining the first image analysis result, the above method further includes: the first algorithm platform judges that the first image analysis result satisfies the first preset trigger condition; the first algorithm platform sends a third message to the camera module, The third message is used to request the camera module to output images according to the second size specification.

在一些实现方式中,在第一算法平台判断第一图像分析结果满足第一预设触发条件之后,上述方法还包括:第一算法平台向智慧感知应用上报第四消息;智慧感知应用响应于第四消息,触发电子设备在屏幕预设区域处显示第一业务的提示信息,第四消息用于指示智慧感知应用支持的第一业务被触发。In some implementations, after the first algorithm platform judges that the first image analysis result satisfies the first preset trigger condition, the above method further includes: the first algorithm platform reports the fourth message to the smart perception application; the smart perception application responds to the first The fourth message is to trigger the electronic device to display the prompt information of the first service in the preset area of the screen, and the fourth message is used to indicate that the first service supported by the smart perception application is triggered.

在一些实现方式中,在按照第二图像分析结果对应的预设策略做出响应之前,上述方法还包括:第一算法平台将第二图像分析结果上报给智慧感知应用。In some implementation manners, before making a response according to the preset policy corresponding to the second image analysis result, the above method further includes: the first algorithm platform reports the second image analysis result to the smart perception application.

其中,所述按照第二图像分析结果对应的预设策略做出响应,包括:智慧感知应用按照第二图像分析结果对应的预设策略做出响应;其中,预设策略包括隔空截屏或翻页或接听来电、智能识码、注视屏幕不熄屏、注视屏幕降低音量、智能横竖屏、辅助拍照以及智能熄屏显示中的至少一项。Wherein, the responding according to the preset strategy corresponding to the second image analysis result includes: the smart perception application responds according to the preset strategy corresponding to the second image analysis result; At least one of the following: page or answer incoming calls, smart code recognition, watch the screen without turning off the screen, watch the screen to reduce the volume, smart horizontal and vertical screen, auxiliary photo taking, and smart screen-off display.

在一些实现方式中,系统框架还包括智慧感知接口。智慧感知应用和第一算法平台之间通过智慧感知接口进行数据交互。In some implementations, the system framework also includes an intelligent perception interface. The smart perception application and the first algorithm platform perform data interaction through the smart perception interface.

在一些实现方式中,系统框架还包括业务管理模块、分发器、智慧感知客户端和原生平台客户端。In some implementations, the system framework also includes a business management module, a distributor, a smart perception client and a native platform client.

上述方法还包括:当第一图像分析结果满足第一预设触发条件时,业务管理模块确定第一处理任务,并通过分发器将第一处理任务发送给智慧感知客户端,智慧感知客户端将第一处理任务转发给第一算法平台。其中,第一处理任务为对多帧第二图像处理的任务。The above method further includes: when the first image analysis result satisfies the first preset trigger condition, the business management module determines the first processing task, and sends the first processing task to the smart perception client through the distributor, and the smart perception client sends the first processing task to the smart perception client. The first processing task is forwarded to the first algorithm platform. Wherein, the first processing task is a task of processing multiple frames of the second image.

上述方法还包括:当第一图像分析结果满足第二预设触发条件时,业务管理模块确定第二处理任务,并通过分发器将第二处理任务发送给原生平台客户端,原生平台客户端将第二处理任务转发给第二算法平台。其中,第二处理任务为对多帧第三图像处理的任务。The above method further includes: when the first image analysis result satisfies the second preset trigger condition, the business management module determines the second processing task, and sends the second processing task to the native platform client through the distributor, and the native platform client will The second processing task is forwarded to the second algorithm platform. Wherein, the second processing task is a task of processing multiple frames of the third image.

在一些实现方式中,系统框架还包括算法库,该算法库中包括第一图像处理算法和第二图像处理算法。In some implementation manners, the system framework further includes an algorithm library, which includes the first image processing algorithm and the second image processing algorithm.

所述通过第一算法平台对多帧第一图像进行图像分析,得到第一图像分析结果,包括:第一算法平台调用算法库中的第一图像处理算法,对多帧第一图像进行图像分析,得到第一图像分析结果。The performing image analysis on multiple frames of the first image by the first algorithm platform to obtain the first image analysis result includes: calling the first image processing algorithm in the algorithm library by the first algorithm platform to perform image analysis on the multiple frames of the first image , to obtain the first image analysis result.

所述通过第一算法平台对多帧第二图像进行图像分析,得到第二图像分析结果,包括:第一算法平台调用算法库中的第二图像处理算法,对多帧第二图像进行图像分析,得到第二图像分析结果。其中,第一图像处理算法对图像分辨率的要求低于第二图像处理算法对图像分辨率的要求。The performing image analysis on multiple frames of second images through the first algorithm platform to obtain the second image analysis results includes: calling the second image processing algorithm in the algorithm library by the first algorithm platform to perform image analysis on multiple frames of second images , to obtain the second image analysis result. Wherein, the requirement of the first image processing algorithm on the image resolution is lower than the requirement of the second image processing algorithm on the image resolution.

通过本申请方案,本申请在原生芯片提供的AON算法平台基础上新增了智慧感知算法平台,在AON智能感知场景中,通过相机模块常开并采集图像,智慧感知用户业务,不限于实现原生芯片提供的AON算法平台支持的人脸解锁屏幕业务,还能够广泛应用于其他各种场景(例如隔空手势、智能扫码、智能注视等),极大地满足用户需求。Through the proposal of this application, this application adds a new intelligent perception algorithm platform on the basis of the AON algorithm platform provided by the original chip. In the AON intelligent perception scene, the camera module is always on and collects images to intelligently perceive user services, which is not limited to the realization of native The face unlocking screen service supported by the AON algorithm platform provided by the chip can also be widely used in various other scenarios (such as air gestures, smart scanning codes, smart gaze, etc.), which greatly meet user needs.

第二方面,本申请提供一种图像处理装置,该装置包括用于执行上述第一方面中的方法的单元。该装置可对应于执行上述第一方面中描述的方法,该装置中的单元的相关描述请参照上述第一方面的描述,为了简洁,在此不再赘述。In a second aspect, the present application provides an image processing device, which includes a unit for executing the method in the first aspect above. The device may correspond to executing the method described in the first aspect above. For the relevant description of the units in the device, please refer to the description in the first aspect above, and details are not repeated here for brevity.

其中,上述第一方面描述的方法可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块或单元。例如,处理模块或单元、显示模块或单元等。Wherein, the method described in the first aspect above may be realized by hardware, or may be realized by executing corresponding software by hardware. Hardware or software includes one or more modules or units corresponding to the functions described above. For example, a processing module or unit, a display module or unit, etc.

第三方面,本申请提供一种电子设备,所述电子设备包括处理器、处理器以及存储器中存储的计算机程序或指令,处理器用于执行计算机程序或指令,使得第一方面中的方法被执行。In a third aspect, the present application provides an electronic device, the electronic device includes a processor, a processor, and a computer program or instruction stored in a memory, and the processor is used to execute the computer program or instruction, so that the method in the first aspect is executed .

第四方面,本申请提供一种计算机可读存储介质,其上存储有用于实现第一方面中的方法的计算机程序(也可称为指令或代码)。例如,该计算机程序被计算机执行时,使得该计算机可以执行第一方面中的方法。In a fourth aspect, the present application provides a computer-readable storage medium on which is stored a computer program (also referred to as an instruction or code) for implementing the method in the first aspect. For example, when the computer program is executed by a computer, the computer can execute the method in the first aspect.

第五方面,本申请提供一种芯片,包括处理器。处理器用于读取并执行存储器中存储的计算机程序,以执行第一方面及其任意可能的实现方式中的方法。可选地,所述芯片还包括存储器,存储器与处理器通过电路或电线连接。In a fifth aspect, the present application provides a chip, including a processor. The processor is used to read and execute the computer program stored in the memory, so as to execute the method in the first aspect and any possible implementation manners thereof. Optionally, the chip further includes a memory, and the memory is connected to the processor through a circuit or wires.

第六方面,本申请提供一种芯片系统,包括处理器。处理器用于读取并执行存储器中存储的计算机程序,以执行第一方面及其任意可能的实现方式中的方法。可选地,所述芯片系统还包括存储器,存储器与处理器通过电路或电线连接。In a sixth aspect, the present application provides a chip system, including a processor. The processor is used to read and execute the computer program stored in the memory, so as to execute the method in the first aspect and any possible implementation manners thereof. Optionally, the chip system further includes a memory, and the memory is connected to the processor through a circuit or wires.

第七方面,本申请提供一种计算机程序产品,所述计算机程序产品包括计算机程序(也可称为指令或代码),所述计算机程序被电子设备执行时使得电子设备实现第一方面中的方法。In a seventh aspect, the present application provides a computer program product, where the computer program product includes a computer program (also referred to as an instruction or code), and when the computer program is executed by an electronic device, the electronic device implements the method in the first aspect .

可以理解的是,上述第二方面至第七方面的有益效果可以参见上述第一方面中的相关描述,在此不再赘述。It can be understood that, for the beneficial effects of the above-mentioned second aspect to the seventh aspect, reference can be made to the relevant description in the above-mentioned first aspect, and details are not repeated here.

附图说明Description of drawings

图1为本申请实施例提供的图像处理方法的应用场景示意图;FIG. 1 is a schematic diagram of an application scenario of an image processing method provided in an embodiment of the present application;

图2为本申请实施例提供的一种电子设备的结构示意图;FIG. 2 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;

图3为本申请实施例中相机模块与处理器之间的关系示意图;FIG. 3 is a schematic diagram of the relationship between the camera module and the processor in the embodiment of the present application;

图4为本申请实施例所采用的软件架构的示意图;Fig. 4 is the schematic diagram of the software framework adopted in the embodiment of the present application;

图5为本申请实施例提供的图像处理方法中各模块交互的时序图;FIG. 5 is a timing diagram of interaction between modules in the image processing method provided by the embodiment of the present application;

图6为本申请实施例提供的图像处理方法的功能设置示意图;FIG. 6 is a schematic diagram of function settings of an image processing method provided in an embodiment of the present application;

图7为本申请实施例提供的图像处理方法在应用时的界面示意图;FIG. 7 is a schematic interface diagram of the image processing method provided by the embodiment of the present application during application;

图8为本申请实施例提供的图像处理方法的流程示意图一;FIG. 8 is a first schematic flow diagram of the image processing method provided by the embodiment of the present application;

图9为本申请实施例提供的图像处理方法的流程示意图二;FIG. 9 is a second schematic flow diagram of the image processing method provided by the embodiment of the present application;

图10示出了本申请实施例应用的智能AOD场景的界面示意图Fig. 10 shows a schematic interface diagram of an intelligent AOD scene applied in the embodiment of the present application

图11为本申请实施例提供的图像处理方法的流程示意图三;FIG. 11 is a schematic flow diagram III of the image processing method provided by the embodiment of the present application;

图12示出了本申请实施例应用的隔空截屏场景的界面示意图。Fig. 12 shows a schematic interface diagram of an air screenshot scene applied in the embodiment of the present application.

具体实施方式Detailed ways

为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

本文中术语“和/或”,是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。本文中符号“/”表示关联对象是或者的关系,例如A/B表示A或者B。The term "and/or" in this article is an association relationship describing associated objects, which means that there can be three relationships, for example, A and/or B can mean: A exists alone, A and B exist simultaneously, and B exists alone These three situations. The symbol "/" in this document indicates that the associated object is an or relationship, for example, A/B indicates A or B.

本文中的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。在本申请实施例的描述中,除非另有说明,“多个”的含义是指两个或者两个以上,例如,多个处理单元是指两个或者两个以上的处理单元等;多个元件是指两个或者两个以上的元件等。The terms "first" and "second" and the like in the specification and claims herein are used to distinguish different objects, rather than to describe a specific order of objects. In the description of the embodiments of the present application, unless otherwise specified, "multiple" means two or more, for example, multiple processing units refer to two or more processing units, etc.; multiple A component refers to two or more components or the like.

在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present application, words such as "exemplary" or "for example" are used as examples, illustrations or illustrations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of the present application shall not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete manner.

目前,手机等智能电子设备可以应用摄像头实时在线(always-on camera,AON)功能,能够在手机处于灭屏状态时快速实现人脸解锁屏幕。具体而言,在手机应用AON功能的情况下,手机相机的前置摄像头处于常开状态,可以实时采集图像,通过图像分析进行人脸识别,可以实现更快地响应人脸解锁屏幕,无需用户接触手机,即可解锁手机屏幕。At present, smart electronic devices such as mobile phones can use an always-on camera (AON) function, which can quickly unlock the screen with a face when the mobile phone is in an off-screen state. Specifically, when the AON function is applied to the mobile phone, the front camera of the mobile phone camera is always on, and images can be collected in real time, and face recognition can be performed through image analysis, which can achieve faster response to face unlocking the screen, without the need for users to Touch the phone to unlock the phone screen.

如上所述,AON功能可以应用于手机灭屏状态时的人脸解锁屏幕场景,但是由于大部分情况下用户需要在亮屏状态下使用手机,因此AON功能的应用场景过于局限。As mentioned above, the AON function can be applied to face unlock screen scenarios when the screen of the mobile phone is off. However, since users need to use the mobile phone with the screen on in most cases, the application scenarios of the AON function are too limited.

鉴于此,本申请实施例提供一种图像处理方法及电子设备,在手机系统底层进行改进,在原有AON平台的基础上新构建了智慧感知算法平台,基于智慧感知算法平台的支持,AON功能不仅能够应用于手机灭屏状态时的人脸解锁屏幕场景,以及手机灭屏状态时的识别人脸后熄屏显示(always on display,AOD)场景,还能够应用于手机亮屏状态时的手势操控屏幕、智能识码、注视不熄屏、注视降低音量、辅助拍照、智能横竖屏等场景,因此可以提高用户体验。In view of this, the embodiment of the present application provides an image processing method and electronic equipment, which are improved at the bottom layer of the mobile phone system, and a new intelligent perception algorithm platform is built on the basis of the original AON platform. Based on the support of the intelligent perception algorithm platform, the AON function not only It can be applied to the face unlock screen scene when the mobile phone screen is off, and the always on display (AOD) scene after face recognition when the mobile phone screen is off, and can also be applied to gesture control when the mobile phone screen is on Screen, smart code recognition, keep watching the screen, lower the volume when watching, assist in taking pictures, intelligent horizontal and vertical screens and other scenarios, so it can improve the user experience.

图1示出了本申请的各个示例性实施例所涉及的应用场景示意图。如图1中的(a)所示,手机处于亮屏状态,手机的前置摄像头常开,并实时采集图像。如图1中的(b)所示,手机处于灭屏状态,手机的前置摄像头常开,并实时采集图像。本申请实施例中,AON功能允许电子设备的摄像装置(前置摄像头)一直处于活动状态,可以实现低功耗下摄像头常开,能够让扫码、手势识别、人脸解锁等场景更快完成。Fig. 1 shows a schematic diagram of application scenarios involved in various exemplary embodiments of the present application. As shown in (a) in Figure 1, the mobile phone is in a bright screen state, and the front camera of the mobile phone is always on and collects images in real time. As shown in (b) in Figure 1, the mobile phone is in the off-screen state, and the front camera of the mobile phone is always on and collects images in real time. In the embodiment of this application, the AON function allows the camera device (front camera) of the electronic device to be in an active state all the time, which can realize the camera is always on under low power consumption, and can make the scanning, gesture recognition, face unlocking and other scenes complete faster .

本申请在原生AON算法平台基础上新增了智慧感知算法平台,在AON智能感知场景中,通过前置摄像头常开并采集图像,智慧感知用户业务,能够广泛应用于隔空手势、智能扫码、智能注视等各种场景,极大地满足用户需求。本申请在监听到所采集图像满足第一预设触发条件时,先判断触发场景是在亮屏场景下触发还是在灭屏场景下触发,进行业务分类识别,然后将业务分发给本申请提供的智慧感知算法平台,并进一步判断具体业务内容。本申请AON相机以极低功耗运行,能够准确地感知用户业务,提升用户体验。This application adds a new intelligent perception algorithm platform based on the original AON algorithm platform. In the AON intelligent perception scene, the front camera is always on and collects images to intelligently perceive user services, which can be widely used in air gestures and intelligent code scanning. , smart gaze and other scenarios, which greatly meet the needs of users. When the application detects that the collected image meets the first preset trigger condition, it first judges whether the triggering scene is triggered in the bright screen scene or in the off-screen scene, performs business classification and identification, and then distributes the business to the Intelligent perception algorithm platform, and further judge the specific business content. The AON camera of this application operates with extremely low power consumption, can accurately perceive user services, and improves user experience.

其中,本申请实施例提供的AON功能,不仅能够广泛应用于各种场景,满足用户需求,而且通过本申请改进的算法,手机相机以极低功耗运行,节省手机用电。具体算法将在下文中详细描述。Among them, the AON function provided by the embodiment of the present application can not only be widely used in various scenarios to meet user needs, but also through the improved algorithm of the present application, the mobile phone camera operates with extremely low power consumption, saving mobile phone power consumption. The specific algorithm will be described in detail below.

本申请实施例提供的图像处理方法,可以应用在具备前置摄像头拍摄功能的电子设备中。电子设备包括各种终端设备,终端设备也可以称为终端(terminal)、用户设备(user equipment,UE)、移动台(mobile station,MS)、移动终端(mobile terminal,MT)等。终端设备可以是手机(mobile phone)、智能电视、穿戴式设备、平板电脑(Pad)、带无线收发功能的电脑、虚拟现实(virtual reality,VR)终端设备、增强现实(augmented reality,AR)终端设备、工业控制(industrial control)中的无线终端、无人驾驶(self-driving)中的无线终端、远程手术(remote medical surgery)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端等等。本申请的实施例对终端设备所采用的具体技术和具体设备形态不做限定。The image processing method provided in the embodiment of the present application may be applied to an electronic device with a front-facing camera shooting function. Electronic equipment includes various terminal equipment, and the terminal equipment may also be called a terminal (terminal), user equipment (user equipment, UE), mobile station (mobile station, MS), mobile terminal (mobile terminal, MT) and so on. The terminal device can be a mobile phone, a smart TV, a wearable device, a tablet computer (Pad), a computer with a wireless transceiver function, a virtual reality (virtual reality, VR) terminal device, an augmented reality (augmented reality, AR) terminal Equipment, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grid, transportation Wireless terminals in transportation safety, wireless terminals in smart city, wireless terminals in smart home, etc. The embodiment of the present application does not limit the specific technology and specific device form adopted by the terminal device.

参见图2,为本申请实施例提供的一种电子设备的结构示意图。电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serialbus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,触摸传感器180K,环境光传感器180L等。Referring to FIG. 2 , it is a schematic structural diagram of an electronic device provided by an embodiment of the present application. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serialbus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, Mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and user An identification module (subscriber identification module, SIM) card interface 195 and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a touch sensor 180K, and an ambient light sensor 180L.

可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that, the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.

处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。例如,处理器110用于执行本申请实施例中的图像处理方法。The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor ( image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. . Wherein, different processing units may be independent devices, or may be integrated in one or more processors. For example, the processor 110 is configured to execute the image processing method in the embodiment of the present application.

在本申请实施例中,AON功能的实现依赖于ISP。ISP可以运行各种算法程序,实时处理图像信号。图3示出了相机模块、ISP、AP三者之间的连接关系。In the embodiment of this application, the implementation of the AON function depends on the ISP. ISP can run various algorithm programs and process image signals in real time. FIG. 3 shows the connection relationship among the camera module, ISP, and AP.

图3中的(a)示出了外置ISP的架构图,相机模块通过相机串行接口(cameraserial interface,CSI)与ISP连接,并且ISP与AP连接。其中,ISP单独布置,ISP独立于AP。在ISP接收到相机模块采集的图像后,ISP对相机模块采集的图像进行图像信号处理。AP可以通过内置集成电路(inter-integrated circuit,I2C)控制ISP的工作模式,获取ISP的工作状态等。图3中的(b)示出了内置ISP的架构图,其中,相机模块与AP连接,ISP内置于AP内,在AP接收到相机模块采集的图像后,通过ISP对图像进行图像信号处理。(a) in FIG. 3 shows an architecture diagram of an external ISP, the camera module is connected to the ISP through a camera serial interface (cameraserial interface, CSI), and the ISP is connected to the AP. Wherein, the ISP is arranged separately, and the ISP is independent from the AP. After the ISP receives the image collected by the camera module, the ISP performs image signal processing on the image collected by the camera module. The AP can control the working mode of the ISP through a built-in integrated circuit (inter-integrated circuit, I2C), and obtain the working status of the ISP, and the like. (b) in FIG. 3 shows the architecture diagram of the built-in ISP, wherein the camera module is connected to the AP, and the ISP is built in the AP. After the AP receives the image collected by the camera module, the image signal is processed by the ISP.

其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。Wherein, the controller may be the nerve center and command center of the electronic device 100 . The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.

处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.

外部存储器120一般指外存储器,在本申请实施例中,外部存储器是指除电子设备的内存及处理器的高速缓存以外的储存器,该储存器一般为非易失性存储器。The external memory 120 generally refers to an external memory. In the embodiment of the present application, the external memory refers to a storage other than the internal memory of the electronic device and the cache memory of the processor, and the storage is generally a non-volatile memory.

内部存储器121,也可以称为“内存”,可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。The internal storage 121, which may also be referred to as "memory", may be used to store computer-executable program codes including instructions. The internal memory 121 may include an area for storing programs and an area for storing data. Wherein, the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like.

在本申请实施例中,电子设备的内存采用紧密耦合存储器(tightly coupledmemory,TCM)和DDR内存。In the embodiment of the present application, the memory of the electronic device adopts a tightly coupled memory (tightly coupled memory, TCM) and a DDR memory.

其中,DDR内存是一种双倍速率同步动态随机存储器,DDR内存全称是DDR SDRAM(double data rate SDRAM,双倍速率SDRAM)。SDRAM是同步动态随机存取存储器(synchronous dynamic random access memory)的缩写。DDR内存的数据传输率非常高。Among them, DDR memory is a double rate synchronous dynamic random access memory, and the full name of DDR memory is DDR SDRAM (double data rate SDRAM, double rate SDRAM). SDRAM is the abbreviation of synchronous dynamic random access memory (synchronous dynamic random access memory). The data transfer rate of DDR memory is very high.

其中,TCM包含在存储器的地址映射空间中,可以作为快速存储器来访问。TCM用于向处理器提供低延迟内存,它没有高速缓存特有的不可预测性。可以使用TCM来存放重要例程,如中断处理例程或者极需要避免高速缓存不确定性的实时任务。此外,可以使用TCM来保存暂时寄存器数据、局部属性不适合高速缓存的数据类型,以及中断堆栈等重要数据结构。Among them, the TCM is included in the address mapping space of the memory and can be accessed as a fast memory. TCM is used to provide low-latency memory to the processor without the unpredictability characteristic of caches. You can use the TCM to hold important routines, such as interrupt handling routines or real-time tasks that are critically avoiding cache non-determinism. In addition, the TCM can be used to hold scratchpad data, data types whose local attributes do not fit in the cache, and important data structures such as the interrupt stack.

需要说明的是,从存储容量角度来看,TCM内存容量较小,DDR内存容量较大。从数据传输速率角度来看,DDR内存的数据传输速率大于TCM内存的数据传输速率。从功耗角度来看,DDR内存的功耗大于TCM内存的功耗。电子设备通常都使用DDR内存,因此功耗较大;本申请实施例在一些场景中使用TCM内存进行数据缓存,可以降低功耗。It should be noted that from the perspective of storage capacity, TCM memory capacity is relatively small, while DDR memory capacity is relatively large. From the perspective of data transmission rate, the data transmission rate of DDR memory is higher than that of TCM memory. From the perspective of power consumption, the power consumption of DDR memory is greater than that of TCM memory. Electronic devices usually use DDR memory, so the power consumption is relatively large; in some scenarios of the present application, the TCM memory is used for data caching, which can reduce power consumption.

示例性地,在本申请实施例中,在一些前期预先感知业务的场景中,电子设备中动态内存和静态内存都采用TCM内存,用于存储前置摄像头采集的连续多帧图像,这些图像为QQVGA图像尺寸规格(也称为图像规格或尺寸规格)的图像,其中,QQVGA图像规格为较小图像尺寸,例如160×120,可以表示为QQVGA(160×120),可以理解,QVGA图像规格的图像分辨率较低,图像占用内存较小。Exemplarily, in the embodiment of this application, in some pre-pre-sensing service scenarios, both the dynamic memory and the static memory in the electronic device use TCM memory to store continuous multi-frame images collected by the front camera. These images are An image of QQVGA image size specification (also called image specification or size specification), where the QQVGA image specification is a smaller image size, such as 160×120, which can be expressed as QQVGA (160×120), understandably, the QVGA image specification The image resolution is lower and the image takes up less memory.

示例性地,在一些后期识别具体业务的场景中,电子设备的动态内存和静态内存结合采用DDR内存和TCM内存,共同存储前置摄像头采集的连续多帧图像,这些图像为QVGA图像规格的连续多帧图像,其中,相对于QQVGA图像规格而言,QVGA图像规格为较大的图像尺寸,例如320×240,可以表示为QQVGA(320×240)。可以理解,相对于QQVGA图像规格而言,QVGA图像规格的图像分辨率相对较高,图像占用内存较大。Exemplarily, in some later scenarios for identifying specific services, the electronic device's dynamic memory and static memory combine DDR memory and TCM memory to jointly store continuous multi-frame images captured by the front camera, and these images are consecutive QVGA image specifications The multi-frame image, wherein, compared with the QQVGA image specification, the QVGA image specification is a larger image size, such as 320×240, which can be expressed as QQVGA(320×240). It can be understood that, compared with the QQVGA image specification, the image resolution of the QVGA image specification is relatively higher, and the image occupies a larger memory.

其中,VGA(video graphics array)指视频图形阵列,对应的分辨率为640×480像素。QVGA指VGA分辨率的1/4尺寸,对应的分辨率为320×240像素。QQVGA指VGA分辨率的1/4屏,对应的分辨率为160×120像素。Wherein, VGA (video graphics array) refers to a video graphics array, and the corresponding resolution is 640×480 pixels. QVGA refers to the 1/4 size of VGA resolution, and the corresponding resolution is 320×240 pixels. QQVGA refers to the 1/4 screen of VGA resolution, and the corresponding resolution is 160×120 pixels.

可以理解的是,QQVGA规格的图像对应的分辨率最小,占用内存也最小。It can be understood that the image corresponding to the QQVGA specification has the smallest resolution and occupies the smallest memory.

本申请实施例中,在前期预先感知业务时,一方面,前置摄像头采集QQVGA规格的较小尺寸的图像,并存储于TCM内存中,因此占用极小的内存空间;另一方面,处理器对连续多帧图像进行分析,判断用户是否触发了某一业务,例如,如果通过图像分析检测到有手部特征且起始手势发生变化,那么处理器可以判断用户触发了隔空手势业务;再例如,如果通过图像分析检测到有脸部特征且电子设备的屏幕方向发生偏转,那么可以判断用户触发了智能横竖屏业务。In the embodiment of the present application, when pre-sensing services in the early stage, on the one hand, the front camera collects images of smaller size in QQVGA specification and stores them in the TCM memory, thus occupying a very small memory space; on the other hand, the processor Analyze continuous multi-frame images to determine whether the user has triggered a certain service. For example, if it is detected through image analysis that there are hand features and the initial gesture changes, the processor can determine that the user has triggered the air gesture service; and then For example, if it is detected through image analysis that there are facial features and the screen orientation of the electronic device is deflected, it can be determined that the user has triggered the smart horizontal and vertical screen service.

在感知到有业务被触发后,一方面,前置摄像头采集QVGA规格的较大尺寸的图像,并存储于DDR内存和TCM内存中;另一方面,处理器对连续多帧图像进行分析,识别被触发的业务的具体内容,例如如果通过图像分析检测到手掌从展开状态变化为抓握状态,那么处理器可以识别出抓握手势,用于触发截屏。After sensing that a service is triggered, on the one hand, the front camera collects larger-sized images of QVGA specifications and stores them in the DDR memory and TCM memory; The specific content of the service to be triggered, for example, if it is detected through image analysis that the palm changes from the extended state to the grasped state, then the processor can recognize the grasping gesture and use it to trigger a screen capture.

由此可见,在前置摄像头处于常开状态的场景中,尽管前置摄像头会持续采集大量图像,但是通过本申请方案,在前期预先感知业务的过程中,通过获取较小尺寸的连续多帧图像,并存储于低功耗TCM内存中,对较小尺寸的连续多帧图像进行图像分析,可以极大地降低功耗。It can be seen that in the scene where the front camera is always on, although the front camera will continue to collect a large number of images, through the solution of this application, in the process of pre-sensing services in the early stage, by acquiring continuous multiple frames of smaller size Images are stored in low-power TCM memory, and image analysis of continuous multi-frame images of smaller size can greatly reduce power consumption.

显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用有机发光二极管(organic light-emitting diode,OLED)。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos and the like. The display screen 194 includes a display panel. The display panel may use an organic light-emitting diode (OLED). In some embodiments, the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.

电子设备100还包括各类传感器,可以将各种不同的物理信号转换为电信号。接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。接近传感器可在电子设备100移动到耳边时,关闭显示显示屏194和/或背光。环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194的亮度。The electronic device 100 also includes various sensors that can convert various physical signals into electrical signals. Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes. The proximity sensor can turn off the display screen 194 and/or the backlight when the electronic device 100 is moved to the ear. The ambient light sensor 180L is used for sensing ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.

触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also known as "touch panel". The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”. The touch sensor 180K is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .

示例性的,在本申请实施例中,触摸传感器180K可以检测用户对应用程序的图标的点击操作,并将检测到的点击操作传递给应用处理器,确定该点击操作用于启动或运行该应用程序,进而执行该应用程序的运行操作。Exemplarily, in the embodiment of the present application, the touch sensor 180K can detect the user's click operation on the icon of the application program, and transmit the detected click operation to the application processor, and determine that the click operation is used to start or run the application. program, and then execute the running operation of the application.

电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.

以上是以电子设备100为例对本申请实施例作出的具体说明。应该理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。电子设备100可以具有比图中所示的更多的或者更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。The above is a specific description of the embodiment of the present application by taking the electronic device 100 as an example. It should be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100 . Electronic device 100 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.

另外,在上述部件之上,运行有操作系统。例如苹果公司所开发的iOS操作系统,谷歌公司所开发的Android开源操作系统,微软公司所开发的Windows操作系统等。在该操作系统上可以安装运行应用程序。In addition, an operating system runs on top of the above components. For example, the iOS operating system developed by Apple, the Android open source operating system developed by Google, and the Windows operating system developed by Microsoft. Applications can be installed and run on this operating system.

电子设备100的操作系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。The operating system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 .

图4是本申请实施例的电子设备100的软件架构图。本申请各实施例方案将基于下述技术架构进行讨论。需要说明的是,为了便于说明逻辑,仅以示意框图说明业务逻辑关系,而不严格表达各业务所在技术架构的具体位置。并且,软件架构图中的各个模块的命名为示例性的举例,本申请实施例对软件架构图中的各个模块的命名不作限定,在实际实现时,模块具体命名可以根据实际需求确定。FIG. 4 is a software architecture diagram of the electronic device 100 according to the embodiment of the present application. Various embodiments of the present application will be discussed based on the following technical architecture. It should be noted that, for the convenience of explaining the logic, only a schematic block diagram is used to illustrate the business logic relationship, without strictly expressing the specific location of the technical architecture of each business. Moreover, the naming of each module in the software architecture diagram is an exemplary example. The embodiment of the present application does not limit the naming of each module in the software architecture diagram. In actual implementation, the specific naming of modules can be determined according to actual needs.

分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,Android系统包括四层,从上至下分别为应用程序层(applications),应用程序框架层(application framework),硬件抽象层(hardwareabstraction layer,HAL),以及内核层(kernel)。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces. In some embodiments, the Android system includes four layers, which are applications, application framework, hardware abstraction layer (HAL), and kernel layer (kernel) from top to bottom. .

其中,应用程序层可以包括一系列应用程序包。例如,应用程序层可以包括相机,智慧感知等应用程序(应用程序可以简称为应用),本申请实施例对此不做任何限制。Wherein, the application program layer may include a series of application program packages. For example, the application program layer may include application programs such as a camera and smart perception (application programs may be referred to as applications for short), which is not limited in this embodiment of the present application.

本申请实施例提供的智慧感知应用支持各种业务,示例性地,智慧感知应用所支持的业务可以包括隔空手势业务、智能识码业务、注视不熄屏业务、注视降低音量业务、智能横竖屏业务、辅助拍照业务,以及智能AOD业务。这些业务可以统称为智慧感知业务。The smart perception application provided by the embodiment of the present application supports various services. For example, the services supported by the smart perception application may include air gesture services, smart code recognition services, continuous screen services while watching, volume down services while watching, smart horizontal and vertical Screen business, auxiliary camera business, and smart AOD business. These services can be collectively referred to as smart perception services.

需要说明的是,智慧感知应用支持的这些业务的实现,依赖于电子设备的前置摄像头处于常开状态,实时采集图像,得到智慧感知业务相关数据。当智慧感知应用监听到业务相关数据时,智慧感知应用将业务相关数据发送到智慧感知算法平台,智慧感知算法平台通过分析所采集的图像,根据分析结果判断是否执行智慧感知应用的相关业务,或者具体执行哪一项业务。It should be noted that the realization of these services supported by smart perception applications depends on the front camera of the electronic device being always on, collecting images in real time, and obtaining data related to smart perception services. When the smart sensing application monitors business-related data, the smart sensing application sends the business-related data to the smart sensing algorithm platform. The smart sensing algorithm platform analyzes the collected images and judges whether to execute the related business of the smart sensing application according to the analysis results, or Which specific business to perform.

其中,隔空手势业务:指电子设备通过识别用户手势,按照手势对应的预设策略做出响应,实现人机交互的业务。在电子设备处于亮屏状态时,电子设备可以支持识别各种预设的隔空手势,不同的手势可以对应不同的预设策略,例如:隔空抓握手势→截屏、隔空上/下滑手势→翻页,隔空按压手势→接听电话。Among them, air gesture business: refers to the business in which electronic devices recognize user gestures and respond according to the preset strategy corresponding to the gestures to realize human-computer interaction. When the electronic device is in the bright screen state, the electronic device can support the recognition of various preset air gestures, and different gestures can correspond to different preset strategies, for example: air grasping gesture→screen capture, air up/down gesture → Turn pages, press gestures in the air → answer calls.

例如,以隔空抓握手势为例,用户由手掌伸展状态变为握拳状态,该手势对应的操控方式预设为将电子设备的显示界面进行截屏处理。在电子设备处于亮屏状态时,电子设备在通过前置摄像头检测到隔空抓握手势时会自动执行截屏的操作。其中,隔空抓握手势还可以称为隔空截屏手势,该场景可以称为隔空截屏场景。For example, taking the gesture of grasping in the air as an example, the user changes from the state of stretching the palm to the state of making a fist, and the manipulation mode corresponding to the gesture is preset to take a screenshot of the display interface of the electronic device. When the electronic device is in a bright screen state, the electronic device will automatically perform a screen capture operation when the electronic device detects an air-grip gesture through the front camera. Wherein, the air grasp gesture may also be called an air screenshot gesture, and this scene may be called an air screenshot scene.

例如,以隔空上/下滑手势为例,手指由并拢展开状态变为向下弯曲状态(上滑手势),该手势对应的操控方式预设为向上翻页或向上滑动屏幕,以及,手指由并拢弯曲状态变为向上展开状态(下滑手势),该手势对应的操控方式预设为向下翻页或向下滑动屏幕。在电子设备处于亮屏状态时,电子设备在通过前置摄像头检测到上滑手势时会自动执行向上翻页的操作,以及在检测到下滑手势时会自动执行向下翻页的操作,无需用户接触电子设备,即可完成人机交互。其中,隔空上/下滑手势还可以称为隔空滑动屏幕手势,该场景可以称为隔空滑动屏幕场景。For example, taking the up/down gesture in the air as an example, the fingers are changed from the state of closing together to the state of bending down (swipe up gesture). The close-up and bending state changes to the upward-expanding state (sliding gesture), and the manipulation method corresponding to this gesture is preset to turn the page down or slide the screen down. When the electronic device is in the bright screen state, the electronic device will automatically perform the operation of turning the page up when it detects the gesture of sliding up through the front camera, and automatically perform the operation of turning the page down when it detects the gesture of sliding down, without the need for users Human-computer interaction can be completed by touching electronic equipment. Wherein, the gesture of up/down in the air may also be called the gesture of sliding the screen in the air, and this scene may be called the scene of sliding the screen in the air.

再例如,以隔空按压手势为例,用户手掌由远及近靠近电子设备的屏幕,该手势对应的操控方式预设为接听来电,当电子设备接收到来电信号并显示来电界面时,电子设备在通过前置摄像头识别到隔空按压手势时,会自动执行接听来电的操作。该场景可以称为隔空按压场景。For another example, take the air press gesture as an example. The user’s palm approaches the screen of the electronic device from far to near. The control method corresponding to this gesture is preset to answer an incoming call. When the air press gesture is recognized through the front camera, the operation of answering the incoming call will be automatically performed. This scene may be called an air press scene.

此外,在本申请实施例中,隔空手势业务还支持用户自定义的操作,例如用户取消“隔空按压手势→接听电话”,重新设置为“隔空按压手势→跳转到支付码界面”。In addition, in the embodiment of this application, the air gesture service also supports user-defined operations, for example, the user cancels the "air press gesture → answer the phone" and resets it to "air press gesture → jump to the payment code interface" .

示例性地,在电子设备处于亮屏状态,且电子设备显示主桌面时,用户可以通过隔空按压手势触发预定义的快捷服务,如从主桌面快速跳转到支付码界面。在该场景中,通过隔空按压手势能够快速调起支付界面,因此该场景可以称为智感支付场景。需要说明的是,用户还可以重新设置为“隔空按压手势→跳转到扫一扫界面”或者“隔空按压手势→跳转到乘车码界面”等。For example, when the screen of the electronic device is on and the main screen is displayed, the user can trigger a predefined shortcut service through an air press gesture, such as quickly jumping from the main screen to the payment code interface. In this scenario, the payment interface can be quickly called up by pressing gestures in the air, so this scenario can be called a smart payment scenario. It should be noted that the user can also reset it to "air press gesture → jump to the scan interface" or "air press gesture → jump to the ride code interface".

其中,智能识码业务:在电子设备处于亮屏状态时,用户将电子设备的前置摄像头对准二维码,电子设备可自动完成扫码及解析,快速跳转到支付码界面或者乘车码界面,而无需用户点击扫一扫入口触发扫码。Among them, intelligent code recognition business: when the electronic device is in the bright screen state, the user aligns the front camera of the electronic device with the QR code, and the electronic device can automatically scan the code and analyze it, and quickly jump to the payment code interface or take a car Code interface, without the need for the user to click the scan entry to trigger the code scan.

其中,注视不熄屏业务:在电子设备处于亮屏状态时,如果电子设备通过前置摄像头检测到用户注视电子设备,那么电子设备的显示屏不会熄屏,直到用户不再注视电子设备为止。Among them, the business of not turning off the screen when watching the electronic device: when the electronic device is in the bright state, if the electronic device detects that the user is looking at the electronic device through the front camera, the display screen of the electronic device will not be turned off until the user no longer looks at the electronic device .

其中,注视降低音量业务:在电子设备处于亮屏状态时,如果电子设备通过前置摄像头检测到用户注视电子设备,那么电子设备会自动调低来电铃声的音量或者短信提示音的音量。例如,当用户接收到来电时,用户通过注视手机屏幕,触发手机自动调低来电铃声的音量。Among them, watching and reducing the volume service: when the electronic device is in the bright screen state, if the electronic device detects that the user is looking at the electronic device through the front camera, the electronic device will automatically reduce the volume of the ringtone of the incoming call or the volume of the SMS prompt tone. For example, when a user receives an incoming call, the user can trigger the mobile phone to automatically lower the volume of the ringtone by looking at the screen of the mobile phone.

可选地,注视不熄屏业务和注视降低音量业务,可以默认均开启,也可以单独开启或关闭。Optionally, the services of not turning off the screen while watching and reducing the volume of watching can be enabled by default, or can be enabled or disabled separately.

其中,智能横竖屏业务:在电子设备处于亮屏状态时,如果电子设备检测到电子设备屏幕发生偏转,并且电子设备通过前置摄像头检测到用户人脸方向,那么电子设备根据用户人脸方向自动旋转屏幕,使得屏幕显示内容相对于用户人脸方向而言总是保持正向。相对于现有技术中采用重力感应器实现的屏幕自动旋转功能,本申请实现的智能横竖屏功能更能满足用户使用需求。Among them, the smart horizontal and vertical screen business: when the electronic device is in the bright screen state, if the electronic device detects that the screen of the electronic device is deflected, and the electronic device detects the direction of the user's face through the front camera, then the electronic device automatically Rotate the screen so that the content displayed on the screen is always positive relative to the direction of the user's face. Compared with the automatic screen rotation function implemented by the gravity sensor in the prior art, the intelligent horizontal and vertical screen function realized by the present application can better meet the needs of users.

其中,辅助拍照业务:在电子设备处于亮屏状态时,如果电子设备检测到电子设备开启相机功能,并且电子设备通过前置摄像头检测到用户人脸方向,那么电子设备根据用户人脸方向自动旋转屏幕,使得屏幕显示内容相对于用户人脸方向而言总是保持正向。并且,电子设备在显示已拍照片时,电子设备根据用户人脸方向自动旋转屏幕,使得屏幕显示照片相对于用户人脸方向而言总是保持正向。Among them, auxiliary camera service: when the electronic device is in the bright screen state, if the electronic device detects that the electronic device has turned on the camera function, and the electronic device detects the direction of the user's face through the front camera, then the electronic device automatically rotates according to the direction of the user's face screen, so that the content displayed on the screen is always positive relative to the direction of the user's face. Moreover, when the electronic device displays the photos taken, the electronic device automatically rotates the screen according to the orientation of the user's face, so that the photos displayed on the screen are always facing forward relative to the orientation of the user's face.

其中,智能AOD业务:在电子设备处于灭屏状态时,如果电子设备通过前置摄像头检测到人脸特征,那么电子设备自动显示熄屏图案。当电子设备显示熄屏图案时,屏幕的部分像素点被点亮,可显示时钟、日期、通知等信息,便于用户查看上述信息,由于部分点亮手机屏幕,因此可降低电子设备的耗电量。需要说明的是,智能AOD业务实现的前提条件为:电子设备支持熄屏显示功能且已开启熄屏显示功能。Among them, the smart AOD business: when the electronic device is in the off-screen state, if the electronic device detects facial features through the front camera, the electronic device will automatically display the screen-off pattern. When the electronic device displays the screen-off pattern, some pixels of the screen are lit to display information such as clock, date, notification, etc., which is convenient for users to view the above information. Since the mobile phone screen is partially lit, the power consumption of the electronic device can be reduced . It should be noted that the prerequisite for realizing the smart AOD service is that the electronic device supports the off-screen display function and the off-screen display function has been turned on.

需要说明的是,上述智慧感知应用支持的各种业务为示例性地举例,可以理解,在实际实现时,本申请实施例中智慧感知应用还可以支持其他可能的业务,具体可以根据实际使用需求确定,本申请实施例不作限定。It should be noted that the above-mentioned various services supported by the smart perception application are illustrative examples. It can be understood that in actual implementation, the smart perception application in the embodiment of the present application can also support other possible services, which can be specifically determined according to actual use requirements. Definitely, the embodiment of this application is not limited.

应用程序框架层为应用程序层的应用程序提供应用编程接口(applicationprogramming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。示例性地,应用程序框架层可以包括相机管理模块,AON管理模块等,本申请实施例对此不做任何限制。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions. Exemplarily, the application framework layer may include a camera management module, an AON management module, etc., which are not limited in this embodiment of the present application.

硬件抽象层是对Linux内核驱动程序的封装,向上提供接口,其隐藏了特定平台的硬件接口细节,为操作系统提供了虚拟硬件平台。本申请实施例中,硬件抽象层包括智慧感知接口及服务,业务管理、业务冲突管理、业务能力管理、分发器、智慧感知客户端以及原生平台客户端等模块。The hardware abstraction layer is the encapsulation of the Linux kernel driver, providing an interface upward, which hides the details of the hardware interface of a specific platform, and provides a virtual hardware platform for the operating system. In the embodiment of this application, the hardware abstraction layer includes modules such as smart perception interface and service, business management, business conflict management, business capability management, distributor, smart perception client, and native platform client.

其中,智慧感知接口及服务模块为上层智能感知应用提供了访问智慧感知算法平台的接口程序,并提供与智慧感知算法平台(也称为智慧感知算法集成框架)相关的服务。本申请在相机HAL中新增一套自有的AON服务,从平台软件基础架构上支撑手势特性、扫码特性等特性开发。Among them, the intelligent perception interface and service module provides an interface program for upper-level intelligent perception applications to access the intelligent perception algorithm platform, and provides services related to the intelligent perception algorithm platform (also known as the intelligent perception algorithm integration framework). This application adds a set of self-owned AON services in the camera HAL, and supports the development of features such as gesture features and code scanning features from the platform software infrastructure.

其中,业务管理模块用于管理隔空手势业务、智能识码业务、注视不熄屏业务、注视降低音量业务、智能横竖屏业务、辅助拍照业务,以及智能AOD业务等多个业务。并且,业务管理模块可以调用业务冲突管理模块进行决策。Among them, the service management module is used to manage multiple services such as air gesture service, intelligent code recognition service, watch the screen service, watch the volume down service, intelligent horizontal and vertical screen service, auxiliary camera service, and intelligent AOD service. Moreover, the business management module can call the business conflict management module to make a decision.

其中,业务冲突管理模块用于对亮屏场景的业务和灭屏场景的业务进行决策。业务冲突管理模块可以根据上层智慧感知应用监听得到的业务相关数据进行业务判断:该业务相关数据是亮屏状态时采集的图像,还是灭屏状态时采集的图像。在一些实施例中,若该业务相关数据为电子设备亮屏状态时采集的图像,则业务管理模块可以将该业务相关数据下发给智慧感知客户端。若该业务相关数据为电子设备灭屏状态时采集的图像且图像中有人脸特征,则业务管理模块可以确定智能AOD业务被触发,并将业务相关数据下发给智慧感知客户端。其中,智慧感知客户端具有代理、转发数据的职能。Wherein, the business conflict management module is used to make decisions on the business of the on-screen scene and the business of the off-screen scene. The business conflict management module can make a business judgment based on the business-related data monitored by the upper-layer smart perception application: whether the business-related data is an image collected when the screen is on or when the screen is off. In some embodiments, if the business-related data is an image collected when the screen of the electronic device is on, the business management module may send the business-related data to the smart perception client. If the service-related data is an image collected when the screen of the electronic device is off and there are facial features in the image, the service management module can determine that the smart AOD service is triggered, and send the service-related data to the smart perception client. Among them, the intelligent perception client has the function of acting as an agent and forwarding data.

其中,业务能力管理模块用于管理智慧感知算法平台支持的各个业务的能力信息。在一些实施例中,业务的能力信息可以用数字表示,示例性地,智能识码业务的能力值预设为0;隔空手势业务的能力值预设为1,其中,隔空截屏的能力值预设为1-1,隔空滑动屏幕的能力值预设为1-2,隔空按压的能力值预设为1-3。需要说明的是,这里能力信息为示例性地举例,具体可以根据实际使用需求设置,本申请实施例不作限定。Among them, the business capability management module is used to manage the capability information of each business supported by the intelligent perception algorithm platform. In some embodiments, the capability information of the service can be represented by numbers. For example, the capability value of the intelligent code recognition service is preset to 0; the capability value of the air gesture service is preset to 1, wherein the capability of taking screenshots The value is preset to 1-1, the ability value of air sliding screen is preset to 1-2, and the ability value of air pressing is preset to 1-3. It should be noted that the capability information here is an example, and may be specifically set according to actual usage requirements, and is not limited in this embodiment of the present application.

具体到本申请方案,在用户触发开启某一业务的情况下,智慧感知应用可以获取该业务的能力信息,然后智慧感知应用根据业务的能力信息向智慧感知算法平台注册并订阅对应的业务。在业务订阅成功后,智慧感知应用会实时监听该业务是否被触发,并且在智慧感知应用感知到该业务被触发的情况下,智慧感知应用向业务数据发送给智慧感知算法平台,通过智慧感知算法平台进行算法分析,然后根据分析结果执行该业务。Specific to this application scheme, when a user triggers to start a certain service, the smart perception application can obtain the capability information of the service, and then the smart perception application registers with the smart perception algorithm platform according to the service capability information and subscribes to the corresponding service. After the service subscription is successful, the smart perception application will monitor whether the service is triggered in real time, and when the smart perception application detects that the service is triggered, the smart perception application will send the business data to the smart perception algorithm platform, through the smart perception algorithm The platform conducts algorithm analysis, and then executes the business according to the analysis results.

其中,分发器用于根据业务管理模块的指示,将业务相关数据进行分发。Wherein, the distributor is used for distributing business-related data according to the instruction of the business management module.

内核层是硬件和软件之间的层。示例性地,内核层可以包含显示驱动,摄像头驱动以及传感器驱动。The kernel layer is the layer between hardware and software. Exemplarily, the kernel layer may include a display driver, a camera driver and a sensor driver.

具体到本申请方案,内核层可以包括API接口以及传感器接口、智慧感知算法集成框架(即智慧感知算法平台),以及原生AON算法平台。Specific to the solution of this application, the kernel layer may include API interface and sensor interface, intelligent perception algorithm integration framework (that is, intelligent perception algorithm platform), and native AON algorithm platform.

其中,智慧感知算法平台中可以包括决策单元、控制单元以及执行单元等,这些单元共同作用,完成对业务相关数据的低功耗算法分析,得到图像分析结果,并将图像分析结果上报给智慧感知应用。智慧感知算法平台还可以称为低功耗子系统。Among them, the smart perception algorithm platform can include decision-making units, control units, and execution units. These units work together to complete the low-power algorithm analysis of business-related data, obtain image analysis results, and report the image analysis results to smart perception. application. The smart perception algorithm platform can also be called a low-power subsystem.

需要说明的是,本申请实施例中,在前期的业务感知阶段(第一阶段),通过智慧感知客户端通过对业务相关数据进行图像分析,监听业务相关数据是否满足第一预设触发条件,因此对图像质量要求较低。在后期的业务识别阶段(第二阶段),智慧感知算法平台通过对满足第一预设触发条件的业务相关数据进行图像分析,识别具体的业务内容,因此对图像质量要求较高。It should be noted that, in the embodiment of the present application, in the early business perception stage (first stage), the smart perception client performs image analysis on the business-related data to monitor whether the business-related data meets the first preset trigger condition, Therefore, the image quality requirements are lower. In the later stage of business identification (the second stage), the smart perception algorithm platform identifies specific business content through image analysis of business-related data that meets the first preset trigger condition, so it has high requirements for image quality.

在第一阶段,业务相关数据包括连续多帧图像,且均为尺寸较小、分辨率较低的图像,并且采用上文中描述的低功耗TCM内存进行数据缓存。在第二阶段,业务相关数据包括连续多帧图像,且均为尺寸较大、分辨率较高的图像,并且采用上文中描述的正常功耗的DDR内存以及低功耗TCM内存进行数据缓存。本申请方案通过分阶段进行图像分析,不但能够准确地监听业务,而且还有效地降低了功耗。In the first stage, business-related data includes continuous multi-frame images, all of which are small in size and low in resolution, and the low-power TCM memory described above is used for data caching. In the second stage, business-related data includes continuous multi-frame images, all of which are large in size and high in resolution, and the normal power consumption DDR memory and low power consumption TCM memory described above are used for data caching. The solution of the present application performs image analysis in stages, which not only can accurately monitor services, but also effectively reduces power consumption.

需要说明的是,在本申请实施例中,在原生AON算法平台基础上,主要增加了智慧感知服务以及智慧感知算法集成框架。本申请将智慧感知服务以及智慧感知算法集成框架与原生AON算法平台配合,完成低功耗AON智慧感知功能及业务。It should be noted that in the embodiment of this application, on the basis of the original AON algorithm platform, the smart perception service and the smart perception algorithm integration framework are mainly added. This application cooperates with the smart sensing service and smart sensing algorithm integration framework and the native AON algorithm platform to complete the low-power AON smart sensing function and business.

一方面,智慧感知服务对外提供统一服务接口,支持智慧感知相关的业务使用原生AON算法平台的AON能力;同时屏蔽原生AON算法平台的接口,原生接口不再对外开放。On the one hand, the smart perception service provides a unified service interface to support smart perception-related businesses using the AON capability of the native AON algorithm platform; at the same time, the interface of the native AON algorithm platform is shielded, and the native interface is no longer open to the outside world.

另一方面,智慧感知服务依托平台通信通路,与智慧感知算法集成框架建立完整的业务交互,来使用AON相机及原生AON算法平台低功耗计算能力。On the other hand, the smart perception service relies on the platform communication channel to establish a complete business interaction with the smart perception algorithm integration framework to use the low-power computing capabilities of AON cameras and native AON algorithm platforms.

再一方面,智慧感知算法集成框架通过整合AON相机资源、传统传感器数据、集成业务算法,构建统一的低功耗计算平台支撑AON服务。On the other hand, the intelligent perception algorithm integration framework builds a unified low-power computing platform to support AON services by integrating AON camera resources, traditional sensor data, and integrated business algorithms.

硬件层提供了各种硬件设备,比如本申请实施例中涉及的硬件设备包括AON ISP、相机传感器以及相机摄像头等。其中,相机摄像头和相机传感器共同用于实时采集图像,AON ISP用于对采集的图像进行图像信号处理,这些硬件设备为智慧感知算法平台提供硬件方面的支持。The hardware layer provides various hardware devices. For example, the hardware devices involved in the embodiments of the present application include AON ISP, camera sensors, and cameras. Among them, the camera and the camera sensor are used to collect images in real time, and the AON ISP is used to process the image signal of the collected images. These hardware devices provide hardware support for the intelligent perception algorithm platform.

需要说明的是,图4仅示出了与本申请实施例相关的模块,各个层还可以包括其他任意可能的模块,各个模块还可以包括一个或多个子模块,本申请均不作限定。It should be noted that FIG. 4 only shows modules related to the embodiment of the present application, and each layer may also include any other possible modules, and each module may also include one or more sub-modules, which are not limited in this application.

还需要说明的是,本申请实施例虽然以Android系统为例进行说明,但是其基本原理同样适用于基于iOS或Windows等操作系统的电子设备。It should also be noted that although the embodiment of the present application uses the Android system as an example for illustration, its basic principles are also applicable to electronic devices based on operating systems such as iOS or Windows.

下面将通过图5描述本申请实施例提供的上述技术架构中各模块交互的时序图;其中,智慧感知应用、框架层模块、智慧感知接口及智慧感知服务模块(统称为智慧感知接口及服务模块)、智慧感知客户端、智慧感知算法平台以及前置摄像头进行信息交互,示例性地说明了电子设备通过前置摄像头实现AON智慧感知的过程。The following will describe the sequence diagram of each module interaction in the above-mentioned technical framework provided by the embodiment of the present application through FIG. ), the intelligent perception client, the intelligent perception algorithm platform and the front camera for information interaction, which exemplarily illustrates the process of electronic devices realizing AON smart perception through the front camera.

S101,在电子设备开机后,智慧感知服务模块与智慧感知客户端进行交互,启动相机provider进程。S101. After the electronic device is turned on, the smart perception service module interacts with the smart perception client to start a camera provider process.

S102,智慧感知服务模块申请注册到智慧感知客户端。S102. The smart perception service module applies for registration to the smart perception client.

S103,智慧感知应用接收用户开启智慧感知功能的操作。S103. The smart sensing application receives an operation of enabling the smart sensing function by the user.

需要说明的是,这里智慧感知功能可以为以下任一种:隔空手势功能、智能识码功能、注视不熄屏功能、注视降低音量功能、智能横竖屏功能、辅助拍照功能、智能AOD功能。It should be noted that the smart sensing function here can be any of the following: air gesture function, smart code recognition function, gazing function that does not turn off the screen, gazing function that reduces volume, smart horizontal and vertical screen function, auxiliary camera function, and smart AOD function.

示例性地,图6示出了用户开启智慧感知功能的交互界面示意图。如图6中的(a)和(b)所示,电子设备响应于用户点击桌面中的设置应用图标的操作,显示设置主界面。在设置主界面中显示有辅助功能选项。如图6中的(b)和(c)所示,电子设备响应于用户点击辅助功能选项的操作,显示辅助功能界面。在辅助功能界面中显示有智慧感知选项。如图6中的(c)和(d)所示,电子设备响应于用户点击智慧感知选项的操作,显示智慧感知设置界面。Exemplarily, FIG. 6 shows a schematic diagram of an interactive interface for a user to activate the smart perception function. As shown in (a) and (b) of FIG. 6 , the electronic device displays a setting main interface in response to the user's operation of clicking the setting application icon on the desktop. Accessibility options are displayed on the main setting interface. As shown in (b) and (c) of FIG. 6 , the electronic device displays an auxiliary function interface in response to the user's operation of clicking the auxiliary function option. The smart perception option is displayed in the accessibility interface. As shown in (c) and (d) of FIG. 6 , the electronic device displays a smart perception setting interface in response to the user's operation of clicking the smart perception option.

如图6中的(d)所示,在智慧感知设置界面中显示有智能注视设置栏,隔空手势设置栏以及其他设置栏。智能注视设置栏中包括注视屏幕不熄屏的开关,以及注视屏幕减弱音量的开关。隔空手势设置栏中包括隔空滑动屏幕的开关、隔空截屏的开关、隔空按压的开关、智感支付的开关。其他设置栏中包括智能AOD的开关、智能横竖屏的开关,以及辅助拍照的开关。As shown in (d) of FIG. 6 , the intelligent perception setting interface displays a smart gaze setting bar, an air gesture setting bar and other setting bars. The smart gaze setting bar includes a switch to keep the screen on while watching the screen, and a switch to reduce the volume while watching the screen. The air gesture setting bar includes the switch of sliding screen in the air, the switch of screenshot in the air, the switch of pressing in the air, and the switch of smart payment. The other settings bar includes the switch of smart AOD, the switch of smart horizontal and vertical screen, and the switch of auxiliary camera.

用户可以根据实际使用需求,开启或关闭上述各个功能中的一项或者多项。为了便于说明,下面以用户触发开启隔空截屏功能为例进行示例性说明。Users can turn on or off one or more of the above-mentioned functions according to actual usage needs. For the convenience of description, the following takes the user triggering to enable the function of taking a screenshot through the air as an example for an exemplary description.

S104,智慧感知应用响应于用户触发开启隔空截屏功能的操作,向智慧感知客户端查询隔空截屏业务的能力信息。S104, the smart perception application queries the capability information of the space screenshot service from the smart perception client in response to the user triggering the operation of enabling the space screenshot function.

其中,智慧感知应用向框架层模块发送查询业务能力的消息,框架层模块将该消息下发给智慧感知接口及服务模块,然后智慧感知接口及服务模块将该消息传递至智慧感知客户。智慧感知客户端可以调用能力管理模块,查询隔空截屏业务的能力信息。Among them, the smart perception application sends a message of querying business capabilities to the framework layer module, and the framework layer module sends the message to the smart perception interface and service module, and then the smart perception interface and service module deliver the message to the smart perception client. The smart perception client can call the capability management module to query the capability information of the air screenshot service.

其中,不同业务的能力值不同。例如隔空截屏功能的能力值为1-1,隔空滑动屏幕的能力值为1-2,隔空按压的能力值为1-3。Wherein, different services have different capability values. For example, the ability value of the screen capture function in the air is 1-1, the ability value of sliding the screen in the air is 1-2, and the ability value of pressing the screen in the air is 1-3.

S105,智慧感知客户端将查询到的业务能力信息反馈给智慧感知应用。S105. The smart perception client feeds back the queried service capability information to the smart perception application.

S106,智慧感知应用根据业务能力值,向智慧感知算法平台注册AON服务事件。S106. The smart perception application registers the AON service event with the smart perception algorithm platform according to the service capability value.

其中,注册的数据流从智慧感知应用开始,依次经过框架层模块、智慧感知接口及服务模块、智慧感知客户端,到达智慧感知算法平台。Among them, the registered data flow starts from the smart perception application, passes through the framework layer module, smart perception interface and service module, smart perception client, and reaches the smart perception algorithm platform.

S107,智慧感知算法平台根据业务能力值订阅AON服务事件。S107, the smart perception algorithm platform subscribes to the AON service event according to the service capability value.

例如,假设业务能力值为1-1,如上所述可知,隔空截屏功能的能力值为1-1,那么智慧感知算法平台订阅的AON服务事件为隔空截屏。For example, assuming that the business capability value is 1-1, as mentioned above, the capability value of the air-screen capture function is 1-1, then the AON service event subscribed by the smart perception algorithm platform is an air-space screen capture.

其中,在订阅AON服务事件的情况下,智慧感知算法平台会根据需求在一些情况下采用较低分辨率的图像规格,例如QQVGA(160×120),在另一些情况下采用较高分辨率的图像规格,例如QVGA(320×240)。并且智慧感知算法平台会根据需求在一些情况下使用TCM内存进行数据缓存,在另一些情况下共同使用DDR内存和TCM内存进行数据存储。Among them, in the case of subscribing to AON service events, the intelligent perception algorithm platform will adopt lower resolution image specifications in some cases, such as QQVGA (160×120), and higher resolution in other cases. Image format, such as QVGA (320×240). In addition, the intelligent perception algorithm platform will use TCM memory for data caching in some cases according to requirements, and use DDR memory and TCM memory for data storage in other cases.

下述S108-S117为AON智慧感知的循环执行过程。The following S108-S117 is the cyclic execution process of AON smart perception.

S108,前置摄像头在设备亮屏和灭屏时采集连续多帧图像,并将采集的连续多帧图像传递给智慧感知算法平台。S108, the front camera collects continuous multi-frame images when the screen of the device is turned on and off, and transmits the collected continuous multi-frame images to the intelligent perception algorithm platform.

其中,前置摄像头指AON相机。Wherein, the front camera refers to an AON camera.

S109,智慧感知算法平台获取QQVGA规格的连续多帧图像,将图像存储于TCM内存中,并对连续多帧图像进行分析。S109, the intelligent perception algorithm platform acquires continuous multi-frame images of QQVGA specification, stores the images in the TCM memory, and analyzes the continuous multi-frame images.

示例性地,AON相机(前置摄像头)按照QQVGA(160×120)规格输出较低分辨率的图像。相应地,智慧感知算法平台获取QQVGA(160×120)规格的较低分辨率的图像,进行图像分析。Exemplarily, the AON camera (front camera) outputs images with lower resolution according to the QQVGA (160×120) specification. Correspondingly, the smart perception algorithm platform acquires images with a lower resolution of the QQVGA (160×120) specification for image analysis.

S110,智慧感知算法平台根据分析结果判断是否满足第一预设触发条件。S110, the intelligent perception algorithm platform determines whether the first preset trigger condition is met according to the analysis result.

示例性地,上述第一预设触发条件可以包括:图像中包括手部特征,或者图像中包括二维码特征,或者图像中包括人眼特征,或者图像中包括人脸特征。需要说明的是,这里第一预设触发条件为示例性地说明,具体可以根据实际使用需求进行设置,本申请实施例不作限定。Exemplarily, the above-mentioned first preset trigger condition may include: the image includes hand features, or the image includes two-dimensional code features, or the image includes human eye features, or the image includes human face features. It should be noted that the first preset trigger condition here is described as an example, and may be specifically set according to actual usage requirements, and is not limited in this embodiment of the present application.

例如,假设分析结果表明图像中有手部特征,满足第一预设触发条件,那么可以判断隔空手势业务被触发。For example, assuming that the analysis result shows that there are hand features in the image and the first preset trigger condition is met, it can be determined that the air gesture service is triggered.

再例如,假设分析结果表明图像中有人眼特征,满足第一预设触发条件,那么可以判断智能注视业务被触发。For another example, assuming that the analysis result shows that there are human eye features in the image and the first preset trigger condition is met, it can be determined that the smart gaze service is triggered.

S111,当根据分析结果判断不满足第一预设触发条件时,智慧感知客户端不作响应,且释放无效帧。S111, when it is judged according to the analysis result that the first preset trigger condition is not satisfied, the smart perception client does not respond, and releases the invalid frame.

在S110判断满足第一预设触发条件之后,继续执行S112-S113,并且在S110判断满足第一预设触发条件之后,继续执行S114。After it is judged in S110 that the first preset trigger condition is met, continue to execute S112-S113, and after it is judged in S110 that the first preset trigger condition is met, continue to execute S114.

S112,智慧感知客户端向智慧感知应用上报业务被触发的消息。S112. The smart perception client reports a message that the service is triggered to the smart perception application.

S113,智慧感知应用在屏幕上显示被触发业务对应的提示信息。S113, the smart perception application displays prompt information corresponding to the triggered service on the screen.

示例性地,图7示出了隔空手势业务被触发时的交互界面示意图。如图7中的(a)所示,前置摄像头采集到用户手掌展开的图像,经过图像分析后可以确定隔空手势业务被触发,此时手机屏幕上可以显示手掌展开的图像11。如图7中的(b)所示,前置摄像头采集到用户合拢展开的图像,经过图像分析后可以确定用户触发的隔空手势业务具体是隔空截屏业务,相应地,此时手机屏幕上可以显示手掌合拢的图像12,并显示“正在截屏”的提示信息。由此,用户在看到手机上显示的提示信息后,可以获知自己做出的隔空手势正在被手机识别,提升了用户的交互体验。Exemplarily, FIG. 7 shows a schematic diagram of an interactive interface when the air gesture service is triggered. As shown in (a) in Figure 7, the front-facing camera captures an image of the user's palm spreading out. After image analysis, it can be determined that the air gesture service is triggered. At this time, the image 11 of the palm spreading out can be displayed on the screen of the mobile phone. As shown in (b) in Figure 7, the front-facing camera captures the image that the user folds and expands. After image analysis, it can be determined that the air gesture service triggered by the user is specifically an air screenshot service. Correspondingly, the mobile phone screen at this time An image 12 of palms together can be displayed, and a prompt message of "screen capture" can be displayed. In this way, after seeing the prompt information displayed on the mobile phone, the user can know that the air gesture made by him/her is being recognized by the mobile phone, which improves the user's interactive experience.

S114,智慧感知算法平台获取QVGA规格的连续多帧图像,将图像存储于DDR内存和TCM内存中,并对连续多帧图像进行分析,得到图像分析结果。S114, the intelligent perception algorithm platform acquires continuous multi-frame images of QVGA specification, stores the images in DDR memory and TCM memory, and analyzes the continuous multi-frame images to obtain image analysis results.

示例性地,AON相机(前置摄像头)按照QVGA(320×240)规格输出较高分辨率的图像。相应地,智慧感知算法平台获取QVGA(320×240)规格的较高分辨率的图像,进行图像分析。Exemplarily, the AON camera (front camera) outputs images with higher resolution according to the QVGA (320×240) specification. Correspondingly, the intelligent perception algorithm platform acquires higher-resolution images of the QVGA (320×240) specification for image analysis.

需要说明的是,DDR内存和TCM内存分别运行在不同的硬件缓存区。其中,DDR内存可以访问TCM内存中的数据,TCM内存不支持访问DDR内存中的数据。It should be noted that the DDR memory and the TCM memory run in different hardware buffer areas. Among them, the DDR memory can access the data in the TCM memory, but the TCM memory does not support accessing the data in the DDR memory.

S115,智慧感知算法平台将图像分析结果上报给智慧感知应用。S115. The intelligent perception algorithm platform reports the image analysis result to the intelligent perception application.

S116,智慧感知应用按照图像分析结果对应的预设策略做出响应。S116. The smart perception application responds according to the preset policy corresponding to the image analysis result.

示例性地,对连续多帧图像进行分析后发现,用户手势具体为抓握手势,即业务1的分析结果为抓握手势,抓握手势对应的预设策略为隔空截屏。因此,智慧感知应用按照抓握手势对应的预设策略做出响应,如隔空截屏。For example, after analyzing multiple consecutive frames of images, it is found that the user's gesture is specifically a grasping gesture, that is, the analysis result of service 1 is a grasping gesture, and the preset strategy corresponding to the grasping gesture is an air screenshot. Therefore, the smart perception application responds according to the preset strategy corresponding to the grasping gesture, such as taking a screenshot in the air.

以上说明了用户触发开启智慧感知功能以及执行AON智慧感知的过程。在一些实施例中,用户可以根据使用需求,触发关闭智慧感知功能,具体过程参见下述S117-S119。The above describes the process of the user triggering the smart perception function and executing AON smart perception. In some embodiments, the user can trigger the shutdown of the smart perception function according to usage requirements. For the specific process, refer to the following S117-S119.

S117,智慧感知应用接收用户关闭智慧感知功能的操作。S117. The smart sensing application receives an operation of disabling the smart sensing function from the user.

这里智慧感知功能可以为以下任一种:隔空手势功能、智能识码功能、注视不熄屏功能、注视降低音量功能、智能横竖屏功能、辅助拍照功能、智能AOD功能。用户可以根据实际使用需求,关闭上述各个功能中的一项或者多项。为了便于说明,下面以用户触发关闭隔空截屏功能为例进行示例性说明。Here, the smart sensing function can be any of the following: air gesture function, smart code recognition function, gazing at the screen without turning off, gazing at the volume down function, smart horizontal and vertical screen function, auxiliary camera function, and smart AOD function. Users can turn off one or more of the above-mentioned functions according to actual usage needs. For the convenience of description, the following takes the user's trigger to close the air screenshot function as an example for an exemplary description.

S118,响应于用户操作,智慧感知应用向智慧感知算法平台发送注销AON服务事件的消息。S118. In response to the user operation, the smart perception application sends a message of canceling the AON service event to the smart perception algorithm platform.

S119,智慧感知算法平台停止订阅AON服务事件。S119, the intelligent perception algorithm platform stops subscribing to AON service events.

示例性地,AON服务事件为隔空截屏,在停止订阅隔空截屏之后,隔空截屏业务将不会被触发,也就是说,手机不再对隔空截屏手势做出截屏响应。Exemplarily, the AON service event is an air screenshot. After the subscription to the air screenshot is stopped, the air screenshot service will not be triggered, that is, the mobile phone will no longer respond to the air screenshot gesture.

以上基于上述图4所示的软件架构,结合图5所示时序图,从新增的智慧算法平台的局部角度,对本申请实施例提供的图像处理方法中的业务感知及识别进行说明。下面结合图8所示流程图,从原生AON算法平台和新增的智慧算法平台的整体角度,对本申请实施例提供的图像处理方法分阶段进行说明。Based on the software architecture shown in FIG. 4 above, combined with the sequence diagram shown in FIG. 5 , the service perception and recognition in the image processing method provided by the embodiment of the present application are described from the partial perspective of the newly added smart algorithm platform. The following describes the image processing method provided by the embodiment of the present application in stages from the perspective of the original AON algorithm platform and the newly added smart algorithm platform in combination with the flow chart shown in FIG. 8 .

首先需要说明的是,原生AON算法平台支持处理的业务包括人脸解锁屏幕业务,新增的智慧算法平台支持处理的业务包括隔空手势业务、智能识码业务、注视屏幕不熄屏业务、注视屏幕降低音量业务、智能横竖屏业务、辅助拍照业务以及智能熄屏显示业务。First of all, it needs to be explained that the original AON algorithm platform supports the processing of face unlocking screen business, and the newly added smart algorithm platform supports the processing of business including air gesture business, smart code recognition business, watching the screen without turning off the screen business, watching The business of lowering the volume of the screen, the business of intelligent horizontal and vertical screen, the business of auxiliary photo taking, and the business of intelligent screen-off display.

S201,通过电子设备的AON相机(前置摄像头)实时采集连续多帧图像。S201, collecting continuous multi-frame images in real time through an AON camera (front camera) of the electronic device.

S202,获取较低分辨率(例如QQVGA规格)的连续多帧图像,采用低功耗TCM内存进行数据缓存,并对连续多帧图像进行分析。S202. Acquire continuous multi-frame images with lower resolution (such as QQVGA specification), use low-power TCM memory for data buffering, and analyze the continuous multi-frame images.

其中,AON相机(前置摄像头)按照QVGA(320×240)规格输出较高分辨率的图像。相应地,智慧感知算法平台获取QVGA(320×240)规格的较高分辨率的图像,进行图像分析。Among them, the AON camera (front camera) outputs images with higher resolution according to the QVGA (320×240) specification. Correspondingly, the intelligent perception algorithm platform acquires higher-resolution images of the QVGA (320×240) specification for image analysis.

S203,根据图像分析结果判断是否满足第一预设触发条件。S203. Determine whether a first preset trigger condition is met according to the image analysis result.

其中,可以通过判断分析结果是否满足第一预设触发条件,来判断是否有业务被触发。Wherein, it may be judged whether a service is triggered by judging whether the analysis result satisfies the first preset trigger condition.

示例性地,第一预设触发条件可以为以下任一项:图像中包含第一预设特征,且所述图像是在屏幕亮屏且解锁时采集的图像;或者,图像中包含人脸特征,且所述图像是在屏幕灭屏时采集的图像。其中,第一预设特征可以包括人脸特征、人眼特征、手势特征和二维码特征中的任一项。Exemplarily, the first preset trigger condition may be any of the following: the image contains the first preset feature, and the image is an image collected when the screen is turned on and unlocked; or, the image contains human face features , and the image is an image captured when the screen is off. Wherein, the first preset feature may include any one of human face feature, human eye feature, gesture feature and two-dimensional code feature.

一方面,当S204判断满足第一预设触发条件时,继续执行下述的S204-S207。即通过新增的智慧感知算法平台进行业务数据处理。如上所述,新增的智慧感知算法平台支持处理的预设业务可以包括隔空手势业务、智能识码业务、注视不熄屏业务、注视降低音量业务、智能横竖屏业务、辅助拍照业务、智能AOD业务能。On the one hand, when it is judged in S204 that the first preset trigger condition is satisfied, the following S204-S207 are continued to be executed. That is, business data processing is performed through the newly added intelligent perception algorithm platform. As mentioned above, the preset services supported by the newly added intelligent perception algorithm platform can include air gesture services, intelligent code recognition services, watch-on screen services, watch-down volume services, intelligent horizontal and vertical screen services, auxiliary camera services, smart AOD business can.

S204,获取较高分辨率(例如QVGA规格)的连续多帧图像,并采用DDR内存以及TCM内存进行数据缓存。S204. Acquire continuous multi-frame images with higher resolution (for example, QVGA specification), and use DDR memory and TCM memory for data buffering.

S205,通过新增的智慧感知算法平台分析连续多帧图像,得到图像分析结果1。S205, analyzing continuous multi-frame images through the newly added intelligent perception algorithm platform, and obtaining image analysis result 1.

S206,新增的智慧感知算法平台向应用层上报图像分析结果1。S206, the newly added intelligent perception algorithm platform reports the image analysis result 1 to the application layer.

S207,按照图像分析结果1对应的预设策略做出响应。S207. Make a response according to the preset strategy corresponding to the image analysis result 1.

举例来说,对前置摄像头采集的多帧连续图像进行分析,此时多帧连续图像采用低分辨率图像,且采用低功耗内存进行缓存。如果发现多帧连续图像满足第一预设触发条件,那么可以判断出有业务被触发,例如多帧连续图像中包括二维码特征,由此可以判断被触发业务为智能识码业务。通过判断可知,该智能识码业务为新增的智慧感知算法平台中的预设业务,因此将该业务分析任务分配给新增的智慧感知算法平台,由新增的智慧感知算法平台对多帧连续图像进行图像分析,此时多帧连续图像采用高分辨率图像,且采用正常功耗内存和低功耗内存进行缓存。For example, the multi-frame continuous images collected by the front-facing camera are analyzed. At this time, the multi-frame continuous images use low-resolution images and use low-power memory for caching. If it is found that multiple frames of continuous images satisfy the first preset trigger condition, it can be determined that a service is triggered, for example, multiple frames of continuous images include a two-dimensional code feature, and thus it can be determined that the triggered service is an intelligent code recognition service. It can be seen from the judgment that the intelligent code recognition service is a preset service in the newly added intelligent perception algorithm platform, so the business analysis task is assigned to the newly added intelligent perception algorithm platform, and the newly added intelligent perception algorithm platform analyzes the multi-frame Continuous images are used for image analysis. At this time, multi-frame continuous images use high-resolution images, and normal power consumption memory and low power consumption memory are used for caching.

另一方面,当S204判断不满足第一预设触发条件时,继续执行下述的S208-S212。即通过原生AON算法平台进行业务数据处理。On the other hand, when it is judged in S204 that the first preset trigger condition is not met, the following S208-S212 are continued to be executed. That is, business data processing is performed through the native AON algorithm platform.

S208,先根据图像分析结果判断是否满足第二预设触发条件。S208, first judge whether the second preset trigger condition is met according to the image analysis result.

示例性地,第二预设触发条件为图像中包含人脸特征,且图像是在屏幕亮屏且锁屏时采集的图像。Exemplarily, the second preset trigger condition is that the image contains facial features, and the image is an image collected when the screen is on and locked.

S209,在判断满足第二预设触发条件时,获取较高分辨率(例如VGA规格)的连续多帧图像,并采用DDR内存进行数据缓存。S209, when it is judged that the second preset trigger condition is met, acquire continuous multi-frame images with higher resolution (for example, VGA specification), and use DDR memory for data buffering.

S210,通过原生AON算法平台分析连续多帧图像,得到图像分析结果2。S210, analyzing continuous multi-frame images through native AON algorithm platform to obtain image analysis result 2.

S211,原生AON算法平台向应用层上报图像分析结果2。S211. The native AON algorithm platform reports the image analysis result 2 to the application layer.

S212,按照图像分析结果2对应的预设策略做出响应。S212. Make a response according to the preset strategy corresponding to the image analysis result 2.

举例来说,对前置摄像头采集的多帧连续图像进行分析,此时多帧连续图像采用低分辨率图像,且采用低功耗内存进行缓存。如果发现多帧连续图像满足第一预设触发条件,那么可以判断出有业务被触发,例如电子设备亮屏且锁屏时采集的多帧连续图像中包括人脸特征,由此可以判断被触发业务为人脸解锁屏幕业务。通过判断可知,该人脸解锁屏幕业务为原生AON算法平台中的预设业务,因此将该业务分析任务分配给原生AON算法平台,由原生AON算法平台对多帧连续图像进行图像分析,此时多帧连续图像采用高分辨率图像,且采用正常功耗内存和低功耗内存进行缓存。For example, the multi-frame continuous images collected by the front-facing camera are analyzed. At this time, the multi-frame continuous images use low-resolution images and use low-power memory for caching. If it is found that multiple frames of continuous images satisfy the first preset trigger condition, it can be determined that a service is triggered, for example, the multiple frames of continuous images collected when the screen of the electronic device is turned on and locked include facial features, so it can be determined that it is triggered The business is face unlocking screen business. It can be seen from the judgment that the face unlocking screen service is a preset service in the native AON algorithm platform, so the business analysis task is assigned to the native AON algorithm platform, and the native AON algorithm platform performs image analysis on multiple frames of continuous images. Multi-frame continuous images use high-resolution images, and use normal power consumption memory and low power consumption memory for caching.

需要说明的是,在本申请实施例中,当判断不满足第一预设触发条件,也不满足第二预设触发条件时,即没有业务被触发时,丢弃所采集的连续多帧图像,然后返回执行上述的S201。It should be noted that, in the embodiment of the present application, when it is judged that neither the first preset trigger condition nor the second preset trigger condition is satisfied, that is, when no service is triggered, the collected continuous multi-frame images are discarded, Then return to execute the above S201.

其中,本申请实施例通过新增的智慧感知算法平台和原生AON算法平台共同实现AON智慧感知,其中,通过智慧感知算法平台完成的图像处理过程可划分为两个阶段:Among them, the embodiment of the present application implements AON smart perception together through the newly added smart perception algorithm platform and the original AON algorithm platform, wherein the image processing process completed through the smart perception algorithm platform can be divided into two stages:

第一阶段:如上述S201-S203,对前置摄像头采集的多帧连续图像进行粗分析,判断多帧连续图像是否满足第一预设触发条件,以判断是否有业务被触发。在第一阶段,多帧连续图像采用的是低分辨率图像,且采用低功耗内存进行数据缓存。The first stage: as in S201-S203 above, roughly analyze the multi-frame continuous images collected by the front camera, and determine whether the multi-frame continuous images meet the first preset trigger condition, so as to determine whether any service is triggered. In the first stage, low-resolution images are used for multi-frame continuous images, and low-power memory is used for data caching.

第二阶段:如上述S204-S207,对前置摄像头采集的多帧连续图像进行精分析,以识别被触发业务的具体内容。在第二阶段,多帧连续图像采用的是高分辨率图像,且采用正常功耗内存和低功耗内存一起进行数据缓存。The second stage: as in S204-S207 above, finely analyze the multi-frame continuous images collected by the front camera to identify the specific content of the triggered service. In the second stage, multi-frame continuous images use high-resolution images, and use normal power consumption memory and low power consumption memory together for data caching.

以上结合图8所示流程图,对本申请实施例提供的图像处理方法分阶段进行说明。下面结合图9所示流程图,根据亮屏/灭屏场景进行判断,对本申请实施例提供的图像处理方法中的业务识别过程进行说明。The above describes the image processing method provided by the embodiment of the present application in stages with reference to the flow chart shown in FIG. 8 . The following describes the service identification process in the image processing method provided in the embodiment of the present application by making a judgment according to the on-screen/off-screen scene with reference to the flow chart shown in FIG. 9 .

需要说明的是,下面假设新增的智慧感知算法平台支持的隔空手势业务、智能识码业务、注视不熄屏业务、注视降低音量业务、智能横竖屏业务、辅助拍照业务、智能AOD等业务均已开启,其中智能AOD业务应用于灭屏场景,其他这些业务都应用于亮屏场景。It should be noted that the following assumes that the newly-added smart perception algorithm platform supports the gesture business, smart code recognition business, watch the screen service, watch the volume down service, intelligent horizontal and vertical screen business, auxiliary camera service, smart AOD and other services All have been enabled, among which the smart AOD service is applied to the off-screen scene, and the other services are applied to the on-screen scene.

如图9所示,业务识别过程包括S301-S316。As shown in Figure 9, the service identification process includes S301-S316.

S301,通过电子设备的前置摄像头实时采集连续多帧图像。S301, collecting continuous multi-frame images in real time through the front camera of the electronic device.

S302,获取较低分辨率的连续多帧图像,并采用低功耗TCM内存进行数据缓存,并对连续多帧图像进行分析。S302. Acquire continuous multi-frame images with lower resolution, and use low-power consumption TCM memory for data buffering, and analyze the continuous multi-frame images.

示例性地,如上所述,可以由智慧感知算法平台对连续多帧图像进行分析。Exemplarily, as mentioned above, the continuous multi-frame images can be analyzed by the intelligent perception algorithm platform.

S303,根据分析结果判断是否满足第一预设触发条件。S303. Determine whether a first preset trigger condition is met according to the analysis result.

与上述S203类似,通过判断分析结果是否满足第一预设触发条件,来判断是否有业务被触发。Similar to the above S203, by judging whether the analysis result satisfies the first preset trigger condition, it is judged whether any service is triggered.

当S303判断图像中不满足第一预设触发条件时,丢弃已采集的图像帧,返回继续执行S301。When it is judged in S303 that the first preset trigger condition is not met in the image, the captured image frame is discarded, and the execution returns to S301.

S304,当判断满足第一预设触发条件时,判断是否在亮屏场景下触发了业务。S304. When it is judged that the first preset trigger condition is satisfied, judge whether the service is triggered in the bright screen scene.

当判断是在亮屏场景下触发了业务时,继续执行下述的S305。当判断不是在亮屏状态下触发时,继续执行下述的S307。When it is judged that the service is triggered in the bright screen scene, continue to execute the following S305. When it is judged that the trigger is not in the bright screen state, continue to execute the following S307.

S305,判断屏幕是否锁屏。S305, judging whether the screen is locked.

若屏幕锁屏,则继续执行S306-S307;若屏幕未锁屏,即屏幕处于解锁状态,则继续执行S308-S3311。If the screen is locked, continue to execute S306-S307; if the screen is not locked, that is, the screen is in an unlocked state, continue to execute S308-S3311.

S306,当判断是在屏幕亮屏且解锁时触发了业务时,获取较高分辨率的连续多帧图像,采用DDR内存以及TCM内存进行数据缓存,并通过智慧感知算法平台分析图像。S306. When it is judged that the service is triggered when the screen is turned on and unlocked, obtain higher-resolution continuous multi-frame images, use DDR memory and TCM memory for data caching, and analyze the images through the intelligent perception algorithm platform.

S307,按照图像分析结果对应的执行策略做出响应,如隔空截屏/翻页/接听来电、智能识码、注视不熄屏、注视降低音量、智能横竖屏,和/或辅助拍照。S307. Respond according to the execution strategy corresponding to the image analysis result, such as taking screenshots/turning pages/answering calls in the air, intelligent code recognition, keeping the screen on while watching, lowering the volume while watching, intelligent horizontal and vertical screens, and/or assisting in taking pictures.

需要说明的是,具体屏幕亮屏且解锁时的图像处理方法将在图11中进行详细说明。It should be noted that the specific image processing method when the screen is turned on and unlocked will be described in detail in FIG. 11 .

S308,当判断是在屏幕亮屏且锁屏时触发了业务时,判断图像中是否有人脸特征。S308. When it is determined that the service is triggered when the screen is on and locked, determine whether there are facial features in the image.

S309,当判断图像中有人脸特征时,确定被触发业务为人脸解锁屏幕业务。S309, when it is judged that there is a face feature in the image, determine that the triggered service is a face unlocking screen service.

S310,通过智慧感知算法平台分析图像。S310, analyzing the image through the intelligent perception algorithm platform.

S311,按照图像分析结果对应的执行策略做出响应,即解锁屏幕。S311, make a response according to the execution policy corresponding to the image analysis result, that is, unlock the screen.

下面再看灭屏场景中的图像处理方法。Next, let's look at the image processing method in the off-screen scene.

S312,判断是否在灭屏场景下触发了业务。S312. Determine whether a service is triggered in the off-screen scene.

S313,当判断是在灭屏场景下触发了业务时,判断图像中是否有人脸特征。S313. When it is judged that the service is triggered in the screen-off scene, judge whether there is a human face feature in the image.

当判断图像中没有人脸特征时,不作响应,返回执行S301。When it is judged that there is no human face feature in the image, no response is made, and the execution returns to S301.

S314,当判断图像中有人脸特征时,确定被触发业务为智能AOD业务。S314. When judging that there is a face feature in the image, determine that the triggered service is an intelligent AOD service.

S315,获取较高分辨率的连续多帧图像,采用DDR内存以及TCM内存进行数据缓存,并通过智慧感知算法平台分析图像。S315 acquires continuous multi-frame images with higher resolution, uses DDR memory and TCM memory for data buffering, and analyzes images through the intelligent perception algorithm platform.

S316,按照图像分析结果对应的执行策略做出响应,即智能AOD。S316, make a response according to the execution policy corresponding to the image analysis result, that is, the smart AOD.

示例性地,图10示出了本申请实施例应用的智能AOD场景的界面示意图。Exemplarily, FIG. 10 shows a schematic interface of an intelligent AOD scene applied in the embodiment of the present application.

结合上述图9所示,通过亮屏场景的分支判断以及灭屏场景的分支判断,可以区分并识别不同场景下的业务,本申请实施例提供的图像处理方法能够支持更多AON智慧感知功能及业务,提升了用户使用体验。Combined with the above-mentioned figure 9, through the branch judgment of the bright screen scene and the branch judgment of the off-screen scene, the services in different scenes can be distinguished and identified. The image processing method provided by the embodiment of the present application can support more AON intelligent perception functions and business, improving the user experience.

上述图9对本申请实施例提供的在亮屏场景以及灭屏场景下的图像分析过程进行示例性说明。下面结合图11所示流程图,从新增的智慧感知算法平台的角度,对本申请实施例提供的在亮屏且解锁场景下的图像分析过程进行示例性说明。The above FIG. 9 exemplarily illustrates the image analysis process in the on-screen scene and off-screen scene provided by the embodiment of the present application. From the perspective of the newly added intelligent perception algorithm platform, the image analysis process provided by the embodiment of the present application in the scene of turning on the screen and unlocking is exemplarily described below in combination with the flow chart shown in FIG. 11 .

S401,通过电子设备的前置摄像头实时采集连续多帧图像。S401, collecting continuous multi-frame images in real time through the front camera of the electronic device.

S402,获取较低分辨率的连续多帧图像,并采用低功耗TCM内存进行数据缓存,并对连续多帧图像进行分析。S402. Acquire continuous multi-frame images with lower resolution, and use low-power TCM memory for data buffering, and analyze the continuous multi-frame images.

示例性地,如上所述,可以由智慧感知算法平台对连续多帧图像进行分析。Exemplarily, as mentioned above, the continuous multi-frame images can be analyzed by the intelligent perception algorithm platform.

S403,根据分析结果判断是否满足第一预设触发条件。S403. Determine whether a first preset trigger condition is met according to the analysis result.

其中,通过判断分析结果是否满足第一预设触发条件,来判断是否有业务被触发。Wherein, by judging whether the analysis result satisfies the first preset trigger condition, it is judged whether any service is triggered.

当S403判断图像中不满足第一预设触发条件时,丢弃已采集的图像帧,返回继续执行S401。When it is judged in S403 that the image does not meet the first preset trigger condition, the captured image frame is discarded, and the execution returns to S401.

S404,当判断满足第一预设触发条件时,判断屏幕是否亮屏且解锁。S404, when it is determined that the first preset trigger condition is satisfied, determine whether the screen is turned on and unlocked.

当判断屏幕亮屏且解锁,继续执行下述的S406-S415。When it is judged that the screen is on and unlocked, continue to execute the following S406-S415.

S405,当判断是在亮屏状态下触发时,获取较高分辨率的连续多帧图像,采用DDR内存以及TCM内存进行数据缓存,并通过智慧感知算法平台分析图像。S405, when it is determined that the trigger is in the bright screen state, obtain continuous multi-frame images with higher resolution, use DDR memory and TCM memory for data buffering, and analyze the images through the intelligent perception algorithm platform.

S406,判断图像中是否包含人脸特征。S406, judging whether the image contains facial features.

S407,当S406判断图像中包含人脸特征时,判断是否相机已开启。S407, when it is determined in S406 that the image contains facial features, determine whether the camera is turned on.

S408,当S407判断相机已开启时,确定图像分析结果为:被触发业务包括辅助拍照业务和智能横竖屏业务。S408, when it is determined in S407 that the camera is turned on, determine that the image analysis result is: the triggered services include the auxiliary photographing service and the intelligent horizontal and vertical screen service.

S409,当S407判断相机未开启时,确定图像分析结果为:被触发业务包括注视屏幕不熄屏业务、注视屏幕降低音量业务以及智能横竖屏业务。S409, when it is determined in S407 that the camera is not turned on, determine that the image analysis result is: the triggered services include the service of not turning off the screen while watching the screen, the service of reducing the volume while watching the screen, and the service of smart horizontal and vertical screens.

S410,当S406判断图像中不包含人脸特征时,判断图像中是否包含二维码。S410, when it is determined in S406 that the image does not contain human face features, determine whether the image contains a two-dimensional code.

S411,当S410判断图像中包含二维码时,确定图像分析结果为:被触发业务为智能识码业务。S411. When it is determined in S410 that the image contains a two-dimensional code, determine that the image analysis result is: the triggered service is an intelligent code identification service.

S412,当S410判断图像中不包含二维码时,判断图像中是否包含预设手势。S412, when it is determined in S410 that the image does not contain a two-dimensional code, determine whether the image contains a preset gesture.

S413,当S412判断图像中包含预设手势时,确定图像分析结果为:被触发业务为隔空手势业务。S413, when it is determined in S412 that the image contains a preset gesture, determine that the image analysis result is: the triggered service is an air gesture service.

当S412判断图像中不包含预设手势时,不作响应,返回继续执行S401。When it is judged in S412 that the image does not contain the preset gesture, no response is made, and the execution returns to S401.

在上述S408、S408、S411、S413之后,继续执行S414-S415。After the above S408, S408, S411, and S413, continue to execute S414-S415.

S414,获取图像分析结果。S414. Acquire an image analysis result.

S415,按照图像分析结果对应的预设策略做出响应。S415. Make a response according to the preset policy corresponding to the image analysis result.

示例性地,若图像分析结果为:被触发业务包括辅助拍照业务和智能横竖屏业务,则对应的预设策略包括基于人脸方向实现辅助拍照和智能横竖屏。Exemplarily, if the image analysis result is: the triggered service includes the auxiliary photographing service and the intelligent horizontal and vertical screen service, then the corresponding preset strategy includes implementing the auxiliary photographing and intelligent horizontal and vertical screen services based on the orientation of the face.

示例性地,若图像分析结果为:被触发业务包括注视屏幕不熄屏业务、注视屏幕降低音量业务以及智能横竖屏业务,则对应的预设策略包括注视屏幕不熄屏、注视屏幕降低音量以及智能横竖屏。Exemplarily, if the image analysis result is: the triggered services include the service of keeping the screen off while watching the screen, the service of reducing the volume while watching the screen, and the service of intelligent horizontal and vertical screens, then the corresponding preset policies include keeping the screen on while watching the screen, reducing the volume while watching the screen, and Smart horizontal and vertical screen.

示例性地,若图像分析结果为:被触发业务为智能识码业务,则对应的预设策略为扫码并识码,并跳转到支付码界面或乘车码界面。For example, if the image analysis result is: the triggered service is an intelligent code recognition service, then the corresponding preset strategy is to scan the code and read the code, and jump to the payment code interface or the ride code interface.

示例性地,若图像分析结果为:被触发业务为隔空手势业务且为抓握手势,则对应的预设策略为截屏;若图像分析结果为:被触发业务为隔空手势业务且为上/下滑手势,则对应的预设策略为翻页;若图像分析结果为:被触发业务为隔空手势业务且为隔空按压手势,则对应的预设策略为当接收到来电信号时确认接听来电,或者对应的预设策略为当电子设备显示桌面时快速跳转到支付码界面。示例性地,图12示出了本申请实施例应用的隔空截屏场景的界面示意图。For example, if the image analysis result is: the triggered service is an air gesture service and is a grasping gesture, then the corresponding preset strategy is screen capture; if the image analysis result is: the triggered service is an air gesture service and /sliding gesture, the corresponding default strategy is page turning; if the image analysis result is: the triggered service is an air gesture business and an air press gesture, then the corresponding default strategy is to confirm answering when an incoming call signal is received Incoming calls, or the corresponding preset strategy is to quickly jump to the payment code interface when the electronic device displays the desktop. Exemplarily, FIG. 12 shows a schematic interface diagram of an air screenshot scene applied in the embodiment of the present application.

通过上述方案,在亮屏场景下将被触发业务分配给新增的智慧感知算法平台,由新增的智慧感知算法平台进行图像分析,得到图像分析结果,进而可以按照图像分析结果对应的预设策略做出响应。因此本申请实施例提供的图像处理方法可以支持更多AON智慧感知功能及业务,提升了用户使用体验。Through the above solution, in the bright screen scene, the triggered business will be allocated to the newly added intelligent perception algorithm platform, and the newly added intelligent perception algorithm platform will perform image analysis to obtain the image analysis results, and then can follow the preset corresponding to the image analysis results The strategy responds. Therefore, the image processing method provided in the embodiment of the present application can support more AON smart perception functions and services, and improve user experience.

下述表1示出了在本申请方案应用于不同业务或特性的情况下的各项功耗以及总功耗。如表1所示,假设出图分辨率为320×240,帧率为10,智能扫码场景中总功耗为19.03mA,隔空手势场景中总功耗为19.03mA,智能横竖屏/人脸辅助拍照场景中总功耗为11.03mA。而采用相关技术时各个应用场景的总功耗大约为100mA。由此可见,本申请方案应用于不同业务或特性的情况下功耗较低,实现了低功耗AON智慧感知功能及业务。Table 1 below shows the power consumption of each item and the total power consumption when the solution of the present application is applied to different services or characteristics. As shown in Table 1, assuming that the image output resolution is 320×240, the frame rate is 10, the total power consumption in the smart scanning scene is 19.03mA, and the total power consumption in the air gesture scene is 19.03mA. The total power consumption in the face-assisted camera scene is 11.03mA. However, when the related technology is adopted, the total power consumption of each application scenario is about 100 mA. It can be seen that the solution of this application has low power consumption when it is applied to different services or characteristics, and realizes the low-power consumption AON smart sensing function and services.

表1Table 1

Figure BDA0004117708240000181
Figure BDA0004117708240000181

本申请在原生AON算法平台基础上新增了智慧感知算法平台,在AON智能感知场景中,通过前置摄像头常开并采集图像,智慧感知用户业务,能够广泛应用于隔空手势、智能扫码、智能注视等各种场景,极大地满足用户需求。本申请在监听到所采集图像满足第一预设触发条件时,先判断触发场景是在亮屏场景下触发还是在灭屏场景下触发,进行业务分类识别,然后将业务分发给本申请提供的智慧感知算法平台,并进一步判断具体业务内容。本申请AON相机以极低功耗运行,能够准确地感知用户业务,提升用户体验。This application adds a new intelligent perception algorithm platform based on the original AON algorithm platform. In the AON intelligent perception scene, the front camera is always on and collects images to intelligently perceive user services, which can be widely used in air gestures and intelligent code scanning. , smart gaze and other scenarios, which greatly meet the needs of users. When the application detects that the collected image meets the first preset trigger condition, it first judges whether the triggering scene is triggered in the bright screen scene or in the off-screen scene, performs business classification and identification, and then distributes the business to the Intelligent perception algorithm platform, and further judge the specific business content. The AON camera of this application operates with extremely low power consumption, can accurately perceive user services, and improves user experience.

需要说明的是,在本申请实施例中,“大于”可以替换为“大于或等于”,“小于或等于”可以替换为“小于”,或者,“大于或等于”可以替换为“大于”,“小于”可以替换为“小于或等于”。It should be noted that, in this embodiment of the application, "greater than" can be replaced with "greater than or equal to", "less than or equal to" can be replaced with "less than", or "greater than or equal to" can be replaced with "greater than", "Less than" can be replaced with "less than or equal to".

本文中描述的各个实施例可以为独立的方案,也可以根据内在逻辑进行组合,这些方案都落入本申请的保护范围中。The various embodiments described herein may be independent solutions, or may be combined according to internal logic, and these solutions all fall within the protection scope of the present application.

上文主要从方法步骤的角度对本申请实施例提供的方案进行了描述。可以理解的是,为了实现上述功能,实施该方法的电子设备包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的保护范围。The solutions provided by the embodiments of the present application are mainly described above from the perspective of method steps. It can be understood that, in order to realize the above functions, the electronic device implementing the method includes hardware structures and/or software modules corresponding to each function. Those skilled in the art should be aware that, in combination with the units and algorithm steps of the examples described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Professionals may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the protection scope of the present application.

本申请还提供一种芯片,该芯片与存储器耦合,该芯片用于读取并执行存储器中存储的计算机程序或指令,以执行上述各实施例中的方法。The present application also provides a chip, the chip is coupled with a memory, and the chip is used to read and execute computer programs or instructions stored in the memory, so as to execute the methods in the above-mentioned embodiments.

本申请还提供一种电子设备,该电子设备包括芯片,该芯片用于读取并执行存储器存储的计算机程序或指令,使得各实施例中的方法被执行。The present application also provides an electronic device, which includes a chip, and the chip is used to read and execute computer programs or instructions stored in a memory, so that the methods in each embodiment are executed.

本实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机指令,当该计算机指令在电子设备上运行时,使得电子设备执行上述相关方法步骤实现上述实施例中的图像处理方法。This embodiment also provides a computer-readable storage medium, where computer instructions are stored in the computer-readable storage medium, and when the computer instructions are run on the electronic device, the electronic device executes the above-mentioned relevant method steps to realize the steps in the above-mentioned embodiments. image processing method.

本实施例还提供了一种计算机程序产品,该计算机可读存储介质存储有程序代码,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的图像处理方法。This embodiment also provides a computer program product, the computer-readable storage medium stores program codes, and when the computer program product runs on a computer, the computer executes the above-mentioned related steps to realize the image processing in the above-mentioned embodiment method.

另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中的图像处理方法。In addition, an embodiment of the present application also provides a device, which may specifically be a chip, a component or a module, and the device may include a connected processor and a memory; wherein the memory is used to store computer-executable instructions, and when the device is running, The processor can execute the computer-executable instructions stored in the memory, so that the chip executes the image processing methods in the above method embodiments.

其中,本实施例提供的电子设备、计算机可读存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。Wherein, the electronic device, computer-readable storage medium, computer program product or chip provided in this embodiment is all used to execute the corresponding method provided above, therefore, the beneficial effects it can achieve can refer to the above-mentioned The beneficial effects of the corresponding method will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or It may be integrated into another device, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of the application, but the scope of protection of the application is not limited thereto. Anyone familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the application. Should be covered within the protection scope of this application. Therefore, the protection scope of the present application should be determined by the protection scope of the claims.

Claims (18)

1.一种图像处理方法,其特征在于,应用于电子设备的系统架构,所述系统架构包括第一算法平台和第二算法平台,所述第一算法平台支持处理的业务不同于所述第二算法平台支持处理的业务,所述第二算法平台支持处理的业务为人脸解锁屏幕业务,所述方法包括:1. An image processing method, characterized in that it is applied to the system architecture of electronic equipment, the system architecture includes a first algorithm platform and a second algorithm platform, and the business supported by the first algorithm platform is different from the first algorithm platform The business supported by the second algorithm platform is the face unlocking screen business, and the method includes: 所述电子设备开启第一功能,在所述第一功能开启后,所述电子设备的相机模块处于常开状态;The electronic device starts the first function, and after the first function is started, the camera module of the electronic device is in a normally-on state; 通过所述相机模块输出第一尺寸规格的多帧第一图像;Outputting multiple frames of first images of a first size specification through the camera module; 调用所述第一算法平台对所述多帧第一图像进行图像分析,得到第一图像分析结果;Invoking the first algorithm platform to perform image analysis on the multi-frame first images to obtain a first image analysis result; 当所述第一图像分析结果满足第一预设触发条件时,通过所述相机模块输出第二尺寸规格的多帧第二图像;调用所述第一算法平台对所述多帧第二图像进行图像分析,得到第二图像分析结果;按照所述第二图像分析结果对应的预设策略做出响应;When the first image analysis result satisfies the first preset trigger condition, the camera module outputs multiple frames of second images of a second size specification; the first algorithm platform is invoked to process the multiple frames of second images Image analysis to obtain a second image analysis result; make a response according to a preset strategy corresponding to the second image analysis result; 当所述第一图像分析结果满足第二预设触发条件时,通过所述相机模块输出第三尺寸规格的多帧第三图像;调用所述第二算法平台对所述多帧第三图像进行图像分析,得到第三图像分析结果;按照所述第三图像分析结果对应的预设策略做出响应;When the analysis result of the first image satisfies the second preset trigger condition, the camera module outputs multiple frames of third images of a third size specification; the second algorithm platform is invoked to process the multiple frames of third images Image analysis to obtain a third image analysis result; make a response according to a preset strategy corresponding to the third image analysis result; 其中,所述第一尺寸规格对应的分辨率低于所述第二尺寸规格对应的分辨率,第二尺寸规格对应的分辨率低于或等于第三尺寸规格对应的分辨率。Wherein, the resolution corresponding to the first size specification is lower than the resolution corresponding to the second size specification, and the resolution corresponding to the second size specification is lower than or equal to the resolution corresponding to the third size specification. 2.根据权利要求1所述的方法,其特征在于,所述第一预设触发条件为以下任一项:2. The method according to claim 1, wherein the first preset trigger condition is any of the following: 图像中包含第一预设特征,且所述图像是在屏幕亮屏且解锁时采集的图像;其中,所述第一预设特征包括人脸特征、人眼特征、手势特征和二维码特征中的任一项;The image contains a first preset feature, and the image is an image collected when the screen is turned on and unlocked; wherein, the first preset feature includes a face feature, a human eye feature, a gesture feature, and a two-dimensional code feature any of 图像中包含人脸特征,且所述图像是在屏幕灭屏时采集的图像;The image contains facial features, and the image is an image collected when the screen is off; 所述第二预设触发条件为图像中包含人脸特征,且所述图像是在屏幕亮屏且锁屏时采集的图像。The second preset trigger condition is that the image contains facial features, and the image is an image collected when the screen is on and locked. 3.根据权利要求1至2中任一项所述的方法,其特征在于,3. The method according to any one of claims 1 to 2, characterized in that, 所述第一算法平台支持处理的业务包括隔空手势业务、智能识码业务、注视屏幕不熄屏业务、注视屏幕降低音量业务、智能横竖屏业务、辅助拍照业务以及智能熄屏显示业务。The services supported by the first algorithm platform include air gesture service, intelligent code recognition service, screen-on-off service while watching the screen, volume-down service while watching the screen, intelligent horizontal and vertical screen service, auxiliary photo-taking service, and intelligent screen-off display service. 4.根据权利要求1至3中任一项所述的方法,其特征在于,所述方法还包括:4. The method according to any one of claims 1 to 3, wherein the method further comprises: 在通过所述电子设备的相机模块输出第一尺寸规格的多帧第一图像之后,将所述多帧第一图像存储于第一内存器;After the camera module of the electronic device outputs multiple frames of first images of a first size specification, storing the multiple frames of first images in a first memory; 在通过所述相机模块输出第二尺寸规格的多帧第二图像之后,将所述多帧第二图像存储于所述第一内存器和第二内存器;After outputting multiple frames of second images of a second size specification through the camera module, storing the multiple frames of second images in the first memory and the second memory; 在通过所述相机模块输出第三尺寸规格的多帧第三图像之后,将所述多帧第三图像存储于所述第二内存器;After outputting multiple frames of third images of a third size specification through the camera module, storing the multiple frames of third images in the second memory; 其中,在存储同一图像的情况下,所述第一内存器引起的功耗小于所述第二内存器引起的功耗,并且所述第一内存器和所述第二内存器共同引起的功耗小于所述第二内存器引起的功耗。Wherein, in the case of storing the same image, the power consumption caused by the first memory is less than the power consumption caused by the second memory, and the power consumption caused by the first memory and the second memory together consumption is less than the power consumption caused by the second memory. 5.根据权利要求4所述的方法,其特征在于,所述第一内存器为紧密耦合存储器TCM,所述第二内存器为双倍速率同步动态随机存储器DDR。5. The method according to claim 4, wherein the first memory is a TCM, and the second memory is a double rate synchronous dynamic random access memory (DDR). 6.根据权利要求1至5中任一项所述的方法,其特征在于,6. The method according to any one of claims 1 to 5, characterized in that, 所述第三尺寸规格为视频图形阵列VGA,对应的分辨率为640×480;The third size specification is a video graphics array VGA, and the corresponding resolution is 640×480; 所述第二尺寸规格为QVGA,对应的分辨率为320×240;The second size specification is QVGA, and the corresponding resolution is 320×240; 所述第一尺寸规格为QQVGA,对应的分辨率为160×120。The first size specification is QQVGA, and the corresponding resolution is 160×120. 7.根据权利要求1至6中任一项所述的方法,其特征在于,所述相机模块为前置摄像头。7. The method according to any one of claims 1 to 6, wherein the camera module is a front camera. 8.根据权利要求1至7中任一项所述的方法,其特征在于,所述系统框架还包括智慧感知应用,所述第一功能为智慧感知应用提供的功能;8. The method according to any one of claims 1 to 7, wherein the system framework further includes a smart perception application, and the first function is a function provided by the smart perception application; 在所述电子设备开启第一功能之后,所述方法还包括:After the electronic device starts the first function, the method further includes: 所述智慧感知应用接收用户开启第一业务的第一操作,所述第一业务为智慧感知应用支持的业务;The smart perception application receives a first operation of starting a first service by the user, and the first service is a service supported by the smart perception application; 响应于所述第一操作,所述智慧感知应用向所述第一算法平台下发第一消息,所述第一消息用于指示订阅所述第一业务;In response to the first operation, the smart perception application sends a first message to the first algorithm platform, where the first message is used to indicate subscription to the first service; 所述第一算法平台响应于所述第一消息,订阅所述第一业务;The first algorithm platform subscribes to the first service in response to the first message; 其中,所述第一业务为隔空手势、智能识码、注视屏幕不熄屏、注视屏幕降低音量、智能横竖屏、辅助拍照以及智能熄屏显示中的至少一项。Wherein, the first service is at least one of gestures in the air, intelligent code recognition, keeping the screen on while watching the screen, reducing the volume while watching the screen, intelligent horizontal and vertical screens, auxiliary photo taking, and intelligent screen-off display. 9.根据权利要求8所述的方法,其特征在于,在所述订阅所述第一业务之后,所述方法还包括:9. The method according to claim 8, characterized in that, after subscribing to the first service, the method further comprises: 所述第一算法平台向所述相机模块发送第二消息,所述第二消息用于请求所述相机模块按照所述第一尺寸规格输出图像。The first algorithm platform sends a second message to the camera module, and the second message is used to request the camera module to output an image according to the first size specification. 10.根据权利要求8或9所述的方法,其特征在于,在所述得到第一图像分析结果之后,所述方法还包括:10. The method according to claim 8 or 9, characterized in that, after said obtaining the first image analysis result, said method further comprises: 所述第一算法平台判断所述第一图像分析结果满足所述第一预设触发条件;The first algorithm platform judges that the first image analysis result satisfies the first preset trigger condition; 所述第一算法平台向所述相机模块发送第三消息,所述第三消息用于请求所述相机模块按照所述第二尺寸规格输出图像。The first algorithm platform sends a third message to the camera module, and the third message is used to request the camera module to output an image according to the second size specification. 11.根据权利要求10所述的方法,其特征在于,在所述第一算法平台判断所述第一图像分析结果满足所述第一预设触发条件之后,所述方法还包括:11. The method according to claim 10, characterized in that, after the first algorithm platform judges that the first image analysis result satisfies the first preset trigger condition, the method further comprises: 所述第一算法平台向所述智慧感知应用上报第四消息,所述第四消息用于指示所述智慧感知应用支持的第一业务被触发;The first algorithm platform reports a fourth message to the smart sensing application, where the fourth message is used to indicate that the first service supported by the smart sensing application is triggered; 所述智慧感知应用响应于所述第四消息,触发所述电子设备在屏幕预设区域处显示所述第一业务的提示信息。In response to the fourth message, the smart sensing application triggers the electronic device to display the prompt information of the first service in a preset area of the screen. 12.根据权利要求8至11中任一项所述的方法,其特征在于,在所述按照所述第二图像分析结果对应的预设策略做出响应之前,所述方法还包括:12. The method according to any one of claims 8 to 11, wherein before responding according to the preset policy corresponding to the second image analysis result, the method further comprises: 所述第一算法平台将所述第二图像分析结果上报给所述智慧感知应用;The first algorithm platform reports the second image analysis result to the smart perception application; 其中,所述按照所述第二图像分析结果对应的预设策略做出响应,包括:Wherein, the responding according to the preset strategy corresponding to the second image analysis result includes: 所述智慧感知应用按照所述第二图像分析结果对应的预设策略做出响应;The smart perception application makes a response according to a preset strategy corresponding to the second image analysis result; 其中,所述预设策略包括隔空截屏或翻页或接听来电、智能识码、注视屏幕不熄屏、注视屏幕降低音量、智能横竖屏、辅助拍照以及智能熄屏显示中的至少一项。Wherein, the preset strategy includes at least one of taking screenshots in the air or turning pages or answering calls, intelligent code recognition, watching the screen without turning off the screen, watching the screen to reduce the volume, intelligent horizontal and vertical screens, auxiliary photo taking, and intelligent screen-off display. 13.根据权利要求8至12中任一项所述的方法,其特征在于,所述系统框架还包括智慧感知接口;13. The method according to any one of claims 8 to 12, wherein the system framework further comprises an intelligent perception interface; 所述智慧感知应用和所述第一算法平台之间通过所述智慧感知接口进行数据交互。Data interaction is performed between the intelligent perception application and the first algorithm platform through the intelligent perception interface. 14.根据权利要求1至13中任一项所述的方法,其特征在于,所述系统框架还包括业务管理模块、分发器、智慧感知客户端和原生平台客户端;14. The method according to any one of claims 1 to 13, wherein the system framework further includes a business management module, a distributor, a smart perception client and a native platform client; 当所述第一图像分析结果满足所述第一预设触发条件时,所述业务管理模块确定第一处理任务,并通过所述分发器将所述第一处理任务发送给所述智慧感知客户端,所述智慧感知客户端将所述第一处理任务转发给所述第一算法平台;When the first image analysis result satisfies the first preset trigger condition, the service management module determines a first processing task, and sends the first processing task to the smart perception client through the distributor terminal, the smart perception client forwards the first processing task to the first algorithm platform; 当所述第一图像分析结果满足所述第二预设触发条件时,所述业务管理模块确定第二处理任务,并通过所述分发器将所述第二处理任务发送给所述原生平台客户端,所述原生平台客户端将所述第二处理任务转发给所述第二算法平台;When the first image analysis result satisfies the second preset trigger condition, the business management module determines a second processing task, and sends the second processing task to the native platform client through the distributor end, the native platform client forwards the second processing task to the second algorithm platform; 其中,第一处理任务为对所述多帧第二图像处理的任务,第二处理任务为对所述多帧第三图像处理的任务。Wherein, the first processing task is a task of processing the multiple frames of second images, and the second processing task is a task of processing the multiple frames of third images. 15.根据权利要求1至14中任一项所述的方法,其特征在于,所述系统框架还包括算法库,所述算法库中包括第一图像处理算法和第二图像处理算法;15. The method according to any one of claims 1 to 14, wherein the system framework further comprises an algorithm library, and the algorithm library includes a first image processing algorithm and a second image processing algorithm; 所述通过所述第一算法平台对所述多帧第一图像进行图像分析,得到第一图像分析结果,包括:所述第一算法平台调用所述算法库中的所述第一图像处理算法,对所述多帧第一图像进行图像分析,得到所述第一图像分析结果;Using the first algorithm platform to perform image analysis on the multiple frames of first images to obtain a first image analysis result includes: calling the first image processing algorithm in the algorithm library by the first algorithm platform , performing image analysis on the multiple frames of first images to obtain the first image analysis results; 所述通过所述第一算法平台对所述多帧第二图像进行图像分析,得到第二图像分析结果,包括:所述第一算法平台调用所述算法库中的所述第二图像处理算法,对所述多帧第二图像进行图像分析,得到所述第二图像分析结果;The performing image analysis on the multi-frame second images by the first algorithm platform to obtain the second image analysis results includes: calling the second image processing algorithm in the algorithm library by the first algorithm platform , performing image analysis on the multiple frames of second images to obtain the second image analysis results; 其中,所述第一图像处理算法对图像分辨率的要求低于所述第二图像处理算法对图像分辨率的要求。Wherein, the requirement of the first image processing algorithm for image resolution is lower than the requirement of the second image processing algorithm for image resolution. 16.根据权利要求1至15中任一项所述的方法,其特征在于,16. A method according to any one of claims 1 to 15, wherein 所述第二算法平台为原生芯片提供的支持相机常开AON算法的框架,所述第一算法平台为基于所述第二算法平台创建的支持多业务的AON算法集成框架。The second algorithm platform is a framework provided by the original chip that supports the camera's always-on AON algorithm, and the first algorithm platform is an AON algorithm integration framework that supports multiple services created based on the second algorithm platform. 17.一种电子设备,其特征在于,包括处理器、存储器以及存储在所述存储器上的计算机程序,所述处理器用于执行所述计算机程序,以使得所述电子设备实现如权利要求1至16中任一项所述的方法。17. An electronic device, characterized in that it comprises a processor, a memory, and a computer program stored on the memory, the processor is used to execute the computer program, so that the electronic device realizes the requirements of claims 1 to 10. The method of any one of 16. 18.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,当所述计算机程序在电子设备上运行时,使得所述电子设备执行如权利要求1至16中任一项所述的方法。18. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, and when the computer program is run on an electronic device, the electronic device executes the electronic device according to claims 1 to 16. any one of the methods described.
CN202310222795.XA 2023-02-27 2023-02-27 Image processing method, electronic device and storage medium Active CN116301362B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310222795.XA CN116301362B (en) 2023-02-27 2023-02-27 Image processing method, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310222795.XA CN116301362B (en) 2023-02-27 2023-02-27 Image processing method, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN116301362A true CN116301362A (en) 2023-06-23
CN116301362B CN116301362B (en) 2024-04-05

Family

ID=86789966

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310222795.XA Active CN116301362B (en) 2023-02-27 2023-02-27 Image processing method, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN116301362B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117692540A (en) * 2023-08-16 2024-03-12 荣耀终端有限公司 Business management method, electronic device and computer-readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102104768A (en) * 2009-12-22 2011-06-22 乐金电子(中国)研究开发中心有限公司 Image monitoring method, main control device and system
CN104410785A (en) * 2014-11-17 2015-03-11 联想(北京)有限公司 An information processing method and electronic device
CN110119684A (en) * 2019-04-11 2019-08-13 华为技术有限公司 Image-recognizing method and electronic equipment
CN110706391A (en) * 2019-09-27 2020-01-17 恒大智慧科技有限公司 Face identification verification passing method, identity verification device and storage medium
CN110737321A (en) * 2019-09-03 2020-01-31 珠海亿智电子科技有限公司 image display device and method for displaying background image with low power consumption
CN111902791A (en) * 2018-10-16 2020-11-06 华为技术有限公司 Method, chip and terminal for identifying user behavior
CN112351194A (en) * 2020-08-31 2021-02-09 华为技术有限公司 Service processing method and device
CN112446251A (en) * 2019-08-30 2021-03-05 深圳云天励飞技术有限公司 Image processing method and related device
CN114127686A (en) * 2020-04-27 2022-03-01 华为技术有限公司 Method, device and terminal for starting application program

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102104768A (en) * 2009-12-22 2011-06-22 乐金电子(中国)研究开发中心有限公司 Image monitoring method, main control device and system
CN104410785A (en) * 2014-11-17 2015-03-11 联想(北京)有限公司 An information processing method and electronic device
CN111902791A (en) * 2018-10-16 2020-11-06 华为技术有限公司 Method, chip and terminal for identifying user behavior
CN110119684A (en) * 2019-04-11 2019-08-13 华为技术有限公司 Image-recognizing method and electronic equipment
CN112446251A (en) * 2019-08-30 2021-03-05 深圳云天励飞技术有限公司 Image processing method and related device
CN110737321A (en) * 2019-09-03 2020-01-31 珠海亿智电子科技有限公司 image display device and method for displaying background image with low power consumption
CN110706391A (en) * 2019-09-27 2020-01-17 恒大智慧科技有限公司 Face identification verification passing method, identity verification device and storage medium
CN114127686A (en) * 2020-04-27 2022-03-01 华为技术有限公司 Method, device and terminal for starting application program
CN112351194A (en) * 2020-08-31 2021-02-09 华为技术有限公司 Service processing method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117692540A (en) * 2023-08-16 2024-03-12 荣耀终端有限公司 Business management method, electronic device and computer-readable storage medium
CN117692540B (en) * 2023-08-16 2024-11-26 荣耀终端有限公司 Business management method, electronic device and computer readable storage medium

Also Published As

Publication number Publication date
CN116301362B (en) 2024-04-05

Similar Documents

Publication Publication Date Title
JP7391102B2 (en) Gesture processing methods and devices
CN116301363B (en) Space gesture recognition method, electronic equipment and storage medium
WO2022042285A1 (en) Method for displaying interface of application program and electronic device
EP4209874A1 (en) Application startup method and apparatus, and electronic device
US20220044043A1 (en) Integrated circuit and sensor data processing method
CN111555825B (en) Radio frequency resource allocation method and device
EP4336330A1 (en) Two-dimensional code recognition method, electronic device, and storage medium
CN116069212A (en) Quick looking-up method for application card, electronic equipment and storage medium
WO2021057699A1 (en) Method for controlling electronic device with flexible screen, and electronic device
CN116301362B (en) Image processing method, electronic device and storage medium
WO2023093169A1 (en) Photographing method and electronic device
EP4339765A1 (en) Method for displaying multiple interfaces, and electronic device
CN118312035A (en) Display method and electronic equipment
WO2022002213A1 (en) Translation result display method and apparatus, and electronic device
CN116521018B (en) False touch prompting method, terminal equipment and storage medium
WO2024032124A1 (en) Method for folding and unfolding scroll screen and related product
WO2023029565A1 (en) Touch-control sampling rate adjustment method and related apparatus
WO2021197085A1 (en) Mistouch prompting method and apparatus for terminal device having under-display camera
EP4057122A1 (en) Screenshot method and related device
WO2023124129A1 (en) Method for displaying two-dimensional code, and electronic device
CN116415951B (en) Method and electronic device for displaying QR code
WO2021151341A1 (en) Distorted-fingerprint-based touch-control method and electronic device
WO2025030802A1 (en) Display method, electronic device and system
WO2024012354A1 (en) Display method and electronic device
WO2024221929A9 (en) Display method and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Terminal Co.,Ltd.

Country or region after: China

Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong

Patentee before: Honor Device Co.,Ltd.

Country or region before: China