CN107888830B - Camera starting method and device, computer device and computer readable storage medium - Google Patents

Camera starting method and device, computer device and computer readable storage medium Download PDF

Info

Publication number
CN107888830B
CN107888830B CN201711185228.2A CN201711185228A CN107888830B CN 107888830 B CN107888830 B CN 107888830B CN 201711185228 A CN201711185228 A CN 201711185228A CN 107888830 B CN107888830 B CN 107888830B
Authority
CN
China
Prior art keywords
terminal
camera
instant messaging
preset
content
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711185228.2A
Other languages
Chinese (zh)
Other versions
CN107888830A (en
Inventor
常向月
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Xingji Meizu Technology Co ltd
Original Assignee
Meizu Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Meizu Technology Co Ltd filed Critical Meizu Technology Co Ltd
Priority to CN201711185228.2A priority Critical patent/CN107888830B/en
Publication of CN107888830A publication Critical patent/CN107888830A/en
Application granted granted Critical
Publication of CN107888830B publication Critical patent/CN107888830B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/141Systems for two-way working between two video terminals, e.g. videophone
    • H04N7/142Constructional details of the terminal equipment, e.g. arrangements of the camera and the display

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a camera starting method, which comprises the following steps: if the terminal is in the instant communication state, detecting whether the instant communication content corresponding to the instant communication state contains a preset photographing keyword; if the content of the instant messaging contains preset photographing keywords, detecting whether the motion state of the terminal meets preset photographing conditions; and if the motion state of the terminal meets the preset photographing condition, starting a camera of the terminal. The invention also provides a camera starting device, a computer device and a computer readable storage medium. The invention can automatically turn on the camera according to the requirement in the instant communication process, thereby improving the intelligent level of the terminal and bringing convenience to users.

Description

Camera starting method and device, computer device and computer readable storage medium
Technical Field
The invention relates to the technical field of intelligent terminals, in particular to a camera starting method and device, a computer device and a computer readable storage medium.
Background
Currently, with the development of electronic and communication technologies, terminals such as mobile phones and tablet computers are widely used. Taking a picture is one of the most common functions of a terminal. However, the user needs to click a specific button to turn on the camera, which is sometimes inconvenient for the user. Especially, when instant messaging is carried out, a user needs to select shooting after clicking a plus sign to start the camera, and the operation process is complicated.
Disclosure of Invention
In view of the above, it is necessary to provide a camera starting method and apparatus, a computer apparatus, and a computer readable storage medium, which can automatically start a camera according to needs in an instant messaging process, improve the intelligent level of a terminal, and bring convenience to a user.
A first aspect of the present application provides a camera starting method, including:
if the terminal is in the instant communication state, detecting whether the instant communication content corresponding to the instant communication state contains a preset photographing keyword;
if the content of the instant messaging contains preset photographing keywords, detecting whether the motion state of the terminal meets preset photographing conditions;
and if the motion state of the terminal meets the preset photographing condition, starting a camera of the terminal.
In another possible implementation manner, the detecting whether the content of the instant messaging contains a preset photo keyword includes:
if the content of the instant messaging comprises voice data, analyzing the voice data, and detecting whether the analyzed voice data contains the preset photographing keyword; or
If the content of the instant messaging comprises text data, detecting whether the text data contains the preset photographing keyword; or
And if the content of the instant messaging comprises picture data, identifying the picture data, and detecting whether the identified picture data contains the preset photographing keywords.
In another possible implementation manner, the terminal includes a plurality of cameras, and the turning on the camera of the terminal includes:
and starting at least one camera in the plurality of cameras according to the motion state of the terminal and/or the content of the instant messaging.
In another possible implementation manner, the method further includes:
displaying the pictures or videos shot by the camera in the instant messaging chat interface; and/or
And sending the pictures or videos shot by the camera to the opposite party of the instant messaging.
In another possible implementation manner, the method further includes:
and if the camera detects that the user takes a photographing gesture, starting photographing beautifying software in the terminal to photograph.
A second aspect of the present application provides a camera startup device, the device including:
the terminal comprises a first detection unit, a second detection unit and a third detection unit, wherein the first detection unit is used for detecting whether the content of the instant messaging corresponding to the instant messaging state contains a preset photographing keyword or not if the terminal is in the instant messaging state;
the second detection unit is used for detecting whether the motion state of the terminal meets a preset photographing condition or not if the content of the instant messaging contains a preset photographing keyword;
and the opening unit is used for opening the camera of the terminal if the motion state of the terminal meets the preset photographing condition.
In another possible implementation manner, the detecting, by the first detecting unit, whether the content of the instant messaging includes a preset photo keyword includes:
if the content of the instant messaging comprises voice data, analyzing the voice data, and detecting whether the analyzed voice data contains the preset photographing keyword; or
If the content of the instant messaging comprises text data, detecting whether the text data contains the preset photographing keyword; or
And if the content of the instant messaging comprises picture data, identifying the picture data, and detecting whether the identified picture data contains the preset photographing keywords.
In another possible implementation manner, the terminal includes a plurality of cameras, and the turning on the camera of the terminal by the turning on unit includes:
and starting at least one camera in the plurality of cameras according to the motion state of the terminal and/or the content of the instant messaging.
In another possible implementation manner, the apparatus further includes:
and the output unit is used for displaying the pictures or videos shot by the camera in the chat interface of the instant messaging and/or sending the pictures or videos shot by the camera to the opposite side of the instant messaging.
In another possible implementation manner, the apparatus further includes:
and the photographing unit is used for starting photographing beautifying software in the terminal to photograph if the camera detects that the user is in a photographing posture.
A third aspect of the application provides a computer apparatus comprising a processor for implementing the camera startup method when executing a computer program stored in a memory.
A fourth aspect of the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the camera booting method.
If the terminal is in the instant messaging state, detecting whether the instant messaging content corresponding to the instant messaging state contains a preset photographing keyword; if the content of the instant messaging contains preset photographing keywords, detecting whether the motion state of the terminal meets preset photographing conditions; and if the motion state of the terminal meets the preset photographing condition, starting a camera of the terminal. The invention can automatically turn on the camera according to the requirement in the instant communication process, thereby improving the intelligent level of the terminal and bringing convenience to users.
Drawings
Fig. 1 is a flowchart of a camera booting method according to an embodiment of the present invention.
Fig. 2 is a structural diagram of a camera starting device according to a second embodiment of the present invention.
Fig. 3 is a schematic diagram of a computer device according to a third embodiment of the present invention.
Description of the main elements
Computer device 1
Camera starting device 10
Memory 20
Processor 30
Computer program 40
First detecting unit 201
Second detecting unit 202
Opening unit 203
The following detailed description will further illustrate the invention in conjunction with the above-described figures.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a detailed description of the present invention will be given below with reference to the accompanying drawings and specific embodiments. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth to provide a thorough understanding of the present invention, and the described embodiments are merely a subset of the embodiments of the present invention, rather than a complete embodiment. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
Preferably, the camera booting method of the present invention is applied in one or more terminals. The terminal is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and the hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The terminal may be, but is not limited to, any electronic product that can perform human-computer interaction with a user through a keyboard, a mouse, a remote controller, a touch panel, or a voice control device, for example, a tablet computer, a smart phone, a Personal Digital Assistant (PDA), a smart wearable device, and the like.
Example one
Fig. 1 is a flowchart of a camera booting method according to an embodiment of the present invention. As shown in fig. 1, the method specifically includes the following steps:
101: and if the terminal is in the instant communication state, detecting whether the instant communication content corresponding to the instant communication state contains preset photographing keywords.
The instant messaging state is a state in which the terminal instantly sends and receives messages. Whether the current display interface of the terminal is a chat interface of instant messaging software (such as WeChat and QQ) can be detected, and if the current display interface of the terminal is the chat interface of the instant messaging software, the terminal is in an instant messaging state.
The instant communication state can be a one-to-one private chat state or a group chat state of multi-person chat.
Detecting whether the content of the instant messaging contains a preset photographing keyword may include:
(1) and if the content of the instant messaging comprises voice data, analyzing the voice data, and detecting whether the analyzed voice data contains the preset photographing keyword.
The speech data may be parsed using various speech recognition techniques, such as Dynamic Time Warping (DTW), Hidden Markov Model (HMM), Vector Quantization (VQ), Artificial Neural Network (ANN), and so on.
The voice message can be analyzed to obtain text information corresponding to the voice message, and whether the text information contains the preset photographing keyword is judged.
(2) And if the content of the instant messaging comprises text data, detecting whether the text data contains the preset photographing keyword.
Whether the text data is matched with the preset photographing keyword or not can be judged, and if the text data is matched with the preset photographing keyword, the text data contains the preset photographing keyword.
(3) And if the content of the instant messaging comprises picture data, identifying the picture data, and detecting whether the identified picture data contains the preset photographing keywords.
The image data may be recognized by various image recognition techniques, such as Quadratic Discriminant Function (QDF), K-Nearest Neighbor (KNN), Support Vector Machine (SVM), Convolutional Neural Network (CNN), and the like.
The image data can be identified to obtain text information corresponding to the image data, and whether the text information contains the preset photographing keywords or not is judged.
102: and if the content of the instant messaging contains the preset photographing keyword, detecting whether the motion state of the terminal meets the preset photographing condition.
Detecting whether the motion state of the terminal meets the preset photographing condition may include:
(1) and judging whether the terminal is changed from the static state to the pick-up state or not. And if the terminal is changed from the static state to the pick-up state, judging that the motion state of the terminal meets the preset photographing condition.
The stationary state may be a state in which the terminal is laid flat and stationary, and may be detected by a sensor (e.g., a gyroscope) built in the terminal. The pick-up state is a state of the terminal when the user picks up the terminal. If the motion amplitude of the terminal is smaller than the preset amplitude (for example, the terminal may move slightly when the user holds the terminal for instant messaging), the terminal may be considered to be in a static state.
(2) And judging whether the movement direction of the terminal is a preset direction or not. And if the motion direction of the terminal is a preset direction, judging that the motion state of the terminal meets a preset photographing condition.
For example, it may be determined whether the moving direction of the terminal is upward. And if the motion direction of the terminal is upward, judging that the motion state of the terminal meets a preset photographing condition.
(3) And judging whether the screen of the terminal is changed from a first preset orientation to a second preset orientation. And if the screen of the terminal is changed from the first preset orientation to the second preset orientation, judging that the motion state of the terminal meets the preset photographing condition.
The method comprises the steps of detecting an included angle between a screen and a horizontal plane, and judging that the motion state of the terminal meets a preset photographing condition if the included angle between the screen and the horizontal plane is changed from a first preset angle to a second preset angle. The first preset angle corresponds to a state that the screen faces upwards, and the first preset angle can be larger than or equal to 0 degree and smaller than 30 degrees. The second preset angle corresponds to a state that the screen faces the user or faces away from the user, and the second preset angle may be greater than 80 degrees and less than 110 degrees.
Whether the motion state of the terminal meets the preset photographing condition or not can be judged by combining various conditions. For example, whether the terminal is changed from a static state to a pick-up state or not, whether the motion direction of the terminal is a preset direction or not, and whether the included angle between the screen of the terminal and the horizontal plane is changed from a first preset angle to a second preset angle or not can be judged. And if the terminal is changed from the static state to the pick-up state, the motion direction of the terminal is a preset direction, and the screen of the terminal is changed from the first preset orientation to the second preset orientation, judging that the motion state of the terminal meets the preset photographing condition.
103: and if the motion state of the terminal meets the preset photographing condition, starting a camera of the terminal.
The terminal may include a plurality of cameras, and the turning on the camera of the terminal may include:
(1) and starting at least one camera in the plurality of cameras according to the motion state of the terminal.
For example, if it is detected that the movement trend of the terminal is an upward tilt movement, a front camera (i.e., a front camera) of the terminal is turned on. And if the motion trend of the terminal is detected to be horizontal forward motion, a rear camera (namely a rear camera) of the terminal is started. When the movement trend of the terminal is a slant upward movement, the possibility that the user takes a self-portrait is high, and thus the front camera of the terminal is turned on. When the movement tendency of the terminal is horizontal forward movement, the possibility of photographing a scene in front of the user is high, and thus a rear camera of the terminal is turned on.
(2) And starting at least one camera in the plurality of cameras according to the content of the instant messaging.
For example, if the content of the instant messaging includes a keyword "self-timer", a front camera (i.e., a front camera) of the terminal is turned on. If the content of the instant messaging does not include the keyword 'self-timer' (for example, the received instant message is 'send an office photo'), a rear camera (namely a rear camera) of the terminal is turned on.
At least one of the plurality of cameras may be turned on in a combination of the above two ways to improve the accuracy of turning on the camera. For example, if it is detected that the movement trend of the terminal is a diagonal upward movement and the content of the instant messaging includes a keyword "self-timer", a front camera (i.e. a front camera) of the terminal is turned on. And if the motion trend of the terminal is detected to be horizontal forward motion and the content of the instant messaging does not comprise the keyword 'self-timer', starting a rear camera (namely a rear camera) of the terminal.
When a camera of the terminal is turned on, a photographing mode when the camera is turned on may be determined. The photographing mode may include a photo mode and a video mode. When the camera is in a photo mode, it is used to take a picture of the subject (e.g., take a live picture of the end user). When the camera is in video mode, it is used to capture video of the subject (e.g., capture real-time video of the end user).
The shooting mode when the camera is turned on can be determined according to the content of the instant messaging. For example, if the content of the instant messaging includes keywords "self-timer shooting", "photo" or "beauty shooting", the shooting mode when the camera is turned on is a photo mode. And if the content of the instant messaging comprises a keyword video, the shooting mode when the camera is started is a video mode.
In the camera starting method according to the first embodiment, if the terminal is in the instant messaging state, whether the content of the instant messaging corresponding to the instant messaging state includes a preset photographing keyword is detected; if the content of the instant messaging contains preset photographing keywords, detecting whether the motion state of the terminal meets preset photographing conditions; and if the motion state of the terminal meets the preset photographing condition, starting a camera of the terminal. The camera starting method of the embodiment can automatically start the camera according to the needs in the instant messaging process, improves the intelligent level of the terminal, and brings convenience to users.
In another embodiment, the camera booting method may further include:
displaying the pictures or videos shot by the camera in the instant messaging chat interface; and/or sending the photo or video shot by the camera to the opposite party of the instant messaging.
After the camera is turned on, a photo or video taken by the camera may be displayed in the instant messaging chat interface. For example, the instant messaging chat interface is displayed in a floating window manner in the instant messaging chat interfaces of the terminal and the opposite terminal.
Alternatively, the photo or video taken by the camera may be sent to the party of the instant communication. For example, the photo or video is sent to the other party of the instant messaging in the form of instant message.
In another embodiment, the camera booting method may further include:
and if the camera detects that the user is in the photographing posture, starting photographing beautifying software in the terminal to photograph.
The photo beautifying software is application software for automatically beautifying the shot photos (such as skin grinding and whitening, freckle and acne removing, face slimming and body slimming, eye beautifying and the like), and comprises a beautifying camera, a camera 360, a POCO camera and the like.
The photo of the user can be shot through the camera, the shot photo is subjected to image recognition, whether the shot photo is matched with the pre-stored photographing posture template picture or not is judged, and if the shot photo is matched with the pre-stored photographing posture template picture, the user is judged to be in a photographing posture.
Example two
Fig. 2 is a structural diagram of a camera starting device according to a second embodiment of the present invention. As shown in fig. 2, the camera activation device 10 may include: a first detection unit 201, a second detection unit 202 and a starting unit 203.
The first detecting unit 201 is configured to detect whether an instant messaging content corresponding to an instant messaging state includes a preset photographing keyword if the terminal is in the instant messaging state.
The instant messaging state is a state in which the terminal instantly sends and receives messages. Whether the current display interface of the terminal is a chat interface of instant messaging software (such as WeChat and QQ) can be detected, and if the current display interface of the terminal is the chat interface of the instant messaging software, the terminal is in an instant messaging state.
The instant communication state can be a one-to-one private chat state or a group chat state of multi-person chat.
Detecting whether the content of the instant messaging contains a preset photographing keyword may include:
(1) and if the content of the instant messaging comprises voice data, analyzing the voice data, and detecting whether the analyzed voice data contains the preset photographing keyword.
The speech data may be parsed using various speech recognition techniques, such as Dynamic Time Warping (DTW), Hidden Markov Model (HMM), Vector Quantization (VQ), Artificial Neural Network (ANN), and so on.
The voice message can be analyzed to obtain text information corresponding to the voice message, and whether the text information contains the preset photographing keyword is judged.
(2) And if the content of the instant messaging comprises text data, detecting whether the text data contains the preset photographing keyword.
Whether the text data is matched with the preset photographing keyword or not can be judged, and if the text data is matched with the preset photographing keyword, the text data contains the preset photographing keyword.
(3) And if the content of the instant messaging comprises picture data, identifying the picture data, and detecting whether the identified picture data contains the preset photographing keywords.
The image data may be recognized by various image recognition techniques, such as Quadratic Discriminant Function (QDF), K-Nearest Neighbor (KNN), Support Vector Machine (SVM), Convolutional Neural Network (CNN), and the like.
The image data can be identified to obtain text information corresponding to the image data, and whether the text information contains the preset photographing keywords or not is judged.
The second detecting unit 202 is configured to detect whether the motion state of the terminal meets a preset photographing condition if the content of the instant messaging includes a preset photographing keyword.
Detecting whether the motion state of the terminal meets the preset photographing condition may include:
(1) and judging whether the terminal is changed from the static state to the pick-up state or not. And if the terminal is changed from the static state to the pick-up state, judging that the motion state of the terminal meets the preset photographing condition.
The stationary state may be a state in which the terminal is laid flat and stationary, and may be detected by a sensor (e.g., a gyroscope) built in the terminal. The pick-up state is a state of the terminal when the user picks up the terminal. If the motion amplitude of the terminal is smaller than the preset amplitude (for example, the terminal may move slightly when the user holds the terminal for instant messaging), the terminal may be considered to be in a static state.
(2) And judging whether the movement direction of the terminal is a preset direction or not. And if the motion direction of the terminal is a preset direction, judging that the motion state of the terminal meets a preset photographing condition.
For example, it may be determined whether the moving direction of the terminal is upward. And if the motion direction of the terminal is upward, judging that the motion state of the terminal meets a preset photographing condition.
(3) And judging whether the screen of the terminal is changed from a first preset orientation to a second preset orientation. And if the screen of the terminal is changed from the first preset orientation to the second preset orientation, judging that the motion state of the terminal meets the preset photographing condition.
The method comprises the steps of detecting an included angle between a screen and a horizontal plane, and judging that the motion state of the terminal meets a preset photographing condition if the included angle between the screen and the horizontal plane is changed from a first preset angle to a second preset angle. The first preset angle corresponds to a state that the screen faces upwards, and the first preset angle can be larger than or equal to 0 degree and smaller than 30 degrees. The second preset angle corresponds to a state that the screen faces the user or faces away from the user, and the second preset angle may be greater than 80 degrees and less than 110 degrees.
Whether the motion state of the terminal meets the preset photographing condition or not can be judged by combining various conditions. For example, whether the terminal is changed from a static state to a pick-up state or not, whether the motion direction of the terminal is a preset direction or not, and whether the included angle between the screen of the terminal and the horizontal plane is changed from a first preset angle to a second preset angle or not can be judged. And if the terminal is changed from the static state to the pick-up state, the motion direction of the terminal is a preset direction, and the screen of the terminal is changed from the first preset orientation to the second preset orientation, judging that the motion state of the terminal meets the preset photographing condition.
The starting unit 203 is configured to start the camera of the terminal if the motion state of the terminal meets a preset photographing condition.
The terminal may include a plurality of cameras, and the turning on the camera of the terminal may include:
(1) and starting at least one camera in the plurality of cameras according to the motion state of the terminal.
For example, if it is detected that the movement trend of the terminal is an upward tilt movement, a front camera (i.e., a front camera) of the terminal is turned on. And if the motion trend of the terminal is detected to be horizontal forward motion, a rear camera (namely a rear camera) of the terminal is started. When the movement trend of the terminal is a slant upward movement, the possibility that the user takes a self-portrait is high, and thus the front camera of the terminal is turned on. When the movement tendency of the terminal is horizontal forward movement, the possibility of photographing a scene in front of the user is high, and thus a rear camera of the terminal is turned on.
(2) And starting at least one camera in the plurality of cameras according to the content of the instant messaging.
For example, if the content of the instant messaging includes a keyword "self-timer", a front camera (i.e., a front camera) of the terminal is turned on. If the content of the instant messaging does not include the keyword 'self-timer' (for example, the received instant message is 'send an office photo'), a rear camera (namely a rear camera) of the terminal is turned on.
At least one of the plurality of cameras may be turned on in a combination of the above two ways to improve the accuracy of turning on the camera. For example, if it is detected that the movement trend of the terminal is a diagonal upward movement and the content of the instant messaging includes a keyword "self-timer", a front camera (i.e. a front camera) of the terminal is turned on. And if the motion trend of the terminal is detected to be horizontal forward motion and the content of the instant messaging does not comprise the keyword 'self-timer', starting a rear camera (namely a rear camera) of the terminal.
When a camera of the terminal is turned on, a photographing mode when the camera is turned on may be determined. The photographing mode may include a photo mode and a video mode. When the camera is in a photo mode, it is used to take a picture of the subject (e.g., take a live picture of the end user). When the camera is in video mode, it is used to capture video of the subject (e.g., capture real-time video of the end user).
The shooting mode when the camera is turned on can be determined according to the content of the instant messaging. For example, if the content of the instant messaging includes keywords "self-timer shooting", "photo" or "beauty shooting", the shooting mode when the camera is turned on is a photo mode. And if the content of the instant messaging comprises a keyword video, the shooting mode when the camera is started is a video mode.
The camera starting device 10 of the second embodiment detects whether the content of the instant messaging corresponding to the instant messaging state includes a preset photographing keyword when the terminal is in the instant messaging state; if the content of the instant messaging contains preset photographing keywords, detecting whether the motion state of the terminal meets preset photographing conditions; and if the motion state of the terminal meets the preset photographing condition, starting a camera of the terminal. The camera starting method of the embodiment can automatically start the camera according to the needs in the instant messaging process, improves the intelligent level of the terminal, and brings convenience to users.
In another embodiment, the camera activation device 10 further comprises:
and the output unit is used for displaying the pictures or videos shot by the camera in the chat interface of the instant messaging and/or sending the pictures or videos shot by the camera to the opposite side of the instant messaging.
After the camera is turned on, a photo or video taken by the camera may be displayed in the instant messaging chat interface. For example, the instant messaging chat interface is displayed in a floating window manner in the instant messaging chat interfaces of the terminal and the opposite terminal.
Alternatively, the photo or video taken by the camera may be sent to the party of the instant communication. For example, the photo or video is sent to the other party of the instant messaging in the form of instant message.
In another embodiment, the camera activation device 10 further comprises:
and the photographing unit is used for starting photographing beautifying software in the terminal to photograph if the camera detects that the user is in a photographing posture.
The photo beautifying software is application software for automatically beautifying the shot photos (such as skin grinding and whitening, freckle and acne removing, face slimming and body slimming, eye beautifying and the like), and comprises a beautifying camera, a camera 360, a POCO camera and the like.
The photo of the user can be shot through the camera, the shot photo is subjected to image recognition, whether the shot photo is matched with the pre-stored photographing posture template picture or not is judged, and if the shot photo is matched with the pre-stored photographing posture template picture, the user is judged to be in a photographing posture.
EXAMPLE III
Fig. 3 is a schematic diagram of a computer device according to a third embodiment of the present invention. The computer device 1 comprises a memory 20, a processor 30 and a computer program 40, such as a camera startup program, stored in the memory 20 and executable on the processor 30. The processor 30, when executing the computer program 40, implements the steps of the above-mentioned camera booting method embodiment, such as steps 101 to 103 shown in fig. 1. Alternatively, the processor 30, when executing the computer program 40, implements the functions of the modules/units in the above-described apparatus embodiments, such as the units 201 to 203.
Illustratively, the computer program 40 may be partitioned into one or more modules/units that are stored in the memory 20 and executed by the processor 30 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 40 in the computer apparatus 1. For example, the computer program 40 may be divided into a first detection unit 201, a second detection unit 202, and a start unit 203 in fig. 2, and the specific functions of the modules are shown in embodiment two.
The computer device 1 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. It will be understood by those skilled in the art that the schematic diagram 3 is only an example of the computer apparatus 1, and does not constitute a limitation to the computer apparatus 1, and may include more or less components than those shown, or combine some components, or different components, for example, the computer apparatus 1 may further include an input and output device, a network access device, a bus, and the like.
The Processor 30 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor 30 may be any conventional processor or the like, the processor 30 being the control center of the computer device 1 and connecting the various parts of the whole computer device 1 with various interfaces and lines.
The memory 20 may be used for storing the computer program 40 and/or the module/unit, and the processor 30 implements various functions of the computer device 1 by running or executing the computer program and/or the module/unit stored in the memory 20 and calling data stored in the memory 20. The memory 20 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the computer apparatus 1, and the like. In addition, the memory 20 may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
The modules/units integrated with the computer device 1 may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
In the embodiments provided in the present invention, it should be understood that the disclosed computer apparatus and method can be implemented in other ways. For example, the above-described embodiments of the computer apparatus are merely illustrative, and for example, the division of the units is only one logical function division, and there may be other divisions when the actual implementation is performed.
In addition, functional units in the embodiments of the present invention may be integrated into the same processing unit, or each unit may exist alone physically, or two or more units are integrated into the same unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. The units or computer means recited in the computer means claims may also be implemented by the same unit or computer means, either in software or in hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (8)

1. A camera startup method, characterized in that the method comprises:
if the terminal is in the instant communication state, detecting whether the instant communication content corresponding to the instant communication state contains a preset photographing keyword;
if the content of the instant messaging contains the preset photographing keyword, detecting whether the motion state of the terminal meets a preset photographing condition, wherein the step of detecting whether the motion state of the terminal meets the preset photographing condition comprises the following steps: judging whether the terminal is changed from a static state to a pick-up state or not, judging whether the motion direction of the terminal is a preset direction or not and judging whether the screen of the terminal is changed from a first preset orientation to a second preset orientation or not;
and if the motion state of the terminal meets the preset photographing condition, starting at least one camera in the plurality of cameras of the terminal according to the motion state of the terminal and the content of the instant messaging.
2. The method of claim 1, wherein the detecting whether the content of the instant messaging includes a preset photo keyword comprises:
if the content of the instant messaging comprises voice data, analyzing the voice data, and detecting whether the analyzed voice data contains the preset photographing keyword; or
If the content of the instant messaging comprises text data, detecting whether the text data contains the preset photographing keyword; or
And if the content of the instant messaging comprises picture data, identifying the picture data, and detecting whether the identified picture data contains the preset photographing keywords.
3. A camera startup method according to claim 1 or 2, characterized in that the method further comprises:
displaying the pictures or videos shot by the camera in the instant messaging chat interface; and/or
And sending the pictures or videos shot by the camera to the opposite party of the instant messaging.
4. A camera startup method according to claim 1 or 2, characterized in that the method further comprises:
and if the camera detects that the user takes a photographing gesture, starting photographing beautifying software in the terminal to photograph.
5. A camera startup device, characterized in that the device comprises:
the terminal comprises a first detection unit, a second detection unit and a third detection unit, wherein the first detection unit is used for detecting whether the content of the instant messaging corresponding to the instant messaging state contains a preset photographing keyword or not if the terminal is in the instant messaging state;
the second detection unit is used for detecting whether the motion state of the terminal meets a preset photographing condition if the content of the instant messaging contains a preset photographing keyword, and the detecting whether the motion state of the terminal meets the preset photographing condition comprises the following steps: judging whether the terminal is changed from a static state to a pick-up state or not, judging whether the motion direction of the terminal is a preset direction or not and judging whether the screen of the terminal is changed from a first preset orientation to a second preset orientation or not;
and the opening unit is used for opening at least one camera in the plurality of cameras of the terminal according to the motion state of the terminal and the content of the instant messaging if the motion state of the terminal meets the preset photographing condition.
6. The camera activating device of claim 5, wherein the first detecting unit detecting whether the content of the instant messaging includes a preset photo keyword comprises:
if the content of the instant messaging comprises voice data, analyzing the voice data, and detecting whether the analyzed voice data contains the preset photographing keyword; or
If the content of the instant messaging comprises text data, detecting whether the text data contains the preset photographing keyword; or
And if the content of the instant messaging comprises picture data, identifying the picture data, and detecting whether the identified picture data contains the preset photographing keywords.
7. A computer arrangement, characterized in that the computer arrangement comprises a processor for implementing the camera booting method according to any one of claims 1-4 when executing a computer program stored in a memory.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the camera booting method according to any one of claims 1-4.
CN201711185228.2A 2017-11-23 2017-11-23 Camera starting method and device, computer device and computer readable storage medium Active CN107888830B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711185228.2A CN107888830B (en) 2017-11-23 2017-11-23 Camera starting method and device, computer device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711185228.2A CN107888830B (en) 2017-11-23 2017-11-23 Camera starting method and device, computer device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107888830A CN107888830A (en) 2018-04-06
CN107888830B true CN107888830B (en) 2020-04-17

Family

ID=61774755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711185228.2A Active CN107888830B (en) 2017-11-23 2017-11-23 Camera starting method and device, computer device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107888830B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101340896B1 (en) * 2013-04-22 2013-12-13 주식회사 사라다 The way to improve power of cctv monitor in school zones for anticrime
CN105407030A (en) * 2014-09-09 2016-03-16 阿里巴巴集团控股有限公司 Method and device for playing multimedia file in instant messaging
CN106303253A (en) * 2016-08-28 2017-01-04 广安奥海通讯电子科技有限公司 The photographic method that a kind of Voice command is taken pictures
CN106851118A (en) * 2017-04-05 2017-06-13 深圳天珑无线科技有限公司 Camera control method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101340896B1 (en) * 2013-04-22 2013-12-13 주식회사 사라다 The way to improve power of cctv monitor in school zones for anticrime
CN105407030A (en) * 2014-09-09 2016-03-16 阿里巴巴集团控股有限公司 Method and device for playing multimedia file in instant messaging
CN106303253A (en) * 2016-08-28 2017-01-04 广安奥海通讯电子科技有限公司 The photographic method that a kind of Voice command is taken pictures
CN106851118A (en) * 2017-04-05 2017-06-13 深圳天珑无线科技有限公司 Camera control method and device

Also Published As

Publication number Publication date
CN107888830A (en) 2018-04-06

Similar Documents

Publication Publication Date Title
WO2020199730A1 (en) Text recognition method and apparatus, electronic device and storage medium
US20150149925A1 (en) Emoticon generation using user images and gestures
CN109871843B (en) Character recognition method and device for character recognition
CN106657455B (en) Electronic equipment with rotatable camera
CN111242273B (en) Neural network model training method and electronic equipment
CN112364799A (en) Gesture recognition method and device
CN113727021B (en) Shooting method and device and electronic equipment
CN112532885B (en) Anti-shake method and device and electronic equipment
CN111242303A (en) Network training method and device, and image processing method and device
CN112330533A (en) Mixed blood face image generation method, model training method, device and equipment
US20230252778A1 (en) Formula recognition method and apparatus
US20220270352A1 (en) Methods, apparatuses, devices, storage media and program products for determining performance parameters
CN107977636B (en) Face detection method and device, terminal and storage medium
US20210158031A1 (en) Gesture Recognition Method, and Electronic Device and Storage Medium
CN111797746B (en) Face recognition method, device and computer readable storage medium
TWI770531B (en) Face recognition method, electronic device and storage medium thereof
CN111079503B (en) Character recognition method and electronic equipment
CN107888830B (en) Camera starting method and device, computer device and computer readable storage medium
CN113657173B (en) Data processing method and device for data processing
CN110147703B (en) Face key point detection method, device and storage medium
CN113778595A (en) Document generation method and device and electronic equipment
CN112866475A (en) Image sending method and device and electronic equipment
CN112000877A (en) Data processing method, device and medium
CN111079662A (en) Figure identification method and device, machine readable medium and equipment
CN112367468B (en) Image processing method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20231219

Address after: 430000, 14th floor, No. 181 Chunxiao Road, Wuhan Economic and Technological Development Zone, Hubei Province

Patentee after: Wuhan Xingji Meizu Technology Co.,Ltd.

Address before: 519085 Guangdong Zhuhai science and technology innovation coastal Meizu Technology Building

Patentee before: MEIZU TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right