WO2021197395A1 - 图像处理方法及电子设备 - Google Patents

图像处理方法及电子设备 Download PDF

Info

Publication number
WO2021197395A1
WO2021197395A1 PCT/CN2021/084748 CN2021084748W WO2021197395A1 WO 2021197395 A1 WO2021197395 A1 WO 2021197395A1 CN 2021084748 W CN2021084748 W CN 2021084748W WO 2021197395 A1 WO2021197395 A1 WO 2021197395A1
Authority
WO
WIPO (PCT)
Prior art keywords
graphic
character
target image
electronic device
module
Prior art date
Application number
PCT/CN2021/084748
Other languages
English (en)
French (fr)
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 EP21778990.8A priority Critical patent/EP4131066A4/en
Publication of WO2021197395A1 publication Critical patent/WO2021197395A1/zh
Priority to US17/955,517 priority patent/US20230019260A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/14Image acquisition
    • G06V30/148Segmentation of character regions
    • G06V30/153Segmentation of character regions using recognition of characters or words
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/25Determination of region of interest [ROI] or a volume of interest [VOI]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/14Image acquisition
    • G06V30/1444Selective acquisition, locating or processing of specific regions, e.g. highlighted text, fiducial marks or predetermined fields
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/24Character recognition characterised by the processing or recognition method
    • G06V30/248Character recognition characterised by the processing or recognition method involving plural approaches, e.g. verification by template match; Resolving confusion among similar patterns, e.g. "O" versus "Q"

