+

WO2018188180A1 - 一种分享图片的方法和电子设备 - Google Patents

一种分享图片的方法和电子设备 Download PDF

Info

Publication number
WO2018188180A1
WO2018188180A1 PCT/CN2017/087200 CN2017087200W WO2018188180A1 WO 2018188180 A1 WO2018188180 A1 WO 2018188180A1 CN 2017087200 W CN2017087200 W CN 2017087200W WO 2018188180 A1 WO2018188180 A1 WO 2018188180A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
contact
image
electronic device
instruction
Prior art date
Application number
PCT/CN2017/087200
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 CN201780089452.3A priority Critical patent/CN110800276A/zh
Publication of WO2018188180A1 publication Critical patent/WO2018188180A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Definitions

  • Embodiments of the present invention relate to the field of electronic technologies, and in particular, to a method and an electronic device for sharing pictures.
  • the operation process of sharing pictures on an electronic device to a friend is generally as follows: opening a picture to be shared on the electronic device, clicking the picture, a sharing command pops up. Button, when the user clicks the button, a series of applications that can send pictures to contacts, such as email, MMS, Tencent QQ, WeChat, etc., will pop up.
  • the electronic device opens the application and then sends the image to a user-selected contact according to the user's instruction.
  • the inventor has found that the existing method of sharing pictures requires manual operation by the user, and the operation process is cumbersome and inconvenient.
  • the embodiment of the invention provides a method and an electronic device for sharing pictures, so as to solve the problem of cumbersome operation of sharing pictures.
  • An embodiment of the present invention provides a method for sharing a picture, including:
  • the electronic device receives an instruction to share the first picture
  • the electronic device When the image of the first contact is included in the first picture, the electronic device sends the first picture to the first contact.
  • the sending, by the electronic device, the first picture to the first contact specifically includes:
  • the first picture is sent to the first contact.
  • the method before the receiving, by the electronic device, the instruction to share the first picture, the method further includes:
  • the electronic device receives an instruction to share a second picture
  • the second picture is stored as a reference image of the first contact.
  • the reference image of the first contact is the stored avatar of the first contact.
  • the sending, by the electronic device, the first picture to the first contact specifically includes:
  • the first picture is sent to the first contact.
  • the sending, by the electronic device, the first picture to the first contact specifically includes:
  • the sending the first picture to the first contact specifically, sending the first picture to the first contact by using at least one of the following manners:
  • MMS email, instant messaging software, social networking, Bluetooth.
  • the sending the first picture to the first contact includes:
  • Another embodiment of the present invention provides an electronic device, including:
  • a receiving unit configured to receive an instruction to receive a first picture
  • the processing unit is configured to: when the image of the first contact is included in the first picture, the electronic device sends the first picture to the first contact.
  • the processing unit includes:
  • An image recognition module configured to perform image recognition on the first picture
  • a comparison module configured to compare the identified first person image with the reference image of the first contact
  • a sending module configured to send the first picture to the first contact when determining that the first person image belongs to the same person as the reference image of the first contact.
  • the receiving unit is further configured to receive an instruction to share the second picture
  • the processing unit is further configured to send the second picture to the first contact according to the instruction to share the second picture;
  • the electronic device further includes:
  • a storage unit configured to store the second picture as a reference image of the first contact.
  • the reference image of the first contact is the stored avatar of the first contact.
  • the electronic device further includes:
  • a sending unit configured to send the first picture to the second device, to enable the second device to determine whether the image of the first contact is included in the first picture
  • the receiving unit is further configured to receive, by the second device, a determination result that is determined to include an image of the first contact in the first picture;
  • the processing unit is specifically configured to: when the electronic device receives, by the second device, a determination result that the image of the first contact is included in the first image, send the message to the first contact The first picture.
  • the processing unit includes:
  • An image recognition module configured to perform image recognition on the first picture, and identify a name on the first name card included in the first picture;
  • a sending module configured to send the first picture to the first contact when determining that the name on the first name card is the name of the first contact.
  • the sending the first picture to the first contact specifically, sending the first picture to the first contact by using at least one of the following manners:
  • MMS email, instant messaging software, social networking, Bluetooth.
  • the sending the first picture to the first contact includes:
  • Yet another embodiment of the present invention provides an electronic device including a processor and a transmitter, wherein:
  • the processor is configured to receive an instruction to share the first picture, and when the first picture includes an image of the first contact, send an instruction to the sender to send the first picture to the first contact;
  • the transmitter is configured to send the first picture to the first contact according to an instruction of the processor.
  • the sending by the sender, an instruction to send the first picture to the first contact, specifically:
  • the electronic device further includes a memory
  • the processor is further configured to:
  • the reference image of the first contact is the stored avatar of the first contact.
  • the sending by the sender, an instruction to send the first image to the first contact, specifically:
  • the sender is further configured to send the first picture to the second device, so that the second device determines whether the image of the first contact is included in the first picture;
  • the electronic device further includes a receiver, configured to receive, by the second device, a determination result that is determined to include an image of the first contact in the first picture;
  • the processor is configured to send a direction to the sender when the electronic device receives a determination result that the second device sends an image that includes the first contact in the first picture.
  • the first contact sends an instruction of the first picture.
  • the embodiment of the invention makes it possible for the user to manually select the object sharing the picture, which simplifies the operation flow and facilitates the use of the user.
  • FIG. 1 is a schematic structural diagram of a mobile phone according to an embodiment of the present invention.
  • FIGS. 2A-2D are schematic diagrams showing operations of an electronic device according to an embodiment of the present invention.
  • 3A-3D are flowcharts of an embodiment of a method according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of an interface of a contact application in an example of the present invention.
  • Figure 5 is a flow chart of still another embodiment of the method of the present invention.
  • FIG. 6 is a schematic diagram of networking performed by a second device according to an embodiment of the present invention.
  • FIGS. 7A-7D are schematic structural diagrams of an electronic device according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of an electronic device according to another embodiment of the present invention.
  • FIG. 1 is a block diagram showing a partial structure of the mobile phone 100 related to various embodiments of the present application.
  • the mobile phone 10 includes: a radio frequency (RF) circuit 110, a memory 120, other input devices 130, a display screen 140, a sensor 150, an audio circuit 160, an I/O subsystem 170, and processing.
  • Device 180 and components such as power supply 190.
  • RF radio frequency
  • FIG. 1 the structure of the mobile phone shown in FIG. 1 does not constitute a limitation to the mobile phone, and may include more or less components than those illustrated, or combine some components, or split some components, or Different parts are arranged.
  • the handset 100 can include a user interface that is smaller than shown or less. The components of the mobile phone 100 will be specifically described below with reference to FIG. 1 :
  • the RF circuit 110 can be used for transmitting and receiving information or during a call, and receiving and transmitting the signal. Specifically, after receiving the downlink information of the base station, the processor 180 processes the data. In addition, the uplink data is designed to be sent to the base station.
  • RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like.
  • RF circuitry 110 can also communicate with the network and other devices via wireless communication.
  • the wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access). , Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and the like.
  • the memory 120 can be used to store software programs and modules, and the processor 180 executes various functional applications and data processing of the mobile phone 100 by running software programs and modules stored in the memory 120.
  • the memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to The data created by the use of the mobile phone 100 (such as audio data, phone book, etc.) and the like.
  • memory 120 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • Other input devices 130 can be used to receive input numeric or character information, as well as generate key signal inputs related to user settings and function controls of the handset 100.
  • other input devices 130 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and light mice (the light mouse is not sensitive to display visual output).
  • function keys such as volume control buttons, switch buttons, etc.
  • trackballs mice, joysticks, and light mice (the light mouse is not sensitive to display visual output).
  • Other input devices 130 are coupled to other input device controllers 171 of I/O subsystem 170 for signal interaction with processor 180 under the control of other device input controllers 171.
  • the display screen 140 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone 100, and can also accept user input.
  • the specific display screen 140 may include a display panel 141 and a touch panel 142.
  • the display panel 141 can be configured by using an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
  • the touch panel 142 also referred to as a touch screen, a touch sensitive screen, etc., can collect contact or non-contact operations on or near the user (eg, the user uses any suitable object or accessory such as a finger, a stylus, etc. on the touch panel 142.
  • the operation in the vicinity of the touch panel 142 may also include a somatosensory operation; the operation includes a single-point control operation, a multi-point control operation, and the like, and drives the corresponding connection device according to a preset program.
  • the control panel 142 may include two parts: a touch detection device and a touch controller, wherein the touch detection device detects a touch orientation and a posture of the user, and detects a signal brought by the touch operation, and transmits a signal to the touch controller; the touch controller The touch detection device receives the touch information and converts it into information that the processor can process. It is then sent to the processor 180 and can receive commands from the processor 180 and execute them.
  • the touch panel 142 can be implemented by using various types such as resistive, capacitive, infrared, and surface acoustic waves, and the touch panel 142 can be implemented by any technology developed in the future.
  • the touch panel 142 can cover the display panel 141, and the user can display the content according to the display panel 141 (the display content includes, but is not limited to, a soft keyboard, a virtual mouse, a virtual button, an icon, etc.) on the display panel 141. Operation is performed on or near the covered touch panel 142. After detecting the operation thereon or nearby, the touch panel 142 transmits to the processor 180 through the I/O subsystem 170 to determine user input, and then the processor 180 according to the user The input provides a corresponding visual output on display panel 141 via I/O subsystem 170.
  • the touch panel 142 and the display panel 141 are used as two separate components to implement the input and input functions of the mobile phone 100 in FIG. 1, in some embodiments, the touch panel 142 may be integrated with the display panel 141. The input and output functions of the mobile phone 100 are implemented.
  • the handset 100 can also include at least one type of sensor 150, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 141 when the mobile phone 100 moves to the ear. / or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.
  • the mobile phone 100 can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, here Let me repeat.
  • the audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the handset 100.
  • the audio circuit 160 can transmit the converted audio data to the speaker 161 for conversion to the sound signal output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into a signal, which is received by the audio circuit 160.
  • the audio data is converted to audio data, which is then output to the RF circuit 110 for transmission to, for example, another mobile phone, or the audio data is output to the memory 120 for further processing.
  • the mobile phone 100 further includes a camera 155.
  • the camera 155 can convert an external light signal into an electrical signal to generate an electronic image.
  • the camera 155 includes a lens and an image sensor, wherein the lens is used to focus external light onto the image sensor, and the image sensor is used to convert the received optical signal into an electrical signal.
  • Commonly used image sensors include Charge-Coupled Device (CCD) and Complementary Metal Oxide Semiconductor (CMOS) sensors.
  • CCD Charge-Coupled Device
  • CMOS Complementary Metal Oxide Semiconductor
  • the camera 155 typically also includes a focus mechanism for adjusting the distance between the lens and the image sensor such that the image formed by the lens falls exactly on the image sensor.
  • the camera 155 further includes a zoom mechanism for changing the focal length of the lens so that the field of view of the shot can be changed.
  • the camera 155 may also include a gain circuit for amplifying the analog signal generated by the image sensor. Adjusting the gain of the gain circuit allows the camera 155 to take pictures in dimly lit environments, but typically produces more noise, which is more noisy corresponding to electronic images. This adjustment is equivalent to changing the ISO value of the film in traditional photography, and usually uses the corresponding film ISO value to identify the gain of the gain circuit.
  • the camera 155 typically also includes an analog/digital converter (A/D converter) for converting an analog signal generated by the image sensor into a digital signal.
  • A/D converter analog/digital converter
  • the I/O subsystem 170 is used to detect external devices for input and output, and may include other device input controllers 171, sensor controllers 172, and display controllers 173.
  • one or more other input control device controllers 171 receive signals from other input devices 130 and/or send signals to other input devices 130, other inputs
  • the device 130 may include physical buttons (pressing a button, to be compared to a button, etc.), a dial, a slide switch, a joystick, a click wheel, a light mouse (a light-sensitive mouse is a touch-sensitive surface that does not display a visual output, or is formed by a touch screen) Touch the extension of the sensitive surface). It is worth noting that other input control device controllers 171 can be connected to any one or more of the above devices.
  • Display controller 173 in I/O subsystem 170 receives signals from display 140 and/or transmits signals to display 140. After the display screen 140 detects the user input, the display controller 173 converts the detected user input into an interaction corresponding to the user interface displayed on the display screen 140, that is, implements human-computer interaction.
  • Sensor controller 172 can receive signals from one or more sensors 150 and/or send signals to one or more sensors 150.
  • one or more sensors 150 in the electronic device of the embodiment of the present application include an Ambient Light Sensor (ALS) for detecting ambient light of an environment in which the electronic device is located, the ambient light sensor The ambient light of the environment in which the electronic device is located can be continuously or periodically monitored.
  • the one or more sensors 150 may also include a position sensor for determining the position of the electronic device, which may continuously or periodically monitor the position of the electronic device.
  • ALS Ambient Light Sensor
  • the processor 180 is the control center of the handset 100, connecting various portions of the entire handset with various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling data stored in the memory 120, The various functions and processing data of the mobile phone 100 are executed to perform overall monitoring of the mobile phone.
  • the processor 180 may include one or more processing units; the processor 180 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, etc., and a modulation solution
  • the processor mainly handles wireless communication. It can be understood that the above modem processor may not be integrated into the processor 180.
  • the mobile phone 100 also includes a power source 190 (such as a battery) for powering various components.
  • the power source 190 can be logically coupled to the processor 180 through a power management system to manage functions such as charging, discharging, and power consumption through the power management system.
  • the mobile phone 100 may further include a camera, a wireless fidelity (WiFi) module, a Global Positioning System (GPS) module, a Bluetooth module, and the like, which are not described herein again.
  • WiFi wireless fidelity
  • GPS Global Positioning System
  • Bluetooth Bluetooth
  • an embodiment of the present invention provides a method for sharing a picture, including:
  • the electronic device receives an instruction to share the first picture.
  • the sharing of the first picture generally refers to an operation of transmitting the first picture to a certain contact.
  • This operation can have different names, such as “Share”, “Send”, “Send to a friend”, and so on.
  • the name of this operation is not limited in the embodiment of the present invention.
  • the user may send the instruction to share the first picture to the electronic device in multiple manners, for example, the user may open the first picture on the electronic device, and then click the “Share” button, as shown in FIG. 2A to FIG. 2C. Show. It can also be automatically shared after the user takes a picture.
  • the camera instruction such as clicking the "photograph” button on the screen of the electronic device, or pressing the shutter button on the electronic device, can be regarded as sharing the first The instructions for the picture.
  • the user can also issue an instruction to share the first picture through a voice command interface.
  • voice command interfaces such as the Siri voice assistant developed by Apple, Microsoft's Microsoft Corna, and the Xunfei voice assistant developed by Keda Xunfei.
  • voice command interfaces use voice recognition technology to identify natural language commands spoken by users and to semantically classify these natural language commands. Analyze and then perform the appropriate action. For example, the user can say “Share this picture” to the electronic device, and the electronic device performs an operation of sharing the picture.
  • the first picture is image data stored in an electronic device, and may be various image files, such as an image file in a bitmap format such as a jpeg file or a bmp file, or may be a file in a vector format.
  • the first picture may be a static picture or a dynamic picture such as a video.
  • the first picture may be a photo or video taken by the electronic device, or may be a picture obtained from other places, such as a picture received through an email, a multimedia message, an instant messaging software, or the like, or a short-range wireless device such as Bluetooth.
  • the picture received by the communication, or the picture copied from a storage device such as a computer or a mobile hard disk, is not limited in this embodiment of the present invention.
  • the electronic device sends the first picture to the first contact.
  • the first contact here is a contact of the electronic device user, and his contact information is saved in the electronic device.
  • the contact information of the first contact may be saved in a system application of the electronic device management contact information. Generally, the application is called “contact”, “phone book”, “address book”, or other names. .
  • the information of the first contact may also be saved in other communication software, such as a contact list of an email, a buddy list of instant messaging software (such as Tencent QQ), and a social networking application (eg, Twitter, Facebook, Sina Wei). Bo, WeChat) friends list or watch list, and so on.
  • the electronic device sends the first picture to the first contact.
  • the electronic device may be automatically sent by the first picture, or may be sent by the user after confirmation.
  • the electronic device can transmit the first picture to the first contact in a variety of manners, such as email, Bluetooth, MMS, instant messaging applications, social networking applications, and the like.
  • the manner of sending may be selected by the user.
  • FIG. 2C after the user clicks the “Share” button, a box pops up on the interface, and various sharing methods are available, such as E-mail, QQ, WeChat, etc., the user clicks on one of them, and then the electronic device uses this method to send the picture.
  • the first picture may also be sent in a default or user-used manner, for example, by default, or by the most commonly used WeChat transmission according to historical statistics, the first picture is sent by using WeChat.
  • the manner of sending may also be selected according to the contact manner of the first contact. For example, if the electronic device saves the phone number of the first contact, the first picture may be sent by using a multimedia message. The electronic device saves the micro signal of the first contact, and the first picture may be sent by using a WeChat.
  • the electronic device may determine, by using an image recognition technology, an image of the first contact in the first picture:
  • image recognition may be performed on one of the images, or the thumbnail of the moving picture may be image-recognized.
  • the first person image may be extracted.
  • the first person image is an image of a person in the first picture, and the first picture may include one or a plurality of personal objects. Image recognition technology can identify these character images and extract them for comparison.
  • the electronic device may compare the first person image with a reference image of the first contact to determine whether it is the same person.
  • the reference image of the first contact here is an image of the first contact used as a reference for comparison.
  • the reference image can come in a variety of sources. For example, many "contact" applications for electronic devices, as well as many instant messaging software and social networking applications, can save contact image information. As an example, as shown in FIG. 4, in the contact application, each contact holds an "avatar.”
  • the reference image may be specified by the user. For example, the user may select a picture containing the first contact as the reference image of the first contact in the picture saved by the electronic device.
  • the electronic device may also store a picture previously shared to the first contact as a reference image of the first contact.
  • the foregoing embodiment may further include:
  • the electronic device receives an instruction to share a second picture
  • the second picture may be a picture different from the first picture.
  • the electronic device may send the second picture to the first contact in a manner of sharing a picture, or may send the second to the first contact in a manner provided by the embodiment of the present invention. image.
  • the first contact image is usually included, so it can be used as a reference image of the first contact.
  • the electronic device may determine, by various algorithms, whether the first person image and the reference image of the first contact are the same person, such as an ASM algorithm, a deep learning algorithm, and the like. Thanks to advances in artificial intelligence technologies such as neural networks and deep learning, the accuracy of image contrast has increased dramatically.
  • FIG. 2B there is a character in the illustrated picture, and the user clicks the “Share” button.
  • FIG. 2C a box pops up on the user interface to display the sharing method, such as email. , WeChat, QQ, etc.
  • the image of the contact named Li Mengjuan matches, so the electronic device Attach the image to be shared to the email as an attachment and send it to Li Mengjuan's email address lmj@abc.com.
  • the electronic device can automatically send the mail, or after attaching the picture to the email as an attachment, the user can manually click to send.
  • the electronic device may determine a contact to be shared by a brand name in the first picture. As shown in Figure 3C,
  • a person's name tag such as a badge, a name tag on a seat, etc.
  • the electronic device may set these brand names and further identify the name on the name tag.
  • the electronic device can distinguish the famous brand through sample training, and the recognition of the text is a mature technology.
  • the electronic device may compare the identified name with the name of the stored contact, and determine a contact that matches the name on the first name card as the first contact.
  • the first contact's name can be saved in the contacts application, or in an instant messaging software, social networking application, or the like.
  • the electronic device itself determines whether there is an image of the first contact in the first image, and otherwise, as shown in FIG. 6, another device, such as a server 600, may also determine Whether there is an image of the first contact in the first image, since the processing capability of the server 600 is much stronger than that of the general electronic device 100, the determination can be processed more efficiently.
  • the foregoing step 320 includes:
  • the second device herein may be a server or other electronic device, and the second device may determine whether the image of the first contact is included in the picture, and send the result to the electronic device.
  • the second device may determine the image of the first contact in the first picture by using the method disclosed in the foregoing embodiments, and may also adopt other methods, which are not limited in this embodiment of the present invention.
  • an embodiment of the present invention provides an electronic device, including:
  • the receiving unit 701 is configured to receive an instruction for sharing the first picture.
  • the processing unit 702 is configured to: when the image of the first contact is included in the first picture, the electronic device sends the first picture to the first contact.
  • the receiving unit 701 and the processing unit 702 can be processed as in the foregoing embodiment.
  • Receiving order The element 701 may specifically include the touch panel 142 previously introduced, or other input devices 130, and may also include peripheral circuits such as corresponding input controllers.
  • the processing unit 702 can include the processor 180 previously described, as well as the RF circuit 110, and can also include other communication modules such as an infrared communication module and the like.
  • the processing unit includes:
  • An image recognition module 7201 configured to perform image recognition on the first picture
  • a comparison module 7202 configured to compare the identified first person image with the reference image of the first contact
  • the sending module 7203 is configured to send the first picture to the first contact when determining that the first person image belongs to the same person as the reference image of the first contact.
  • the electronic device further includes:
  • the storage unit 704 is configured to store the second picture as a reference image of the first contact.
  • the reference image of the first contact may be the stored avatar of the first contact.
  • the electronic device may further include:
  • the sending unit 705 is configured to send the first picture to the second device, so that the second device determines whether the image of the first contact is included in the first picture;
  • the receiving unit 701 is further configured to receive, by the second device, a determination result that is determined to include an image of the first contact in the first picture;
  • the processing unit 702 is specifically configured to: when the electronic device receives, by the second device, a determination result that the image of the first contact is included in the first picture, to the first contact Sending the first picture.
  • the processing unit 702 includes:
  • the image recognition module 7201 is configured to perform image recognition on the first picture, and identify a name on the first name card included in the first picture;
  • the sending module 7203 is configured to send the first picture to the first contact when determining that the name on the first name card is the name of the first contact.
  • another embodiment of the present invention provides an electronic device, including a processor 801 and a transmitter 802, where:
  • the processor 801 is configured to receive an instruction for sharing a first picture, and send, when the first picture includes an image of the first contact, to the sender, send the first picture to the first contact. instruction;
  • the transmitter 802 is configured to send the first contact to the first contact according to an instruction of the processor image.
  • the processor 801 herein may be a central processing unit (CPU) of an electronic device, or may be other circuits having data processing functions, such as some dedicated processors.
  • CPU central processing unit
  • NPUs dedicated neural network processors
  • the processor English name is DianNao
  • the TrueNorth processor developed by IBM
  • the Tensor Processing Unit developed by Google.
  • the electronic device may set another dedicated processor outside the CPU as the processor 801 in this embodiment.
  • the sending when the image of the first contact is included in the first picture, the sending, by the sender, an instruction to send the first picture to the first contact, specifically:
  • the electronic device further includes a memory 803, where the processor 801 is further configured to:
  • the memory 803 is controlled to store the second picture as a reference image of the first contact.
  • the reference image of the first contact may be the stored avatar of the first contact.
  • the sending when the image of the first contact is included in the first picture, the sending, by the sender 802, the instruction to send the first picture to the first contact, specifically:
  • the electronic device may perform the above determination to another device, such as a server, in addition to determining whether the first picture includes the image of the first contact.
  • another device such as a server
  • the transmitter 803 is further configured to send the first picture to the second device, so that the second device determines whether the image of the first contact is included in the first picture;
  • the electronic device further includes a receiver 804, configured to receive, by the second device, a determination result that is determined by the second device to include an image of the first contact in the first picture;
  • the processor 801 is specifically configured to send, to the sender, when the electronic device receives a determination result that the second device sends an image that includes the first contact in the first picture.
  • the instruction of the first picture is sent to the first contact.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

