A kind of electronic equipment that can customize content of taking pictures and from motion tracking photographic method
Technical field
The invention belongs to multimedia communication technology field, it is related to a kind of electronic equipment, can customize more particularly to one kind
The electronic equipment for content of taking pictures and from motion tracking photographic method.
Background technology
Contemporary communication science and technology is more and more flourishing, and electronic equipment is also increasingly advanced, especially with the hair of the communication technology
Open up, the mobile terminal in electronic equipment, be based particularly on the 3rd mobile communication technology(3G)And long evolving system(LTE)Intelligence
Can hardware configuration is stronger and stronger in terminal, application of function is more and more various to become the required of nowadays people's life and work
Product.
Also, with the popularization of intelligent terminal, seek a kind of more natural simpler man-machine interaction mode already into
For communication scientific research and the emphasis problem of industrial field.The developing history of human-computer interaction technology is made a general survey of, gradually from mouse, key
The plain modes such as disk, remote control develop into the contactless mode of operation such as vision, voice, posture, and inspection operation technology
As most important of which means, you can to obtain picture by the camera of intelligent terminal, based on image intelligent analytical technology
Judge action and the purpose of operator, and then control electronics.But people's system intelligent terminal gives the Working Life of oneself
More facilities are brought, allows work to become simpler, allows life to become more rich colorful, the camera especially on intelligent terminal,
People's system it take pictures can be more conveniently and quickly.
But there is presently no a kind of intelligent terminal can realize User Defined image camera, according to custom images certainly
Motion tracking is taken pictures, and most of intelligent terminal is customized to be simply configured before taking pictures to the attribute of photograph image, for example, according to
Piece to be stored in where, the size of photo, the effect of photo, what can not be set according to user before taking pictures need to be with
The content that track is taken pictures taken pictures from motion tracking, therefore such intelligent terminal flexibility and degree of intelligence are not high enough.
Thus, a kind of electronic equipment that can customize content of taking pictures how is provided and from motion tracking photographic method, to solve
The content that electronic equipment of the prior art can not take pictures according to the tracking of need that user sets before taking pictures carry out automatically with
Track is taken pictures, therefore causes not high enough many disadvantages of flexibility and degree of intelligence, real urgently to be resolved hurrily as practitioner in the art
Technical problem.
The content of the invention
In view of the above the shortcomings that prior art, content of taking pictures is can customize it is an object of the invention to provide a kind of
Electronic equipment and from motion tracking photographic method, can not take pictures for solving intelligent electronic device of the prior art according to user
The content taken pictures of need tracking set before taken pictures from motion tracking, therefore causes flexibility and degree of intelligence is not high enough asks
Topic.
In order to achieve the above objects and other related objects, a method of the invention provides a kind of electricity that can customize content of taking pictures
Sub- equipment, including camera, in addition to:UI modules, for providing the user picture editting interface or image under exposal model
Selection interface is to obtain the object image information that User Defined is taken pictures;First identification module, for extracting the subject image
Characteristics of image in information, according to described image feature calculation image feature value corresponding with described image feature, while output is searched
Suo Zhiling is to drive camera search actual object;Second identification module, the reality searched for extracting the camera
The characteristics of image of border object, according to the box counting algorithm of actual object image corresponding with the characteristics of image of actual object
Characteristic value;Whether detection module, the image feature value for the object image information taken pictures for judging User Defined are taken the photograph with described
As the image feature value matching for the actual object that head searches, if so, then exporting photographing instruction;If it is not, then continue search for reality
Object.
Preferably, characteristics of image refers to that object lines, object angle, different line colors are bright in the object image information
Dark degree.
Preferably, first identification module calculates of object lines in the object image information that User Defined is taken pictures
The subject image letter that the number of object angle and User Defined are taken pictures in the object image information that number, User Defined are taken pictures
Object angular dimension in breath;Second identification module calculates the object angle for the actual object that the camera searches
The thing for the actual object that the object angle number for the actual object that several, described camera searches and the camera search
Body angular dimension;The detection module is preset with the judgment value of boolean types, and the judgment value includes wrong and correct.
Preferably, the detection module is used to judge of object lines in the object image information that User Defined is taken pictures
Whether number is identical with the object lines number for the actual object that the camera searches, if identical, output judgment value is just
Really, continue to judge whether the number of object angle in the object image information that User Defined is taken pictures searches with the camera
Actual object object angle number it is identical;If differing, output judgment value is mistake, is continued search for.
Preferably, judge object angle in the object image information that User Defined is taken pictures number whether with the shooting
The object angle number for the actual object that head searches is identical, if identical, output judgment value is correct, continues to judge user certainly
Define in the object image information taken pictures object angular dimension whether the object angle of the actual object searched with the camera
It is identical to spend size;If differing, output judgment value is mistake, is continued search for.
Preferably, the detection module is additionally operable to judge in the object image information that User Defined is taken pictures that object angle is big
Small whether the object angular dimension of the actual object searched with the camera meets, if meeting, output judgment value is just
True and photographing instruction;If not meeting, continue search for.
Another aspect of the present invention also provides one kind from motion tracking photographic method, applied to the electronic equipment including camera
In, including:Obtain the object image information that User Defined is taken pictures;Characteristics of image in the object image information is extracted, according to
Described image feature calculation image feature value corresponding with described image feature, while export search instruction and search for actual thing in real time
Body;Extract the characteristics of image for the actual object that the camera searches, according to the box counting algorithm of the actual object with
Image feature value corresponding to the characteristics of image of actual object;Judge the characteristics of image for the object image information that User Defined is taken pictures
Whether the image feature value of the actual object searched with the camera matches value, if so, then exporting photographing instruction;If it is not,
Then continue search for actual object.
Preferably, judge whether the image feature value for the object image information that User Defined is taken pictures is searched with the camera
Rope to actual object image feature value matching the step of the object image information taken pictures including judging User Defined in thing
Whether the number of body lines is identical with the object lines number for the actual object that the camera searches, if identical, exports
Judgment value is correct, continues to judge whether the number of object angle in the object image information that User Defined is taken pictures is taken the photograph with described
The object angle number of the actual object searched as head is identical;If differing, output judgment value is mistake, continues search for reality
Border object.
Preferably, judge object angle in the object image information that User Defined is taken pictures number whether with the shooting
The object angle number for the actual object that head searches is identical, if identical, output judgment value is correct, continues to judge user certainly
Define in the object image information taken pictures object angular dimension whether the object angle of the actual object searched with the camera
It is identical to spend size;If differing, output judgment value is mistake, continues search for actual object.
Preferably, judge in the object image information that User Defined is taken pictures object angular dimension whether with the camera
The object angular dimension of the actual object searched meets, if meeting, output judgment value is correct and photographing instruction;If it is not inconsistent
Close, then continue search for actual object.
As described above, the electronic equipment provided by the present invention that can customize content of taking pictures and from motion tracking photographic method,
Have the advantages that:
1st, the present invention, which solves existing intelligent electronic device, to track bat according to the need that user sets before taking pictures
According to content take pictures from motion tracking, therefore the problem of cause flexibility and not high enough degree of intelligence;
2nd, electronic equipment of the present invention can will track the content taken pictures with self-defined, reduce it is manually operated, using more
Add conveniently;And the present invention improves utilization rate, flexibility and the degree of intelligence of intelligent electronic device, makes its more life-stylize.
Brief description of the drawings
Fig. 1 is shown as the electronic equipment theory structure schematic diagram that the present invention can customize content of taking pictures.
Fig. 2 is shown as the present invention from motion tracking photographic method schematic flow sheet.
Fig. 3 is shown as the figure that the present invention judges the object image information that User Defined is taken pictures from motion tracking photographic method
As characteristic value whether the idiographic flow schematic diagram of the image feature value matching step of the actual object searched with the camera.
Component label instructions
1 can customize content of taking pictures
Electronic equipment
11 cameras
12 UI modules
13 first identification modules
14 second identification modules
15 detection modules
S1~S6 steps
Embodiment
Illustrate embodiments of the present invention below by way of specific instantiation, those skilled in the art can be by this specification
Disclosed content understands other advantages and effect of the present invention easily.The present invention can also pass through specific realities different in addition
The mode of applying is embodied or practiced, the various details in this specification can also be based on different viewpoints with application, without departing from
Various modifications or alterations are carried out under the spirit of the present invention.It should be noted that in the case where not conflicting, following examples and implementation
Feature in example can be mutually combined.
It should be noted that the diagram provided in following examples only illustrates the basic structure of the present invention in a schematic way
Think, only show the component relevant with the present invention in schema then rather than according to component count, shape and the size during actual implement
Draw, kenel, quantity and the ratio of each component can be a kind of random change during its actual implementation, and its assembly layout kenel
It is likely more complexity.
Embodiment one
The present embodiment provides a kind of electronic equipment 1 that can customize content of taking pictures, and the electronic equipment includes camera 11,
Referring to Fig. 1, being shown as can customize the theory structure of the electronic equipment for content of taking pictures, the electronic equipment also includes UI
(User Interface, user interface)Module 12, the first identification module 13, the second identification module 14 and detection module 15.
UI modules 12, for providing the user picture editting interface or image selection interface under exposal model to obtain use
The self-defined object image information taken pictures in family;The UI modules 12 can be compiled with user's direct interaction, user in its image provided
Image is edited on editing interface, i.e., user can select to draw the appearance for wanting track up object, for example, the thickness of paintbrush, paintbrush
Color etc..Or user selects to include object needed for user in the image selection interface that the UI modules 12 are provided
Picture, the object to be identified is cut out, and preserved.
The first identification module 13 being connected respectively with the camera 11 and UI modules 12 is used to extract User Defined bat
According to object image information in characteristics of image, according to described image feature calculation characteristics of image corresponding with described image feature
Value, while search instruction is exported to drive the camera 11 to search for actual object in real time;Extract in the object image information
Characteristics of image includes extraction object lines, extraction object angle, extraction object difference line color bright-dark degree etc..Described
Object lines number in the object image information that one identification module 13 acquisition User Defined is taken pictures, object lines angle number,
Object lines angular dimension etc..First identification module 13 is additionally operable to image feature value corresponding to described image feature with number
Group form preserves.In the present embodiment,
The second identification module 14 being connected with first identification module 13 is used to extract what the camera 11 searched
The characteristics of image of actual object, according to the box counting algorithm of actual object figure corresponding with the characteristics of image of actual object
As characteristic value;Extracting the characteristics of image for the actual object that the camera 11 searches includes the object line of extraction actual object
Bar, the object angle for extracting actual object, extract different line color bright-dark degrees of actual object etc..Second identification
Module 14 obtains the number of the object lines for the actual object that the camera 11 searches, object lines angle number, object
Lines angular dimension etc..Second identification module 13 is additionally operable to image corresponding with the characteristics of image of the actual object is special
Value indicative is preserved with array form.Mainly extract characteristics of image using recognition principle in the present embodiment.
It is used to judge User Defined with the detection module 15 that the identification module 14 of camera 11 and second is connected respectively
The image feature value for the object image information taken pictures whether the image feature value of the actual object searched with the camera
Match somebody with somebody, if so, then exporting photographing instruction with the camera automatic camera built in drive electronics 1;If it is not, described first is then made to know
The subject image that other module 12 continues search for take pictures with User Defined believes the actual object that middle characteristics of image meets.At this
In embodiment, the judgment value of boolean types is prestored in the detection module 15, the judgment value of the boolean types is included just
True and mistake.Judge whether the image feature value of the object image information that User Defined is taken pictures searches with the camera
The process of the image feature value matching of actual object includes:First determine whether object in the object image information that User Defined is taken pictures
Whether the number of lines is identical with the object lines number for the actual object that the camera searches, if identical, output is pre-
Have in the detection module 15 that judgment value is correct, continue to judge object angle in the object image information that User Defined is taken pictures
Whether the number of degree is identical with the object angle number for the actual object that the camera searches;If differing, output is pre-
Have in the detection module 15 that judgment value is mistake, make first identification module 12 continue what can be taken pictures with User Defined
Subject image believes the actual object that middle characteristics of image meets;Next, it is determined that in the object image information that User Defined is taken pictures
Whether the number of object angle is identical with the object angle number for the actual object that the camera searches, defeated if identical
It is correct to go out to be pre-stored in judgment value in the detection module 15, continues to judge thing in the object image information that User Defined is taken pictures
Whether the object angular dimension of the actual object searched with the camera meets body angular dimension;If differing, export
It is mistake to be pre-stored in judgment value in the detection module 15, and making first identification module 12 continue search for can be with User Defined
The subject image taken pictures believes the actual object that middle characteristics of image meets;Finally, the subject image that User Defined is taken pictures is judged
Whether the object angular dimension of the actual object searched with the camera meets object angular dimension in information, if meeting,
Judgment value is then exported as correctly with output photographing instruction with the camera automatic camera built in drive electronics 1;If not meeting,
The subject image for then making first identification module 12 continue search for take pictures with User Defined believes that middle characteristics of image meets
Actual object.
Embodiment two
The present embodiment provides one kind from motion tracking photographic method, applied in the electronic equipment including camera, refers to
Fig. 2, it is shown as from motion tracking photographic method flow, it is described to include from motion tracking photographic method:
S1, obtain the object image information that User Defined is taken pictures;Under exposal model, user at picture editting interface or
The object image information that User Defined is taken pictures is obtained under image selection interface;User is directly handed over the electronic equipment
Mutually, image is edited on the picture editting interface that consumer electronic devices provide, i.e., user, which can select to draw, wants track up object
Appearance, for example, the thickness of paintbrush, color of paintbrush etc..Or image selection circle that user is provided in the electronic equipment
Selection includes the picture of object needed for user in face, is cut out the object to be identified, and preserved what User Defined was taken pictures
Object image information.
S2, characteristics of image in the object image information is extracted, according to described image feature calculation and described image feature
Corresponding image feature value, while export search instruction and search for actual object in real time.Extract image in the object image information
Feature includes extraction object lines, extraction object angle, extraction object difference line color bright-dark degree etc..In this step
Also obtain object lines number in the object image information that User Defined is taken pictures, object lines angle number, object lines angle
Spend size etc..The step S2 also includes preserving image feature value corresponding to described image feature with array form.
S3, actual object is searched in real time.
S4, the characteristics of image for the actual object that the camera searches is extracted, it is special according to the image of the actual object
Sign calculates image feature value corresponding with the characteristics of image of actual object.Extract the figure for the actual object that the camera searches
As the object angle of object lines of the feature including extraction actual object, extraction actual object, the not collinear of actual object is extracted
Bar color bright-dark degree etc..Of the object lines for the actual object that the camera searches also is obtained in this step
Number, object lines angle number, object lines angular dimension etc..The step S4 is also included the image with the actual object
Image feature value is preserved with array form corresponding to feature.
S5, judges whether the image feature value for the object image information that User Defined is taken pictures searches with the camera
Actual object image feature value matching, if so, then export photographing instruction, perform step S6;If it is not, then in return to step S2
Continue executing with search actual object.Referring to Fig. 3, it is shown as judging that the image for the object image information that User Defined is taken pictures is special
Whether the image feature value of the actual object searched with the camera matches idiographic flow to value indicative, and the step S5 is specifically wrapped
Include:
S51, judge object lines in the object image information that User Defined is taken pictures number whether with the camera
The object lines number of the actual object searched is identical, if identical, output judgment value is correct, performs step S52;If not phase
Together, it is mistake to export judgment value, and return to step S2 continues search for actual object.
S52, judge object angle in the object image information that User Defined is taken pictures number whether with the camera
The object angle number of the actual object searched is identical, if identical, output judgment value is correct, performs step S53;If no
Identical, then it is mistake to export judgment value, and return to step S2 continues search for actual object.
S53, continue to judge in the object image information that User Defined is taken pictures object angular dimension whether with the shooting
The object angular dimension for the actual object that head searches meets;If meeting, output judgment value is correct and output photographing instruction,
Perform the camera automatic camera built in step S6 drive electronics;If not meeting, return to step S2 continues search for reality
Object.
S6, the camera automatic camera built in drive electronics.
The electronic equipment of the present invention that can customize content of taking pictures and solves existing intelligence from motion tracking photographic method
Energy electronic equipment according to the content that the need tracking that user sets before taking pictures is taken pictures can not take pictures from motion tracking, therefore
The problem of causing flexibility and not high enough degree of intelligence, the content taken pictures can be tracked with self-defined, reduce manually operated, use
It is more convenient;And the present invention improves utilization rate, flexibility and the degree of intelligence of intelligent electronic device, makes its more life-stylize.
In summary, the present invention effectively overcomes various shortcoming of the prior art and has high industrial utilization.
The above-described embodiments merely illustrate the principles and effects of the present invention, not for the limitation present invention.It is any ripe
Know the personage of this technology all can carry out modifications and changes under the spirit and scope without prejudice to the present invention to above-described embodiment.Cause
This, those of ordinary skill in the art is complete without departing from disclosed spirit and institute under technological thought such as
Into all equivalent modifications or change, should by the present invention claim be covered.