CN111447365A - Shooting method and electronic equipment - Google Patents

Shooting method and electronic equipment Download PDF

Info

Publication number
CN111447365A
CN111447365A CN202010301713.7A CN202010301713A CN111447365A CN 111447365 A CN111447365 A CN 111447365A CN 202010301713 A CN202010301713 A CN 202010301713A CN 111447365 A CN111447365 A CN 111447365A
Authority
CN
China
Prior art keywords
shot
pixel map
camera assembly
shooting
depth information
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.)
Granted
Application number
CN202010301713.7A
Other languages
Chinese (zh)
Other versions
CN111447365B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010301713.7A priority Critical patent/CN111447365B/en
Publication of CN111447365A publication Critical patent/CN111447365A/en
Application granted granted Critical
Publication of CN111447365B publication Critical patent/CN111447365B/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
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/0254Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets comprising one or a plurality of mechanically detachable modules
    • H04M1/0256Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets comprising one or a plurality of mechanically detachable modules wherein the modules are operable in the detached state, e.g. one module for the user interface and one module for the transceiver
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0264Details of the structure or mounting of specific components for a camera module assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
    • 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
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)

Abstract

The embodiment of the invention provides a shooting method and electronic equipment, wherein the method is applied to the electronic equipment, the electronic equipment comprises an equipment body and a camera assembly, the camera assembly is detachably connected with the equipment body, and the method comprises the following steps: calling the camera assembly to shoot images and acquiring the change frequency of the preview picture under the condition that the acquired preview picture is changed and an object to be shot is not shielded; and calling the camera assembly to carry out video shooting under the condition that the change frequency is greater than the preset frequency. According to the shooting method provided by the embodiment of the invention, the equipment body can automatically call and control the camera assembly to shoot images or videos, a user does not need to manually execute a complicated and repeated image shooting operation process, and the use experience of the user can be improved.

Description