本发明的实施例提供一种分享图片的方法及电子设备,可使用户在分享图片时不必手动选择分享的对象,简化了操作。该方法包括:一种分享图片的方法,包括:电子设备接收分享第一图片的指令;当所述第一图片中包含第一联系人的图像时,所述电子设备向所述第一联系人发送所述第一图片。

Description

一种分享图片的方法和电子设备
本申请要求2017年4月10日递交中国专利局、申请号为201710230331.8的中国专利申请的优先权,其全文通过引用包含于本申请中。
技术领域
本发明实施例涉及电子技术领域,特别是涉及一种分享图片的方法和电子设备。
背景技术
现在的各种消费电子设备,例如手机、数码相机、平板电脑(tablet PC)等,普遍具有拍照功能和联网功能。通过上述电子设备拍摄照片,再将拍好的照片分享给朋友,已经成为流行的应用。如图所示,在当前已有的技术中,把电子设备上的图片分享给朋友的操作流程一般是这样的:在电子设备上打开要分享的图片,点击该图片,则会弹出一个分享命令按钮,用户点击该按钮,则会弹出一系列可以把图片发送给联系人的应用,如电子邮件、彩信、腾讯QQ、微信等。用户点选一个应用,则电子设备会打开该应用,然后根据用户的指令,把图片发送给一个用户选定的联系人。
发明人发现,现在已有的分享图片的方法,需要用户手动操作,操作流程繁琐,十分不便。
发明内容
本发明实施例提供一种分享图片的方法和电子设备,以解决分享图片操作繁琐的问题。
本发明的一个实施例提供一种分享图片的方法,包括:
电子设备接收分享第一图片的指令;
当所述第一图片中包含第一联系人的图像时,所述电子设备向所述第一联系人发送所述第一图片。
可选的,所述当所述第一图片中包含第一联系人的图像时,所述电子设备向所述第一联系人发送所述第一图片,具体包括:
对所述第一图片进行图像识别;
将识别到的第一人物图像与所述第一联系人的参考图像进行对比;
当确定所述第一人物图像与所述第一联系人的参考图像属于同一人时,向所述第一联系人发送所述第一图片。
可选的,在所述电子设备接收分享第一图片的指令之前,还包括:
所述电子设备接收分享第二图片的指令;
根据所述分享第二图片的指令向所述第一联系人发送所述第二图片;
存储所述第二图片作为所述第一联系人的参考图像。
可选的,所述第一联系人的参考图像为存储的所述第一联系人的头像。
可选的,所述当所述第一图片中包含第一联系人的图像时,所述电子设备向所述第一联系人发送所述第一图片,具体包括:
对所述第一图片进行图像识别;
识别所述第一图片中包含的第一名牌上的名字;
当确定所述第一名牌上的名字为所述第一联系人的名字时,向所述第一联系人发送所述第一图片。
可选的,所述当所述第一图片中包含第一联系人的图像时,所述电子设备向所述第一联系人发送所述第一图片,具体包括:
将所述第一图片发送给第二设备,以使所述第二设备确定所述第一图片中是否包含所述第一联系人的图像;
当所述电子设备接收到所述第二设备发送的确定所述第一图片中包含所述第一联系人的图像的判定结果时,向所述第一联系人发送所述第一图片。
可选的,所述向所述第一联系人发送所述第一图片,具体包括通过以下至少一种方式向所述第一联系人发送所述第一图片:
彩信、电子邮件、即时通信软件、社交网络、蓝牙。
可选的,所述向所述第一联系人发送所述第一图片,具体包括:
使用存储所述第一联系人信息的应用软件向所述第一联系人发送所述第一图片。
本发明的另一个实施例提供一种电子设备,包括:
接收单元,用于接收接收分享第一图片的指令;
处理单元,用于当所述第一图片中包含第一联系人的图像时,所述电子设备向所述第一联系人发送所述第一图片。
可选的,所述处理单元,包括:
图像识别模块,用于对所述第一图片进行图像识别;
对比模块,用于将识别到的第一人物图像与所述第一联系人的参考图像进行对比;
发送模块,用于当确定所述第一人物图像与所述第一联系人的参考图像属于同一人时,向所述第一联系人发送所述第一图片。
可选的,所述接收单元还用于接收分享第二图片的指令;
所述处理单元还用于根据所述分享第二图片的指令向所述第一联系人发送所述第二图片;
所述电子设备还包括:
存储单元,用于存储所述第二图片作为所述第一联系人的参考图像。
可选的,所述第一联系人的参考图像为存储的所述第一联系人的头像。
可选的,所述电子设备还包括:
发送单元,用于将所述第一图片发送给第二设备,以使所述第二设备确定所述第一图片中是否包含所述第一联系人的图像;
所述接收单元还用于接收所述第二设备发送的确定所述第一图片中包含所述第一联系人的图像的判定结果;
所述处理单元具体用于当所述电子设备接收到所述第二设备发送的确定所述第一图片中包含所述第一联系人的图像的判定结果时,向所述第一联系人发送所述第一图片。
可选的,其特征在于,所述处理单元,包括:
图像识别模块,用于对所述第一图片进行图像识别,识别所述第一图片中包含的第一名牌上的名字;
发送模块,用于当确定所述第一名牌上的名字为所述第一联系人的名字时,向所述第一联系人发送所述第一图片。
可选的,其特征在于,所述向所述第一联系人发送所述第一图片,具体包括通过以下至少一种方式向所述第一联系人发送所述第一图片:
彩信、电子邮件、即时通信软件、社交网络、蓝牙。
可选的,所述向所述第一联系人发送所述第一图片,具体包括:
使用存储所述第一联系人信息的应用软件向所述第一联系人发送所述第一图片。
本发明的又一实施例提供一种电子设备,包括处理器和发送器,其中:
所述处理器用于接收分享第一图片的指令,并且当所述第一图片中包含第一联系人的图像时,向所述发送器发出向第一联系人发送所述第一图片的指令;
所述发送器用于根据所述处理器的指令,向所述第一联系人发送所述第一图片。
可选的,所述当所述第一图片中包含第一联系人的图像时,向所述发送器发出向第一联系人发送所述第一图片的指令,具体包括:
对所述第一图片进行图像识别;
将识别到的第一人物图像与所述第一联系人的参考图像进行对比;
当确定所述第一人物图像与所述第一联系人的参考图像属于同一人时,向所述发送器发出向第一联系人发送所述第一图片的指令。
可选的,所述电子设备还包括存储器;
所述处理器还用于:
接收分享第二图片的指令;
根据所述分享第二图片的指令,控制所述发送器向所述第一联系人发送所述第二图片;
控制所述存储器存储所述第二图片作为所述第一联系人的参考图像。
可选的,所述第一联系人的参考图像为存储的所述第一联系人的头像。
可选的,当所述第一图片中包含第一联系人的图像时,向所述发送器发出向第一联系人发送所述第一图片的指令,具体包括:
对所述第一图片进行图像识别;
识别所述第一图片中包含的第一名牌上的名字;
当确定所述第一名牌上的名字为所述第一联系人的名字时,向所述发送器发出向第一联系人发送所述第一图片的指令。
可选的,所述发送器还用于将所述第一图片发送给第二设备,以使所述第二设备确定所述第一图片中是否包含所述第一联系人的图像;
所述电子设备还包括接收器,所述接收器用于接收所述第二设备发送的确定所述第一图片中包含所述第一联系人的图像的判定结果;
所述处理器,具体用于当所述电子设备接收到所述第二设备发送的确定所述第一图片中包含所述第一联系人的图像的判定结果时,向所述发送器发出向第一联系人发送所述第一图片的指令。
本发明的实施例使得用户可以不必手动选择分享图片的对象,简化了操作流程,方便了用户的使用。
附图说明
图1是本发明一个实施例提供的手机的结构示意图;
图2A-2D是本发明实施例提供的电子设备操作示意图;
图3A-3D是本发明实施例提供的方法实施例的流程图;
图4是本发明一个示例中联系人应用的界面示意图;
图5是本发明又一个方法实施例的流程图;
图6是本发明一个实施例中由第二设备进行判断的组网示意图;
图7A-7D是本发明实施例提供的电子设备的结构示意图;
图8是本发明另一些实施例提供的电子设备的结构示意图。
具体实施方式
本发明实施例以电子设备为手机为例进行说明,图1示出的是与本申请各实施例相关的手机100的部分结构的框图。
如图1所示,手机10包括:射频(Radio Frequency,RF)电路110、存储器120、其他输入设备130、显示屏140、传感器150、音频电路160、I/O子系统170、处理 器180、以及电源190等部件。本领域技术人员可以理解,图1中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。且手机100可以包括比图示或者更少的用户界面。下面结合图1对手机100的各个构成部件进行具体的介绍:
RF电路110可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器180处理;另外,将设计上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、LNA(Low Noise Amplifier,低噪声放大器)、双工器等。此外,RF电路110还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于GSM(Global System of Mobile communication,全球移动通讯系统)、GPRS(General Packet Radio Service,通用分组无线服务)、CDMA(Code Division Multiple Access,码分多址)、WCDMA(Wideband Code Division Multiple Access,宽带码分多址)、LTE(Long Term Evolution,长期演进)、电子邮件、SMS(Short Messaging Service,短消息服务)等。
存储器120可用于存储软件程序以及模块,处理器180通过运行存储在存储器120的软件程序以及模块,从而执行手机100的各种功能应用以及数据处理。存储器120可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机100的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
其他输入设备130可用于接收输入的数字或字符信息,以及产生与手机100的用户设置以及功能控制有关的键信号输入。具体地,其他输入设备130可包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆、光鼠(光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸)等中的一种或多种。其他输入设备130与I/O子系统170的其他输入设备控制器171相连接,在其他设备输入控制器171的控制下与处理器180进行信号交互。
显示屏140可用于显示由用户输入的信息或提供给用户的信息以及手机100的各种菜单,还可以接受用户输入。具体的显示屏140可包括显示面板141,以及触控面板142。其中显示面板141可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板141。
触控面板142,也称为触摸屏、触敏屏等,可收集用户在其上或附近的接触或者非接触操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板142上或在触控面板142附近的操作,也可以包括体感操作;该操作包括单点控制操作、多点控制操作等操作类型,并根据预先设定的程序驱动相应的连接装置。可选的,触控面板142可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位、姿势,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成处理器能够处理的信息, 再发送给处理器180,并能接收处理器180发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板142,也可以采用未来发展的任何技术实现触控面板142。进一步的,触控面板142可覆盖显示面板141,用户可以根据显示面板141显示的内容(该显示内容包括但不限于,软键盘、虚拟鼠标、虚拟按键、图标等等),在显示面板141上覆盖的触控面板142上或者附近进行操作,触控面板142检测到在其上或附近的操作后,通过I/O子系统170传送给处理器180以确定用户输入,随后处理器180根据用户输入通过I/O子系统170在显示面板141上提供相应的视觉输出。虽然在图1中,触控面板142与显示面板141是作为两个独立的部件来实现手机100的输入和输入功能,但是在某些实施例中,可以将触控面板142与显示面板141集成而实现手机100的输入和输出功能。
手机100还可包括至少一种传感器150,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板141的亮度,接近传感器可在手机100移动到耳边时,关闭显示面板141和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机100还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路160、扬声器161,麦克风162可提供用户与手机100之间的音频接口。音频电路160可将接收到的音频数据转换后的信号,传输到扬声器161,由扬声器161转换为声音信号输出;另一方面,麦克风162将收集的声音信号转换为信号,由音频电路160接收后转换为音频数据,再将音频数据输出至RF电路110以发送给比如另一手机,或者将音频数据输出至存储器120以便进一步处理。
可选的,手机100还包括摄像头155。摄像头155可以把外界的光信号转换为电信号,生成电子图像。通常来说,摄像头155包括一个镜头和一个图像传感器,其中镜头用于将外界光聚焦到图像传感器上,图像传感器则用于将接收到的光信号转换为电信号。常用的图像传感器有电荷耦合器件(Charge-Coupled Device,简称CCD)、互补金属氧化物半导体(Complementary Metal Oxide Semiconductor,简称CMOS)传感器等。摄像头155通常还包括对焦机构,用于调节镜头与图像传感器之间的距离,以使镜头所成的像能正好落在图像传感器上。可选的,摄像头155还包括变焦机构,用于改变镜头的焦距,从而能够改变拍摄的视场。摄像头155还可以包括增益电路,用于放大图像传感器生成的模拟信号。调节该增益电路的增益可以使摄像头155在光线暗弱的环境下拍照,但是通常会产生更大的噪声,对应于电子图像则是会有更多的噪点。这种调节相当于传统摄影术中改变底片的ISO值,通常也使用对应的底片ISO值来标识增益电路的增益。摄像头155通常还包括模拟/数字转换器(A/D converter),用于将图像传感器生成的模拟信号转换为数字信号。
I/O子系统170用来检测输入输出的外部设备,可以包括其他设备输入控制器171、传感器控制器172、显示控制器173。可选的,一个或多个其他输入控制设备控制器171从其他输入设备130接收信号和/或者向其他输入设备130发送信号,其他输入 设备130可以包括物理按钮(按压按钮、要比按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮、光鼠(光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸)。值得说明的是,其他输入控制设备控制器171可以与任一个或者多个上述设备连接。所述I/O子系统170中的显示控制器173从显示屏140接收信号和/或者向显示屏140发送信号。显示屏140检测到用户输入后,显示控制器173将检测到的用户输入转换为与显示在显示屏140上的用户界面对应的交互,即实现人机交互。传感器控制器172可以从一个或者多个传感器150接收信号和/或者向一个或者多个传感器150发送信号。当然,本申请实施例的电子设备中的一个或者多个传感器150中包括环境光传感器(Ambient Light Sensor,ALS),该环境光传感器用于检测电子设备所处环境的环境光,该环境光传感器可连续地或周期性地监视电子设备所处环境的环境光。当然,该一个或者多个传感器150中还可以包括位置传感器用于确定电子设备的位置,其可连续地或周期性地监视电子设备的位置。
处理器180是手机100的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行手机100的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器180可包括一个或多个处理单元;处理器180可以集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器180中。
手机100还包括给各个部件供电的电源190(比如电池),可选的,电源190可以通过电源管理系统与处理器180逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗等功能。尽管未示出,手机100还可以包括摄像头、无线保真(wireless fidelity,WiFi)模块、全球定位系统(Global Positioning System,GPS)模块以及蓝牙模块等,本申请实施例在此不再赘述。
如图3A所述,本发明的一个实施例提供一种分享图片的方法,包括:
310、电子设备接收分享第一图片的指令;
这里,所谓分享第一图片,通常是指一个将所述第一图片发送给某个联系人的操作。这一操作可以有不同的名称,例如“分享”、“发送”、“发送给好友”,等等。本发明实施例对于这一操作的名称不作限定。
用户可以使用多种方式向所述电子设备发出所述分享第一图片的指令,例如用户可以在电子设备上打开所述第一图片,然后点击“分享”按钮,就如图2A至图2C所示。也可以是在用户拍照之后自动进行分享,此时,拍照指令——例如点击电子设备屏幕上的“拍照”按钮,或者按下电子设备上的快门按键——便可视为分享所述第一图片的指令。用户也可以通过语音命令接口发出分享所述第一图片的指令。现在已有多种语音命令接口,例如苹果公司开发的Siri语音助手、微软公司开发的微软小娜(Cortana)、科大讯飞开发的讯飞语音助手等。这些语音命令接口借助语音识别技术,可以识别用户说出的自然语言命令,并对这些自然语言命令进行语义分 析,然后执行相应的操作。例如用户可以对所述电子设备说出“分享这张图片”,所述电子设备便会执行分享该图片的操作。
所述第一图片是电子设备中存储的图像数据,可以是各种图像文件,例如jpeg文件、bmp文件等位图格式的图像文件,也可以是矢量图格式的文件。所述第一图片既可以是静态图片,也可以是视频等动态图片。所述第一图片可以是所述电子设备拍摄的照片或视频,也可以是从其他地方获取的图片,例如通过电子邮件、彩信、即时通信软件等接收到的图片,或者通过蓝牙等短距离无线通信接收到的图片,或者从电脑、移动硬盘等存储设备拷贝的图片等,本发明实施例对此不作限定。
320、当所述第一图片中包含第一联系人的图像时,所述电子设备向所述第一联系人发送所述第一图片。
这里所述第一联系人是所述电子设备用户的一个联系人,他的联系信息保存在所述电子设备中。所述第一联系人的联系信息可以保存在电子设备管理联系人信息的系统应用中,通常来说,这个应用被称为“联系人”、“电话本”、“通讯录”,或者其他名称。所述第一联系人的信息也可以保存在其他通信软件中,例如电子邮件的联系人列表、即时通信软件(例如腾讯QQ)的好友列表、社交网络应用(例如推特、脸书、新浪微博、微信)的好友列表或者关注列表等等。
当所述第一图片中包含所述第一联系人的图像时,所述电子设备便将所述第一图片发送给所述第一联系人。这里所述电子设备可以是自动发送所述第一图片,也可以是让用户确认之后再发送。
所述电子设备可以用多种方式把所述第一图片发送给所述第一联系人,例如电子邮件、蓝牙、彩信、即时通信应用、社交网络应用等。在本发明实施例中,可以由用户选定发送的方式,作为一个示例,如图2C所示,用户在点击“分享”按钮后,界面上弹出一个框,里边有各种分享的方式,如电子邮件、QQ、微信等,用户点击其中一个,接下来电子设备就使用该方式发送图片。也可以采用默认的或者用户习用的方式发送所述第一图片,例如默认使用彩信发送,或者根据历史统计用户最常用微信发送,则使用微信发送所述第一图片。也可以根据所述第一联系人的联系方式来选定发送的方式,例如所述电子设备保存了所述第一联系人的电话号码,则可以使用彩信的方式发送所述第一图片,如果所述电子设备保存了所述第一联系人的微信号,则可以使用微信发送所述第一图片。
在一个实施例中,如图3B所示,电子设备可以利用图像识别技术来判断所述第一图片中包含所述第一联系人的图像:
3201、对所述第一图片进行图像识别;
经过多年的研究发展,现今的图像识别技术已经达到了相当的高度。借助于神经网络、机器学习等人工智能技术,现在已有的图像识别技术已经能够很好的识别图片中的各种物体,例如可以识别出图片中的物体是人、动物、房屋等。图像识别技术还能很好的分辨出人脸。
对于视频等动态图片而言,可以对其中的一帧图像进行图像识别,也可以对该动态图片的缩略图进行图像识别。
3202、将识别到的第一人物图像与所述第一联系人的参考图像进行对比;
如果识别出所述第一图片包含有人物,则可以将其中的第一人物图像提取出来。这里,所述第一人物图像是所述第一图片中一个人物的图像,所述第一图片可以包含一个或者复数个人物。图像识别技术可以将这些人物图像都识别出来,并将它们提取出来以供对比。
3203、当确定所述第一人物图像与所述第一联系人的参考图像属于同一人时,向所述第一联系人发送所述第一图片。
所述电子设备可以将所述第一人物图像与所述第一联系人的参考图像进行对比,以确定是否为同一人。这里所述第一联系人的参考图像,是用来作为对比基准的一幅所述第一联系人的图像。该参考图像可以有多种来源。例如现在很多电子设备的“联系人”应用,以及很多即时通信软件、社交网络应用都可以保存联系人的图像信息。作为一个示例,如图4所示,在联系人应用中,每个联系人都保存有“头像”。此外,该参考图像可以由用户指定,例如用户可以在所述电子设备保存的图片中选出一幅包含所述第一联系人的图片指定为所述第一联系人的参考图像。
所述电子设备还可以存储以前分享给所述第一联系人的图片作为所述第一联系人的参考图像。例如,如图5所示,在步骤310之前上述实施例还可以包括:
3001、所述电子设备接收分享第二图片的指令;
这里第二图片可以是不同于所述第一图片的图片。
3002、根据所述分享第二图片的指令向所述第一联系人发送所述第二图片;
这里,所述电子设备可以按照传统的分享图片的方式向所述第一联系人发送所述第二图片,也可以用本发明实施例提供的方式向所述第一联系人发送所述第二图片。
3003、存储所述第二图片作为所述第一联系人的参考图像。
因为第二图片是分享给所述第一联系人的,通常是包含了所述第一联系人图像的,所以可以作为所述第一联系人的参考图像。
所述电子设备可以通过多种算法来判定所述第一人物图像与所述第一联系人的参考图像是否为同一人,例如ASM算法、深度学习算法等。得益于神经网络和深度学习等人工智能技术的进步,现在图像对比的准确度有了大幅提升。
作为一个示例,如图2B所示,在图示的图片中有一个人物,用户点击“分享”按钮,此时如图2C所示,用户界面上弹出一个框,显示分享的方式,如电子邮件、微信、QQ等。在本例中,用户点击电子邮件图标,触发所述电子设备提取出这个人物的图像,之后电子设备将这个人物的图像与联系人应用中存储的联系人头像进行对比,发现上述人物的图像与名叫李梦娟的联系人的图像匹配,于是所述电子设备 将要分享的图片附加到电子邮件作为附件发送到李梦娟的邮箱lmj@abc.com。这里,电子设备可以自动发送邮件,也可以是将图片附加到电子邮件作为附件之后,让用户手动点击发送。
在本发明的另一个实施例中,所述电子设备可以通过所述第一图片中的名牌来确定要分享的联系人。如图3C所示,
3301、对所述第一图片进行图像识别;
3302、识别所述第一图片中包含的第一名牌上的名字;
如图2D所示,在某些图片中,会出现人物的名牌,例如胸牌、座位上的名牌等,所述电子设备可以设别这些名牌,并进一步识别名牌上的名字。所述电子设备可以通过样本训练分辨出名牌,而文字的识别则是成熟的技术。
3303、当确定所述第一名牌上的名字为所述第一联系人的名字时,向所述第一联系人发送所述第一图片。
所述电子设备可以将识别出来的名字与存储的联系人的名字进行对比,将与所述第一名牌上的名字匹配的联系人确定为所述第一联系人。第一联系人的名字可以是保存在联系人应用中,或者是即时通信软件、社交网络应用等应用中。
以上实施例是电子设备自己判断所述第一图像中是否有所述第一联系人的图像,除此之外,如图6所示,也可以由另一个设备,例如一个服务器600来判断所述第一图像中是否有所述第一联系人的图像,由于服务器600的处理能力比一般的电子设备100要强很多,因此可以更高效的处理所述判断。如图3D所示,在一个实施例中,前述步骤320包括:
3401、将所述第一图片发送给第二设备,以使所述第二设备确定所述第一图片中是否包含所述第一联系人的图像;
这里的第二设备可以是一个服务器,或者其他电子设备,所述第二设备可以对所述一图片中是否包含所述第一联系人的图像作出判断,并将结果发送给电子设备。
3402、当所述电子设备接收到所述第二设备发送的确定所述第一图片中包含所述第一联系人的图像的判定结果时,向所述第一联系人发送所述第一图片。
所述第二设备可以采用之前各实施例所公开的方法确定述第一图片中包含所述第一联系人的图像,也可以采用其他方法,对此本发明实施例不作限定。
如图7A所示,本发明的一个实施例提供了一种电子设备,包括:
接收单元701,用于接收分享第一图片的指令;
处理单元702,用于当所述第一图片中包含第一联系人的图像时,所述电子设备向所述第一联系人发送所述第一图片。
这里,接收单元701和处理单元702可以如前述实施例那样进行处理。接收单 元701具体可以包括之前介绍的触控面板142,或者其他输入设备130,还可以包括相应的输入控制器等周边电路。处理单元702可以包括之前介绍的处理器180,以及RF电路110,还可以包括其他通信模块例如红外通信模块等。
在一个实施例中,如图7A所示,所述处理单元,包括:
图像识别模块7201,用于对所述第一图片进行图像识别;
对比模块7202,用于将识别到的第一人物图像与所述第一联系人的参考图像进行对比;
发送模块7203,用于当确定所述第一人物图像与所述第一联系人的参考图像属于同一人时,向所述第一联系人发送所述第一图片。
在另一个实施例中,所述接收单元还用于接收分享第二图片的指令;所述处理单元还用于根据所述分享第二图片的指令向所述第一联系人发送所述第二图片;如图7B所示,所述电子设备还包括:
存储单元704,用于存储所述第二图片作为所述第一联系人的参考图像。
如前述实施例所公开的,所述第一联系人的参考图像可以为存储的所述第一联系人的头像。
如图7C所示,所述电子设备还可以包括:
发送单元705,用于将所述第一图片发送给第二设备,以使所述第二设备确定所述第一图片中是否包含所述第一联系人的图像;
所述接收单元701还用于接收所述第二设备发送的确定所述第一图片中包含所述第一联系人的图像的判定结果;
所述处理单元702具体用于当所述电子设备接收到所述第二设备发送的确定所述第一图片中包含所述第一联系人的图像的判定结果时,向所述第一联系人发送所述第一图片。
在又一个实施例中,如图7D所示,所述处理单元702包括:
图像识别模块7201,用于对所述第一图片进行图像识别,识别所述第一图片中包含的第一名牌上的名字;
发送模块7203,用于当确定所述第一名牌上的名字为所述第一联系人的名字时,向所述第一联系人发送所述第一图片。
如图8所示,本发明的另一个实施例提供一种电子设备,包括处理器801和发送器802,其中:
所述处理器801用于接收分享第一图片的指令,并且当所述第一图片中包含第一联系人的图像时,向所述发送器发出向第一联系人发送所述第一图片的指令;
所述发送器802用于根据所述处理器的指令,向所述第一联系人发送所述第一 图片。
这里的处理器801可以电子设备的中央处理单元(CPU),也可以是其他具有数据处理功能的电路,例如一些专用的处理器。当前为了提高各种神经网络算法的执行效率,已经有多款专用的神经网络处理器(neural network processing unit,缩写为NPU)被开发出来,例如中国科学院计算技术研究所开发的“寒武纪”处理器(英文名称为DianNao)、IBM开发的TrueNorth处理器、谷歌开发的张量处理单元(Tensor Processing Unit,缩写为TPU)等。为了提高图像识别等需要用到神经网络或者机器学习技术的算法的执行效率,所述电子设备可以在CPU之外设置另外的专用处理器作为本实施例中的处理器801。
在一个实施例中,所述当所述第一图片中包含第一联系人的图像时,向所述发送器发出向第一联系人发送所述第一图片的指令,具体包括:
对所述第一图片进行图像识别;
将识别到的第一人物图像与所述第一联系人的参考图像进行对比;
当确定所述第一人物图像与所述第一联系人的参考图像属于同一人时,向所述发送器发出向第一联系人发送所述第一图片的指令。
上述方式的具体实现,之前的实施例已有描述,此处不赘述。
如图8所示,在又一个实施例中,所述电子设备还包括存储器803,所述处理器801还用于:
接收分享第二图片的指令;
根据所述分享第二图片的指令,控制所述发送器802向所述第一联系人发送所述第二图片;
控制所述存储器803存储所述第二图片作为所述第一联系人的参考图像。
如前所述,所述第一联系人的参考图像可以为存储的所述第一联系人的头像。
作为另一种可能的实现方式,当所述第一图片中包含第一联系人的图像时,向所述发送器802发出向第一联系人发送所述第一图片的指令,具体包括:
对所述第一图片进行图像识别;
识别所述第一图片中包含的第一名牌上的名字;
当确定所述第一名牌上的名字为所述第一联系人的名字时,向所述发送器发出向第一联系人发送所述第一图片的指令。
上述方式的具体实现,之前的实施例已有描述,此处不赘述。
所述电子设备除了自己判断所述第一图片是否包括所述第一联系人的图像之外,也可以把上述判断交予另一设备例如服务器执行。在这一实施例中:
所述发送器803还用于将所述第一图片发送给第二设备,以使所述第二设备确定所述第一图片中是否包含所述第一联系人的图像;
所述电子设备还包括接收器804,所述接收器804用于接收所述第二设备发送的确定所述第一图片中包含所述第一联系人的图像的判定结果;
所述处理器801,具体用于当所述电子设备接收到所述第二设备发送的确定所述第一图片中包含所述第一联系人的图像的判定结果时,向所述发送器发出向第一联系人发送所述第一图片的指令。
另外,以上实施例中分别说明的各技术、系统、装置、方法以及各实施例中分别说明的技术特征可以进行组合,从而形成不脱离本发明的精神和原则之内的其他的模块,方法,装置,系统及技术,这些根据本发明实施例的记载组合而成的模块,方法,装置,系统及技术均在本发明的保护范围之内。
显然,本领域的技术人员应该明白,上述的本发明的各单元或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行。或者将它们分别制作成各个电路模块,或者将它们中的多个单元或步骤制作成单个电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上只是本发明的较佳实施例,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。

Claims (22)

  1. 一种分享图片的方法,包括:
    电子设备接收分享第一图片的指令;
    当所述第一图片中包含第一联系人的图像时,所述电子设备向所述第一联系人发送所述第一图片。
  2. 如权利要求1所述的方法,其特征在于,所述当所述第一图片中包含第一联系人的图像时,所述电子设备向所述第一联系人发送所述第一图片,具体包括:
    对所述第一图片进行图像识别;
    将识别到的第一人物图像与所述第一联系人的参考图像进行对比;
    当确定所述第一人物图像与所述第一联系人的参考图像属于同一人时,向所述第一联系人发送所述第一图片。
  3. 如权利要求2所述的方法,其特征在于,在所述电子设备接收分享第一图片的指令之前,还包括:
    所述电子设备接收分享第二图片的指令;
    根据所述分享第二图片的指令向所述第一联系人发送所述第二图片;
    存储所述第二图片作为所述第一联系人的参考图像。
  4. 如权利要求2所述的方法,其特征在于,所述第一联系人的参考图像为存储的所述第一联系人的头像。
  5. 如权利要求1所述的方法,其特征在于,所述当所述第一图片中包含第一联系人的图像时,所述电子设备向所述第一联系人发送所述第一图片,具体包括:
    对所述第一图片进行图像识别;
    识别所述第一图片中包含的第一名牌上的名字;
    当确定所述第一名牌上的名字为所述第一联系人的名字时,向所述第一联系人发送所述第一图片。
  6. 如权利要求1所述的方法,其特征在于,所述当所述第一图片中包含第一联系人的图像时,所述电子设备向所述第一联系人发送所述第一图片,具体包括:
    将所述第一图片发送给第二设备,以使所述第二设备确定所述第一图片中是否包含所述第一联系人的图像;
    当所述电子设备接收到所述第二设备发送的确定所述第一图片中包含所述第一联系人的图像的判定结果时,向所述第一联系人发送所述第一图片。
  7. 如权利要求1-6任一项所述的方法,其特征在于,所述向所述第一联系人发送所述第一图片,具体包括通过以下至少一种方式向所述第一联系人发送所述第一图片:
    彩信、电子邮件、即时通信软件、社交网络、蓝牙。
  8. 如权利要求1-6任一项所述的方法,其特征在于,所述向所述第一联系人发送所述第一图片,具体包括:
    使用存储所述第一联系人信息的应用软件向所述第一联系人发送所述第一图片。
  9. 一种电子设备,包括:
    接收单元,用于接收接收分享第一图片的指令;
    处理单元,用于当所述第一图片中包含第一联系人的图像时,所述电子设备向所述第一联系人发送所述第一图片。
  10. 如权利要求9所述的电子设备,其特征在于,所述处理单元,包括:
    图像识别模块,用于对所述第一图片进行图像识别;
    对比模块,用于将识别到的第一人物图像与所述第一联系人的参考图像进行对比;
    发送模块,用于当确定所述第一人物图像与所述第一联系人的参考图像属于同一人时,向所述第一联系人发送所述第一图片。
  11. 如权利要求10所述的电子设备,其特征在于:
    所述接收单元还用于接收分享第二图片的指令;
    所述处理单元还用于根据所述分享第二图片的指令向所述第一联系人发送所述第二图片;
    所述电子设备还包括:
    存储单元,用于存储所述第二图片作为所述第一联系人的参考图像。
  12. 如权利要求10所述的电子设备,其特征在于,所述第一联系人的参考图像为存储的所述第一联系人的头像。
  13. 如权利要求9所述的电子设备,其特征在于,所述电子设备还包括:
    发送单元,用于将所述第一图片发送给第二设备,以使所述第二设备确定所述第一图片中是否包含所述第一联系人的图像;
    所述接收单元还用于接收所述第二设备发送的确定所述第一图片中包含所述第一联系人的图像的判定结果;
    所述处理单元具体用于当所述电子设备接收到所述第二设备发送的确定所述第一图片中包含所述第一联系人的图像的判定结果时,向所述第一联系人发送所述第一图片。
  14. 如权利要求9所述的电子设备,其特征在于,所所述处理单元,包括:
    图像识别模块,用于对所述第一图片进行图像识别,识别所述第一图片中包含的第一名牌上的名字;
    发送模块,用于当确定所述第一名牌上的名字为所述第一联系人的名字时,向所述第一联系人发送所述第一图片。
  15. 如权利要求9-14任一项所述的电子设备,其特征在于,所述向所述第一联系人发送所述第一图片,具体包括通过以下至少一种方式向所述第一联系人发送所述第一图片:
    彩信、电子邮件、即时通信软件、社交网络、蓝牙。
  16. 如权利要求9-14任一项所述的电子设备,其特征在于,所述向所述第一联系人发送所述第一图片,具体包括:
    使用存储所述第一联系人信息的应用软件向所述第一联系人发送所述第一图片。
  17. 一种电子设备,包括处理器和发送器,其中:
    所述处理器用于接收分享第一图片的指令,并且当所述第一图片中包含第一联系人的图像时,向所述发送器发出向第一联系人发送所述第一图片的指令;
    所述发送器用于根据所述处理器的指令,向所述第一联系人发送所述第一图片。
  18. 如权利要求17所述的电子设备,其特征在于,所述当所述第一图片中包含第一联系人的图像时,向所述发送器发出向第一联系人发送所述第一图片的指令,具体包括:
    对所述第一图片进行图像识别;
    将识别到的第一人物图像与所述第一联系人的参考图像进行对比;
    当确定所述第一人物图像与所述第一联系人的参考图像属于同一人时,向所述发送器发出向第一联系人发送所述第一图片的指令。
  19. 如权利要求17所述的电子设备,其特征在于:
    所述电子设备还包括存储器;
    所述处理器还用于:
    接收分享第二图片的指令;
    根据所述分享第二图片的指令,控制所述发送器向所述第一联系人发送所述第二图片;
    控制所述存储器存储所述第二图片作为所述第一联系人的参考图像。
  20. 如权利要求19所述的电子设备,其特征在于,所述第一联系人的参考图像为存储的所述第一联系人的头像。
  21. 如权利要求17所述的电子设备,其特征在于,当所述第一图片中包含第一联系人的图像时,向所述发送器发出向第一联系人发送所述第一图片的指令,具体包括:
    对所述第一图片进行图像识别;
    识别所述第一图片中包含的第一名牌上的名字;
    当确定所述第一名牌上的名字为所述第一联系人的名字时,向所述发送器发出向第一联系人发送所述第一图片的指令。
  22. 如权利要求17所述的电子设备,其特征在于:
    所述发送器还用于将所述第一图片发送给第二设备,以使所述第二设备确定所述第一图片中是否包含所述第一联系人的图像;
    所述电子设备还包括接收器,所述接收器用于接收所述第二设备发送的确定所述第一图片中包含所述第一联系人的图像的判定结果;
    所述处理器,具体用于当所述电子设备接收到所述第二设备发送的确定所述第一图片中包含所述第一联系人的图像的判定结果时,向所述发送器发出向第一联系人发送所述第一图片的指令。
PCT/CN2017/087200 2017-04-10 2017-06-05 一种分享图片的方法和电子设备 WO2018188180A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201780089452.3A CN110800276A (zh) 2017-04-10 2017-06-05 一种分享图片的方法和电子设备

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710230331.8 2017-04-10
CN201710230331 2017-04-10

Publications (1)

Publication Number Publication Date
WO2018188180A1 true WO2018188180A1 (zh) 2018-10-18

Family

ID=63792086

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/087200 WO2018188180A1 (zh) 2017-04-10 2017-06-05 一种分享图片的方法和电子设备

Country Status (2)

Country Link
CN (1) CN110800276A (zh)
WO (1) WO2018188180A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113852675A (zh) * 2021-09-13 2021-12-28 维沃移动通信(杭州)有限公司 图像分享方法、装置、设备、存储介质和程序产品

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112988688B (zh) * 2021-03-24 2024-06-11 百度在线网络技术(北京)有限公司 一种图片共享方法、装置、电子设备及存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102118510A (zh) * 2011-03-17 2011-07-06 宇龙计算机通信科技(深圳)有限公司 联系人关联方法、服务器和移动终端
CN102368746A (zh) * 2011-09-08 2012-03-07 宇龙计算机通信科技(深圳)有限公司 图片信息推送方法及装置
CN103414821A (zh) * 2013-07-15 2013-11-27 珠海市魅族科技有限公司 图片传递方法及装置
CN103412877A (zh) * 2013-07-15 2013-11-27 珠海市魅族科技有限公司 图片传递方法及装置
CN105095873A (zh) * 2015-07-31 2015-11-25 小米科技有限责任公司 照片共享方法、装置
CN105592221A (zh) * 2015-12-17 2016-05-18 惠州Tcl移动通信有限公司 一种多媒体的发送方法及通信终端
CN106034179A (zh) * 2015-03-18 2016-10-19 中兴通讯股份有限公司 照片的分享方法及装置

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101877737A (zh) * 2009-04-30 2010-11-03 深圳富泰宏精密工业有限公司 通讯装置及其分享照片的方法
CN102215302B (zh) * 2011-05-28 2013-12-18 华为技术有限公司 一种联系人头像提供方法、管理平台及用户终端

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102118510A (zh) * 2011-03-17 2011-07-06 宇龙计算机通信科技(深圳)有限公司 联系人关联方法、服务器和移动终端
CN102368746A (zh) * 2011-09-08 2012-03-07 宇龙计算机通信科技(深圳)有限公司 图片信息推送方法及装置
CN103414821A (zh) * 2013-07-15 2013-11-27 珠海市魅族科技有限公司 图片传递方法及装置
CN103412877A (zh) * 2013-07-15 2013-11-27 珠海市魅族科技有限公司 图片传递方法及装置
CN106034179A (zh) * 2015-03-18 2016-10-19 中兴通讯股份有限公司 照片的分享方法及装置
CN105095873A (zh) * 2015-07-31 2015-11-25 小米科技有限责任公司 照片共享方法、装置
CN105592221A (zh) * 2015-12-17 2016-05-18 惠州Tcl移动通信有限公司 一种多媒体的发送方法及通信终端

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113852675A (zh) * 2021-09-13 2021-12-28 维沃移动通信(杭州)有限公司 图像分享方法、装置、设备、存储介质和程序产品

Also Published As

Publication number Publication date
CN110800276A (zh) 2020-02-14

Similar Documents

Publication Publication Date Title
WO2018010512A1 (zh) 拍摄文件上传方法及装置
CN107665089B (zh) 触摸屏上的手指识别
CN108494947B (zh) 一种图像分享方法及移动终端
WO2018214734A1 (zh) 拍照控制方法及相关产品
CN107896279A (zh) 一种移动终端的截屏处理方法、装置及移动终端
WO2019100298A1 (zh) 一种拍照方法及终端
CN106027916A (zh) 一种补光拍照方法及终端
WO2016045226A1 (zh) 信息处理方法和装置
WO2020048392A1 (zh) 应用程序的病毒检测方法、装置、计算机设备及存储介质
WO2018161353A1 (zh) 一种分享照片的方法和装置
WO2019062611A1 (zh) 消息处理方法、消息查看方法和终端
WO2017012439A1 (zh) 图片拼接方法、终端及系统
US20150358451A1 (en) Communications with wearable devices
WO2018107580A1 (zh) 一种信息提示的方法及装置
CN108363524B (zh) 一种应用程序图标显示方法及移动终端
CN108881719B (zh) 一种切换拍摄方式的方法及终端设备
WO2018094725A1 (zh) 一种头像显示的方法以及头像显示装置
WO2017050090A1 (zh) 生成gif文件的方法、设备及计算机可读存储介质
CN107888833A (zh) 一种图像拍摄方法及移动终端
CN107623794A (zh) 一种语音数据的处理方法、装置及移动终端
WO2019120190A1 (zh) 拨号方法及移动终端
WO2020135269A1 (zh) 会话创建方法及终端设备
CN108549660A (zh) 信息推送方法及装置
CN108062195A (zh) 一种通知事件的提示方法及移动终端
WO2018188180A1 (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: 17905143

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17905143

Country of ref document: EP

Kind code of ref document: A1

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载