CN111866392B - Shooting prompting method and device, storage medium and electronic equipment - Google Patents

Shooting prompting method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN111866392B
CN111866392B CN202010760732.6A CN202010760732A CN111866392B CN 111866392 B CN111866392 B CN 111866392B CN 202010760732 A CN202010760732 A CN 202010760732A CN 111866392 B CN111866392 B CN 111866392B
Authority
CN
China
Prior art keywords
shooting
objects
scene image
target
shot
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
CN202010760732.6A
Other languages
Chinese (zh)
Other versions
CN111866392A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010760732.6A priority Critical patent/CN111866392B/en
Publication of CN111866392A publication Critical patent/CN111866392A/en
Priority to PCT/CN2021/105488 priority patent/WO2022022259A1/en
Application granted granted Critical
Publication of CN111866392B publication Critical patent/CN111866392B/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/61Control of cameras or camera modules based on recognised objects
    • 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/67Focus control based on electronic image sensor signals

Landscapes

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

Abstract

The application discloses a shooting prompting method, a shooting prompting device, a storage medium and electronic equipment, wherein the method comprises the following steps: receiving a photographing instruction, acquiring a scene image corresponding to the camera at present according to the photographing instruction, identifying a plurality of photographing objects in the scene image, respectively determining classification information of the plurality of photographing objects, respectively calculating target zoom multiple information of the plurality of photographing objects according to the classification information, respectively generating tags containing the target zoom multiple information corresponding to the photographing objects, and displaying the tags at the positions of the plurality of photographing objects in the scene image as preview images. According to the embodiment of the application, the shooting objects in the scene image can be identified, the corresponding target zooming multiple information of each shooting object is calculated, and the user is prompted in a label mode, so that when the user needs zooming shooting, the shooting efficiency is effectively improved.

Description