Definitions

  • the embodiments of the present invention relate to the field of communication technologies, and in particular, to an image processing method and electronic equipment.
  • smart wearable devices such as smart bracelets, smart watches, and smart glasses are becoming more and more powerful.
  • smart wearable devices and mobile phones can establish wireless connections and transmit data.
  • the device can be identified by identity information such as media access control (MAC) address, international mobile equipment identity (IMEI), and integrated circuit card identity (ICCID).
  • identity information such as media access control (MAC) address, international mobile equipment identity (IMEI), and integrated circuit card identity (ICCID).
  • MAC media access control
  • IMEI international mobile equipment identity
  • ICCID integrated circuit card identity
  • the embodiments of the present invention provide an image processing method and an electronic device to solve the problem of how to enrich the ways of identifying the identity of the electronic device.
  • an embodiment of the present invention provides an image processing method.
  • the method is applied to the first device.
  • the method includes: acquiring a target image, which is used to indicate configuration information of a second device; identifying a first graphic in the target image; The first character corresponding to the graphic; the second device is recognized based on the first character.
  • an embodiment of the present invention provides an image processing method. This method is applied to the second device.
  • the method includes: obtaining configuration information of the second device, the configuration information includes K characters, and K is a positive integer; for each of the K characters, according to the main element corresponding to one character and the auxiliary element corresponding to one character, A graphic corresponding to a character is generated; K graphic groups corresponding to the K characters are arranged in different areas to generate a target image, and the target image is used to indicate the configuration information.
  • an embodiment of the present invention provides an electronic device.
  • the electronic device is the first device.
  • the electronic device includes an acquisition module, an identification module, and a determination module.
  • the acquisition module is used to acquire a target image, the target image is used to indicate the configuration information of the second device;
  • the recognition module is used to identify the first figure in the target image acquired by the acquisition module;
  • the determination module is used to The main element of the graphic and the auxiliary element of the first graphic determine the first character corresponding to the first graphic; the recognition module is further configured to recognize the second device based on the first character determined by the determining module.
  • an embodiment of the present invention provides an electronic device.
  • the electronic device is the second device.
  • the electronic device includes an acquisition module and a generation module.
  • the obtaining module is used to obtain the configuration information of the second device.
  • the configuration information includes K characters, where K is a positive integer; the generating module is used for each of the K characters, according to the main element corresponding to one character and one The auxiliary element corresponding to the character generates a graphic corresponding to a character; the generating module is also used for arranging the K graphic groups corresponding to the K characters to different areas to generate a target image, and the target image is used to indicate the Configuration information.
  • an embodiment of the present invention provides an electronic device, including a processor, a memory, and a computer program stored on the memory and running on the processor.
  • the computer program is executed by the processor, the first The steps of the image processing method provided by the aspect.
  • an embodiment of the present invention provides an electronic device, including a processor, a memory, and a computer program stored on the memory and running on the processor.
  • the computer program is executed by the processor to realize the second The steps of the image processing method provided by the aspect.
  • an embodiment of the present invention provides a communication system.
  • the communication system includes the electronic device in the third aspect and the electronic device in the fourth aspect.
  • the communication system includes the electronic device in the above-mentioned fifth aspect and the electronic device in the above-mentioned sixth aspect.
  • an embodiment of the present invention provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the image processing method provided in the first aspect or the second aspect is implemented A step of.
  • the first device can obtain the target image displayed by the second device, and the target image is used to indicate the configuration information of the second device;
  • the main element and the auxiliary element of the first graphic determine the first character corresponding to the first graphic; and the second device is recognized based on the first character.
  • the first device can recognize the graphics in the target image used to indicate the configuration information of the second device, and determine the character corresponding to a graphic according to the main element of a graphic and the auxiliary element of a graphic, so that the first One device can identify the second device according to the first character, thus enriching the ways of identifying the identity of the electronic device.
  • the first device recognizes the second device based on a figure in the target image, that is, the target image is scanned step by step, so if the information obtained by the recognition meets the requirements, the recognition of the target image can be stopped. Other graphics, so this recognition method is more flexible and more energy-efficient.
  • FIG. 1 is a schematic diagram of the architecture of an Android operating system provided by an embodiment of the present invention
  • FIG. 2 is one of the schematic diagrams of an image processing method provided by an embodiment of the present invention.
  • Figure 3 is one of the schematic diagrams of a character and graphics provided by an embodiment of the present invention.
  • Figure 4 is a second schematic diagram of a character and graphics provided by an embodiment of the present invention.
  • Fig. 5 is a second schematic diagram of an image processing method provided by an embodiment of the present invention.
  • FIG. 6 is one of the schematic diagrams of a target image provided by an embodiment of the present invention.
  • FIG. 7 is the second schematic diagram of a target image provided by an embodiment of the present invention.
  • FIG. 8 is the third schematic diagram of an image processing method provided by an embodiment of the present invention.
  • FIG. 9 is one of the schematic diagrams of displaying a target image on an electronic device according to an embodiment of the present invention.
  • FIG. 10 is a second schematic diagram of displaying a target image on an electronic device according to an embodiment of the present invention.
  • FIG. 11 is a fourth schematic diagram of an image processing method provided by an embodiment of the present invention.
  • FIG. 12 is one of structural schematic diagrams of an electronic device provided by an embodiment of the present invention.
  • FIG. 13 is a second structural diagram of an electronic device provided by an embodiment of the present invention.
  • FIG. 14 is a schematic diagram of hardware of an electronic device provided by an embodiment of the present invention.
  • first and second in the specification and claims of the present invention are used to distinguish different objects, rather than to describe a specific order of objects.
  • first graphic group and the second graphic group are used to distinguish different graphic groups, rather than to describe the specific order of the graphic groups.
  • words such as “exemplary” or “for example” are used to represent examples, illustrations, or illustrations. Any embodiment or design solution described as “exemplary” or “for example” in the embodiment of the present invention should not be construed as being more advantageous than other embodiments or design solutions. To be precise, words such as “exemplary” or “for example” are used to present related concepts in a specific manner.
  • plural means two or more than two, for example, a plurality of elements means two or more elements, and so on.
  • Embodiments of the present invention provide an image processing method and electronic device.
  • a first device can obtain a target image displayed by a second device.
  • the target image is used to indicate configuration information of the second device; and the first image in the target image is recognized And according to the main element of the first graphic and the auxiliary element of the first graphic, determine the first character corresponding to the first graphic; and identify the second device based on the first character.
  • the first device can recognize the graphics in the target image used to indicate the configuration information of the second device, and determine the character corresponding to a graphic according to the main element of a graphic and the auxiliary element of a graphic, so that the first One device can identify the second device according to the first character, thus enriching the ways of identifying the identity of the electronic device.
  • the first device recognizes the second device based on a figure in the target image, that is, the target image is scanned step by step, so if the information obtained by the recognition meets the requirements, the recognition of the target image can be stopped. Other graphics, so this recognition method is more flexible and more energy-efficient.
  • the electronic device in the embodiment of the present invention may be an electronic device with an operating system.
  • the operating system may be an Android operating system, an ios operating system, or other possible operating systems, which is not specifically limited in the embodiment of the present invention.
  • FIG. 1 it is a schematic structural diagram of an Android operating system provided by an embodiment of the present invention.
  • the architecture of the Android operating system includes 4 layers, which are: application layer, application framework layer, system runtime library layer, and kernel layer (specifically, it may be the Linux kernel layer).
  • the application layer includes various applications (including system applications and third-party applications) in the Android operating system.
  • the application framework layer is the framework of the application. Developers can develop some applications based on the application framework layer while complying with the development principles of the application framework.
  • the system runtime layer includes a library (also called a system library) and an Android operating system runtime environment.
  • the library mainly provides various resources needed by the Android operating system.
  • the Android operating system operating environment is used to provide a software environment for the Android operating system.
  • the kernel layer is the operating system layer of the Android operating system and belongs to the lowest level of the Android operating system software level.
  • the kernel layer is based on the Linux kernel to provide core system services and hardware-related drivers for the Android operating system.
  • developers can develop a software program that implements the image processing method provided by the embodiment of the present invention based on the system architecture of the Android operating system as shown in FIG.
  • the processing method can be run based on the Android operating system as shown in FIG. 1. That is, the processor or the electronic device can implement the image processing method provided by the embodiment of the present invention by running the software program in the Android operating system.
  • the electronic device in the embodiment of the present invention may be a terminal device.
  • the terminal device may be a mobile terminal device or a non-mobile terminal device.
  • the mobile terminal device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). Assistant, PDA), etc.
  • the non-mobile terminal device may be a personal computer (PC), television (television, TV), teller machine, or self-service machine, etc., which is not specifically limited in the embodiment of the present invention.
  • the execution subject of the image processing method provided by the embodiment of the present invention may be the above-mentioned electronic device, or may be a functional module and/or functional entity in the electronic device that can implement the image processing method.
  • the specifics can be determined according to actual usage requirements.
  • the embodiments of the present invention are not limited.
  • the embodiment of the present invention provides two kinds of electronic devices, which may be referred to as a first device and a second device, respectively.
  • the first device may be used to identify the target image generated by the second device to identify the second device; the second device may be used to generate the target image according to the configuration information of the second device.
  • the first device and the second device may be devices of the same type, or devices of different types.
  • the first device may be a mobile phone
  • the second device may be a smart wearable device, such as a smart bracelet, smart earphone, smart watch, and smart glasses; for another example, the first device may be a tablet computer, and the second device may be a mobile phone .
  • an embodiment of the present invention provides an image processing method.
  • This method can be applied to the second device.
  • the method may include the following S201 to S203.
  • the second device obtains configuration information of the second device, where the configuration information includes K characters.
  • K is a positive integer.
  • the configuration information of the second device may be used to indicate the identity of the second device.
  • the above-mentioned configuration information may be static configuration information, for example, the static configuration information is factory-configured by the second device or pre-configured with a subscriber identity module (SIM) card of the second device; or, configuration information It can be dynamic configuration information, for example, registration, attachment, multi-mode reselection (inter-RAT cell reselection), multi-mode handover (inter-RAT handover), registration update ( During registration update), the network device may allocate configuration information to the second device through a downlink message (for example, a system message).
  • a downlink message for example, a system message.
  • the configuration information of the second device can be acquired in any of the following scenarios:
  • the second device receives the first input of the user, and in response to the first input, obtains the configuration information of the second device.
  • the first input can be used to trigger the second device to obtain the configuration information of the second device.
  • the first device as a mobile phone and the second device as a smart watch as an example.
  • the user can trigger the smart watch through voice input to the smart watch, or input to the preset physical buttons of the smart watch, or input to the preset function options displayed on the smart watch Obtain the configuration information of the smart watch, such as the MAC address of the smart watch.
  • the smart watch can generate a target image indicating the configuration information of the second device according to the following S202 and S203, and display the target image, so that the mobile phone can recognize the target image through the camera of the mobile phone.
  • the second device automatically obtains the configuration information of the second device when the preset condition is met.
  • the foregoing preset condition may be occurrence of registration, attachment, multi-mode reselection, multi-mode handover, or registration update.
  • the second device is a mobile phone as an example.
  • the second device When the second device is turned on, the second device will initiate an attachment to the network device.
  • the network device can allocate configuration information to the second device through a system message, so that the second device can receive the configuration information sent by the network device, and generate a target for indicating the configuration information of the second device according to the following S202 and S203. Image and save the target image in the second device.
  • the configuration information of the second device may include at least one of the following:
  • MAC Media access control
  • IMEI International mobile equipment identity
  • ICCID Integrated circuit card identity
  • MEID Mobile equipment identifier
  • IMSI international mobile subscriber identification number
  • 5G-S-Temporary mobile subscription identifier 5G-S-temporary mobile subscription identifier, 5G-S-TMSI;
  • Fully inactive-radio network temporary identifier (FullI-RNTI).
  • the above configuration information may be stored in the second device, or stored in a network device where the second device resides on the network, or stored in a cloud server, which may be determined according to actual usage requirements, and is not limited in the embodiment of the present invention.
  • the aforementioned K characters may include T character strings, and each character string in the T character strings may include at least one character, that is, all characters of the T character strings may be combined into the K characters.
  • T is a positive integer.
  • the above T character strings may be binary, quaternary, hexadecimal, octal, decimal, hexadecimal, thirty binary, six hexadecimal, or other possible bases.
  • the lengths of any two character strings in the above T character strings may be the same or different, that is, the number of characters included in any two character strings may be the same or different. It can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
  • the first three character strings A8-9C-ED can be used to indicate the company of the second device
  • the second The three character strings 7D-CC-9E can be used to indicate the model type of the second device.
  • the second device For each of the K characters, the second device generates a graphic corresponding to the one character according to the main element corresponding to one character and the auxiliary element corresponding to one character.
  • the second device can generate a character string corresponding to a main element corresponding to a character and an auxiliary element corresponding to a character. For the graphics corresponding to the characters, a graphics group corresponding to each character string is obtained.
  • each of the K characters can correspond to a main element and an auxiliary element.
  • the main element corresponding to a character can be used to define the main body composition of a graphic, and the auxiliary elements corresponding to a character can be distinguished. Different values.
  • the main element of each character in the character string usually does not change; and the auxiliary element of each character in the character string changes cyclically, but the element is single.
  • the auxiliary element can define different values through changes in position and quantity.
  • any one of the K characters can be obtained in the following manner:
  • the second device obtains a graphic body of a graphic according to the main element corresponding to a character.
  • the second device obtains the element change information of a graphic according to the auxiliary element corresponding to a character.
  • the second device generates a graphic corresponding to a character according to the graphic main body of the graphic and the element change information of the graphic.
  • Fig. 3 is a schematic diagram of a character and graphics provided by an embodiment of the present invention.
  • the main element of the graphic corresponding to each character is an arc
  • the auxiliary element of the graphic corresponding to each character is the position of the dot and the number of dots.
  • the main element corresponding to character 0 is an arc, and the auxiliary element corresponding to character 0 is a dot at the first end of the arc;
  • the main element corresponding to character 1 is an arc, and the auxiliary element corresponding to character 1 is a dot near the first end of the arc 1/4 the length of the arc;
  • the main element corresponding to character 2 is an arc, and the auxiliary element corresponding to character 2 is a dot near the first end of the arc 1/2 the length of the arc;
  • the main element corresponding to character 3 is an arc, and the auxiliary element corresponding to character 3 is a dot at the second end of the arc;
  • the main element corresponding to character 4 is an arc, and the auxiliary element corresponding to character 4 is two dots at the second end of the arc;
  • the main element corresponding to character 5 is an arc, and the auxiliary elements corresponding to character 5 are a dot at the first end of the arc and two dots at the second end of the arc;
  • the main element corresponding to character 6 is an arc, and the auxiliary elements corresponding to character 6 are a dot near the first end of the arc 1/4 the length of the arc and two dots at the second end of the arc;
  • the main element corresponding to character 7 is an arc, and the auxiliary elements corresponding to character 7 are a dot near the first end of the arc 1/2 the length of the arc and two dots at the second end of the arc;
  • the main element corresponding to character 8 is an arc, and the auxiliary element corresponding to character 8 is three dots at the second end of the arc;
  • the main element corresponding to character 9 is an arc
  • the auxiliary elements corresponding to character 9 are one dot at the first end of the arc and three dots at the second end of the arc.
  • the main element corresponding to each character and the auxiliary elements corresponding to each character among characters 0 to 9 can be stored in the second device.
  • the second device can obtain the main element corresponding to character 1 as an arc, and determine the graphic body corresponding to character 1; the second device can obtain the corresponding character 1
  • the auxiliary element is a dot close to the first end of the arc 1/4 the length of the arc, and the element change information corresponding to character 1 is determined; then, the second device can generate according to the graphic body and element change information of character 1
  • the figure corresponding to character 1 is shown in Figure 3.
  • FIG. 4 is a schematic diagram of another type of characters and graphics provided by an embodiment of the present invention.
  • the main element of the graphic corresponding to each character is a vertical line
  • the auxiliary elements of the graphic corresponding to each character are the length of the vertical line and the number of vertical lines.
  • the main element corresponding to character 0 is a vertical line
  • the auxiliary element corresponding to character 0 is two vertical lines, the first vertical line is the second length, and the second vertical line is the third length;
  • the main element corresponding to character 1 is a vertical line
  • the auxiliary element corresponding to character 1 is two vertical lines, the first vertical line is the third length, and the second vertical line is the second length;
  • the main element corresponding to character 2 is a vertical line
  • the auxiliary elements corresponding to character 2 are three vertical lines
  • the first vertical line is the third length
  • the second vertical line and the third vertical line are the third length
  • the main element corresponding to character 3 is a vertical line, and the auxiliary elements corresponding to character 3 are three vertical lines, the first vertical line and the second vertical line are the second length, and the third vertical line is the third length;
  • the main element corresponding to character 4 is a vertical line, and the auxiliary elements corresponding to character 4 are three vertical lines, the first vertical line and the third vertical line are the second length, and the second vertical line is the third length;
  • the main element corresponding to character 5 is a vertical line, and the auxiliary element corresponding to character 5 is three vertical lines.
  • the first vertical line is the first length
  • the second vertical line is the second length
  • the third vertical line is the third length. ;
  • the main element corresponding to character 6 is a vertical line
  • the auxiliary element corresponding to character 6 is three vertical lines
  • the first vertical line is the second length
  • the second vertical line is the first length
  • the third vertical line is the third length ;
  • the main element corresponding to character 7 is a vertical line
  • the auxiliary element corresponding to character 7 is three vertical lines
  • the first vertical line is the third length
  • the second vertical line is the first length
  • the third vertical line is the second length ;
  • the main element corresponding to character 8 is a vertical line, and the auxiliary element corresponding to character 8 is three vertical lines.
  • the first vertical line is the third length
  • the second vertical line is the second length
  • the third vertical line is the first length. ;
  • the main element corresponding to the character 9 is a vertical line
  • the auxiliary elements corresponding to the character 9 are three vertical lines
  • the first vertical line is the first length
  • the second vertical line and the third vertical line are the third length.
  • the first length is greater than the second length, and the second length is greater than the third length.
  • the element information of characters 0 to character 9 can be stored in the second device: the main element corresponding to each character, and the auxiliary element corresponding to each character.
  • the second device can obtain the main element corresponding to character 5 as a vertical line according to the element information, thereby determining the graphic body corresponding to character 5;
  • Information, the auxiliary element corresponding to character 5 is obtained as three vertical lines, the first vertical line is the first length, the second vertical line is the second length, and the third vertical line is the third length, so as to determine the character 5 Corresponding element change information; afterwards, the second device can generate a graphic corresponding to character 5 as shown in FIG. 4 according to the graphic body of character 5 and the element change information.
  • the second device may continue to perform the following S203. Specifically, when the K characters include T character strings, after the second device obtains the graphics of each character pair in a character string according to the above method, a graphics group corresponding to a character string can be obtained; then, the second device can Obtain the T graphic groups corresponding to the T character strings according to the above method, and execute the following S203.
  • the second device arranges the K graphics corresponding to the K characters to different areas to generate a target image.
  • the above-mentioned target image may be used to indicate the configuration information of the second device.
  • each The arrangement position of each graph in the graph group may be determined according to a preset arrangement rule. Therefore, after the second device obtains the T graphic groups, it can arrange each graphic group in the T graphic groups in a layer corresponding to each graphic group according to the preset arrangement rule. Finally, the target image is obtained.
  • the second device may directly (immediately) display the target image on the screen of the second device; or, the second device may store the target image in the second device or the cloud server, The target image will not be displayed temporarily.
  • the embodiment of the present invention provides an image processing method.
  • a second device can obtain configuration information of the second device.
  • the configuration information includes K characters;
  • the auxiliary elements corresponding to the characters generate one graphic corresponding to one character; and the K graphics corresponding to the K characters are arranged in different areas to generate the target image.
  • the second device can generate graphics corresponding to each character according to the main element and the auxiliary element corresponding to each of the K characters, thereby generating the target image, thereby enriching the generation methods of the target image.
  • the present invention can generate graphics corresponding to each character step by step, the method of generating the target image is more flexible.
  • the K characters included in the above configuration information may be K initial characters.
  • the image processing method provided by the embodiment of the present invention may further include the following S204.
  • the foregoing S202 may be implemented by the following S202a
  • the foregoing S203 may be implemented by the following S203a.
  • the second device converts the K initial characters from the second format to the first format to obtain K target characters.
  • the first format may be a preset format.
  • the first format may be a first format
  • the second format may be a second format different from the first format
  • the first format is decimal
  • the second format is hexadecimal as an example.
  • the 6 initial character strings include character string A8, character string 9C, character string ED, character string 7D, and character.
  • String CC string 9E.
  • the second device can convert the Mac address from hexadecimal to decimal 168-156-237-125-204-158.
  • the 6 target strings include string 168, string 156, string 237, and string in turn. 125, character string 204, character string 158.
  • each initial character string and each target character string corresponding to each initial character string may be the same or different, which is not limited in the embodiment of the present invention.
  • the second device arranges K graphics corresponding to the K target characters to different areas to generate a target image.
  • the K graphics may be arranged in a region where multiple concentric circles are located, each ring may include at least one graphic, and each ring may include a starting mark (for example, an arrow).
  • the M arcs in each ring can be displayed in whole or in part; or, the partial arcs of the M arcs in each ring are the first display mode, and the M arcs in each ring are displayed in the first display mode.
  • the other part of the arc is the second display mode.
  • the first display mode and the second display mode may be that the colors of the arcs are different, or the line types of the arcs are different, or the line thicknesses of the arcs are different, and so on.
  • the second device converts the 6 initial character strings: A8-9C-ED-7D-CC-9E into 6 target character strings: 168-156-237-125-204-158
  • the electronic device According to the first implementation in S202, the 6 graphic groups are acquired, and the second device can first arrange the character string 168 and the character string 156 to the first inner ring respectively, the arc of character 1, character 8, and character 5.
  • the lines are represented by solid lines, and the arcs of character 6, character 1, and character 6 are represented by solid lines.
  • the second device can arrange the character string 237 and the character string 125 to the second inner ring respectively.
  • the arcs of character 2, character 7 and character 2 are represented by solid lines, and the arcs of character 3, character 1 and character 5 are represented by solid lines.
  • the line is represented by a solid line.
  • the second device can arrange the character string 204 and the character string 158 to the third outer ring respectively.
  • the arcs of character 2, character 4, and character 5 are represented by dashed lines, and the arcs of character 0, character 1, and character 8
  • the line is represented by a solid line.
  • the K graphics may be arranged in order to different positions of a ring, and the ring may include an initial mark (for example, an arrow).
  • the second device converts the 6 initial character strings: A8-9C-ED-7D-CC-9E into 6 target character strings: 168-156-237-125-204-158
  • the electronic The device acquires the 6 graphic groups according to the second implementation manner in S202 above, and the second device can use the position of the start identifier as the start position, and sequentially convert the character string 168, character string 156, and character string in a clockwise direction. 237, the character string 125, the character string 204, and the character string 158 are arranged in different positions of a circle, so that the target image as shown in FIG. 7 can be obtained.
  • the format of the characters when the format of the K initial characters is not the first format, the format of the characters can be normalized by converting the K initial characters into the first format, thereby facilitating the first device Recognize the target image generated by the second device.
  • the image processing method provided in the embodiment of the present invention may further include the following S205.
  • S205 When the second device establishes a connection with the first device, the second device receives the first information sent by the first device, or sends the second information to the first device.
  • the foregoing first information may be attribute information of the first device, file data of the first device, a call request received by the first device, a notification message received by the first device, and the like.
  • the attribute information of the first device may include at least one of the following: a wallpaper style of the first device, a meeting schedule in the first device, a memo in the first device, an alarm clock in the first device, and so on.
  • the foregoing second information may be attribute information of the second device, file data of the second device, a call request received by the second device, a notification message received by the second device, and the like.
  • the attribute information of the second device may include at least one of the following: a wallpaper style of the second device, a meeting schedule in the second device, a memo in the second device, an alarm clock in the second device, and so on.
  • the second device may directly display the target image on the screen of the second device. Then, the second device may collect the target image displayed by the second device to identify the target image, and identify the second device based on the recognized pattern. In the case that the second device is successfully identified based on the graph, the second device establishes a connection with the first device. Then, the second device may send the second information to the first device, or the first device may send the second information to the second device.
  • the second device may store the target image.
  • the user can trigger the second device to acquire the target image through a second input to the second device, and display the target image on the screen of the second device.
  • the second device may collect the target image displayed by the second device to identify the target image, and identify the second device based on the recognized pattern.
  • the second device establishes a connection with the first device.
  • the second device may send the second information to the first device, or the first device may send the second information to the second device.
  • a connection can be established between the two devices, so that the two devices can transfer data.
  • an embodiment of the present invention provides an image processing method.
  • This method can be applied to the first device.
  • the method may include the following S801 to S804.
  • the first device acquires a target image.
  • the above-mentioned target image may be used to indicate the configuration information of the second device.
  • one way is that when the second device displays a target image, the user points the camera of the first device at the target image, and the first device can collect the target image displayed by the second device through the camera , And recognize the target image.
  • the second device may first receive the target image sent by the second device, and then recognize the target image.
  • the first device recognizes the first graphic in the target image.
  • the first device can recognize the target image to obtain a first graphic group, and the first graphic group includes N graphics.
  • N is a positive integer.
  • the aforementioned target image may include at least one image area.
  • Each image area may include at least one graphic.
  • a preset recognition algorithm may be stored in the first device. After the electronic device collects the target image, the electronic device can recognize at least one image area of the target image step by step according to the preset recognition algorithm.
  • the aforementioned "recognizing the first graphic in the target image” may specifically include: recognizing the first image area in at least one image area to obtain the first graphic.
  • the first device may sequentially recognize the image areas in the multiple image areas according to the preset recognition sequence of the multiple image areas.
  • the first image area may be multiple image areas. The first image area to be recognized among the image areas.
  • the sequence in which the first device recognizes the graphics in the target image may be the same as the sequence in which the second device generates the images in the target image.
  • the first device determines a first character corresponding to the first graphic according to the main element of the first graphic and the auxiliary element of the first graphic.
  • the first device may determine a corresponding graphic according to a main element of a graphic and an auxiliary element of a graphic. Corresponding character, get the first string.
  • the first device determines the character corresponding to the first graphic according to the main element of the first graphic and the auxiliary element of the first graphic, which can be specifically implemented by the following (a) to (c):
  • the first device is a mobile phone
  • the second device is a smart watch
  • the smart watch displays a target image as shown in FIG. 9 as an example for illustrative description.
  • the first device can collect the target image displayed by the second device through the camera of the first device. After that, the first device may first determine that the target image includes three rings according to the preset recognition algorithm, and then perform stepwise recognition on the area where the first inner ring of the target image is located to obtain the first group of graphics.
  • the first device can identify the graphic main body of each graphic in the first graphic group, and obtain the main element of the graphic as an arc; and then recognize the position and the number of dots corresponding to each graphic, so as to obtain each Auxiliary elements of graphics; later, the characters corresponding to each graphic can be determined according to the main elements of each graphic and the auxiliary elements of each graphic. Then, after the first device determines the character corresponding to each graphic, the first device can obtain the first character string 168-156.
  • the first device is a mobile phone
  • the second device is a smart watch
  • the smart watch displays a target image as shown in FIG. 10 as an example for illustrative description.
  • the first device can collect the target image displayed by the second device through the camera of the first device.
  • the first device may first determine that a circle is included in the target image according to a preset recognition algorithm, and then perform stepwise recognition of the region corresponding to 0 to 0:40 in the circle to obtain the first image.
  • the first device can obtain the main element of the first graphic and the auxiliary element of the first graphic according to the length of the vertical line and the number of vertical lines corresponding to the first graphic;
  • the auxiliary element of the graphic determines the first character 1 corresponding to the first graphic.
  • the first device recognizes the second device based on the first character.
  • the image processing method provided in the embodiment of the present invention may further include: the first device converts the first character from the first format to the second format to obtain the third character.
  • the foregoing S804 may include: the first device recognizes the second device based on the third character.
  • the first device For example, take the first character string including the first character, and the first device recognizes the second device based on the first character string as an example. Assuming that the first character string 168-156 obtained according to FIG. 9 is decimal, the first device can convert the first character string 168-156 from decimal to hexadecimal to obtain the third character string A8-9C. Then, the first device can identify the second device based on the third character string A8-9C.
  • the first device can convert the first character string 168 from decimal to hexadecimal to obtain the third character string A8. Then, the first device can identify the second device based on the third character string A8.
  • the embodiment of the present invention provides an image processing method.
  • the first device can identify the graphics in the target image used to indicate the configuration information of the second device, and determine the relationship between the main element of one graphic and the auxiliary element of one graphic. Characters corresponding to the graphics, so that the first device can recognize the second device according to the first characters, thus enriching the ways of identifying the identity of the electronic device.
  • the first device recognizes the second device based on a figure in the target image, that is, the target image is scanned step by step, so if the information obtained by the recognition meets the requirements, the recognition of the target image can be stopped.
  • this recognition method is more flexible and more energy-efficient.
  • the first device may continue to perform image recognition on the target image.
  • the image processing method provided by the embodiment of the present invention may further include the following S805 to S807.
  • the aforementioned "identifying the second graphic in the target image” may specifically include: recognizing the second image area and the second graphic in at least one image area.
  • the first device recognizes the target image and obtains the second graphic group.
  • the second graphic group includes M graphics. Among them, M is a positive integer.
  • the first device determines a second character corresponding to the second graphic according to the main element of the second graphic and the auxiliary element of the second graphic.
  • the target image shown in FIG. 10 is still taken as an example for exemplary description.
  • the first device can first determine that the target image includes a ring, and then perform stepwise recognition of the area corresponding to 0:00 to 0:40 in the ring to obtain the corresponding image of the first image.
  • the first device fails to recognize the second device based on the first character, the first device can continue to perform step-by-step recognition on the area corresponding to 0:40 to 1:20 in the circle, so as to obtain the second graphic
  • the main element and the secondary element of the second graphic After that, the first device can determine the first character 6 corresponding to the second graphic according to the main element of the second graphic and the auxiliary element of the first graphic.
  • the first device recognizes the second device based on the first character and the second character.
  • the first device determines the character corresponding to a graphic according to the main element of a graphic and the auxiliary element of a graphic, and obtain The second string. After that, the first device recognizes the second device based on the first character string and the second character string.
  • the first device in the case of failure to identify the second device based on the first character string, can continue to identify the second image area in at least one image area, for example, with 2 points. To the area corresponding to 4 points, the second graphic group is obtained. Then, the first device determines the character corresponding to each graphic in the second graphic group, thereby obtaining the second character string 156. After that, the first device recognizes the second device based on the character string 168-156, or recognizes the second device based on the character string A8-9C after the number conversion.
  • the first device can continue to identify the third image area in at least one image area, for example, the area corresponding to 4 o'clock to 6 o'clock, and obtain The third graphics group. Then, the first device determines the character corresponding to each graphic in the third graphic group, thereby obtaining the character string 237.
  • the first device identifies the second device based on the character string 168-156-237, or identifies the second device based on the character string A8-9C-ED after the hexadecimal conversion. If the first device recognizes the company identification of the second device based on the string 168-156-237 or the string A8-9C-ED, then the first device can display the company information of the second device on the screen, that is, the second device The company was successfully identified. If the user wants to know the specific situation of the second device, the first device can be triggered to continue to recognize the target image; otherwise, the first device can stop the image recognition.
  • the first device can recognize the target icon displayed by the second device step by step. Therefore, when the information obtained by the recognition does not meet the requirements, the next step of recognition can be continued. When the information meets the demand, the image recognition can be stopped, so this recognition method is more flexible and more energy-saving.
  • the first device and the second device may establish a connection and send data to each other.
  • the image processing method provided by the embodiment of the present invention may further include the following S808.
  • the foregoing first information may be attribute information of the first device, file data of the first device, a call request received by the first device, a notification message received by the first device, and the like.
  • the attribute information of the first device may include at least one of the following: the wallpaper style of the first device, the meeting schedule in the first device, the memo in the first device, the alarm clock in the first device, and so on.
  • the foregoing second information may be attribute information of the second device, file data of the second device, a call request received by the second device, a notification message received by the second device, and the like.
  • the attribute information of the second device may include at least one of the following: the wallpaper style of the second device, the meeting schedule in the second device, the memo in the second device, the alarm clock in the second device, and so on.
  • S808 is exemplified based on the successful recognition of the second device based on the first character as an example. It is understandable that if the second device fails to recognize the second device based on the first character, the first device can continue to recognize the target image to determine other characters. After that, the second device can be recognized based on all the recognized characters. Until the recognition of the second device is successful, the recognition of the target image is stopped.
  • a connection can be established between the two devices, so that the two devices can transfer data.
  • an embodiment of the present invention provides an electronic device 1200.
  • the electronic device may be the first device.
  • the electronic device may include an acquisition module 1201, an identification module 1202, and a determination module 1203.
  • the acquiring module 1201 can be used to acquire a target image, which can be used to indicate the configuration information of the second device;
  • the identification module 1202 can be used to identify the first graphic in the target image acquired by the acquiring module 1201;
  • the determining module 1203 Can be used to determine the first character corresponding to the first graphic according to the main element of the first graphic and the auxiliary element of the first graphic;
  • the recognition module 1202 can also be used to determine the first character based on the first graphic determined by the determining module 1203 Character recognition of the second device.
  • the recognition module 1202 can also be used to recognize the second graphic in the target image after recognizing the second device based on the first character, in the case that the second device fails to recognize the second device based on the first character.
  • the determining module 1203 may also be used to determine the second character corresponding to the second graphic according to the main element of the second graphic and the auxiliary element of the second graphic.
  • the recognition module 1202 can also be used to recognize the second device based on the first character and the second character.
  • the recognition module 1202 can also be used to recognize the first character of the first graphic before the determining module 1203 determines the first character corresponding to the first graphic according to the main element of the first graphic and the auxiliary element of the first graphic.
  • the figure body obtains the main element of the first figure; and recognizes the element change information of the first figure to obtain the auxiliary element of the first figure.
  • the target image may include at least one image area.
  • the recognition module 1202 may be specifically used to recognize a first image area in at least one image area to obtain a first graphic.
  • the electronic device provided by the embodiment of the present invention may further include a processing module 1204.
  • the processing module 1204 may be used to convert the first character from the first format to the second format after the determining module 1203 determines the first character and before the recognition module 1202 recognizes the second device based on the first character to obtain the third character.
  • the recognition module 1202 may be specifically used to recognize the second device based on the third character obtained by the processing module 1204.
  • the electronic device provided by the embodiment of the present invention may further include a transceiver module 1205.
  • the transceiver module 1205 may be used to send the first information to the second device or receive the second information sent by the second device when the recognition module 1202 successfully recognizes the second device based on the first character.
  • the electronic device provided in the embodiment of the present invention can implement each process implemented by the electronic device in the foregoing method embodiment. To avoid repetition, details are not described herein again.
  • An embodiment of the present invention provides an electronic device, the electronic device is a first device, the first device can obtain a target image displayed by the second device, the target image is used to indicate the configuration information of the second device; and the target image is identified And determining the first character corresponding to the first graphic according to the main element of the first graphic and the auxiliary element of the first graphic; and recognizing the second device based on the first character.
  • the first device can recognize the graphics in the target image used to indicate the configuration information of the second device, and determine the character corresponding to a graphic according to the main element of a graphic and the auxiliary element of a graphic, so that the first One device can identify the second device according to the first character, thus enriching the ways of identifying the identity of the electronic device.
  • the first device recognizes the second device based on a figure in the target image, that is, the target image is scanned step by step, so if the information obtained by the recognition meets the requirements, the recognition of the target image can be stopped. Other graphics, so this recognition method is more flexible and more energy-efficient.
  • an embodiment of the present invention provides an electronic device 1300.
  • the electronic device may be a second device.
  • the electronic device includes an acquiring module 1301 and a generating module 1302.
  • the obtaining module 1301 can be used to obtain the configuration information of the second device.
  • the configuration information includes K characters, where K is a positive integer; the generating module 1302 can be used for each character in the K characters, according to the corresponding character.
  • the main element and the auxiliary element corresponding to a character generate a graphic corresponding to a character; the generating module 1302 can also be used to arrange the K graphic groups corresponding to the K characters to different areas to generate the target image.
  • the target image can be used to indicate the configuration information.
  • the generating module 1302 can be specifically used to obtain the graphic body of a graphic according to the main element corresponding to a character; and obtain the element change information of a graphic according to the auxiliary element corresponding to a character; and The graphic body and the element change information of the one graphic generate a graphic corresponding to the one character.
  • the electronic device provided by the embodiment of the present invention may further include a transceiver module 1303.
  • the transceiver module 1303 may be used to receive the first information sent by the first device or send the second information to the first device when the second device establishes a connection with the first device.
  • the electronic device provided in the embodiment of the present invention can implement each process implemented by the electronic device in the foregoing method embodiment. To avoid repetition, details are not described herein again.
  • An embodiment of the present invention provides an electronic device, which is a second device, and the second device can obtain configuration information of the second device.
  • the configuration information includes K characters; for each of the K characters, according to The main element corresponding to one character and the auxiliary element corresponding to one character generate one graphic corresponding to one character; the K graphics corresponding to the K characters are arranged in different areas to generate the target image.
  • the second device can generate graphics corresponding to each character according to the main element and the auxiliary element corresponding to each of the K characters, thereby generating the target image, thereby enriching the generation methods of the target image.
  • the present invention can generate graphics corresponding to each character step by step, the method of generating the target image is more flexible.
  • FIG. 14 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention.
  • the electronic device may be a terminal device, such as a mobile phone.
  • the electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, and a memory 109 ,
  • the processor 110, and the power supply 111 and other components are examples of the structure of the electronic device shown in FIG. 14 does not constitute a limitation on the electronic device.
  • the electronic device may include more or less components than those shown in the figure, or a combination of certain components, or different components. Layout.
  • electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers. It should be noted that the electronic device 100 provided in the embodiment of the present invention may be used to control multiple UEs, and the multiple UEs reside on at least one network.
  • the processor 110 may be used to obtain a target image, the target image may be used to indicate the configuration information of the second device; and used to identify the first graphic in the target image;
  • the auxiliary element of the first graphic determines the first character corresponding to the first graphic; and is used for recognizing the second device based on the first character.
  • An embodiment of the present invention provides an electronic device, the electronic device is a first device, the first device can obtain a target image displayed by the second device, the target image is used to indicate the configuration information of the second device; and the target image is identified And determining the first character corresponding to the first graphic according to the main element of the first graphic and the auxiliary element of the first graphic; and recognizing the second device based on the first character.
  • the first device can recognize the graphics in the target image used to indicate the configuration information of the second device, and determine the character corresponding to a graphic according to the main element of a graphic and the auxiliary element of a graphic, so that the first One device can identify the second device according to the first character, thus enriching the ways of identifying the identity of the electronic device.
  • the first device recognizes the second device based on a figure in the target image, that is, the target image is scanned step by step, so if the information obtained by the recognition meets the requirements, the recognition of the target image can be stopped. Other graphics, so this recognition method is more flexible and more energy-efficient.
  • the processor 110 may be used to obtain configuration information of the second device.
  • the configuration information includes K characters, where K is a positive integer; and for each of the K characters, according to a main element corresponding to a character and a character
  • the corresponding auxiliary element generates a graphic corresponding to a character; and is used for arranging the K graphic groups corresponding to the K characters to different areas to generate a target image, which can be used to indicate the configuration information.
  • An embodiment of the present invention provides an electronic device, which is a second device, and the second device can obtain configuration information of the second device.
  • the configuration information includes K characters; for each of the K characters, according to The main element corresponding to one character and the auxiliary element corresponding to one character generate one graphic corresponding to one character; the K graphics corresponding to the K characters are arranged in different areas to generate the target image.
  • the second device can generate graphics corresponding to each character according to the main element and the auxiliary element corresponding to each of the K characters, thereby generating the target image, thereby enriching the generation methods of the target image.
  • the present invention can generate graphics corresponding to each character step by step, the method of generating the target image is more flexible.
  • the radio frequency unit 101 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 110; in addition, Uplink data is sent to the base station.
  • the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 101 can also communicate with the network and other devices through a wireless communication system.
  • the electronic device provides users with wireless broadband Internet access through the network module 102, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 103 can convert the audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output it as sound. Moreover, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic device 100 (e.g., call signal reception sound, message reception sound, etc.).
  • the audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 104 is used to receive audio or video signals.
  • the input unit 104 may include a graphics processing unit (GPU) 1041, a microphone 1042, and a camera module 1043.
  • the graphics processing unit 1041 is used for the static images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode.
  • the image data of the picture or video is processed.
  • the processed image frame can be displayed on the display unit 106.
  • the image frame processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the network module 102.
  • the microphone 1042 can receive sound, and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 101 for output in the case of a telephone call mode.
  • the camera module 1043 can collect images, and can process the collected images into digital signals, and the processed images can be sent to the mobile communication base station via the radio frequency unit 101 and output in a format.
  • the electronic device 100 further includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 1061 and the display panel 1061 when the electronic device 100 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 105 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
  • the display unit 106 is used to display information input by the user or information provided to the user.
  • the display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 107 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the electronic device.
  • the user input unit 107 includes a touch panel 1071 and other input devices 1072.
  • the touch panel 1071 also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 1071 or near the touch panel 1071. operate).
  • the touch panel 1071 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, 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, converts it into contact coordinates, and then sends it To the processor 110, the command sent by the processor 110 is received and executed.
  • the touch panel 1071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 107 may also include other input devices 1072.
  • other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 1071 can be overlaid on the display panel 1061.
  • the touch panel 1071 detects a touch operation on or near it, it transmits it to the processor 110 to determine the type of the touch event, and then the processor 110 determines the type of touch event according to the touch.
  • the type of event provides corresponding visual output on the display panel 1061.
  • the touch panel 1071 and the display panel 1061 are used as two independent components to realize the input and output functions of the electronic device, but in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated
  • the implementation of the input and output functions of the electronic device is not specifically limited here.
  • the interface unit 108 is an interface for connecting an external device with the electronic device 100.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 108 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 100 or can be used to connect to the electronic device 100 and the external device. Transfer data between devices.
  • the memory 109 can be used to store software programs and various data.
  • the memory 109 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc.
  • the memory 109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 110 is the control center of the electronic device, which uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes software programs and/or modules stored in the memory 109, and calls data stored in the memory 109 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole.
  • the processor 110 may include one or more processing units; optionally, the processor 110 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, the first user interface, and application programs, etc.
  • the modem processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110.
  • the electronic device 100 may also include a power source 111 (such as a battery) for supplying power to various components.
  • a power source 111 such as a battery
  • the power source 111 may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
  • the electronic device 100 includes some functional modules not shown, which will not be repeated here.
  • an embodiment of the present invention also provides an electronic device, including a processor 110 as shown in FIG. 14, a memory 109, a computer program stored in the memory 109 and capable of running on the processor 110, and the computer program is
  • the processor 110 implements the various processes of the foregoing method embodiments when executing, and can achieve the same technical effect. To avoid repetition, details are not described herein again.
  • the embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium.
  • a computer program is executed by a processor, each process of the foregoing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, I won’t repeat them here.
  • a computer-readable storage medium such as read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc.
  • the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to make an electronic device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present invention.
  • a storage medium such as ROM/RAM, magnetic disk,
  • the optical disc includes several instructions to make an electronic device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present invention.