Shooting method and electronic equipment
Technical Field
The present invention relates to the field of electronic devices, and in particular, to a shooting method and an electronic device.
Background
With the continuous improvement of the camera shooting function of the electronic equipment, the electronic equipment shooting has basically replaced professional cameras. The camera assembly in the electronic device may not only assist the user in taking images while the user is traveling, but may also assist the user in viewing or recording something remote.
When a user shoots a rapidly changing scene, shooting is troublesome due to image shooting operation, and shooting missing often occurs. For example: when a user goes to school, the user cannot take notes due to the fact that the switching speed of the slide is high, the content in the projection screen is shot through the camera assembly, and shooting can be completed only after the user opens the camera function of the electronic equipment, adjusts the shooting position and focuses on the shooting button, so that the user can miss the projection content to be shot in the manual adjustment shooting process of the user due to complex operation, and the use experience of the user is influenced.
Disclosure of Invention
The embodiment of the invention provides a shooting method and electronic equipment, and aims to solve the problem of complex shooting operation in shooting of projection contents.
In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention provides a shooting method applied to an electronic device, where the electronic device includes a device body and a camera assembly, and the camera assembly is detachably connected to the device body, and the method includes: calling the camera assembly to shoot images and acquiring the change frequency of the preview picture under the condition that the acquired preview picture is changed and an object to be shot is not shielded; wherein the camera assembly is separated from the device body; and calling the camera assembly to carry out video shooting under the condition that the change frequency is greater than the preset frequency.
In a second aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes a device body and a camera assembly; the camera subassembly can be dismantled with the equipment body and be connected, the equipment body includes: the acquisition module is used for calling the camera assembly to shoot images and acquiring the change frequency of the preview image under the condition that the acquired preview image changes and an object to be shot is not shielded; wherein the camera assembly is separated from the device body; and the calling module is used for calling the camera assembly to carry out video shooting under the condition that the change frequency is greater than the preset frequency.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the above-mentioned shooting method.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program implements the steps of the above shooting method.
In the embodiment of the invention, the camera assembly is separated from the equipment body during shooting, and the camera assembly is called to shoot images and acquire the change frequency of the preview image under the condition that the acquired preview image changes and the object to be shot is not shielded; under the condition that the change frequency is greater than the preset frequency, the camera assembly is called to carry out video shooting, the automatic calling of the equipment body can be realized, the camera assembly is controlled to carry out image or video shooting, the complicated and repeated image shooting operation flow is not required to be manually executed by a user, and the use experience of the user can be improved. Moreover, because the equipment body changes the preview picture of collection and confirms that the object of waiting to shoot just shoots the image or shoots the video when not sheltered from, can effectively avoid the problem of neglected shooting.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a flowchart illustrating steps of a photographing method according to an embodiment of the present invention;
FIG. 2 is a schematic view of the positional relationship of the device body and the camera assembly;
FIG. 3 is a flowchart illustrating steps of another photographing method according to an embodiment of the present invention;
fig. 4 is a schematic diagram showing changes of the preview screen before and after switching to the automatic shooting mode;
FIG. 5 is a diagram illustrating a screen display area adjustment process;
fig. 6 is a block diagram of an electronic device according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In various embodiments of the present invention, it should be understood that the sequence numbers of the following processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Referring to fig. 1, a flowchart illustrating steps of a photographing method according to a first embodiment of the present invention is shown.
The shooting method provided by the embodiment of the invention is applied to electronic equipment and comprises the following steps:
step 101: and under the condition that the acquired preview picture is changed and the object to be shot is not shielded, calling the camera assembly to shoot the image and acquiring the change frequency of the preview picture.
The shooting method disclosed by the embodiment of the invention is applied to electronic equipment, the electronic equipment comprises an equipment body and a camera assembly, and the camera assembly is detachably connected with the equipment body. When the shooting process shown in the embodiment of the present invention is executed, the camera assembly is separated from the apparatus body.
The schematic diagram of the position relationship between the device body and the camera assembly is shown in fig. 2, when shooting needs to be performed in some special scenes by adopting the shooting method provided by the embodiment of the invention, the camera assembly can be detached from the device body, and the camera assembly is placed on a stable plane to be close to an object to be shot so as to form clear and stable images. Special scenarios may include, but are not limited to: when the PPT document played on a large screen is watched, scenes such as the projection screen content cannot be clearly seen when a large classroom sits in the back row of the classroom.
When an object to be photographed is blocked, if image photographing is performed, part of contents included in the object to be photographed is blocked, and part of contents in the photographed image is missing, so that image photographing is prohibited when the object to be photographed is blocked.
In the shooting process, the camera assembly uploads the acquired preview pictures to the equipment body in real time, and the processor in the equipment body determines the change frequency of the preview pictures according to the number of the received preview pictures with differences in unit time.
Step 102: and calling the camera to shoot the video under the condition that the change frequency is greater than the preset frequency.
The preset frequency can be set by those skilled in the art according to actual requirements, and is not particularly limited in the embodiment of the present invention. For example: the preset frequency is set to 20 frames/sec, 24 frames/sec, or 30 frames/sec, etc.
Under the condition that the change frequency of the preview picture is greater than the preset frequency, if the condition of missing shooting or fuzzy shot image exists in image shooting, the video shooting can be started at the moment. In the video shooting process, if the object to be shot is detected to be shielded, the video shooting is not stopped.
According to the shooting method provided by the embodiment of the invention, the camera assembly is separated from the equipment body during shooting, and the camera assembly is called to shoot images and acquire the change frequency of the preview image under the condition that the acquired preview image occurs and the object to be shot is not shielded; under the condition that the change frequency is greater than the preset frequency, the camera is called to carry out video shooting, the automatic calling of the equipment body can be realized, the camera assembly is controlled to carry out image or video shooting, the complicated and repeated image shooting operation flow is not required to be manually executed by a user, and the use experience of the user can be improved. Moreover, because the equipment body takes place and confirms that the object of waiting to shoot takes the image or shoots the video when not sheltered from at the preview picture of collection just, can effectively avoid the problem of neglected shooting.
In an alternative embodiment, referring to FIG. 3, a flow chart of the steps of a photographing method of the present invention is shown.
In the implementation process, a laser can be used for emitting a surface light source to an object to be shot, and a photosensitive element is used for receiving reflected light of the surface light source; and generating a depth information pixel map of the image to be shot according to the reflected light.
When the shooting method provided by the embodiment of the invention is required to be used for shooting, an automatic shooting mode can be selected in a camera shooting interface, a camera preview picture is displayed by switching a vertical screen to a horizontal screen after the electronic equipment is switched to the automatic shooting mode, and a preview picture change schematic diagram before and after the electronic equipment is switched to the automatic shooting mode is shown in fig. 4, wherein fig. 4(a) is a preview picture before switching, and fig. 4(b) is a preview picture after switching. After switching to automatic shooting mode, can dismantle camera subassembly from the equipment body, make the two be in the separation mode to place camera subassembly near treating the shooting object on stable plane, so that clear stable formation of image.
In an alternative mode, in a state where the camera assembly is separated from the device body, before the step of calling the camera assembly to perform image shooting and acquiring the change frequency of the preview image, under the condition that the acquired preview image changes and the object to be shot is not shielded, the image display area can be adjusted, so that the deformation degree of the shot object to be shot can be reduced. When the image display area is adjusted, a user can reduce the horizontal and vertical central points of the screen of the equipment body as base points, the display area is adjusted to a target size, after the adjustment of the display area is completed, the preview picture is subjected to adaptive adjustment so that the preview picture can be completely displayed in the display area for the user to preview, after the adjustment is completed, the preset key is triggered to confirm the adjustment selection area, and then the equipment body can display the shot image in the adjusted display area in the shooting process. Wherein, fig. 5 is a schematic diagram of a screen display area adjustment process.
After the adjustment of the display area is completed, the camera assembly can be called to start shooting. In the shooting process, the camera assembly collects a preview picture and uploads the collected preview picture to the equipment body to be displayed, the equipment body detects whether the preview picture changes in real time, whether an object to be shot is shielded is determined under the condition that the preview picture collected by the camera assembly changes, and image shooting is carried out when the object to be shot is determined not to be shielded. The specific manner of determining whether the object to be photographed is occluded is as shown in steps 301 to 302.
Step 301: and receiving a depth information pixel map of the object to be shot under the condition that the preview picture acquired by the camera changes.
When detecting whether the object to be shot is sheltered from, the detection can be carried out through the photosensitive element and the laser generator. The detection principle is as follows: the laser emits a uniform surface light source to an object to be shot, the surface light source reflects with an obstacle after emitting, and the photosensitive element receives reflected light of the surface light source; and generating a depth information pixel map of the image to be shot according to the reflected light, and determining whether the object to be shot is blocked according to the depth information pixel map.
The area light source comprises a plurality of pixel points, correspondingly, the depth information pixel map generated after the area light source is reflected also comprises a plurality of pixel points, and if the object to be shot is not shielded, the depth information corresponding to each pixel point in the depth information pixel map generated twice in sequence is the same.
Step 302: and determining whether the object to be shot is shielded or not according to the depth information pixel map.
An alternative way to determine whether the object to be photographed is occluded from the depth pixel map is to:
under the condition that a first condition is met between the depth value pixel map and the initial depth pixel map, determining that the object to be shot is not shielded; the initial depth pixel map is obtained when shooting starts; and if the first condition is not met between the depth information pixel map and the original depth information pixel map, determining that the object to be shot is blocked.
The first condition may include at least one of: comparing the depth value pixel map with the initial depth pixel map; the depth value pixel map is the same as the initial depth pixel map.
In the optional mode for determining whether the object to be shot is blocked, each depth information pixel map obtained in the shooting process is compared with the initial depth pixel map, and if the depth value pixel map is the same as the initial depth pixel map, the object to be shot is not blocked. Of course, it can be understood by those skilled in the art that the depth value pixel map is the same as the initial depth pixel map, the depth value of each pixel point between the depth value pixel map and the initial depth pixel map is the same, or the difference between the depth value pixel map and the initial depth pixel map is within the threshold range. The detection result is more accurate and reliable.
Another optional way to determine whether the object to be shot is occluded according to the depth information pixel map is as follows:
acquiring a first depth information pixel map at a first moment and a second depth information pixel map at a second moment; under the condition that the depth information variation of the first depth information pixel map and the second depth information pixel map does not exceed a preset threshold value, determining that the object to be shot is not shielded; and under the condition that the depth information variation of the first depth information pixel map and the second depth information pixel map exceeds a preset threshold value, determining that the object to be shot is blocked. Wherein the threshold may be set by the user himself, for example, the variation of the depth information of the first depth information pixel map and the second depth information pixel map is not more than 10%, or 5%.
The first time and the second time indicate two different times, and the time interval between the first time and the second time can be flexibly set by a person skilled in the art. For example: the first time corresponds to a first depth information pixel map, and the second time corresponds to a third depth information pixel map; for another example: the first time may correspond to a first depth information pixel map, and the second time may correspond to a second depth information pixel map.
According to the optional mode for determining whether the object to be shot is shielded, the depth pixel maps obtained at the front moment and the rear moment are compared, and whether the object to be shot is shielded can be detected in time.
Step 303: and under the condition that the acquired preview picture is changed and the object to be shot is not shielded, calling a camera to shoot the image and acquiring the change frequency of the preview picture.
Every time the preview picture is changed once, the camera assembly is called to shoot an image once, and the image shot by the camera assembly is uploaded to the equipment body to be displayed on the screen. And the equipment body determines the change frequency of the preview picture according to the change times of the preview picture in unit time.
Step 304: and calling the camera assembly to shoot the video under the condition that the change frequency is greater than the preset frequency.
The preset frequency can be set by those skilled in the art according to actual requirements, and is not particularly limited in the embodiment of the present invention. For example: the preset frequency is set to 20 frames/sec, 24 frames/sec, or 30 frames/sec, etc.
Under the condition that the change frequency of the preview picture is greater than the preset frequency, if the condition of missing shooting or fuzzy shot image exists in image shooting, the video shooting function of the camera assembly can be started at the moment. In the video shooting process, if the object to be shot is detected to be shielded, the video shooting is not stopped.
Step 305: and outputting a prompt box when the ending instruction is received.
Wherein, the prompt box comprises at least one of the following operation options: the system comprises a first option for deleting shot information, a second option for saving shot images and videos into an album, a third option for establishing an independent album for shot images and videos, and a fourth option for generating notes for shot images.
The end instruction may be triggered by any suitable operation, such as: the method comprises the steps that a user executes preset operation in a preview interface, the user installs a camera assembly back into an equipment body, the user outputs shooting ending voice information or the user performs touch operation on a preset ending key in the preview interface, and the like.
Step 306: and receiving a selection operation of any option in the prompt box.
The user can select any option in the prompt box according to actual requirements, and the equipment body is triggered to process the shot images and videos.
Step 307: in response to the selection operation, the captured image and video are processed.
When the independent photo album is established for the shot images and videos, the naming mode of the photo album can be set as mode name and serial number, such as automatic shooting 1 and automatic shooting 2 …; conference mode 1, conference mode 2 …, etc. After the captured images and videos are processed, the current mode is exited and a separate album folder is established within the album for the captured images and videos.
When a note is generated for a captured image, the naming mode of the generated note may also be set to "mode name + serial number", such as automatic capture 1, automatic capture 2 …; conference mode 1, conference mode 2 …, etc.
According to the shooting method provided by the embodiment of the invention, the camera assembly is separated from the equipment body during shooting, and the camera assembly is called to shoot images and obtain the change frequency of the preview image when the acquired preview image changes and the object to be shot is not shielded; under the condition that the change frequency is greater than the preset frequency, the camera is called to carry out video shooting, the automatic calling of the equipment body can be realized, the camera assembly is controlled to carry out image or video shooting, the manual execution of complicated and repeated operation procedures of a user is not needed, and the use experience of the user can be improved. In addition, the shooting method provided by the embodiment of the invention can provide various processing modes for the shot images and videos to be selected by the user according to actual requirements, so that the use experience of the user can be further improved.
Based on the method, the embodiment of the invention provides electronic equipment for implementing the method.
Referring to fig. 6, there is shown a block diagram of an electronic device of the present invention.
The electronic device 600 of the embodiment of the present invention includes a camera assembly 601 and a device body 602; wherein the camera assembly is detachably connected to the apparatus body, the camera assembly is not shown in fig. 6, and the apparatus body 602 includes:
the obtaining module 6021 is configured to call the camera assembly to perform image shooting and obtain a change frequency of the preview image when the acquired preview image changes and the object to be shot is not blocked; wherein the camera assembly is separated from the device body;
a calling module 6022, configured to call the camera assembly to perform video shooting when the change frequency is greater than a preset frequency.
Optionally, the electronic device further comprises: the receiving module is used for receiving the depth information pixel map of the object to be shot before the camera assembly is called to shoot the image and the change frequency of the preview picture is acquired under the condition that the acquired preview picture is changed and the object to be shot is not blocked by the acquiring module; and the determining module is used for determining whether the object to be shot is blocked according to the depth information pixel map.
Optionally, the determining module includes: a first sub-module, configured to determine that the object to be captured is not occluded if a first condition is satisfied between the depth value pixel map and an initial depth pixel map; and the initial depth pixel map is obtained at the beginning of shooting.
Optionally, the determining module includes: the third sub-module is used for acquiring a first depth information pixel map at a first moment and a second depth information pixel map at a second moment; and the fourth sub-module is used for determining that the object to be shot is not shielded under the condition that the depth information variation of the first depth information pixel map and the second depth information pixel map does not exceed a preset threshold value.
Optionally, the electronic device further comprises: the output module is used for outputting a prompt box when receiving a finishing instruction after the calling module calls the camera to shoot the video under the condition that the change frequency is greater than the preset frequency; wherein, the prompt box comprises at least one of the following operation options: deleting a first option of the shooting information, saving the shot image and video into a second option of the photo album, establishing an independent photo album for the shot image and video, and generating a note for the shot image; the operation receiving module is used for receiving selection operation of any option in the prompt box; and the processing module is used for responding to the selection operation and processing the shot images and videos.
The electronic device provided by the embodiment of the invention can realize each process of the shooting method in each method embodiment, and is not described again to avoid repetition.
According to the electronic equipment provided by the embodiment of the invention, the camera assembly is separated from the equipment body during shooting, and the camera assembly is called to shoot images and acquire the change frequency of the preview image under the condition that the acquired preview image is changed and the object to be shot is not shielded; under the condition that the change frequency is greater than the preset frequency, the camera assembly is called to carry out video shooting, the automatic calling of the equipment body can be realized, the camera assembly is controlled to carry out image or video shooting, the complicated and repeated image shooting operation flow is not required to be manually executed by a user, and the use experience of the user can be improved. Moreover, because the equipment body takes place and confirms that the object of waiting to shoot takes the image or shoots the video when not sheltered from at the preview picture of collection just, can effectively avoid the problem of neglected shooting.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device 700 for implementing various embodiments of the present invention, where the electronic device 700 includes but is not limited to: the electronic equipment comprises a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710, a power supply 711, a camera assembly and the like, wherein the camera assembly is detachably connected with the electronic equipment body. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 7 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 710 may be configured to call the camera assembly to perform image capturing and acquire a change frequency of a preview picture when an acquired preview picture changes and an object to be captured is not blocked; wherein the camera assembly is separated from the device body; and calling the camera assembly to carry out video shooting under the condition that the change frequency is greater than the preset frequency.
According to the electronic equipment provided by the embodiment of the invention, the camera assembly is separated from the equipment body during shooting, and the camera assembly is called to shoot images and acquire the change frequency of the preview image under the condition that the acquired preview image is changed and the object to be shot is not shielded; under the condition that the change frequency is greater than the preset frequency, the camera assembly is called to carry out video shooting, the automatic calling of the equipment body can be realized, the camera assembly is controlled to carry out image or video shooting, the complicated and repeated image shooting operation flow is not required to be manually executed by a user, and the use experience of the user can be improved. Moreover, because the equipment body shoots images or shoots videos when the acquired preview images change and the object to be shot is determined not to be shielded, the problem of missed shooting can be effectively avoided
It should be understood that, in the embodiment of the present invention, the radio frequency unit 701 may be used for receiving and sending signals during a message transmission and reception process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 710; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 701 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 701 may also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 702, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 703 may convert audio data received by the radio frequency unit 701 or the network module 702 or stored in the memory 709 into an audio signal and output as sound. Also, the audio output unit 703 may also provide audio output related to a specific function performed by the electronic apparatus 700 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 703 includes a speaker, a buzzer, a receiver, and the like.
The input unit 704 is used to receive audio or video signals. The input Unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042, and the Graphics processor 7041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 706. The image frames processed by the graphic processor 7041 may be stored in the memory 709 (or other storage medium) or transmitted via the radio unit 701 or the network module 702. The microphone 7042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 701 in case of a phone call mode.
The electronic device 700 also includes at least one sensor 705, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 7061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 7061 and/or a backlight when the electronic device 700 is moved to the ear. Display panel 701 is flexible display screen, and flexible display screen is including the screen base, liftable module array and the flexible screen that superpose the setting in proper order. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 705 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The Display unit 706 may include a Display panel 7061, and the Display panel 7061 may be configured in the form of a liquid Crystal Display (L acquired Crystal Display, L CD), an Organic light-Emitting Diode (O L ED), or the like.
The user input unit 707 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 7071 (e.g., operations by a user on or near the touch panel 7071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 7071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 710, receives a command from the processor 710, and executes the command. In addition, the touch panel 7071 can be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 707 may include other input devices 7072 in addition to the touch panel 7071. In particular, the other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 7071 may be overlaid on the display panel 7061, and when the touch panel 7071 detects a touch operation on or near the touch panel 7071, the touch operation is transmitted to the processor 710 to determine the type of the touch event, and then the processor 710 provides a corresponding visual output on the display panel 7061 according to the type of the touch event. Although the touch panel 7071 and the display panel 7061 are shown in fig. 7 as two separate components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 7071 and the display panel 7061 may be integrated to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 708 is an interface for connecting an external device to the electronic apparatus 700. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 708 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 700 or may be used to transmit data between the electronic apparatus 700 and the external device.
The memory 709 may be used to store software programs as well as various data. The memory 709 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 cellular phone, and the like. Further, the memory 709 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 710 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 709 and calling data stored in the memory 709, thereby monitoring the whole electronic device. Processor 710 may include one or more processing units; preferably, the processor 710 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 710.
The electronic device 700 may also include a power supply 711 (e.g., a battery) for providing power to the various components, and preferably, the power supply 711 may be logically coupled to the processor 710 via a power management system, such that functions of managing charging, discharging, and power consumption may be performed via the power management system.
In addition, the electronic device 700 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 710, a memory 709, and a computer program stored in the memory 709 and capable of running on the processor 710, where the computer program is executed by the processor 710 to implement each process of the foregoing shooting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned shooting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (12)

1. A shooting method is applied to electronic equipment, and is characterized in that the electronic equipment comprises an equipment body and a camera assembly, and the camera assembly is detachably connected with the equipment body, and the method comprises the following steps:
calling the camera assembly to shoot images and acquiring the change frequency of the preview picture under the condition that the acquired preview picture is changed and an object to be shot is not shielded; wherein the camera assembly is separated from the device body;
and calling the camera assembly to carry out video shooting under the condition that the change frequency is greater than the preset frequency.
2. The method according to claim 1, before the step of calling the camera assembly to take an image and acquire the change frequency of the preview picture when the acquired preview picture changes and the object to be taken is not occluded, the method further comprising:
receiving a depth information pixel map of the object to be shot under the condition that the acquired preview picture is changed;
and determining whether the object to be shot is shielded or not according to the depth information pixel map.
3. The method according to claim 2, wherein the step of determining whether the object to be photographed is occluded from the depth pixel map comprises:
determining that the object to be shot is not occluded under the condition that a first condition is met between the depth value pixel map and the initial depth pixel map; and the initial depth pixel map is obtained at the initial shooting time.
4. The method according to claim 2, wherein the step of determining whether the object to be photographed is occluded from the depth information pixel map comprises:
acquiring a first depth information pixel map at a first moment and a second depth information pixel map at a second moment;
and under the condition that the depth information variation of the first depth information pixel map and the second depth information pixel map does not exceed a preset threshold value, determining that the object to be shot is not shielded.
5. The method of claim 1, wherein after the step of invoking the camera assembly for video capture if the change frequency is greater than a preset frequency, the method further comprises:
outputting a prompt box when receiving an ending instruction; wherein, the prompt box comprises at least one of the following operation options: deleting a first option of the shooting information, saving the shot image and video into a second option of the photo album, establishing an independent photo album for the shot image and video, and generating a note for the shot image;
receiving selection operation of any option in the prompt box;
and responding to the selection operation, and processing the shot images and videos.
6. An electronic device comprising a device body and a camera assembly; its characterized in that, camera subassembly and equipment body can dismantle the connection, the equipment body includes:
the acquisition module is used for calling the camera assembly to shoot images and acquiring the change frequency of the preview image under the condition that the acquired preview image changes and an object to be shot is not shielded; wherein the camera assembly is separated from the device body;
and the calling module is used for calling the camera assembly to carry out video shooting under the condition that the change frequency is greater than the preset frequency.
7. The electronic device of claim 6, further comprising:
the receiving module is used for receiving the depth information pixel map of the object to be shot before the camera assembly is called to shoot the image and the change frequency of the preview picture is acquired under the condition that the acquired preview picture is changed and the object to be shot is not blocked by the acquiring module;
and the determining module is used for determining whether the object to be shot is blocked according to the depth information pixel map.
8. The electronic device of claim 7, wherein the determining module comprises:
a first sub-module, configured to determine that the object to be captured is not occluded if a first condition is satisfied between the depth value pixel map and an initial depth pixel map; and the initial depth pixel map is obtained at the beginning of shooting.
9. The electronic device of claim 7, wherein the determining module comprises:
the third sub-module is used for acquiring a first depth information pixel map at a first moment and a second depth information pixel map at a second moment;
and the fourth sub-module is used for determining that the object to be shot is not shielded under the condition that the depth information variation of the first depth information pixel map and the second depth information pixel map does not exceed a preset threshold value.
10. The electronic device of claim 6, further comprising:
the output module is used for outputting a prompt box when receiving a finishing instruction after the calling module calls the camera to shoot the video under the condition that the change frequency is greater than the preset frequency; wherein, the prompt box comprises at least one of the following operation options: deleting a first option of the shooting information, saving the shot image and video into a second option of the photo album, establishing an independent photo album for the shot image and video, and generating a note for the shot image;
the operation receiving module is used for receiving selection operation of any option in the prompt box;
and the processing module is used for responding to the selection operation and processing the shot images and videos.
11. An electronic device, characterized in that the electronic device comprises a processor, a memory and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the photographing method according to any one of claims 1-5.
12. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the photographing method according to any one of claims 1-5.
CN202010301713.7A 2020-04-16 2020-04-16 Shooting method and electronic equipment Active CN111447365B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010301713.7A CN111447365B (en) 2020-04-16 2020-04-16 Shooting method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010301713.7A CN111447365B (en) 2020-04-16 2020-04-16 Shooting method and electronic equipment

Publications (2)

Publication Number Publication Date
CN111447365A true CN111447365A (en) 2020-07-24
CN111447365B CN111447365B (en) 2021-11-30

Family

ID=71654174

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010301713.7A Active CN111447365B (en) 2020-04-16 2020-04-16 Shooting method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111447365B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112019686A (en) * 2020-09-15 2020-12-01 维沃移动通信(杭州)有限公司 Display method and device and electronic equipment
CN112689085A (en) * 2020-12-09 2021-04-20 展讯通信(上海)有限公司 Method, device and system for identifying PPT screen projection area and electronic equipment
CN112788226A (en) * 2021-03-16 2021-05-11 深圳传音控股股份有限公司 Mobile device, photographing method, and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202043207U (en) * 2011-02-25 2011-11-16 比亚迪股份有限公司 Detachable wireless camera and mobile terminal possessing the camera
US20130208127A1 (en) * 2012-02-13 2013-08-15 Htc Corporation Auto burst image capture method applied to a mobile device, method for tracking an object applied to a mobile device, and related mobile device
CN105979149A (en) * 2016-06-24 2016-09-28 深圳市金立通信设备有限公司 Shooting method and terminal
CN107835363A (en) * 2017-10-30 2018-03-23 努比亚技术有限公司 A kind of filming control method, terminal device and storage medium
CN109639896A (en) * 2018-12-19 2019-04-16 Oppo广东移动通信有限公司 Block object detecting method, device, storage medium and mobile terminal
CN110766646A (en) * 2018-07-26 2020-02-07 北京京东尚科信息技术有限公司 Display rack shielding detection method and device and storage medium
CN110868537A (en) * 2019-11-08 2020-03-06 维沃移动通信有限公司 Shooting method and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202043207U (en) * 2011-02-25 2011-11-16 比亚迪股份有限公司 Detachable wireless camera and mobile terminal possessing the camera
US20130208127A1 (en) * 2012-02-13 2013-08-15 Htc Corporation Auto burst image capture method applied to a mobile device, method for tracking an object applied to a mobile device, and related mobile device
CN105979149A (en) * 2016-06-24 2016-09-28 深圳市金立通信设备有限公司 Shooting method and terminal
CN107835363A (en) * 2017-10-30 2018-03-23 努比亚技术有限公司 A kind of filming control method, terminal device and storage medium
CN110766646A (en) * 2018-07-26 2020-02-07 北京京东尚科信息技术有限公司 Display rack shielding detection method and device and storage medium
CN109639896A (en) * 2018-12-19 2019-04-16 Oppo广东移动通信有限公司 Block object detecting method, device, storage medium and mobile terminal
CN110868537A (en) * 2019-11-08 2020-03-06 维沃移动通信有限公司 Shooting method and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112019686A (en) * 2020-09-15 2020-12-01 维沃移动通信(杭州)有限公司 Display method and device and electronic equipment
CN112689085A (en) * 2020-12-09 2021-04-20 展讯通信(上海)有限公司 Method, device and system for identifying PPT screen projection area and electronic equipment
CN112788226A (en) * 2021-03-16 2021-05-11 深圳传音控股股份有限公司 Mobile device, photographing method, and readable storage medium

Also Published As

Publication number Publication date
CN111447365B (en) 2021-11-30

Similar Documents

Publication Publication Date Title
CN109361869B (en) Shooting method and terminal
CN109361865B (en) Shooting method and terminal
CN110365907B (en) Photographing method and device and electronic equipment
CN108989672B (en) Shooting method and mobile terminal
CN110602401A (en) Photographing method and terminal
CN108881733B (en) Panoramic shooting method and mobile terminal
CN109639969B (en) Image processing method, terminal and server
CN111447365B (en) Shooting method and electronic equipment
CN111669503A (en) Photographing method and device, electronic equipment and medium
CN107730460B (en) Image processing method and mobile terminal
CN110266957B (en) Image shooting method and mobile terminal
CN111177420B (en) Multimedia file display method, electronic equipment and medium
CN109688253B (en) Shooting method and terminal
CN111432195A (en) Image shooting method and electronic equipment
CN110798621A (en) Image processing method and electronic equipment
CN111246102A (en) Shooting method, shooting device, electronic equipment and storage medium
CN108924422B (en) Panoramic photographing method and mobile terminal
CN110881105B (en) Shooting method and electronic equipment
CN109104564B (en) Shooting prompting method and terminal equipment
CN108616687B (en) Photographing method and device and mobile terminal
CN108174110B (en) Photographing method and flexible screen terminal
CN111050069B (en) Shooting method and electronic equipment
CN110708475B (en) Exposure parameter determination method, electronic equipment and storage medium
CN111182211B (en) Shooting method, image processing method and electronic equipment
CN110086998B (en) Shooting method and terminal

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