Shooting prompting method and device, storage medium and electronic equipment
Technical Field
The present application belongs to the field of image processing technologies, and in particular, to a shooting prompting method, device, storage medium, and electronic device.
Background
Along with the improvement of the function of the camera of the mobile phone, more and more users select to use the camera of the mobile phone to shoot pictures, and how to quickly and accurately position a required object in the shooting process is a main factor influencing the user experience.
The lens zoom technique refers to changing the size of a target subject within a lens in a captured image by changing the focal length of the lens, or the like. The zoom mode is divided into: optical zoom (optical zoom) and digital zoom (digital zoom). At present, high-power optical zoom cameras and/or high-power digital zoom cameras are equipped on some high-end flagship products to meet the requirement of long-distance shooting zoom. However, in practical applications, each time an image to be zoomed is selected, a user needs to align an object first and then adjust the zoom factor until the image is satisfactory, which not only requires complicated steps but also requires a photographer to have high shooting skill and low shooting efficiency.
Disclosure of Invention
The application provides a shooting prompting method, a shooting prompting device, a storage medium and electronic equipment, which can automatically generate a proper zoom multiple aiming at a shot object, so that the shooting efficiency is improved.
In a first aspect, an embodiment of the present application provides a shooting prompting method, including:
receiving a photographing instruction, and acquiring a scene image currently corresponding to the camera according to the photographing instruction;
identifying a plurality of shooting objects in the scene image, and respectively determining classification information of the plurality of shooting objects;
respectively calculating target zoom multiple information of the plurality of shot objects according to the classification information;
and respectively generating labels containing target zoom multiple information corresponding to the shot objects, and displaying the labels at a plurality of shot object positions in the scene image as preview images.
In a second aspect, an embodiment of the present application provides a shooting prompt apparatus, including:
the acquisition module is used for receiving a photographing instruction and acquiring a scene image currently corresponding to the camera according to the photographing instruction;
the identification module is used for identifying a plurality of shooting objects in the scene image and respectively determining the classification information of the plurality of shooting objects;
the calculation module is used for respectively calculating the target zoom multiple information of the plurality of shot objects according to the classification information;
and the generating module is used for respectively generating labels containing target zoom multiple information corresponding to the shot objects and displaying the labels at a plurality of shot object positions in the scene image as preview images.
In a third aspect, an embodiment of the present application provides a storage medium, on which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the shooting prompting method described above.
In a fourth aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, where the memory stores a plurality of instructions, and the processor loads the instructions in the memory to perform the following steps:
receiving a photographing instruction, and acquiring a scene image currently corresponding to the camera according to the photographing instruction;
identifying a plurality of shooting objects in the scene image, and respectively determining classification information of the plurality of shooting objects;
respectively calculating target zoom multiple information of the plurality of shot objects according to the classification information;
and respectively generating labels containing target zoom multiple information corresponding to the shot objects, and displaying the labels at a plurality of shot object positions in the scene image as preview images.
The shooting prompting method provided by the embodiment of the application can receive a shooting instruction, obtain a scene image corresponding to a camera at present according to the shooting instruction, identify a plurality of shooting objects in the scene image, respectively determine classification information of the plurality of shooting objects, respectively calculate target zoom multiple information of the plurality of shooting objects according to the classification information, respectively generate a label containing the target zoom multiple information corresponding to the shooting objects, and display the label at a plurality of shooting object positions in the scene image as preview images. According to the embodiment of the application, the shooting objects in the scene image can be identified, the corresponding target zooming multiple information of each shooting object is calculated, and the user is prompted in a label mode, so that when the user needs zooming shooting, the shooting efficiency is effectively improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a shooting prompting method according to an embodiment of the present application.
Fig. 2 is another schematic flow chart of the shooting prompting method according to the embodiment of the present application.
Fig. 3 is a scene schematic diagram of a shooting prompting method according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a shooting prompting device according to an embodiment of the present application.
Fig. 5 is another schematic structural diagram of a shooting prompting device according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 7 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
In the description that follows, specific embodiments of the present application will be described with reference to steps and symbols executed by one or more computers, unless otherwise indicated. Accordingly, these steps and operations will be referred to, several times, as being performed by a computer, the computer performing operations involving a processing unit of the computer in electronic signals representing data in a structured form. This operation transforms the data or maintains it at locations in the computer's memory system, which may be reconfigured or otherwise altered in a manner well known to those skilled in the art. The data maintains a data structure that is a physical location of the memory that has particular characteristics defined by the data format. However, while the principles of the application have been described in language specific to above, it is not intended to be limited to the specific form set forth herein, and it will be recognized by those of ordinary skill in the art that various of the steps and operations described below may be implemented in hardware.
The terms "first", "second", and "third", etc. in this application are used to distinguish between different objects and not to describe a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to only those steps or modules listed, but rather, some embodiments may include other steps or modules not listed or inherent to such process, method, article, or apparatus.
Referring to fig. 1, fig. 1 is a schematic flow chart of a shooting prompting method according to an embodiment of the present disclosure. The shooting prompting method provided by the embodiment of the application is applied to electronic equipment, and the specific process can be as follows:
step 101, receiving a photographing instruction, and acquiring a scene image currently corresponding to the camera according to the photographing instruction.
In the embodiment of the present invention, the scene image may be obtained by taking a picture of the current scene by the electronic device, and specifically, after receiving a picture taking instruction input by a user, the electronic device may start a camera, and take a picture of the current scene by using the camera to obtain the scene image. The electronic equipment receives a photographing instruction input by a user, and can receive the photographing instruction sent by the user through a preset button on the electronic equipment or one or a combination of a plurality of existing buttons; or, receiving photographing request information sent by a user through a touch screen of the electronic device (for example, clicking a "photographing" button in a screen), and after receiving a photographing instruction input by the user, the electronic device obtains a scene image through a camera and stores the image to prepare for subsequent processing.
In an embodiment, the electronic device may capture an original image through a built-in camera, and specifically includes: the electronic equipment receives a starting instruction of the built-in camera, responds to the instruction and starts the built-in camera, and previews the external environment of the electronic equipment through the preview area in the process that the camera is in the starting state so as to obtain the image of the previewed scene. In the process of displaying the preview image, the lens is driven by the motor to move, and a photographed object is imaged on the image sensor through the lens. The image sensor converts the optical signal into an electric signal through optical-electric conversion and transmits the electric signal to the image processing circuit for subsequent processing. The Image Processing circuit may be implemented using hardware and/or software components, and may include various Processing units that define an ISP (Image Signal Processing) pipeline.
In an embodiment, the built-in camera may be a single camera or may be two cameras, for example, the two cameras may include a wide-angle camera and a telephoto camera, wherein the wide-angle camera may be used as a main camera of the electronic device, and the telephoto camera may be used as a sub-camera. When the image of the current scene of electronic equipment is shot to needs, this electronic equipment can only shoot through its wide-angle camera module, also can shoot with long burnt camera jointly through its wide-angle camera. In other embodiments, three cameras may be used, and the present invention is not limited in this respect.
Step 102, identifying a plurality of shooting objects in the scene image, and respectively determining classification information of the plurality of shooting objects.
Specifically, in the embodiment of the present application, all objects in the scene image may be identified, for example, a plurality of objects and images captured at a plurality of corresponding angles are stored in a preset image library, then the objects in the scene image are respectively compared, and when the compared similarity is greater than a preset value, it may be determined that the object corresponds to a sample in the image library, that is, the object may be identified. And if the compared similarity is smaller than a preset value, determining that the object cannot be identified. Therefore, objects that can be recognized in the scene image can be taken as the photographic subject, and the rest of the objects are not taken as the photographic subject. That is, the step of identifying a plurality of photographic subjects in the scene image includes:
identifying all objects in the scene image;
and selecting a target object which can be used as a shooting subject from the objects according to a preset image library, and using the target object as a shooting object.
The process of identifying objects in the scene image may include: the method comprises the following steps of firstly, preprocessing an image, namely mainly carrying out image processing, including analog-to-digital conversion processing, binarization processing, smoothing, transformation, enhancement, restoration or filtering and the like on the image to be shot; extracting and selecting the features of the image, for example, 4096 data can be obtained from a 64 × 64 image, and the features which can reflect the nature of classification in the feature space can be obtained from the raw data of the 4096 data in the measurement space through transformation; and thirdly, classifying the characteristics of the obtained image and determining the category of the image. Image recognition generally includes contour recognition, feature recognition, color recognition, material recognition, object recognition, and the like. In the contour recognition, the contour of an object is mainly obtained according to information such as color, brightness and the like, and then, what object or what feature the contents of the contour are is determined according to data corresponding to the contour.
In another embodiment, the shooting object may also be identified based on the shooting habit of the user, for example, historical photos taken in a user album are obtained, it is known through learning analysis that the user is interested in the shooting object, and then an object with higher similarity to the shooting object that the user is interested in is directly searched in the scene image, that is, the shooting object in the scene image may be determined.
It should be noted that there may be one or more objects to be photographed, and after the objects to be photographed are determined, category information corresponding to each object to be photographed is further determined. For example, the categories can be divided into: humans, animals, plants, buildings, and the like. When there are objects of the same type in the above shot objects, the shot objects can be distinguished by labels, for example, when there are two trees in the current scene, the shot objects can be labeled as tree 1 and tree 2, respectively.
And 103, respectively calculating target zoom multiple information of a plurality of shot objects according to the classification information.
In practical use, even two different kinds of objects with the same distance are used, different zoom multiples are often used for focusing by a user, for example, when the user takes a photo of a person other than 100m, the zoom multiple is adjusted to a higher level so as to see the outline of the person clearly, and when the user takes a photo of a house other than 100m, the zoom multiple is not adjusted to be high so as to see the whole situation of the house clearly. Therefore, the proportions of different kinds of photographic subjects presented on the preview interface after zooming are different. Therefore, in this embodiment, the optimal preview size of the object can be calculated according to the classification information of the object, and then how many times of zooming can achieve the same effect can be calculated according to the optimal preview size of the object, that is, the target zoom factor information of the object is calculated.
In another embodiment, the distance information of the object may also be obtained, for example, by a depth camera, then the zoom factor information of the object is calculated according to the distance information of the object, and corresponding adjustment is performed according to the classification information of the object on the basis of obtaining the zoom factor of the object, for example, the a classification multiplies the calculated zoom factor by 1.2, the B classification multiplies the calculated zoom factor by 0, the C classification multiplies the calculated zoom factor by 0.8, and the like, and the final zoom factor is used as the target zoom factor.
And 104, respectively generating labels containing target zoom multiple information corresponding to the shot objects, and displaying the labels at a plurality of shot object positions in the scene image as preview images.
The above operations are performed on the plurality of shot objects respectively, so that the optimal zoom multiple of each shot object, that is, the target zoom multiple, can be obtained. In order to make the scheme more intuitive, the present embodiment may also directly place the target zoom multiple of the photographic subject in the form of a tag in the scene image, for example, at the corresponding position of the photographic subject, and display the target zoom multiple as a preview image.
In an embodiment, after the plurality of tags are generated in the scene image, the image may be further down-sampled according to the current resolution of the screen, and then the down-sampled image is displayed on the screen of the electronic device. The image is subjected to down-sampling processing according to the current resolution of the screen, so that the resolution of the final preview image is consistent with the current resolution of the screen, and the display effect of the final preview image is not reduced during display.
Further, since the target zoom multiples corresponding to the plurality of objects may be the same or different, for example, the zoom multiples corresponding to the objects closer to the lens are smaller, and the zoom multiples corresponding to the objects farther from the lens are larger, in an embodiment, the objects having the same target zoom multiple in the current scene image may be associated. For example, after generating a tag corresponding to each object in the scene image, the objects corresponding to the tags including the same target zoom factor may be connected, or two tags having the same zoom factor may be connected. In other embodiments, the prompt may also be performed by setting the same label color, for example, the labels 2X are all set to red, the labels 5X are all set to yellow, the labels 10X are all set to blue, and so on.
As can be seen from the above, the shooting prompting method provided in the embodiment of the present application may receive a shooting instruction, obtain a scene image corresponding to the camera currently according to the shooting instruction, identify a plurality of shooting objects in the scene image, respectively determine classification information of the plurality of shooting objects, respectively calculate target zoom multiple information of the plurality of shooting objects according to the classification information, respectively generate tags including the target zoom multiple information corresponding to the shooting objects, and display the tags at positions of the plurality of shooting objects in the scene image as preview images. According to the embodiment of the application, the shooting objects in the scene image can be identified, the corresponding target zooming multiple information of each shooting object is calculated, and the user is prompted in a label mode, so that when the user needs zooming shooting, the shooting efficiency is effectively improved.
The shooting prompting method of the present application will be further described below on the basis of the method described in the above embodiment. Referring to fig. 2, fig. 2 is another schematic flow chart of a shooting prompting method provided in the embodiment of the present application, where the shooting prompting method includes:
step 201, receiving a photographing instruction, and acquiring a scene image currently corresponding to the camera according to the photographing instruction.
In the embodiment of the present invention, the scene image may be obtained by taking a picture of the current scene by the electronic device, and specifically, after receiving a picture taking instruction input by a user, the electronic device may start a camera, and take a picture of the current scene by using the camera to obtain the scene image.
Step 202, a plurality of shooting objects in the scene image are identified, and classification information of the plurality of shooting objects is determined respectively.
Specifically, in the embodiment of the present application, all objects in the scene image may be identified, for example, a plurality of objects and images captured at a plurality of corresponding angles are stored in a preset image library, then the objects in the scene image are respectively compared, and when the compared similarity is greater than a preset value, it may be determined that the object corresponds to a sample in the image library, that is, the object may be identified. And if the compared similarity is smaller than a preset value, determining that the object cannot be identified. Therefore, objects that can be recognized in the scene image can be taken as the photographic subject, and the rest of the objects are not taken as the photographic subject. After the photographic subject is determined, category information corresponding to each photographic subject is further determined. For example, the categories can be divided into: humans, animals, plants, buildings, and the like.
Step 203, determining the preview size corresponding to the classification information, and acquiring the original size of the current shot object in the scene image.
In one embodiment, the different types of subjects are presented in different proportions on the preview interface after zooming. Therefore, in this embodiment, the optimal preview size of the object may be determined according to the classification information of the photographic object, and then the original size of the photographic object in the scene image is obtained, where the original size is the size of the photographic object in the scene image when the scene image is directly previewed.
And step 204, calculating target zoom multiple information of the shooting object according to the preview size and the original size.
Specifically, the same effect can be achieved after zooming by several times on the basis of the original size is calculated according to the optimal preview size of the photographic object, that is, the target zooming multiple information of the photographic object is calculated. In an embodiment, the preview size and the original size of the photographic subject may be a ratio of the photographic subject in the screen of the electronic device, for example, the optimal preview size is determined to be 60% of an area occupied by the photographic subject in the screen, and the area occupied by the photographic subject in the current scene image in the screen is 20%, and the target zoom multiple of the photographic subject is calculated to be 3 times according to the two ratios, that is, the optimal preview effect can be achieved. The above-mentioned optimal preview size may be determined according to a usage habit of a user browsing an image, for example, obtaining area information adjusted when the user browses various types of photographic objects in a historical time period, then determining an optimal area of each type of photographic object for the user according to a mean algorithm, and then calculating optimal proportion information according to the optimal area and a screen area, so as to serve as a preview size of the photographic object corresponding to each type, that is, the step of obtaining an original size of the photographic object in a scene image at present may include:
acquiring the original area of the current shot object in the scene image;
and calculating the original proportion data of the shot object according to the original area and the area of the screen of the electronic equipment, and determining the original size of the shot object in the scene image at present.
Further, the original size may be determined by calculating an original area of the subject, and then calculating current ratio information according to the original area and the screen area. That is, the step of obtaining the original size of the photographic subject currently in the scene image may include:
acquiring the original area of the current shot object in the scene image;
and calculating the original proportion data of the shot object according to the original area and the area of the screen of the electronic equipment, and determining the original size of the shot object in the scene image at present.
And step 205, generating labels containing target zoom multiple information corresponding to the shot objects respectively, and displaying the labels at a plurality of shot object positions in the scene image as preview images.
The above operations are performed on the plurality of shot objects respectively, so that the optimal zoom multiple of each shot object, that is, the target zoom multiple, can be obtained. In order to make the scheme more intuitive, the present embodiment may also directly place the target zoom multiple of the photographic subject in the form of a tag in the scene image, for example, at the corresponding position of the photographic subject, and display the target zoom multiple as a preview image. As shown in fig. 3, fig. 3 is a scene schematic diagram of a shooting prompting method provided in the embodiment of the present application. The scene includes characters, trees, houses, mountains and the like, the shooting objects obtained through recognition by the processor include houses, people, trees 1 and trees 2, and after the target zoom multiple of each shooting object is calculated respectively, corresponding labels are placed at the shooting object positions, for example, the label corresponding to the house is "10X", the label corresponding to the people is "5X", the label corresponding to the tree 1 is "5X", and the label corresponding to the tree 2 is "15X". The picture can be used as a preview picture and displayed to a user, so that the user can see the optimal zoom multiple of each shot object at a glance. No back and forth debugging is required.
Step 206, receiving a first operation of the user for the tag.
And step 207, determining a target shooting object corresponding to the label according to the first operation, adjusting the target shooting object by using the target zoom multiple, and displaying the adjusted target shooting object as a preview image.
Furthermore, after a label corresponding to each shooting object in the current scene is displayed on the preview interface, only a first operation of a user for the label needs to be received, zooming can be performed on the corresponding shooting object according to the zooming multiple corresponding to the label, and the zoomed image is displayed on a screen. For example, the first operation may be a click operation, and when the user clicks the "5X" tab at the "person" position in fig. 3, the user may zoom in by 5 times, and the zoomed image preview value is displayed on the screen for the user to observe.
And step 208, receiving a second operation of the user for the label.
And step 209, determining other shooting objects having the same target zoom multiple as the target shooting object according to the second operation, and switching the preview image to other shooting objects.
Further, since the target zoom multiples corresponding to the plurality of objects may be the same or different, for example, the zoom multiples corresponding to the objects closer to the lens are smaller, and the zoom multiples corresponding to the objects farther from the lens are larger, in an embodiment, the objects having the same target zoom multiple in the current scene image may be associated. Specifically, after step 207, preview images of other photographic subjects with the same zoom magnification may be displayed in a switching manner according to a second operation of the user.
For example, the second operation may be a double-click operation, after clicking the label "5X" at the "person" position, the user zooms in the person by 5 times to obtain a preview image, and at this time, the user double-clicks the screen, and may switch to "tree 1" and zooms in the tree 1 by 5 times to obtain the preview image.
As can be seen from the above, the shooting prompting method provided in this embodiment of the present application may receive a shooting instruction, obtain a scene image currently corresponding to a camera according to the shooting instruction, identify multiple shooting objects in the scene image, respectively determine classification information of the multiple shooting objects, determine a preview size corresponding to the classification information, obtain an original size of the shooting object currently in the scene image, calculate target zoom multiple information of the shooting object according to the preview size and the original size, respectively generate tags including the target zoom multiple information corresponding to the shooting object, display the tags at positions of the multiple shooting objects in the scene image as preview images, receive a first operation of a user for the tags, determine a target shooting object corresponding to the tags according to the first operation, adjust the target shooting object by the target zoom multiple, and display the adjusted target shooting object as the preview image, and receiving a second operation of the user for the tag, determining other shooting objects with the same target zoom multiple as the target shooting object according to the second operation, and switching the preview image to other shooting objects. According to the embodiment of the application, the shooting objects in the scene image can be identified, the corresponding target zooming multiple information of each shooting object is calculated, and the user is prompted in a label mode, so that when the user needs zooming shooting, the label is directly selected through operation, and the shooting efficiency is greatly improved.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a shooting prompting device according to an embodiment of the present disclosure. Wherein the shooting prompt apparatus 30 includes:
the acquiring module 301 is configured to receive a photographing instruction, and acquire a scene image currently corresponding to the camera according to the photographing instruction;
an identifying module 302, configured to identify a plurality of photographic subjects in the scene image, and determine classification information of the plurality of photographic subjects respectively;
a calculating module 303, configured to calculate target zoom multiple information of the multiple shooting objects according to the classification information;
a generating module 304, configured to generate tags including target zoom multiple information corresponding to the photographic subjects, respectively, and display the tags at a plurality of photographic subject positions in the scene image as preview images.
In an embodiment, referring to fig. 5, in this embodiment, the identifying module 302 may include:
a recognition sub-module 3021 for recognizing all objects in the scene image;
the selecting submodule 3022 is configured to select a target object that can be a subject of shooting from the objects according to a preset image library, and use the target object as a shooting object.
In one embodiment, the calculation module 303 may include:
a determining submodule 3031, configured to determine a preview size corresponding to the classification information;
an obtaining submodule 3032, configured to obtain an original size of the photographic subject in the scene image at present;
and the calculating submodule 3033 is configured to calculate target zoom multiple information of the photographic subject according to the preview size and the original size.
As can be seen from the above, the shooting prompting device 30 according to the embodiment of the present application may receive a shooting instruction, obtain a scene image corresponding to the camera at present according to the shooting instruction, identify a plurality of shooting objects in the scene image, respectively determine classification information of the plurality of shooting objects, respectively calculate target zoom multiple information of the plurality of shooting objects according to the classification information, respectively generate tags including the target zoom multiple information corresponding to the shooting objects, and display the tags at positions of the plurality of shooting objects in the scene image as preview images. According to the embodiment of the application, the shooting objects in the scene image can be identified, the corresponding target zooming multiple information of each shooting object is calculated, and the user is prompted in a label mode, so that when the user needs zooming shooting, the shooting efficiency is effectively improved.
In the embodiment of the present application, the shooting prompting device and the shooting prompting method in the above embodiments belong to the same concept, and any method provided in the shooting prompting method embodiment may be run on the shooting prompting device, and a specific implementation process thereof is described in detail in the embodiment of the shooting prompting method, and is not described herein again.
The term "module" as used herein may be considered a software object executing on the computing system. The different components, modules, engines, and services described herein may be considered as implementation objects on the computing system. The apparatus and method described herein may be implemented in software, but may also be implemented in hardware, and are within the scope of the present application.
The embodiment of the present application further provides a storage medium, on which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the above-mentioned shooting prompting method.
The embodiment of the application also provides an electronic device, such as a tablet computer, a mobile phone and the like. The processor in the electronic device loads instructions corresponding to processes of one or more application programs into the memory according to the following steps, and the processor runs the application programs stored in the memory, so that various functions are realized:
receiving a photographing instruction, and acquiring a scene image currently corresponding to the camera according to the photographing instruction;
identifying a plurality of shooting objects in the scene image, and respectively determining classification information of the plurality of shooting objects;
respectively calculating target zoom multiple information of the plurality of shot objects according to the classification information;
and respectively generating labels containing target zoom multiple information corresponding to the shot objects, and displaying the labels at a plurality of shot object positions in the scene image as preview images.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Referring to fig. 6, the electronic device 400 includes a processor 401 and a memory 402. The processor 401 is electrically connected to the memory 402.
The processor 400 is a control center of the electronic device 400, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device 400 by running or loading a computer program stored in the memory 402 and calling data stored in the memory 402, and processes the data, thereby monitoring the electronic device 400 as a whole.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the computer programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer 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 created according to use of the electronic device, and the like. Further, the memory 402 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. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.
In this embodiment, the processor 401 in the electronic device 400 loads instructions corresponding to one or more processes of the computer program into the memory 402 according to the following steps, and the processor 401 runs the computer program stored in the memory 402, so as to implement various functions, as follows:
receiving a photographing instruction, and acquiring a scene image currently corresponding to the camera according to the photographing instruction;
identifying a plurality of shooting objects in the scene image, and respectively determining classification information of the plurality of shooting objects;
respectively calculating target zoom multiple information of the plurality of shot objects according to the classification information;
and respectively generating labels containing target zoom multiple information corresponding to the shot objects, and displaying the labels at a plurality of shot object positions in the scene image as preview images.
Referring also to fig. 7, in some embodiments, the electronic device 400 may further include: a display 403, radio frequency circuitry 404, audio circuitry 405, and a power supply 406. The display 403, the rf circuit 404, the audio circuit 405, and the power source 406 are electrically connected to the processor 401.
The display 403 may be used to display information entered by or provided to the user as well as various graphical user interfaces, which may be made up of graphics, text, icons, video, and any combination thereof. The Display 403 may include a Display panel, and in some embodiments, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The rf circuit 404 may be used for transceiving rf signals to establish wireless communication with a network device or other electronic devices through wireless communication, and for transceiving signals with the network device or other electronic devices. In general, radio frequency circuit 501 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
The audio circuit 405 may be used to provide an audio interface between the user and the electronic device through a speaker, microphone. The audio circuit 506 may convert the received audio data into an electrical signal, transmit the electrical signal to a speaker, and convert the electrical signal to an audio signal for output by the speaker.
The power supply 406 may be used to power various components of the electronic device 400. In some embodiments, power supply 406 may be logically coupled to processor 401 via a power management system, such that functions to manage charging, discharging, and power consumption management are performed via the power management system. The power supply 406 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown in fig. 7, the electronic device 400 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
In the embodiment of the present application, the storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It should be noted that, for the shooting prompting method in the embodiment of the present application, a person skilled in the art may understand that all or part of the process for implementing the shooting prompting method in the embodiment of the present application may be completed by controlling related hardware through a computer program, where the computer program may be stored in a computer readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device, and the process of executing the process may include, for example, the process of the embodiment of the shooting prompting method. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.
In the shooting prompting device according to the embodiment of the present application, each functional module may be integrated in one processing chip, or each module may exist alone physically, or two or more modules are integrated in one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The above detailed description is made on a shooting prompting method, a shooting prompting device, a storage medium, and an electronic device provided in the embodiments of the present application, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A shooting prompting method is characterized by comprising the following steps:
receiving a photographing instruction, and acquiring a scene image currently corresponding to the camera according to the photographing instruction;
identifying a plurality of shooting objects in the scene image, and respectively determining classification information of the plurality of shooting objects;
respectively calculating target zoom multiple information of the plurality of shot objects according to the classification information;
and respectively generating labels containing target zoom multiple information corresponding to the shot objects, and respectively setting the labels at the corresponding positions of the shot objects in the scene image to be displayed as preview images.
2. The shooting prompting method according to claim 1, wherein the step of identifying a plurality of photographic subjects in the scene image comprises:
identifying all objects in the scene image;
and selecting a target object which can be used as a shooting subject from the objects according to a preset image library, and using the target object as a shooting object.
3. The shooting prompting method according to claim 1, wherein the step of calculating target zoom factor information of the plurality of photographic subjects respectively from the classification information includes:
determining a preview size corresponding to the classification information;
acquiring the original size of the current shot object in a scene image;
and calculating target zoom multiple information of the shot object according to the preview size and the original size.
4. The shooting prompting method according to claim 3, wherein the step of determining the preview size corresponding to the classification information includes:
acquiring a target area for adjusting the shot object when the user browses the shot object corresponding to the classification information within a preset time period;
and calculating target proportion data of the shooting object corresponding to the classification information according to the target area and the area of the screen of the electronic equipment, and determining the target proportion data as a preview size corresponding to the classification information.
5. The shooting prompting method according to claim 3, wherein the step of acquiring the original size of the photographic subject currently in the scene image comprises:
acquiring the original area of the current shot object in the scene image;
and calculating the original proportion data of the shot object according to the original area and the area of the screen of the electronic equipment, and determining the original size of the shot object in the scene image at present.
6. The method according to claim 1, wherein after generating respective tags containing target zoom factor information corresponding to the photographic subjects and setting the respective tags at respective positions of the photographic subjects in the scene image for display as preview images, the method further comprises:
receiving a first operation of a user for the tag;
and determining a target shooting object corresponding to the label according to the first operation, adjusting the target shooting object by using a target zoom multiple, and displaying the adjusted target shooting object as a preview image.
7. The shooting prompting method according to claim 6, wherein after displaying the adjusted target photographic subject as a preview image, the method further comprises:
receiving a second operation of the user for the label;
and determining other shooting objects with the same target zoom multiple as the target shooting object according to the second operation, and switching the preview image to the other shooting objects.
8. A shooting prompting apparatus, characterized in that the apparatus comprises:
the acquisition module is used for receiving a photographing instruction and acquiring a scene image currently corresponding to the camera according to the photographing instruction;
the identification module is used for identifying a plurality of shooting objects in the scene image and respectively determining the classification information of the plurality of shooting objects;
the calculation module is used for respectively calculating the target zoom multiple information of the plurality of shot objects according to the classification information;
and the generating module is used for respectively generating labels containing target zoom multiple information corresponding to the shot objects, and respectively setting the labels at the corresponding positions of the shot objects in the scene image to be displayed as preview images.
9. A storage medium having stored thereon a computer program, characterized in that when the computer program runs on a computer, the computer is caused to execute the shooting prompt method according to any one of claims 1 to 7.
10. An electronic device comprising a processor and a memory, the memory storing a plurality of instructions, wherein the instructions in the memory are loaded by the processor for performing the steps of:
receiving a photographing instruction, and acquiring a scene image currently corresponding to the camera according to the photographing instruction;
identifying a plurality of shooting objects in the scene image, and respectively determining classification information of the plurality of shooting objects;
respectively calculating target zoom multiple information of the plurality of shot objects according to the classification information;
and respectively generating labels containing target zoom multiple information corresponding to the shot objects, and respectively setting the labels at the corresponding positions of the shot objects in the scene image to be displayed as preview images.
CN202010760732.6A 2020-07-31 2020-07-31 Shooting prompting method and device, storage medium and electronic equipment Active CN111866392B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010760732.6A CN111866392B (en) 2020-07-31 2020-07-31 Shooting prompting method and device, storage medium and electronic equipment
PCT/CN2021/105488 WO2022022259A1 (en) 2020-07-31 2021-07-09 Photographing prompting method and apparatus, and storage medium, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010760732.6A CN111866392B (en) 2020-07-31 2020-07-31 Shooting prompting method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN111866392A CN111866392A (en) 2020-10-30
CN111866392B true CN111866392B (en) 2021-10-08

