Dual camera chases after coke installation and terminal automatically
Technical field
This utility model embodiment relates to photographic head and automatically chases after Jiao, particularly relates to dual camera and automatically chases after coke installation and end
End.
Background technology
Camera is during taking pictures, if there is moving target in target scene, and moving target is at distance camera lens ratio
Place farther out, general very difficult by target shooting clear, need to be realized the shape library of distant object by zoom.
Current intelligent terminal trends towards lightening, generally to be equipped with a telephoto lens and a short-focus lens
The compound zoom mode that mode realizes optical zoom and digital zoom combines.Patent CN104717427A proposes one and is applicable to
The automatic focusing system of length Jiao's scheme, described is obtained object distance according to the range finding of length Jiao's dual camera, and is selected by object distance
Select zoom magnification.It is little that the method there is problems of length Jiao's photographic head ken public territory in actual applications, and to away from
From remote position, range accuracy is difficult to harmonious with ranging region size, it is difficult to ensure actual Zoom effect.
Utility model content
The purpose of this utility model is that provide a kind of automatically chases after coke installation and terminal based on dual camera.
This utility model provides a kind of dual camera automatically to chase after coke installation, including:
Detection module, is used for detecting moving target, and the boundary rectangle frame of marker motion target;
Zoom modules, for calculating the ratio value between described moving target boundary rectangle frame and default rectangle frame threshold value,
Zoom is performed by described ratio value;
Photographic head handover module, is used for reading camera lens skew, according between camera lens skew absolute value and camera lens offset threshold
Magnitude relationship, it may be judged whether need switch photographic head;
Processing module, carries out subsequent treatment for the photographic head selected according to photographic head handover module;
Tracking module, for performance objective tracing program, detects next frame target location, and labelling next frame target is external
Rectangle frame, and transmit to zoom modules process.
Preferably, described detection module uses wide-angle camera to carry out target detection.
Preferably, described detection module selects the middle moving target of scene or selects the maximum motion of imaging area
Target.
Preferably, described photographic head handover module specifically for: read wide-angle camera camera lens skew,
If wide-angle lens skew absolute value is more than wide-angle lens offset threshold, the most do not switch photographic head;
If wide-angle lens skew absolute value is less than or equal to wide-angle lens offset threshold, then switching focal length photographic head, and exports
Focal length end image shows to preview end.
Preferably, described photographic head handover module specifically for: read focal length photographic head camera lens skew
If telephoto lens skew absolute value is more than or equal to telephoto lens offset threshold, then switches wide-angle camera, and export
Wide-angle side image shows to preview end;
If telephoto lens skew absolute value is less than telephoto lens offset threshold, the most do not switch photographic head.
Preferably, described processing module, specifically for: if not switching photographic head, then directly result is transferred to described with
Track module;If switching photographic head, then reuse detection module and zoom modules, complete zoom.
This utility model also provides for a kind of terminal, described automatically chases after coke installation including any of the above-described one.
The beneficial effects of the utility model are, this utility model demarcates moving target by photographic head detection, and realizes certainly
Dynamic zoom switching photographic head, is simultaneously introduced tracking module, target chases after Jiao automatically.Thus realize automatically selecting in scene
Target focusing object, and adapt to multiple target scene;When target range farther out time, can be by target by correct zoom and right
Jiao, makes target clear, and it is constant to keep being sized size.
Accompanying drawing explanation
In order to be illustrated more clearly that this utility model embodiment or technical scheme of the prior art, below will be to embodiment
Or the required accompanying drawing used is briefly described in description of the prior art, it should be apparent that, the accompanying drawing in describing below is
Embodiments more of the present utility model, for those of ordinary skill in the art, in the premise not paying creative work
Under, it is also possible to other accompanying drawing is obtained according to these accompanying drawings.
Fig. 1 is that this utility model dual camera chases after burnt method schematic diagram automatically;
Fig. 2 is that this utility model dual camera chases after burnt embodiment of the method one schematic flow sheet automatically;
Fig. 3 is that this utility model dual camera chases after burnt embodiment of the method two schematic flow sheet automatically;
Fig. 4 is that this utility model dual camera chases after coke installation structural representation automatically.
Reference:
Detection module 201, zoom modules 202, photographic head handover module 203, processing module 204, tracking module 205.
S100~S104;S1021~S1024;S1031~S1032 step.
Detailed description of the invention
For making the purpose of this utility model embodiment, technical scheme and advantage clearer, new below in conjunction with this practicality
Accompanying drawing in type embodiment, is clearly and completely described the technical scheme in this utility model embodiment, it is clear that retouched
The embodiment stated is a part of embodiment of this utility model rather than whole embodiments.Based on the enforcement in this utility model
Example, the every other embodiment that those of ordinary skill in the art are obtained under not making creative work premise, broadly fall into
The scope of this utility model protection.
This utility model dual camera chases after the schematic flow sheet of burnt method automatically as shown in Figure 1, and S100 detects moving target,
And the boundary rectangle frame of marker motion target;S101 calculates between described moving target boundary rectangle frame and default rectangle frame threshold value
Ratio value, by described ratio value perform zoom;S102 reads camera lens skew, offsets threshold according to camera lens skew absolute value with camera lens
Magnitude relationship between value, it may be judged whether need to switch photographic head;The photographic head that S103 selects according to step S102 processes;
S104 performance objective tracing program, detects next frame target location, and labelling next frame target boundary rectangle frame, and repetitive cycling is held
Described step S101 of row.
In the present embodiment, preferably S100 uses wide-angle camera detection moving target, due to the visual field of wide-angle camera
Wider, it is advantageous to from the beginning of wide-angle camera, contribute to preferably obtaining moving target.As for the method obtaining moving target
Can be frame difference method or can utilize multiple image extract moving target time, not by the picture frame sampling interval and picture frame order
Impact.Suspicious movement destination image is obtained by accumulation two-value suspected target image.Number according to selected frame is from suspicious
Movement destination image obtains the target of motion.Skilled person will appreciate that, the method herein illustrated is example, the most right
Protection domain of the present utility model does any restriction.As long as the method that can realize catching acquisition moving target in industry all can be made
Implementation for this step.
S101 is specially calculating target area boundary rectangle, and (w, h) with the proportionate relationship being sized between threshold value (W, H)
K, k=min (W/w, H/h).Ratio value herein is zoom magnification, realizes zoom with this zoom magnification simultaneously.
This utility model starts to distinguish different embodiment difference flow process from S102, will distinguish difference with embodiment form below
Flow process.
Embodiment one:
The most of the present utility model automatically chase after burnt embodiment of the method one schematic flow sheet, preferentially select wide-angle imaging
Head, specifically perform step: S100 select wide-angle camera detection moving target, and marker motion target boundary rectangle frame (w,
h);S101 calculates ratio value k, k=min (W/w, the H/ between described moving target boundary rectangle frame and default rectangle frame threshold value
H), zoom is performed by described ratio value;S102 read wide-angle camera camera lens skew, according to wide-angle lens skew absolute value with
Magnitude relationship between wide-angle lens offset threshold, it may be judged whether need to switch photographic head.If S102 specifically comprises S1021 Radix Rumicis
Camera lens skew absolute value, more than wide-angle lens offset threshold, does not the most switch photographic head;If or the skew of S1022 described wide-angle lens is absolutely
To value less than or equal to wide-angle lens offset threshold, then switching focal length photographic head, and export focal length end image and show to preview end.Will
The judged result of S102 is transferred to S103 process, further, if S103 includes that S1031 does not switch photographic head, the most directly holds
Row S104 performance objective tracing program, detects next frame target location, and repetitive cycling performs described step S100.If or S1032
Switching photographic head, then after re-executing S100 and S101, it is achieved zoom.Described S1032 still continues executing with after realizing zoom
S104 tracing program, detects next frame target location, and repetitive cycling performs described step S100.
Embodiment two:
This utility model chases after burnt embodiment of the method two schematic flow sheet automatically as shown in Figure 3, first by focal length photographic head,
Due in artificial shooting process can unconsciously by photographic head just to photographic subjects, so described S100 prioritizing selection scene in
Between moving target or select the maximum target of imaging area.Concretely comprise the following steps: S100 selects the detection motion of focal length photographic head
Target, and marker motion target boundary rectangle frame (w, h);S101 calculates described moving target boundary rectangle frame and default rectangle
Ratio value k, k=min (W/w, H/h) between frame threshold value, performs zoom by described ratio value;S102 reads focal length photographic head
Camera lens offsets, according to the magnitude relationship between telephoto lens skew absolute value and telephoto lens offset threshold, it may be judged whether need
Switching photographic head.Further, if S102 also includes S1023 telephoto lens, skew absolute value offsets threshold more than or equal to telephoto lens
Value, then switch wide-angle camera, and export wide-angle side image and show to preview end;If or the skew of S1024 described telephoto lens is absolutely
To value less than telephoto lens offset threshold, the most do not switch photographic head.Subsequent processing steps and tracking step are identical with embodiment one,
Just repeat no more at this.
Further, Jiao's flow process that automatically chases after of the present utility model is a flow process moved in circles, no matter first selecting wide
Angle photographic head or focal length photographic head, will experience detection and demarcate, zoom, and photographic head switches and processes the programs such as tracking, if
Photographic head switch step judges need not switching, then process step and directly judge that entering tracing program realizes chasing after burnt function, follows the trail of
The image of target next frame, then re-executes the step that first step detection is demarcated.If it is determined that needing to switch photographic head, then
After switching photographic head, in addition it is also necessary to again detect spotting, but detection spotting here, we are referred to previous
Target is found in the most proven region of photographic head quickly.So real-time tracking detects Real time changing focus switching photographic head in real time
Flow process, could realize automatically chasing after burnt function.It addition, wide-angle lens offset threshold described in this utility model and described telephoto lens
The target range linking or overlapping that offset threshold is corresponding.For example, if target range corresponding to wide-angle lens offset threshold
Be 1~5, then the target range that telephoto lens offset threshold is corresponding is 4~10, and this kind of situation is overlapping.If wide-angle lens offsets
Target range corresponding to threshold value is 1~5, and target range corresponding to telephoto lens offset threshold is 5~10, and this kind of situation is rank
Connect.It will be understood by those skilled in the art that offset threshold herein is merely illustrative, not as to limit of the present utility model
System.
This utility model also provides for a kind of dual camera and automatically chases after the device of Jiao, detection module 201, is used for detecting motion mesh
Mark, and the boundary rectangle frame of marker motion target;Zoom modules 202, is used for calculating described moving target boundary rectangle frame with pre-
If the ratio value between rectangle frame threshold value, perform zoom by described ratio value;Photographic head handover module 203, is used for reading camera lens
Skew, according to the magnitude relationship between camera lens skew absolute value and camera lens offset threshold, it may be judged whether need to switch photographic head;Place
Reason module 204, carries out subsequent treatment for the photographic head selected according to photographic head handover module;Tracking module 205, is used for performing
Target following program, detects next frame target location, and labelling next frame target boundary rectangle frame, and transmits to zoom modules
Reason.Described detection module 201, zoom modules 202, photographic head handover module 203, processing module 204, tracking module more than 205
Connected by signal transmission between module.Wherein, described detection module selects the middle moving target of scene or is chosen to
The long-pending maximum target of image planes.In a preference of the present embodiment, described photographic head handover module 203 specifically for: read
The camera lens skew of wide-angle camera or the camera lens skew of focal length photographic head, if the most described photographic head handover module carries out judging extensively
Angle mirror head skew absolute value is less than telephoto lens offset threshold more than wide-angle lens offset threshold or telephoto lens skew absolute value,
The most do not switch photographic head;If wide-angle lens skew absolute value is absolute less than or equal to wide-angle lens offset threshold or telephoto lens skew
Value more than or equal to telephoto lens offset threshold, then switches photographic head.Then the signal whether switching photographic head is exported to described
Processing module 204, described processing module 204 carries out decision-making again, if not switching photographic head, then directly result is transferred to described with
Track module 205;If switching photographic head, then reuse detection module 201 and zoom modules 202, complete zoom.
This utility model also protects a kind of terminal unit, has dual camera, and preferably one wide-angle camera and a focal length are taken the photograph
As head, obtain moving target by wide-angle camera or focal length photographic head, then demarcate square by the detection module of terminal inner
Shape housing, zoom modules carries out calculating zoom magnification and realizing zoom.Simultaneously photographic head handover module for different situations to taking the photograph
As head switches over, carried out decision-making treatment by processing module according to switching result subsequently, finally by tracking module carry out chasing after burnt with
Track.Concrete methods of realizing and device have illustrated, so repeating the most one by one.
This utility model demarcates moving target by photographic head detection, and realizes autozoom switching photographic head, adds simultaneously
Enter tracking module, target is chased after automatically Jiao.Thus realize the target focusing object automatically selecting in scene, and adapt to many
Target scene;When target range farther out time, target can be made clear by target by correct zoom and focusing, and keep setting
Sizing size is constant.
Last it is noted that various embodiments above is only in order to illustrate the technical solution of the utility model, rather than it is limited
System;Although being described in detail this utility model with reference to foregoing embodiments, those of ordinary skill in the art should
Understand: the technical scheme described in foregoing embodiments still can be modified by it, or to the most some or all of
Technical characteristic carries out equivalent;And these amendments or replacement, do not make the essence of appropriate technical solution depart from this practicality new
The scope of type each embodiment technical scheme.