CN110086991A - Image pickup method, device, portable terminal and the storage medium of terminal detection image - Google Patents
Image pickup method, device, portable terminal and the storage medium of terminal detection image Download PDFInfo
- Publication number
- CN110086991A CN110086991A CN201910350883.1A CN201910350883A CN110086991A CN 110086991 A CN110086991 A CN 110086991A CN 201910350883 A CN201910350883 A CN 201910350883A CN 110086991 A CN110086991 A CN 110086991A
- Authority
- CN
- China
- Prior art keywords
- terminal
- detected
- image
- camera
- tilt angle
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/24—Aligning, centring, orientation detection or correction of the image
- G06V10/243—Aligning, centring, orientation detection or correction of the image by compensating for image skew or non-uniform image deformations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/44—Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/74—Image or video pattern matching; Proximity measures in feature spaces
- G06V10/75—Organisation of the matching processes, e.g. simultaneous or sequential comparisons of image or video features; Coarse-fine approaches, e.g. multi-scale approaches; using context analysis; Selection of dictionaries
- G06V10/752—Contour matching
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/61—Control of cameras or camera modules based on recognised objects
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Evolutionary Computation (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Software Systems (AREA)
- Databases & Information Systems (AREA)
- Computing Systems (AREA)
- Artificial Intelligence (AREA)
- Studio Devices (AREA)
Abstract
The invention discloses a kind of image pickup methods of terminal detection image, comprising: starts the camera of camera terminal, and acquisition includes the shooting picture of terminal image to be detected;The terminal to be detected is identified in the shooting picture;Tilt angle of the terminal to be detected relative to the camera terminal is detected, and judges the tilt angle whether in the range of setting, if the tilt angle in the range of setting, controls the camera shooting image and/or video.The present invention also provides device, portable terminal and the storage mediums of a kind of terminal detection image.
Description
Technical field
The present invention relates to terminal detection technique field, more specifically to a kind of terminal detection image image pickup method,
Device, portable terminal and storage medium.
Background technique
With the development of electronic technology and mobile Internet, various electronic products are gradually popularized in life, and electronics produces
Product have become people's life or the indispensable part that works.In addition, with the improvement of people's environmental awareness, mesh
The electronic product that preceding user also gradually tends to be not suitable for is recycled or is sold on second-hand market.
During being recycled to terminal, it usually needs detected to final element, to determine the value of terminal.
Terminal to be recycled is voluntarily shot by user currently, having a kind of detection method of terminal and being, and will include that terminal to be recycled is specific
The photo of the external appearance characteristic at position is sent to testing agency and is detected.
However, the photo as captured by certain customers may be not meet testing requirements, testing agency according to
Photo captured by this certain customers, which detects, can not obtain accurate detection result.
Summary of the invention
In view of this, the present invention provides image pickup method, device, portable terminal and the storages of a kind of terminal detection image
Medium in advance can detect shooting picture before taking pictures, the tilt angle between terminal to be detected and camera terminal
When within the set range, just controls camera and take pictures.
In a first aspect, a kind of image pickup method of terminal detection image provided by the invention, comprising:
Start the camera of camera terminal, and acquisition includes the shooting picture of terminal image to be detected;
The terminal to be detected is identified in the shooting picture;
Tilt angle of the terminal to be detected relative to the camera terminal is detected, and whether judges the tilt angle
In the range of setting, if the tilt angle in the range of setting, controls the camera shooting image and/or view
Frequently.
Optionally, the detection terminal to be detected is specifically included relative to the tilt angle of the camera terminal:
Edge detection is carried out to terminal to be detected in the shooting picture, and extracts the profile of the terminal to be detected;
Inclination angle of the terminal to be detected according to the contour detecting of the terminal to be detected relative to the camera terminal
Degree.
Optionally, further includes:
Judge whether the profile of the terminal to be detected matches with preset contour mould, if matching, judgement it is described to
Detect terminal relative to the camera terminal tilt angle in the range of setting.
Optionally, further includes:
Judge the angle in the profile of the terminal to be detected between arbitrary neighborhood both sides whether in default angular range
It is interior, if the angle judges inclination angle of the terminal to be detected relative to the camera terminal in default angular range
Degree is in the range of setting.
Optionally, the detection terminal to be detected is specifically included relative to the tilt angle of the camera terminal:
Edge detection is carried out to terminal to be detected in the shooting picture, and extracts intramarginal terminal image to be detected;
The terminal image to be detected is divided into the first image and the second image by predetermined manner, judges first figure
Whether picture and second image can be overlapped, if the first image and second image can be overlapped, described in judgement
Terminal to be detected relative to the camera terminal tilt angle in the range of setting.
Optionally, further includes:
If the tilt angle outside the range of setting, generates prompt icon and/or text information and/or signal language
Sound, to indicate the adjusting direction of the camera.
Optionally, further includes:
If the tilt angle outside the range of setting, is refused to control the camera shooting image and/or video;
The refusal controls the camera shooting image and/or video specifically includes: rejection shooting instruction is refused
Automatic shooting absolutely.
Second aspect, a kind of filming apparatus of terminal detection image provided by the invention, comprising:
Starting module, for starting the camera of camera terminal, and acquisition includes the shooting picture of terminal image to be detected
Face;
Identification module, for identifying the terminal to be detected in the shooting picture;
Judgment module for detecting tilt angle of the terminal to be detected relative to the camera terminal, and judges institute
Tilt angle is stated whether in the range of setting, if the tilt angle in the range of setting, controls the camera
Shoot image and/or video.
The third aspect, a kind of portable terminal provided by the invention, including processor and can for storing the processor
The memory executed instruction;Wherein, the processor makes the portable terminal for calling the instruction stored in the memory
End executes either as described in relation to the first aspect method.
Fourth aspect, a kind of computer readable storage medium provided by the invention, in the computer readable storage medium
It is stored with instruction, described instruction is executed by the portable terminal, realizes either as described in relation to the first aspect method.
The invention has the following advantages:
The present invention provides image pickup method, device, portable terminal and the storage mediums of a kind of terminal detection image, can
Shooting picture is detected in advance before taking pictures, the tilt angle between terminal to be detected and camera terminal is in setting range
When interior, just control camera and take pictures.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
Fig. 1 is a kind of flow diagram of the image pickup method example one of terminal detection image provided in an embodiment of the present invention;
Fig. 2 be camera terminal relative to terminal to be detected the inclined schematic diagram on XY space plane;
Fig. 3 be camera terminal relative to terminal to be detected the inclined schematic diagram on XZ space plane;
Fig. 4 be camera terminal relative to terminal to be detected the inclined schematic diagram on YZ space plane;
Fig. 5 is a kind of flow diagram of the image pickup method example two of terminal detection image provided in an embodiment of the present invention;
Fig. 6 is that camera terminal extracts to obtain the signal of profile relative to terminal to be detected when tilting on XY space plane
Figure;
Fig. 7 is that camera terminal extracts to obtain the signal of profile relative to terminal to be detected when tilting on XZ space plane
Figure;
Fig. 8 is that camera terminal extracts to obtain the signal of profile relative to terminal to be detected when tilting on YZ space plane
Figure;
Fig. 9 is a kind of flow diagram of the image pickup method example three of terminal detection image provided in an embodiment of the present invention;
Figure 10 is a kind of flow diagram of the image pickup method example four of terminal detection image provided in an embodiment of the present invention;
Figure 11 is a kind of flow diagram of the image pickup method example five of terminal detection image provided in an embodiment of the present invention;
The schematic diagram of tilt angle is not present in Figure 12 between terminal to be detected and camera terminal;
Figure 13 is a kind of structural schematic diagram of the filming apparatus of terminal detection image provided in an embodiment of the present invention.
Specific embodiment
For a clearer understanding of the technical characteristics, objects and effects of the present invention, now control attached drawing is described in detail
A specific embodiment of the invention.
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific
The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, in case unnecessary details interferes description of the invention.
The terms such as " first " of the embodiment of the present invention, " second ", only difference the relevant technologies feature, do not indicate successively suitable
Sequence.
Through present inventor the study found that during being recycled to terminal, it usually needs to final element into
Row detection, to determine the value of terminal.Currently, having a kind of detection method of terminal is that terminal to be recycled is voluntarily shot by user,
It and will include that the photo of external appearance characteristic of terminal privileged site to be recycled is sent to testing agency and detects.
However, since different users is when taking pictures, due to caused by personal habits or shooting environmental, camera terminal with it is to be checked
The shooting angle surveyed between terminal is often also different, and certain customers are when shooting, if camera terminal and end to be detected
Shooting angle between end is larger (more tilting i.e. between camera terminal and terminal to be detected), and captured obtained photo is often
Be it is underproof, when testing agency's photo according to captured by this certain customers detects, it is difficult to obtain accurate detection knot
Fruit has often led to user and has needed to take pictures again, wasted the time of user and affect the experience of user.
In view of this, the embodiment of the invention provides image pickup method, device, the portable terminals of a kind of terminal detection image
And storage medium, shooting picture can be detected in advance before taking pictures, inclining between terminal to be detected and camera terminal
Rake angle within the set range when, just control camera take pictures.
The image pickup method of terminal detection image provided in an embodiment of the present invention is applied to portable terminal, wherein it is described just
The formula terminal of taking includes but is not limited to the electronic equipments such as mobile phone, tablet computer, notebook, portable electronic device (PDA).It is described just
The formula terminal of taking includes that can shoot and store image and/or video.The portable terminal includes communication component, specifically
Communication component includes wired communication component and/or wireless communication components.Wherein wire communication component includes but is not limited to that metal is led
The component of the tangible medias such as line, optical fiber, coaxial cable, cable, telephone wire transmission information;Wireless communication be using wireless signal into
The communication mode of row space propagation, including but is not limited to is 3G (third generation communication), 4G (forth generation communication), (the 5th generation is logical by 5G
Letter) network, WiFi network (WirelessFidelity, the WLAN based on IEEE802.11b standard), Bluetooth
Communication modes such as (bluetooths).
As shown in FIG. 1, FIG. 1 is a kind of streams of the image pickup method example one of terminal detection image provided in an embodiment of the present invention
Journey schematic diagram.
In a kind of exemplary arrangement, a kind of image pickup method of terminal detection image provided in an embodiment of the present invention, comprising:
S101, the camera for starting camera terminal, and acquisition includes the shooting picture of terminal image to be detected;
Wherein, the camera terminal camera is the camera of portable terminal, which is that user is used to clap
Take the photograph terminal to be detected.
A kind of illustrative embodiment is, terminal to be detected described in the embodiment of the present invention is electronic product, the electricity
Sub- product includes but is not limited to mobile phone, smart phone, portable electronic device, tablet computer, MP4, notebook, super
Electronic equipments such as sheet, personal digital assistant (PDA) etc..
It should be noted that it is described include to photo terminal image shooting picture refer to camera terminal camera start
The image frame captured afterwards, is not the photo having been taken, which is to be followed by camera terminal camera shooting
Head is mobile and changes.
S102, the terminal to be detected is identified in the shooting picture;
A kind of illustrative scheme (is carried out for example, by using neural network by modes such as image recognition or images match
Image recognition), identify in shooting picture to photo terminal.Specifically, one can be pre-established for image recognition
Neural network model, inputs a large amount of terminal photo then to be trained to the neural network model, finally by by the bat
It takes the photograph picture to be input in trained neural network, the identification of terminal to be detected is realized by neural network.
The tilt angle of S103, the detection terminal to be detected relative to the camera terminal, and judge the inclination angle
Whether degree is in the range of setting, if the tilt angle in the range of setting, controls the camera shooting image
And/or video.
It is understood that passing through figure by testing agency since the photo that user takes pictures is available to testing agency
The modes such as picture identification or manual identified detect the terminal to be detected in photo, to identify terminal to be detected with the presence or absence of broken
Screen, the defects of scratch, colliding with, being recessed, finally obtain the status information for assessing terminal value to be detected.Therefore, for standard
Terminal to be detected really is recognized with the presence or absence of there is the defect that will affect terminal value to be detected, needs to guarantee to include to be detected
The photo of terminal meets certain requirements.For example, being treated in a manner of image recognition in testing agency artificial intelligence
When detection terminal is detected straight and evenly, it usually needs the terminal to be detected in photo occupy in photo, and its terminal to be detected
The corresponding focal length in upper each position is substantially coincident, i.e., in terminal to be detected between each position and camera terminal camera away from
From substantially coincident, otherwise, testing agency will be difficult to detect the defect in terminal to be detected.
As shown in Figures 2 to 4, Fig. 2 is camera terminal inclined signal on XY space plane relative to terminal to be detected
Figure;Fig. 3 be camera terminal relative to terminal to be detected the inclined schematic diagram on XZ space plane;Fig. 4 is that camera terminal is opposite
In terminal to be detected on YZ space plane inclined schematic diagram;It is understood that if establishing the space XZY on solid space
Reference axis, then on three XY space plane, XZ space plane and YZ space plane space planes, camera terminal with it is to be checked
Terminal is surveyed to be possible to generate relative tilt angle on a space plane wherein.As shown in Figure 2, camera terminal relative to
Detection terminal has first tilt angle on XY space plane, due to the influence of the first tilt angle, terminal phase to be detected
For the central axes of shooting picture be it is inclined, be unfavorable for subsequent carrying out defects detection to terminal to be detected;For another example in Fig. 3
Shown, camera terminal has second tilt angle relative to terminal to be detected on XZ space plane, due to the second inclination angle
The influence of degree, the bottom of terminal to be detected be at a distance from the top of terminal to be detected to camera terminal camera it is inconsistent,
And the distance difference of the two is larger, so, is easy to cause in terminal to be detected apart from camera terminal camera farther away one
Defect on end (bottom or top) is difficult to be detected;Again as shown in Figure 4, camera terminal exists relative to terminal to be detected
Have a third tilt angle on YZ space plane, due to the influence of third tilt angle, a side of terminal to be detected with
The distance of another side to the camera terminal camera of terminal to be detected is inconsistent, and the distance difference of the two is larger,
So, be easy to cause the defect in terminal to be detected apart from the farther away side edges of camera terminal camera be difficult to by
It detected.
It is understood that in the actual shooting process of user, however, it is difficult to realize camera terminal and end to be detected
Both ends are the state that is substantially parallel, that is, in the shooting picture shot, still can between camera terminal and terminal to be detected
There are certain tilt angles, but in certain range of tilt angles (when i.e. tilt angle is lesser), between the two
Tilt angle not will lead to the obtained photo of shooting and be difficult to be detected, at this point, these photos be can be received, change sentence
It talks about, there are certain tilt angle is also that can be accepted between camera terminal and terminal to be detected.It therefore, can be pre-
First setting a slant range can sentence when the inclination angle between camera terminal and terminal to be detected is in the slant range
The fixed shooting picture is qualified.Specifically, which can be according to the detection machine of terminal defect to be detected for identification
Depending on the recognition capability of structure, it is not specifically limited herein.
It is worth noting that, in embodiments of the present invention, during user starts terminal camera and shoots, by
Camera terminal automatically detects shooting picture captured by camera, when shooting picture meets preset requirement, eventually
End can issue an instruction to control camera automatic shooting, to replace the manual click keys shooting of user, complete to current shooting
The shooting of picture.It is automatically snapped by detecting shooting face face automatically by camera terminal, and after shooting picture detection is qualified, it can
To guarantee the obtained image of shooting and/or the shooting picture that video is current detection qualification, avoid user click manually by
When key is shot, it is easy to make since the hand for holding camera terminal is mobile or the finger shake of camera terminal screen key is clicked in touch
At the qualified shooting picture of the picture of current shooting and detection, there is any discrepancy.It is automatically snapped in this way, be realized by camera terminal, one
Aspect ensure that the shooting picture taken pictures is met the requirements, and on the other hand have the operation bidirectional of shooting without user,
Optimize user experience.
As shown in figure 5, Fig. 5 is a kind of stream of the image pickup method example two of terminal detection image provided in an embodiment of the present invention
Journey schematic diagram.
In a kind of exemplary arrangement, a kind of image pickup method of terminal detection image provided in an embodiment of the present invention, comprising:
S501, the camera for starting camera terminal, and acquisition includes the shooting picture of terminal image to be detected;
This step can refer to above-mentioned step 101, and details are not described herein.
S502, edge detection is carried out to terminal to be detected in the shooting picture, and extracts the wheel of the terminal to be detected
It is wide;
A kind of illustrative scheme (is carried out for example, by using neural network by modes such as image recognition or images match
Image recognition), it first identifies the terminal to be detected in image, after recognizing terminal to be detected, side is carried out to terminal to be detected
Edge detection, and extract the complete edge contour of terminal to be detected.For most of terminal to be detected, edge wheel
Exterior feature is usually a rectangular profile.
S503, terminal the inclining relative to the camera terminal to be detected according to the contour detecting of the terminal to be detected
Rake angle and judge the tilt angle whether in the range of setting, if the tilt angle in the range of setting,
Control the camera shooting image and/or video.
Refering to Fig. 6 to Fig. 8, Fig. 6 is that camera terminal is extracted relative to terminal to be detected when tilting on XY space plane
To the schematic diagram of profile;Fig. 7 is that camera terminal extracts to obtain profile relative to terminal to be detected when tilting on XZ space plane
Schematic diagram;Fig. 8 is that camera terminal extracts to obtain the signal of profile relative to terminal to be detected when tilting on YZ space plane
Figure;It is understood that terminal to be detected is opposite when terminal to be detected and camera terminal tilt on XY space plane
It is for the central axes of shooting picture and inclined, i.e., have between the profile of terminal to be detected and the central axes of shooting picture
Therefore whether tilt angle can have inclination between the profile of terminal to be detected and the central axes of shooting picture by detecting
Angle judges tilt angle of the terminal to be detected relative to the camera terminal, if detect profile and the bat of terminal to be detected
The tilt angle between the central axes of picture is taken the photograph in the range of setting, it can think terminal to be detected relative to the shooting
The tilt angle of terminal is also in the range of setting.In addition, when terminal to be detected and camera terminal tilt on XZ space plane
When, the profile for the terminal to be detected extracted is actually not a rectangle, but one is trapezoidal;When to be detected
When tilting on YZ space plane, the profile for the terminal to be detected extracted is actually not yet for terminal and camera terminal
It is a rectangle, but a parallelogram;It therefore, can be by detecting end to be detected in these above-mentioned
Whether the profile at end is rectangular or squarish shape, that is, can determine whether inclination of the terminal to be detected relative to the camera terminal
Whether angle is in the range of setting.
As shown in figure 9, Fig. 9 is a kind of stream of the image pickup method example three of terminal detection image provided in an embodiment of the present invention
Journey schematic diagram.
In a kind of exemplary arrangement, a kind of image pickup method of terminal detection image provided in an embodiment of the present invention, comprising:
S901, the camera for starting camera terminal, and acquisition includes the shooting picture of terminal image to be detected;
This step can refer to above-mentioned step 501, and details are not described herein.
S902, edge detection is carried out to terminal to be detected in the shooting picture, and extracts the wheel of the terminal to be detected
It is wide;
This step can refer to above-mentioned step 502, and details are not described herein.
S903, judge whether the profile of the terminal to be detected matches with preset contour mould, if matching, judges institute
Terminal to be detected is stated relative to the tilt angle of the camera terminal in the range of setting, and controls the camera shooting figure
Picture and/or video.
It is understood that judge the terminal to be detected relative to the camera terminal tilt angle in setting
Before in range, it can be collected into the photo that a large amount of shootings there are different terminals in advance, can be in these photos by manually each
It is shot under kind of environment or angle, and these photos are after manually being selected by obtaining, since these photos are by people
Work shoots and selects, in these photos middle terminal and camera terminal be also there may be certain tilt angle,
But pass through after hand picking, the tilt angle in the photo selected between terminal and camera terminal is acceptable
In the range of.Then, the extraction that these photos are carried out to profile by modes such as edge detections obtains a large amount of contour mould,
As long as the profile of the terminal to be detected contour mould preset with these matches, it can think the terminal phase to be detected
Tilt angle for the camera terminal is also that (in the range of can receiving), can control at this time in the range of setting
The camera is shot.
As shown in Figure 10, Figure 10 is a kind of image pickup method example four of terminal detection image provided in an embodiment of the present invention
Flow diagram.
In a kind of exemplary arrangement, a kind of image pickup method of terminal detection image provided in an embodiment of the present invention, comprising:
S1001, the camera for starting camera terminal, and acquisition includes the shooting picture of terminal image to be detected;
This step can refer to above-mentioned step 501, and details are not described herein.
S1002, edge detection is carried out to terminal to be detected in the shooting picture, and extracts the wheel of the terminal to be detected
It is wide;
This step can refer to above-mentioned step 502, and details are not described herein.
S1003, judge whether the angle in the profile of the terminal to be detected between arbitrary neighborhood both sides presss from both sides default
In angular region, if the angle judges the terminal to be detected relative to the camera terminal in default angular range
Tilt angle controls the camera shooting image and/or video in the range of setting.
With reference to described in step S503 it is found that when terminal to be detected and camera terminal obtained in XZ it is inclined on YZ space plane
When, the profile of terminal to be detected is actually a trapezoidal or parallelogram, either trapezoidal or parallelogram,
Four interior angles (angle i.e. between arbitrary neighborhood both sides) are made of acute angle and obtuse angle;And it is to be detected under normal circumstances
The profile of terminal is one rectangular, and four interior angles are 90 degree.Obviously, when in the profile of terminal to be detected in shooting picture
When angle is closer to 90 degree, it is believed that the tilt angle in shooting picture between terminal to be detected and camera terminal is smaller,
Therefore, it can set when the angle (i.e. four interior angles) in the profile of the terminal to be detected between arbitrary neighborhood both sides is pre-
If when in angular range, it is believed that the tilt angle in shooting picture between terminal to be detected and camera terminal is in setting range
It is interior.It, can be with for example, when the angle in the profile of terminal to be detected between arbitrary neighborhood both sides is within the scope of 85 degree to 95 degree
Think tilt angle in shooting picture between terminal to be detected and camera terminal within the set range.
As shown in figure 11, Figure 11 is a kind of image pickup method example five of terminal detection image provided in an embodiment of the present invention
Flow diagram.
In a kind of exemplary arrangement, a kind of image pickup method of terminal detection image provided in an embodiment of the present invention, comprising:
S1101, the camera for starting camera terminal, and acquisition includes the shooting picture of terminal image to be detected;
This step can refer to above-mentioned step 501, and details are not described herein.
S1102, edge detection is carried out to terminal to be detected in the shooting picture, and extracts intramarginal terminal to be detected
Image;
It, can be along edge contour by the figure inside edge contour after detection obtains the edge contour of terminal to be detected
As extracting, that is, the background in shooting picture is removed, the image of terminal to be detected is individually extracted.
S1103, the terminal image to be detected is divided into the first image and the second image by predetermined manner, described in judgement
Whether the first image and second image can be overlapped, if the first image and second image can be overlapped, sentence
The terminal to be detected of breaking relative to the camera terminal tilt angle in the range of setting, and control the camera and clap
Take the photograph image and/or video.
As shown in figure 12, the schematic diagram of tilt angle is not present in Figure 12 between terminal to be detected and camera terminal;To
It detects there is no tilt angle or there are in the case where lesser tilt angle between terminal and camera terminal, terminal to be detected exists
Image in shooting picture is actually a rectangular image-region, in XZ plane, either along the rectangular image district
The centre in domain is longitudinally cutting or transverse cuts, size, the shape of obtained two sub-image areas be it is almost the same,
I.e. two sub-image areas can be overlapped substantially.And when between terminal to be detected and camera terminal there are when tilt angle,
There are biggish tilt angles either on any space plane of XY, XZ or YZ, along terminal image region to be detected
Intermediate longitudinally cutting or transverse cuts, obtained two sub-image areas are difficult to be overlapped.It therefore, can be by institute
It states terminal image to be detected and is divided into the first image and the second figure by longitudinally cutting or transverse cuts along intermediate position
Picture, judges whether the first image and second image can be overlapped, if the first image and the second image energy
It is enough to be overlapped, then judge the terminal to be detected relative to the camera terminal tilt angle in the range of setting, and control
The camera shooting image and/or video.
In addition, user may not know how to adjust when the shooting picture that user shoots is unsatisfactory for requiring
Whole camera obtains qualified shooting picture, at this point, need certain prompt or prompting, then to guide user that adjustment is gone to take the photograph
As head, to be quickly obtained the shooting picture for meeting preset requirement.
In a kind of exemplary arrangement provided in an embodiment of the present invention, detecting the tilt angle in the range of setting
When outer, then prompt icon and/or text information and/or suggestion voice are generated, to indicate the adjusting direction of the camera.Example
Such as, detecting that the tilt angle when except setting range, can give birth in shooting picture by either above-mentioned method
At the small image of one " two terminals are in parallel without tilt angle " as prompt icon, to prompt user by the prompt icon
Signal adjust camera terminal, guarantee not tilt between camera terminal and terminal to be detected.For example, by either above-mentioned
Method detects the tilt angle when except setting range, can be generated in shooting picture such as " ask follow shot terminal,
Keep two terminals parallel " text information and/or played by the loudspeaker of camera terminal and such as " ask follow shot whole
End, keeps two terminals parallel " suggestion voice guarantee camera terminal and end to be detected to prompt user to adjust camera terminal
It is not tilted between end.
In a kind of exemplary arrangement provided in an embodiment of the present invention, detecting the tilt angle in the range of setting
Outside, then refuse to control the camera shooting image and/or video;Specifically, the refusal controls the camera shooting figure
Picture and/or video may include: rejection shooting instruction or refusal automatic shooting.I.e. user can not be by clicking camera terminal
On take pictures button control camera terminal take pictures, camera terminal can refuse user by click take pictures transmitted by button
Photographing instruction;In the case where camera terminal can be with automatic camera, camera terminal is detecting the tilt angle in setting
When outside range, then automatic camera is not executed.
It can be with 3, Figure 13 refering to fig. 1 for a kind of structure of the filming apparatus of terminal detection image provided in an embodiment of the present invention
Schematic diagram.
A kind of filming apparatus of terminal detection image provided in an embodiment of the present invention, comprising:
Starting module 1301, for starting the camera of camera terminal, and acquisition includes the bat of terminal image to be detected
Take the photograph picture;
Identification module 1302, for identifying the terminal to be detected in the shooting picture;
Judgment module 1303 for detecting tilt angle of the terminal to be detected relative to the camera terminal, and is sentenced
The tilt angle break whether in the range of setting, if the tilt angle in the range of setting, is taken the photograph described in control
As head shooting image and/or video.
Optionally, the judgment module 1303 is specifically used for:
Edge detection is carried out to terminal to be detected in the shooting picture, and extracts the profile of the terminal to be detected;
Inclination angle of the terminal to be detected according to the contour detecting of the terminal to be detected relative to the camera terminal
Degree.
Optionally, the judgment module 1303 is specifically used for:
Judge whether the profile of the terminal to be detected matches with preset contour mould, if matching, judgement it is described to
Detect terminal relative to the camera terminal tilt angle in the range of setting.
Optionally, the judgment module 1303 is specifically used for:
Judge the angle in the profile of the terminal to be detected between arbitrary neighborhood both sides whether in default angular range
It is interior, if the angle judges inclination angle of the terminal to be detected relative to the camera terminal in default angular range
Degree is in the range of setting.
Optionally, the judgment module 1303 is specifically used for:
Edge detection is carried out to terminal to be detected in the shooting picture, and extracts intramarginal terminal image to be detected;
The terminal image to be detected is divided into the first image and the second image by predetermined manner, judges first figure
Whether picture and second image can be overlapped, if the first image and second image can be overlapped, described in judgement
Terminal to be detected relative to the camera terminal tilt angle in the range of setting.
Optionally, further includes:
Cue module, if generating prompt icon and/or text envelope for the tilt angle outside the range of setting
Breath and/or suggestion voice, to indicate the adjusting direction of the camera.
Optionally, further includes:
Control module, if refusing to control the camera shooting for the tilt angle outside the range of setting
Image and/or video;
The refusal controls the camera shooting image and/or video specifically includes: rejection shooting instruction is refused
Automatic shooting absolutely.
The embodiment of the invention also provides a kind of portable terminal, including processor and can be held for storing the processor
The memory of row instruction;Wherein, the processor makes the portable terminal for calling the instruction stored in the memory
It executes such as either above-mentioned method.
The embodiment of the invention also provides a kind of computer readable storage medium, deposited in the computer readable storage medium
Instruction is contained, described instruction is executed by the portable terminal, is realized such as either above-mentioned method.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member, module and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These function
It can be implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Professional skill
Art personnel can use different methods to achieve the described function each specific application, but this realization should not be recognized
It is beyond the scope of this invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method, it can be with
It realizes by another way.For example, device described above/terminal device embodiment is schematically, for example, the mould
The division of block or unit is a kind of logical function partition, and there may be another division manner in actual implementation, such as multiple units
Or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, institute
Display or the mutual coupling or direct-coupling or communication connection discussed can be through some interfaces, device or unit
INDIRECT COUPLING or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation
All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..Computer-readable Jie
Matter may include: can carry the computer program code any entity or device, recording medium, USB flash disk, mobile hard disk,
Magnetic disk, CD, computer storage, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM,
RandomAccessMemory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the meter
The content that calculation machine readable medium includes can carry out increase and decrease appropriate according to the requirement made laws in jurisdiction with patent practice,
Such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier signal and electricity
Believe signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (10)
1. a kind of image pickup method of terminal detection image characterized by comprising
Start the camera of camera terminal, and acquisition includes the shooting picture of terminal image to be detected;
The terminal to be detected is identified in the shooting picture;
Tilt angle of the terminal to be detected relative to the camera terminal is detected, and judges whether the tilt angle is setting
In fixed range, if the tilt angle in the range of setting, controls the camera shooting image and/or video.
2. the image pickup method of terminal detection image according to claim 1, which is characterized in that the detection is described to be detected
Terminal is specifically included relative to the tilt angle of the camera terminal:
Edge detection is carried out to terminal to be detected in the shooting picture, and extracts the profile of the terminal to be detected;
Tilt angle of the terminal to be detected according to the contour detecting of the terminal to be detected relative to the camera terminal.
3. the image pickup method of terminal detection image according to claim 2, which is characterized in that further include:
Judge whether the profile of the terminal to be detected matches with preset contour mould, if matching, judges described to be detected
Terminal relative to the camera terminal tilt angle in the range of setting.
4. the image pickup method of terminal detection image according to claim 2, which is characterized in that further include:
Judge whether the angle in the profile of the terminal to be detected between arbitrary neighborhood both sides is being preset in angular range, if
The angle then judges that the terminal to be detected is being set relative to the tilt angle of the camera terminal in default angular range
In fixed range.
5. the image pickup method of terminal detection image according to claim 1, which is characterized in that the detection is described to be detected
Terminal is specifically included relative to the tilt angle of the camera terminal:
Edge detection is carried out to terminal to be detected in the shooting picture, and extracts intramarginal terminal image to be detected;
The terminal image to be detected is divided into the first image and the second image by predetermined manner, judge the first image and
Whether second image can be overlapped, if the first image and second image can be overlapped, judge described to be checked
Survey terminal relative to the camera terminal tilt angle in the range of setting.
6. the image pickup method of terminal detection image according to claim 1, which is characterized in that further include:
If the tilt angle outside the range of setting, generates prompt icon and/or text information and/or suggestion voice,
To indicate the adjusting direction of the camera.
7. the image pickup method of terminal detection image according to claim 1, which is characterized in that further include:
If the tilt angle outside the range of setting, is refused to control the camera shooting image and/or video;
The refusal controls the camera shooting image and/or video specifically includes: rejection shooting instruction or refusal are certainly
Dynamic shooting.
8. a kind of filming apparatus of terminal detection image characterized by comprising
Starting module, for starting the camera of camera terminal, and acquisition includes the shooting picture of terminal image to be detected;
Identification module, for identifying the terminal to be detected in the shooting picture;
Judgment module inclines for detecting tilt angle of the terminal to be detected relative to the camera terminal, and described in judgement
Whether rake angle is in the range of setting, if the tilt angle in the range of setting, controls the camera shooting
Image and/or video.
9. a kind of portable terminal, which is characterized in that including processor and for storing depositing for the processor-executable instruction
Reservoir;Wherein, the processor makes the portable terminal execute such as right for calling the instruction stored in the memory
It is required that method either described in 1-7.
10. a kind of computer readable storage medium, which is characterized in that instruction is stored in the computer readable storage medium,
Described instruction is executed by the portable terminal, realizes the method either as described in claim 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910350883.1A CN110086991A (en) | 2019-04-28 | 2019-04-28 | Image pickup method, device, portable terminal and the storage medium of terminal detection image |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910350883.1A CN110086991A (en) | 2019-04-28 | 2019-04-28 | Image pickup method, device, portable terminal and the storage medium of terminal detection image |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110086991A true CN110086991A (en) | 2019-08-02 |
Family
ID=67417355
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910350883.1A Pending CN110086991A (en) | 2019-04-28 | 2019-04-28 | Image pickup method, device, portable terminal and the storage medium of terminal detection image |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110086991A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110602299A (en) * | 2019-10-30 | 2019-12-20 | 深圳回收宝科技有限公司 | Appearance defect detection method based on different inclination angles |
CN110867083A (en) * | 2019-11-20 | 2020-03-06 | 浙江宇视科技有限公司 | Vehicle monitoring method, device, server and machine-readable storage medium |
CN111627021A (en) * | 2020-03-18 | 2020-09-04 | 深圳科瑞技术股份有限公司 | Terminal middle frame appearance detection method and system and controller |
CN115190236A (en) * | 2021-04-07 | 2022-10-14 | 深圳市万普拉斯科技有限公司 | Image shooting method and device, computer equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100110266A1 (en) * | 2008-10-31 | 2010-05-06 | Samsung Electronics Co., Ltd. | Image photography apparatus and method for proposing composition based person |
CN105100620A (en) * | 2015-07-30 | 2015-11-25 | 深圳市永兴元科技有限公司 | Shooting method and apparatus |
CN105915806A (en) * | 2016-06-29 | 2016-08-31 | 北京小米移动软件有限公司 | Picture shooting method and device |
CN106506959A (en) * | 2016-11-15 | 2017-03-15 | 上海传英信息技术有限公司 | Photographic means and camera installation |
CN109089039A (en) * | 2018-08-08 | 2018-12-25 | 成都西纬科技有限公司 | A kind of image pickup method and terminal device |
-
2019
- 2019-04-28 CN CN201910350883.1A patent/CN110086991A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100110266A1 (en) * | 2008-10-31 | 2010-05-06 | Samsung Electronics Co., Ltd. | Image photography apparatus and method for proposing composition based person |
CN105100620A (en) * | 2015-07-30 | 2015-11-25 | 深圳市永兴元科技有限公司 | Shooting method and apparatus |
CN105915806A (en) * | 2016-06-29 | 2016-08-31 | 北京小米移动软件有限公司 | Picture shooting method and device |
CN106506959A (en) * | 2016-11-15 | 2017-03-15 | 上海传英信息技术有限公司 | Photographic means and camera installation |
CN109089039A (en) * | 2018-08-08 | 2018-12-25 | 成都西纬科技有限公司 | A kind of image pickup method and terminal device |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110602299A (en) * | 2019-10-30 | 2019-12-20 | 深圳回收宝科技有限公司 | Appearance defect detection method based on different inclination angles |
CN110867083A (en) * | 2019-11-20 | 2020-03-06 | 浙江宇视科技有限公司 | Vehicle monitoring method, device, server and machine-readable storage medium |
CN110867083B (en) * | 2019-11-20 | 2021-06-01 | 浙江宇视科技有限公司 | Vehicle monitoring method, device, server and machine-readable storage medium |
CN111627021A (en) * | 2020-03-18 | 2020-09-04 | 深圳科瑞技术股份有限公司 | Terminal middle frame appearance detection method and system and controller |
CN115190236A (en) * | 2021-04-07 | 2022-10-14 | 深圳市万普拉斯科技有限公司 | Image shooting method and device, computer equipment and storage medium |
CN115190236B (en) * | 2021-04-07 | 2024-05-28 | 深圳市万普拉斯科技有限公司 | Image shooting method, device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110086991A (en) | Image pickup method, device, portable terminal and the storage medium of terminal detection image | |
CN106341522B (en) | Mobile terminal and control method thereof | |
US10616155B2 (en) | Mobile terminal and method for controlling the same | |
CN101674409B (en) | Mobile terminal having panorama photographing function and method for controlling operation thereof | |
US9185286B2 (en) | Combining effective images in electronic device having a plurality of cameras | |
US11500533B2 (en) | Mobile terminal for displaying a preview image to be captured by a camera and control method therefor | |
CN108712603B (en) | Image processing method and mobile terminal | |
CN112351185A (en) | Photographing method and mobile terminal | |
CN110650379B (en) | Video abstract generation method and device, electronic equipment and storage medium | |
CN102938826A (en) | Taking pictures by using multiple cameras | |
CN111506758B (en) | Method, device, computer equipment and storage medium for determining article name | |
CN110572716B (en) | Multimedia data playing method, device and storage medium | |
CN106331504A (en) | Shooting method and device | |
CN110572711A (en) | Video cover generation method and device, computer equipment and storage medium | |
CN109508398B (en) | Photo classification method and terminal equipment thereof | |
US10979627B2 (en) | Mobile terminal | |
CN112068762A (en) | Interface display method, device, equipment and medium of application program | |
US20240031665A1 (en) | Method and terminal device for matching photographed objects and preset text information | |
CN104867112B (en) | Photo processing method and device | |
KR20130010590A (en) | Electronic device and the operating method thereof | |
CN105335714A (en) | Photograph processing method, device and apparatus | |
CN110796094A (en) | Control method and device based on image recognition, electronic equipment and storage medium | |
CN110827195A (en) | Virtual article adding method and device, electronic equipment and storage medium | |
CN114979465B (en) | Video processing method, electronic device and readable medium | |
CN115497082A (en) | Method, apparatus and storage medium for determining subtitles in video |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190802 |