Abstract

一种图像处理方法及电子设备,该方法包括:获取目标图像,该目标图像用于指示第二设备的配置信息;识别该目标图像中的第一图形;根据第一图形的主元素和第一图形的辅元素,确定与第一图形对应的第一字符;基于该第一字符识别第二设备。

Description

图像处理方法及电子设备
相关申请的交叉引用
本申请主张在2020年04月03日在中国提交的中国专利申请号No.202010260899.6的优先权,其全部内容通过引用包含于此。
技术领域
本发明实施例涉及通信技术领域,尤其涉及一种图像处理方法及电子设备。
背景技术
随着科技的快速发展,智能手环、智能手表和智能眼镜等智能穿戴设备的功能越来越强大,例如智能穿戴设备与手机之间可以建立无线连接并传送数据。
通常,可以通过媒体访问控制(medium access control,MAC)地址、国际移动设备识别码(international mobile equipment identity,IMEI)和集成电路卡识别码(integrate circuit card identity,ICCID)等身份信息对设备进行标识。当用户想要使智能穿戴设备与手机建立无线连接时,用户可以触发智能穿戴设备根据智能穿戴设备的身份信息生成并显示二维码。之后,用户可以使用手机扫描该二维码,从而手机可以读取智能穿戴设备的身份信息,并与智能穿戴设备建立连接,进而智能穿戴设备与手机之间可以传送数据。
但是,通过扫描二维码识别电子设备身份的方式较为单一,用户可能会对二维码感到枯燥乏味,另外,该方式会对二维码中的所有信息识别,而所有信息中的部分信息可能并不是用户需要的信息。因此,如何丰富识别电子设备身份的方式成为亟待解决的问题。
发明内容
本发明实施例提供一种图像处理方法及电子设备,以解决如何丰富识别电子设备身份的方式的问题。
为了解决上述技术问题,本发明实施例是这样实现的:
第一方面,本发明实施例提供了一种图像处理方法。该方法应用于第一设备。该方法包括:获取目标图像,该目标图像用于指示第二设备的配置信息;识别该目标图像中的第一图形;根据第一图形的主元素和第一图形的辅元素,确定与第一图形对应的第一字符;基于该第一字符识别第二设备。
第二方面,本发明实施例提供了一种图像处理方法。该方法应用于第二设备。该方法包括:获取第二设备的配置信息,该配置信息包括K个字符,K为正整数;对于K个字符中的每个字符,根据一个字符对应的主元素和一个字符对应的辅元素,生成与一个字符对应的一个图形;将K个字符对应的K个图形组排布至不同的区域,生成目标图像,该目标图像用于指示该配置信息。
第三方面,本发明实施例提供了一种电子设备。该电子设备为第一设备。该电子设备包括获取模块、识别模块和确定模块。获取模块,用于获取目标图像,该目标图像用于指示第二设备的配置信息;识别模块,用于识别获取模块获取的该目标图像中的第一图形;确定模块,用于根据该第一图形的主元素和该第一图形的辅元素,确定与该第一图形对应的第一字符;识别模块,还用于基于确定模块确定的该第一字符识别第二设备。
第四方面,本发明实施例提供了一种电子设备。该电子设备为第二设备。该电子设备包 括获取模块和生成模块。获取模块,用于获取第二设备的配置信息,该配置信息包括K个字符,K为正整数;生成模块,用于对于K个字符中的每个字符,根据一个字符对应的主元素和一个字符对应的辅元素,生成与一个字符对应的一个图形;生成模块,还用于将该K个字符对应的K个图形组排布至不同的区域,生成目标图像,该目标图像用于指示该配置信息。
第五方面,本发明实施例提供了一种电子设备,包括处理器、存储器及存储在该存储器上并可在该处理器上运行的计算机程序,该计算机程序被该处理器执行时实现第一方面提供的图像处理方法的步骤。
第六方面,本发明实施例提供了一种电子设备,包括处理器、存储器及存储在该存储器上并可在该处理器上运行的计算机程序,该计算机程序被该处理器执行时实现第二方面提供的图像处理方法的步骤。
第七方面,本发明实施例提供了一种通信系统,该通信系统包括上述第三方面中的电子设备,以及上述第四方面中的电子设备。或者,该通信系统包括上述第五方面中的电子设备,以及上述第六方面中的电子设备。
第八方面,本发明实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现第一方面或第二方面提供的图像处理方法的步骤。
在本发明实施例中,第一设备可以获取第二设备显示的目标图像,该目标图像用于指示第二设备的配置信息;并识别该目标图像中的第一图形;且根据第一图形的主元素和第一图形的辅元素,确定与第一图形对应的第一字符;以及基于该第一字符识别第二设备。通过该方案,第一设备可以识别用于指示第二设备的配置信息的目标图像中的图形,并根据一个图形的主元素和一个图形的辅元素,确定与该一个图形对应的字符,从而第一设备可以根据第一字符对第二设备进行识别,因此丰富了识别电子设备身份的方式。另外,由于第一设备是基于目标图像中的一个图形对第二设备进行识别的,即对目标图像是分步扫描的,因此在识别得到的信息满足需求的情况下,可以停止识别目标图像中的其他图形,从而这种识别方式更为灵活,并且更为节能。
附图说明
图1为本发明实施例提供的一种安卓操作系统的架构示意图;
图2为本发明实施例提供的一种图像处理方法的示意图之一;
图3为本发明实施例提供的一种字符与图形的示意图之一;
图4为本发明实施例提供的一种字符与图形的示意图之二;
图5为本发明实施例提供的一种图像处理方法的示意图之二;
图6为本发明实施例提供的一种目标图像的示意图之一;
图7为本发明实施例提供的一种目标图像的示意图之二;
图8为本发明实施例提供的一种图像处理方法的示意图之三;
图9为本发明实施例提供的一种电子设备显示目标图像的示意图之一;
图10为本发明实施例提供的一种电子设备显示目标图像的示意图之二;
图11为本发明实施例提供的一种图像处理方法的示意图之四;
图12为本发明实施例提供的电子设备的结构示意图之一;
图13为本发明实施例提供的电子设备的结构示意图之二;
图14为本发明实施例提供的电子设备的硬件示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本文中术语“和/或”,是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。本文中符号“/”表示关联对象是或者的关系,例如A/B表示A或者B。
本发明的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一图形组和第二图形组等是用于区别不同的图形组,而不是用于描述图形组的特定顺序。
在本发明实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本发明实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
在本发明实施例的描述中,除非另有说明,“多个”的含义是指两个或者两个以上,例如,多个元件是指两个或者两个以上的元件等。
本发明实施例提供一种图像处理方法及电子设备,第一设备可以获取第二设备显示的目标图像,该目标图像用于指示第二设备的配置信息;并识别该目标图像中的第一图形;且根据第一图形的主元素和第一图形的辅元素,确定与第一图形对应的第一字符;以及基于该第一字符识别第二设备。通过该方案,第一设备可以识别用于指示第二设备的配置信息的目标图像中的图形,并根据一个图形的主元素和一个图形的辅元素,确定与该一个图形对应的字符,从而第一设备可以根据第一字符对第二设备进行识别,因此丰富了识别电子设备身份的方式。另外,由于第一设备是基于目标图像中的一个图形对第二设备进行识别的,即对目标图像是分步扫描的,因此在识别得到的信息满足需求的情况下,可以停止识别目标图像中的其他图形,从而这种识别方式更为灵活,并且更为节能。
本发明实施例中的电子设备可以为具有操作系统的电子设备。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本发明实施例不作具体限定。
以安卓操作系统为例,介绍一下本发明实施例提供的图像处理方法所应用的软件环境。
如图1所示,为本发明实施例提供的一种安卓操作系统的架构示意图。在图1中,安卓操作系统的架构包括4层,分别为:应用程序层、应用程序框架层、系统运行库层和内核层(具体可以为Linux内核层)。
其中,应用程序层包括安卓操作系统中的各个应用程序(包括系统应用程序和第三方应用程序)。
应用程序框架层是应用程序的框架,开发人员可以在遵守应用程序的框架的开发原则的情况下,基于应用程序框架层开发一些应用程序。
系统运行库层包括库(也称为系统库)和安卓操作系统运行环境。库主要为安卓操作系统提供其所需的各类资源。安卓操作系统运行环境用于为安卓操作系统提供软件环境。
内核层是安卓操作系统的操作系统层,属于安卓操作系统软件层次的最底层。内核层基于Linux内核为安卓操作系统提供核心系统服务和与硬件相关的驱动程序。
以安卓操作系统为例,本发明实施例中,开发人员可以基于上述如图1所示的安卓操作系统的系统架构,开发实现本发明实施例提供的图像处理方法的软件程序,从而使得该图像处理方法可以基于如图1所示的安卓操作系统运行。即处理器或者电子设备可以通过在安卓操作系统中运行该软件程序实现本发明实施例提供的图像处理方法。
本发明实施例中的电子设备可以为终端设备。该终端设备可以为移动终端设备,也可以为非移动终端设备。示例性的,移动终端设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动终端设备可以为个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本发明实施例不作具体限定。
本发明实施例提供的图像处理方法的执行主体可以为上述的电子设备,也可以为该电子设备中能够实现该图像处理方法的功能模块和/或功能实体,具体的可以根据实际使用需求确定,本发明实施例不作限定。
本发明实施例提供了两种电子设备,可以分别称为第一设备和第二设备。其中,第一设备可以用于对第二设备生成的目标图像进行识别,以识别第二设备;第二设备可以用于根据第二设备的配置信息生成目标图像。其中,该第一设备和第二设备可以为同种类型的设备,或为不同类型的设备。例如,第一设备可以为手机,第二设备可以为智能穿戴设备,例如智能手环、智能耳机、智能手表和智能眼镜等;再例如,第一设备可以为平板电脑,第二设备可以为手机。
实施例一
如图2所示,本发明实施例提供一种图像处理方法。该方法可以应用于第二设备。该方法可以包括下述的S201至S203。
S201、第二设备获取第二设备的配置信息,该配置信息包括K个字符。
其中,K为正整数。
可选的,第二设备的配置信息可以用于指示第二设备的身份。
可选的,上述配置信息可以为静态配置信息,例如,静态配置信息为第二设备出厂配置的或为第二设备的客户识别模块(subscriber identity module,SIM)卡预配置的;或者,配置信息可以为动态配置信息,例如,在每个第二设备发生注册(register)、附着(attach)、多模重选(inter-RAT cell reselection)、多模切换(inter-RAT handover)、注册更新(registration update)时,网络设备可以通过下行消息(例如系统消息)为第二设备分配配置信息。
本发明实施例中,可以在下述任意一种场景下获取第二设备的配置信息:
场景1、第二设备接收用户的第一输入,并响应于第一输入,获取第二设备的配置信息。其中,第一输入可以用于触发第二设备获取第二设备的配置信息。
示例性的,以第一设备为手机,第二设备为智能手表为例。当用户想要通过手机对智能手表识别时,用户可以通过对智能手表的语音输入,或对智能手表的预设物理按键的输入,或对智能手表显示的预设功能选项的输入,触发智能手表获取智能手表的配置信息,例如智能手表的MAC地址。然后,智能手表可以按照下述的S202和S203生成与用于指示第二设备的配置信息的目标图像,并显示目标图像,从而手机可以通过手机的摄像头对该目标图像进行识别。
场景2、第二设备在满足预设条件时,自动获取第二设备的配置信息。
可选的,上述预设条件可以为发生注册、附着、多模重选、多模切换或注册更新等。
示例性的,以第二设备为手机为例。当第二设备开机时,第二设备会向网络设备发起附着。然后,网络设备可以通过系统消息为第二设备分配配置信息,从而第二设备可以接收网络设备发送的配置信息,并按照下述的S202和S203生成与用于指示第二设备的配置信息的目标图像,并将目标图像保存在第二设备中。
可选的,第二设备的配置信息可以包括以下至少一项:
媒体访问控制(media access control,MAC)地址;
国际移动设备识别码(international mobile equipment identity,IMEI);
集成电路卡识别码(integrate circuit card identity,ICCID);
移动设备识别码(mobile equipment identifier,MEID);
国际移动用户识别码(international mobile subscriber identification number,IMSI);
5G-S-临时移动签约标识(5G S-temporary mobile subscription identifier,5G-S-TMSI);
全非激活态无线网络临时标识(full inactive-radio network temporary identifier,FullI-RNTI)。
可选的,上述配置信息可以存储在第二设备中,或者存储在第二设备驻留网络的网络设备中,或者存储在云端服务器中,可以根据实际使用需求确定,本发明实施例不作限定。
可选的,上述K个字符可以包括T个字符串,T个字符串中的每个字符串可以包括至少一个字符,即T个字符串的所有字符可以组合为该K个字符。T为正整数。
可选的,上述T个字符串可以是二进制、四进制、六进制、八进制、十进制、十六进制、三十二进制、六十四进制或其他可能进制等。
可选的,上述T个字符串中任意两个字符串的长度可以相同或不同,即任意两个字符串包括的字符数量可以相同或不同。可以根据实际使用需求确定,本发明实施例不作限定。
示例性的,假设第二设备的MAC地址为十六进制的A8-9C-ED-7D-CC-9E,前3个字符串A8-9C-ED可以用于指示第二设备的公司,后3个字符串7D-CC-9E可以用于指示第二设备的型号类型。
S202、对于该K个字符中的每个字符,第二设备根据一个字符对应的主元素和一个字符对应的辅元素,生成与该一个字符对应的一个图形。
当K个字符包括T个字符串时,对于T个字符串中的每个字符串中的每个字符,第二设备可以根据一个字符对应的主元素和一个字符对应的辅元素,生成与一个字符对应的图形,得到与每个字符串对应的一个图形组。
本发明实施例中,K个字符中的每个字符可以对应一个主元素和一个辅元素,其中,一个字符对应的主元素可以用于定义一个图形的主体构成,一个字符对应的辅元素可以区分不同值。通常,在字符串中各个字符的主元素通常不会发生变化;而在字符串中各个字符的辅元素会循环变化,但元素单一,例如辅元素可以通过位置变化、数量值变化定义不同数值。
可选的,对于K个字符中的任意一个字符可以按照下述方式获取:
(1)第二设备根据一个字符对应的主元素,得到一个图形的图形主体。
(2)第二设备根据一个字符对应的辅元素,得到一个图形的元素变化信息。
(3)第二设备根据该一个图形的图形主体和该一个图形的元素变化信息,生成与一个字符对应的图形。
第一种实现方式
假设字符对应的主元素是弧线,字符对应的辅元素是圆点。圆点的位置不同、圆点的数量不同可以用于表示不同数值。示例性的,图3为本发明实施例提供的一种字符与图形的示 意图。对于字符0-字符9,各个字符对应图形的主元素为弧线,各个字符对应图形的辅元素为圆点的位置和圆点的数量。
字符0对应的主元素为弧线,字符0对应的辅元素为位于弧线的第一端的一个圆点;
字符1对应的主元素为弧线,字符1对应的辅元素为靠近弧线的第一端1/4弧线长度的一个圆点;
字符2对应的主元素为弧线,字符2对应的辅元素为靠近弧线的第一端1/2弧线长度的一个圆点;
字符3对应的主元素为弧线,字符3对应的辅元素为位于弧线的第二端的一个圆点;
字符4对应的主元素为弧线,字符4对应的辅元素为位于弧线的第二端的两个圆点;
字符5对应的主元素为弧线,字符5对应的辅元素为位于弧线的第一端的一个圆点和位于弧线的第二端的两个圆点;
字符6对应的主元素为弧线,字符6对应的辅元素为靠近弧线的第一端1/4弧线长度的一个圆点和位于弧线的第二端的两个圆点;
字符7对应的主元素为弧线,字符7对应的辅元素为靠近弧线的第一端1/2弧线长度的一个圆点和位于弧线的第二端的两个圆点;
字符8对应的主元素为弧线,字符8对应的辅元素为位于弧线的第二端的三个圆点;
字符9对应的主元素为弧线,字符9对应的辅元素为位于弧线的第一端的一个圆点和位于弧线的第二端的三个圆点。
在第二设备中可以存储字符0-字符9中与每个字符对应的主元素、与每个字符对应的辅元素。例如,假设K个字符中的一个字符为字符1,第二设备可以获取与字符1对应的主元素为弧线,并确定与字符1对应的图形主体;第二设备可以获取与字符1对应的辅元素为靠近弧线的第一端1/4弧线长度的一个圆点,并确定与字符1对应的元素变化信息;之后,第二设备可以根据字符1的图形主体和元素变化信息,生成如图3所示的与字符1对应的图形。
第二种实现方式
假设字符对应的主元素是竖线,字符对应的辅元素是竖线的长短和竖线的数量,通过改变竖线的长度和竖线的数量可以用于表示不同数值。示例性的,图4为本发明实施例提供的另一种字符与图形的示意图。对于字符0-字符9,各个字符对应图形的主元素为竖线,各个字符对应图形的辅元素为竖线的长度和竖线的数量。
字符0对应的主元素为竖线,字符0对应的辅元素为两根竖线、第一根竖线为第二长度、第二根竖线为第三长度;
字符1对应的主元素为竖线,字符1对应的辅元素为两根竖线、第一根竖线为第三长度、第二根竖线为第二长度;
字符2对应的主元素为竖线,字符2对应的辅元素为三根竖线、第一根竖线为第三长度、第二根竖线和第三根竖线为第三长度;
字符3对应的主元素为竖线,字符3对应的辅元素为三根竖线、第一根竖线和第二根竖线为第二长度、第三根竖线为第三长度;
字符4对应的主元素为竖线,字符4对应的辅元素为三根竖线、第一根竖线和第三根竖线为第二长度、第二根竖线为第三长度;
字符5对应的主元素为竖线,字符5对应的辅元素为三根竖线、第一根竖线为第一长度、第二根竖线为第二长度、第三根竖线为第三长度;
字符6对应的主元素为竖线,字符6对应的辅元素为三根竖线、第一根竖线为第二长度、 第二根竖线为第一长度、第三根竖线为第三长度;
字符7对应的主元素为竖线,字符7对应的辅元素为三根竖线、第一根竖线为第三长度、第二根竖线为第一长度、第三根竖线为第二长度;
字符8对应的主元素为竖线,字符8对应的辅元素为三根竖线、第一根竖线为第三长度、第二根竖线为第二长度、第三根竖线为第一长度;
字符9对应的主元素为竖线,字符9对应的辅元素为三根竖线、第一根竖线为第一长度、第二根竖线和第三根竖线为第三长度。
其中,第一长度大于第二长度,且第二长度大于第三长度。
在第二设备中可以存储字符0-字符9的元素信息:与每个字符对应的主元素、与每个字符对应的辅元素。例如,假设K个字符中的一个字符为字符5,第二设备可以根据元素信息,获取与字符5对应的主元素为竖线,从而确定与字符5对应的图形主体;第二设备可以根据元素信息,获取与字符5对应的辅元素为三根竖线、第一根竖线为第一长度、第二根竖线为第二长度、第三根竖线为第三长度,从而确定与字符5对应的元素变化信息;之后,第二设备可以根据字符5的图形主体和元素变化信息,生成如图4所示的与字符5对应的图形。
在第二设备按照上述方法获取K个字符中的各个字符分别对应的图形之后,第二设备可以继续执行下述的S203。具体的,当K个字符包括T个字符串时,在第二设备按照上述方法获取一个字符串中各个字符对一个的图形之后,可以得到一个字符串对应的图形组;之后,第二设备可以按照上述方法获取T个字符串对应的T个图形组,并执行下述的S203。
S203、第二设备将该K个字符对应的K个图形排布至不同的区域,生成目标图像。
其中,上述目标图像可以用于指示第二设备的配置信息。
可选的,当K个字符包括T个字符串时,T个字符串对应T个图形组,且T个图形组分别对应一个排布区域,且每个图形组对应的排布区域、每个图形组中每个图形的排布位置可以为根据预设排布规则确定的。因此,在第二设备获取T个图形组之后,可以按照预设排布规则,将T个图形组中的每个图形组分别排布一个图层中与每个图形组对应的排布区域,最终得到目标图像。
可选的,在第二设备生成目标图像之后,第二设备可以直接(立即)在第二设备的屏幕中显示目标图像;或者,第二设备可以在第二设备或云端服务器中存储目标图像,而暂不显示目标图像。
本发明实施例提供一种图像处理方法,第二设备可以获取第二设备的配置信息,该配置信息包括K个字符;对于K个字符中的每个字符,根据一个字符对应的主元素和一个字符对应的辅元素,生成与一个字符对应的一个图形;以及将K个字符对应的K个图形排布至不同的区域,生成目标图像。通过该方案,由于第二设备可以根据K个字符中每个字符对应的主元素和辅元素,分别生成与每个字符对应的图形,从而生成目标图像,因此可以丰富目标图像的生成方式。另外,由于本发明可以分步生成与每个字符对应的图形,可以生成目标图像的方式更为灵活。
可选的,上述配置信息包括的K个字符可以为K个初始字符。结合图2,如图5所示,在上述S201之后,本发明实施例提供的图像处理方法还可以包括下述的S204。相应的,上述S202可以通过下述的S202a实现,上述S203可以通过下述的S203a实现。
S204、第二设备将K个初始字符从第二格式转换为第一格式,得到K个目标字符。
本发明实施例中,第一格式化可以为预设格式。
可选的,第一格式可以为第一制式,第二格式可以为与第一制式不同的第二制式。
示例性的,以第一格式为十进制,第二格式为十六进制为例。假设第二设备获取的Mac地址是十六进制的A8-9C-ED-7D-CC-9E,6个初始字符串依次包括字符串A8、字符串9C、字符串ED、字符串7D、字符串CC、字符串9E。然后,第二设备可以将Mac地址从十六进制转换为十进制168-156-237-125-204-158,6个目标字符串依次包括字符串168、字符串156、字符串237、字符串125、字符串204、字符串158。
可选的,每个初始字符串、每个初始字符串对应的每个目标字符串,其包括的字符的数量可以相同,也可以不同,本发明实施例不作限定。
S202a、对于K个目标字符的每个目标字符,根据一个目标字符对应的主元素和一个目标字符对应的辅元素,生成与一个目标字符对应的图形。
对于上述S202a的具体描述,可以参照上述S202的相关描述,此处不再赘述。
S203a、第二设备将K个目标字符对应的K个图形排布至不同的区域,生成目标图像。
可选的,K个图形可以排布至多个同心圆所在的区域中,每个圆环可以包括至少一个图形,且每个圆环可以分别包括一个起始标识(例如箭头)。每个圆环中的M个弧线可以全部显示或部分显示;或者,每个圆环中的M个弧线的部分弧线为第一显示方式,每个圆环中的M个弧线的其他部分弧线为第二显示方式。其中,第一显示方式和第二显示方式可以为弧线的颜色不同,或为弧线的线型不同,或为弧线的线条粗细不同等。
示例性的,在第二设备将6个初始字符串:A8-9C-ED-7D-CC-9E转换成为6个目标字符串:168-156-237-125-204-158之后,若电子设备按照上述S202中的第一种实现方式获取6个图形组,则第二设备可以先将字符串168和字符串156分别排布至第一个内环,字符1、字符8和字符5的弧线用实线表示,字符6、字符1和字符6的弧线用实线表示。然后,第二设备可以将字符串237和字符串125分别排布至第二个内环,字符2、字符7和字符2的弧线用实线表示,字符3、字符1和字符5的弧线用实线表示。再然后,第二设备可以将字符串204和字符串158分别排布至第三个外环,字符2、字符4和字符5的弧线用虚线表示,字符0、字符1和字符8的弧线用实线表示。在将这些字符串分别排布至3个圆环的不同位置之后,可以得到如图6所示的目标图像。
可选的,K个图形可以按照顺序排布至一个圆环的不同位置,该一个圆环可以包括一个起始标识(例如箭头)。
示例性的,在第二设备将6个初始字符串:A8-9C-ED-7D-CC-9E转换称为6个目标字符串:168-156-237-125-204-158之后,若电子设备按照上述S202中的第二种实现方式获取6个图形组,则第二设备可以以起始标识所在的位置为起始位置,按照顺时针方向依次将字符串168、字符串156、字符串237、字符串125、字符串204、字符串158排布至一个圆环的不同位置,从而可以得到如图7所示的目标图像。
本发明实施例提供的图像处理方法,在K个初始字符的格式不是第一格式的情况下,通过将K个初始字符转换为第一格式,可以归一化字符的格式,进而便于第一设备对第二设备生成的目标图像进行识别。
可选的,在上述S203或S203a之后,本发明实施例提供的图像处理方法还可以包括下述的S205。
S205、在第二设备与第一设备建立连接的情况下,第二设备接收第一设备发送的第一信息,或者,向第一设备发送第二信息。
可选的,上述第一信息可以为第一设备的属性信息、第一设备的文件数据、第一设备接收的通话请求、第一设备接收的通知消息等。
进一步的,第一设备的属性信息可以包括以下至少一项:第一设备的壁纸风格、第一设备中的会议日程、第一设备中的备忘录、第一设备中的闹钟等。
可选的,上述第二信息可以为第二设备的属性信息、第二设备的文件数据、第二设备接收的通话请求、第二设备接收的通知消息等。
进一步的,第二设备的属性信息可以包括以下至少一项:第二设备的壁纸风格、第二设备中的会议日程、第二设备中的备忘录、第二设备中的闹钟等。
一种可选的场景为,在第二设备生成目标图像之后,第二设备可以直接在第二设备的屏幕中显示目标图像。然后,第二设备可以采集第二设备显示的目标图像,以识别该目标图像,并根据识别到的图形,对第二设备进行识别。在基于图形对第二设备进行识别成功的情况下,第二设备与第一设备建立连接。再然后,第二设备可以向第一设备发送第二信息,或者,第一设备可以向第二设备发送第二信息。
另一种可选的场景为,在第二设备生成目标图像之后,第二设备可以存储目标图像。当用户想要使第二设备与第一设备建立连接时,用户可以通过对第二设备的第二输入,触发第二设备获取目标图像,并在第二设备的屏幕中显示目标图像。然后,第二设备可以采集第二设备显示的目标图像,以识别该目标图像,并根据识别到的图形,对第二设备进行识别。在基于图形对第二设备进行识别成功的情况下,第二设备与第一设备建立连接。再然后,第二设备可以向第一设备发送第二信息,或者,第一设备可以向第二设备发送第二信息。
本发明实施例提供的图像处理方法,在第一设备基于目标图像对第二设备成功的情况下,两个设备之间可以建立连接,从而使得两个设备可以传递数据。
实施例二
如图8所示,本发明实施例提供一种图像处理方法。该方法可以应用于第一设备。该方法可以包括下述的S801至S804。
S801、第一设备获取目标图像。
其中,上述目标图像可以用于指示第二设备的配置信息。
对于目标图像的具体描述,可以参照上述实施例中的具体描述,此处不再赘述。
本发明实施例中,一种方式为,在第二设备显示目标图像的情况下,用户将第一设备的摄像头对准该目标图像,第一设备可以通过该摄像头采集第二设备显示的目标图像,并对目标图像进行识别。另一种方式为,第二设备可以先接收第二设备发送的目标图像,并再对目标图像进行识别。
S802、第一设备识别该目标图像中的第一图形。
具体的,当目标图像包括多个图形组时,第一设备可以识别该目标图像,得到第一图形组,该第一图形组包括N个图形。其中,N为正整数。
可选的,上述目标图像可以包括至少一个图像区域。每个图像区域可以包括至少一个图形。第一设备中可以存储有预设识别算法。在电子设备采集到目标图像之后,电子设备可以按照该预设识别算法,对目标图像的至少一个图像区域进行分步识别。
上述“识别目标图像中的第一图形”具体可以包括:识别至少一个图像区域中的第一图像区域,得到第一图形。具体的,当目标图像包括多个图像区域时,第一设备可以按照多个图像区域的预设识别顺序,依次对多个图像区域中的图像区域进行识别,例如,第一图像区域可以为多个图像区域中的第一个待识别的图像区域。
需要说明的是,本发明实施例中,第一设备识别目标图像中的图形的顺序,与第二设备生成目标图像中的图像的顺序可以相同。
S803、第一设备根据该第一图形的主元素和该第一图形的辅元素,确定与该第一图形对应的第一字符。
具体的,当目标图像包括多个图形组时,对于第一图形组中的N个图形中的每个图形,第一设备可以根据一个图形的主元素和一个图形的辅元素,确定与一个图形对应的字符,得到第一字符串。
可选的,第一设备根据第一图形的主元素和第一图形的辅元素,确定与第一图形对应的字符具体可以通过下述(a)至(c)实现:
(a)识别第一图形的图形主体,得到第一图形的主元素。
(b)识别第一图形的元素变化信息,得到第一图形的辅元素。
(c)根据第一图形的主元素和第一图形的辅元素,确定与第一图形对应的字符。
示例性的,假设第一设备为手机,第二设备为智能手表,且智能手表显示如图9所示的目标图像为例进行示例性说明。在用户将第一设备的摄像头对准该目标图像时,第一设备可以通过第一设备的摄像头采集第二设备显示的目标图像。之后,第一设备可以按照预设识别算法,先确定出目标图像中包括三个圆环,再对目标图像的第一个内环所在区域进行分步识别,得到第一图形组。然后,第一设备可以识别第一图形组中的各个图形的图形主体,得到图形的主元素为弧线;再识别出每个图形对应的圆点的位置和圆点的数量,从而得到每个图形的辅元素;之后,可以根据每个图形的主元素和每个图形的辅元素,确定与每个图形对应的字符。再然后,在第一设备确定出与每个图形对应的字符后,第一设备可以得到第一字符串168-156。
示例性的,假设第一设备为手机,第二设备为智能手表,且智能手表显示如图10所示的目标图像为例进行示例性说明。在用户将第一设备的摄像头对准该目标图像时,第一设备可以通过第一设备的摄像头采集第二设备显示的目标图像。之后,第一设备可以按照预设识别算法,先确定出目标图像中包括一个圆环,再对该一个圆环中与0点至0点40分对应区域进行分步识别,得到第一图形。然后,第一设备可以第一图形对应的竖线的长度和竖线的数量,从而得到第一图形的主元素和第一图形的辅元素;之后,可以根据第一图形的主元素和第一图形的辅元素,确定与第一图形对应的第一字符1。
S804、第一设备基于该第一字符识别第二设备。
可选的,在上述S803之后,在上述S804之前,本发明实施例提供的图像处理方法还可以包括:第一设备将第一字符从第一格式转换为第二格式,得到第三字符。相应的,上述S804可以包括:第一设备基于第三字符识别第二设备。
例如,以第一字符串包括第一字符,且第一设备基于第一字符串识别第二设备为例。假设根据图9获取的第一字符串168-156为十进制,则第一设备可以将第一字符串168-156从十进制转换为十六进制,得到第三字符串A8-9C。然后,第一设备可以基于第三字符串A8-9C识别第二设备。
再例如,以第一字符串包括第一字符,且第一设备基于第一字符串识别第二设备为例。假设根据图10获取的第一字符串168为十进制,则第一设备可以将第一字符串168从十进制转换为十六进制,得到第三字符串A8。然后,第一设备可以基于第三字符串A8识别第二设备。
本发明实施例提供一种图像处理方法,第一设备可以识别用于指示第二设备的配置信息的目标图像中的图形,并根据一个图形的主元素和一个图形的辅元素,确定与该一个图形对应的字符,从而第一设备可以根据第一字符对第二设备进行识别,因此丰富了识别电子设备 身份的方式。另外,由于第一设备是基于目标图像中的一个图形对第二设备进行识别的,即对目标图像是分步扫描的,因此在识别得到的信息满足需求的情况下,可以停止识别目标图像中的其他图形,从而这种识别方式更为灵活,并且更为节能。
可选的,在第一设备基于第一字符识别第二设备失败的情况下,第一设备可以继续对目标图像进行图像识别。示例性的,结合图8,如图11所示,在上述S804之后,本发明实施例提供的图像处理方法还可以包括下述的S805至S807。
S805、在基于第一字符识别第二设备失败的情况下,第一设备识别目标图像中的第二图形。
可选的,上述“识别目标图像中的第二图形”具体可以包括:识别至少一个图像区域中的第二图像区域,第二图形。
具体的,针对基于图形组对第二设备识别这种情况,在基于第一字符串识别第二设备失败的情况下,第一设备识别目标图像,得到第二图形组,该第二图形组包括M个图形。其中,M为正整数。
S806、第一设备根据该第二图形的主元素和该第二图形的辅元素,确定与该第二图形对应的第二字符。
对于上述S806的具体实现方式可以参照上述S803的相关描述,此处不再赘述。
示例性的,仍以上述图10所示的目标图像为例进行示例性说明。在第一设备可以按照预设识别算法,先确定出目标图像中包括一个圆环,再对该一个圆环中与0点至0点40分对应区域进行分步识别,得到第一图形对应的第一字符1。在第一设备基于第一字符识别第二设备失败的情况下,第一设备可以继续对该一个圆环中与0点40分至1点20分对应区域进行分步识别,从而得到第二图形的主元素和第二图形的辅元素。之后,第一设备可以根据第二图形的主元素和第一图形的辅元素,确定与第二图形对应的第一字符6。
S807、第一设备基于第一字符和第二字符识别第二设备。
对于S805至S807的具体实现方式可以参照S802至S804的相关描述,此处不再赘述。
具体的,当第二图形组包括M个图形时,对于该M个图形中的每个图形,第一设备根据一个图形的主元素和一个图形的辅元素,确定与一个图形对应的字符,得到第二字符串。之后,第一设备基于第一字符串和第二字符串识别第二设备。
例如,仍以上述图10为例进行示例性说明,在基于第一字符串识别第二设备失败的情况下,第一设备可以继续识别至少一个图像区域中的第二图像区域,例如与2点至4点对应区域,得到第二图形组。然后,第一设备确定与第二图形组中的每个图形对应的字符,从而得到第二字符串156。之后,第一设备基于字符串168-156识别第二设备,或基于进制转化后的字符串A8-9C识别第二设备。
假设第二设备的Mac地址是十六进制的A8-9C-ED-7D-CC-9E,字符串A8-9C-ED为公司识别,字符串7D-CC-9E为设备识别。在基于第一字符串168和第二字符串156识别第二设备失败的情况下,第一设备可以继续识别至少一个图像区域中的第三图像区域,例如与4点至6点对应区域,得到第三图形组。然后,第一设备确定与第三图形组中的每个图形对应的字符,从而得到字符串237。之后,第一设备基于字符串168-156-237识别第二设备,或基于进制转化后的字符串A8-9C-ED识别第二设备。如果第一设备基于字符串168-156-237或字符串A8-9C-ED识别出第二设备的公司识别,那么第一设备可以在屏幕中显示第二设备的公司信息,即对第二设备的公司识别成功。如果用户想要了解第二设备的具体情况,可以触发第一设备继续对目标图像进行识别;否则,第一设备可以停止图像识别。
本发明实施例提供的图像处理方法,第一设备可以对第二设备显示的目标图标进行分步识别,因此在识别得到的信息不满足需求的情况下,可以继续下一步识别,而在识别到的信息满足需求的情况下,可以停止图像识别,从而这种识别方式更为灵活,并且更为节能。
可选的,在基于第一字符识别第二设备成功的情况下,第一设备和第二设备可以建立连接,并相互发送数据。示例性的,如图11所示,在上述S804之后,本发明实施例提供的图像处理方法还可以包括下述的S808。
S808、在基于第一字符识别第二设备成功的情况下,第一设备向第二设备发送第一信息,或接收第二设备发送的第二信息。
对于上述S808的具体实现方式可以参照上述S205的相关描述,此处不再赘述。
可选的,上述第一信息可以为第一设备的属性信息、第一设备的文件数据、第一设备接收的通话请求、第一设备接收的通知消息等。其中,第一设备的属性信息可以包括以下至少一项:第一设备的壁纸风格、第一设备中的会议日程、第一设备中的备忘录、第一设备中的闹钟等。
可选的,上述第二信息可以为第二设备的属性信息、第二设备的文件数据、第二设备接收的通话请求、第二设备接收的通知消息等。其中,第二设备的属性信息可以包括以下至少一项:第二设备的壁纸风格、第二设备中的会议日程、第二设备中的备忘录、第二设备中的闹钟等。
需要说明的是,上述S808是以基于第一字符识别第二设备成功为例进行示例性说明的。可以理解的是,在基于第一字符识别第二设备失败的情况下,第一设备可以继续对目标图像进行识别以确定其他字符,之后,可以基于识别到的所有字符对第二设备进行识别,直至对第二设备识别成功,则停止对目标图像进行识别。
本发明实施例提供的图像处理方法,在第一设备基于目标图像对第二设备成功的情况下,两个设备之间可以建立连接,从而使得两个设备可以传递数据。
需要说明的是,本发明实施例中,上述各个附图所示的图像处理方法均是以结合本发明实施例中的一个附图为例示例性的说明的。具体实现时,上述各个附图所示的图像处理方法还可以结合上述实施例中示意的其它可以结合的任意附图实现,此处不再赘述。
如图12所示,本发明实施例提供一种电子设备1200。该电子设备可以为第一设备。该电子设备可以包括获取模块1201、识别模块1202和确定模块1203。获取模块1201,可以用于获取目标图像,该目标图像可以用于指示第二设备的配置信息;识别模块1202,可以用于识别获取模块1201获取的该目标图像中的第一图形;确定模块1203,可以用于根据该第一图形的主元素和该第一图形的辅元素,确定与该第一图形对应的第一字符;识别模块1202,还可以用于基于确定模块1203确定的该第一字符识别第二设备。
可选的,识别模块1202,还可以用于在基于第一字符识别第二设备之后,在基于第一字符识别第二设备失败的情况下,识别目标图像中的第二图形。确定模块1203,还可以用于根据第二图形的主元素和第二图形的辅元素,确定与该第二图形对应的第二字符。识别模块1202,还可以用于基于第一字符和第二字符识别第二设备。
可选的,识别模块1202,还可以用于在确定模块1203根据第一图形的主元素和第一图形的辅元素,确定与该第一图形对应的第一字符之前,识别该第一图形的图形主体,得到该第一图形的主元素;并识别第一图形的元素变化信息,得到该第一图形的辅元素。
可选的,目标图像可以包括至少一个图像区域。识别模块1202,具体可以用于识别至少一个图像区域中的第一图像区域,得到第一图形。
可选的,如图12所示,本发明实施例提供的电子设备还可以包括处理模块1204。处理模块1204,可以用于在确定模块1203确定第一字符之后,在识别模块1202基于第一字符识别第二设备之前,将第一字符从第一格式转换为第二格式,得到第三字符。识别模块1202,具体可以用于基于处理模块1204得到的该第三字符识别第二设备。
可选的,如图12所示,本发明实施例提供的电子设备还可以包括收发模块1205。收发模块1205,可以用于在识别模块1202基于第一字符识别第二设备成功的情况下,向第二设备发送第一信息,或接收第二设备发送的第二信息。
本发明实施例提供的电子设备能够实现上述方法实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。
本发明实施例提供的一种电子设备,该电子设备为第一设备,第一设备可以获取第二设备显示的目标图像,该目标图像用于指示第二设备的配置信息;并识别该目标图像中的第一图形;且根据第一图形的主元素和第一图形的辅元素,确定与第一图形对应的第一字符;以及基于该第一字符识别第二设备。通过该方案,第一设备可以识别用于指示第二设备的配置信息的目标图像中的图形,并根据一个图形的主元素和一个图形的辅元素,确定与该一个图形对应的字符,从而第一设备可以根据第一字符对第二设备进行识别,因此丰富了识别电子设备身份的方式。另外,由于第一设备是基于目标图像中的一个图形对第二设备进行识别的,即对目标图像是分步扫描的,因此在识别得到的信息满足需求的情况下,可以停止识别目标图像中的其他图形,从而这种识别方式更为灵活,并且更为节能。
如图13所示,本发明实施例提供一种电子设备1300。该电子设备可以为第二设备。该电子设备包括获取模块1301和生成模块1302。获取模块1301,可以用于获取第二设备的配置信息,该配置信息包括K个字符,K为正整数;生成模块1302,可以用于对于K个字符中的每个字符,根据一个字符对应的主元素和一个字符对应的辅元素,生成与一个字符对应的一个图形;生成模块1302,还可以用于将该K个字符对应的K个图形组排布至不同的区域,生成目标图像,该目标图像可以用于指示该配置信息。
可选的,生成模块1302,具体可以用于根据一个字符对应的主元素,得到一个图形的图形主体;并根据一个字符对应的辅元素,得到一个图形的元素变化信息;以及根据该一个图形的图形主体和该一个图形的元素变化信息,生成与该一个字符对应的一个图形。
可选的,如图13所示,本发明实施例提供的电子设备还可以包括收发模块1303。收发模块1303,可以用于在第二设备与第一设备建立连接的情况下,接收第一设备发送的第一信息,或者,向第一设备发送第二信息。
本发明实施例提供的电子设备能够实现上述方法实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。
本发明实施例提供的一种电子设备,该电子设备为第二设备,第二设备可以获取第二设备的配置信息,该配置信息包括K个字符;对于K个字符中的每个字符,根据一个字符对应的主元素和一个字符对应的辅元素,生成与一个字符对应的一个图形;将K个字符对应的K个图形排布至不同的区域,生成目标图像。通过该方案,由于第二设备可以根据K个字符中每个字符对应的主元素和辅元素,分别生成与每个字符对应的图形,从而生成目标图像,因此可以丰富目标图像的生成方式。另外,由于本发明可以分步生成与每个字符对应的图形,可以生成目标图像的方式更为灵活。
图14为本发明实施例提供的一种电子设备的硬件结构示意图。该电子设备可以为终端设备,例如手机。如图14所示,该电子设备100包括但不限于:射频单元101、网络模块102、 音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、处理器110、以及电源111等部件。本领域技术人员可以理解,图14中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。需要说明的是,本发明实施例提供的电子设备100可以用于控制多个UE,该多个UE驻留在至少一个网络。
一种方式为,如图14所示的电子设备为第一设备。处理器110,可以用于获取目标图像,该目标图像可以用于指示第二设备的配置信息;并用于识别该目标图像中的第一图形;且用于根据该第一图形的主元素和该第一图形的辅元素,确定与该第一图形对应的第一字符;以及用于基于该第一字符识别第二设备。
本发明实施例提供的一种电子设备,该电子设备为第一设备,第一设备可以获取第二设备显示的目标图像,该目标图像用于指示第二设备的配置信息;并识别该目标图像中的第一图形;且根据第一图形的主元素和第一图形的辅元素,确定与第一图形对应的第一字符;以及基于该第一字符识别第二设备。通过该方案,第一设备可以识别用于指示第二设备的配置信息的目标图像中的图形,并根据一个图形的主元素和一个图形的辅元素,确定与该一个图形对应的字符,从而第一设备可以根据第一字符对第二设备进行识别,因此丰富了识别电子设备身份的方式。另外,由于第一设备是基于目标图像中的一个图形对第二设备进行识别的,即对目标图像是分步扫描的,因此在识别得到的信息满足需求的情况下,可以停止识别目标图像中的其他图形,从而这种识别方式更为灵活,并且更为节能。
另一种方式为,如图14所示的电子设备为第二设备。处理器110,可以用于获取第二设备的配置信息,该配置信息包括K个字符,K为正整数;并用于对于K个字符中的每个字符,根据一个字符对应的主元素和一个字符对应的辅元素,生成与一个字符对应的一个图形;以及用于将该K个字符对应的K个图形组排布至不同的区域,生成目标图像,该目标图像可以用于指示该配置信息。
本发明实施例提供的一种电子设备,该电子设备为第二设备,第二设备可以获取第二设备的配置信息,该配置信息包括K个字符;对于K个字符中的每个字符,根据一个字符对应的主元素和一个字符对应的辅元素,生成与一个字符对应的一个图形;将K个字符对应的K个图形排布至不同的区域,生成目标图像。通过该方案,由于第二设备可以根据K个字符中每个字符对应的主元素和辅元素,分别生成与每个字符对应的图形,从而生成目标图像,因此可以丰富目标图像的生成方式。另外,由于本发明可以分步生成与每个字符对应的图形,可以生成目标图像的方式更为灵活。
应理解的是,本发明实施例中,射频单元101可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器110处理;另外,将上行的数据发送给基站。通常,射频单元101包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元101还可以通过无线通信系统与网络和其他设备通信。
电子设备通过网络模块102为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。
音频输出单元103可以将射频单元101或网络模块102接收的或者在存储器109中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元103还可以提供与电子设 备100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元103包括扬声器、蜂鸣器以及受话器等。
输入单元104用于接收音频或视频信号。输入单元104可以包括图形处理器(graphics processing unit,GPU)1041、麦克风1042和摄像头模组1043,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元106上。经图形处理器1041处理后的图像帧可以存储在存储器109(或其它存储介质)中或者经由射频单元101或网络模块102进行发送。麦克风1042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元101发送到移动通信基站的格式输出。摄像头模组1043可以采集图像,并且能够将采集到的图像处理为数字信号,处理后的图像可以经由射频单元101发送到移动通信基站的格式输出。
电子设备100还包括至少一种传感器105,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1061的亮度,接近传感器可在电子设备100移动到耳边时,关闭显示面板1061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器105还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。
显示单元106用于显示由用户输入的信息或提供给用户的信息。显示单元106可包括显示面板1061,可以采用液晶显示器(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)等形式来配置显示面板1061。
用户输入单元107可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1071上或在触控面板1071附近的操作)。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器110,接收处理器110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1071。除了触控面板1071,用户输入单元107还可以包括其他输入设备1072。具体地,其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
进一步的,触控面板1071可覆盖在显示面板1061上,当触控面板1071检测到在其上或附近的触摸操作后,传送给处理器110以确定触摸事件的类型,随后处理器110根据触摸事件的类型在显示面板1061上提供相应的视觉输出。虽然在图14中,触控面板1071与显示面板1061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板1071与显示面板1061集成而实现电子设备的输入和输出功能,具体此处不做限定。
接口单元108为外部装置与电子设备100连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、 用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元108可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备100内的一个或多个元件或者可以用于在电子设备100和外部装置之间传输数据。
存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器109可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
处理器110是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器109内的软件程序和/或模块,以及调用存储在存储器109内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器110可包括一个或多个处理单元;可选的,处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户第一界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。
电子设备100还可以包括给各个部件供电的电源111(比如电池),可选的,电源111可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
另外,电子设备100包括一些未示出的功能模块,在此不再赘述。
可选的,本发明实施例还提供一种电子设备,包括如图14所示的处理器110,存储器109,存储在存储器109上并可在处理器110上运行的计算机程序,该计算机程序被处理器110执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,计算机可读存储介质,如只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台电子设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例描述的方法。
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均 属于本发明的保护之内。