Family

ID=72953830

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010760732.6A Active CN111866392B (en) 2020-07-31 2020-07-31 Shooting prompting method and device, storage medium and electronic equipment

Country Status (2)

Country Link
CN (1) CN111866392B (en)
WO (1) WO2022022259A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111866392B (en) * 2020-07-31 2021-10-08 Oppo广东移动通信有限公司 Shooting prompting method and device, storage medium and electronic equipment
CN112738393B (en) * 2020-12-25 2022-08-09 珠海西山居移动游戏科技有限公司 Focusing method and device
CN113014813A (en) * 2021-03-02 2021-06-22 北京蜂巢世纪科技有限公司 Focal length adjusting method and device, electronic equipment and storage medium
CN113709368A (en) * 2021-08-26 2021-11-26 维沃移动通信有限公司 Image display method, device and equipment
CN115426444A (en) * 2022-08-25 2022-12-02 维沃移动通信(杭州)有限公司 Shooting method and device
CN115514892B (en) * 2022-09-20 2023-04-18 北京拙河科技有限公司 Camera precision hierarchical selection method and device
CN116405611A (en) * 2023-06-07 2023-07-07 建信金融科技有限责任公司 Image uploading method, system, device, equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108111818A (en) * 2017-12-25 2018-06-01 北京航空航天大学 Moving target active perception method and apparatus based on multiple-camera collaboration
CN110163810A (en) * 2019-04-08 2019-08-23 腾讯科技(深圳)有限公司 A kind of image processing method, device and terminal
CN110445985A (en) * 2019-08-30 2019-11-12 联想(北京)有限公司 A kind of image-pickup method, electronic equipment and computer readable storage medium
CN110572573A (en) * 2019-09-17 2019-12-13 Oppo广东移动通信有限公司 Focusing method and device, electronic equipment and computer readable storage medium
CN110933293A (en) * 2019-10-31 2020-03-27 努比亚技术有限公司 Shooting method, terminal and computer readable storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5538865B2 (en) * 2009-12-21 2014-07-02 キヤノン株式会社 Imaging apparatus and control method thereof
KR101837688B1 (en) * 2011-03-30 2018-04-19 삼성전자주식회사 Digital photographing apparatus, method for controlling the same, and recording medium storing program to implement the method
US10440252B2 (en) * 2013-09-24 2019-10-08 Sony Corporation Apparatus and imaging method for setting a target of an image
CN103595917B (en) * 2013-11-14 2016-08-17 上海华勤通讯技术有限公司 Mobile terminal and focus adjustment method thereof
CN111093023B (en) * 2019-12-19 2022-03-08 维沃移动通信有限公司 Video shooting method and electronic equipment
CN111182205B (en) * 2019-12-30 2021-07-27 维沃移动通信有限公司 Photographing method, electronic device, and medium
CN111866392B (en) * 2020-07-31 2021-10-08 Oppo广东移动通信有限公司 Shooting prompting method and device, storage medium and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108111818A (en) * 2017-12-25 2018-06-01 北京航空航天大学 Moving target active perception method and apparatus based on multiple-camera collaboration
CN110163810A (en) * 2019-04-08 2019-08-23 腾讯科技(深圳)有限公司 A kind of image processing method, device and terminal
CN110445985A (en) * 2019-08-30 2019-11-12 联想(北京)有限公司 A kind of image-pickup method, electronic equipment and computer readable storage medium
CN110572573A (en) * 2019-09-17 2019-12-13 Oppo广东移动通信有限公司 Focusing method and device, electronic equipment and computer readable storage medium
CN110933293A (en) * 2019-10-31 2020-03-27 努比亚技术有限公司 Shooting method, terminal and computer readable storage medium

