Summary of the invention
In view of this, the embodiment of the present invention provides a kind of reminding method, device and electronic equipment for adjusting shooting angle, until
Least a portion of solution problems of the prior art.
In a first aspect, the embodiment of the invention provides a kind of reminding methods for adjusting shooting angle, comprising:
The preview frame data of shooting are obtained by terminal camera, and analysis meter is carried out to the shooting preview figure of terminal user
It calculates;
Go out best shooting angle and the position of current scene according to the shooting preview map analysis of terminal user, front court is worked as in determination
The shooting angle adjustment mode of scape;
The mobile prompt auxiliary line of the adjustment mode is established, by adjusting the identification information of the mobile prompt auxiliary line
The terminal user is prompted to adjust shooting angle and the position of the target photographed scene.
1, a kind of specific implementation according to an embodiment of the present invention establishes the mobile prompt auxiliary of the adjustment mode
Line, the identification information by adjusting the mobile prompt auxiliary line prompt the terminal user to adjust the target photographed scene
Shooting angle and position, comprising:
According to the positional relationship for specifying auxiliary line in the target reference object and the mobile prompt auxiliary line, in conjunction with institute
Home position of the specified auxiliary line in the composition application method of the mobile prompt auxiliary line is stated, determination shoots the target
Object adjusts the adjustment direction or adjustment distance of the target position into the shooting preview figure, and according to the adjustment direction
Or the adjustment distance determines the adjustment mode of the shooting angle of the target reference object;
Different types of configurable attribute value is arranged to different types of target device.
A kind of specific implementation according to an embodiment of the present invention, it is characterised in that:
The mobile prompt auxiliary line is circle auxiliary line.
A kind of specific implementation according to an embodiment of the present invention, it is described to establish the corresponding mobile prompt of the adjustment mode
Auxiliary line, comprising:
The position of centre of gravity of the target reference object is obtained, and from the shooting preview figure with the target reference object
Position of centre of gravity centered on establish the adjustment direction or it is described adjustment apart from corresponding circle auxiliary line.
A kind of specific implementation according to an embodiment of the present invention, it is characterised in that:
The identification information of the mobile prompt auxiliary line include: the circle auxiliary line circle size or the circle
Enclose the line color of auxiliary line.
A kind of specific implementation according to an embodiment of the present invention, the mark by adjusting the mobile prompt auxiliary line
Know the shooting angle that terminal user described in information alert adjusts the target reference object, comprising:
The terminal user is prompted to clap the target by the circle size or line color of the circle auxiliary line
Take the photograph the adjustment distance that the shooting angle of object is adjusted.
A kind of specific implementation according to an embodiment of the present invention, the mark by adjusting the mobile prompt auxiliary line
Know the shooting angle that terminal user described in information alert adjusts the target reference object, comprising:
Shooting of the terminal user described in the big mere suggestion of circle by the circle auxiliary line to the target reference object
The adjustment distance that angle is adjusted, and prompt the terminal user to the mesh by the line color of the circle auxiliary line
The adjustment direction that the shooting angle of mark reference object is adjusted.
A kind of specific implementation according to an embodiment of the present invention, the target reference object include: personage, building,
At least one of animal, plant and identification object.
Second aspect, the embodiment of the invention provides a kind of suggestion devices for adjusting shooting angle, comprising:
Module is obtained, for obtaining the preview frame data of shooting by terminal camera, and it is pre- to the shooting of terminal user
Figure of looking at carries out analytical calculation;
Determining module goes out best shooting angle and the position of current scene for the shooting preview map analysis according to terminal user
It sets, determines the shooting angle adjustment mode of current scene;
Cue module, it is auxiliary by adjusting the mobile prompt for establishing the mobile prompt auxiliary line of the adjustment mode
The identification information of index contour prompts the terminal user to adjust shooting angle and the position of the target photographed scene.
The third aspect, the embodiment of the invention provides a kind of electronic equipment, the electronic equipment includes:
At least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one
A processor executes, so that at least one described processor is able to carry out aforementioned first aspect or any implementation of first aspect
The reminding method of the adjustment shooting angle.
Fourth aspect, it is described non-transient the embodiment of the invention also provides a kind of non-transient computer readable storage medium
Computer-readable recording medium storage computer instruction, the computer instruction is for making the computer execute aforementioned first party
The reminding method of adjustment shooting angle described in any implementation of face or first aspect.
5th aspect, the embodiment of the invention also provides a kind of computer program product, the computer program product packet
The calculation procedure being stored in non-transient computer readable storage medium is included, the computer program includes program instruction, works as institute
When stating program instruction and being computer-executed, the computer is made to execute any implementation of aforementioned first aspect or first aspect
The reminding method of the adjustment shooting angle.
Reminding method, device and the electronic equipment of adjustment shooting angle provided in an embodiment of the present invention have following beneficial
Effect: 1. is easy to operate, reduces user and uses threshold;2. the optimum position of scene is recommended in the machine learning used, no environment
It is required that.3. automatic camera reduces the operation of user;4. more than adjusting, obtains best angle.
Specific embodiment
The embodiment of the present invention is described in detail with reference to the accompanying drawing.
It will be appreciated that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Base
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts it is all its
Its embodiment, shall fall within the protection scope of the present invention.
With the high speed development of various intelligent movable equipment, the camera pixel in terminal is higher and higher so that increasingly
More users is inclined to use mobile intelligent terminal and takes pictures.Major manufacturer terminal is the demand of taking pictures for meeting user, to terminal
Hardware constantly updates upgrading, is taken pictures pixel with improving terminal.But the photo for shooting high quality, not only needs terminal camera
Has high-resolution, and user itself should also have certain Professional Photography skill.Obviously, do not have for most users
This standby ability can not take satisfactory effect even if this also causes Most users to have high-end photography hardware device
Fruit.
The scheme of the application helps commonness photograph fan to promote photography by the intelligent interaction of realization terminal and cameraman
Quality.The preview frame data that current environment is got by the camera apparatus of intelligent terminal, then by preview data
Intellectual analysis and calculating, obtain the optimum photographing position of current region.Then by lead-frame guide user by intelligent phase
The camera lens of machine is moved to the position of recommendation.After the camera lens of user reaches the position recommended, software can be to current position of finding a view
It carries out one to give a mark, after the preset score value reached, system meeting recommended user takes pictures in current location, if do not reached
Preset fractional value, system can recalculate a more preferably camera site according to current lens location, then guide user
It goes intelligent movable equipment and takes pictures.Bootup process can repeat general 1~3 time.Final clap is projected with certain professional photo
In order to make it easy to understand, the present invention carries out description below for some technical terms used:
Optical flow method, light stream are a kind of expression ways of simple and practical image motion, are normally defined an image sequence
In brightness of image mode apparent motion, i.e. the movement velocity of point on space object surface is flat in the imaging of visual sensor
Expression on face.It is mainly used for object tracking.
Smart machine refers to a kind of equipment with calculation processing ability, instrument or machine.When computer technology becomes
It is increasingly advanced, when more and more cheap, it will be able to various types of equipment are constructed, in addition to personal and palm PC, there are many more
Smart machine, including medical device, geology equipment and household appliance etc..
Referring to Fig. 1, the embodiment of the invention provides a kind of reminding methods for adjusting shooting angle, include the following steps:
S101 obtains shooting preview figure by terminal camera, and obtains what user selected from the shooting preview figure
Target reference object.
S102, according to position of the target reference object in the mobile prompt auxiliary line built in the terminal camera
It sets, in conjunction with the preset mobile prompt auxiliary line, determines the adjustment mode of the shooting angle of the target reference object.
S103 establishes the corresponding mobile prompt auxiliary line of the adjustment mode, by adjusting the mobile prompt auxiliary line
Identification information prompt the terminal user to adjust the shooting angle of the target reference object.
Specifically, being got by the camera apparatus of intelligent terminal current during step S101~S103 is realized
The preview frame data of environment obtain the best shooting position of current region then by intellectual analysis to preview data and calculating
It sets.Then the position that the camera lens of smart camera is moved to recommendation of user is guided by lead-frame.When the camera lens of user reaches
Behind the position of recommendation, software can carry out one to current position of finding a view and give a mark, and after the preset score value reached, system can recommend
User takes pictures in current location, if not reaching preset fractional value, system can be according to current lens location again
A more preferably camera site is calculated, then user is guided to go intelligent movable equipment and take pictures.
Shooting preview figure can be obtained by terminal camera, and obtain terminal user and selected from the shooting preview figure
Target reference object, according to position of the target reference object in the mobile prompt auxiliary line built in the terminal camera
It sets, in conjunction with the application method of the preset mobile prompt auxiliary line, determines the tune of the shooting angle of the target reference object
Perfect square formula establishes the corresponding mobile prompt auxiliary line of the adjustment mode, and by adjusting the mark of the mobile prompt auxiliary line
Know the shooting angle that terminal user described in information alert adjusts the target reference object.
Wherein, the target reference object include: in personage, building, animal, plant and identification object at least
It is a kind of.
Wherein, it is described according to the target reference object in the mobile prompt auxiliary line built in the terminal camera
Position determines the shooting angle of the target reference object in conjunction with the application method of the preset mobile prompt auxiliary line
Adjustment mode, comprising:
According to the positional relationship for specifying auxiliary line in the target reference object and the mobile prompt auxiliary line, in conjunction with institute
Home position of the specified auxiliary line in the composition application method of the mobile prompt auxiliary line is stated, determination shoots the target
Object adjusts the adjustment direction or adjustment distance of the target position into the shooting preview figure, and according to the adjustment direction
Or the adjustment distance determines the adjustment mode of the shooting angle of the target reference object.
Wherein, the mobile prompt auxiliary line is circle auxiliary line;
It is described to establish the corresponding mobile prompt auxiliary line of the adjustment mode, comprising:
The position of centre of gravity of the target reference object is obtained, and from the shooting preview figure with the target reference object
Position of centre of gravity centered on establish the adjustment direction or it is described adjustment apart from corresponding circle auxiliary line.
Wherein, the identification information of the mobile prompt auxiliary line includes: the circle size of the circle auxiliary line, Huo Zhesuo
State the line color of circle auxiliary line;
The identification information by adjusting the mobile prompt auxiliary line prompts the terminal user to adjust the target
The shooting angle of reference object, comprising:
The terminal user is prompted to clap the target by the circle size or line color of the circle auxiliary line
Take the photograph the adjustment distance that the shooting angle of object is adjusted;Or
Shooting of the terminal user described in the big mere suggestion of circle by the circle auxiliary line to the target reference object
The adjustment distance that angle is adjusted, and prompt the terminal user to the mesh by the line color of the circle auxiliary line
The adjustment direction that the shooting angle of mark reference object is adjusted.
The embodiment of the invention also provides a kind of terminal, can include:
Module is obtained, for obtaining shooting preview figure by terminal camera, and it is pre- from the shooting to obtain terminal user
Look at the target reference object selected in figure;
Determining module, the target reference object for being got according to the acquisition module is in the terminal camera
Position in built-in mobile prompt auxiliary line, in conjunction with the application method of the preset mobile prompt auxiliary line, determine described in
The adjustment mode of the shooting angle of target reference object;
Cue module, for establishing the corresponding mobile prompt auxiliary line of the adjustment mode that the determining module determines,
And the identification information by adjusting the mobile prompt auxiliary line prompts the terminal user to adjust the target reference object
Shooting angle.
Wherein, the target reference object include: in personage, building, animal, plant and identification object at least
It is a kind of.
Wherein, the determining module is specifically used for:
According to the positional relationship for specifying auxiliary line in the target reference object and the mobile prompt auxiliary line, in conjunction with institute
Home position of the specified auxiliary line in the composition application method of the mobile prompt auxiliary line is stated, determination shoots the target
Object adjusts the adjustment direction or adjustment distance of the target position into the shooting preview figure, and according to the adjustment direction
Or the adjustment distance determines the adjustment mode of the shooting angle of the target reference object.
Wherein, the mobile prompt auxiliary line is circle auxiliary line;
The cue module is specifically used for:
The position of centre of gravity of the target reference object is obtained, and from the shooting preview figure with the target reference object
Position of centre of gravity centered on establish the adjustment direction or it is described adjustment apart from corresponding circle auxiliary line.
Wherein, the identification information of the mobile prompt auxiliary line includes: the circle size of the circle auxiliary line, Huo Zhesuo
State the line color of circle auxiliary line;
The cue module is specifically used for:
The terminal user is prompted to clap the target by the circle size or line color of the circle auxiliary line
Take the photograph the adjustment distance that the shooting angle of object is adjusted;Or
Shooting of the terminal user described in the big mere suggestion of circle by the circle auxiliary line to the target reference object
The adjustment distance that angle is adjusted, and prompt the terminal user to the mesh by the line color of the circle auxiliary line
The adjustment direction that the shooting angle of mark reference object is adjusted.
The embodiment of the present invention obtains shooting preview figure by terminal camera, can also obtain user from above-mentioned shooting preview figure
In the target reference object selected, i.e. user can be according to the selected target reference object focused of actual photographed scene, and then can root
According to position of the target reference object in the mobile prompt auxiliary line built in terminal camera, in conjunction with the user of composition auxiliary line
Method determines the adjustment mode of the shooting angle of target reference object, i.e., is placed target reference object according to composition theory specified
Position, to obtain the adjustment mode of the shooting angle of the target reference object of preferable shooting effect figure.The embodiment of the present invention can
Mobile prompt auxiliary line is established according to the adjustment mode of the shooting angle of determining target reference object, and auxiliary by mobile prompt
The shooting angle of the identification information warning terminal user adjustment target reference object of index contour, enhances the photography structure of terminal camera
The suggesting effect of figure auxiliary line improves the regulated efficiency of the shooting angle of target reference object, the user of enhancing terminal camera shooting
Experience.
As a kind of specific embodiment, referring to Fig. 3, the realization process of application scheme, which can be such that, passes through terminal
Camera acquisition shooting preview figure, the deep learning model for utilizing mass data to train before being transferred to (such as convolutional Neural net
Network) carry out the acquisition of best shooting angle, and obtain the best shooting angle in current preview interface, provide mobile auxiliary line and
Prompt guides user that mobile phone angle is adjusted to suitable angle.After angle adjustment, the field of this shooting angle is calculated
Scape value then directly takes pictures after scene value meets the threshold value of setting, continues to calculate best shooting angle if being unsatisfactory for,
It prompts and user is guided to shoot.Its flow chart is as shown in Figure 3.
During implementing step S101-S103, it can adopt the following technical scheme that
1. machine learning
Available data processing model is trained using machine learning, which can be by calculating current frame data
It obtains best shooting angle and the position of current scene, and provides the scene value of this position.
2. light stream is tracked
The method tracked by light stream, the guidance figure of combination interface, the mobile camera of guidance user to correct angle.
3. automatic camera
It is when the scene value that algorithm obtains meets threshold value, and after user's cell phone to specified position, then automatic to carry out
It takes pictures.
4. taking pictures manually
User can be taken pictures with angle manually at an arbitrary position.The photograph that the name of pictures and automatic camera of storage obtain
Piece title is had any different.
Referring to Fig. 3, as an implementation, step S101-S103 can be realized using following steps:
1. obtain shooting preview figure by terminal camera, and terminal user is calculated and currently finds a view the best bat at interface
It acts as regent and sets and angle.
2. determining the movement routine for arriving optimum photographing position (such as Fig. 2) according to the position coordinates of best shooting angle.
3. being established to the guidance auxiliary line of best shooting angle position.And the end is prompted by auxiliary line (such as Fig. 2)
End subscriber adjusts the shooting angle of the target reference object.
4. prompting the terminal user to the target reference object by the length direction of the guidance auxiliary line
The adjustment distance that is adjusted of shooting angle, and prompt the terminal user to described by the arrow of the guidance auxiliary line
The shooting angle of target reference object carries out the adjustment in direction.
5. the angle as the terminal user is overlapped with best shooting angle, then the optimum position coordinate under the scene is calculated
And the scene value of newest recommended location.
6. the scene value when newest recommended location reaches threshold value, then directly take pictures.
7. when the scene value of newest recommended location is unsatisfactory for the condition of threshold value, then repeatedly 1~6 the step of.At most repeat 2
It is secondary.
Corresponding with above method embodiment, referring to fig. 4, the embodiment of the invention provides a kind of adjustment shooting angle
Suggestion device, comprising:
Module 401 is obtained, for obtaining shooting preview figure by terminal camera, and obtains user from the shooting preview
The target reference object selected in figure;
Determining module 402, for auxiliary in the mobile prompt built in the terminal camera according to the target reference object
Position in index contour determines the tune of the shooting angle of the target reference object in conjunction with the preset mobile prompt auxiliary line
Perfect square formula;
Cue module 403, for establishing the corresponding mobile prompt auxiliary line of the adjustment mode, by adjusting the movement
The shooting angle for prompting the identification information of auxiliary line that the terminal user is prompted to adjust the target reference object.
The content in content and method embodiment executed in above-mentioned modules is corresponding, and details are not described herein.
In addition to this, the embodiment of the invention provides a kind of electronic equipment, the electronic equipment includes:
At least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one
A processor executes, so that at least one described processor is able to carry out tune described in preceding method embodiment or embodiment
The reminding method of whole shooting angle.
Fig. 5 shows the structural schematic diagram of electronic equipment 50 provided in an embodiment of the present invention, and electronic equipment 50 includes at least
One processor 501 (such as CPU), at least one input/output interface 504, memory 502 and at least one communication bus
503, for realizing the connection communication between these components.At least one processor 501 stores in memory 502 for executing
Executable module, such as computer program.Memory 502 is non-transient memory (non-transitory memory),
It may include volatile memory, such as high-speed random access memory (RAM:Random Access Memory), it can also be with
Including nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.Pass through at least one
Input/output interface 504 (can be wired or wireless communication interface) realizes the communication between at least one other network element
Connection.
In some embodiments, memory 502 stores program 5021, and processor 501 executes program 5021, is used for
Execute the embodiment of the reminding method of aforementioned any adjustment shooting angle based on electronic equipment.
The electronic equipment can exist in a variety of forms, including but not limited to:
(1) mobile communication equipment: the characteristics of this kind of equipment is that have mobile communication function, and to provide speech, data
Communication is main target.This Terminal Type includes: smart phone (such as iPhone), multimedia handset, functional mobile phone and low
Hold mobile phone etc..
(2) super mobile personal computer equipment: this kind of equipment belongs to the scope of personal computer, there is calculating and processing function
Can, generally also have mobile Internet access characteristic.This Terminal Type includes: PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device: this kind of equipment can show and play multimedia content.Such equipment include: audio,
Video player (such as iPod), handheld device, e-book and intelligent toy and portable car-mounted navigation equipment.
(4) particular server: providing the equipment of the service of calculating, and the composition of server includes processor, hard disk, memory, is
Bus of uniting etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, is handling
Ability, stability, reliability, safety, scalability, manageability etc. are more demanding.
(5) other electronic equipments with data interaction function.
It should be noted that, in this document, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these.
There are any actual relationship or orders between entity or operation.Moreover, the terms "include", "comprise" or
Any other variant thereof is intended to cover non-exclusive inclusion by person, so that including the process, method of a series of elements, article
Or equipment not only includes those elements, but also including other elements that are not explicitly listed, or it is this for further including
The intrinsic element of process, method, article or equipment.In the absence of more restrictions, by sentence " including one
It is a ... " limit element, it is not excluded that there is also in addition in the process, method, article or apparatus that includes the element
Identical element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.
For Installation practice, since it is substantially similar to the method embodiment, so the comparison of description is simple
Single, the relevent part can refer to the partial explaination of embodiments of method.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction
The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass
Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment
It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings
Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable
Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.
In the above-described embodiment, multiple steps or method can be with storages in memory and by suitable instruction execution
The software or firmware that system executes are realized.For example, in another embodiment, can be used if realized with hardware
Any one of following technology well known in the art or their combination are realized: being had for realizing logic function to data-signal
The discrete logic of the logic gates of energy, the specific integrated circuit with suitable combinational logic gate circuit, programmable gate
Array (PGA), field programmable gate array (FPGA) etc..
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by those familiar with the art, all answers
It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.