Claims (16)

  1. 一种图像处理方法,应用于第一设备,所述方法包括:
    获取目标图像,所述目标图像用于指示第二设备的配置信息;
    识别所述目标图像中的第一图形;
    根据所述第一图形的主元素和所述第一图形的辅元素,确定与所述第一图形对应的第一字符;
    基于所述第一字符识别所述第二设备。
  2. 根据权利要求1所述的方法,其中,所述基于所述第一字符识别所述第二设备之后,所述方法还包括:
    在基于所述第一字符识别所述第二设备失败的情况下,识别所述目标图像中的第二图形;
    根据所述第二图形的主元素和所述第二图形的辅元素,确定与所述第二图形对应的第二字符;
    基于所述第一字符和所述第二字符识别所述第二设备。
  3. 根据权利要求1所述的方法,其中,所述根据所述第一图形的主元素和所述第一图形的辅元素,确定与所述第一图形对应的第一字符之前,所述方法还包括:
    识别所述第一图形的图形主体,得到所述第一图形的主元素;
    识别所述第一图形的元素变化信息,得到所述第一图形的辅元素。
  4. 根据权利要求1至3中任一项所述的方法,其中,所述目标图像包括至少一个图像区域;所述识别所述目标图像中的第一图形,包括:
    识别所述至少一个图像区域中的第一图像区域,得到所述第一图形。
  5. 一种图像处理方法,应用于第二设备,所述方法包括:
    获取所述第二设备的配置信息,所述配置信息包括K个字符,K为正整数;
    对于K个字符中的每个字符,根据一个字符对应的主元素和一个字符对应的辅元素,生成与所述一个字符对应的一个图形;
    将所述K个字符对应的K个图形排布至不同的区域,生成目标图像,所述目标图像用于指示所述配置信息。
  6. 根据权利要求5所述的方法,其中,所述根据一个字符对应的主元素和一个字符对应的辅元素,生成与所述一个字符对应的一个图形,包括:
    根据所述一个字符对应的主元素,得到所述一个图形的图形主体;
    根据所述一个字符对应的辅元素,得到所述一个图形的元素变化信息;
    根据所述一个图形的图形主体和一个图形的元素变化信息,生成与所述一个字符对应的所述一个图形。
  7. 一种电子设备,所述电子设备为第一设备,所述电子设备包括获取模块、识别模块和确定模块;
    所述获取模块,用于获取目标图像,所述目标图像用于指示第二设备的配置信息;
    所述识别模块,用于识别所述获取模块获取的所述目标图像中的第一图形;
    所述确定模块,用于根据所述第一图形的主元素和所述第一图形的辅元素,确定与所述第一图形对应的第一字符;
    所述识别模块,还用于基于所述确定模块确定的所述第一字符识别所述第二设备。
  8. 根据权利要求7所述的电子设备,其中,所述识别模块,还用于在基于所述第一字符识别所述第二设备之后,在基于所述第一字符识别所述第二设备失败的情况下,识别所述目 标图像中的第二图形;
    所述确定模块,还用于根据所述第二图形的主元素和所述第二图形的辅元素,确定与所述第二图形对应的第二字符;
    所述识别模块,还用于基于所述第一字符和所述第二字符识别所述第二设备。
  9. 根据权利要求7所述的电子设备,其中,所述识别模块,还用于在所述确定模块根据所述第一图形的主元素和所述第一图形的辅元素,确定与所述第一图形对应的第一字符之前,识别所述第一图形的图形主体,得到所述第一图形的主元素;并识别所述第一图形的元素变化信息,得到所述第一图形的辅元素。
  10. 根据权利要求7至9任一项所述的电子设备,其中,所述目标图像包括至少一个图像区域;
    所述识别模块,具体用于识别所述至少一个图像区域中的第一图像区域,得到所述第一图形。
  11. 一种电子设备,所述电子设备为第二设备,所述电子设备包括获取模块和生成模块;
    所述获取模块,用于获取所述第二设备的配置信息,所述配置信息包括K个字符,K为正整数;
    所述生成模块,用于对于K个字符中的每个字符,根据一个字符对应的主元素和一个字符对应的辅元素,生成与所述一个字符对应的一个图形;
    所述生成模块,还用于将所述K个字符对应的K个图形组排布至不同的区域,生成目标图像,所述目标图像用于指示所述配置信息。
  12. 根据权利要求11所述的电子设备,其中,所述生成模块,具体用于根据所述一个字符对应的主元素,得到所述一个图形的图形主体;并根据所述一个字符对应的辅元素,得到所述一个图形的元素变化信息;以及根据所述一个图形的图形主体和一个图形的元素变化信息,生成与所述一个字符对应的所述一个图形。
  13. 一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至6中任一项所述的图像处理方法的步骤。
  14. 一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至6中任一项所述的图像处理方法的步骤。
  15. 一种计算机程序产品,所述计算机程序产品被至少一个处理器执行以实现如权利要求1-6中任一项所述的图像处理方法。
  16. 一种电子设备,所述电子设备被配置成用于执行如权利要求1-6中任一项所述的图像处理方法。
