WO2022041155A1 - Application program identification device and electronic device - Google Patents

Application program identification device and electronic device Download PDF

Info

Publication number
WO2022041155A1
WO2022041155A1 PCT/CN2020/112290 CN2020112290W WO2022041155A1 WO 2022041155 A1 WO2022041155 A1 WO 2022041155A1 CN 2020112290 W CN2020112290 W CN 2020112290W WO 2022041155 A1 WO2022041155 A1 WO 2022041155A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
application
user
application program
information
Prior art date
Application number
PCT/CN2020/112290
Other languages
French (fr)
Chinese (zh)
Inventor
唐頔朏
冯太锐
张树本
李令言
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN202080007252.0A priority Critical patent/CN114667505A/en
Priority to PCT/CN2020/112290 priority patent/WO2022041155A1/en
Publication of WO2022041155A1 publication Critical patent/WO2022041155A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Definitions

  • the present application relates to the technical field of electronic devices, and in particular, to an application identification device and an electronic device.
  • Smart mobile terminals have been integrated into all aspects of daily life and can meet various needs of users. For example, users can use shared bicycles through mobile terminals, make payments through mobile terminals, and take public transportation through mobile terminals.
  • virtual keys can also be set, and the user can quickly start the application by touching the virtual keys, but the display interface of the mobile terminal may be messy; or, the corresponding touch track can also be set for the application in advance, as shown in the figure
  • the memory in the mobile terminal stores the preset correspondence between the touch track and the application program. After the user inputs the touch track, the touch track input by the user and the touch track in the above-mentioned corresponding relationship are sequentially matched. If successful, the corresponding application program is activated, but the user needs to remember the touch track corresponding to each application program, which increases the user's memory burden.
  • fingerprint recognition can also be added, that is, when the user uses different fingers to perform the same operation, they can correspond to different applications; however, in some scenarios, the user's fingers may be inconvenient.
  • the mobile terminal operates, for example, when the weather is cold and the user wears gloves, the user needs to take off the gloves first, or when the user's fingers are too wet, too dry or stick to objects, the fingerprint may not be recognized.
  • the prior art proposes a solution for entering an application program through an image recognition technology, the types of images that can be recognized are limited, and the types of entering or opening an application program are limited, which reduces user experience.
  • the present application provides an identification device and electronic device for an application program, which supports users to customize an application program that can be activated based on an image recognition technology, simplifies the user operation process, and improves the user experience.
  • an embodiment of the present application provides an application identification device, including: a main processor configured to receive a first instruction triggered by a user, where the first instruction is used to instruct a first image to be associated with a first associated with an application; a coprocessor, configured to identify the first image to obtain a first image feature, and send first information to the main processor for indicating the first image feature; the The main processor is further configured to associate the first image feature with the first application when it is determined that the first information is not included in the database, and save the first information and all the first information in the database the first application; wherein the database includes information for indicating at least one image feature and an application associated with each image feature.
  • the recognition device can automatically start the application program associated with the image feature, which not only simplifies the user's operation process, but also expands the activation process based on image recognition technology. type of application.
  • the first information includes a first image feature and/or an identification of the first image feature.
  • a signal processing device is further included for processing the first data from the image sensor to obtain the first image.
  • the first image is an image specified by a user in at least one preset image.
  • the signal processing device is further configured to process the second data from the image sensor to obtain a second image; the coprocessor is further configured to process the second image The image is identified to obtain a second image feature, and when it is determined that the database includes second information for indicating the second image feature, the second information is sent to the main processor.
  • the main processor is further configured to determine the application program associated with the second image feature in the database as the target application program to be activated.
  • the coprocessor is further configured to, when the database does not include the second information used to indicate the characteristics of the second image, perform the processing on the second image or the first image Semantic analysis is performed on the two image features to obtain a semantic label; wherein, the semantic label includes text information used to characterize the second image or the second image feature; the main processor is also used for the slave
  • the coprocessor receives the semantic tag, indicates to the user at least one application program associated with the semantic tag, and receives a second instruction triggered by the user, the second instruction is used to instruct the activation of the at least one application program. the second application, and determining that the second application is the target application to be activated.
  • the main processor is further configured to: determine whether the electronic device where the device is deployed has the target application installed target application; when the target application is installed in the electronic device, activate the target application; or, when the target application is not installed in the electronic device but a third application is installed , activate the target application program through the target application program interface built in the third application program; or, when the target application program is not installed in the terminal, prompt the user to download the target application program.
  • the signal processing device is specifically configured to process the second data from the image sensor periodically or in real time to obtain the second image.
  • the signal processing device includes at least one of an image signal processor ISP or a sensor processor.
  • the coprocessor is specifically configured to recognize the first image or the second image by using a small sample image recognition algorithm.
  • the coprocessor is at least one of a neural network processor, a digital signal processor, an image processing unit or a hardware accelerator.
  • an embodiment of the present application provides a device for identifying an application, including: a main processing module configured to receive a user-triggered first instruction, where the first instruction is used to instruct a first image to be associated with a first application association; a co-processing module for identifying the first image to obtain a first image feature, and sending first information for indicating the first image feature to the main processing module; the main processing module , and is also used to associate the first image feature with the first application when it is determined that the first information is not included in the database, and save the first information and the first application in the database An application program; wherein the database includes information indicating at least one image feature and an application program associated with each image feature.
  • the recognition device can automatically start the application program associated with the image feature, which not only simplifies the user's operation process, but also expands the activation process based on image recognition technology. type of application.
  • embodiments of the present application provide an electronic device, where the electronic device includes an image sensor and the device according to the first aspect and any possible implementation manner of the first aspect.
  • the image sensor is used to collect data periodically or in real time.
  • an embodiment of the present application further provides a computer storage medium, where a software program is stored in the storage medium, and when at least a first part of the software program is read and executed by a coprocessor, the first aspect or the above-mentioned first aspect can be implemented.
  • the function performed by the coprocessor in any one of the designs of the one aspect; or, at least the second part of the software program, when read and executed by the main processor, can implement the first aspect or any one of the above-mentioned first aspects The function performed by the main processor in the implementation.
  • the embodiments of the present application further provide a computer program product, when at least the first part runs on the coprocessor, the coprocessor executes the design of the first aspect or any one of the above-mentioned first aspects.
  • Fig. 1 is a kind of schematic flow chart of activating application program
  • FIG. 2 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of a device for an application program provided by an embodiment of the present application.
  • FIG. 4 is one of schematic diagrams of an interactive interface provided by an embodiment of the present application.
  • FIG. 5 is the second schematic diagram of the interactive interface provided by the embodiment of the present application.
  • FIG. 6a is a third schematic diagram of an interactive interface provided by an embodiment of the present application.
  • FIG. 6b is the fourth schematic diagram of the interactive interface provided by the embodiment of the application.
  • FIG. 7a is a fifth schematic diagram of an interactive interface provided by an embodiment of the present application.
  • FIG. 7b is the sixth schematic diagram of the interactive interface provided by the embodiment of the application.
  • FIG. 8 is a schematic flowchart of a registration image provided by an embodiment of the present application.
  • FIG. 9 is a schematic flowchart of an AI image recognition technology provided by an embodiment of the present application.
  • FIG. 10 is a schematic flowchart of a small sample image recognition technology provided by an embodiment of the present application.
  • FIG. 11a is one of the captured images provided by the embodiment of the present application.
  • FIG. 11b is a schematic diagram of an application program activated corresponding to FIG. 11a provided by an embodiment of the present application;
  • Fig. 12a is the second captured image provided by this embodiment of the application.
  • FIG. 12b is a schematic diagram of an application program activated corresponding to FIG. 12a provided by an embodiment of the present application;
  • FIG. 12c is a schematic diagram of an application program page activated corresponding to FIG. 12a according to an embodiment of the present application;
  • Fig. 13a is the third acquisition image provided by the embodiment of the present application.
  • FIG. 13b is a schematic diagram of an application program related to FIG. 13a provided by an embodiment of the present application.
  • Fig. 14a is the fourth acquisition image provided by this embodiment of the application.
  • FIG. 14b is a schematic diagram of an application page activated corresponding to FIG. 14a provided by an embodiment of the present application;
  • Fig. 15a is the fourth acquisition image provided by this embodiment of the application.
  • FIG. 15b is a schematic diagram of an application page activated corresponding to FIG. 15a provided by an embodiment of the present application;
  • FIG. 16 is a schematic structural diagram of another application device provided by an embodiment of the present application.
  • an application identification device can be a circuit board, a circuit system, a chip or a chipset in an electronic device, and can run necessary software and be used to perform operations related to application activation, the software includes but is not limited to driver software, operating system software and application software.
  • the electronic device is a movable electronic device, such as a mobile terminal such as a mobile phone and a tablet, and may optionally include or not include a communication capability, and the communication capability may be mobile communication or short-range communication.
  • the electronic device When the electronic device has no communication capability, it is equivalent to a movable local device.
  • the electronic device needs to have a shooting capability, such as a built-in camera, that is, a sensor lens used for shooting pictures.
  • the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), a laptop computer or a wearable device.
  • PDA Personal Digital Assistant
  • FIG. 2 shows a possible partial structure of the mobile phone 200 .
  • cell phone 200 includes: radio frequency (RF) circuitry 210, memory 220, other input devices 230, touch display screen 240, sensors 250, audio circuitry 260, I/O subsystem 270, processor 280, and Power 290 and other components.
  • RF radio frequency
  • FIG. 2 does not constitute a limitation on the mobile phone, and may include more or less components than the one shown in the figure, or combine some components, or disassemble some components, or Different component arrangements. Below in conjunction with FIG. 2, each constituent component of the mobile phone 200 will be specifically introduced:
  • the RF circuit 210 can be used for receiving and sending signals during sending and receiving of information or during a call. In particular, after receiving the downlink information of the base station, it is processed by the processor 280; in addition, the designed uplink data is sent to the base station.
  • RF circuits include, but are not limited to, antennas, at least one amplifier, transceivers, couplers, low noise amplifiers (LNAs), duplexers, and the like.
  • the RF circuit 210 may also communicate with the network and other devices via wireless communication.
  • the wireless communication can use any communication standard or protocol, including but not limited to global system of mobile communication (GSM), general packet radio service (GPRS), code division multiple access (code division multiple access) division multiple access, CDMA), wideband code division multiple access (WCDMA), long term evolution (long term evolution, LTE), email, short message service (short messaging service, SMS), etc.
  • GSM global system of mobile communication
  • GPRS general packet radio service
  • code division multiple access code division multiple access
  • CDMA code division multiple access
  • WCDMA wideband code division multiple access
  • long term evolution long term evolution
  • LTE long term evolution
  • email short message service
  • the memory 220 may be used to store software programs and modules, and the processor 280 executes various functional applications and data processing of the mobile phone 200 by running the software programs and modules stored in the memory 220 .
  • the memory 220 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required for at least one function, and the like;
  • the use of the cell phone 200 creates data (such as audio data, phone book, etc.) and the like.
  • memory 220 may include power-down volatile memory or non-power-down volatile memory.
  • the memory 220 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of static storage device that can store information and instructions
  • ROM read-only memory
  • RAM random access memory
  • EEPROM electrically erasable programmable read-only memory
  • the dynamic storage device can also be an electrically erasable programmable read-only memory (EEPROM) or can be used to carry or store the desired program code in the form of instructions or data structures and can be stored by a computer. any other medium taken, but not limited to this.
  • Other input devices 230 may be used to receive input numerical or character information, and to generate key signal input related to user settings and function control of the cell phone 200 .
  • other input devices 230 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), operation sticks, and the like.
  • other input devices may also include an image sensor (camera) for capturing images.
  • the other input device 230 is connected to the other input device controller 271 of the I/O subsystem 270 , and performs signal interaction with the processor 280 under the control of the other input device controller 271 .
  • the touch display screen 240 may be used to display information input by or provided to the user and various menus of the mobile phone 200, and may also accept user input.
  • the specific touch display screen 240 may include a display panel 241 and a touch panel 242 .
  • the display panel 241 may be configured in the form of a liquid crystal display (liquid crystal display, LCD), an organic light emitting diode (organic light emitting diode, OLED) or the like.
  • the touch panel 242 also known as a touch screen, touch sensitive screen, etc., can collect the user's contact or non-contact operations on or near it (such as the user using a finger, stylus, etc., any suitable object or accessory on the touch panel 242) Or the operation near the touch panel 242 may also include a somatosensory operation; the operation includes single-point control operation, multi-point control operation and other operation types), and the corresponding connection device is driven according to a preset program.
  • the touch panel 242 may include two parts, a touch detection device and a touch controller.
  • the touch detection device detects the user's touch orientation and posture, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, and converts it into a processor capable of The processed information is then sent to the processor 280, and the commands sent by the processor 280 can be received and executed.
  • the touch panel 242 can be realized by various types such as resistive, capacitive, infrared, and surface acoustic wave, and any technology developed in the future can also be used to realize the touch panel 242 .
  • the touch panel 242 can cover the display panel 241, and the user can display the content on the display panel 241 according to the content displayed on the display panel 241 (the display content includes, but not limited to, a soft keyboard, a virtual mouse, virtual keys, icons, etc.) on the display panel 241
  • the operation is performed on or near the covered touch panel 242.
  • the touch panel 242 detects the operation on or near it, the operation is transmitted to the processor 280 through the I/O subsystem 270 to determine the user input, and then the processor 280 according to the user Inputs provide corresponding visual outputs on display panel 241 through I/O subsystem 280 .
  • the touch panel 242 and the display panel 241 are used as two independent components to realize the input and input functions of the mobile phone 200, in some embodiments, the touch panel 242 and the display panel 241 may be integrated And realize the input and output functions of the mobile phone 200 .
  • the cell phone 200 may also include at least one sensor 250, such as an acceleration sensor 251, a light sensor, and other sensors.
  • the acceleration sensor 251 can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when stationary, and can be used for applications that recognize the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometers) (posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the touch display screen 240 according to the brightness of the ambient light, The proximity sensor can turn off the screen and/or the backlight when the phone 200 is moved to the ear.
  • sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., that can be configured in the mobile phone 200, the details are not repeated here.
  • the audio circuit 260 , the speaker 261 , and the microphone 262 can provide an audio interface between the user and the mobile phone 200 .
  • the audio circuit 260 can transmit the received audio data converted signal to the speaker 261, and the speaker 261 converts it into a sound signal for output; on the other hand, the microphone 262 converts the collected sound signal into a signal, which is received by the audio circuit 260. Converted to audio data, the audio data is output to the RF circuit 210 for transmission to, for example, another mobile phone, or to the memory 220 for further processing.
  • the I/O subsystem 270 is used to control input and output external devices, which may include other input device controllers 271 , sensor controllers 272 , and display controllers 273 .
  • one or more other input device controllers 271 receive signals from and/or send signals to other input devices 230, which may include physical buttons (press buttons, rocker buttons, etc.), Dials, slide switches, cameras, and more. It should be noted that the other input device controller 271 may be connected to any one or more of the above-mentioned devices.
  • the display controller 273 in the I/O subsystem 270 receives signals from and/or sends signals to the touch display screen 240 .
  • the display controller 273 converts the detected user input into interaction with the user interface objects displayed on the touch display screen 240, that is, to realize human-computer interaction.
  • Sensor controller 270 may receive signals from and/or send signals to one or more sensors 250 .
  • the processor 280 is used as the control center of the mobile phone 200, using various interfaces and lines to connect various parts of the entire mobile phone, by running or executing the software programs and/or modules stored in the memory 220, and calling the software programs stored in the memory 220. Data, perform various functions of the mobile phone 200 and process data, so as to monitor the mobile phone as a whole.
  • the processor 280 may include one or more processing units, or one or more processors; preferably, the processor 280 may integrate an application processor and a modem processor, wherein the application processor mainly processes operations System, user interface and application programs, etc., the modem processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 280.
  • the processor 280 may further include the processing functional units mentioned in the subsequent embodiments.
  • the mobile phone 200 also includes a power supply 290 (such as a battery) for supplying power to various components.
  • a power supply 290 such as a battery
  • the power supply can be logically connected to the processor 280 through a power management system, so as to manage charging, discharging, and power consumption functions through the power management system.
  • the mobile phone 200 may also include other modules such as a Bluetooth module, which will not be repeated here.
  • a schematic structural diagram of an application identification device 300 provided by an embodiment of the present application may be as shown in FIG. 3 , including a main processor 301 and a coprocessor 302 .
  • the main processor 301 is configured to receive a first instruction triggered by a user, where the first instruction is used to instruct to associate the first image with the first application program.
  • the above-mentioned device 300 further includes a signal processing device 303; the signal processing device 303 is configured to process the first data from the image sensor to obtain the first image.
  • a user may trigger an image sensor in the electronic device to collect the first data.
  • the main processor 301 before receiving the first instruction triggered by the user, the main processor 301 is further configured to receive a shooting instruction triggered by the user, and the shooting instruction is used to instruct to shoot the first image and control the image sensor in the electronic device to capture
  • the first data is transmitted to the signal processing device 303, and the signal processing device 303 processes the first data to obtain a first image.
  • the first image is an image designated (selected) by the user in at least one preset image.
  • the first image may be image data pre-stored by the user in the electronic device where the device 300 is located, for example, an image selected in a gallery on the electronic device.
  • the aforementioned first image may be one or more images, for example, the user can trigger shooting of multiple images from different angles of the same object, or select one or more images from the gallery on the electronic device, for this purpose. Not limited.
  • the coprocessor 302 is configured to identify the first image to obtain a first image feature, and send first information indicating the first image feature to the main processor 301 .
  • the first information includes the first image feature and/or the identifier of the first image feature.
  • the first image features include the target object in the first image, and related parameters such as color, size, and shape of the target object.
  • the coprocessor 302 may use an artificial intelligence AI image recognition algorithm to identify the first image to obtain corresponding first image features; or may also use a small sample (few- shot learning) image recognition algorithm to recognize the first image.
  • the main processor 301 is further configured to associate the first image feature with the first application when the database does not include the first information, and store the first information and all the first information in the database.
  • the first application wherein the database includes information for indicating at least one image feature and an application associated with each image feature.
  • Associating the first image feature with the first application also means associating the first image with the first application.
  • the database has the identifier "21" and the image feature "Yellow Shared”. Bicycle” and the app “ofo Shared Bicycle” associated with “21” and “Yellow Shared Bicycle”. If the first information received by the main processor 301 from the co-processor 302 includes the identifier "11", the image feature "black guitar”, and the first application selected by the user is determined based on the first instruction triggered by the user as the “Tuner APP" ", you can associate "11” and “Black Guitar” with the “Tuner APP” and save them in the database.
  • the content included in the database is divided into a preset part and a user-defined part. That is, there is some information used to indicate image features in the database and the application program associated with the information is pre-configured in the database, and there are also some information used to indicate image features and the application program associated with the information is user-defined. Save in the database, for example, according to the above process, save the first information and the first application in the database.
  • the aforementioned application program preset in the database and associated with the relevant image features may be referred to as a default application program, and the preset part and the user-defined part may be stored in two tables in the database.
  • the recognition device can automatically start the application program associated with the image feature, which simplifies the user operation process, improves user experience, and improves processing efficiency.
  • an interactive interface for the user to trigger the first instruction may be set on the electronic device.
  • the user performs a related operation on the mobile phone to trigger the first instruction, so as to associate the first image with the first application program.
  • the function "registration image” can be deployed in the settings in the mobile phone; it is also possible to deploy the function "registration image” based on independent software in the mobile phone.
  • the user taps "register image” it jumps to an interface as shown in FIG. 5 that prompts the user to enter an image.
  • the user selects "take a picture” the user will jump to the camera interface as shown in Figure 6a for the user to take one or more images; if the user selects "Open Gallery", it will jump to the gallery interface as shown in Figure 6b , for the user to select images stored in the gallery.
  • Fig. 6b shows that the user selects 5 images.
  • the coprocessor in the mobile phone recognizes the image feature of the image entered by the user. If the image feature has been associated with an application, it is determined that the image feature has been registered, and the user is prompted that the image feature has been registered. Registration, as shown in Figure 7a, pops up on the mobile phone "the object in this image has been registered to the XX application, please select a new image or delete the association between the image and the XX application"; or, if the image features If the application is not associated, as shown in Figure 7b, the user is prompted to register the image, and the application list pops up on the mobile phone. If the user selects application 2, the image features of the image entered by the user and the application 2 are saved. association relationship.
  • an embodiment of the present application provides a schematic flowchart of registering an image, including the following steps.
  • S1 in response to a user operation, turn on a pre-deployed registered image function in the electronic device. For example, as shown in FIG. 4, the user taps "register image”.
  • S2 prompting the user to input an image, and acquiring an image triggered by the user to shoot or a stored image selected by the user.
  • S3, determine whether the image feature of the acquired image is registered, that is, determine whether the image feature of the acquired image has been associated with an application program. If yes, go to S4; if not, go to S5.
  • S4 prompt the user that the image feature has been registered, re-enter the image or delete the association relationship between the image feature and its associated application program.
  • S5 prompting that the user can register.
  • S6 associate the image feature of the acquired image with the application program designated by the user to complete the registration.
  • the application program specified by the user may be determined by referring to any one of the following two manners.
  • Manner 1 After S2 is performed and before S3 is performed, a list of application programs is displayed to the user for the user to select the application program desired to be associated with the input image, so that the user can select the desired application program in advance.
  • Manner 2 After S5 is performed and before S6 is performed, a list of application programs is displayed to the user for the user to select an application program desired to be associated with the input image.
  • the image does not contain the target object, or most of the first image is the background of the wall, the ground, the ceiling, etc. and the features of the target object contained are relatively high. If less, the user is prompted to shoot or select an image with significant features, and the image with significant features is used as the aforementioned first image.
  • the images captured or selected by the user are required to have salient features to avoid subsequent triggering of false identification.
  • the signal processing device 303 is further configured to process the second data from the image sensor to obtain a second image.
  • the coprocessor 302 is further configured to identify the second image to obtain a second image feature, and when it is determined that the database includes second information for indicating the second image feature, send the second information to the main processor.
  • the main processor 301 is further configured to determine the application program associated with the second image feature in the database as the target application program to be activated.
  • the coprocessor 302 may use an artificial intelligence (AI) image recognition algorithm to identify the second image to obtain corresponding second image features; or a small sample (few- shot learning) image recognition algorithm to recognize the second image.
  • AI artificial intelligence
  • a small sample (few- shot learning) image recognition algorithm to recognize the second image.
  • the process of AI image recognition technology can be shown in Figure 9, including the training process and the recognition process.
  • the training process first obtain a large number of images to be trained, that is, obtain training samples, then perform preprocessing and feature extraction on the sample images to obtain an image training model, and use a deep learning engine, such as the engine software of the coprocessor 302,
  • the processed image training model is processed to obtain a training classifier.
  • the image features to be trained are yellow shared bicycles
  • the obtained images may include images of yellow shared bicycles taken from different angles and in different scenes, and then separately for each yellow shared bicycle.
  • Each image is preprocessed, such as difference, denoising, or sharpening, etc., and feature extraction is performed on the preprocessed image, that is, the characteristics of the yellow shared bicycle in the image are extracted.
  • the extracted features about the yellow shared bicycle are trained to obtain a training model of the yellow shared bicycle, and the classifier of the yellow shared bicycle is trained according to the obtained training model.
  • the training model and the classifier can exist in the form of software models, and are stored in the memory of the electronic device for subsequent calls by the coprocessor 302 .
  • the identification process firstly acquire the image to be identified (such as the aforementioned second image), preprocess the image to be identified, and perform feature extraction on the preprocessed image to be identified, wherein the preprocessing includes removing the image to be identified Images that do not contain significant features in the image, for example, if the background of the image, such as the ceiling, wall, and ground, accounts for a large proportion, and the features about the target object account for a small proportion or even none, the image will be eliminated to reduce the subsequent recognition by the coprocessor 302. The amount of calculation of image features further improves processing efficiency. Then, the extracted features are subjected to dimensionality reduction processing, and then matched with the training model and the training classifier obtained during the training process to obtain the recognition result. The above training process can be completed offline by the server, and then the model and classifier obtained by training are sent to the electronic device for storage in the memory of the electronic device. The coprocessor 302 in the electronic device performs Identify, and obtain the second image feature.
  • the small sample image recognition technology can be shown in Figure 10, including an offline training process, an online training process and a recognition process.
  • offline training process a large number of images to be trained are obtained, that is, training samples are obtained, and then the sample images are preprocessed and feature extracted to obtain an image training model with meta-knowledge, and a deep learning engine such as the coprocessor 302 is used.
  • the engine software processes the processed image training model to obtain a training classifier.
  • a small number of images with user personalization are acquired, the personalized images are preprocessed and features are extracted to the personalized image training model, and a deep learning engine such as the engine software of the coprocessor 302 is used to perform
  • the aforementioned personalized image training model is processed to obtain a classifier.
  • the identification process firstly acquire the image to be identified (such as the aforementioned second image), preprocess the image to be identified, and perform feature extraction on the preprocessed image to be identified, wherein the preprocessing includes removing the image to be identified Images that do not contain significant features in the image, for example, if the background of the image, such as the ceiling, wall, and ground, accounts for a large proportion, and the features about the target object account for a small proportion or even none, the image will be eliminated to reduce the subsequent recognition by the coprocessor 302. The amount of calculation of image features further improves processing efficiency. Then, it is matched with the image recognition model and classifier obtained in the online training process to obtain the recognition result. If the matching is successful, the coprocessor recognizes and obtains the image feature corresponding to the image, for example, the coprocessor recognizes the second image and obtains the second image feature.
  • logo image features default application twenty one yellow bike sharing ofo bike sharing twenty two blue bike sharing little blue bike twenty three subway gate Easy access twenty four Receipt QR code Alipay (or WeChat) 25 code scanning gun Alipay (or WeChat) 26 bus stop sign the car is coming ... ... ... ...
  • the user-defined "Mobike” application has an association with the orange shared bicycle. If the second image obtained by the co-processor 302 is shown in FIG. 11a, the co-processor 302 identifies that there is an orange shared bicycle in the second image, that is, determines that the second image corresponding to the second image has an orange shared bicycle, According to Table 1, it is determined that the associated application is "Mobike”, the coprocessor 302 can notify the main processor 301 of the identifier "18”, and the main processor 301 determines that the application corresponding to the identifier "18” is " Mobike”, then further identifies “Mobike” as the target application to be activated.
  • the main processor 301 activates the "Mobike” application, and the content displayed by the electronic device to the user is shown in Figure 11b. If the application "Mobike” is not installed in the electronic device, the main processor 301 may prompt the user whether to download the application "Mobike” through the display screen of the electronic device.
  • the user may need to make a payment, so the "Alipay" application that can pay is set as the default application corresponding to the code scanning gun. If the image acquired by the co-processor 302 is shown in FIG.
  • the co-processor 302 identifies that the image feature corresponding to the acquired second image is a scan code gun, and determines the application associated with the code scan gun that the user does not define according to Table 1 program, and according to Table 2, it is determined that the default application program corresponding to it is the "Alipay” application program, the coprocessor 302 can notify the main processor 301 of the identification "25", and the main processor 301 determines the application corresponding to the identification "25" If the program is "Alipay", then "Alipay” is further determined as the target application to be activated.
  • the main processor 301 activates the "Alipay” application, and the content displayed by the electronic device to the user is shown in Figure 12b. If the application program "Alipay" is not installed in the electronic device, the main processor may prompt the user whether to download the application program "Alipay” through the display screen of the electronic device.
  • Tables 1 and 2 are only examples, and the user-defined association relationship between the image feature and the application program may include the content shown in Table 1, but is not limited thereto.
  • the preset image features in the database and the corresponding default application programs may include the contents shown in Table 2, but are not limited thereto.
  • the column of "Identification" is also optional. If there is this item, the communication between the coprocessor 302 and the main processor 301 can be simplified, that is, the coprocessor 302 notifies the main processor of the determined identification of the application program. If this item does not exist, the coprocessor 302 can also notify the main processor of the application to be activated with the identification information corresponding to the image in other ways, such as sending the name of the application or image feature information to the main processor 301 etc.
  • the same image features in the database represented in Table 2 can also correspond to multiple default applications.
  • the image feature identified by the co-processor 302 is "two-dimensional code for payment" or "scanner”
  • the user may need to make payment, and both the "Alipay” application and the "WeChat” application can realize the payment
  • the two applications may be used as default applications corresponding to the same image feature corresponding candidates, and different priorities may be set for the two applications.
  • the main processor 301 will give priority to activate the "Alipay” application if the "Alipay” application is already installed in the electronic device, and if the "Alipay” application is not installed, then Activate the "WeChat” application.
  • the above priority setting can be set when the corresponding relationship between the image feature and the default application is determined, or can be set by the user after the electronic device obtains the corresponding relationship between the image feature and the default application.
  • the main processor 301 may prompt the user to select one of "Alipay” and "WeChat” through the display screen of the electronic device, record the user's selection, and determine the priority based on the user's selection. For example, if the user's preference is to select "Alipay” multiple times, the "Alipay” application will be activated first, and if the "Alipay” application is not installed, the "WeChat” application will be activated.
  • the coprocessor 302 is further configured to, when the database does not include the second information for indicating the characteristics of the second image, Or perform semantic analysis on the second image feature to obtain a semantic label; wherein, the semantic label includes text information used to characterize the second image or the second image feature; the main processor 301 further uses After receiving the semantic tag from the coprocessor, determine at least one application program associated with the semantic tag; and then indicate to the user at least one application program associated with the semantic tag, and receive the first application triggered by the user. Two instructions, where the second instruction is used to instruct to activate a second application in the at least one application, and determine that the second application is the target application to be activated.
  • the semantic label may be the type of the target object in the second image.
  • FIG. 13a shows that the acquired second image contains a piano, and the semantic label obtained by semantic analysis may be a musical instrument.
  • the main processor 301 can search for at least one application program related to the musical instrument according to the program description information such as the function introduction, development instructions, software classification, etc. of the application program in the electronic device.
  • Instrument-related applications may include a recorder with a recording function; users may need to find tracks, and instrument-related applications may include music players with a function of finding playing tracks; users may need to learn to play the piano online, related to musical instruments 's applications may include related learning software that can learn to play an instrument.
  • a candidate list corresponding to at least one application program is displayed to the user on the display screen of the electronic device, for example, for the user to select the application program to be activated.
  • the application software related to the “musical instrument” displayed to the user includes a recorder, a music player, a learning software, etc., and the user selects the application to be activated as a music player.
  • the user's selection may also be recorded, and the user's selection is used to determine the priority of the semantic tag-related applications.
  • at least one application program in the candidate list may be displayed according to the determined priority order.
  • the main processor 301 is further configured to determine whether the target application is installed in the electronic device where the device 300 is located. If it is determined that the target application is installed in the electronic device, the target application is activated. Specifically, if the target application is already installed in the electronic device, when the main processor 301 determines the target application, the target application may not be running, and the main processor 301 can run the target application in the foreground; or , when the main processor 301 determines the target application, the target application may also be in the background running state, then the main processor 301 can switch the target application from the background running to the foreground running, that is, through the display of the electronic device The screen displays the user interface of the target application, so that the user can operate the target application.
  • the main processor 301 may prompt whether to download the target application program through the display screen of the electronic device. Further, if the target application program is not installed in the electronic device, but a third application program is installed in the electronic device, and the third application program has a built-in interface of the target application program, the main processor 301 can also pass the third application program through the third application program.
  • the target application's interface built into the application activates the target application.
  • the coprocessor acquires the image from the signal processing device, then recognizes the image and determines the corresponding target application, and the main processor activates the target application or prompts the user to download the target application.
  • the device can accurately determine the application that the user may want to use according to the image from the image sensor, and activate the application, and the user does not need to click the application icon in the process, which simplifies the user operation.
  • the feature extraction of the image and the determination of the application program to be activated are realized by the coprocessor, without the need for the main processor to perform related operations, the processing efficiency is high, and the power consumption is saved.
  • installation-free applications also known as small programs
  • application A has a built-in interface of application B.
  • the user can click the icon of application B in application A, and the electronic device will load the package of application B and run it.
  • Small can be downloaded quickly and without the installation process, users can quickly use application B to achieve the effect of click-to-use. Therefore, if the main processor 301 determines to activate application B, even if application B is not installed in the electronic device, but the interface of application B is built in application A, the main processor can activate application B through application A , to avoid the burden of adding storage to electronic devices.
  • priorities can also be set for different activation methods. For example, considering the limitation on the package size of the applet, the function of the applet may not be as good as that of a normally installed application. Therefore, a high priority can be set for directly activating the target application, and a third application can be used to activate the target application directly. Activating the target application sets low priority.
  • the above-mentioned device 300 may further include a transceiver 304 for receiving part or all of the content in the database from the server.
  • the model training process can be completed by the server, and then the model obtained by training is sent to the electronic device, and the electronic device can receive the aforementioned at least one image feature sent by the server through the transceiver 304 in the device 300.
  • the transceiver 304 may be a wired transceiver, that is, the content in the database is received through wired transmission, or the transceiver 304 may also be a wireless transceiver, that is, the content in the database is received through wireless transmission, such as in the mobile phone 200. the RF circuit.
  • the training process can also be completed by the provider of each application, and the model obtained by training is carried in the installation package of the application. If the electronic device downloads and installs the application, Then the coprocessor 302 can obtain the image feature corresponding to the application program. Therefore, if the coprocessor 302 recognizes the image feature existing in the database from the image, the electronic device is installed with the application program corresponding to the image feature. .
  • the correspondence between the image features and the application stored in the database may also include location information.
  • the image features stored in the database and the application program corresponding to each image feature may be as shown in Table 3.
  • logo image features location information application twenty one yellow bike sharing - ofo bike sharing twenty two blue bike sharing - little blue bike twenty three subway gate Beijing Easy access twenty three subway gate Shanghai Metro twenty four Receipt QR code Alipay (or WeChat) 25 code scanning gun Alipay (or WeChat) 26 bus stop sign Shanghai Shanghai bus query 26 bus stop sign Beijing Beijing real-time bus ... ... ... ...
  • swiping the QR code is also used to take the subway.
  • the "Easy Pass” app is currently used in Beijing, while the “Metro Metropolis” app is currently used in Shanghai. After swiping the QR code to enter the station, and the electronic device opens the “Metro Metropolis” application, it cannot provide services for the user.
  • the "Carriage Came” application can basically query the bus routes of each city, but cannot query the location information of the buses in each city. In Beijing , if you want to query the location information of buses of a certain bus line, you can use the "Beijing Real-time Bus” application, but this application cannot query the bus information of other cities. Therefore, increasing the matching of electronic device location information helps to improve the accuracy of activating the application.
  • the location information may be implemented by a positioning device in the electronic device, such as a global positioning system (global positioning system, GPS) or a Beidou system.
  • the page required by the user may be further opened.
  • the activation page of the application program can also be customized by the user.
  • the image features stored in the database and the application program corresponding to each image feature may also include activation page information, as shown in Table 4 below.
  • the image feature of the acquired image has not been customized by the user and the associated application program, but its corresponding default application program can be found in the database as an example.
  • the application corresponding to "scanning code gun” or “payment with QR code” can be used for payment.
  • "Alipay” that is, when the co-processor 302 recognizes that the image features of the acquired image (such as the aforementioned second image) are "scan code gun” or "payment QR code"
  • the main processor 301 activates the "Alipay” application program .
  • activating the "Alipay” application is to switch it from running in the background to running in the foreground, the page currently displayed to the user is the last page used by the user, and this page may not be the payment page required by the user; if activating the "Alipay” application ” application is to start an application that is not running, and the page currently displayed to the user is the main page of the application.
  • the user needs to use the "Alipay” application for payment, that is, what the user needs is the payment page in the "Alipay” application.
  • this embodiment may be further improved as follows. If the image obtained by the co-processor 302 is still as shown in FIG.
  • the main processor 301 can activate the "QR code payment” page. After the Alipay” application, it can further open the “QR code payment” page for the user, and the page displayed by the electronic device is shown in Figure 12c; if the image obtained by the coprocessor 302 is shown in Figure 14a, the identified If the image category is "payment QR code”, the main processor 301 can further open the "scan” page for the user after activating the "Alipay” application, as shown in Fig. 14b. This embodiment can further simplify user operations and improve user experience.
  • the main processor 301 may further perform a search based on the information extracted from the image.
  • the image obtained by the coprocessor 302 is shown in Figure 15a
  • the identified image feature is "bus stop sign”
  • the number "646” is extracted from the image
  • the main processor 301 receives the transmission from the coprocessor 302.
  • the identification information of the target application and the extracted feature information corresponding to the "bus stop sign that is, the identification of the "Beijing real-time bus” application and the extracted number "646”
  • the main processor 301 activates the "Beijing real-time bus” application. bus” application, and search for “646” in the application, so as to display the current 646 bus information for the user, as shown in Figure 15b.
  • the processor 280 in the mobile phone 200 may include one or more processors. Therefore, when the device 300 is applied to the mobile phone 200, the main processor 301 and the coprocessor 302 correspond to the processors in the mobile phone 200 280; the signal processing device 303 is respectively coupled with the image sensor in the mobile phone 200 and the other input device controller 271, so as to obtain data from the image sensor and enable the coprocessor 302 to obtain images.
  • the signal processing device 303 may also be one of the processors in the processor 280 .
  • the aforementioned database may be stored in the memory of the electronic device.
  • the memory can further store necessary software required for the operation of the main processor 301 and the coprocessor 302, such as driver software, operating system software or application software.
  • the above-mentioned device 300 may be one or more chips, for example, the above-mentioned main processor 301 , co-processor 302 and signal processing device 303 are integrated in one chip, and the chip is arranged in the electronic device .
  • the electronic device provided with the chip is further provided with the above-mentioned image sensor, but the image sensor may not be provided on the same chip with the above-mentioned device 300 .
  • the above-mentioned main processor 301 may be a central processing unit (central processing unit, CPU) or an application processor or a microprocessor of an electronic device, and is located in the processor 280.
  • CPU central processing unit
  • the co-processor 302 processes the acquired images, and when it is determined that an application program needs to be activated, notifies the main The processor performs the operation of activating the application.
  • the main processor 301 may be in a low power consumption state before receiving information from the coprocessor 302 for indicating image features, such as first information/second information or receiving a semantic label, and the main processor 301 is in a low power consumption state.
  • the power consumption in the power consumption state is lower than the power consumption when the coprocessor 302 is running a handler.
  • the low power state may be an idle state, a sleep state, or a sleep state.
  • the main processor 301 can be woken up by the coprocessor 302 by receiving information or semantic tags for indicating image features, or the main processor 301 can be woken up by the coprocessor 302 in other ways, such as interrupt notification, and further Receiving information or semantic tags for indicating image features and a series of subsequent operations are not limited in this embodiment.
  • the above-mentioned coprocessor 302 may be a neural network processor (eg, NPU), a digital signal processor, an image processing unit, or a hardware accelerator, etc., and its power consumption during operation may be lower than that of the main processor 301 .
  • the coprocessor 302 can be said to be inside or outside the processor 280, which is not limited in this embodiment. Since the power consumption of the coprocessor 302 is relatively low, even if the coprocessor is set as a normally-on processor, the power consumption of the electronic device will not be greatly affected. In order to further improve the user experience, the above embodiments of the present application can be applied to the case where the screen of the electronic device is off or the screen is locked and the screen is on.
  • the main processor 301 is in a dormant state to reduce power consumption. power. At this time, due to the low power consumption of the coprocessor, even when the screen of the electronic device is locked or closed, it can still be in a working state without consuming a lot of power.
  • the above-mentioned signal processing device 303 can be an ISP, and can be used to process the data collected by the image sensor, for example, to perform automatic exposure control (automatic exposure control, AEC), automatic gain control (automatic gain control, AGC), automatic white balance ( Processing of functions such as automatic white balance, AWB), color correction, lens shading correction, gamma correction, and dead pixel removal.
  • AEC automatic exposure control
  • AGC automatic gain control
  • AGC automatic white balance
  • processing of functions such as automatic white balance, AWB
  • the above-mentioned signal processing device 303 may also be a sensor signal processor, and its function is similar to that of the ISP, and it processes the data collected by the image sensor.
  • the ISP may be located within the processor 280 or alternatively, the ISP may be located outside the processor 280.
  • a shared memory may be deployed in the device 300, and the shared memory is used to store the data collected by the image sensor.
  • the signal processing device 303 can also be an intelligent sensor hub (Sensor hub), which is used to obtain the data collected by the image sensor from the shared memory, and then transmit it to the coprocessor 302, so that after the coprocessor 302 performs image recognition, it will The identification result is sent to the main processor 301 .
  • Sensor hub intelligent sensor hub
  • the image sensor may be actively triggered by the user to collect data.
  • the above-mentioned image sensor may be always on and collect data in real time; alternatively, the image sensor may also collect data according to a preset period, that is, automatically perform data collection at regular intervals. Therefore, the camera or lens carrying the image sensor can be considered to be in an Always On state, so as to recognize the surrounding environment in real time and activate the application program in time to improve the user experience.
  • the camera or lens carrying the image sensor may use a low-power camera. The process of collecting data by the image sensor does not need to be triggered by the user every time, but is automatically realized by the device.
  • the preset period may be a fixed period, or multiple periods may be set for the image sensor, and different periods may be used according to different environments. For example, if the ambient light is strong, user needs may be generated at any time, and a preset period of 0.1s can be used; if the ambient light is dark, the possibility of user needs being generated is small, and a preset period of 1s can be used at this time. .
  • the signal processing device 303 can also process the acquired data in real time or periodically, and process it, so that the coprocessor 302 can perform further identification. If both the image sensor and the signal processing device 303 are configured to collect data or process data according to a preset period, they may be configured with the same period or with different periods.
  • an embodiment of the present application also provides a computer storage medium, where a software program is stored in the storage medium, and when the software program is read and executed by the coprocessor, the software program can implement the execution of the coprocessor in any of the foregoing embodiments. or, the software program, when read and executed by the host processor, can implement the functions executed by the host processor in any of the embodiments.
  • the embodiments of the present application also provide a computer program product, which, when running on the coprocessor, enables the coprocessor to perform the functions performed by the coprocessor in any of the foregoing embodiments; or, when the computer program product is executed on the main processor When running on the above, the main processor is made to perform the functions performed by the main processor in any of the above embodiments.
  • the computer storage medium includes the memory 220 mentioned in the previous embodiment, and can store the relevant software data of the corresponding database in FIG. 3 , which is not repeated here. Therefore, the coprocessor and the running software can be used as a separate product to realize the function of image recognition mentioned in the previous embodiment to find the corresponding default application, so as to send the identification of the relevant default application to the coprocessor. to the main processor. Therefore, the software run by the coprocessor may include multiple software modules, including but not limited to a recognition module for recognizing an image and a search module for searching for a corresponding default application, which is not limited in this embodiment.
  • the device 1600 includes: a main processing module 1601, configured to receive a user-triggered first instruction, the first instruction is used to instruct the first image to be associated with the first application; the co-processing module 1602 is used to identify the first image to obtain the first image feature, and send a message to the main processing module to instruct the The first information of the first image feature; the main processing module is further configured to associate the first image feature with the first application when it is determined that the first information is not included in the database, and store the first image feature in the database.
  • the first information and the first application are stored in the database; wherein the database includes information for indicating at least one image feature and an application associated with each image feature.
  • the above solutions support user customization to establish the relationship between image features and application programs.
  • the recognition device can automatically start the application program associated with the image feature, which not only simplifies the user's operation process, but also expands the activation process based on image recognition technology. type of application.
  • the device 1600 further includes a signal processing module 1603 for processing the first data from the image sensor to obtain the first image.
  • the signal processing module 1603 is further configured to process the second data from the image sensor to obtain a second image; the co-processing module 1602 is further configured to process the second data from the image sensor.
  • the second image is identified to obtain the second image feature, and when it is determined that the database includes second information for indicating the second image feature, the second information is sent to the main processing module 1601 .
  • the main processing module 1601 is further configured to determine the application program associated with the second image feature in the database as the target application program to be activated.
  • the co-processing module 1602 is further configured to, when the database does not include the second information for indicating the characteristics of the second image, to perform semantic analysis on the second image feature to obtain a semantic label; wherein, the semantic label includes text information used to characterize the second image or the second image feature; the main processing module 1601 is also used for the
  • the semantic tag is received from the co-processing module 1602, and is further used to indicate to the user at least one application program associated with the semantic tag, and receive a second instruction triggered by the user, the second instruction is used to instruct activation a second application in the at least one application, and determining the second application as the target application to be activated.
  • the main processing module 1601 is further configured to: determine whether the device is installed in the electronic device where the device is deployed The target application program is present; when the target application program is installed in the electronic device, the target application program is activated; or, when the target application program is not installed in the electronic device but a third When the application program is applied, activate the target application program through the target application program interface built in the third application program; or, when the target application program is not installed in the terminal, prompt the user to download the target application program .
  • the signal processing module 1603 is specifically configured to process the second data from the image sensor periodically or in real time to obtain the second image.
  • the co-processing module 1602 is specifically configured to recognize the first image or the second image by using a small sample image recognition algorithm.
  • modules implemented by software may be implemented by software, hardware or a combination of the two, and the functions of the modules implemented by hardware may refer to the description of the corresponding components in FIG. 3 .
  • Modules implemented in software may include computer program instructions and be executed by corresponding components in FIG. 3 , which are not limited in this embodiment.
  • the embodiments of the present application may be provided as a method, a system, or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
  • computer-usable storage media including, but not limited to, disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions
  • the apparatus implements the functions specified in one or more flows of the flowchart and/or one or more blocks of the block diagram, and the apparatus may be described with reference to FIG. 16 .

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

Disclosed in the present application are an application program identification device and an electronic device, comprising: a main processor, used for receiving a first command triggered by a user, the first command being used for instructing a first image and a first application program to be associated; a co-processor, used for performing identification on the first image to obtain first image features, and for sending to the main processor first information used for indicating the first image features; the main processor is also used for associating the first image features and the first application program when determining that a database does not comprise the first information, and storing the first information and the first application program in the database; the database comprises information used for indicating at least one image feature and the application program associated with each image feature. Thus, the electronic device can identify an application program to be activated on the basis of image features, simplifying the user operation procedure and increasing processing efficiency.

Description

一种应用程序的识别设备及电子设备An application identification device and electronic device 技术领域technical field
本申请涉及电子设备技术领域,尤其涉及一种应用程序的识别设备及电子设备。The present application relates to the technical field of electronic devices, and in particular, to an application identification device and an electronic device.
背景技术Background technique
随着智能电子设备技术的发展,安装于智能电子设备,如移动终端的应用的数量和功能越来越多,智能移动终端已经融入到日常生活的方方面面中,可满足用户的各种需求。例如,用户可以通过移动终端使用共享单车,可以通过移动终端进行支付,还可以通过移动终端乘坐公共交通等等。With the development of smart electronic device technology, the number and functions of applications installed on smart electronic devices, such as mobile terminals, are increasing. Smart mobile terminals have been integrated into all aspects of daily life and can meet various needs of users. For example, users can use shared bicycles through mobile terminals, make payments through mobile terminals, and take public transportation through mobile terminals.
然而,随着移动终端技术、应用程序开发技术的发展,用户对移动终端中应用程序的使用的便捷性,也提出了更高的要求。目前,用户想要使用移动终端中的一款应用程序,一般需要在移动终端的主界面或应用界面中找到想要使用的应用程序的图标并点击,当移动终端中安装的应用程序数量较多时,查找应用程序的图标的过程可能耗时较长。为了简化用户操作,还可以设置虚拟按键,用户通过触摸虚拟按键实现应用程序的快速启动,但可能使得移动终端的显示界面较为凌乱;或者,还可以预先为应用程序设置对应的触摸轨迹,如图1所示,移动终端中的存储器存储有预设的触摸轨迹与应用程序的对应关系,在用户输入触摸轨迹后,将用户输入的触摸轨迹与上述对应关系中的触摸轨迹依次进行匹配,若匹配成功,则激活对应的应用程序,但需要用户记住每个应用程序对应的触摸轨迹,增加用户的记忆负担。此外,在上述两种方式中,还可以增加指纹的识别,即,当用户使用不同的手指执行同一操作时,可以对应不同的应用程序;但是,在一些场景下,用户的手指可能不便于对移动终端进行操作,例如,在天气寒冷、用户佩戴手套时,需要用户先摘下手套,或者,用户的手指太潮、太干或粘有物体时也可能导致指纹无法识别。现有技术虽然提出了一种通过图像识别技术进入应用程序的方案,但是能够识别的图像种类有限,进入或打开应用程序的种类受限,降低用户体验。However, with the development of mobile terminal technology and application development technology, users have also put forward higher requirements for the convenience of using applications in mobile terminals. At present, if a user wants to use an application in a mobile terminal, he generally needs to find the icon of the application he wants to use on the main interface or application interface of the mobile terminal and click on it. When there are a large number of applications installed in the mobile terminal , the process of finding the application's icon may take a long time. In order to simplify the user operation, virtual keys can also be set, and the user can quickly start the application by touching the virtual keys, but the display interface of the mobile terminal may be messy; or, the corresponding touch track can also be set for the application in advance, as shown in the figure As shown in 1, the memory in the mobile terminal stores the preset correspondence between the touch track and the application program. After the user inputs the touch track, the touch track input by the user and the touch track in the above-mentioned corresponding relationship are sequentially matched. If successful, the corresponding application program is activated, but the user needs to remember the touch track corresponding to each application program, which increases the user's memory burden. In addition, in the above two methods, fingerprint recognition can also be added, that is, when the user uses different fingers to perform the same operation, they can correspond to different applications; however, in some scenarios, the user's fingers may be inconvenient. When the mobile terminal operates, for example, when the weather is cold and the user wears gloves, the user needs to take off the gloves first, or when the user's fingers are too wet, too dry or stick to objects, the fingerprint may not be recognized. Although the prior art proposes a solution for entering an application program through an image recognition technology, the types of images that can be recognized are limited, and the types of entering or opening an application program are limited, which reduces user experience.
发明内容SUMMARY OF THE INVENTION
本申请提供一种应用程序的识别设备及电子设备,支持用户自定义基于图像识别技术可激活的应用程序,简化用户操作流程,且提升用户体验。The present application provides an identification device and electronic device for an application program, which supports users to customize an application program that can be activated based on an image recognition technology, simplifies the user operation process, and improves the user experience.
第一方面,本申请实施例提供了一种应用程序的识别设备,包括:主处理器,用于接收由用户触发的第一指令,所述第一指令用于指示将第一图像与第一应用程序进行关联;协处理器,用于对所述第一图像进行识别以得到第一图像特征,并向所述主处理器发送用于指示所述第一图像特征的第一信息;所述主处理器,还用于确定数据库中不包括所述第一信息时,将所述第一图像特征和所述第一应用程序进行关联,并在所述数据库中保存所述第一信息和所述第一应用程序;其中,所述数据库包括用于指示至少一个图像特征的信息和每个图像特征所关联的应用程序。以上方案支持用户自定义,建立图像特征与应用程序之间的关联关系。在后续图像识别中,如果识别出某一关联有应用程序的图像特征时,识别设备可以自动启动该图像特征所关联的应用程序,不但简化了用户操作流程,也扩展了基于图像识别技术可激活的应用程序的种类。In a first aspect, an embodiment of the present application provides an application identification device, including: a main processor configured to receive a first instruction triggered by a user, where the first instruction is used to instruct a first image to be associated with a first associated with an application; a coprocessor, configured to identify the first image to obtain a first image feature, and send first information to the main processor for indicating the first image feature; the The main processor is further configured to associate the first image feature with the first application when it is determined that the first information is not included in the database, and save the first information and all the first information in the database the first application; wherein the database includes information for indicating at least one image feature and an application associated with each image feature. The above solutions support user customization to establish the relationship between image features and application programs. In subsequent image recognition, if an image feature associated with an application program is identified, the recognition device can automatically start the application program associated with the image feature, which not only simplifies the user's operation process, but also expands the activation process based on image recognition technology. type of application.
在一种可能的实现方式中,第一信息包括第一图像特征和/或第一图像特征的标识。In a possible implementation manner, the first information includes a first image feature and/or an identification of the first image feature.
在一种可能的实现方式中,还包括信号处理设备,用于对来自图像传感器的第一数据处理以得到所述第一图像。In a possible implementation manner, a signal processing device is further included for processing the first data from the image sensor to obtain the first image.
在一种可能的实现方式中,所述第一图像为预置的至少一个图像中用户所指定的图像。In a possible implementation manner, the first image is an image specified by a user in at least one preset image.
在一种可能的实现方式中,所述信号处理设备,还用于对来自所述图像传感器的第二数据做处理以得到第二图像;所述协处理器,还用于对所述第二图像进行识别得到第二图像特征,确定所述数据库中包括用于指示所述第二图像特征的第二信息时,将所述第二信息发送至所述主处理器。所述主处理器,还用于将所述数据库中与所述第二图像特征关联的应用程序确定为待激活的目标应用程序。In a possible implementation manner, the signal processing device is further configured to process the second data from the image sensor to obtain a second image; the coprocessor is further configured to process the second image The image is identified to obtain a second image feature, and when it is determined that the database includes second information for indicating the second image feature, the second information is sent to the main processor. The main processor is further configured to determine the application program associated with the second image feature in the database as the target application program to be activated.
在一种可能的实现方式中,所述协处理器,还用于在所述数据库中不包括用于指示所述第二图像特征的第二信息时,对所述第二图像或者所述第二图像特征进行语义分析,得到语义标签;其中,所述语义标签包括用于表征所述第二图像或者所述第二图像特征的文字信息;所述主处理器,还用于所述从所述协处理器接收所述语义标签,向用户指示所述语义标签相关联的至少一个应用程序,接收由用户触发的第二指令,所述第二指令用于指示激活所述至少一个应用程序中的第二应用程序,以及确定所述第二应用程序为所述待激活的目标应用程序。In a possible implementation manner, the coprocessor is further configured to, when the database does not include the second information used to indicate the characteristics of the second image, perform the processing on the second image or the first image Semantic analysis is performed on the two image features to obtain a semantic label; wherein, the semantic label includes text information used to characterize the second image or the second image feature; the main processor is also used for the slave The coprocessor receives the semantic tag, indicates to the user at least one application program associated with the semantic tag, and receives a second instruction triggered by the user, the second instruction is used to instruct the activation of the at least one application program. the second application, and determining that the second application is the target application to be activated.
在一种可能的实现方式中,在从所述协处理器接收所述目标应用程序的标识后,所述主处理器,还用于:判断部署所述设备的电子设备内是否安装有所述目标应用程序;在所述电子设备内安装有所述目标应用程序时,激活所述目标应用程序;或者,在所述电子设备内未安装所述目标应用程序时但安装有第三应用程序时,通过所述第三应用程序内置的所述目标应用程序接口激活所述目标应用程序;或者,在所述终端内未安装所述目标应用程序时,提示用户下载所述目标应用程序。In a possible implementation manner, after receiving the identifier of the target application from the coprocessor, the main processor is further configured to: determine whether the electronic device where the device is deployed has the target application installed target application; when the target application is installed in the electronic device, activate the target application; or, when the target application is not installed in the electronic device but a third application is installed , activate the target application program through the target application program interface built in the third application program; or, when the target application program is not installed in the terminal, prompt the user to download the target application program.
在一种可能的实现方式中,所述信号处理设备,具体用于周期性或实时对来自所述图像传感器的所述第二数据做处理以得到所述第二图像。In a possible implementation manner, the signal processing device is specifically configured to process the second data from the image sensor periodically or in real time to obtain the second image.
在一种可能的实现方式中,所述信号处理设备包括图像信号处理器ISP或传感器处理器中至少一个。In a possible implementation, the signal processing device includes at least one of an image signal processor ISP or a sensor processor.
在一种可能的实现方式中,所述协处理器具体用于使用小样本图像识别算法对所述第一图像或所述第二图像进行识别。In a possible implementation manner, the coprocessor is specifically configured to recognize the first image or the second image by using a small sample image recognition algorithm.
在一种可能的实现方式中,所述协处理器是神经网络处理器、数字信号处理器、图像处理单元或硬件加速器中至少一个。In a possible implementation manner, the coprocessor is at least one of a neural network processor, a digital signal processor, an image processing unit or a hardware accelerator.
第二方面,本申请实施例提供一种应用程序的识别设备,包括:主处理模块,用于接收用户触发第一指令,所述第一指令用于指示将第一图像与第一应用程序进行关联;协处理模块,用于对所述第一图像进行识别以得到第一图像特征,并向所述主处理模块发送用于指示所述第一图像特征的第一信息;所述主处理模块,还用于确定数据库中不包括所述第一信息时,将所述第一图像特征和所述第一应用程序进行关联,并在所述数据库中保存所述第一信息和所述第一应用程序;其中,所述数据库包括用于指示至少一个图像特征的信息和每个图像特征所关联的应用程序。以上方案支持用户自定义,建立图像特征与应用程序之间的关联关系。在后续图像识别中,如果识别出某一关联有应用程序的图像特征时,识别设备可以自动启动该图像特征所关联的应用程序,不但简化了用户操作流程,也扩展了基于图像识别技术可激活的应用程序的种类。In a second aspect, an embodiment of the present application provides a device for identifying an application, including: a main processing module configured to receive a user-triggered first instruction, where the first instruction is used to instruct a first image to be associated with a first application association; a co-processing module for identifying the first image to obtain a first image feature, and sending first information for indicating the first image feature to the main processing module; the main processing module , and is also used to associate the first image feature with the first application when it is determined that the first information is not included in the database, and save the first information and the first application in the database An application program; wherein the database includes information indicating at least one image feature and an application program associated with each image feature. The above solutions support user customization to establish the relationship between image features and application programs. In subsequent image recognition, if an image feature associated with an application program is identified, the recognition device can automatically start the application program associated with the image feature, which not only simplifies the user's operation process, but also expands the activation process based on image recognition technology. type of application.
第三方面,本申请实施例提供一种电子设备,该电子设备包括图像传感器和如第一方面以及第一方面中任一种可能的实现方式所述的设备。其中,图像传感器用于周期性或实时性采集数据。In a third aspect, embodiments of the present application provide an electronic device, where the electronic device includes an image sensor and the device according to the first aspect and any possible implementation manner of the first aspect. Among them, the image sensor is used to collect data periodically or in real time.
第四方面,本申请实施例中还提供一种计算机存储介质,该存储介质中存储软件程序,该软件程序的至少第一部分在被协处理器读取并执行时可实现第一方面或上述第一方面的任意一种设计中协处理器所执行的功能;或者,该软件程序的至少第二部分在被主处理器读取并执行时可实现第一方面或上述第一方面的任意一种实现方式中主处理器所执行的功能。In a fourth aspect, an embodiment of the present application further provides a computer storage medium, where a software program is stored in the storage medium, and when at least a first part of the software program is read and executed by a coprocessor, the first aspect or the above-mentioned first aspect can be implemented. The function performed by the coprocessor in any one of the designs of the one aspect; or, at least the second part of the software program, when read and executed by the main processor, can implement the first aspect or any one of the above-mentioned first aspects The function performed by the main processor in the implementation.
第五方面,本申请实施例中还提供一种计算机程序产品,当其中至少第一部分在协处理器上运行时,使得协处理器执行如第一方面或上述第一方面的任意一种设计中协处理器所执行的功能;或者,当其中至少第二部分在主处理器上运行时,使得主处理器执行如第一方面或上述第一方面的任意一种实现方式中主处理器所执行的功能。In a fifth aspect, the embodiments of the present application further provide a computer program product, when at least the first part runs on the coprocessor, the coprocessor executes the design of the first aspect or any one of the above-mentioned first aspects. The function performed by the coprocessor; or, when at least the second part of which runs on the main processor, causing the main processor to perform as performed by the main processor in the first aspect or any implementation manner of the above-mentioned first aspect function.
附图说明Description of drawings
图1为一种激活应用程序的流程示意图;Fig. 1 is a kind of schematic flow chart of activating application program;
图2为本申请实施例提供的一种电子设备的结构示意图;FIG. 2 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图3为本申请实施例提供的一种应用程序的设备的结构示意图;FIG. 3 is a schematic structural diagram of a device for an application program provided by an embodiment of the present application;
图4为本申请实施例提供的交互界面示意图之一;FIG. 4 is one of schematic diagrams of an interactive interface provided by an embodiment of the present application;
图5为本申请实施例提供的交互界面示意图之二;FIG. 5 is the second schematic diagram of the interactive interface provided by the embodiment of the present application;
图6a为本申请实施例提供的交互界面示意图之三;FIG. 6a is a third schematic diagram of an interactive interface provided by an embodiment of the present application;
图6b为本申请实施例提供的交互界面示意图之四;FIG. 6b is the fourth schematic diagram of the interactive interface provided by the embodiment of the application;
图7a为本申请实施例提供的交互界面示意图之五;FIG. 7a is a fifth schematic diagram of an interactive interface provided by an embodiment of the present application;
图7b为本申请实施例提供的交互界面示意图之六;FIG. 7b is the sixth schematic diagram of the interactive interface provided by the embodiment of the application;
图8为本申请实施例提供的一种注册图像的流程示意图;FIG. 8 is a schematic flowchart of a registration image provided by an embodiment of the present application;
图9为本申请实施例提供的AI图像识别技术的流程示意图;9 is a schematic flowchart of an AI image recognition technology provided by an embodiment of the present application;
图10为本申请实施例提供的小样本图像识别技术的流程示意图;10 is a schematic flowchart of a small sample image recognition technology provided by an embodiment of the present application;
图11a为本申请实施例提供的采集图像之一;FIG. 11a is one of the captured images provided by the embodiment of the present application;
图11b为本申请实施例提供的与图11a对应激活的应用程序示意图;FIG. 11b is a schematic diagram of an application program activated corresponding to FIG. 11a provided by an embodiment of the present application;
图12a为本申请实施例提供的采集图像之二;Fig. 12a is the second captured image provided by this embodiment of the application;
图12b为本申请实施例提供的与图12a对应激活的应用程序示意图;FIG. 12b is a schematic diagram of an application program activated corresponding to FIG. 12a provided by an embodiment of the present application;
图12c为本申请实施例提供的与图12a对应激活的应用程序页面示意图;FIG. 12c is a schematic diagram of an application program page activated corresponding to FIG. 12a according to an embodiment of the present application;
图13a为本申请实施例提供的采集图像之三;Fig. 13a is the third acquisition image provided by the embodiment of the present application;
图13b为本申请实施例提供的与图13a相关的应用程序示意图;FIG. 13b is a schematic diagram of an application program related to FIG. 13a provided by an embodiment of the present application;
图14a为本申请实施例提供的采集图像之四;Fig. 14a is the fourth acquisition image provided by this embodiment of the application;
图14b为本申请实施例提供的与图14a对应激活的应用程序页面示意图;FIG. 14b is a schematic diagram of an application page activated corresponding to FIG. 14a provided by an embodiment of the present application;
图15a为本申请实施例提供的采集图像之四;Fig. 15a is the fourth acquisition image provided by this embodiment of the application;
图15b为本申请实施例提供的与图15a对应激活的应用程序页面示意图;FIG. 15b is a schematic diagram of an application page activated corresponding to FIG. 15a provided by an embodiment of the present application;
图16为本申请实施例提供的另一种应用程序的设备的结构示意图。FIG. 16 is a schematic structural diagram of another application device provided by an embodiment of the present application.
具体实施方式detailed description
下面将结合附图对本申请实施例作进一步地详细描述。电子设备中安装的各种应用程序,能够为用户提供不同方面的便利,解决用户在不同场景中的不同需求。例如,共享单车类的应用程序,使得用户可以方便使用公共单车;支付类的应用程序,可以使得用户通过电子设备进行支付,而不必随身携带现金、或银行卡等;公交查询类的应用程序,可以方便用户查询公交路线以及运行状况。The embodiments of the present application will be described in further detail below with reference to the accompanying drawings. Various applications installed in electronic devices can provide users with convenience in different aspects and meet different needs of users in different scenarios. For example, bicycle-sharing applications allow users to conveniently use public bicycles; payment applications allow users to make payments through electronic devices without having to carry cash or bank cards; public transport inquiry applications, It is convenient for users to check bus routes and operating conditions.
由于现有技术中打开应用程序的过程比较复杂,传统激活应用程序的方式还存在一些局限性。为了在简化用户操作、提高用户体验的同时,提高处理效率,本申请实施例提供一种应用程序的识别设备以及电子设备。该识别设备可以是电子设备中的电路版、电路系统、芯片或芯片组,可运行必要的软件,并用于执行与应用程序激活相关的操作,所述软件包括但不限于驱动软件、操作系统软件和应用软件。所述电子设备是可移动的电子设备,如手机、平板等移动终端,可选择性包括或不包括通信能力,通信能力可以是移动通信或短距离通信。当所述电子设备不具有通信能力,相当于是个可移动的本地设备。所述电子设备需要具有拍摄能力,如内置有摄像头,即拍摄图片使用的传感器镜头。该电子设备包括但不限于手机、平板电脑、个人数字助理(Personal Digital Assistant,PDA)、膝上电脑或可穿戴设备。Since the process of opening an application program in the prior art is relatively complicated, the traditional method of activating an application program still has some limitations. In order to simplify user operations, improve user experience, and improve processing efficiency, embodiments of the present application provide an application identification device and an electronic device. The identification device can be a circuit board, a circuit system, a chip or a chipset in an electronic device, and can run necessary software and be used to perform operations related to application activation, the software includes but is not limited to driver software, operating system software and application software. The electronic device is a movable electronic device, such as a mobile terminal such as a mobile phone and a tablet, and may optionally include or not include a communication capability, and the communication capability may be mobile communication or short-range communication. When the electronic device has no communication capability, it is equivalent to a movable local device. The electronic device needs to have a shooting capability, such as a built-in camera, that is, a sensor lens used for shooting pictures. The electronic device includes, but is not limited to, a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), a laptop computer or a wearable device.
以电子设备是手机为例,图2示出了一种可能的手机200部分结构。如图所示,手机200包括:射频(radio frequency,RF)电路210、存储器220、其他输入设备230、触摸显示屏240、传感器250、音频电路260、I/O子系统270、处理器280以及电源290等部件。本领域技术人员可以理解,图2中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。下面结合图2对手机200的各个构成部件进行具体的介绍:Taking the electronic device as a mobile phone as an example, FIG. 2 shows a possible partial structure of the mobile phone 200 . As shown, cell phone 200 includes: radio frequency (RF) circuitry 210, memory 220, other input devices 230, touch display screen 240, sensors 250, audio circuitry 260, I/O subsystem 270, processor 280, and Power 290 and other components. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 2 does not constitute a limitation on the mobile phone, and may include more or less components than the one shown in the figure, or combine some components, or disassemble some components, or Different component arrangements. Below in conjunction with FIG. 2, each constituent component of the mobile phone 200 will be specifically introduced:
RF电路210可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器280处理;另外,将设计上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(low noise amplifier,LNA)、双工器等。此外,RF电路210还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(global system of mobile communication,GSM)、通用分组无线服务(general packet radio service,GPRS)、码分多址(code division multiple access,CDMA)、宽带码分多址(wideband code division multiple access,WCDMA)、长期演进(long term evolution,LTE)、电子邮件、短消息服务(short messaging service,SMS)等。The RF circuit 210 can be used for receiving and sending signals during sending and receiving of information or during a call. In particular, after receiving the downlink information of the base station, it is processed by the processor 280; in addition, the designed uplink data is sent to the base station. Typically, RF circuits include, but are not limited to, antennas, at least one amplifier, transceivers, couplers, low noise amplifiers (LNAs), duplexers, and the like. In addition, the RF circuit 210 may also communicate with the network and other devices via wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to global system of mobile communication (GSM), general packet radio service (GPRS), code division multiple access (code division multiple access) division multiple access, CDMA), wideband code division multiple access (WCDMA), long term evolution (long term evolution, LTE), email, short message service (short messaging service, SMS), etc.
存储器220可用于存储软件程序以及模块,处理器280通过运行存储在存储器220的软件程序以及模块,从而执行手机200的各种功能应用以及数据处理。存储器220可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机200的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器220可以包括掉电易失性存储器或非掉电易失性存储器。存储器220可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任 何其他介质,但不限于此。The memory 220 may be used to store software programs and modules, and the processor 280 executes various functional applications and data processing of the mobile phone 200 by running the software programs and modules stored in the memory 220 . The memory 220 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required for at least one function, and the like; The use of the cell phone 200 creates data (such as audio data, phone book, etc.) and the like. Additionally, memory 220 may include power-down volatile memory or non-power-down volatile memory. The memory 220 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of static storage device that can store information and instructions The dynamic storage device can also be an electrically erasable programmable read-only memory (EEPROM) or can be used to carry or store the desired program code in the form of instructions or data structures and can be stored by a computer. any other medium taken, but not limited to this.
其他输入设备230可用于接收输入的数字或字符信息,以及产生与手机200的用户设置以及功能控制有关的键信号输入。具体地,其他输入设备230可包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、操作杆等中的一种或多种。在本发明的一些实施例中,其他输入设备还可以包括图像传感器(摄像头),用于采集图像。其他输入设备230与I/O子系统270的其他输入设备控制器271相连接,在其他输入设备控制器271的控制下与处理器280进行信号交互。 Other input devices 230 may be used to receive input numerical or character information, and to generate key signal input related to user settings and function control of the cell phone 200 . Specifically, other input devices 230 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), operation sticks, and the like. In some embodiments of the present invention, other input devices may also include an image sensor (camera) for capturing images. The other input device 230 is connected to the other input device controller 271 of the I/O subsystem 270 , and performs signal interaction with the processor 280 under the control of the other input device controller 271 .
触摸显示屏240可用于显示由用户输入的信息或提供给用户的信息以及手机200的各种菜单,还可以接受用户输入。具体的触摸显示屏240可包括显示面板241,以及触控面板242。其中显示面板241可以采用液晶显示器(liquid crystal display,LCD)、有机发光二极管(organic light emitting diode,OLED)等形式来配置显示面板241。触控面板242,也称为触摸屏、触敏屏等,可收集用户在其上或附近的接触或者非接触操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板242上或在触控面板242附近的操作,也可以包括体感操作;该操作包括单点控制操作、多点控制操作等操作类型),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板242可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位、姿势,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成处理器能够处理的信息,再送给处理器280,并能接收处理器280发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板242,也可以采用未来发展的任何技术实现触控面板242。进一步的,触控面板242可覆盖显示面板241,用户可以根据显示面板241显示的内容(该显示内容包括但不限于,软键盘、虚拟鼠标、虚拟按键、图标等等),在显示面板241上覆盖的触控面板242上或者附近进行操作,触控面板242检测到在其上或附近的操作后,通过I/O子系统270传送给处理器280以确定用户输入,随后处理器280根据用户输入通过I/O子系统280在显示面板241上提供相应的视觉输出。虽然在图2中,触控面板242与显示面板241是作为两个独立的部件来实现手机200的输入和输入功能,但是在某些实施例中,可以将触控面板242与显示面板241集成而实现手机200的输入和输出功能。The touch display screen 240 may be used to display information input by or provided to the user and various menus of the mobile phone 200, and may also accept user input. The specific touch display screen 240 may include a display panel 241 and a touch panel 242 . The display panel 241 may be configured in the form of a liquid crystal display (liquid crystal display, LCD), an organic light emitting diode (organic light emitting diode, OLED) or the like. The touch panel 242, also known as a touch screen, touch sensitive screen, etc., can collect the user's contact or non-contact operations on or near it (such as the user using a finger, stylus, etc., any suitable object or accessory on the touch panel 242) Or the operation near the touch panel 242 may also include a somatosensory operation; the operation includes single-point control operation, multi-point control operation and other operation types), and the corresponding connection device is driven according to a preset program. Optionally, the touch panel 242 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation and posture, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, and converts it into a processor capable of The processed information is then sent to the processor 280, and the commands sent by the processor 280 can be received and executed. In addition, the touch panel 242 can be realized by various types such as resistive, capacitive, infrared, and surface acoustic wave, and any technology developed in the future can also be used to realize the touch panel 242 . Further, the touch panel 242 can cover the display panel 241, and the user can display the content on the display panel 241 according to the content displayed on the display panel 241 (the display content includes, but not limited to, a soft keyboard, a virtual mouse, virtual keys, icons, etc.) on the display panel 241 The operation is performed on or near the covered touch panel 242. After the touch panel 242 detects the operation on or near it, the operation is transmitted to the processor 280 through the I/O subsystem 270 to determine the user input, and then the processor 280 according to the user Inputs provide corresponding visual outputs on display panel 241 through I/O subsystem 280 . Although in FIG. 2, the touch panel 242 and the display panel 241 are used as two independent components to realize the input and input functions of the mobile phone 200, in some embodiments, the touch panel 242 and the display panel 241 may be integrated And realize the input and output functions of the mobile phone 200 .
手机200还可包括至少一种传感器250,比如加速度传感器251、光传感器以及其他传感器。具体地,加速度传感器251可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节触摸显示屏240的亮度,接近传感器可在手机200移动到耳边时,关闭屏幕和/或背光。至于手机200还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The cell phone 200 may also include at least one sensor 250, such as an acceleration sensor 251, a light sensor, and other sensors. Specifically, the acceleration sensor 251 can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when stationary, and can be used for applications that recognize the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometers) (posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the touch display screen 240 according to the brightness of the ambient light, The proximity sensor can turn off the screen and/or the backlight when the phone 200 is moved to the ear. As for other sensors, such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., that can be configured in the mobile phone 200, the details are not repeated here.
音频电路260、扬声器261,麦克风262可提供用户与手机200之间的音频接口。音频电路260可将接收到的音频数据转换后的信号,传输到扬声器261,由扬声器261转换为声音信号输出;另一方面,麦克风262将收集的声音信号转换为信号,由音频电路260接收后转换为音频数据,再将音频数据输出至RF电路210以发送给比如另一手机,或者将音频数据输出至存储器220以便进一步处理。The audio circuit 260 , the speaker 261 , and the microphone 262 can provide an audio interface between the user and the mobile phone 200 . The audio circuit 260 can transmit the received audio data converted signal to the speaker 261, and the speaker 261 converts it into a sound signal for output; on the other hand, the microphone 262 converts the collected sound signal into a signal, which is received by the audio circuit 260. Converted to audio data, the audio data is output to the RF circuit 210 for transmission to, for example, another mobile phone, or to the memory 220 for further processing.
I/O子系统270用来控制输入输出的外部设备,可以包括其他输入设备控制器271、传感器控制器272、显示控制器273。可选的,一个或多个其他输入设备控制器271从其他输入设备230接收信号和/或者向其他输入设备230发送信号,其他输入设备230可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、摄像头等。值得说明的是,其他输入设备控制器271可以与任一个或者多个上述设备连接。所述I/O子系统270中的显示控制器273从触摸显示屏240接收信号和/或者向触摸显示屏240发送信号。触摸显示屏240检测到用户输入后,显示控制器273将检测到的用户输入转换为与显示在触摸显示屏240上的用户界面对象的交互,即实现人机交互。传感器控制器270可以从一个或者多个传感器250接收信号和/或者向一个或者多个传感器250发送信号。The I/O subsystem 270 is used to control input and output external devices, which may include other input device controllers 271 , sensor controllers 272 , and display controllers 273 . Optionally, one or more other input device controllers 271 receive signals from and/or send signals to other input devices 230, which may include physical buttons (press buttons, rocker buttons, etc.), Dials, slide switches, cameras, and more. It should be noted that the other input device controller 271 may be connected to any one or more of the above-mentioned devices. The display controller 273 in the I/O subsystem 270 receives signals from and/or sends signals to the touch display screen 240 . After the touch display screen 240 detects the user input, the display controller 273 converts the detected user input into interaction with the user interface objects displayed on the touch display screen 240, that is, to realize human-computer interaction. Sensor controller 270 may receive signals from and/or send signals to one or more sensors 250 .
处理器280用于作为手机200的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器220内的软件程序和/或模块,以及调用存储在存储器220内的数据,执行手机200的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器280可包括一个或多个处理单元,或者一个或多个处理器;优选的,处理器280可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器280中。处理器280可进一步包括后续实施例提到的处理功能单元。The processor 280 is used as the control center of the mobile phone 200, using various interfaces and lines to connect various parts of the entire mobile phone, by running or executing the software programs and/or modules stored in the memory 220, and calling the software programs stored in the memory 220. Data, perform various functions of the mobile phone 200 and process data, so as to monitor the mobile phone as a whole. Optionally, the processor 280 may include one or more processing units, or one or more processors; preferably, the processor 280 may integrate an application processor and a modem processor, wherein the application processor mainly processes operations System, user interface and application programs, etc., the modem processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 280. The processor 280 may further include the processing functional units mentioned in the subsequent embodiments.
手机200还包括给各个部件供电的电源290(比如电池),优选的,电源可以通过电源管理系统与处理器280逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗等功能。尽管未示出,手机200还可以包括蓝牙模块等其他模块,在此不再赘述。The mobile phone 200 also includes a power supply 290 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 280 through a power management system, so as to manage charging, discharging, and power consumption functions through the power management system. Although not shown, the mobile phone 200 may also include other modules such as a Bluetooth module, which will not be repeated here.
本申请实施例提供的应用程序的识别设备300的结构示意图可以如图3所示,包括主处理器301和协处理器302。A schematic structural diagram of an application identification device 300 provided by an embodiment of the present application may be as shown in FIG. 3 , including a main processor 301 and a coprocessor 302 .
主处理器301,用于接收由用户触发的第一指令,所述第一指令用于指示将第一图像与第一应用程序进行关联。The main processor 301 is configured to receive a first instruction triggered by a user, where the first instruction is used to instruct to associate the first image with the first application program.
一种可选的实施方式中,上述设备300还包括信号处理设备303;信号处理设备303用于对来自图像传感器的第一数据做处理得到第一图像。可选的,可以由用户触发电子设备中图像传感器采集第一数据。则具体实施时,在接收由用户触发的第一指令之前,主处理器301还用于接收用户触发的拍摄指令,所述拍摄指令用于指示拍摄第一图像,控制电子设备中的图像传感器采集第一数据并传输至信号处理设备303,由信号处理设备303对第一数据做处理得到第一图像。另一种可选的实施方式中,第一图像是预置的至少一个图像中用户所指定(选中)的图像。具体的,第一图像可以是用户在设备300所在的电子设备内预先存储的图像数据,例如电子设备上的图库中所选中的图像。可选的,前述第一图像可以是一张或者多张,例如用户可针对同一物体的不同角度触发拍摄多张图像,也可从电子设备上的图库中选中一张或多张图像,对此不进行限定。In an optional implementation manner, the above-mentioned device 300 further includes a signal processing device 303; the signal processing device 303 is configured to process the first data from the image sensor to obtain the first image. Optionally, a user may trigger an image sensor in the electronic device to collect the first data. In specific implementation, before receiving the first instruction triggered by the user, the main processor 301 is further configured to receive a shooting instruction triggered by the user, and the shooting instruction is used to instruct to shoot the first image and control the image sensor in the electronic device to capture The first data is transmitted to the signal processing device 303, and the signal processing device 303 processes the first data to obtain a first image. In another optional implementation manner, the first image is an image designated (selected) by the user in at least one preset image. Specifically, the first image may be image data pre-stored by the user in the electronic device where the device 300 is located, for example, an image selected in a gallery on the electronic device. Optionally, the aforementioned first image may be one or more images, for example, the user can trigger shooting of multiple images from different angles of the same object, or select one or more images from the gallery on the electronic device, for this purpose. Not limited.
协处理器302,用于对所述第一图像进行识别以得到第一图像特征,并向所述主处理器301发送用于指示所述第一图像特征的第一信息。其中,第一信息包括第一图像特征和/或第一图像特征的标识。第一图像特征包括第一图像中的目标物体,以及目标物体的颜色、尺寸、形状等相关参数。可选的,协处理器302在对第一图像进行处理时,可以使用人工智能AI图像识别算法对第一图像进行识别,以得到对应的第一图像特征;或者也可以使用小样本(few-shot learning)图像识别算法对第一图像进行识别。The coprocessor 302 is configured to identify the first image to obtain a first image feature, and send first information indicating the first image feature to the main processor 301 . Wherein, the first information includes the first image feature and/or the identifier of the first image feature. The first image features include the target object in the first image, and related parameters such as color, size, and shape of the target object. Optionally, when processing the first image, the coprocessor 302 may use an artificial intelligence AI image recognition algorithm to identify the first image to obtain corresponding first image features; or may also use a small sample (few- shot learning) image recognition algorithm to recognize the first image.
主处理器301,还用于数据库中不包括所述第一信息时,将所述第一图像特征和所述 第一应用程序进行关联,并在所述数据库中保存所述第一信息和所述第一应用程序;其中,所述数据库包括用于指示至少一个图像特征的信息和每个图像特征所关联的应用程序。将所述第一图像特征和所述第一应用程序进行关联也即将所述第一图像和所述第一应用程序进行关联。The main processor 301 is further configured to associate the first image feature with the first application when the database does not include the first information, and store the first information and all the first information in the database. the first application; wherein the database includes information for indicating at least one image feature and an application associated with each image feature. Associating the first image feature with the first application also means associating the first image with the first application.
示例性的,若数据库中用于指示至少一个图像特征中任一图像特征的信息包括该任一图像特征的标识和图像特征,假设数据库中存储有标识为“21”、图像特征为“黄色共享单车”以及“21”、“黄色共享单车”所关联的应用程序“ofo共享单车”。若主处理器301从协处理器302接收的第一信息包括标识“11”,图像特征“黑色吉他”,且基于用户触发的第一指令确定用户选中的第一应用程序为“调音器APP”,则可将“11”、“黑色吉他”与“调音器APP”进行关联,并保存在数据库中。Exemplarily, if the information used to indicate any image feature in the at least one image feature includes the identifier and image feature of the any image feature, it is assumed that the database has the identifier "21" and the image feature "Yellow Shared". Bicycle” and the app “ofo Shared Bicycle” associated with “21” and “Yellow Shared Bicycle”. If the first information received by the main processor 301 from the co-processor 302 includes the identifier "11", the image feature "black guitar", and the first application selected by the user is determined based on the first instruction triggered by the user as the "Tuner APP" ", you can associate "11" and "Black Guitar" with the "Tuner APP" and save them in the database.
可选的,数据库所包括的内容分为预置部分和用户自定义部分。即数据库内存在一些用于指示图像特征的信息和该信息关联的应用程序是预先配置在数据库中的,也存在一些用于指示图像特征的信息和该信息关联的应用程序是由用户自定以保存在数据库中,例如按照上述流程,将第一信息和第一应用程序保存在数据库中。为加以区分,前述预置在数据库内的关联有相关图像特征的应用程序可以被称作默认应用程序,预置部分和用户自定义部分在数据库中可采用两张表进行存储。Optionally, the content included in the database is divided into a preset part and a user-defined part. That is, there is some information used to indicate image features in the database and the application program associated with the information is pre-configured in the database, and there are also some information used to indicate image features and the application program associated with the information is user-defined. Save in the database, for example, according to the above process, save the first information and the first application in the database. To distinguish, the aforementioned application program preset in the database and associated with the relevant image features may be referred to as a default application program, and the preset part and the user-defined part may be stored in two tables in the database.
本申请实施例中,支持用户自定义,建立图像特征与应用程序之间的关联关系,扩展了基于图像识别技术可激活的应用程序的种类。在后续图像识别中,如果识别出某一关联有应用程序的图像特征时,识别设备可以自动启动该图像特征所关联的应用程序,简化了用户操作流程提升用户体验,并提高处理效率。In the embodiment of the present application, user customization is supported, an association relationship between image features and application programs is established, and the types of application programs that can be activated based on the image recognition technology are expanded. In subsequent image recognition, if an image feature associated with an application program is identified, the recognition device can automatically start the application program associated with the image feature, which simplifies the user operation process, improves user experience, and improves processing efficiency.
具体实现时,可以在电子设备上设置供用户触发第一指令的交互界面。示例性的,参照图4~图7b所示手机上的交互界面,用户在手机上执行相关操作以触发第一指令,实现将第一图像与第一应用程序关联。During specific implementation, an interactive interface for the user to trigger the first instruction may be set on the electronic device. Exemplarily, referring to the interactive interfaces on the mobile phone shown in FIGS. 4 to 7 b , the user performs a related operation on the mobile phone to trigger the first instruction, so as to associate the first image with the first application program.
如图4所示,可在手机内的设置中部署功能“注册图像”;也可以是在手机中基于独立的软件部署功能“注册图像”。在用户触击“注册图像”后,跳转至如图5所示的提示用户录入图像的界面。若用户选择“拍照”,则跳转至如图6a所示的拍照界面,供用户拍摄一张或多张图像;若用户选择“打开图库”,则跳转至如图6b所示的图库界面,供用户选取图库中存储的图像,具体的图6b示意出用户选中5张图像。待用户完成录入图像后,手机中的协处理器识别出用户所录入图像的图像特征,若该图像特征已关联有应用程序,则确定该图像特征已被注册,则提示用户该图像特征已被注册,如图7a所示,在手机上弹出“该图像中的物体已被注册到XX应用,请选择新图像或者删除该图像与XX应用的关联关系”的提示内容;或者,若该图像特征未关联应用程序,则如图7b所示,提示用户可以注册该图像,并在手机上弹出应用程序列表,若用户选择应用程序2,则保存用户所录入图像的图像特征与应用程序2之间的关联关系。As shown in FIG. 4 , the function "registration image" can be deployed in the settings in the mobile phone; it is also possible to deploy the function "registration image" based on independent software in the mobile phone. After the user taps "register image", it jumps to an interface as shown in FIG. 5 that prompts the user to enter an image. If the user selects "take a picture", the user will jump to the camera interface as shown in Figure 6a for the user to take one or more images; if the user selects "Open Gallery", it will jump to the gallery interface as shown in Figure 6b , for the user to select images stored in the gallery. Specifically, Fig. 6b shows that the user selects 5 images. After the user completes inputting the image, the coprocessor in the mobile phone recognizes the image feature of the image entered by the user. If the image feature has been associated with an application, it is determined that the image feature has been registered, and the user is prompted that the image feature has been registered. Registration, as shown in Figure 7a, pops up on the mobile phone "the object in this image has been registered to the XX application, please select a new image or delete the association between the image and the XX application"; or, if the image features If the application is not associated, as shown in Figure 7b, the user is prompted to register the image, and the application list pops up on the mobile phone. If the user selects application 2, the image features of the image entered by the user and the application 2 are saved. association relationship.
对应图4~图7b所示的交互界面,参见图8,本申请实施例提供了一种注册图像的流程示意图,包括如下步骤。S1,响应用户操作,打开电子设备中预先部署的注册图像功能。例如图4所示,用户触击“注册图像”。S2,提示用户录入图像,获取用户触发拍摄的图像或者用户选中的已存储的图像。S3,判断所获取图像的图像特征是否被注册,即判断所获取图像的图像特征是否已关联有应用程序。如果是,则执行S4;如果否,则执行S5。Corresponding to the interactive interfaces shown in FIG. 4 to FIG. 7 b , referring to FIG. 8 , an embodiment of the present application provides a schematic flowchart of registering an image, including the following steps. S1, in response to a user operation, turn on a pre-deployed registered image function in the electronic device. For example, as shown in FIG. 4, the user taps "register image". S2, prompting the user to input an image, and acquiring an image triggered by the user to shoot or a stored image selected by the user. S3, determine whether the image feature of the acquired image is registered, that is, determine whether the image feature of the acquired image has been associated with an application program. If yes, go to S4; if not, go to S5.
S4,提示用户该图像特征已被注册,重新录入图像或者删除该图像特征与其关联应用 程序间的关联关系。S5,提示用户可以注册。S6,将所获取图像的图像特征与该用户指定的应用程序进行关联,完成注册。S4, prompt the user that the image feature has been registered, re-enter the image or delete the association relationship between the image feature and its associated application program. S5, prompting that the user can register. S6, associate the image feature of the acquired image with the application program designated by the user to complete the registration.
可选的,可参照如下两种方式中任一种实施确定用户指定的应用程序。方式一:在执行S2后且执行S3之前,向用户展示应用程序列表供用户选择希望与录入图像所关联的应用程序,以供用户提前选择期望的应用程序。方式二:在执行S5后且执行S6之前,向用户展示应用程序列表供用户选择希望与录入图像所关联的应用程序。Optionally, the application program specified by the user may be determined by referring to any one of the following two manners. Manner 1: After S2 is performed and before S3 is performed, a list of application programs is displayed to the user for the user to select the application program desired to be associated with the input image, so that the user can select the desired application program in advance. Manner 2: After S5 is performed and before S6 is performed, a list of application programs is displayed to the user for the user to select an application program desired to be associated with the input image.
可选的,当用户触发拍摄或者选中的图像中不包含显著特征,例如图像中不包含目标物体或者第一图像中大部分为墙面、地面、天花板等背景而所包含的目标物体的特征较少,则提示用户拍摄或者选中具有显著特征的图像,将具有显著特征的图像作为前述第一图像。要求用户拍摄或选中的图像具备显著特征,能够避免后续触发错误识别。Optionally, when the user triggers the shooting or the selected image does not contain salient features, for example, the image does not contain the target object, or most of the first image is the background of the wall, the ground, the ceiling, etc. and the features of the target object contained are relatively high. If less, the user is prompted to shoot or select an image with significant features, and the image with significant features is used as the aforementioned first image. The images captured or selected by the user are required to have salient features to avoid subsequent triggering of false identification.
进一步,信号处理设备303,还用于对来自图像传感器的第二数据做处理以得到第二图像。协处理器302,还用于对所述第二图像进行识别得到第二图像特征,确定所述数据库中包括用于指示所述第二图像特征的第二信息时,将所述第二信息发送至所述主处理器。所述主处理器301,还用于将所述数据库中与所述第二图像特征关联的应用程序确定为待激活的目标应用程序。Further, the signal processing device 303 is further configured to process the second data from the image sensor to obtain a second image. The coprocessor 302 is further configured to identify the second image to obtain a second image feature, and when it is determined that the database includes second information for indicating the second image feature, send the second information to the main processor. The main processor 301 is further configured to determine the application program associated with the second image feature in the database as the target application program to be activated.
可选的,协处理器302在对第二图像进行处理时,可以使用人工智能AI图像识别算法对第二图像进行识别,以得到对应的第二图像特征;或者也可以使用小样本(few-shot learning)图像识别算法对第二图像进行识别。Optionally, when processing the second image, the coprocessor 302 may use an artificial intelligence (AI) image recognition algorithm to identify the second image to obtain corresponding second image features; or a small sample (few- shot learning) image recognition algorithm to recognize the second image.
其中,AI图像识别技术的流程可以如图9所示,包括训练过程和识别过程。在训练过程中,首先获取大量的待训练的图像,即获取训练样本,然后对样本图像进行预处理和特征提取得到图像训练模型,并利用深度的学习引擎,例如协处理器302的引擎软件,对处理后的图像训练模型进行处理,得到训练分类器。例如,若待训练的图像特征为黄色共享单车,则首先获取数量较多的黄色共享单车的图像,获取的图像可以包括从不同角度、不同场景中拍摄的黄色共享单车的图像,然后分别对每个图像进行预处理,例如差值、去噪、或锐化等等,对经过预处理后的图像进行特征提取,即提取出图像中关于黄色共享单车的特征,之后,基于从每个图像中提取到的关于黄色共享单车的特征进行训练,得到黄色共享单车的训练模型,并根据得到的训练模型训练黄色共享单车的分类器。该训练模型和分类器可以软件模型的方式存在,并保存于电子设备的所述存储器中,以便后续被所述协处理器302调用。在识别过程中,首先获取待识别的图像(如前述第二图像),对待识别图像进行预处理以及对进行预处理后的待识别图像进行特征提取的操作,其中,预处理包括剔除待识别图像中不包含显著特征的图像,例如若图像中天花板、墙面、地面等背景占较大比例,而关于目标物体的特征占比较少甚至没有,则将该图像剔除,减轻后续协处理器302识别图像特征的计算量,进一步提高处理效率。进而对提取到的特征进行降维处理,然后与训练过程中得到的训练模型、训练分类器进行匹配,从而得到识别结果。其中,上述训练过程可以由服务器离线完成的,然后将训练得到的模型和分类器发送给电子设备以便存储于电子设备的存储器中,电子设备中的协处理器302对获取到的第二图像进行识别,得到第二图像特征。Among them, the process of AI image recognition technology can be shown in Figure 9, including the training process and the recognition process. In the training process, first obtain a large number of images to be trained, that is, obtain training samples, then perform preprocessing and feature extraction on the sample images to obtain an image training model, and use a deep learning engine, such as the engine software of the coprocessor 302, The processed image training model is processed to obtain a training classifier. For example, if the image features to be trained are yellow shared bicycles, first obtain images of a large number of yellow shared bicycles, and the obtained images may include images of yellow shared bicycles taken from different angles and in different scenes, and then separately for each yellow shared bicycle. Each image is preprocessed, such as difference, denoising, or sharpening, etc., and feature extraction is performed on the preprocessed image, that is, the characteristics of the yellow shared bicycle in the image are extracted. The extracted features about the yellow shared bicycle are trained to obtain a training model of the yellow shared bicycle, and the classifier of the yellow shared bicycle is trained according to the obtained training model. The training model and the classifier can exist in the form of software models, and are stored in the memory of the electronic device for subsequent calls by the coprocessor 302 . In the identification process, firstly acquire the image to be identified (such as the aforementioned second image), preprocess the image to be identified, and perform feature extraction on the preprocessed image to be identified, wherein the preprocessing includes removing the image to be identified Images that do not contain significant features in the image, for example, if the background of the image, such as the ceiling, wall, and ground, accounts for a large proportion, and the features about the target object account for a small proportion or even none, the image will be eliminated to reduce the subsequent recognition by the coprocessor 302. The amount of calculation of image features further improves processing efficiency. Then, the extracted features are subjected to dimensionality reduction processing, and then matched with the training model and the training classifier obtained during the training process to obtain the recognition result. The above training process can be completed offline by the server, and then the model and classifier obtained by training are sent to the electronic device for storage in the memory of the electronic device. The coprocessor 302 in the electronic device performs Identify, and obtain the second image feature.
小样本图像识别技术可以如图10所示,包括离线训练过程、在线训练过程和识别过程。在离线训练过程中,获取大量的待训练的图像,即获取训练样本,然后对样本图像进行预处理和特征提取得到具备元知识的图像训练模型,并利用深度的学习引擎例如协处理 器302的引擎软件,对处理后的图像训练模型进行处理,得到训练分类器。然后在线训练过程中,获取少量具有用户个性化的图像,对个性化的图像进行预处理和特征提取到个性化的图像训练模型,并利用深度的学习引擎例如协处理器302的引擎软件,对前述个性化的图像训练模型进行处理,得到分类器。在识别过程中,首先获取待识别的图像(如前述第二图像),对待识别图像进行预处理以及对进行预处理后的待识别图像进行特征提取的操作,其中,预处理包括剔除待识别图像中不包含显著特征的图像,例如若图像中天花板、墙面、地面等背景占较大比例,而关于目标物体的特征占比较少甚至没有,则将该图像剔除,减轻后续协处理器302识别图像特征的计算量,进一步提高处理效率。然后与在线训练过程中得到的图像识别模型、分类器进行匹配,从而得到识别结果。若匹配成功,即协处理器识别得到图像对应的图像特征,例如协处理器识别第二图像,得到第二图像特征。The small sample image recognition technology can be shown in Figure 10, including an offline training process, an online training process and a recognition process. In the offline training process, a large number of images to be trained are obtained, that is, training samples are obtained, and then the sample images are preprocessed and feature extracted to obtain an image training model with meta-knowledge, and a deep learning engine such as the coprocessor 302 is used. The engine software processes the processed image training model to obtain a training classifier. Then in the online training process, a small number of images with user personalization are acquired, the personalized images are preprocessed and features are extracted to the personalized image training model, and a deep learning engine such as the engine software of the coprocessor 302 is used to perform The aforementioned personalized image training model is processed to obtain a classifier. In the identification process, firstly acquire the image to be identified (such as the aforementioned second image), preprocess the image to be identified, and perform feature extraction on the preprocessed image to be identified, wherein the preprocessing includes removing the image to be identified Images that do not contain significant features in the image, for example, if the background of the image, such as the ceiling, wall, and ground, accounts for a large proportion, and the features about the target object account for a small proportion or even none, the image will be eliminated to reduce the subsequent recognition by the coprocessor 302. The amount of calculation of image features further improves processing efficiency. Then, it is matched with the image recognition model and classifier obtained in the online training process to obtain the recognition result. If the matching is successful, the coprocessor recognizes and obtains the image feature corresponding to the image, for example, the coprocessor recognizes the second image and obtains the second image feature.
以下参照表1所示用户自定义保存的图像特征与应用程序之间关联关系,以及如表2所示,在数据库中所存储的一些图像特征对应的默认应用程序,即并非用户自定义的应用程序,在用户选择之前已经存在于数据库中。对上述一种可选的实施方式的方案进行举例说明。The following refers to the relationship between the user-defined saved image features and application programs shown in Table 1, and as shown in Table 2, the default application programs corresponding to some image features stored in the database, that is, not user-defined applications program, which existed in the database before the user selected it. An example is given to illustrate the solution of the above-mentioned optional implementation manner.
表1Table 1
标识logo 图像特征image features 应用程序application
1111 黑色吉他black guitar 调音器APPTuner APP
1212 银色架子鼓silver drum kit 节拍器APPMetronome APP
1313 空调air conditioner 遥控器APPRemote control APP
1414 电视机TV set 遥控器APPRemote control APP
1515 汽车方向盘Car Steering Wheel 导航APPNavigation app
1616 瑜伽垫yoga mat KeepKeep
1717 课本/教材Textbooks/Textbooks 学习APPlearning app
1818 橙色共享单车orange shared bicycle 摩拜单车Mobike
...... ...... ......
表2Table 2
标识logo 图像特征image features 默认应用程序default application
21twenty one 黄色共享单车yellow bike sharing ofo共享单车ofo bike sharing
22twenty two 蓝色共享单车blue bike sharing 小蓝单车little blue bike
23twenty three 地铁闸口subway gate 易通行Easy access
24twenty four 收款二维码Receipt QR code 支付宝(或微信)Alipay (or WeChat)
2525 扫码枪code scanning gun 支付宝(或微信)Alipay (or WeChat)
2626 公交站牌bus stop sign 车来了the car is coming
...... ...... ......
例如,用户自定义“摩拜单车”应用程序与橙色共享单车之间具有关联关系。若协处理器302获取到的第二图像如图11a所示,协处理器302识别出第二图像中存在橙色共享单车,即,确定出第二图像对应的第二图像特征为橙色共享单车,根据表1确定出与其所关 联的为“摩拜单车”应用程序,协处理器302可以将标识“18”通知给主处理器301,主处理器301确定标识“18”对应的应用程序为“摩拜单车”,则进一步将“摩拜单车”确定为待激活的目标应用程序。若设备300所在的电子设备中已安装有应用程序“摩拜单车”,则主处理器301激活“摩拜单车”应用程序,电子设备此时为用户展示的内容如图11b所示。若电子设备中未安装有应用程序“摩拜单车”,则主处理器301可以通过电子设备的显示屏提示用户是否下载应用程序“摩拜单车”。For example, the user-defined "Mobike" application has an association with the orange shared bicycle. If the second image obtained by the co-processor 302 is shown in FIG. 11a, the co-processor 302 identifies that there is an orange shared bicycle in the second image, that is, determines that the second image corresponding to the second image has an orange shared bicycle, According to Table 1, it is determined that the associated application is "Mobike", the coprocessor 302 can notify the main processor 301 of the identifier "18", and the main processor 301 determines that the application corresponding to the identifier "18" is " Mobike”, then further identifies “Mobike” as the target application to be activated. If the application "Mobike" has been installed in the electronic device where the device 300 is located, the main processor 301 activates the "Mobike" application, and the content displayed by the electronic device to the user is shown in Figure 11b. If the application "Mobike" is not installed in the electronic device, the main processor 301 may prompt the user whether to download the application "Mobike" through the display screen of the electronic device.
又例如,在出现扫码枪的场景中,用户可能需要进行支付,因此将能够支付的“支付宝”应用程序设置为与扫码枪对应的默认应用程序。若协处理器302获取到的图像如图12a所示,协处理器302识别出所获取第二图像对应的图像特征为扫码枪,根据表1确定出用户未自定义扫码枪所关联的应用程序,而根据表2确定出与其对应的默认应用程序为“支付宝”应用程序,协处理器302可以将标识“25”通知给主处理器301,主处理器301确定标识“25”对应的应用程序为“支付宝”,则进一步将“支付宝”确定为待激活的目标应用程序。若设备300所在的电子设备中已安装有应用程序“支付宝”,主处理器301激活“支付宝”应用程序,电子设备此时为用户展示的内容如图12b所示。若电子设备中未安装有应用程序“支付宝”,则主处理器可以通过电子设备的显示屏提示用户是否下载应用程序“支付宝”。For another example, in a scenario where a code scanning gun appears, the user may need to make a payment, so the "Alipay" application that can pay is set as the default application corresponding to the code scanning gun. If the image acquired by the co-processor 302 is shown in FIG. 12a, the co-processor 302 identifies that the image feature corresponding to the acquired second image is a scan code gun, and determines the application associated with the code scan gun that the user does not define according to Table 1 program, and according to Table 2, it is determined that the default application program corresponding to it is the "Alipay" application program, the coprocessor 302 can notify the main processor 301 of the identification "25", and the main processor 301 determines the application corresponding to the identification "25" If the program is "Alipay", then "Alipay" is further determined as the target application to be activated. If the application "Alipay" has been installed in the electronic device where the device 300 is located, the main processor 301 activates the "Alipay" application, and the content displayed by the electronic device to the user is shown in Figure 12b. If the application program "Alipay" is not installed in the electronic device, the main processor may prompt the user whether to download the application program "Alipay" through the display screen of the electronic device.
应当理解,上述表1、表2仅为举例,用户自定以图像特征与应用程序之间的关联关系可以包括表1所示的内容,但不仅限于此。数据库内预置图像特征以及对应的默认应用程序可以包括表2所示的内容,但不限于此。此外,“标识”一栏也为可选项,若存在该项,可简化协处理器302与主处理器301之间的通信,即协处理器302将确定出的应用程序的标识通知给主处理器即可;若不存在该项,协处理器302也可以通过其它方式将图像对应的识别信息通知主处理器待激活的应用程序,例如将应用程序的名称或图像特征信息发送给主处理器301等。It should be understood that the above-mentioned Tables 1 and 2 are only examples, and the user-defined association relationship between the image feature and the application program may include the content shown in Table 1, but is not limited thereto. The preset image features in the database and the corresponding default application programs may include the contents shown in Table 2, but are not limited thereto. In addition, the column of "Identification" is also optional. If there is this item, the communication between the coprocessor 302 and the main processor 301 can be simplified, that is, the coprocessor 302 notifies the main processor of the determined identification of the application program. If this item does not exist, the coprocessor 302 can also notify the main processor of the application to be activated with the identification information corresponding to the image in other ways, such as sending the name of the application or image feature information to the main processor 301 etc.
此外,表2所表征的数据库中相同的图像特征也可以对应多个默认应用程序。例如,若协处理器302识别出的图像特征为“收款二维码”或“扫码枪”,用户可能需要进行支付,而“支付宝”应用程序和“微信”应用程序均能够实现支付,此时,一种可选的实施方式中,可以为将这两个应用程序作为相同的图像特征对应候选的默认应用程序,并为这两个应用程序设置不同的优先级。若“支付宝”的优先级较高,则主处理器301在电子设备中已安装有“支付宝”应用程序的情况下,优先激活“支付宝”应用程序,在没有安装“支付宝”应用程序时,则激活“微信”应用程序。上述优先级的设置,可以在确定图像特征与默认应用程序的对应关系时被设置,也可以在电子设备获取到图像特征与默认应用程序的对应关系后,由用户进行设置。另一种可选的实施方式中,主处理器301可通过电子设备的显示屏提示用户选择“支付宝”、“微信”中的一种,并记录用户的选择,以用户的选择确定优先级。例如用户偏好即多次选择的是“支付宝”的情况下,优先激活“支付宝”应用程序,在没有安装“支付宝”应用程序时,则激活“微信”应用程序。In addition, the same image features in the database represented in Table 2 can also correspond to multiple default applications. For example, if the image feature identified by the co-processor 302 is "two-dimensional code for payment" or "scanner", the user may need to make payment, and both the "Alipay" application and the "WeChat" application can realize the payment, At this time, in an optional implementation manner, the two applications may be used as default applications corresponding to the same image feature corresponding candidates, and different priorities may be set for the two applications. If the priority of "Alipay" is higher, the main processor 301 will give priority to activate the "Alipay" application if the "Alipay" application is already installed in the electronic device, and if the "Alipay" application is not installed, then Activate the "WeChat" application. The above priority setting can be set when the corresponding relationship between the image feature and the default application is determined, or can be set by the user after the electronic device obtains the corresponding relationship between the image feature and the default application. In another optional embodiment, the main processor 301 may prompt the user to select one of "Alipay" and "WeChat" through the display screen of the electronic device, record the user's selection, and determine the priority based on the user's selection. For example, if the user's preference is to select "Alipay" multiple times, the "Alipay" application will be activated first, and if the "Alipay" application is not installed, the "WeChat" application will be activated.
进一步,在一种可选的实施方式中,所述协处理器302,还用于在所述数据库中不包括用于指示所述第二图像特征的第二信息时,对所述第二图像或者所述第二图像特征进行语义分析,得到语义标签;其中,所述语义标签包括用于表征所述第二图像或者所述第二图像特征的文字信息;所述主处理器301,还用于所述从所述协处理器接收所述语义标签,确定所述语义标签相关联的至少一个应用程序;然后向用户指示所述语义标签相关联的至少一个应用程序,接收由用户触发的第二指令,所述第二指令用于指示激活所述至少一个 应用程序中的第二应用程序,以及确定所述第二应用程序为所述待激活的目标应用程序。Further, in an optional implementation manner, the coprocessor 302 is further configured to, when the database does not include the second information for indicating the characteristics of the second image, Or perform semantic analysis on the second image feature to obtain a semantic label; wherein, the semantic label includes text information used to characterize the second image or the second image feature; the main processor 301 further uses After receiving the semantic tag from the coprocessor, determine at least one application program associated with the semantic tag; and then indicate to the user at least one application program associated with the semantic tag, and receive the first application triggered by the user. Two instructions, where the second instruction is used to instruct to activate a second application in the at least one application, and determine that the second application is the target application to be activated.
具体的,语义标签可以是为第二图像中目标物体的类型,例如图13a示意出所获取的第二图像中包含有钢琴,则经语义分析所得的语义标签可以是乐器。主处理器301可根据电子设备中应用程序的功能介绍、开发说明、软件分类等程序描述信息,搜索出与乐器相关的至少一个应用程序,例如考虑到用户弹奏钢琴曲可能需要录音记录,与乐器相关的应用程序可包括具有录音功能的录音器;用户可能需要查找曲目,与乐器相关的应用程序可包括具备查找播放曲目功能的音乐播放器;用户可能需要在线学习弹奏钢琴,与乐器相关的应用程序可包括可学习弹奏乐器的相关学习软件。并在电子设备上的显示屏中向用户展示出来至少一个应用程序对应的候选列表,如供用户选择需激活的应用程序。示例性的,如图13b中具体示意出向用户展示“乐器”相关的应用软件包括录音器、音乐播放器、学习软件等,用户选择需要激活的应用程序为音乐播放器。可选的,还可记录用户的选择,以用户的选择确定语义标签相关应用程序的优先级。进而可按照确定出的优先级顺序,展示候选列表中的至少一个应用程序。Specifically, the semantic label may be the type of the target object in the second image. For example, FIG. 13a shows that the acquired second image contains a piano, and the semantic label obtained by semantic analysis may be a musical instrument. The main processor 301 can search for at least one application program related to the musical instrument according to the program description information such as the function introduction, development instructions, software classification, etc. of the application program in the electronic device. Instrument-related applications may include a recorder with a recording function; users may need to find tracks, and instrument-related applications may include music players with a function of finding playing tracks; users may need to learn to play the piano online, related to musical instruments 's applications may include related learning software that can learn to play an instrument. A candidate list corresponding to at least one application program is displayed to the user on the display screen of the electronic device, for example, for the user to select the application program to be activated. Exemplarily, as shown in FIG. 13b, the application software related to the “musical instrument” displayed to the user includes a recorder, a music player, a learning software, etc., and the user selects the application to be activated as a music player. Optionally, the user's selection may also be recorded, and the user's selection is used to determine the priority of the semantic tag-related applications. Further, at least one application program in the candidate list may be displayed according to the determined priority order.
进一步,在确定目标应用程序后,主处理器301,还用于判断设备300所在的电子设备内是否安装有该目标应用程序。若确定电子设备中安装有该目标应用程序,则激活该目标应用程序。具体地,若电子设备中已安装有该目标应用程序,主处理器301确定目标应用程序时,该目标应用程序可能并没有被运行,则主处理器301可以在前台运行该目标应用程序;或者,主处理器301在确定目标应用程序时,该目标应用程序也可能处于后台运行的状态,则主处理器301可以将该目标应用程序从后台运行切换为前台运行,即,通过电子设备的显示屏显示该目标应用程序的用户界面,使得用户可以对该目标应用程序进行操作。若电子设备中没有安装该目标应用程序,则主处理器301可以通过电子设备中的显示屏提示用于是否下载该目标应用程序。进一步地,若电子设备中没有安装该目标应用程序,但该电子设备中安装有第三应用程序,该第三应用程序内置有目标应用程序的接口,则主处理器301还可以通过该第三应用程序内置的目标应用程序的接口激活该目标应用程序。在该设备中,协处理器从信号处理设备处获取图像,然后对图像进行识别并确定与之对应的目标应用程序,主处理器激活目标应用程序或提示用户下载目标应用程序。由此可见,该设备能够实现根据来自图像传感器的图像较为精准的判断用户可能想要使用的应用程序,并激活该应用程序,而该过程中无需用户点击应用图标,简化了用户操作。此外,由协处理器实现对图像的特征提取以及确定待激活的应用程序,无需主处理器执行相关操作,处理效率高,有助于节省功耗。Further, after determining the target application, the main processor 301 is further configured to determine whether the target application is installed in the electronic device where the device 300 is located. If it is determined that the target application is installed in the electronic device, the target application is activated. Specifically, if the target application is already installed in the electronic device, when the main processor 301 determines the target application, the target application may not be running, and the main processor 301 can run the target application in the foreground; or , when the main processor 301 determines the target application, the target application may also be in the background running state, then the main processor 301 can switch the target application from the background running to the foreground running, that is, through the display of the electronic device The screen displays the user interface of the target application, so that the user can operate the target application. If the target application program is not installed in the electronic device, the main processor 301 may prompt whether to download the target application program through the display screen of the electronic device. Further, if the target application program is not installed in the electronic device, but a third application program is installed in the electronic device, and the third application program has a built-in interface of the target application program, the main processor 301 can also pass the third application program through the third application program. The target application's interface built into the application activates the target application. In this device, the coprocessor acquires the image from the signal processing device, then recognizes the image and determines the corresponding target application, and the main processor activates the target application or prompts the user to download the target application. It can be seen that the device can accurately determine the application that the user may want to use according to the image from the image sensor, and activate the application, and the user does not need to click the application icon in the process, which simplifies the user operation. In addition, the feature extraction of the image and the determination of the application program to be activated are realized by the coprocessor, without the need for the main processor to perform related operations, the processing efficiency is high, and the power consumption is saved.
举例说明,免安装应用程序,也称为小程序,由于无需安装、即点即用、关闭后释放存储空间的优点,逐渐得到用户的青睐。具体的,应用程序A中内置了应用程序B的接口,用户可以在应用A中点击应用程序B的图标,则电子设备将加载应用程序B的程序包并运行,由于应用程序B的程序包较小可以快速下载完成,且免去安装过程,用户可以快速使用应用程序B,达到即点即用的效果。因此,若主处理器301确定要激活应用程序B,即使电子设备中没有安装应用程序B,但应用程序A中内置有应用程序B的接口,主处理器也可以通过应用程序A激活应用程序B,以避免为电子设备增加存储的负担。可选地,若电子设备中既安装有待激活的目标应用程序,也安装有内置有目标应用程序接口的第三应用程序,还可以为不同的激活方式设置优先级。例如,考虑到小程序对程序包大小的限制,使得小程序在功能的完善性上可能不如正常安装的应用程序,因此,可以为直接激活 目标应用程序设置高优先级,为通过第三应用程序激活目标应用程序设置低优先级。For example, installation-free applications, also known as small programs, are gradually favored by users due to the advantages of no installation, click-to-use, and release of storage space after closing. Specifically, application A has a built-in interface of application B. The user can click the icon of application B in application A, and the electronic device will load the package of application B and run it. Small can be downloaded quickly and without the installation process, users can quickly use application B to achieve the effect of click-to-use. Therefore, if the main processor 301 determines to activate application B, even if application B is not installed in the electronic device, but the interface of application B is built in application A, the main processor can activate application B through application A , to avoid the burden of adding storage to electronic devices. Optionally, if both the target application program to be activated and the third application program with a built-in target application program interface are installed in the electronic device, priorities can also be set for different activation methods. For example, considering the limitation on the package size of the applet, the function of the applet may not be as good as that of a normally installed application. Therefore, a high priority can be set for directly activating the target application, and a third application can be used to activate the target application directly. Activating the target application sets low priority.
在一种可能的实现方式中,上述设备300还可以包括收发机304,用于从服务器接收数据库中的部分或全部内容。如前所述,可以由服务器完成模型训练的过程,然后将训练得到的模型发送给电子设备,电子设备可以通过该设备300中的收发机304接收服务器发送的前述至少一个图像特征和与每个图像特征对应的默认应用程序。具体地,收发机304可以为有线收发机,即,通过有线传输接收数据库中的内容,或者,收发机304也可以为无线收发机,即,通过无线传输接收数据库中的内容,如手机200中的RF电路。In a possible implementation manner, the above-mentioned device 300 may further include a transceiver 304 for receiving part or all of the content in the database from the server. As mentioned above, the model training process can be completed by the server, and then the model obtained by training is sent to the electronic device, and the electronic device can receive the aforementioned at least one image feature sent by the server through the transceiver 304 in the device 300. Default application for image features. Specifically, the transceiver 304 may be a wired transceiver, that is, the content in the database is received through wired transmission, or the transceiver 304 may also be a wireless transceiver, that is, the content in the database is received through wireless transmission, such as in the mobile phone 200. the RF circuit.
在另外一种可能的实现方式中,训练过程也可以由各应用程序的提供方完成,并将训练得到的模型携带在该应用程序的安装包中,若电子设备下载、安装了该应用程序,则协处理器302可以获取到与该应用程序对应的图像特征,因此,若协处理器302从图像中识别到存在于数据库中的图像特征,则电子设备安装有与该图像特征对应的应用程序。In another possible implementation, the training process can also be completed by the provider of each application, and the model obtained by training is carried in the installation package of the application. If the electronic device downloads and installs the application, Then the coprocessor 302 can obtain the image feature corresponding to the application program. Therefore, if the coprocessor 302 recognizes the image feature existing in the database from the image, the electronic device is installed with the application program corresponding to the image feature. .
为了进一步提高激活的应用程序的准确性,数据库中存储的图像特征与应用程序的对应关系还可以包括位置信息。在一个具体实施例中,数据库中存储的图像特征以及每个图像特征对应的应用程序可以如表3所示。In order to further improve the accuracy of the activated application, the correspondence between the image features and the application stored in the database may also include location information. In a specific embodiment, the image features stored in the database and the application program corresponding to each image feature may be as shown in Table 3.
表3table 3
标识logo 图像特征image features 位置信息location information 应用程序application
21twenty one 黄色共享单车yellow bike sharing -- ofo共享单车ofo bike sharing
22twenty two 蓝色共享单车blue bike sharing -- 小蓝单车little blue bike
23twenty three 地铁闸口subway gate 北京Beijing 易通行Easy access
23twenty three 地铁闸口subway gate 上海Shanghai Metro大都会Metro
24twenty four 收款二维码Receipt QR code    支付宝(或微信)Alipay (or WeChat)
2525 扫码枪code scanning gun    支付宝(或微信)Alipay (or WeChat)
2626 公交站牌bus stop sign 上海Shanghai 上海公交查询Shanghai bus query
2626 公交站牌bus stop sign 北京Beijing 北京实时公交Beijing real-time bus
例如,同样利用刷二维码乘坐地铁,在北京目前使用的为“易通行”应用程序,而在上海目前使用的为“Metro大都会”应用程序,因此,若用户在北京的地铁站想要刷二维码进站,而电子设备打开了“Metro大都会”应用程序,则无法为用户提供服务。For example, swiping the QR code is also used to take the subway. The "Easy Pass" app is currently used in Beijing, while the "Metro Metropolis" app is currently used in Shanghai. After swiping the QR code to enter the station, and the electronic device opens the "Metro Metropolis" application, it cannot provide services for the user.
又例如,目前很多公交类应用可以为用户提供公交的运行路线以及公交当前所在位置的信息,以方便用户乘车、估计等车时间。然而,每款公交类的应用程序都存在一些局限性,如,“车来了”应用程序基本可以查询每个城市的公交线路,但还不能查询每个城市的公交车的位置信息,在北京,若想要查询某条公交线路的公交车的位置信息,可以使用“北京实时公交”应用程序,但该应用程序不能查询其他城市的公交信息。因此,增加电子设备位置信息的匹配,有助于提高激活应用程序的准确性。该位置信息可以由电子设备内的定位设备实现,例如全球定位系统(global positioning system,GPS)或北斗系统来实现。For another example, at present, many bus applications can provide users with information on the running route of the bus and the current location of the bus, so as to facilitate the user to take the bus and estimate the waiting time for the bus. However, each bus application has some limitations. For example, the "Carriage Came" application can basically query the bus routes of each city, but cannot query the location information of the buses in each city. In Beijing , if you want to query the location information of buses of a certain bus line, you can use the "Beijing Real-time Bus" application, but this application cannot query the bus information of other cities. Therefore, increasing the matching of electronic device location information helps to improve the accuracy of activating the application. The location information may be implemented by a positioning device in the electronic device, such as a global positioning system (global positioning system, GPS) or a Beidou system.
为了进一步提高用户体验,在主处理器301激活确定出的目标应用程序后,还可以进一步打开用户所需的页面。在一个具体实施例中,在用户自定义图像特征与应用程序之间的关联关系完成注册后,还可由用户自定义应用程序的激活页面。此外,在数据库中存储的图像特征以及每个图像特征对应的应用程序还可以包括激活页面信息,具体的可以如下 表4所示。In order to further improve the user experience, after the main processor 301 activates the determined target application, the page required by the user may be further opened. In a specific embodiment, after the association between the user-defined image feature and the application program is registered, the activation page of the application program can also be customized by the user. In addition, the image features stored in the database and the application program corresponding to each image feature may also include activation page information, as shown in Table 4 below.
表4Table 4
标识logo 图像类别Image category 应用程序application 页面page
21twenty one 黄色共享单车yellow bike sharing ofo共享单车ofo bike sharing 扫码开锁页面Scan the code to unlock the page
22twenty two 蓝色共享单车blue bike sharing 小蓝单车little blue bike 扫码开锁页面Scan the code to unlock the page
23twenty three 地铁闸口subway gate 易通行Easy access 扫一扫页面Scan the page
24twenty four 收款二维码Receipt QR code 支付宝(或微信)Alipay (or WeChat) 扫一扫页面Scan the page
2525 扫码枪code scanning gun 支付宝(或微信)Alipay (or WeChat) 二维码付款页面QR code payment page
2626 公交站牌bus stop sign 车来了the car is coming 路线页面route page
下面以所获取图像的图像特征未被用户自定义有关联的应用程序,但可在数据库中查找到其对应的默认应用程序这一情况为例,进行举例说明。例如,由于在出现“扫码枪”或“支付二维码”的场景通常为用户需要支付的场景,故与“扫码枪”或“支付二维码”对应的应用程序为可用于支付的“支付宝”,即,在协处理器302识别出所获取图像(如前述第二图像)的图像特征为“扫码枪”或“支付二维码”时,主处理器301激活“支付宝”应用程序。若激活“支付宝”应用程序是将其从后台运行切换至前台运行,则当前显示给用户的页面为用户上次使用的页面,而该页面可能并不是用户所需的支付页面;若激活“支付宝”应用程序时是将未运行的应用程序启动,则当前显示给用户的页面为该应用程序的主页面。然而,用户需要使用“支付宝”应用进行支付,即,用户所需的为“支付宝”应用程序中的支付页面,为了方便用户使用,本实施例可以有进一步如下改进。若协处理器302获取到的图像仍为图12a,识别出的图像特征为“扫码枪”,则用户可能需要的为“支付二维码”的页面,则主处理器301可以在激活“支付宝”应用程序后可以进一步为用户打开“二维码付款”页面,此时电子设备显示的页面如图12c所示;若协处理器302获取到的图像如图14a所示,则识别出的图像类别为“支付二维码”,则主处理器301可以在激活“支付宝”应用程序后进一步为用户打开“扫一扫”页面,如图14b所示。该实施例能够进一步简化用户操作、提高用户体验。The following is an example of the case where the image feature of the acquired image has not been customized by the user and the associated application program, but its corresponding default application program can be found in the database as an example. For example, since the scene of "scanning code gun" or "payment with QR code" is usually a scene where users need to pay, the application corresponding to "scanning code gun" or "payment with QR code" can be used for payment. "Alipay", that is, when the co-processor 302 recognizes that the image features of the acquired image (such as the aforementioned second image) are "scan code gun" or "payment QR code", the main processor 301 activates the "Alipay" application program . If activating the "Alipay" application is to switch it from running in the background to running in the foreground, the page currently displayed to the user is the last page used by the user, and this page may not be the payment page required by the user; if activating the "Alipay" application ” application is to start an application that is not running, and the page currently displayed to the user is the main page of the application. However, the user needs to use the "Alipay" application for payment, that is, what the user needs is the payment page in the "Alipay" application. For the convenience of the user, this embodiment may be further improved as follows. If the image obtained by the co-processor 302 is still as shown in FIG. 12a, and the identified image feature is "scanning code gun", then what the user may need is the page of "payment QR code", then the main processor 301 can activate the "QR code payment" page. After the Alipay” application, it can further open the “QR code payment” page for the user, and the page displayed by the electronic device is shown in Figure 12c; if the image obtained by the coprocessor 302 is shown in Figure 14a, the identified If the image category is "payment QR code", the main processor 301 can further open the "scan" page for the user after activating the "Alipay" application, as shown in Fig. 14b. This embodiment can further simplify user operations and improve user experience.
在一些场景中,用户的需求可能为使用某个应用程序进行信息查询,因此,主处理器301在激活相应的应用程序后,还可以进一步根据从图像中提取到的信息进行搜索。例如,协处理器302获取到的图像如图15a所示,识别出的图像特征为“公交站牌”,并从该图像中提取出数字“646”,主处理器301接收协处理器302发送的“公交站牌”对应的目标应用程序的标识的信息和提取出的特征信息,即,“北京实时公交”应用程序的标识以及提取出的数字“646”;主处理器301激活“北京实时公交”应用程序,并在该应用程序中搜索“646”,以实现为用户显示当前646路公交车的信息,如图15b所示。In some scenarios, the user's requirement may be to use a certain application program to perform information query. Therefore, after activating the corresponding application program, the main processor 301 may further perform a search based on the information extracted from the image. For example, the image obtained by the coprocessor 302 is shown in Figure 15a, the identified image feature is "bus stop sign", and the number "646" is extracted from the image, and the main processor 301 receives the transmission from the coprocessor 302. The identification information of the target application and the extracted feature information corresponding to the "bus stop sign", that is, the identification of the "Beijing real-time bus" application and the extracted number "646"; the main processor 301 activates the "Beijing real-time bus" application. bus” application, and search for “646” in the application, so as to display the current 646 bus information for the user, as shown in Figure 15b.
如前所述,手机200中的处理器280可以包括一个或多个处理器,因此,将设备300应用于上述手机200中时,主处理器301和协处理器302对应手机200中的处理器280中的不同处理器;信号处理设备303分别与手机200中的图像传感器以及其他输入设备控制器271耦合,以实现从图像传感器获取数据,并使得协处理器302能够获取到图像。信号处理设备303也可以是处理器280中的处理器之一。可选地,上述数据库可以存储在电子设备的存储器中。此外,该存储器可进一步存储主处理器301和协处理器302运行所需的必要软件,如驱动软件、操作系统软件或应用软件。As mentioned above, the processor 280 in the mobile phone 200 may include one or more processors. Therefore, when the device 300 is applied to the mobile phone 200, the main processor 301 and the coprocessor 302 correspond to the processors in the mobile phone 200 280; the signal processing device 303 is respectively coupled with the image sensor in the mobile phone 200 and the other input device controller 271, so as to obtain data from the image sensor and enable the coprocessor 302 to obtain images. The signal processing device 303 may also be one of the processors in the processor 280 . Optionally, the aforementioned database may be stored in the memory of the electronic device. In addition, the memory can further store necessary software required for the operation of the main processor 301 and the coprocessor 302, such as driver software, operating system software or application software.
在一种可能的设计中,上述设备300可以是一个或多个芯片,例如上述主处理器301、协处理器302以及信号处理设备303被集成在一个芯片中,而该芯片设置在电子设备中。设置有该芯片的电子设备还进一步设置有上述图像传感器,但该图像传感器可以不与上述设备300设置在一个芯片上。In a possible design, the above-mentioned device 300 may be one or more chips, for example, the above-mentioned main processor 301 , co-processor 302 and signal processing device 303 are integrated in one chip, and the chip is arranged in the electronic device . The electronic device provided with the chip is further provided with the above-mentioned image sensor, but the image sensor may not be provided on the same chip with the above-mentioned device 300 .
示例性地,上述主处理器301可以为电子设备的中央处理器(central processing unit,CPU)或应用处理器或微处理器,位于处理器280内。主处理器301正常工作时比协处理器301正常工作时的耗电量大,因此,由协处理器302对获取到的图像进行处理,并在判断需要激活某个应用程序时,再通知主处理器执行激活应用程序的操作。Exemplarily, the above-mentioned main processor 301 may be a central processing unit (central processing unit, CPU) or an application processor or a microprocessor of an electronic device, and is located in the processor 280. When the main processor 301 is working normally, the power consumption is larger than that when the co-processor 301 is working normally. Therefore, the co-processor 302 processes the acquired images, and when it is determined that an application program needs to be activated, notifies the main The processor performs the operation of activating the application.
可选地,主处理器301可以在从协处理器302接收用于指示图像特征的信息,如第一信息/第二信息或者接收语义标签前,处于低功耗状态,主处理器301处于低功耗状态时的功耗低于协处理器302运行处理程序时的功耗。例如,低功耗状态可以为空闲状态、休眠状态或睡眠状态。主处理器301可以通过接收用于指示图像特征的信息或者语义标签被所述协处理器302唤醒,或者主处理器301可以被协处理器302以其他方式,如中断通知的方式唤醒,并进一步接收用于指示图像特征的信息或者语义标签,一系列后续操作,本实施例对此不限定。Optionally, the main processor 301 may be in a low power consumption state before receiving information from the coprocessor 302 for indicating image features, such as first information/second information or receiving a semantic label, and the main processor 301 is in a low power consumption state. The power consumption in the power consumption state is lower than the power consumption when the coprocessor 302 is running a handler. For example, the low power state may be an idle state, a sleep state, or a sleep state. The main processor 301 can be woken up by the coprocessor 302 by receiving information or semantic tags for indicating image features, or the main processor 301 can be woken up by the coprocessor 302 in other ways, such as interrupt notification, and further Receiving information or semantic tags for indicating image features and a series of subsequent operations are not limited in this embodiment.
上述协处理器302可以为神经网络处理器(例如:NPU)、数字信号处理器、图像处理单元或者硬件加速器等,其工作时的功耗可以低于主处理器301。协处理器302可谓与处理器280内或之外,本实施例对此不做限制。由于协处理器302的耗电量较低,使得该协处理器即使被设置为常开的处理器,也不会对电子设备的耗电量产生较大影响。为了进一步提高用户体验,本申请上述实施例可以应用在电子设备息屏或锁屏亮屏的情况下,通常情况下,电子设备处于息屏状态时,主处理器301处于休眠状态,以减少耗电量。而此时,协处理器由于耗电量较低,即使在电子设备锁屏或息屏时,也可以处于工作状态,且不会耗费较多的电量。The above-mentioned coprocessor 302 may be a neural network processor (eg, NPU), a digital signal processor, an image processing unit, or a hardware accelerator, etc., and its power consumption during operation may be lower than that of the main processor 301 . The coprocessor 302 can be said to be inside or outside the processor 280, which is not limited in this embodiment. Since the power consumption of the coprocessor 302 is relatively low, even if the coprocessor is set as a normally-on processor, the power consumption of the electronic device will not be greatly affected. In order to further improve the user experience, the above embodiments of the present application can be applied to the case where the screen of the electronic device is off or the screen is locked and the screen is on. Normally, when the electronic device is in the screen off state, the main processor 301 is in a dormant state to reduce power consumption. power. At this time, due to the low power consumption of the coprocessor, even when the screen of the electronic device is locked or closed, it can still be in a working state without consuming a lot of power.
上述信号处理设备303可以为ISP,可以用于对图像传感器采集的数据进行处理,例如,进行自动曝光控制(automatic exposure control,AEC)、自动增益控制(automatic gain control,AGC)、自动白平衡(automatic white balance,AWB)、色彩校正、镜头阴影(lens shading)校正、伽马(gamma)校正、祛除坏点等功能的处理。或者,上述信号处理设备303还可以为传感器信号的处理器,其功能与ISP类似,对图像传感器采集的数据进行处理。可选地,该ISP可位于所述处理器280内或可选择性位于可选地,该ISP可位于所述处理器280外。可选的,可以在设备300中部署共享内存,共享内存用于存放图像传感器采集的数据。信号处理设备303还可以是智能传感集线器(Sensor hub),用于从共享内存中获取图像传感器所采集的数据,进而传输至协处理器302,以使得协处理器302进行图像识别后,将识别结果发送至主处理器301。The above-mentioned signal processing device 303 can be an ISP, and can be used to process the data collected by the image sensor, for example, to perform automatic exposure control (automatic exposure control, AEC), automatic gain control (automatic gain control, AGC), automatic white balance ( Processing of functions such as automatic white balance, AWB), color correction, lens shading correction, gamma correction, and dead pixel removal. Alternatively, the above-mentioned signal processing device 303 may also be a sensor signal processor, and its function is similar to that of the ISP, and it processes the data collected by the image sensor. Alternatively, the ISP may be located within the processor 280 or alternatively, the ISP may be located outside the processor 280. Optionally, a shared memory may be deployed in the device 300, and the shared memory is used to store the data collected by the image sensor. The signal processing device 303 can also be an intelligent sensor hub (Sensor hub), which is used to obtain the data collected by the image sensor from the shared memory, and then transmit it to the coprocessor 302, so that after the coprocessor 302 performs image recognition, it will The identification result is sent to the main processor 301 .
在一种可能的设计中,图像传感器可以是由用户主动触发进行采集数据。在另一种可能的设计中,上述图像传感器可以一直处于开启状态,实时采集数据;或者,图像传感器也可以根据预设周期采集数据,即每间隔一段时间自动进行数据采集。因此,携带所述图像传感器的摄像头或镜头可以认为是处于常开(Always On)状态,以便实时的识别周围环境以及时激活应用程序,提高用户体验。可选的,携带所述图像传感器的摄像头或镜头可采用低功耗camera。图像传感器采集数据的过程不是每次都需要由用户触发,而是由设备自动实现的。该预设周期可以是一个固定的周期,或者,也可以为图像传感器设置多个 周期,根据不同的环境采用不同的周期。例如,若环境光较强时,则随时可能产生用户需求,可以采用0.1s的预设周期;若环境光较暗,则产生用户需求的可能性较小,此时可以采用1s的预设周期。在一种可能的设计中,信号处理设备303也可以实时地或周期性地对获取到的数据进行处理,并对其进行处理,以使协处理器302进行进一步识别。若图像传感器和信号处理设备303均被配置为按照预设周期采集数据或处理数据,则可以为其配置相同的周期或不同的周期。In a possible design, the image sensor may be actively triggered by the user to collect data. In another possible design, the above-mentioned image sensor may be always on and collect data in real time; alternatively, the image sensor may also collect data according to a preset period, that is, automatically perform data collection at regular intervals. Therefore, the camera or lens carrying the image sensor can be considered to be in an Always On state, so as to recognize the surrounding environment in real time and activate the application program in time to improve the user experience. Optionally, the camera or lens carrying the image sensor may use a low-power camera. The process of collecting data by the image sensor does not need to be triggered by the user every time, but is automatically realized by the device. The preset period may be a fixed period, or multiple periods may be set for the image sensor, and different periods may be used according to different environments. For example, if the ambient light is strong, user needs may be generated at any time, and a preset period of 0.1s can be used; if the ambient light is dark, the possibility of user needs being generated is small, and a preset period of 1s can be used at this time. . In a possible design, the signal processing device 303 can also process the acquired data in real time or periodically, and process it, so that the coprocessor 302 can perform further identification. If both the image sensor and the signal processing device 303 are configured to collect data or process data according to a preset period, they may be configured with the same period or with different periods.
进一步地,本申请实施例中还提供一种计算机存储介质,该存储介质中存储软件程序,该软件程序在被协处理器读取并执行时可实现上述任一实施例中协处理器所执行的功能;或者,该软件程序在被主处理器读取并执行时可实现任一实施例中主处理器所执行的功能。Further, an embodiment of the present application also provides a computer storage medium, where a software program is stored in the storage medium, and when the software program is read and executed by the coprocessor, the software program can implement the execution of the coprocessor in any of the foregoing embodiments. or, the software program, when read and executed by the host processor, can implement the functions executed by the host processor in any of the embodiments.
本申请实施例中还提供一种计算机程序产品,当其在协处理器上运行时,使得协处理器执行上述任一实施例中协处理器所执行的功能;或者,当其在主处理器上运行时,使得主处理器执行上述任一实施例中主处理器所执行的功能。计算机存储介质包括之前实施例提到的存储器220,可以存储图3中对应的数据库的相关软件数据,此处不做赘述。因此,协处理器与运行的软件可以作为一个单独的产品,用来实现之前实施例提到的图像识别以找到对应的默认应用程序的功能,以便将相关默认应用程序的标识被协处理器发送给主处理器。因此,协处理器运行的软件可以包括多个软件模块,包括但不限于用于识别图像的识别模块和查找对应默认应用程序的查找模块,本实施例对此不限定。The embodiments of the present application also provide a computer program product, which, when running on the coprocessor, enables the coprocessor to perform the functions performed by the coprocessor in any of the foregoing embodiments; or, when the computer program product is executed on the main processor When running on the above, the main processor is made to perform the functions performed by the main processor in any of the above embodiments. The computer storage medium includes the memory 220 mentioned in the previous embodiment, and can store the relevant software data of the corresponding database in FIG. 3 , which is not repeated here. Therefore, the coprocessor and the running software can be used as a separate product to realize the function of image recognition mentioned in the previous embodiment to find the corresponding default application, so as to send the identification of the relevant default application to the coprocessor. to the main processor. Therefore, the software run by the coprocessor may include multiple software modules, including but not limited to a recognition module for recognizing an image and a search module for searching for a corresponding default application, which is not limited in this embodiment.
基于相同的构思,本申请实施例提供另一种应用程序的识别设备1600,如图16所示,该设备1600包括:主处理模块1601,用于接收用户触发第一指令,所述第一指令用于指示将第一图像与第一应用程序进行关联;协处理模块1602,用于对所述第一图像进行识别以得到第一图像特征,并向所述主处理模块发送用于指示所述第一图像特征的第一信息;所述主处理模块,还用于确定数据库中不包括所述第一信息时,将所述第一图像特征和所述第一应用程序进行关联,并在所述数据库中保存所述第一信息和所述第一应用程序;其中,所述数据库包括用于指示至少一个图像特征的信息和每个图像特征所关联的应用程序。以上方案支持用户自定义,建立图像特征与应用程序之间的关联关系。在后续图像识别中,如果识别出某一关联有应用程序的图像特征时,识别设备可以自动启动该图像特征所关联的应用程序,不但简化了用户操作流程,也扩展了基于图像识别技术可激活的应用程序的种类。Based on the same concept, this embodiment of the present application provides another application identification device 1600. As shown in FIG. 16, the device 1600 includes: a main processing module 1601, configured to receive a user-triggered first instruction, the first instruction is used to instruct the first image to be associated with the first application; the co-processing module 1602 is used to identify the first image to obtain the first image feature, and send a message to the main processing module to instruct the The first information of the first image feature; the main processing module is further configured to associate the first image feature with the first application when it is determined that the first information is not included in the database, and store the first image feature in the database. The first information and the first application are stored in the database; wherein the database includes information for indicating at least one image feature and an application associated with each image feature. The above solutions support user customization to establish the relationship between image features and application programs. In subsequent image recognition, if an image feature associated with an application program is identified, the recognition device can automatically start the application program associated with the image feature, which not only simplifies the user's operation process, but also expands the activation process based on image recognition technology. type of application.
在一种可选的实施方式中,设备1600还包括信号处理模块1603,用于对来自图像传感器的第一数据做处理以得到所述第一图像。In an optional implementation manner, the device 1600 further includes a signal processing module 1603 for processing the first data from the image sensor to obtain the first image.
在一种可选的实现方式中,所述信号处理模块1603,还用于对来自所述图像传感器的第二数据做处理以得到第二图像;所述协处理模块1602,还用于对所述第二图像进行识别得到第二图像特征,确定所述数据库中包括用于指示所述第二图像特征的第二信息时,将所述第二信息发送至所述主处理模块1601。所述主处理模块1601,还用于将所述数据库中与所述第二图像特征关联的应用程序确定为待激活的目标应用程序。In an optional implementation manner, the signal processing module 1603 is further configured to process the second data from the image sensor to obtain a second image; the co-processing module 1602 is further configured to process the second data from the image sensor. The second image is identified to obtain the second image feature, and when it is determined that the database includes second information for indicating the second image feature, the second information is sent to the main processing module 1601 . The main processing module 1601 is further configured to determine the application program associated with the second image feature in the database as the target application program to be activated.
在一种可选的实现方式中,所述协处理模块1602,还用于在所述数据库中不包括用于指示所述第二图像特征的第二信息时,对所述第二图像或者所述第二图像特征进行语义分析,得到语义标签;其中,所述语义标签包括用于表征所述第二图像或者所述第二图像特征的文字信息;所述主处理模块1601,还用于所述从所述协处理模块1602接收所述语义标签,还用于向用户指示所述语义标签相关联的至少一个应用程序,接收由用户触发的第 二指令,所述第二指令用于指示激活所述至少一个应用程序中的第二应用程序,以及确定所述第二应用程序为所述待激活的目标应用程序。In an optional implementation manner, the co-processing module 1602 is further configured to, when the database does not include the second information for indicating the characteristics of the second image, to perform semantic analysis on the second image feature to obtain a semantic label; wherein, the semantic label includes text information used to characterize the second image or the second image feature; the main processing module 1601 is also used for the The semantic tag is received from the co-processing module 1602, and is further used to indicate to the user at least one application program associated with the semantic tag, and receive a second instruction triggered by the user, the second instruction is used to instruct activation a second application in the at least one application, and determining the second application as the target application to be activated.
在一种可选的实现方式中,在从所述协处理模块1602接收所述目标应用程序的标识后,所述主处理模块1601,还用于:判断部署所述设备的电子设备内是否安装有所述目标应用程序;在所述电子设备内安装有所述目标应用程序时,激活所述目标应用程序;或者,在所述电子设备内未安装所述目标应用程序时但安装有第三应用程序时,通过所述第三应用程序内置的所述目标应用程序接口激活所述目标应用程序;或者,在所述终端内未安装所述目标应用程序时,提示用户下载所述目标应用程序。In an optional implementation manner, after receiving the identifier of the target application from the co-processing module 1602, the main processing module 1601 is further configured to: determine whether the device is installed in the electronic device where the device is deployed The target application program is present; when the target application program is installed in the electronic device, the target application program is activated; or, when the target application program is not installed in the electronic device but a third When the application program is applied, activate the target application program through the target application program interface built in the third application program; or, when the target application program is not installed in the terminal, prompt the user to download the target application program .
在一种可选的实现方式中,所述信号处理模块1603,具体用于周期性或实时对来自所述图像传感器的所述第二数据做处理以得到所述第二图像。In an optional implementation manner, the signal processing module 1603 is specifically configured to process the second data from the image sensor periodically or in real time to obtain the second image.
在一种可选的实现方式中,所述协处理模块1602具体用于使用小样本图像识别算法对所述第一图像或所述第二图像进行识别。In an optional implementation manner, the co-processing module 1602 is specifically configured to recognize the first image or the second image by using a small sample image recognition algorithm.
以上多个模块中的任一个或多个可以是软件、硬件或二者结合实现,以硬件实现的模块的功能可以参照图3中的对应部件的描述。以软件实现的模块可包括计算机程序指令,并被图3中对应部件所执行,本实施例对此不限定。Any one or more of the above multiple modules may be implemented by software, hardware or a combination of the two, and the functions of the modules implemented by hardware may refer to the description of the corresponding components in FIG. 3 . Modules implemented in software may include computer program instructions and be executed by corresponding components in FIG. 3 , which are not limited in this embodiment.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by those skilled in the art, the embodiments of the present application may be provided as a method, a system, or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本申请是参照根据本申请的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the present application. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能,所述装置可以参照图16的描述。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in one or more flows of the flowchart and/or one or more blocks of the block diagram, and the apparatus may be described with reference to FIG. 16 .
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的保护范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the protection scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims (10)

  1. 一种应用程序的识别设备,其特征在于,包括:A device for identifying an application, comprising:
    主处理器,用于接收由用户触发的第一指令,所述第一指令用于指示将第一图像与第一应用程序进行关联;a main processor, configured to receive a first instruction triggered by a user, where the first instruction is used to instruct to associate the first image with the first application;
    协处理器,用于对所述第一图像进行识别以得到第一图像特征,并向所述主处理器发送用于指示所述第一图像特征的第一信息;a coprocessor, configured to identify the first image to obtain a first image feature, and send first information for indicating the first image feature to the main processor;
    所述主处理器,还用于确定数据库中不包括所述第一信息时,将所述第一图像特征和所述第一应用程序进行关联,并在所述数据库中保存所述第一信息和所述第一应用程序;其中,所述数据库包括用于指示至少一个图像特征的信息和每个图像特征所关联的应用程序。The main processor is further configured to associate the first image feature with the first application when it is determined that the database does not include the first information, and save the first information in the database and the first application; wherein the database includes information indicating at least one image feature and an application associated with each image feature.
  2. 如权利要求1所述的设备,其特征在于,还包括信号处理设备,用于对来自图像传感器的第一数据做处理以得到所述第一图像。The device of claim 1, further comprising a signal processing device for processing the first data from the image sensor to obtain the first image.
  3. 如权利要求2所述的设备,其特征在于,The apparatus of claim 2, wherein:
    所述信号处理设备,还用于对来自所述图像传感器的第二数据做处理以得到第二图像;The signal processing device is further configured to process the second data from the image sensor to obtain a second image;
    所述协处理器,还用于对所述第二图像进行识别得到第二图像特征,确定所述数据库中包括用于指示所述第二图像特征的第二信息时,将所述第二信息发送至所述主处理器;The coprocessor is further configured to identify the second image to obtain a second image feature, and when it is determined that the database includes second information for indicating the second image feature, convert the second information to the second image. sent to the host processor;
    所述主处理器,还用于将所述数据库中与所述第二图像特征关联的应用程序确定为待激活的目标应用程序。The main processor is further configured to determine the application program associated with the second image feature in the database as the target application program to be activated.
  4. 如权利要求3所述的设备,其特征在于,The apparatus of claim 3, wherein,
    所述协处理器,还用于在所述数据库中不包括用于指示所述第二图像特征的第二信息时,对所述第二图像或者所述第二图像特征进行语义分析,得到语义标签;其中,所述语义标签包括用于表征所述第二图像或者所述第二图像特征的文字信息;The coprocessor is further configured to perform semantic analysis on the second image or the second image feature when the database does not include the second information for indicating the second image feature, to obtain semantic label; wherein, the semantic label includes text information used to characterize the second image or the second image feature;
    所述主处理器,还用于从所述协处理器接收所述语义标签,向用户指示所述语义标签相关联的至少一个应用程序,接收由用户触发的第二指令,所述第二指令用于指示激活所述至少一个应用程序中的第二应用程序,以及确定所述第二应用程序为所述待激活的目标应用程序。The main processor is further configured to receive the semantic tag from the coprocessor, indicate to the user at least one application program associated with the semantic tag, and receive a second instruction triggered by the user, the second instruction It is used to instruct activation of a second application in the at least one application, and determine that the second application is the target application to be activated.
  5. 如权利要求3或4所述的设备,其特征在于,所述主处理器,还用于:The device according to claim 3 or 4, wherein the main processor is further configured to:
    判断部署所述设备的电子设备内是否安装有所述目标应用程序;Determine whether the target application is installed in the electronic device where the device is deployed;
    在所述电子设备内安装有所述目标应用程序时,激活所述目标应用程序;或者,When the target application is installed in the electronic device, activate the target application; or,
    在所述电子设备内未安装所述目标应用程序时但安装有第三应用程序时,通过所述第三应用程序内置的所述目标应用程序接口激活所述目标应用程序;或者,When the target application program is not installed in the electronic device but a third application program is installed, activate the target application program through the target application program interface built in the third application program; or,
    在所述终端内未安装所述目标应用程序时,提示用户下载所述目标应用程序。When the target application is not installed in the terminal, the user is prompted to download the target application.
  6. 如权利要求3-5任一项所述的设备,其特征在于,所述信号处理设备,具体用于周期性或实时对来自所述图像传感器的所述第二数据做处理以得到所述第二图像。The device according to any one of claims 3-5, wherein the signal processing device is specifically configured to process the second data from the image sensor periodically or in real time to obtain the first Second image.
  7. 如权利要求2-6任一项所述的设备,其特征在于,所述信号处理设备包括图像信号处理器ISP或传感器处理器中至少一个。The device of any one of claims 2-6, wherein the signal processing device comprises at least one of an image signal processor ISP or a sensor processor.
  8. 如权利要求1-7任一项所述的设备,其特征在于,所述协处理器具体用于使用小样本图像识别算法对所述第一图像或所述第二图像进行识别。The device according to any one of claims 1-7, wherein the coprocessor is specifically configured to recognize the first image or the second image by using a small sample image recognition algorithm.
  9. 如权利要求1-8任一项所述的设备,其特征在于,所述协处理器包括神经网络处理 器、数字信号处理器、图像处理单元或硬件加速器中至少一个。The device of any one of claims 1-8, wherein the coprocessor comprises at least one of a neural network processor, a digital signal processor, an image processing unit or a hardware accelerator.
  10. 一种电子设备,其特征在于,包括如权利要求1-9任一项所述的设备和所述图像传感器,所述图像传感器用于周期性或实时采集数据。An electronic device, characterized by comprising the device according to any one of claims 1-9 and the image sensor, wherein the image sensor is used to collect data periodically or in real time.
PCT/CN2020/112290 2020-08-28 2020-08-28 Application program identification device and electronic device WO2022041155A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202080007252.0A CN114667505A (en) 2020-08-28 2020-08-28 Application program identification device and electronic device
PCT/CN2020/112290 WO2022041155A1 (en) 2020-08-28 2020-08-28 Application program identification device and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/112290 WO2022041155A1 (en) 2020-08-28 2020-08-28 Application program identification device and electronic device

Publications (1)

Publication Number Publication Date
WO2022041155A1 true WO2022041155A1 (en) 2022-03-03

Family

ID=80352484

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/112290 WO2022041155A1 (en) 2020-08-28 2020-08-28 Application program identification device and electronic device

Country Status (2)

Country Link
CN (1) CN114667505A (en)
WO (1) WO2022041155A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117893391A (en) * 2024-03-14 2024-04-16 华中科技大学 Multispectral image intelligent processing system and multispectral image intelligent processing method for unmanned aerial vehicle platform

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006011677A (en) * 2004-06-24 2006-01-12 Fuji Photo Film Co Ltd Startup system and startup program
CN102298533A (en) * 2011-09-20 2011-12-28 宇龙计算机通信科技(深圳)有限公司 Method for activating application program and terminal equipment
CN103268151A (en) * 2013-05-29 2013-08-28 深圳市东方拓宇科技有限公司 Data processing device and specific function starting method thereof
CN104834382A (en) * 2015-05-21 2015-08-12 上海斐讯数据通信技术有限公司 Mobile terminal application program response system and method
CN105677025A (en) * 2015-12-31 2016-06-15 宇龙计算机通信科技(深圳)有限公司 Terminal application starting method and device, and terminal
CN107783715A (en) * 2017-11-20 2018-03-09 北京小米移动软件有限公司 Using startup method and device
CN108509231A (en) * 2018-03-27 2018-09-07 平安科技(深圳)有限公司 Application program deployment method, electronic device, equipment and storage medium based on VR
CN109697349A (en) * 2018-12-18 2019-04-30 深圳壹账通智能科技有限公司 Terminal unlock method, device, computer equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9924102B2 (en) * 2013-03-14 2018-03-20 Qualcomm Incorporated Image-based application launcher
CN109828668A (en) * 2019-01-30 2019-05-31 维沃移动通信有限公司 A kind of display control method and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006011677A (en) * 2004-06-24 2006-01-12 Fuji Photo Film Co Ltd Startup system and startup program
CN102298533A (en) * 2011-09-20 2011-12-28 宇龙计算机通信科技(深圳)有限公司 Method for activating application program and terminal equipment
CN103268151A (en) * 2013-05-29 2013-08-28 深圳市东方拓宇科技有限公司 Data processing device and specific function starting method thereof
CN104834382A (en) * 2015-05-21 2015-08-12 上海斐讯数据通信技术有限公司 Mobile terminal application program response system and method
CN105677025A (en) * 2015-12-31 2016-06-15 宇龙计算机通信科技(深圳)有限公司 Terminal application starting method and device, and terminal
CN107783715A (en) * 2017-11-20 2018-03-09 北京小米移动软件有限公司 Using startup method and device
CN108509231A (en) * 2018-03-27 2018-09-07 平安科技(深圳)有限公司 Application program deployment method, electronic device, equipment and storage medium based on VR
CN109697349A (en) * 2018-12-18 2019-04-30 深圳壹账通智能科技有限公司 Terminal unlock method, device, computer equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117893391A (en) * 2024-03-14 2024-04-16 华中科技大学 Multispectral image intelligent processing system and multispectral image intelligent processing method for unmanned aerial vehicle platform

Also Published As

Publication number Publication date
CN114667505A (en) 2022-06-24

Similar Documents

Publication Publication Date Title
US10778830B2 (en) Electronic device and method for performing task using external device by electronic device
CN108494947B (en) Image sharing method and mobile terminal
KR20220073843A (en) Object tracking method and electronic device
US11705120B2 (en) Electronic device for providing graphic data based on voice and operating method thereof
CN112130714B (en) Keyword search method capable of learning and electronic equipment
CN108182271B (en) Photographing method, terminal and computer readable storage medium
WO2022057435A1 (en) Search-based question answering method, and storage medium
CN107831989A (en) A kind of Application Parameters method of adjustment and mobile terminal
CN112269853B (en) Retrieval processing method, device and storage medium
CN108460817B (en) Jigsaw puzzle method and mobile terminal
KR102368847B1 (en) Method for outputting content corresponding to object and electronic device thereof
CN112236767A (en) Electronic device and method for providing information related to an image to an application through an input unit
WO2022134634A1 (en) Video processing method and electronic device
CN115050358A (en) Voice control command generation method and terminal
CN113810542B (en) Control method applied to electronic equipment, electronic equipment and computer storage medium
CN108510267B (en) Account information acquisition method and mobile terminal
US11997228B2 (en) Device for recognizing application in mobile terminal and terminal
CN112835495B (en) Method and device for opening application program and terminal equipment
WO2022041155A1 (en) Application program identification device and electronic device
CN113742460B (en) Method and device for generating virtual roles
KR20140074129A (en) Place recognizing device and method for providing context awareness service
CN111341317B (en) Method, device, electronic equipment and medium for evaluating wake-up audio data
US20140063315A1 (en) Method for providing a title of contents based on context awareness and device thereof
CN113744736B (en) Command word recognition method and device, electronic equipment and storage medium
CN111028846B (en) Method and device for registration of wake-up-free words

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20950825

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20950825

Country of ref document: EP

Kind code of ref document: A1