A kind of automatic photographing method, device, server and storage medium
Technical field
The present embodiments relate to field of photographing technology more particularly to a kind of automatic photographing method, device, server and deposit
Storage media.
Background technique
In existing automatic shooting technology, can identify in photo the expression of personage or track its eyeball realize it is automatic fixed
Coke is taken pictures.But it can not be automatically snapped according to the number of taking pictures when the number taken pictures is more.When in some occasions such as group
Activity, tourism in, need to clap group picture, the number for participating in taking pictures is relatively more, it will usually there is a people to serve as photographer and cannot
Enter mirror, or looks for passerby's help to take pictures and will cause inconvenience.
Summary of the invention
The embodiment of the present invention provides a kind of automatic photographing method, device, terminal and storage medium, to realize according to the people that takes pictures
Number carries out automatic camera, can enter mirror when shooting group picture with crew, and without trouble, other people help, and make to take pictures more just
Benefit.
In a first aspect, the embodiment of the invention provides a kind of automatic photographing methods, this method comprises:
When entering automatic camera mode, the first preview image is obtained;
Identify that first in first preview image enters mirror number;
When described first enter mirror number it is consistent with default number of taking pictures when carry out automatic camera.
Optionally, the default number of taking pictures is the number of taking pictures that user pre-enters before entering automatic camera mode.
Optionally, the acquisition process of the default number of taking pictures includes:
Obtain the second preview image shot by user;
Identify that second in second preview image enters mirror number;
Determine that described second enters mirror number one numerical value is added to be the default number of taking pictures.
Optionally, first in identification first preview image enters mirror number and/or identification second preview
Second in image enters mirror number, comprising: identifies first preview image by pattern-recognition and/or Feature point recognition mode
And/or second enter mirror number in preview image.
Second aspect, the embodiment of the invention also provides a kind of Automatic camera, which includes:
First preview image obtains module, for obtaining the first preview image when entering automatic camera mode;
Enter mirror number identification module, first in first preview image enters mirror number for identification;
Automatic camera module, for when described first enter mirror number it is consistent with default number of taking pictures when carry out automatic camera.
Optionally, the default number of taking pictures is the number of taking pictures that user pre-enters before entering automatic camera mode.
Optionally, described device further includes that default number of taking pictures obtains module, which includes:
Second preview image acquiring unit, for obtaining the second preview image shot by user;
Enter mirror number recognition unit, second in second preview image enters mirror number for identification;
Default number determination unit of taking pictures, for determining that described second enters mirror number one numerical value is added to be described default take pictures
Number.
Optionally, described to enter mirror number identification module and/or to enter mirror number recognition unit and be specifically used for: to pass through pattern-recognition
And/or Feature point recognition mode identifies in first preview image and/or the second preview image and enters mirror number.
The third aspect, the embodiment of the invention also provides a kind of server, which includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing
Device realizes the automatic photographing method as described in any in the embodiment of the present invention.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer
Program realizes the automatic photographing method as described in any in the embodiment of the present invention when program is executed by processor.
The embodiment of the present invention is by obtaining preview image, and identify in preview image when entering automatic camera mode
Enter mirror number, will enter mirror number with it is preset enter mirror number be compared, automatic camera is carried out when the two is identical, solves bat
It needs that people's help or a people is looked for work as the problem of photographer cannot enter mirror when group picture, realizes and clapped automatically according to number of taking pictures
According to mirror can be entered with crew when shooting group picture, without trouble, other people help, and it is more convenient to make to take pictures.
Detailed description of the invention
Fig. 1 is the flow chart of the automatic photographing method in the embodiment of the present invention one;
Fig. 2 is the structural schematic diagram of the Automatic camera in the embodiment of the present invention two;
Fig. 3 is the structural schematic diagram of the server in the embodiment of the present invention three.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just
Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
In the prior art, can be taken pictures delay time by setting, be automatically snapped, but in shooting group picture
When, in delay time it cannot be guaranteed that institute it is in need enter mirror personnel all have been prepared for, can successfully enter mirror and take pictures, bat
According to ineffective, it usually needs repeatedly shooting.
Fig. 1 is the flow chart for the automatic photographing method that the embodiment of the present invention one provides, and the present embodiment is applicable to shooting collection
The case where body shines, this method can be executed by Automatic camera, which is for example configured in server.Such as Fig. 1 institute
Show, this method specifically includes:
S110, in enter automatic camera mode when, obtain the first preview image.
When being automatically snapped, user can click corresponding operational and controlled key button in the operation and control interface of camera and enter camera
Automatic camera mode.When camera after being operated into automatic camera mode, can obtain the current preview of camera in response to user
Then preview image is uploaded to background server as preview image by image.Server receives the preview graph of camera upload
As being used as the first preview image.
First in S120, identification first preview image enters mirror number.
Enter mirror specifically, can identify in the first preview image by modes such as pattern-recognition and/or Feature point recognitions
Number, such as recognition of face, the identification method of shoulder neck position characteristic point.Enter mirror people in the first preview image that finally will identify that
Number enters mirror number as first.
S130, when described first enter mirror number it is consistent with default number of taking pictures when carry out automatic camera.
Wherein, the acquisition for presetting number of taking pictures in various embodiments has different modes.
In one embodiment, user can pre-enter and set before manipulation camera enters automatic shooting mode
Determining takes pictures into mirror number, when identifying that first in the first preview image enters mirror number, enters mirror number and pre- for first
If the number of taking pictures compares, when first enter mirror number it is identical as default number of taking pictures when, then trigger camera and take pictures.It is such
Mode is suitble to number determination of taking pictures, and fewer in number convenient for the case where checking.
In one embodiment, it when specifically shooting number is uncertain, can obtain first by the of user's shooting
Two preview images, the second preview image are that other other than the user as photographer need the group photo of the personnel into mirror.
After server gets the second preview image, identify that second in the second preview image enters mirror number.Enter mirror number for second
One numerical value is added to be used as default number of taking pictures.Specifically, when the user as photographer returns in shooting group photo troop, second
Entering mirror number adds one to be the summation for all entering mirror number, and second to enter mirror number be preset number of taking pictures.Further, when
First enter mirror number it is identical as default number of taking pictures when, that is, can trigger camera and automatically snapped.
The technical solution of the present embodiment, by obtaining preview image, and identify preview graph when entering automatic camera mode
As in enter mirror number, will enter mirror number with it is preset enter mirror number be compared, automatic camera is carried out when the two is identical, solution
Determined bat group picture when need to look for that people helps or in which a people serves as the problem of photographer cannot enter mirror, realize according to number of taking pictures
Automatic camera is carried out, mirror can be entered when shooting group picture with crew, other people help without trouble, make to take pictures more just
Benefit.
Embodiment two
Fig. 2 is the structural schematic diagram of Automatic camera provided by Embodiment 2 of the present invention.As shown in Fig. 2, automatic camera
Device includes: that the first preview image obtains module 210, enters mirror number identification module 220 and automatic camera module 230.
Wherein, the first preview image obtains module 210, for obtaining the first preview graph when entering automatic camera mode
Picture;Enter mirror number identification module 220, first in first preview image enters mirror number for identification;Automatic camera module
230, for when described first enter mirror number it is consistent with default number of taking pictures when carry out automatic camera.
The technical solution of the present embodiment is by obtaining preview image, and identify preview graph when entering automatic camera mode
As in enter mirror number, will enter mirror number with it is preset enter mirror number be compared, automatic camera is carried out when the two is identical, solution
Determined bat group picture when need to look for that people helps or a people is when photographer cannot enter mirror the problem of, realize according to number of taking pictures carry out from
It is dynamic to take pictures, mirror can be entered when shooting group picture with crew, other people help without trouble, and it is more convenient to make to take pictures.
Optionally, the default number of taking pictures is the number of taking pictures that user pre-enters before entering automatic camera mode.
Optionally, described device further includes that default number of taking pictures obtains module, which includes:
Second preview image acquiring unit, for obtaining the second preview image shot by user;
Enter mirror number recognition unit, second in second preview image enters mirror number for identification;
Default number determination unit of taking pictures, for determining that described second enters mirror number one numerical value is added to be described default take pictures
Number.
Optionally, described to enter mirror number identification module and/or to enter mirror number recognition unit and be specifically used for: to pass through pattern-recognition
And/or Feature point recognition mode identifies in first preview image and/or the second preview image and enters mirror number.
Automatic bat provided by any embodiment of the invention can be performed in Automatic camera provided by the embodiment of the present invention
According to method, have the corresponding functional module of execution method and beneficial effect.
Embodiment three
Fig. 3 is the structural schematic diagram of the server in the embodiment of the present invention three.Fig. 3, which is shown, to be suitable for being used to realizing the present invention
The block diagram of the exemplary servers 312 of embodiment.The server 312 that Fig. 3 is shown is only an example, should not be to the present invention
The function and use scope of embodiment bring any restrictions.
As shown in figure 3, server 312 is showed in the form of universal computing device.The component of server 312 may include but
Be not limited to: one or more processor or processing unit 316, system storage 328, connect different system components (including
System storage 328 and processing unit 316) bus 318.
Bus 318 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller,
Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts
For example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC)
Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Server 312 typically comprises a variety of computer system readable media.These media can be it is any being capable of bedding and clothing
The usable medium that business device 312 accesses, including volatile and non-volatile media, moveable and immovable medium.
System storage 328 may include the computer system readable media of form of volatile memory, such as deposit at random
Access to memory (RAM) 330 and/or cache memory 332.Server 312 may further include it is other it is removable/can not
Mobile, volatile/non-volatile computer system storage medium.Only as an example, storage system 334 can be used for reading and writing not
Movably, non-volatile magnetic media (Fig. 3 do not show, commonly referred to as " hard disk drive ").It, can be with although being not shown in Fig. 3
The disc driver for reading and writing to removable non-volatile magnetic disk (such as " floppy disk ") is provided, and non-volatile to moving
The CD drive of CD (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driving
Device can be connected by one or more data media interfaces with bus 318.Memory 328 may include at least one program
Product, the program product have one group of (for example, at least one) program module, these program modules are configured to perform the present invention
The function of each embodiment.
Program/utility 340 with one group of (at least one) program module 342, can store in such as memory
In 328, such program module 342 includes but is not limited to operating system, one or more application program, other program modules
And program data, it may include the realization of network environment in each of these examples or certain combination.Program module 342
Usually execute the function and/or method in embodiment described in the invention.
Server 312 can also be with one or more external equipments 314 (such as keyboard, sensing equipment, display 324 etc.)
Communication, can also be enabled a user to one or more equipment interact with the server 312 communicate, and/or with make the clothes
Any equipment (such as network interface card, modem etc.) that business device 312 can be communicated with one or more of the other calculating equipment
Communication.This communication can be carried out by input/output (I/O) interface 322.Also, server 312 can also be suitable by network
Orchestration 320 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, such as because of spy
Net) communication.As shown, network adapter 320 is communicated by bus 318 with other modules of server 312.It should be understood that
Although being not shown in Fig. 3, other hardware and/or software module can be used in conjunction with server 312, including but not limited to: micro- generation
Code, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and data backup are deposited
Storage system etc..
Processing unit 316 by the program that is stored in system storage 328 of operation, thereby executing various function application with
And data processing, such as realize automatic photographing method provided by the embodiment of the present invention, this method comprises:
When entering automatic camera mode, the first preview image is obtained;
Identify that first in first preview image enters mirror number;
When described first enter mirror number it is consistent with default number of taking pictures when carry out automatic camera.
Example IV
The embodiment of the present invention four additionally provides a kind of computer readable storage medium, is stored thereon with computer program, should
The automatic photographing method as provided by the embodiment of the present invention is realized when program is executed by processor, this method specifically includes that
When entering automatic camera mode, the first preview image is obtained;
Identify that first in first preview image enters mirror number;
When described first enter mirror number it is consistent with default number of taking pictures when carry out automatic camera.
The computer storage medium of the embodiment of the present invention, can be using any of one or more computer-readable media
Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable
Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or
Device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes: tool
There are electrical connection, the portable computer diskette, hard disk, random access memory (RAM), read-only memory of one or more conducting wires
(ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-
ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage
Medium can be any tangible medium for including or store program, which can be commanded execution system, device or device
Using or it is in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited
In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can
Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for
By the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited
In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof
Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++,
Further include conventional procedural programming language-such as " such as " language or similar programming language.Program code can be with
It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion
Divide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.?
Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or
The domain wide area network (WAN) is connected to subscriber computer, or, it may be connected to outer computer (such as mentioned using Internet service
It is connected for quotient by internet).
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.