PCT/CN2021/084748 2020-04-03 2021-03-31 图像处理方法及电子设备 WO2021197395A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP21778990.8A EP4131066A4 (en) 2020-04-03 2021-03-31 IMAGE PROCESSING METHOD AND ELECTRONIC DEVICE
US17/955,517 US20230019260A1 (en) 2020-04-03 2022-09-28 Image processing method and electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010260899.6A CN111598096A (zh) 2020-04-03 2020-04-03 一种图像处理方法及电子设备
CN202010260899.6 2020-04-03

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/955,517 Continuation US20230019260A1 (en) 2020-04-03 2022-09-28 Image processing method and electronic device

Publications (1)

Publication Number Publication Date
WO2021197395A1 true WO2021197395A1 (zh) 2021-10-07

Family

ID=72190438

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/084748 WO2021197395A1 (zh) 2020-04-03 2021-03-31 图像处理方法及电子设备

Country Status (4)

Country Link
US (1) US20230019260A1 (zh)
EP (1) EP4131066A4 (zh)
CN (1) CN111598096A (zh)
WO (1) WO2021197395A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111598096A (zh) * 2020-04-03 2020-08-28 维沃移动通信有限公司 一种图像处理方法及电子设备
CN112148124A (zh) * 2020-09-10 2020-12-29 维沃移动通信有限公司 图像处理方法、装置及电子设备
CN113486102A (zh) * 2021-07-05 2021-10-08 成都运达科技股份有限公司 一种站场示意图配置方法及配置系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685206A (zh) * 2012-09-25 2014-03-26 阿里巴巴集团控股有限公司 识别信息的生成方法和系统
CN106231104A (zh) * 2016-08-03 2016-12-14 广东乐源数字技术有限公司 一种手环与智能手机绑定的方法
CN107590522A (zh) * 2017-08-23 2018-01-16 阿里巴巴集团控股有限公司 一种识别码生成及识别的方法及装置
US20190294912A1 (en) * 2018-03-22 2019-09-26 Seiko Epson Corporation Image processing device, image processing method, and image processing program
CN111598096A (zh) * 2020-04-03 2020-08-28 维沃移动通信有限公司 一种图像处理方法及电子设备

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6119952B2 (ja) * 2012-05-15 2017-04-26 富士ゼロックス株式会社 画像処理装置及び画像処理プログラム
CN106951812B (zh) * 2017-03-31 2018-12-07 腾讯科技(深圳)有限公司 识别二维码的方法、装置和终端
CN109325489B (zh) * 2018-09-14 2021-05-28 浙江口碑网络技术有限公司 图像的识别方法及装置、存储介质、电子装置
CN110503102A (zh) * 2019-08-27 2019-11-26 上海眼控科技股份有限公司 车辆识别码检测方法、装置、计算机设备和存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685206A (zh) * 2012-09-25 2014-03-26 阿里巴巴集团控股有限公司 识别信息的生成方法和系统
CN106231104A (zh) * 2016-08-03 2016-12-14 广东乐源数字技术有限公司 一种手环与智能手机绑定的方法
CN107590522A (zh) * 2017-08-23 2018-01-16 阿里巴巴集团控股有限公司 一种识别码生成及识别的方法及装置
US20190294912A1 (en) * 2018-03-22 2019-09-26 Seiko Epson Corporation Image processing device, image processing method, and image processing program
CN111598096A (zh) * 2020-04-03 2020-08-28 维沃移动通信有限公司 一种图像处理方法及电子设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4131066A4 *

