WO2022228068A1 - Image acquisition method, apparatus, and system for electronic device, and electronic device - Google Patents

Image acquisition method, apparatus, and system for electronic device, and electronic device Download PDF

Info

Publication number
WO2022228068A1
WO2022228068A1 PCT/CN2022/085407 CN2022085407W WO2022228068A1 WO 2022228068 A1 WO2022228068 A1 WO 2022228068A1 CN 2022085407 W CN2022085407 W CN 2022085407W WO 2022228068 A1 WO2022228068 A1 WO 2022228068A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
image acquisition
action
recognition result
head
Prior art date
Application number
PCT/CN2022/085407
Other languages
French (fr)
Chinese (zh)
Inventor
裴璇
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2022228068A1 publication Critical patent/WO2022228068A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • G06F3/012Head tracking input arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/10Image acquisition
    • G06V10/12Details of acquisition arrangements; Constructional details thereof
    • G06V10/14Optical characteristics of the device performing the acquisition or on the illumination arrangements
    • G06V10/147Details of sensors, e.g. sensor lenses
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/20Movements or behaviour, e.g. gesture recognition

Definitions

  • the present application relates to the field of electronic technologies, and more particularly, to an image acquisition method, apparatus, system and electronic device of an electronic device.
  • the present application provides an image acquisition method, device, system and electronic device of an electronic device, which enriches the interaction mode of human-computer interaction.
  • An aspect of the present application provides an image acquisition method for an electronic device, the electronic device is communicatively connected to a wearable device, and the image acquisition method includes: when an image acquisition request is detected, sending a first message, where the first message is used to notify The wearable device collects head motion information; receives the head motion information, performs motion recognition according to the head motion information, and generates a motion recognition result; if the motion recognition result conforms to a preset motion, controls the electronic device to perform a corresponding image acquisition operation.
  • the present application also provides an image acquisition device, the image acquisition device is communicatively connected to a wearable device, and the image acquisition device includes: a message sending module, configured to send a first message when an image acquisition request is detected, The first message is used to notify the wearable device to collect head motion information; the motion recognition module is used to receive the head motion information, perform motion recognition according to the head motion information, and generate a motion recognition result; the operation execution module is used for When the action recognition result conforms to the preset action, the electronic device is controlled to perform a corresponding image acquisition operation.
  • a message sending module configured to send a first message when an image acquisition request is detected, The first message is used to notify the wearable device to collect head motion information
  • the motion recognition module is used to receive the head motion information, perform motion recognition according to the head motion information, and generate a motion recognition result
  • the operation execution module is used for When the action recognition result conforms to the preset action, the electronic device is controlled to perform a corresponding image acquisition operation.
  • the present application also provides an electronic device, the electronic device is communicatively connected with a wearable device, the electronic device includes one or more processors and a memory; one or more programs are stored in the memory and configured to Executed by one or more processors to implement the above-described method.
  • the present application also provides an image acquisition system, including an electronic device and a wearable device; the electronic device and the wearable device are communicatively connected; the electronic device includes a processor, and the processor is configured to: when an image acquisition request is detected , send a first message, where the first message is used to notify the wearable device to collect head motion information; receive head motion information, perform motion recognition according to the head motion information, and generate motion recognition results; When setting the action, the electronic device is controlled to perform the corresponding image acquisition operation.
  • the image acquisition method, device, system and electronic equipment of electronic equipment provided by this application, the electronic equipment acquires the user's head motion information through the wearable device, and recognizes the user's head motion information, and different head motion information corresponds to different operation, thereby controlling the electronic device to perform different image acquisition operations.
  • the user can remotely perform image acquisition operations such as taking pictures and taking pictures without holding the electronic device, which greatly expands the interactive mode of human-computer interaction and improves the degree of freedom and quality of taking pictures.
  • FIG. 1 is a schematic diagram of an image acquisition system proposed by an embodiment of the present application.
  • FIG. 2 is a flowchart of an image acquisition method of an electronic device proposed by an embodiment of the present application
  • FIG. 3 is a flowchart of an image acquisition method of an electronic device proposed by another embodiment of the present application.
  • FIG. 4 is a flowchart of an image acquisition method of an electronic device proposed by another embodiment of the present application.
  • Fig. 5 is a kind of structural schematic diagram of the image acquisition method of the electronic device proposed in Fig. 4;
  • FIG. 6 is another schematic structural diagram of the image acquisition method of the electronic device proposed in FIG. 4;
  • FIG. 7 is a flowchart of an image acquisition method of an electronic device proposed by yet another embodiment of the present application.
  • Fig. 8 is a kind of structural schematic diagram of the image acquisition method proposed in Fig. 7;
  • FIG. 9 is a structural block diagram of an image acquisition apparatus proposed by an embodiment of the present application.
  • FIG. 10 is a structural block diagram of an electronic device proposed by an embodiment of the present application.
  • references in this specification to "one embodiment” or “some embodiments” and the like mean that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application.
  • appearances of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in other embodiments,” etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless specifically emphasized otherwise.
  • the terms “including”, “including”, “having” and their variants mean “including but not limited to” unless specifically emphasized otherwise.
  • Human-computer interaction refers to the process of information exchange between people and computers using a certain dialogue language between people and computers to complete certain tasks in a certain interactive way.
  • the human-computer interaction function is mainly completed by external devices that can input and output and corresponding software.
  • the devices that can be used for human-computer interaction mainly include keyboard display, mouse, and various pattern recognition devices.
  • the software corresponding to these devices is the part of the operating system that provides the human-computer interaction function.
  • the main function of the human-computer interaction part is to control the operation of the relevant equipment and to understand and execute the relevant commands and requirements transmitted through the human-computer interaction equipment.
  • An early human-computer interaction facility was the keyboard monitor. The operator enters the command through the keyboard, and the operating system executes the command immediately after receiving the command and displays the result through the display. There are different ways to enter the command, but the explanation of each command is clear and unique.
  • Face recognition is a biometric identification technology based on human facial feature information. Capture images or video streams containing faces with a camera, and automatically detect and track faces in the images.
  • Human pose recognition is defined in this application as the problem of locating key points of the human body, namely the detection of human skeleton key points, also known as pose estimation, which has always been an important concern in the field of computer vision.
  • Human skeleton key point detection mainly detects the key point information of the human body, such as joints, facial features, etc., and describes the human skeleton information through key points.
  • FIG. 1 is a schematic diagram of an image acquisition system 100 proposed by an embodiment of the present application.
  • the image acquisition system 100 may include an electronic device 110 and a wearable device 120 .
  • the electronic device 110 may be a smart phone, a tablet computer, a smart wearable device (such as a smart bracelet, a smart watch, etc.), a smart large screen, a gateway, a vehicle-mounted device, a notebook computer, etc.
  • Device 120 may include at least one of smart glasses, smart headphones, smart earrings, or smart collars.
  • the wearable device 120 is a smart earphone
  • the smart earphone may be a TWS (True Wireless Stereo, true wireless stereo) earphone.
  • the wearable device 120 may be a single component, and the wearable device 120 may also include a first component and a second component.
  • the first component and the second component may be independent components, the first component is an independent device in physical form, and the second component is also an independent device in physical form.
  • the wearable device is a TWS earphone
  • the first component is the left earphone in the TWS earphone
  • the second component is the right earphone in the TWS earphone.
  • the wearable device is a smart earring
  • the first component is the left earring in the smart earring
  • the second component is the right earring in the smart earring.
  • the first component and the second component are components disposed in different positions in the same wearable device 120 .
  • the wearable device 120 is smart glasses
  • the first component is arranged in the left temple
  • the second component is arranged in the right temple.
  • the electronic device 110 and the wearable device 120 are communicatively connected, wherein the electronic device 110 and the wearable device 120 may be connected wirelessly or connected through a physical connection line.
  • the electronic device 110 and the wearable device 120 may establish a communication link through a wireless communication protocol, wherein the wireless communication protocol may include a Wlan protocol, a Bluetooth protocol, or a ZigBee protocol.
  • the electronic device 110 includes a processor 1120 .
  • the electronic device 110 may further include a display screen and a camera.
  • the processor 1120 sends a first message, where the first message is used to notify the wearable device 120 to collect head motion information.
  • the processor 1120 receives the head motion information, performs motion recognition according to the head motion information, and generates a motion recognition result.
  • the processor 1120 controls the electronic device 110 to perform a corresponding image capturing operation.
  • the image acquisition operation here may be photographing and recording, or may be live video broadcasting, video conferencing, or the like.
  • the electronic device 110 obtains the user's head motion information through the wearable device 120 and performs corresponding operations.
  • the wearable device 120 may include an acceleration sensor or a magnetic sensor, or an acceleration sensor and a magnetic sensor.
  • the accelerometer can detect and sense sudden acceleration or deceleration to obtain the acceleration data of the head.
  • Magnetic sensors can acquire magnetic field data and detect the linear or angular velocity of the head.
  • an acceleration sensor and a magnetic sensor are used to collect acceleration data and magnetic field data, and the electronic device calculates the head attitude angle according to the acceleration data and the magnetic field data, and then can judge the head attitude according to the attitude angle.
  • the electronic device 110 may include a motion recognition module for performing motion recognition on sensor data collected by the wearable device 120 , and then the electronic device 110 may be controlled through the motion recognition result.
  • the image acquisition system 100 includes an electronic device 110 and a wearable device 120 , and the electronic device 110 is communicatively connected to the wearable device 120 .
  • the processor 1120 of the electronic device 110 sends a first message, where the first message is used to notify the wearable device 120 to collect head motion information.
  • the wearable device 120 detects head motion information through an acceleration sensor and a magnetic sensor, and sends the information to the electronic device 110 .
  • the processor 1120 of the electronic device 110 receives the head motion information, performs motion recognition according to the head motion information, and generates the motion recognition result; when the motion recognition result conforms to a preset motion, the processor 1120 controls The electronic device performs a corresponding image acquisition operation.
  • an embodiment of the present application provides an image acquisition method of an electronic device, where the electronic device is communicatively connected to a wearable device, and the method includes:
  • the detection of an image acquisition request is the detection of a user's image acquisition triggering operation in the electronic device, and the triggering method may be triggered by the user clicking on the display screen, or may be triggered by voice, or may be triggered by a button.
  • the app can take pictures or videos from the camera, as well as video calls, video conferences or live broadcasts.
  • the electronic device detects the user's image acquisition request, the electronic device sends a first message to the wearable device, where the first message is used to notify the wearable device to collect head motion information.
  • the electronic device sends the first message to the wearable device, which may send a continuous signal or a discrete signal. Specifically, when sending discrete signals, it can stop after sending one or more signals per unit time, such as sending notification messages three or five times per second; information.
  • This information may be head motion information sent by the wearable device, or may simply be the feedback information of the wearable device indicating that the head motion information has been received.
  • the wearable device may include an acceleration sensor and a magnetic sensor.
  • the acceleration sensor can be a three-axis sensor.
  • the wearable device receives the first message sent by the electronic device, the built-in three-axis acceleration sensor of the wearable device starts to collect sensor data from the three dimensions of X, Y, and Z, while the magnetic sensor collects the magnetic field. data.
  • the wearable device sends two kinds of data to the electronic device to identify the head movement information.
  • the head motion information includes but is not limited to: shaking his head, nodding, raising his head and shaking his head.
  • the electronic device before sending the first message, can also detect whether the electronic device is in a connected state with the wearable device, and if the electronic device is in a connected state with the wearable device, the electronic device sends the first message again.
  • connection state between the electronic device and the wearable device may include a connected state and a non-connected state, wherein the non-connected state includes a non-connected state and a connection interrupted state.
  • the connection state between the electronic device and the wearable device can be determined by checking the state value of the electronic device.
  • two different state values can be set for the electronic device in advance.
  • the first state value is returned, and when the electronic device is not connected to the wearable device, the second state value is returned, so that whether the electronic device is compatible with the wearable device can be determined by detecting the first state value and the second state value.
  • the device is connected.
  • the first state value of the electronic device is set to 1 in advance
  • the second state value of the electronic device is set to 0. If the state value of the electronic device is detected to be 1, it is determined that the electronic device is connected to the wearable device.
  • the electronic device and the wearable device are in a disconnected state.
  • it is determined that the connection between the electronic device and the wearable device is in a disconnected state.
  • the electronic device will send a broadcast when the wearable device is connected and disconnected, so the electronic device can determine whether the electronic device is in a connected state with the wearable device by monitoring the broadcast.
  • the head motion information is the data of the acceleration sensor and the magnetic sensor
  • the electronic device receives the data of the acceleration sensor and the magnetic sensor of the wearable device, and imports them into the action recognition model to obtain the actions output by the action recognition model.
  • Classification results Specifically, according to the received head motion information, the electronic device obtains the average value of the values of the X, Y, and Z channels of the three-axis acceleration sensor data, and inputs the average value together with the magnetic sensor data into the motion recognition model action classification.
  • the electronic device calculates the attitude angle data according to the average value of the acceleration sensor data together with the magnetic force sensor data, and performs action classification and recognition according to the attitude angle data.
  • the motion recognition occurs on the wearable device side.
  • the motion recognition result is generated after the wearable device performs motion recognition according to the head motion information.
  • the electronic device receives the motion recognition result, and then proceeds to step 07 .
  • the electronic device is controlled to perform an image acquisition operation corresponding to the head action .
  • the above method does not need to click on the display screen or manually control the wearable device during the image acquisition process, and the user can remotely and freely control the image acquisition operation, which greatly improves the degree of freedom of photographing and the quality of the film.
  • the motion recognition result conforming to the preset motion further includes that the motion recognition result conforms to the preset motion magnitude.
  • the attitude angle data is compared with a preset angle threshold, and when the attitude angle data is greater than the preset angle threshold, the electronic device is controlled to perform a corresponding image acquisition operation.
  • the angle threshold of the nodding action is set to face the ground and move downwards by 20 degrees. If it is detected that the user's head moves downwards towards the ground by more than 20 degrees, the electronic device is controlled to execute the image corresponding to the nodding. Acquisition operation; if it is detected that the downward movement of the user's head facing the ground does not exceed 20 degrees, the corresponding image acquisition operation is not performed. Correspondingly, it can be detected whether the user's head rotates with the neck as the center, and whether the deflection amplitude towards the left shoulder or the right shoulder exceeds the preset amplitude (at this time, the head and the back are on the same level), when the user's head is detected.
  • the electronic device When the deflection of the user's head toward the left shoulder or the right shoulder exceeds the preset angle, the electronic device is controlled to perform the image acquisition operation corresponding to the head swing; if it is detected that the deflection of the user's head toward the left shoulder or the right shoulder does not exceed the preset angle angle, the image acquisition operation is not performed.
  • the preset angle of the head swing action may be set as a deflection of 45 degrees toward the left shoulder or toward the right shoulder in advance, and when it is detected that the user's head is deflected toward the left shoulder or toward the right shoulder by more than 45 degrees, the electronic device is controlled to perform the swing.
  • the image acquisition operation corresponding to the header. Setting the angle threshold increases the steps of judging the action recognition result and increases the action triggering threshold, thereby reducing the probability of false touches caused by the user's posture adjustment or random actions during image acquisition.
  • 01 when an image acquisition request is detected, a first message is sent, wherein the first message is used to notify the wearable device to collect head motion information, which may include :
  • 014 if the specified event exists, send a first message, wherein the first message is used to notify the wearable device to collect head motion information;
  • the electronic device when it detects an image acquisition request, it needs to identify whether the specified event exists. If the specified event exists, the electronic device sends a first message to the wearable device, notifying the wearable device to collect the user's head motion information. Afterwards, the electronic device receives the head motion information, performs motion recognition according to the head motion information, and generates the motion recognition result. If the action recognition result conforms to a preset action, the electronic device is controlled to perform a corresponding image acquisition operation.
  • a judging step of identifying whether a specified event exists improves the judgment conditions, and can prevent misoperations caused by moving when the user is not ready.
  • FIG. 4 is a flowchart of an image acquisition method of an electronic device provided by another embodiment of the present application.
  • the above-mentioned identifying whether the specified event exists is identifying whether the face exists or whether the gesture matching is successful. 07: If the action recognition result conforms to a preset action, control the electronic device to perform a corresponding image acquisition operation, including:
  • the electronic device is controlled to perform a switching operation.
  • the electronic device when it detects that the user applies for shooting and other operations, it will first perform a face recognition or gesture recognition operation, that is, detect whether a face is recorded within the shooting range of the camera or whether the user presses a specified posture. station.
  • the camera here can be a front camera or a rear camera.
  • the electronic device recognizes the face or recognizes that the gesture is successfully matched, it will send a notification to the wearable device to collect the user's head information. After the wearable device receives the notification, it will continuously collect the user's head information and send it to the electronic device.
  • the electronic device receives the head motion information, performs motion recognition according to the head motion information, and generates the motion recognition result.
  • the action recognition result is a first action
  • control the electronic device to perform a shooting operation and store the shooting result after a first preset time; and/or, when the action recognition result is a second action,
  • the electronic device is controlled to perform a switching operation.
  • the action recognition result is the second action
  • the electronic device is controlled to perform a switching operation.
  • the electronic device will enter the next recognition operation according to the head motion information sent by the wearable device.
  • the monitoring of the user's actions by the earphone does not start after turning on the camera, but is triggered by detecting that the face is in the mirror or posing the correct posture, avoiding the process of walking to the photographing position and adjusting the posture. The movement of the middle head is mistakenly touched.
  • the first action may be any one or other combinations of nodding, raising your head, turning your head, shaking your head or swinging your head, and the second action may be different from the first action. Any one or a combination of these actions of turning your head, shaking your head or swinging your head, or other head actions, is not limited here.
  • the first action may be nodding
  • the second action may be shaking head.
  • the switching operation may be switching filters or switching gesture prompt boxes, and can be divided into left switching and right switching. Shaking left can correspond to switching to the left, and shaking right can correspond to switching to the right.
  • the first action can be shaking left and right
  • the second action can be nodding and looking up, wherein nodding can correspond to switching to the left (or switching to the previous one), and looking up can correspond to switching to the right (or switching to the next); You can nod your head to switch to the right (or switch to the previous one), and shake your head to switch to the left (or switch to the next one).
  • the first preset time may be 3 seconds or 5 seconds or any other time, and the first preset time can be set by the user at will, which is not limited here.
  • the selfie assistant system of human-computer interaction is activated, the mobile phone sends a notification to the Bluetooth headset, and the Bluetooth headset starts to collect the user's head motion information and send it to the mobile phone.
  • the mobile phone performs motion recognition and judgment.
  • the camera starts to count down for 3 seconds. After the timer ends, it automatically takes a picture, and then continues to monitor the motion feedback of the headset.
  • the phone recognizes a shaking motion the camera switches the filters in a preset order, from the left to the previous one, and the right to the next.
  • the user clicks on the gesture prompting photo mode
  • the camera interface generates a translucent photo taking gesture prompt box
  • the mobile phone The built-in deep learning attitude detection module starts to work.
  • the system is activated, the mobile phone sends a notification to the Bluetooth headset, and the Bluetooth headset starts to collect the user's head. Ministry action information and sent to the mobile phone.
  • the mobile phone performs motion recognition and judgment in real time.
  • the camera When a nodding motion is recognized, the camera starts to count down for 5 seconds, and automatically takes a picture after the timer ends, and then continues to monitor the action feedback of the headset.
  • the phone recognizes a shaking motion, the camera switches the gesture prompt boxes according to the preset order, from the left to the previous one, and the right to the next one. At this time, the camera interface will refresh to display a new prompt box.
  • the image acquisition operation may be a live video
  • the user enters the live video page
  • the mobile phone recognizes the nodding operation to turn on the microphone; when the user shakes his head, shaking his head to the left corresponds to switching Go to the filter to the left of the current filter, and shake your head to the right corresponds to switching to the filter to the right of the current filter.
  • FIG. 7 is a flowchart of a method for acquiring an image of an electronic device according to yet another embodiment of the present application.
  • the image acquisition method provided in FIG. 7, 07: if the action recognition result conforms to a preset action, controlling the electronic device to perform a corresponding image acquisition operation may include:
  • the electronic device when the electronic device detects that the user applies for photography and other operations, it sends a first message for notifying the wearable device to collect head motion information. After the wearable device receives the notification, it will continuously collect the user's head movement information and send it to the electronic device.
  • the electronic device receives the head motion information, performs motion recognition according to the head motion information, and generates the motion recognition result.
  • the action recognition result is the first action, the electronic device is controlled to perform the recording operation or stop the recording operation.
  • a stop recording operation is performed; when the electronic device is in the recording stop state and the action recognition result is the first action, the operation is performed recording operation; and/or, when the action recognition result is a second action, controlling the electronic device to perform an end recording operation and store the recording result, wherein the second action is different from the first action.
  • the electronic device After the image acquisition operation is performed, the electronic device will enter the next recognition operation according to the head motion information sent by the wearable device.
  • the first action may be any one or other combinations of nodding, raising your head, turning your head, shaking your head or swinging your head
  • the second action may be different from the first action. Any one or a combination of these actions of turning your head, shaking your head or swinging your head, or other head actions, is not limited here.
  • an auxiliary camera function in a Selfie assistance system is provided.
  • the built-in sensor of the wireless Bluetooth headset will continuously send the collected signal data to the mobile terminal, and the mobile terminal will perform motion recognition and judgment.
  • the mobile terminal recognizes a nodding motion if the camera is recording, it will automatically pause the recording; if it is in the paused state, it will automatically continue recording.
  • the mobile terminal recognizes a shaking motion, whether the camera is recording or paused, it will automatically end the recording.
  • This video recording method can free hands, meet the use of disabled people, and provide a new way of human-computer interaction.
  • the image acquisition request is a video conference request.
  • the mobile phone detects that the user has entered the video conference page, it sends a notification to the headset to start collecting head motion information. After the headset receives the information, it starts to collect head motion information and continues to send it to the mobile phone.
  • the mobile phone identifies and makes judgments based on the received head motion information. If it is recognized that the user has performed a head-turning operation, the head-turning operation is an operation in which the head wraps around the neck at least once (that is, 360 degrees), and if the current microphone and/or camera are off, turn on the microphone and/or camera; if If the current microphone and/or camera is on, turn off the microphone and/or camera. If it is recognized that the user performs a force continuous head swing operation (the left and right head swings are repeated at least three times), the current video conference is exited.
  • the performing action recognition according to the head motion information in 04 and generating the motion recognition result may include: performing the action recognition based on a convolutional neural network model according to the head motion information Action recognition, outputting the action recognition result.
  • an embodiment of the present application provides an image acquisition method, the method includes: when an image acquisition request is detected, sending a first message, wherein the first message is used to notify the wearable device to collect headers Action information; receive the head action information, and according to the head action information, perform the action recognition based on the convolutional neural network model, and output the action recognition result; if the action recognition result conforms to the preset action, The electronic device is controlled to perform a corresponding image acquisition operation.
  • the model involved in the image acquisition method based on the convolutional neural network model has good generalization ability to different groups of people, and strong anti-interference ability to noise.
  • the image acquisition method provided in the embodiment of the present application further includes: when the action recognition result is a third action, controlling the electronic device to perform a focus adjustment operation.
  • the third action here may be any head action different from the first action and the second action.
  • the third action is head swing
  • the user when the user is recording or taking pictures, the user swings his head to the left to increase the focal length to shoot a close-up view; the user swings his head to the right to reduce the focal length to capture a long-range view.
  • Each head swing corresponds to a 5mm focal length change.
  • the focal length change and the corresponding relationship between the action and the focal length can be set manually, and there is no forcible restriction.
  • by setting different actions to correspond to different focal lengths it is possible to flexibly shoot long-range and short-range scenes during the human-computer interaction process, thereby improving the flexibility of shooting.
  • the image acquisition method provided in the embodiment of the present application further includes: when the action recognition result is a fourth action, controlling the electronic device to perform a continuous shooting operation; the continuous shooting operation is performed at a second preset time After that, take a preset number of images.
  • the fourth action here may be any head action different from the first action, the second action and the third action.
  • the electronic device if the fourth action is raising the head, the electronic device notifies the wearable device to detect the head action of the user when detecting that the user is in the photographing mode.
  • the electronic device recognizes the head motion information after acquiring the head motion information. If it recognizes the head-up motion, it performs a continuous shooting operation.
  • the electronic device captures a preset number of images after a second preset time, where the second preset time and the preset number There are no restrictions, the preset number can be 5 or 10, and the second preset time can be 3 seconds or 5 seconds later.
  • the continuous shooting operation may set a frame rate of shooting per second, for example, 10 frames per second.
  • the actions corresponding to the continuous shooting are set, so that the user can remotely realize the continuous shooting, which improves the user's human-computer interaction experience.
  • the present application provides an image acquisition device, which runs on an electronic device and is communicatively connected to a wearable device.
  • the image acquisition device includes a message sending module 210 , an action recognition module 220 and an operation Module 230 is executed.
  • a message sending module 210 configured to send a first message when an image acquisition request is detected, wherein the first message is used to notify the wearable device to collect head motion information;
  • a motion recognition module 220 configured to receive the head motion information, perform motion recognition according to the head motion information, and generate the motion recognition result
  • the operation execution module 230 is configured to control the electronic device to perform a corresponding image acquisition operation when the action recognition result conforms to a preset action.
  • the image acquisition device in this embodiment makes it possible to shoot with both hands free.
  • the message sending module 210 is configured to determine whether a specified event exists when the image acquisition request is detected; if the specified event exists, send a first message, wherein the The first message is used to notify the wearable device to collect head motion information;
  • a motion recognition module 220 configured to receive the head motion information, perform motion recognition according to the head motion information, and generate the motion recognition result
  • the operation execution module 230 is configured to control the electronic device to perform a corresponding image acquisition operation when the action recognition result conforms to a preset action.
  • the operation execution module 230 is configured to, when the action recognition result is a first action, control the electronic device to perform a shooting operation and store the shooting result after a first preset time; and/or, when all the When the action recognition result is the second action, the electronic device is controlled to perform a switching operation.
  • the message sending module 210 is configured to send a first message when an image acquisition request is detected, wherein the first message is used to notify the wearable device to collect head movements information;
  • a motion recognition module 220 configured to receive the head motion information, perform motion recognition according to the head motion information, and generate the motion recognition result
  • the operation execution module 230 is configured to control the electronic device to select to perform the recording operation or stop the recording operation based on the current state when the action recognition result is the first action; and/or, when the action recognition result is the second action , control the electronic device to perform an end recording operation and store the recording result.
  • the operation execution module 230 is further configured to control the electronic device to perform a focus adjustment operation when the action recognition result is a third action.
  • the operation execution module 230 is further configured to control the electronic device to perform a continuous shooting operation when the action recognition result is the fourth action; the continuous shooting operation is performed at a second preset time. After that, take a preset number of images.
  • FIG. 10 is a schematic diagram of an internal structure of an electronic device in one embodiment.
  • the electronic device 110 is connected to the wearable device for communication 120 .
  • the electronic device includes one or more processors 1120 , a memory 1140 , a camera 1160 and a display 1180 connected through a system bus.
  • One or more programs are stored in the memory 1140 and configured to perform, by the one or more processors 1120, steps corresponding to the image acquisition method.
  • the processor 1120 may include one or more processing cores.
  • the processor 1120 uses various interfaces and lines to connect various parts of the entire electronic device 110, and executes by running or executing the instructions, programs, code sets or instruction sets stored in the memory 1140, and calling the data stored in the memory 1140.
  • the processor 1120 may adopt at least one of digital signal processing (Digital Signal Processing, DSP), field-programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). implemented in a hardware form.
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA programmable logic array
  • the processor 1120 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a modem, and the like.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • the CPU mainly handles the operating system, user interface and application programs, etc.
  • the GPU is used for rendering and drawing of the display content
  • the modem is used to handle wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 1120, and is implemented by a communication chip alone.
  • the memory 1140 may include random access memory (Random Access Memory, RAM), or may include read-only memory (Read-Only Memory). Memory 1140 may be used to store instructions, programs, codes, sets of codes, or sets of instructions.
  • the memory 1140 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the following method embodiments, and the like.
  • the storage data area may also store data created by the electronic device 110 during use (eg, phone book, audio and video data, chat record data) and the like.
  • the camera 1160 is used for receiving image information of the user.
  • the camera 1160 may be a separate component.
  • the camera 1160 is a camera module including a plurality of camera units. This embodiment of the present application does not limit the specific implementation of the camera 1160 .
  • the display screen 1180 is used to display the information of the electronic device 110 .
  • the display screen 1180 may include a touch function for receiving touch information from the user.
  • any description of a process or method in the flowcharts or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing a specified logical function or step of the process , and the scope of the preferred embodiments of the present application includes alternative implementations in which the functions may be performed out of the order shown or discussed, including performing the functions substantially concurrently or in the reverse order depending upon the functions involved, which should It is understood by those skilled in the art to which the embodiments of the present application belong.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Computation (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Vascular Medicine (AREA)
  • Psychiatry (AREA)
  • Social Psychology (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present application provides an image acquisition method, apparatus, and system for an electronic device, and an electronic device. The electronic device is in communicational connection with a wearable device. The image acquisition method for an electronic device comprises: sending a first message when an image acquisition request is detected, wherein the first message is used for notifying the wearable device to collect head action information; receiving the head action information, and performing action recognition according to the head action information to generate an action recognition result; and if the action recognition result conforms to a preset action, controlling an electronic device to execute a corresponding image acquisition operation. In the image acquisition method, apparatus, and system for an electronic device and the electronic device of the present application, the electronic device obtains head action information of a user by means of a wearable device, and recognizes the head action information of the user so as to control the electronic device to execute different image acquisition operations, such that the user can remotely perform the image acquisition operations such as photographing and video photographing, thereby improving the degree of freedom of photographing and enriching human-machine interaction modes.

Description

电子设备的图像获取方法、装置、系统及电子设备Image acquisition method, device, system and electronic device for electronic equipment
本申请要求于2021年04月27日提交中国专利局,申请号为202110462283.1、发明名称为“电子设备的图像获取方法、装置、系统及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on April 27, 2021 with the application number 202110462283.1 and the title of the invention is "image acquisition method, device, system and electronic equipment for electronic equipment", the entire content of which is approved by Reference is incorporated in this application.
技术领域technical field
本申请涉及电子技术领域,更具体而言,涉及一种电子设备的图像获取方法、装置、系统及电子设备。The present application relates to the field of electronic technologies, and more particularly, to an image acquisition method, apparatus, system and electronic device of an electronic device.
背景技术Background technique
近年来,随着科技及经济的发展,手机、平板电脑等电子设备迅速普及。大多数用户在使用电子设备时,需要接触操控以使电子设备做出相应的操作,例如,手机可根据用户的操作播放音乐,视频等。然而,这些操作都需要用户直接触控显示屏,人机交互方式非常局限。In recent years, with the development of technology and economy, electronic devices such as mobile phones and tablet computers have become popular rapidly. When most users use electronic devices, they need to touch and control the electronic devices to perform corresponding operations. For example, the mobile phone can play music, videos, etc. according to the user's operations. However, these operations all require the user to directly touch the display screen, and the human-computer interaction method is very limited.
发明内容SUMMARY OF THE INVENTION
本申请提供了一种电子设备的图像获取方法、装置、系统及电子设备,丰富了人机交互的交互方式。The present application provides an image acquisition method, device, system and electronic device of an electronic device, which enriches the interaction mode of human-computer interaction.
本申请一个方面提供了一种电子设备的图像获取方法,电子设备与可穿戴设备通信连接,图像获取方法包括:当检测到图像获取请求时,发送第一消息,其中,第一消息用于通知可穿戴设备收集头部动作信息;接收头部动作信息,并根据头部动作信息进行动作识别,生成动作识别结果;若动作识别结果符合预设动作,控制电子设备执行对应的图像获取操作。An aspect of the present application provides an image acquisition method for an electronic device, the electronic device is communicatively connected to a wearable device, and the image acquisition method includes: when an image acquisition request is detected, sending a first message, where the first message is used to notify The wearable device collects head motion information; receives the head motion information, performs motion recognition according to the head motion information, and generates a motion recognition result; if the motion recognition result conforms to a preset motion, controls the electronic device to perform a corresponding image acquisition operation.
在另一方面,本申请还提供了一种图像获取装置,图像获取装置与可穿戴设备通信连接,图像获取装置包括:消息发送模块,用于在检测到图像获取请求时,发送第一消息,其中,第一消息用于通知可穿戴设备收集头部动作信息;动作识别模块,用于接收头部动作信息,并根据头部动作信息进行动作识别,生成动作识别结果;操作执行模块,用于在动作识别结果符合预设动作时,控制电子设备执行对应的图像获取操作。In another aspect, the present application also provides an image acquisition device, the image acquisition device is communicatively connected to a wearable device, and the image acquisition device includes: a message sending module, configured to send a first message when an image acquisition request is detected, The first message is used to notify the wearable device to collect head motion information; the motion recognition module is used to receive the head motion information, perform motion recognition according to the head motion information, and generate a motion recognition result; the operation execution module is used for When the action recognition result conforms to the preset action, the electronic device is controlled to perform a corresponding image acquisition operation.
在另一方面,本申请还提供了一种电子设备,电子设备与可穿戴设备通信连接,电子设备包括一个或多个处理器以及存储器;一个或多个程序被存储在存储器中并被配置为由一个或多个处理器执行以实现上述的方法。In another aspect, the present application also provides an electronic device, the electronic device is communicatively connected with a wearable device, the electronic device includes one or more processors and a memory; one or more programs are stored in the memory and configured to Executed by one or more processors to implement the above-described method.
在又一方面,本申请还提供了一种图像获取系统,包括电子设备与可穿戴设备;电子设备与可穿戴设备通信连接;电子设备包括处理器,处理器用于:在检测到图像获取请求时,发送第一消息,其中,第一消息用于通知可穿戴设备收集头部动作信息;接收头部动作信息,并根据头部动作信息进行动作识别,生成动作识别结果;在动作识别结果符合预设动作时,控制电子设备执行对应的图像获取操作。In yet another aspect, the present application also provides an image acquisition system, including an electronic device and a wearable device; the electronic device and the wearable device are communicatively connected; the electronic device includes a processor, and the processor is configured to: when an image acquisition request is detected , send a first message, where the first message is used to notify the wearable device to collect head motion information; receive head motion information, perform motion recognition according to the head motion information, and generate motion recognition results; When setting the action, the electronic device is controlled to perform the corresponding image acquisition operation.
本申请提供的电子设备的图像获取方法、装置、系统及电子设备,电子设备通过可穿戴设备获取用户头部动作信息,并对用户头部动作信息进行识别,不同的头部动作信息对应不同的操作,从而控制电子设备执行不同的图像获取操作。通过上述方法,用户可以不 手握电子设备,远程进行拍照摄像等图像获取操作,大大拓展了人机交互的交互方式,提高了拍照的自由度及质量。The image acquisition method, device, system and electronic equipment of electronic equipment provided by this application, the electronic equipment acquires the user's head motion information through the wearable device, and recognizes the user's head motion information, and different head motion information corresponds to different operation, thereby controlling the electronic device to perform different image acquisition operations. Through the above method, the user can remotely perform image acquisition operations such as taking pictures and taking pictures without holding the electronic device, which greatly expands the interactive mode of human-computer interaction and improves the degree of freedom and quality of taking pictures.
本申请的实施例的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实施例的实践了解到。Additional aspects and advantages of embodiments of the present application will be set forth, in part, in the following description, and in part will be apparent from the following description, or learned by practice of embodiments of the present application.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.
图1是本申请一实施例提出的一种图像获取系统的示意图;FIG. 1 is a schematic diagram of an image acquisition system proposed by an embodiment of the present application;
图2是本申请一实施例提出的一种电子设备的图像获取方法的流程图;FIG. 2 is a flowchart of an image acquisition method of an electronic device proposed by an embodiment of the present application;
图3是本申请另一实施例提出的一种电子设备的图像获取方法的流程图;3 is a flowchart of an image acquisition method of an electronic device proposed by another embodiment of the present application;
图4是本申请又一实施例提出的一种电子设备的图像获取方法的流程图;FIG. 4 is a flowchart of an image acquisition method of an electronic device proposed by another embodiment of the present application;
图5是图4中提出的电子设备的图像获取方法的一种结构示意图;Fig. 5 is a kind of structural schematic diagram of the image acquisition method of the electronic device proposed in Fig. 4;
图6是图4中提出的电子设备的图像获取方法的另一种结构示意图;6 is another schematic structural diagram of the image acquisition method of the electronic device proposed in FIG. 4;
图7是本申请再一实施例提出的一种电子设备的图像获取方法的流程图;FIG. 7 is a flowchart of an image acquisition method of an electronic device proposed by yet another embodiment of the present application;
图8是图7中提出的图像获取方法的一种结构示意图;Fig. 8 is a kind of structural schematic diagram of the image acquisition method proposed in Fig. 7;
图9是本申请一实施例提出的一种图像获取装置的结构框图;FIG. 9 is a structural block diagram of an image acquisition apparatus proposed by an embodiment of the present application;
图10是本申请一实施例提出的一种电子设备的结构框图。FIG. 10 is a structural block diagram of an electronic device proposed by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请的一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。References in this specification to "one embodiment" or "some embodiments" and the like mean that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in other embodiments," etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless specifically emphasized otherwise. The terms "including", "including", "having" and their variants mean "including but not limited to" unless specifically emphasized otherwise.
为了本申请实施例所示方案易于理解,下面对本申请实施例中出现的若干名词进行介绍。In order to facilitate the understanding of the solutions shown in the embodiments of the present application, several terms appearing in the embodiments of the present application are introduced below.
人机交互:人机交互是指人与计算机之间使用某种对话语言,以一定的交互方式,为完成确定任务的人与计算机之间的信息交换过程。人机交互功能主要靠可输入输出的外部设备和相应的软件来完成。可供人机交互使用的设备主要有键盘显示、鼠标、各种模式识别设备等。与这些设备相应的软件就是操作系统提供人机交互功能的部分。人机交互部分 的主要作用是控制有关设备的运行和理解并执行通过人机交互设备传来的有关的各种命令和要求。早期的人机交互设施是键盘显示器。操作员通过键盘打入命令,操作系统接到命令后立即执行并将结果通过显示器显示。打入的命令可以有不同方式,但每一条命令的解释是清楚的,唯一的。Human-computer interaction: Human-computer interaction refers to the process of information exchange between people and computers using a certain dialogue language between people and computers to complete certain tasks in a certain interactive way. The human-computer interaction function is mainly completed by external devices that can input and output and corresponding software. The devices that can be used for human-computer interaction mainly include keyboard display, mouse, and various pattern recognition devices. The software corresponding to these devices is the part of the operating system that provides the human-computer interaction function. The main function of the human-computer interaction part is to control the operation of the relevant equipment and to understand and execute the relevant commands and requirements transmitted through the human-computer interaction equipment. An early human-computer interaction facility was the keyboard monitor. The operator enters the command through the keyboard, and the operating system executes the command immediately after receiving the command and displays the result through the display. There are different ways to enter the command, but the explanation of each command is clear and unique.
人脸识别:人脸识别,是基于人的脸部特征信息进行身份识别的生物识别技术。用摄像机采集含有人脸的图像或视频流,并自动在图像中检测和跟踪人脸。Face Recognition: Face recognition is a biometric identification technology based on human facial feature information. Capture images or video streams containing faces with a camera, and automatically detect and track faces in the images.
姿态识别:人体姿态识别在本申请中被定义为人体关键点的定位问题,即人体骨骼关键点检测,也称为姿态估计,这一直以来是计算机视觉领域的重要关注点。人体骨骼关键点检测主要检测人体的关键点信息,如关节,五官等,通过关键点描述人体骨骼信息。Pose Recognition: Human pose recognition is defined in this application as the problem of locating key points of the human body, namely the detection of human skeleton key points, also known as pose estimation, which has always been an important concern in the field of computer vision. Human skeleton key point detection mainly detects the key point information of the human body, such as joints, facial features, etc., and describes the human skeleton information through key points.
近年来,随着科技及经济的发展,手机、平板电脑等电子设备迅速普及。大多数用户在使用电子设备时,需要接触操控以使电子设备做出相应的操作,例如,手机可根据用户的操作播放音乐,视频等。然而,这些操作都需要用户直接触控显示屏,人机交互方式非常局限。In recent years, with the development of technology and economy, electronic devices such as mobile phones and tablet computers have become popular rapidly. When most users use electronic devices, they need to touch and control the electronic devices to perform corresponding operations. For example, the mobile phone can play music, videos, etc. according to the user's operations. However, these operations all require the user to directly touch the display screen, and the human-computer interaction method is very limited.
随着无线蓝牙耳机的普及,新的人机交互方式开始出现。如何发展出更多基于无线蓝牙耳机的人机交互方式,以适应多种场景、不同用户的各种需求,是当前需要考虑的问题。基于头部动作的新的交互方式在便捷的同时提供了更好的私密保护,是一个可以前进的方向。With the popularity of wireless Bluetooth headsets, new human-computer interaction methods have begun to appear. How to develop more human-computer interaction methods based on wireless Bluetooth headsets to adapt to various scenarios and various needs of different users is a problem that needs to be considered at present. The new interaction method based on head movements provides better privacy protection while being convenient, and is a way forward.
请参阅图1,本申请一实施例提出的一种图像获取系统100的示意图,该图像获取系统100可以包括电子设备110以及可穿戴设备120。如图1所示,所述电子设备110可以为智能手机、平板电脑、智能穿戴设备(如智能手环、智能手表等)、智慧大屏、网关、车载设备以及笔记本电脑等,所述可穿戴设备120可以包括智能眼镜、智能耳机、智能耳环或智能项圈中的至少一种。当可穿戴设备120是智能耳机时,该智能耳机可以是TWS(True Wireless Stereo,真无线立体声)耳机。Please refer to FIG. 1 , which is a schematic diagram of an image acquisition system 100 proposed by an embodiment of the present application. The image acquisition system 100 may include an electronic device 110 and a wearable device 120 . As shown in FIG. 1 , the electronic device 110 may be a smart phone, a tablet computer, a smart wearable device (such as a smart bracelet, a smart watch, etc.), a smart large screen, a gateway, a vehicle-mounted device, a notebook computer, etc. Device 120 may include at least one of smart glasses, smart headphones, smart earrings, or smart collars. When the wearable device 120 is a smart earphone, the smart earphone may be a TWS (True Wireless Stereo, true wireless stereo) earphone.
可选地,该可穿戴设备120可以为单个组件,该可穿戴设备120也可以包括第一组件和第二组件。在一种可能的方式中,第一组件和第二组件可以是各自独立的组件,第一组件在物理形态上是一个独立的设备,第二组件在物理形态上也是一个独立的设备。比如,当可穿戴设备是TWS耳机时,第一组件是TWS耳机中的左侧耳机,第二组件是TWS耳机中的右侧耳机。或者,当可穿戴设备是智能耳环时,第一组件是智能耳环中的左侧耳环,第二组件是智能耳环中的右侧耳环。Optionally, the wearable device 120 may be a single component, and the wearable device 120 may also include a first component and a second component. In a possible manner, the first component and the second component may be independent components, the first component is an independent device in physical form, and the second component is also an independent device in physical form. For example, when the wearable device is a TWS earphone, the first component is the left earphone in the TWS earphone, and the second component is the right earphone in the TWS earphone. Alternatively, when the wearable device is a smart earring, the first component is the left earring in the smart earring, and the second component is the right earring in the smart earring.
在另一种可能的实现方式中,第一组件和第二组件是同一个可穿戴设备120中设置在不同位置的组件。比如,当可穿戴设备120是智能眼镜时,第一组件被设置是左侧眼镜腿中,第二组件被设置在右侧眼镜腿中。In another possible implementation manner, the first component and the second component are components disposed in different positions in the same wearable device 120 . For example, when the wearable device 120 is smart glasses, the first component is arranged in the left temple, and the second component is arranged in the right temple.
电子设备110和可穿戴设备120通信连接,其中,电子设备110和可穿戴设备120之间可以通过无线连接,也可以通过实体连接线进行连接。电子设备110与可穿戴设备120可以通过无线通信协议建立通信链路,其中,无线通信协议可以包括Wlan协议、蓝牙协议或者ZigBee协议等。The electronic device 110 and the wearable device 120 are communicatively connected, wherein the electronic device 110 and the wearable device 120 may be connected wirelessly or connected through a physical connection line. The electronic device 110 and the wearable device 120 may establish a communication link through a wireless communication protocol, wherein the wireless communication protocol may include a Wlan protocol, a Bluetooth protocol, or a ZigBee protocol.
所述电子设备110包括处理器1120。所述电子设备110还可以包括显示屏跟摄像头。处理器1120在检测到图像获取请求时,发送第一消息,其中,第一消息用于通知可穿戴设 备120收集头部动作信息。随后,处理器1120接收头部动作信息,并根据头部动作信息进行动作识别,生成动作识别结果。在动作识别结果符合预设动作时,处理器1120控制电子设备110执行对应的图像获取操作。这里的图像获取操作可以为拍照摄像,也可以为视频直播、视频会议等。电子设备110通过可穿戴设备120获取用户头部动作信息并执行对应操作,拍照或摄像时无需点击显示屏,也无需手动操控可穿戴设备120,免去了自拍者必须手握手机,使用自拍杆或用手触碰耳机的某些位置的拍照按键的困扰,大幅提高了拍照的自由度和成片的质量。The electronic device 110 includes a processor 1120 . The electronic device 110 may further include a display screen and a camera. When detecting an image acquisition request, the processor 1120 sends a first message, where the first message is used to notify the wearable device 120 to collect head motion information. Subsequently, the processor 1120 receives the head motion information, performs motion recognition according to the head motion information, and generates a motion recognition result. When the action recognition result conforms to the preset action, the processor 1120 controls the electronic device 110 to perform a corresponding image capturing operation. The image acquisition operation here may be photographing and recording, or may be live video broadcasting, video conferencing, or the like. The electronic device 110 obtains the user's head motion information through the wearable device 120 and performs corresponding operations. When taking pictures or videos, there is no need to click on the display screen or manually control the wearable device 120, which eliminates the need for the Selfie to hold the mobile phone and use a selfie stick. Or the trouble of touching the camera buttons in certain positions of the earphone with your hand, which greatly improves the freedom of taking pictures and the quality of the film.
所述可穿戴设备120可以包括加速度传感器或磁力传感器,或加速度传感器和磁力传感器。加速度传感器可以侦测、感应突然地加速或减速,用于获取头部的加速度数据。磁力传感器可以获取磁场数据,侦测出头部的线速度或角速度。可选地,采用加速度传感器和磁力传感器采集加速度数据和磁场数据,电子设备根据加速度数据和磁场数据计算头部姿态角,进而可以根据姿态角判断头部姿态。The wearable device 120 may include an acceleration sensor or a magnetic sensor, or an acceleration sensor and a magnetic sensor. The accelerometer can detect and sense sudden acceleration or deceleration to obtain the acceleration data of the head. Magnetic sensors can acquire magnetic field data and detect the linear or angular velocity of the head. Optionally, an acceleration sensor and a magnetic sensor are used to collect acceleration data and magnetic field data, and the electronic device calculates the head attitude angle according to the acceleration data and the magnetic field data, and then can judge the head attitude according to the attitude angle.
所述电子设备110中可以包括动作识别模块,用于对可穿戴设备120采集的传感器数据进行动作识别,进而可以通过动作识别结果对电子设备110进行控制。The electronic device 110 may include a motion recognition module for performing motion recognition on sensor data collected by the wearable device 120 , and then the electronic device 110 may be controlled through the motion recognition result.
在一种实施例中,图像获取系统100包括电子设备110及可穿戴设备120,电子设备110与可穿戴设备120通信连接。电子设备110的处理器1120在检测到图像获取请求时,发送第一消息,所述第一消息用于通知可穿戴设备120收集头部动作信息。所述可穿戴设备120通过加速度传感器及磁力传感器侦测头部动作信息,并发送给电子设备110。电子设备110的处理器1120接收所述头部动作信息,并根据所述头部动作信息进行动作识别,生成所述动作识别结果;在所述动作识别结果符合预设动作时,处理器1120控制所述电子设备执行对应的图像获取操作。In one embodiment, the image acquisition system 100 includes an electronic device 110 and a wearable device 120 , and the electronic device 110 is communicatively connected to the wearable device 120 . When detecting an image acquisition request, the processor 1120 of the electronic device 110 sends a first message, where the first message is used to notify the wearable device 120 to collect head motion information. The wearable device 120 detects head motion information through an acceleration sensor and a magnetic sensor, and sends the information to the electronic device 110 . The processor 1120 of the electronic device 110 receives the head motion information, performs motion recognition according to the head motion information, and generates the motion recognition result; when the motion recognition result conforms to a preset motion, the processor 1120 controls The electronic device performs a corresponding image acquisition operation.
请参阅图2,本申请实施例提供的一种电子设备的图像获取方法,所述电子设备与可穿戴设备通信连接,所述方法包括:Referring to FIG. 2, an embodiment of the present application provides an image acquisition method of an electronic device, where the electronic device is communicatively connected to a wearable device, and the method includes:
01:当检测到图像获取请求时,发送第一消息,其中,所述第一消息用于通知所述可穿戴设备收集头部动作信息;01: When an image acquisition request is detected, a first message is sent, wherein the first message is used to notify the wearable device to collect head motion information;
本申请实施例中检测到图像获取请求即为电子设备中检测到用户的图像获取触发操作,触发方式可以是用户点击显示屏触发,也可以是语音触发,还可以是按键触发。该应用可以为相机中拍照或录像,也可以为视频通话、视频会议或直播。当电子设备检测到用户的图像获取请求时,电子设备向可穿戴设备发送第一消息,其中,所述第一消息用于通知可穿戴设备收集头部动作信息。In this embodiment of the present application, the detection of an image acquisition request is the detection of a user's image acquisition triggering operation in the electronic device, and the triggering method may be triggered by the user clicking on the display screen, or may be triggered by voice, or may be triggered by a button. The app can take pictures or videos from the camera, as well as video calls, video conferences or live broadcasts. When the electronic device detects the user's image acquisition request, the electronic device sends a first message to the wearable device, where the first message is used to notify the wearable device to collect head motion information.
作为一种实现方式,电子设备向可穿戴设备发送第一消息,可以发送连续信号,也可以发送离散信号。具体的,当发送离散信号时,可以为单位时间内发送一次或多次信号后停止,譬如每秒发送三次或五次通知消息;也可以为不间断发送消息,直到接收到可穿戴设备发送的信息。此信息可以为可穿戴设备发送的头部动作信息,也可以单纯为可穿戴设备表示接收到头部动作信息的反馈信息。As an implementation manner, the electronic device sends the first message to the wearable device, which may send a continuous signal or a discrete signal. Specifically, when sending discrete signals, it can stop after sending one or more signals per unit time, such as sending notification messages three or five times per second; information. This information may be head motion information sent by the wearable device, or may simply be the feedback information of the wearable device indicating that the head motion information has been received.
可选地,可穿戴设备可以包括加速度传感器和磁力传感器。加速度传感器可以为三轴传感器,当可穿戴设备接收到电子设备发送的第一消息,可穿戴设备内置的三轴加速度传感器开始从X、Y、Z三个维度采集传感器数据,同时磁力传感器采集磁场数据。可穿戴设 备将两种数据发送给电子设备,用于识别头部动作信息。Optionally, the wearable device may include an acceleration sensor and a magnetic sensor. The acceleration sensor can be a three-axis sensor. When the wearable device receives the first message sent by the electronic device, the built-in three-axis acceleration sensor of the wearable device starts to collect sensor data from the three dimensions of X, Y, and Z, while the magnetic sensor collects the magnetic field. data. The wearable device sends two kinds of data to the electronic device to identify the head movement information.
可选地,所述头部动作信息包括但不限于:摇头,点头,抬头和摆头。摇头是以颈部为基轴旋转头部的动作,旋转时下颌角几乎保持在同一水平面上;点头为将头部朝向胸前下含的动作;抬头即仰起头的动作,下颌角向远离胸部方向运动;摆头为以颈部为旋转中心,朝向两肩左右偏转的动作,偏转时左侧下颌角靠近一侧肩部,远离另一侧肩部,头部与背部几乎保持在同一水平面上。Optionally, the head motion information includes but is not limited to: shaking his head, nodding, raising his head and shaking his head. Shaking is the movement of rotating the head with the neck as the base axis, and the mandibular angle is almost kept at the same level during the rotation; nodding is the movement of turning the head towards the chest; looking up is the movement of raising the head, and the angle of the mandible is moved away from the chest Directional movement; head swing is a movement of turning the neck towards the shoulders left and right, with the left mandibular angle close to one shoulder and away from the other shoulder when the head is deflected, the head and the back are almost kept on the same level .
在本申请实施例中,电子设备在发送第一消息之前,还可以检测电子设备是否与可穿戴设备处于连接状态,若电子设备与可穿戴设备处于连接状态,电子设备再发送第一消息。In this embodiment of the present application, before sending the first message, the electronic device can also detect whether the electronic device is in a connected state with the wearable device, and if the electronic device is in a connected state with the wearable device, the electronic device sends the first message again.
具体的,电子设备与可穿戴设备之间的连接状态可以包括处于连接状态和没有处于连接状态,其中,没有处于连接状态包括非连接状态和连接中断状态。Specifically, the connection state between the electronic device and the wearable device may include a connected state and a non-connected state, wherein the non-connected state includes a non-connected state and a connection interrupted state.
作为其中一种方式,可以通过查看电子设备的状态值的方式来判断电子设备与可穿戴设备之间的连接状态,具体的,可以预先为电子设备设置两个不同的状态值,当电子设备连接可穿戴设备时,返回第一状态值,当电子设备没有连接可穿戴设备时,返回第二状态值,从而可以通过检测第一状态值和第二状态值的方式来确定电子设备是否与可穿戴设备处于连接状态。示例性的,预先将电子设备的第一状态值设置为1,将电子设备的第二状态值设置为0,若检测到电子设备的状态值为1,则确定电子设备与可穿戴设备处于连接状态,若检测到电子设备返回的状态值为0,则确定电子设备与可穿戴设备处于非连接状态。可选的,若在时间顺序上检测到相邻时刻电子设备返回的状态值由1变为0,则确定电子设备与可穿戴设备处于连接中断状态。As one of the methods, the connection state between the electronic device and the wearable device can be determined by checking the state value of the electronic device. Specifically, two different state values can be set for the electronic device in advance. When the electronic device is connected When the wearable device is used, the first state value is returned, and when the electronic device is not connected to the wearable device, the second state value is returned, so that whether the electronic device is compatible with the wearable device can be determined by detecting the first state value and the second state value. The device is connected. Exemplarily, the first state value of the electronic device is set to 1 in advance, and the second state value of the electronic device is set to 0. If the state value of the electronic device is detected to be 1, it is determined that the electronic device is connected to the wearable device. If it is detected that the state value returned by the electronic device is 0, it is determined that the electronic device and the wearable device are in a disconnected state. Optionally, if it is detected in time sequence that the state value returned by the electronic device changes from 1 to 0 at adjacent moments, it is determined that the connection between the electronic device and the wearable device is in a disconnected state.
作为其中另一种方式,电子设备在连接可穿戴设备和断开可穿戴设备的时候都会发送广播,所以,电子设备可以通过监听广播的方式,确定电子设备是否与可穿戴设备处于连接状态。As another method, the electronic device will send a broadcast when the wearable device is connected and disconnected, so the electronic device can determine whether the electronic device is in a connected state with the wearable device by monitoring the broadcast.
04:接收所述头部动作信息,并根据所述头部动作信息进行动作识别,生成所述动作识别结果;04: Receive the head motion information, perform motion recognition according to the head motion information, and generate the motion recognition result;
本申请实施例中,所述头部动作信息即加速度传感器和磁力传感器数据,电子设备接收可穿戴设备的加速度传感器和磁力传感器数据,并将其导入动作识别模型中,获取动作识别模型输出的动作分类结果。具体地,电子设备根据接收到的头部动作信息,求取三轴加速度传感器数据的X、Y、Z三个通道的值的平均值,并将该平均值与磁力传感器数据一起输入动作识别模型中进行动作分类。In the embodiment of the present application, the head motion information is the data of the acceleration sensor and the magnetic sensor, and the electronic device receives the data of the acceleration sensor and the magnetic sensor of the wearable device, and imports them into the action recognition model to obtain the actions output by the action recognition model. Classification results. Specifically, according to the received head motion information, the electronic device obtains the average value of the values of the X, Y, and Z channels of the three-axis acceleration sensor data, and inputs the average value together with the magnetic sensor data into the motion recognition model action classification.
具体的,电子设备根据加速度传感器数据平均值与磁力传感器数据一起计算出姿态角数据,根据姿态角数据进行动作分类识别。Specifically, the electronic device calculates the attitude angle data according to the average value of the acceleration sensor data together with the magnetic force sensor data, and performs action classification and recognition according to the attitude angle data.
在一些实施例中,所述动作识别发生在可穿戴设备端。所述动作识别结果为所述可穿戴设备根据所述头部动作信息进行动作识别后生成。电子设备接收所述动作识别结果,之后进行步骤07。In some embodiments, the motion recognition occurs on the wearable device side. The motion recognition result is generated after the wearable device performs motion recognition according to the head motion information. The electronic device receives the motion recognition result, and then proceeds to step 07 .
07:若所述动作识别结果符合预设动作,控制所述电子设备执行对应的图像获取操作。07: If the action recognition result conforms to a preset action, control the electronic device to perform a corresponding image acquisition operation.
在本申请的一实施例中,若动作识别结果为预先设置的头部动作(如点头、摇头、摆头、抬头、转头等),则控制电子设备执行该头部动作对应的图像获取操作。上述方法在图像获取过程中无需点击显示屏,也无需手动操控可穿戴设备,用户可以远程自由的控制 进行图像获取操作,大幅提高了拍照的自由度和成片的质量。In an embodiment of the present application, if the action recognition result is a preset head action (such as nodding, shaking, shaking, raising, turning, etc.), the electronic device is controlled to perform an image acquisition operation corresponding to the head action . The above method does not need to click on the display screen or manually control the wearable device during the image acquisition process, and the user can remotely and freely control the image acquisition operation, which greatly improves the degree of freedom of photographing and the quality of the film.
在一些实施例中,动作识别结果符合预设动作还包括动作识别结果符合预设动作幅度。可选地,当动作识别结果符合预设动作时,将姿态角数据与预设的角度阈值进行比较,当姿态角数据大于预设角度阈值时,控制电子设备执行对应的图像获取操作。In some embodiments, the motion recognition result conforming to the preset motion further includes that the motion recognition result conforms to the preset motion magnitude. Optionally, when the action recognition result conforms to a preset action, the attitude angle data is compared with a preset angle threshold, and when the attitude angle data is greater than the preset angle threshold, the electronic device is controlled to perform a corresponding image acquisition operation.
在一种实现方式中,将点头动作的角度阈值设置为面向地面向下运动20度,若检测到用户的头部面向地面向下运动的幅度超过20度,则控制电子设备执行点头对应的图像获取操作;若检测到用户头部面向地面向下运动的幅度没有超过20度,不执行对应的图像获取操作。相应的,可以检测用户的头部以颈部为旋转中心,朝向左肩或向右肩偏转的幅度是否超过预设的幅度(此时头部与背部在同一水平面上),当检测到用户的头部朝向左肩或向右肩偏转的幅度超过预设的角度时,控制电子设备执行摆头对应的图像获取操作;若检测到用户的头部朝向左肩或向右肩偏转的幅度没有超过预设的角度时,则不执行图像获取操作。示例性的,可以预先将摆头动作的预设角度设置为朝向左肩或朝向右肩偏转45度,当检测到用户的头部朝向左肩或朝向右肩偏转超过45度时,控制电子设备执行摆头对应的图像获取操作。设置角度阈值增加了动作识别结果判断的步骤,提高了动作触发阈值,从而使得在图像获取期间,因用户调整姿势或随机动作而导致发生误触的几率降低。In an implementation manner, the angle threshold of the nodding action is set to face the ground and move downwards by 20 degrees. If it is detected that the user's head moves downwards towards the ground by more than 20 degrees, the electronic device is controlled to execute the image corresponding to the nodding. Acquisition operation; if it is detected that the downward movement of the user's head facing the ground does not exceed 20 degrees, the corresponding image acquisition operation is not performed. Correspondingly, it can be detected whether the user's head rotates with the neck as the center, and whether the deflection amplitude towards the left shoulder or the right shoulder exceeds the preset amplitude (at this time, the head and the back are on the same level), when the user's head is detected. When the deflection of the user's head toward the left shoulder or the right shoulder exceeds the preset angle, the electronic device is controlled to perform the image acquisition operation corresponding to the head swing; if it is detected that the deflection of the user's head toward the left shoulder or the right shoulder does not exceed the preset angle angle, the image acquisition operation is not performed. Exemplarily, the preset angle of the head swing action may be set as a deflection of 45 degrees toward the left shoulder or toward the right shoulder in advance, and when it is detected that the user's head is deflected toward the left shoulder or toward the right shoulder by more than 45 degrees, the electronic device is controlled to perform the swing. The image acquisition operation corresponding to the header. Setting the angle threshold increases the steps of judging the action recognition result and increases the action triggering threshold, thereby reducing the probability of false touches caused by the user's posture adjustment or random actions during image acquisition.
请参阅图3,在某些实施例中,01:当检测到图像获取请求时,发送第一消息,其中,所述第一消息用于通知所述可穿戴设备收集头部动作信息,可包括:Referring to FIG. 3, in some embodiments, 01: when an image acquisition request is detected, a first message is sent, wherein the first message is used to notify the wearable device to collect head motion information, which may include :
012:当检测到所述图像获取请求时,判断指定事件是否存在;012: when the image acquisition request is detected, determine whether the specified event exists;
014:若所述指定事件存在,则发送第一消息,其中,所述第一消息用于通知所述可穿戴设备收集头部动作信息;014: if the specified event exists, send a first message, wherein the first message is used to notify the wearable device to collect head motion information;
04:接收所述头部动作信息,并根据所述头部动作信息进行动作识别,生成所述动作识别结果;04: Receive the head motion information, perform motion recognition according to the head motion information, and generate the motion recognition result;
07:若所述动作识别结果符合预设动作,控制所述电子设备执行对应的图像获取操作。07: If the action recognition result conforms to a preset action, control the electronic device to perform a corresponding image acquisition operation.
具体而言,当电子设备检测到图像获取请求时,需要识别指定事件是否存在。如若指定事件存在,电子设备向可穿戴设备发送第一消息,通知可穿戴设备收集用户头部动作信息。之后电子设备接收所述头部动作信息,并根据所述头部动作信息进行动作识别,生成所述动作识别结果。如若所述动作识别结果符合预设动作,控制所述电子设备执行对应的图像获取操作。增加识别指定事件是否存在这一判断步骤,提高了判断条件,能够防止用户还未准备好时因移动而产生的误操作。Specifically, when the electronic device detects an image acquisition request, it needs to identify whether the specified event exists. If the specified event exists, the electronic device sends a first message to the wearable device, notifying the wearable device to collect the user's head motion information. Afterwards, the electronic device receives the head motion information, performs motion recognition according to the head motion information, and generates the motion recognition result. If the action recognition result conforms to a preset action, the electronic device is controlled to perform a corresponding image acquisition operation. The addition of a judging step of identifying whether a specified event exists, improves the judgment conditions, and can prevent misoperations caused by moving when the user is not ready.
请参阅图4,图4为本申请另一实施例提出的一种电子设备的图像获取方法的流程图。图4提供的图像获取方法,上述识别指定事件是否存在为识别人脸是否存在或识别姿态匹配成功是否存在。07:若所述动作识别结果符合预设动作,控制所述电子设备执行对应的图像获取操作,包括:Please refer to FIG. 4 , which is a flowchart of an image acquisition method of an electronic device provided by another embodiment of the present application. In the image acquisition method provided in FIG. 4 , the above-mentioned identifying whether the specified event exists is identifying whether the face exists or whether the gesture matching is successful. 07: If the action recognition result conforms to a preset action, control the electronic device to perform a corresponding image acquisition operation, including:
072:当所述动作识别结果为第一动作时,在第一预设时间后控制所述电子设备执行拍摄操作并存储所述拍摄结果;072: when the action recognition result is a first action, control the electronic device to perform a shooting operation and store the shooting result after a first preset time;
和/或,当所述动作识别结果为第二动作时,控制所述电子设备执行切换操作。And/or, when the action recognition result is the second action, the electronic device is controlled to perform a switching operation.
结合图4,在某些实施例中,当电子设备检测到用户申请拍摄等操作时,首先会进行人脸识别或姿态识别操作,即检测摄像头拍摄范围内是否录入人脸或者用户是否按指定姿 势站位。此处摄像头可以为前置摄像头也可以为后置摄像头。当电子设备识别到人脸或识别出姿势匹配成功时,会向可穿戴设备发送收集用户头部信息的通知。可穿戴设备收到通知后会不断收集用户头部信息并向电子设备发送。电子设备接收所述头部动作信息,并根据所述头部动作信息进行动作识别,生成所述动作识别结果。当所述动作识别结果为第一动作时,在第一预设时间后控制所述电子设备执行拍摄操作并存储所述拍摄结果;和/或,当所述动作识别结果为第二动作时,控制所述电子设备执行切换操作。当所述动作识别结果为第二动作时,控制所述电子设备执行切换操作。在执行完该图像获取操作后,电子设备会根据可穿戴设备发送的头部动作信息进入下一次识别操作。上述图像获取方法中,耳机对用户动作的监听不是打开相机后就开始的,而是通过检测到人脸入镜或摆出正确的姿态来触发,避免了在走到拍照位置和调整姿势的过程中头部的动作发生误触。4, in some embodiments, when the electronic device detects that the user applies for shooting and other operations, it will first perform a face recognition or gesture recognition operation, that is, detect whether a face is recorded within the shooting range of the camera or whether the user presses a specified posture. station. The camera here can be a front camera or a rear camera. When the electronic device recognizes the face or recognizes that the gesture is successfully matched, it will send a notification to the wearable device to collect the user's head information. After the wearable device receives the notification, it will continuously collect the user's head information and send it to the electronic device. The electronic device receives the head motion information, performs motion recognition according to the head motion information, and generates the motion recognition result. When the action recognition result is a first action, control the electronic device to perform a shooting operation and store the shooting result after a first preset time; and/or, when the action recognition result is a second action, The electronic device is controlled to perform a switching operation. When the action recognition result is the second action, the electronic device is controlled to perform a switching operation. After the image acquisition operation is performed, the electronic device will enter the next recognition operation according to the head motion information sent by the wearable device. In the above image acquisition method, the monitoring of the user's actions by the earphone does not start after turning on the camera, but is triggered by detecting that the face is in the mirror or posing the correct posture, avoiding the process of walking to the photographing position and adjusting the posture. The movement of the middle head is mistakenly touched.
具体地,所述第一动作可以为点头、抬头、转头、摇头或摆头中任一种或其他几种组合,所述第二动作可以为不同于所述第一动作的点头、抬头、转头、摇头或摆头的这几个动作或其他头部动作中的任一种或其他几种的组合,此处不做限制。举例来说,第一动作可以为点头,第二动作可以为摇头。所述切换操作可以为切换滤镜或切换姿势提示框,并且分为向左切换与向右切换。左摇头可以对应向左切换操作,右摇头可以对应向右切换操作。同样地,第一动作可以为左右摇头,第二动作可以为点头和抬头,其中点头可对应向左切换(或切换到上一个),抬头可对应向右切换(或切换到下一个);也可以点头对应向右切换(或切换到上一个),摇头对应向左切换(或切换到下一个)。Specifically, the first action may be any one or other combinations of nodding, raising your head, turning your head, shaking your head or swinging your head, and the second action may be different from the first action. Any one or a combination of these actions of turning your head, shaking your head or swinging your head, or other head actions, is not limited here. For example, the first action may be nodding, and the second action may be shaking head. The switching operation may be switching filters or switching gesture prompt boxes, and can be divided into left switching and right switching. Shaking left can correspond to switching to the left, and shaking right can correspond to switching to the right. Similarly, the first action can be shaking left and right, and the second action can be nodding and looking up, wherein nodding can correspond to switching to the left (or switching to the previous one), and looking up can correspond to switching to the right (or switching to the next); You can nod your head to switch to the right (or switch to the previous one), and shake your head to switch to the left (or switch to the next one).
具体地,所述第一预设时间可以为3秒或5秒或其他任何时间,第一预设时间为用户随心设置,此处不做限定。Specifically, the first preset time may be 3 seconds or 5 seconds or any other time, and the first preset time can be set by the user at will, which is not limited here.
请结合图4及图5,在一种实现例中,用户点开相机自拍模式,手机内置的深度学习人脸识别模型开始工作。当检测到人脸后,人机交互的自拍辅助系统被激活,手机向蓝牙耳机发送通知,蓝牙耳机开始收集用户的头部动作信息并发送给手机。手机进行动作识别判断,当识别到一个点头动作,相机开始倒计时3秒时间,计时结束后自动拍照,然后继续监听耳机动作反馈。当手机识别到一个摇头动作,相机按照预设顺序切换滤镜,左摇切至上一个,右摇切至下一个。Please refer to FIG. 4 and FIG. 5 , in an implementation example, the user clicks on the camera selfie mode, and the deep learning face recognition model built in the mobile phone starts to work. When a human face is detected, the selfie assistant system of human-computer interaction is activated, the mobile phone sends a notification to the Bluetooth headset, and the Bluetooth headset starts to collect the user's head motion information and send it to the mobile phone. The mobile phone performs motion recognition and judgment. When it recognizes a nodding motion, the camera starts to count down for 3 seconds. After the timer ends, it automatically takes a picture, and then continues to monitor the motion feedback of the headset. When the phone recognizes a shaking motion, the camera switches the filters in a preset order, from the left to the previous one, and the right to the next.
请结合图4及图6,在另一种实施例中,用户点开姿势提示拍照模式,相机界面生成半透明的拍照姿势提示框,以剪影的形式提示拍照者摆姿势的方法,此时手机内置的深度学习姿态检测模块开始工作,当检测到人的四肢、头、躯干共6个节点都与提示框基本符合后,系统被激活,手机向蓝牙耳机发送通知,蓝牙耳机开始收集用户的头部动作信息并发送给手机。手机实时进行动作识别判断。当识别到一个点头动作时,相机开始倒计时5秒,计时结束后自动拍照,然后继续监听耳机动作反馈。当手机识别到一个摇头动作,相机按照预设顺序切换姿势提示框,左摇切至上一个,右摇切至下一个,此时相机界面会刷新显示新的提示框。Please refer to FIG. 4 and FIG. 6 , in another embodiment, the user clicks on the gesture prompting photo mode, the camera interface generates a translucent photo taking gesture prompt box, and prompts the photographer to pose in the form of a silhouette. At this time, the mobile phone The built-in deep learning attitude detection module starts to work. When the six nodes of the human limbs, head and torso are detected to be basically consistent with the prompt box, the system is activated, the mobile phone sends a notification to the Bluetooth headset, and the Bluetooth headset starts to collect the user's head. Ministry action information and sent to the mobile phone. The mobile phone performs motion recognition and judgment in real time. When a nodding motion is recognized, the camera starts to count down for 5 seconds, and automatically takes a picture after the timer ends, and then continues to monitor the action feedback of the headset. When the phone recognizes a shaking motion, the camera switches the gesture prompt boxes according to the preset order, from the left to the previous one, and the right to the next one. At this time, the camera interface will refresh to display a new prompt box.
在又一种实施例中,所述图像获取操作可以为视频直播,用户进入所述视频直播页面,当用户点头时,手机识别到点头操作打开麦克风;当用户摇头时,向左摇头对应于切换到当前滤镜左边的滤镜,向右摇头对应于切换到当前滤镜右边的滤镜。In yet another embodiment, the image acquisition operation may be a live video, the user enters the live video page, and when the user nods, the mobile phone recognizes the nodding operation to turn on the microphone; when the user shakes his head, shaking his head to the left corresponds to switching Go to the filter to the left of the current filter, and shake your head to the right corresponds to switching to the filter to the right of the current filter.
请参阅图7,图7为本申请再一实施例提出的一种电子设备的图像获取方法的流程图。 图7提供的图像获取方法,07:若所述动作识别结果符合预设动作,控制所述电子设备执行对应的图像获取操作,可包括:Please refer to FIG. 7 , which is a flowchart of a method for acquiring an image of an electronic device according to yet another embodiment of the present application. The image acquisition method provided in FIG. 7, 07: if the action recognition result conforms to a preset action, controlling the electronic device to perform a corresponding image acquisition operation may include:
073:当所述动作识别结果为第一动作时,控制所述电子设备执行录制操作或停止录制操作;和/或,当所述动作识别结果为第二动作时,控制所述电子设备执行结束录制操作并存储所述录制结果,其中所述第二动作不同于所述第一动作。073: When the action recognition result is the first action, control the electronic device to perform the recording operation or stop the recording operation; and/or, when the action recognition result is the second action, control the electronic device to perform the end of the action An operation is recorded and the recording result is stored, wherein the second action is different from the first action.
在某些实施例中,当电子设备检测到用户申请拍摄等操作时,发送用于通知所述可穿戴设备收集头部动作信息的第一消息。可穿戴设备收到通知后会不断收集用户头部动作信息并向电子设备发送。电子设备接收所述头部动作信息,并根据所述头部动作信息进行动作识别,生成所述动作识别结果。当所述动作识别结果为第一动作时,控制所述电子设备执行录制操作或停止录制操作。具体地,当所述电子设备处于录制状态且所述动作识别结果为第一动作时,执行停止录制操作;当所述电子设备处于停止录制状态且所述动作识别结果为第一动作时,执行录制操作;和/或,当所述动作识别结果为第二动作时,控制所述电子设备执行结束录制操作并存储所述录制结果,其中所述第二动作不同于所述第一动作。在执行完该图像获取操作后,电子设备会根据可穿戴设备发送的头部动作信息进入下一次识别操作。In some embodiments, when the electronic device detects that the user applies for photography and other operations, it sends a first message for notifying the wearable device to collect head motion information. After the wearable device receives the notification, it will continuously collect the user's head movement information and send it to the electronic device. The electronic device receives the head motion information, performs motion recognition according to the head motion information, and generates the motion recognition result. When the action recognition result is the first action, the electronic device is controlled to perform the recording operation or stop the recording operation. Specifically, when the electronic device is in the recording state and the action recognition result is the first action, a stop recording operation is performed; when the electronic device is in the recording stop state and the action recognition result is the first action, the operation is performed recording operation; and/or, when the action recognition result is a second action, controlling the electronic device to perform an end recording operation and store the recording result, wherein the second action is different from the first action. After the image acquisition operation is performed, the electronic device will enter the next recognition operation according to the head motion information sent by the wearable device.
具体地,所述第一动作可以为点头、抬头、转头、摇头或摆头中任一种或其他几种组合,所述第二动作可以为不同于所述第一动作的点头、抬头、转头、摇头或摆头的这几个动作或其他头部动作中的任一种或其他几种的组合,此处不做限制。Specifically, the first action may be any one or other combinations of nodding, raising your head, turning your head, shaking your head or swinging your head, and the second action may be different from the first action. Any one or a combination of these actions of turning your head, shaking your head or swinging your head, or other head actions, is not limited here.
请结合图7及图8,在一种实施例中提供了一种自拍辅助系统中的辅助摄像功能。如图所示,用户点击录像模式,系统被激活,此时,无线蓝牙耳机内置的传感器会将收集到的信号数据不断的发送给移动端,移动端将进行动作识别判断。当移动端识别到一个点头动作,此时相机如果正在录制,就会自动暂停录制;如果在暂停状态,就会自动继续录制。当移动端识别到一个摇头动作,无论相机在录制还是暂停状态,都会自动结束录制。这种视频录制方式可以解放双手,满足残障人士的使用,提供了新的人机交互方式。Please refer to FIG. 7 and FIG. 8 , in an embodiment, an auxiliary camera function in a Selfie assistance system is provided. As shown in the figure, the user clicks the recording mode, and the system is activated. At this time, the built-in sensor of the wireless Bluetooth headset will continuously send the collected signal data to the mobile terminal, and the mobile terminal will perform motion recognition and judgment. When the mobile terminal recognizes a nodding motion, if the camera is recording, it will automatically pause the recording; if it is in the paused state, it will automatically continue recording. When the mobile terminal recognizes a shaking motion, whether the camera is recording or paused, it will automatically end the recording. This video recording method can free hands, meet the use of disabled people, and provide a new way of human-computer interaction.
在另一种实施例中,所述图像获取请求为视频会议请求。当手机检测到用户进入视频会议页面,向耳机发送开始收集头部动作信息的通知。耳机收到信息后开始收集头部动作信息并持续向手机发送,手机根据接收到的头部动作信息进行识别并进行判断。如果识别出用户执行了转头操作,所述转头操作为头绕脖颈至少一圈(即360度)的操作,若当前麦克风和/或摄像头为关闭状态,则打开麦克风和/或摄像头;若当前麦克风和/或摄像头为打开状态,则关闭麦克风和/或摄像头。如果识别出用户执行力连续摆头操作(左右摆头重复至少三次),则退出当前视频会议。In another embodiment, the image acquisition request is a video conference request. When the mobile phone detects that the user has entered the video conference page, it sends a notification to the headset to start collecting head motion information. After the headset receives the information, it starts to collect head motion information and continues to send it to the mobile phone. The mobile phone identifies and makes judgments based on the received head motion information. If it is recognized that the user has performed a head-turning operation, the head-turning operation is an operation in which the head wraps around the neck at least once (that is, 360 degrees), and if the current microphone and/or camera are off, turn on the microphone and/or camera; if If the current microphone and/or camera is on, turn off the microphone and/or camera. If it is recognized that the user performs a force continuous head swing operation (the left and right head swings are repeated at least three times), the current video conference is exited.
在某些实施例中,04中的所述根据所述头部动作信息进行动作识别,生成所述动作识别结果,可以包括:根据所述头部动作信息,基于卷积神经网络模型进行所述动作识别,输出所述动作识别结果。In some embodiments, the performing action recognition according to the head motion information in 04 and generating the motion recognition result may include: performing the action recognition based on a convolutional neural network model according to the head motion information Action recognition, outputting the action recognition result.
具体地,本申请实施例提供了一种图像获取方法,该方法包括:当检测到图像获取请求时,发送第一消息,其中,所述第一消息用于通知所述可穿戴设备收集头部动作信息;接收所述头部动作信息,并根据所述头部动作信息,基于卷积神经网络模型进行所述动作识别,输出所述动作识别结果;若所述动作识别结果符合预设动作,控制所述电子设备执 行对应的图像获取操作。基于卷积神经网络模型的图像获取方法涉及到的模型对不同人群有比较好的泛化能力,以及对噪声有较强的抗干扰能力。Specifically, an embodiment of the present application provides an image acquisition method, the method includes: when an image acquisition request is detected, sending a first message, wherein the first message is used to notify the wearable device to collect headers Action information; receive the head action information, and according to the head action information, perform the action recognition based on the convolutional neural network model, and output the action recognition result; if the action recognition result conforms to the preset action, The electronic device is controlled to perform a corresponding image acquisition operation. The model involved in the image acquisition method based on the convolutional neural network model has good generalization ability to different groups of people, and strong anti-interference ability to noise.
可选地,本申请实施例提供的图像获取方法还包括:当所述动作识别结果为第三动作时,控制所述电子设备执行调节焦距操作。Optionally, the image acquisition method provided in the embodiment of the present application further includes: when the action recognition result is a third action, controlling the electronic device to perform a focus adjustment operation.
具体地,此处第三动作可以为不同于第一动作及第二动作的任一头部动作。举例来说,若第三动作为摆头,则在用户进行录像或拍照时,用户向左摆头可以增加焦距,从而拍摄近景;用户向右摆头可以减小焦距,从而拍摄远景。每次摆头对应5mm的焦距变化。此处焦距变化及动作与焦距对应关系均可人为设定,不做强行限制。本实施例中通过设定不同的动作对应不同的焦距,使得人机交互过程中可以灵活的拍摄远景跟近景,提高拍摄的灵活度。Specifically, the third action here may be any head action different from the first action and the second action. For example, if the third action is head swing, when the user is recording or taking pictures, the user swings his head to the left to increase the focal length to shoot a close-up view; the user swings his head to the right to reduce the focal length to capture a long-range view. Each head swing corresponds to a 5mm focal length change. Here, the focal length change and the corresponding relationship between the action and the focal length can be set manually, and there is no forcible restriction. In this embodiment, by setting different actions to correspond to different focal lengths, it is possible to flexibly shoot long-range and short-range scenes during the human-computer interaction process, thereby improving the flexibility of shooting.
可选地,本申请实施例提供的图像获取方法还包括:当所述动作识别结果为第四动作时,控制所述电子设备执行连拍操作;所述连拍操作为在第二预设时间后,拍摄预设数量的图像。Optionally, the image acquisition method provided in the embodiment of the present application further includes: when the action recognition result is a fourth action, controlling the electronic device to perform a continuous shooting operation; the continuous shooting operation is performed at a second preset time After that, take a preset number of images.
具体的,此处第四动作可以为不同于第一动作、第二动作及第三动作的任一头部动作。举例来说,若第四动作为抬头,则电子设备在检测到用户为拍照模式时,通知可穿戴设备检测用户的头部动作。电子设备获取该头部动作信息后进行识别,若识别到抬头动作,则执行连拍操作,电子设备在第二预设时间后拍摄预设数量的图像,这里第二预设时间及预设数量均不做限制,预设数量可以为5张或者10张,第二预设时间可以为3秒后或者5秒后。更具体地,所述连拍操作可以设定每秒拍摄的帧率,譬如每秒10帧。本实施例中通过设定连拍对应的动作,使得用户可以远程实现连拍,提高了用户的人机交互体验。Specifically, the fourth action here may be any head action different from the first action, the second action and the third action. For example, if the fourth action is raising the head, the electronic device notifies the wearable device to detect the head action of the user when detecting that the user is in the photographing mode. The electronic device recognizes the head motion information after acquiring the head motion information. If it recognizes the head-up motion, it performs a continuous shooting operation. The electronic device captures a preset number of images after a second preset time, where the second preset time and the preset number There are no restrictions, the preset number can be 5 or 10, and the second preset time can be 3 seconds or 5 seconds later. More specifically, the continuous shooting operation may set a frame rate of shooting per second, for example, 10 frames per second. In this embodiment, the actions corresponding to the continuous shooting are set, so that the user can remotely realize the continuous shooting, which improves the user's human-computer interaction experience.
请参阅图9,本申请提供了一种图像获取装置,所述图像获取装置运行于电子设备,且与可穿戴设备通信连接,所述图像获取装置包括消息发送模块210、动作识别模块220以及操作执行模块230。Referring to FIG. 9 , the present application provides an image acquisition device, which runs on an electronic device and is communicatively connected to a wearable device. The image acquisition device includes a message sending module 210 , an action recognition module 220 and an operation Module 230 is executed.
消息发送模块210,用于在检测到图像获取请求时,发送第一消息,其中,所述第一消息用于通知所述可穿戴设备收集头部动作信息;a message sending module 210, configured to send a first message when an image acquisition request is detected, wherein the first message is used to notify the wearable device to collect head motion information;
动作识别模块220,用于接收所述头部动作信息,并根据所述头部动作信息进行动作识别,生成所述动作识别结果;A motion recognition module 220, configured to receive the head motion information, perform motion recognition according to the head motion information, and generate the motion recognition result;
操作执行模块230,用于在所述动作识别结果符合预设动作时,控制所述电子设备执行对应的图像获取操作。The operation execution module 230 is configured to control the electronic device to perform a corresponding image acquisition operation when the action recognition result conforms to a preset action.
本实施例中的图像获取装置使得解放双手的拍摄方式成为可能。The image acquisition device in this embodiment makes it possible to shoot with both hands free.
一种可行的实现方式中,所述消息发送模块210,用于在检测到所述图像获取请求时,判断指定事件是否存在;若所述指定事件存在,则发送第一消息,其中,所述第一消息用于通知所述可穿戴设备收集头部动作信息;In a feasible implementation manner, the message sending module 210 is configured to determine whether a specified event exists when the image acquisition request is detected; if the specified event exists, send a first message, wherein the The first message is used to notify the wearable device to collect head motion information;
动作识别模块220,用于接收所述头部动作信息,并根据所述头部动作信息进行动作识别,生成所述动作识别结果;A motion recognition module 220, configured to receive the head motion information, perform motion recognition according to the head motion information, and generate the motion recognition result;
操作执行模块230,用于在所述动作识别结果符合预设动作时,控制所述电子设备执行对应的图像获取操作。The operation execution module 230 is configured to control the electronic device to perform a corresponding image acquisition operation when the action recognition result conforms to a preset action.
具体地,操作执行模块230,用于在所述动作识别结果为第一动作时,在第一预设时 间后控制所述电子设备执行拍摄操作并存储所述拍摄结果;和/或,当所述动作识别结果为第二动作时,控制所述电子设备执行切换操作。Specifically, the operation execution module 230 is configured to, when the action recognition result is a first action, control the electronic device to perform a shooting operation and store the shooting result after a first preset time; and/or, when all the When the action recognition result is the second action, the electronic device is controlled to perform a switching operation.
另一种可行的实现方式中,所述消息发送模块210,用于在检测到图像获取请求时,发送第一消息,其中,所述第一消息用于通知所述可穿戴设备收集头部动作信息;In another feasible implementation manner, the message sending module 210 is configured to send a first message when an image acquisition request is detected, wherein the first message is used to notify the wearable device to collect head movements information;
动作识别模块220,用于接收所述头部动作信息,并根据所述头部动作信息进行动作识别,生成所述动作识别结果;A motion recognition module 220, configured to receive the head motion information, perform motion recognition according to the head motion information, and generate the motion recognition result;
操作执行模块230,用于在所述动作识别结果为第一动作时,控制所述电子设备基于当前状态选择执行录制操作或停止录制操作;和/或,当所述动作识别结果为第二动作时,控制所述电子设备执行结束录制操作并存储所述录制结果。The operation execution module 230 is configured to control the electronic device to select to perform the recording operation or stop the recording operation based on the current state when the action recognition result is the first action; and/or, when the action recognition result is the second action , control the electronic device to perform an end recording operation and store the recording result.
一种可行的实现方式中,操作执行模块230,还用于在所述动作识别结果为第三动作时,控制所述电子设备执行调节焦距操作。In a feasible implementation manner, the operation execution module 230 is further configured to control the electronic device to perform a focus adjustment operation when the action recognition result is a third action.
一种可行的实现方式中,操作执行模块230,还用于在所述动作识别结果为第四动作时,控制所述电子设备执行连拍操作;所述连拍操作为在第二预设时间后,拍摄预设数量的图像。In a feasible implementation manner, the operation execution module 230 is further configured to control the electronic device to perform a continuous shooting operation when the action recognition result is the fourth action; the continuous shooting operation is performed at a second preset time. After that, take a preset number of images.
请参阅图10,图10为一个实施例中电子设备的内部结构示意图。结合图10与图1,所述电子设备110与可穿戴设备通信120连接。如图10所示,该电子设备包括通过系统总线连接的一个或多个处理器1120、存储器1140、摄像头1160以及显示器1180。一个或多个程序被存储在所述存储器1140中并被配置为由所述一个或多个处理器1120执行该图像获取方法所对应的步骤。Please refer to FIG. 10 , which is a schematic diagram of an internal structure of an electronic device in one embodiment. With reference to FIG. 10 and FIG. 1 , the electronic device 110 is connected to the wearable device for communication 120 . As shown in FIG. 10 , the electronic device includes one or more processors 1120 , a memory 1140 , a camera 1160 and a display 1180 connected through a system bus. One or more programs are stored in the memory 1140 and configured to perform, by the one or more processors 1120, steps corresponding to the image acquisition method.
其中,处理器1120可以包括一个或者多个处理核。处理器1120利用各种接口和线路连接整个电子设备110内的各个部分,通过运行或执行存储在存储器1140内的指令、程序、代码集或指令集,以及调用存储在存储器1140内的数据,执行电子设备110的各种功能和处理数据。可选地,处理器1120可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器1120可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器1120中,单独通过一块通信芯片进行实现。The processor 1120 may include one or more processing cores. The processor 1120 uses various interfaces and lines to connect various parts of the entire electronic device 110, and executes by running or executing the instructions, programs, code sets or instruction sets stored in the memory 1140, and calling the data stored in the memory 1140. Various functions of the electronic device 110 and processing data. Optionally, the processor 1120 may adopt at least one of digital signal processing (Digital Signal Processing, DSP), field-programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). implemented in a hardware form. The processor 1120 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a modem, and the like. Among them, the CPU mainly handles the operating system, user interface and application programs, etc.; the GPU is used for rendering and drawing of the display content; the modem is used to handle wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 1120, and is implemented by a communication chip alone.
存储器1140可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器1140可用于存储指令、程序、代码、代码集或指令集。存储器1140可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储电子设备110在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 1140 may include random access memory (Random Access Memory, RAM), or may include read-only memory (Read-Only Memory). Memory 1140 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory 1140 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the following method embodiments, and the like. The storage data area may also store data created by the electronic device 110 during use (eg, phone book, audio and video data, chat record data) and the like.
所述摄像头1160用于接收用户的图像信息。一种可能的实现方式中,摄像头1160可以是一个单独的组件。另一种可能的方式中,摄像头1160是包含多个摄像头单元的摄像头模块。本申请实施例不对摄像头1160的具体实现方式进行限定。The camera 1160 is used for receiving image information of the user. In one possible implementation, the camera 1160 may be a separate component. In another possible manner, the camera 1160 is a camera module including a plurality of camera units. This embodiment of the present application does not limit the specific implementation of the camera 1160 .
所述显示屏1180用于显示电子设备110的信息。一种可能的实现方式中,显示屏1180可以包括触控功能,用于接收用户的触控信息。The display screen 1180 is used to display the information of the electronic device 110 . In a possible implementation manner, the display screen 1180 may include a touch function for receiving touch information from the user.
在本说明书的描述中,参考术语“某些实施方式”、“一个例子中”、“示例地”等的描述意指结合实施方式或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施方式或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施方式或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施方式或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, reference to the description of the terms "certain embodiments," "in an example," "exemplarily," etc. means that a particular feature, structure, material, or characteristic described in connection with an embodiment or example is included in the present application at least one embodiment or example of . In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, those skilled in the art may combine and combine the different embodiments or examples described in this specification, as well as the features of the different embodiments or examples, without conflicting each other.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。Any description of a process or method in the flowcharts or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing a specified logical function or step of the process , and the scope of the preferred embodiments of the present application includes alternative implementations in which the functions may be performed out of the order shown or discussed, including performing the functions substantially concurrently or in the reverse order depending upon the functions involved, which should It is understood by those skilled in the art to which the embodiments of the present application belong.
尽管上面已经示出和描述了本申请的实施方式,可以理解的是,上述实施方式是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施方式进行变化、修改、替换和变型。Although the embodiments of the present application have been shown and described above, it should be understood that the above embodiments are exemplary and should not be construed as limitations to the present application. Embodiments are subject to variations, modifications, substitutions and alterations.

Claims (10)

  1. 一种电子设备的图像获取方法,所述电子设备与可穿戴设备通信连接,其特征在于,所述方法包括:An image acquisition method of an electronic device, wherein the electronic device is communicatively connected to a wearable device, wherein the method comprises:
    当检测到图像获取请求时,发送第一消息,其中,所述第一消息用于通知所述可穿戴设备收集头部动作信息;When an image acquisition request is detected, a first message is sent, wherein the first message is used to notify the wearable device to collect head motion information;
    接收所述头部动作信息,并根据所述头部动作信息进行动作识别,生成所述动作识别结果;receiving the head motion information, and performing motion recognition according to the head motion information to generate the motion recognition result;
    若所述动作识别结果符合预设动作,控制所述电子设备执行对应的图像获取操作。If the action recognition result conforms to a preset action, the electronic device is controlled to perform a corresponding image acquisition operation.
  2. 根据权利要求1所述的图像获取方法,其特征在于,所述当检测到图像获取请求时,发送第一消息,包括:The image acquisition method according to claim 1, wherein the sending a first message when an image acquisition request is detected, comprising:
    当检测到所述图像获取请求时,判断指定事件是否存在;When the image acquisition request is detected, determine whether the specified event exists;
    若所述指定事件存在,则发送第一消息,其中,所述第一消息用于通知所述可穿戴设备收集头部动作信息。If the specified event exists, a first message is sent, where the first message is used to notify the wearable device to collect head motion information.
  3. 根据权利要求2所述的图像获取方法,其特征在于,所述判断指定事件是否存在包括识别人脸是否存在或识别姿态匹配是否成功,所述若所述动作识别结果符合预设动作,控制所述电子设备执行对应的图像获取操作,包括:The image acquisition method according to claim 2, wherein the judging whether the specified event exists includes recognizing whether the face exists or recognizing whether the gesture matching is successful, and if the action recognition result conforms to a preset action, control all The electronic device performs corresponding image acquisition operations, including:
    当所述动作识别结果为第一动作时,在第一预设时间后控制所述电子设备执行拍摄操作并存储所述拍摄结果;When the action recognition result is a first action, control the electronic device to perform a shooting operation and store the shooting result after a first preset time;
    和/或,当所述动作识别结果为第二动作时,控制所述电子设备执行切换操作。And/or, when the action recognition result is the second action, the electronic device is controlled to perform a switching operation.
  4. 根据权利要求1所述的图像获取方法,其特征在于,若所述动作识别结果符合预设动作,控制所述电子设备执行对应的图像获取操作,包括:The image acquisition method according to claim 1, wherein if the motion recognition result conforms to a preset motion, controlling the electronic device to perform a corresponding image acquisition operation, comprising:
    当所述动作识别结果为第一动作时,控制所述电子设备基于当前状态选择执行录制操作或停止录制操作;When the action recognition result is the first action, controlling the electronic device to select to perform the recording operation or stop the recording operation based on the current state;
    和/或,当所述动作识别结果为第二动作时,控制所述电子设备执行结束录制操作并存储所述录制结果。And/or, when the action recognition result is the second action, the electronic device is controlled to perform an end recording operation and store the recording result.
  5. 根据权利要求1所述的图像获取方法,其特征在于,所述根据所述头部动作信息进行动作识别,生成所述动作识别结果,包括:The image acquisition method according to claim 1, wherein the performing motion recognition according to the head motion information to generate the motion recognition result comprises:
    根据所述头部动作信息,基于卷积神经网络模型进行所述动作识别,输出所述动作识别结果。According to the head motion information, the motion recognition is performed based on a convolutional neural network model, and the motion recognition result is output.
  6. 根据权利要求3或4所述的图像获取方法,其特征在于,所述方法还包括:The image acquisition method according to claim 3 or 4, wherein the method further comprises:
    当所述动作识别结果为第三动作时,控制所述电子设备执行调节焦距操作。When the action recognition result is a third action, the electronic device is controlled to perform a focus adjustment operation.
  7. 根据权利要求3所述的图像获取方法,其特征在于,所述方法还包括:The image acquisition method according to claim 3, wherein the method further comprises:
    当所述动作识别结果为第四动作时,控制所述电子设备执行连拍操作;所述连拍操作为在第二预设时间后,拍摄预设数量的图像。When the action recognition result is the fourth action, the electronic device is controlled to perform a continuous shooting operation; the continuous shooting operation is to shoot a preset number of images after a second preset time.
  8. 一种图像获取装置,所述图像获取装置与可穿戴设备通信连接,其特征在于,所述图像获取装置包括:An image acquisition device, the image acquisition device is communicatively connected with a wearable device, characterized in that the image acquisition device comprises:
    消息发送模块,用于在检测到图像获取请求时,发送第一消息,其中,所述第一消息用于通知所述可穿戴设备收集头部动作信息;a message sending module, configured to send a first message when an image acquisition request is detected, wherein the first message is used to notify the wearable device to collect head motion information;
    动作识别模块,用于接收所述头部动作信息,并根据所述头部动作信息进行动作识别,生成所述动作识别结果;a motion recognition module, configured to receive the head motion information, perform motion recognition according to the head motion information, and generate the motion recognition result;
    操作执行模块,用于在所述动作识别结果符合预设动作时,控制所述电子设备执行对应的图像获取操作。An operation execution module, configured to control the electronic device to perform a corresponding image acquisition operation when the action recognition result conforms to a preset action.
  9. 一种电子设备,所述电子设备与可穿戴设备通信连接,其特征在于,所述电子设备包括一个或多个处理器以及存储器;一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行权利要求1-7任一所述的方法。An electronic device, the electronic device is communicatively connected with a wearable device, characterized in that the electronic device comprises one or more processors and a memory; one or more programs are stored in the memory and configured to The method of any of claims 1-7 is performed by the one or more processors.
  10. 一种图像获取系统,其特征在于,所述系统包括电子设备与可穿戴设备;An image acquisition system, characterized in that the system includes an electronic device and a wearable device;
    所述电子设备与所述可穿戴设备通信连接;the electronic device is in communication connection with the wearable device;
    所述电子设备包括处理器,所述处理器用于:The electronic device includes a processor for:
    在检测到图像获取请求时,发送第一消息,其中,所述第一消息用于通知所述可穿戴设备收集头部动作信息;When an image acquisition request is detected, a first message is sent, wherein the first message is used to notify the wearable device to collect head motion information;
    接收所述头部动作信息,并根据所述头部动作信息进行动作识别,生成所述动作识别结果;receiving the head motion information, and performing motion recognition according to the head motion information to generate the motion recognition result;
    在所述动作识别结果符合预设动作时,控制所述电子设备执行对应的图像获取操作。When the action recognition result conforms to a preset action, the electronic device is controlled to perform a corresponding image acquisition operation.
PCT/CN2022/085407 2021-04-27 2022-04-06 Image acquisition method, apparatus, and system for electronic device, and electronic device WO2022228068A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110462283.1A CN113138669A (en) 2021-04-27 2021-04-27 Image acquisition method, device and system of electronic equipment and electronic equipment
CN202110462283.1 2021-04-27

Publications (1)

Publication Number Publication Date
WO2022228068A1 true WO2022228068A1 (en) 2022-11-03

Family

ID=76816136

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/085407 WO2022228068A1 (en) 2021-04-27 2022-04-06 Image acquisition method, apparatus, and system for electronic device, and electronic device

Country Status (2)

Country Link
CN (1) CN113138669A (en)
WO (1) WO2022228068A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113138669A (en) * 2021-04-27 2021-07-20 Oppo广东移动通信有限公司 Image acquisition method, device and system of electronic equipment and electronic equipment
CN114253397A (en) * 2021-11-18 2022-03-29 深圳大学 Intelligent equipment interaction system based on ear-wearing type inertial sensor
CN114401341B (en) * 2022-01-12 2023-08-29 Oppo广东移动通信有限公司 Camera control method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160037055A1 (en) * 2014-07-31 2016-02-04 Google Technology Holdings LLC Capturing images of active subjects
CN108965722A (en) * 2018-08-22 2018-12-07 奇酷互联网络科技(深圳)有限公司 A kind of filming control method and wearable device
CN109144245A (en) * 2018-07-04 2019-01-04 Oppo(重庆)智能科技有限公司 Apparatus control method and Related product
CN110162204A (en) * 2018-10-09 2019-08-23 腾讯科技(深圳)有限公司 The method that the method, apparatus and control for triggering functions of the equipments carry out image capture
CN113138669A (en) * 2021-04-27 2021-07-20 Oppo广东移动通信有限公司 Image acquisition method, device and system of electronic equipment and electronic equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103713732A (en) * 2012-09-28 2014-04-09 王潮 Personal portable device
CN102946516A (en) * 2012-11-28 2013-02-27 广东欧珀移动通信有限公司 Mobile terminal and method for detecting blink action and realizing autodyne by mobile terminal
KR20140130331A (en) * 2013-04-30 2014-11-10 (주)세이엔 Wearable electronic device and method for controlling the same
CN103279253A (en) * 2013-05-23 2013-09-04 广东欧珀移动通信有限公司 Method and terminal device for theme setting
CN104394312B (en) * 2014-10-23 2017-08-22 小米科技有限责任公司 Filming control method and device
CN106227331A (en) * 2016-07-08 2016-12-14 广东小天才科技有限公司 It is applied to examination question searching method and the device of electric terminal
CN106896917B (en) * 2017-02-21 2021-03-30 北京小米移动软件有限公司 Method and device for assisting user in experiencing virtual reality and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160037055A1 (en) * 2014-07-31 2016-02-04 Google Technology Holdings LLC Capturing images of active subjects
CN109144245A (en) * 2018-07-04 2019-01-04 Oppo(重庆)智能科技有限公司 Apparatus control method and Related product
CN108965722A (en) * 2018-08-22 2018-12-07 奇酷互联网络科技(深圳)有限公司 A kind of filming control method and wearable device
CN110162204A (en) * 2018-10-09 2019-08-23 腾讯科技(深圳)有限公司 The method that the method, apparatus and control for triggering functions of the equipments carry out image capture
CN113138669A (en) * 2021-04-27 2021-07-20 Oppo广东移动通信有限公司 Image acquisition method, device and system of electronic equipment and electronic equipment

Also Published As

Publication number Publication date
CN113138669A (en) 2021-07-20

Similar Documents

Publication Publication Date Title
WO2022228068A1 (en) Image acquisition method, apparatus, and system for electronic device, and electronic device
US10636215B2 (en) Systems and methods for providing real-time composite video from multiple source devices featuring augmented reality elements
CN104410883B (en) The mobile wearable contactless interactive system of one kind and method
US11170580B2 (en) Information processing device, information processing method, and recording medium
CN108475507A (en) Information processing equipment, information processing method and program
WO2020078319A1 (en) Gesture-based manipulation method and terminal device
JP2014233035A (en) Information processor, display control method and program
CN108989672A (en) A kind of image pickup method and mobile terminal
CN109743504A (en) A kind of auxiliary photo-taking method, mobile terminal and storage medium
WO2022001406A1 (en) Display method and display device
WO2015078155A1 (en) A method and mobile terminal for speech communication
TW201228332A (en) Mobile electronic device
CN109819167A (en) A kind of image processing method, device and mobile terminal
WO2019155735A1 (en) Information processing device, information processing method, and program
JP2012175136A (en) Camera system and control method of the same
JP2018051701A (en) Communication apparatus
CN106412810B (en) Data transmission method and device
WO2019201235A1 (en) Video communication method and mobile terminal
CN109039851B (en) Interactive data processing method and device, computer equipment and storage medium
JP2019106220A (en) Program executed by computer to provide virtual space via head mount device, method, and information processing device
CN114520002A (en) Method for processing voice and electronic equipment
WO2012008553A1 (en) Robot system
CN109743561A (en) A kind of terminal image pickup method, camera terminal and computer readable storage medium
CN108829237A (en) Children's wrist-watch control method, terminal control method and device
WO2020238913A1 (en) Video recording method and terminal

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

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

Country of ref document: EP

Kind code of ref document: A1