Also Published As

Publication number Publication date
WO2022022259A1 (en) 2022-02-03
CN111866392A (en) 2020-10-30

Similar Documents

Publication Publication Date Title
CN111866392B (en) Shooting prompting method and device, storage medium and electronic equipment
CN114205522B (en) Method for long-focus shooting and electronic equipment
US9489564B2 (en) Method and apparatus for prioritizing image quality of a particular subject within an image
CN112954210B (en) Photographing method and device, electronic equipment and medium
WO2021185250A1 (en) Image processing method and apparatus
CN112714253B (en) Video recording method and device, electronic equipment and readable storage medium
CN113473007B (en) Shooting method and device
CN113727021B (en) Shooting method and device and electronic equipment
CN113840070A (en) Shooting method, shooting device, electronic equipment and medium
CN108093177B (en) Image acquisition method and device, storage medium and electronic equipment
CN113709368A (en) Image display method, device and equipment
CN105554366A (en) Multimedia photographing processing method and device and intelligent terminal
CN113010738B (en) Video processing method, device, electronic equipment and readable storage medium
CN113866782A (en) Image processing method and device and electronic equipment
CN113989387A (en) Camera shooting parameter adjusting method and device and electronic equipment
JP2015103968A (en) Image processing apparatus, image processing method and image processing program
CN113794831A (en) Video shooting method and device, electronic equipment and medium
CN108495038B (en) Image processing method, image processing device, storage medium and electronic equipment
CN113271378B (en) Image processing method and device and electronic equipment
CN113286085B (en) Display control method and device and electronic equipment
CN112383708B (en) Shooting method and device, electronic equipment and readable storage medium
CN102402570B (en) Data management device and recording medium
CN112653841B (en) Shooting method and device and electronic equipment
CN113542599A (en) Image shooting method and device
CN114025100A (en) Shooting method, shooting device, electronic equipment and readable storage medium

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