Also Published As

Publication number Publication date
EP4131066A4 (en) 2023-07-12
EP4131066A1 (en) 2023-02-08
US20230019260A1 (en) 2023-01-19
CN111598096A (zh) 2020-08-28

Similar Documents

Publication Publication Date Title
WO2021197395A1 (zh) 图像处理方法及电子设备
CN110062105B (zh) 一种界面显示方法及终端设备
CN108540655B (zh) 一种来电显示处理方法及移动终端
US11658932B2 (en) Message sending method and terminal device
WO2021017763A1 (zh) 事件处理方法、终端设备及计算机可读存储介质
CN110058836B (zh) 一种音频信号的输出方法及终端设备
WO2019149028A1 (zh) 应用程序的下载方法及终端
CN109085968B (zh) 一种截屏方法及终端设备
WO2021057290A1 (zh) 信息控制方法及电子设备
WO2021083058A1 (zh) 图像处理方法、服务器及终端设备
AU2020250543B2 (en) SSB transmission indication method and apparatus, terminal, device, and medium
WO2021185254A1 (zh) 内容共享方法及电子设备
WO2021104266A1 (zh) 对象显示方法及电子设备
WO2021082772A1 (zh) 截屏方法及电子设备
WO2020211692A1 (zh) 信息交互方法及终端设备
CN111124569B (zh) 一种应用共享方法、电子设备及计算机可读存储介质
CN109992192B (zh) 一种界面显示方法及终端设备
CN110012151B (zh) 一种信息显示方法及终端设备
WO2019242633A1 (zh) 测量间隔的处理方法、终端及网络节点
CN109117037B (zh) 一种图像处理的方法及终端设备
CN109067975B (zh) 一种联系人信息管理方法及终端设备
WO2019091301A1 (zh) 射频器件的信息处理方法及移动终端
WO2021017785A1 (zh) 数据传输方法及终端设备
CN109947617B (zh) 一种监听应用界面显示内容的方法、终端及可读存储介质
CN111026454A (zh) 功能启动方法及终端设备

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: 21778990

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2021778990

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2021778990

Country of ref document: EP

Effective date: 20221103

NENP Non-entry into the national phase

Ref country code: DE