CN110086990B - Terminal photographing method and device, portable terminal and storage medium - Google Patents

Terminal photographing method and device, portable terminal and storage medium Download PDF

Info

Publication number
CN110086990B
CN110086990B CN201910350869.1A CN201910350869A CN110086990B CN 110086990 B CN110086990 B CN 110086990B CN 201910350869 A CN201910350869 A CN 201910350869A CN 110086990 B CN110086990 B CN 110086990B
Authority
CN
China
Prior art keywords
terminal
detected
abnormal
shooting
camera
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.)
Active
Application number
CN201910350869.1A
Other languages
Chinese (zh)
Other versions
CN110086990A (en
Inventor
叶飞
何帆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Huishoubao Tech Co ltd
Original Assignee
Shenzhen Huishoubao Tech Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Huishoubao Tech Co ltd filed Critical Shenzhen Huishoubao Tech Co ltd
Priority to CN201910350869.1A priority Critical patent/CN110086990B/en
Publication of CN110086990A publication Critical patent/CN110086990A/en
Application granted granted Critical
Publication of CN110086990B publication Critical patent/CN110086990B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Computing Systems (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Quality & Reliability (AREA)
  • Multimedia (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses a terminal photographing method, which comprises the following steps: starting a camera of a shooting terminal, and acquiring a shooting picture containing a terminal image to be detected; identifying the terminal to be detected in the shooting picture; and judging whether an abnormal area exists on the terminal to be detected, and controlling the camera to shoot to acquire images and/or videos if the abnormal area does not exist on the terminal to be detected. The invention also discloses a photographing device of the terminal, the portable terminal and a storage medium.

Description

Terminal photographing method and device, portable terminal and storage medium
Technical Field
The present invention relates to the field of terminal detection technologies, and in particular, to a method and an apparatus for photographing a terminal, a portable terminal, and a storage medium.
Background
With the development of electronic technology and mobile internet, various electronic products are gradually popularized in life, and electronic products have become an indispensable part of life or work of people. In addition, with the increase of environmental awareness, users gradually tend to recycle or sell inapplicable electronic products in the second-hand market.
During the recycling of the terminal, it is often necessary to test the terminal components to determine the value of the terminal. Currently, there is a terminal detection method in which a user shoots a terminal to be recovered by himself and sends an image and/or a video including an appearance feature of a specific portion of the terminal to be recovered to a detection mechanism for detection.
However, since the images and/or videos captured by some users may not meet the detection requirement, the detection mechanism cannot obtain an accurate detection result by detecting according to the images and/or videos captured by some users.
Disclosure of Invention
In view of the above, the present invention provides a terminal photographing method, a terminal photographing device, a portable terminal, and a storage medium, which can detect a photographed image in advance before photographing, and control a camera to photograph when there is no abnormal area affecting detection on a terminal to be detected.
In a first aspect, the present invention provides a terminal photographing method, including:
starting a camera of a shooting terminal, and acquiring a shooting picture containing a terminal image to be detected;
identifying the terminal to be detected in the shooting picture;
and judging whether an abnormal area exists on the terminal to be detected, and controlling the camera to shoot to acquire images and/or videos if the abnormal area does not exist on the terminal to be detected.
Optionally, if an abnormal area exists on the mobile terminal, the camera is refused to be controlled to shoot.
Optionally, generating a prompt icon and/or text information and/or prompt voice to instruct a user to adjust the camera so that no abnormal area exists on the terminal to be detected.
Optionally, the determining whether the terminal to be detected has an abnormal region specifically includes:
and judging whether a light reflecting region exists on the terminal to be detected, and if so, rejecting to take a picture.
Optionally, the determining whether the terminal to be detected has an abnormal region specifically includes:
and judging whether a reflection region exists on the terminal to be detected, and if so, rejecting to take pictures.
Optionally, the identifying and determining whether there is a reflection in the first image specifically includes:
acquiring a plurality of first images continuously captured within a preset time period, and detecting abnormal areas of the plurality of first images;
and judging whether the shapes of the abnormal regions in the plurality of first images and the positions of the abnormal regions relative to the terminal to be detected are different, if so, judging that the first images have reflection.
Optionally, the determining whether the terminal to be detected has an abnormal region specifically includes:
and judging whether a shadow area exists on the terminal to be detected, and if so, rejecting to take a picture.
In a second aspect, the present invention provides a photographing apparatus for a terminal, including:
the starting module is used for starting a camera of the shooting terminal and acquiring a shooting picture containing a terminal image to be detected;
the identification module is used for identifying the terminal to be detected in the shooting picture;
and the judging module is used for judging whether the terminal to be detected has an abnormal area or not, and controlling the camera to shoot to acquire images and/or videos if the terminal to be detected does not have the abnormal area.
In a third aspect, the present invention provides a portable terminal comprising a processor and a memory for storing processor-executable instructions; wherein the processor is configured to invoke instructions stored in the memory to cause the portable terminal to perform any of the methods of the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium having stored therein instructions for execution by the portable terminal to implement any of the methods of the first aspect.
The invention has the following beneficial effects:
the invention provides a terminal photographing method and device, a portable terminal and a storage medium, which can detect a photographed picture in advance before photographing and control a camera to photograph when an abnormal area influencing detection does not exist on a terminal to be detected.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
fig. 1 is a schematic flowchart of a photographing method of a terminal according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a terminal having a light reflecting area according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a reflection area on a front surface of a terminal according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating a reflection area on the back surface of a terminal according to an embodiment of the present invention;
fig. 5 is another schematic diagram of a reflection area on the back surface of a terminal according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a photographing device of a terminal according to an embodiment of the present invention.
Detailed Description
For a more clear understanding of the technical features, objects and effects of the present invention, embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
The terms "first", "second", and the like in the embodiments of the present invention are only used for distinguishing related technical features, and do not indicate a sequence.
The inventor of the present application has found that during the recycling of the terminal, the terminal element is usually required to be tested to determine the value of the terminal. Currently, there is a terminal detection method in which a user shoots a terminal to be recovered by himself and sends an image and/or a video including an appearance feature of a specific portion of the terminal to be recovered to a detection mechanism for detection.
However, when different users take pictures, due to the shooting environment, some abnormal regions (such as a light reflection region, a shadow region, etc.) may exist on the terminal to be detected in the shot images and/or videos, and these abnormal regions may affect the detection effect of the detection mechanism when detecting the terminal to be detected.
In view of this, embodiments of the present invention provide a terminal photographing method and apparatus, a portable terminal, and a storage medium, which can detect a photographed image in advance before photographing, and control a camera to photograph when there is no abnormal area affecting detection on a terminal to be detected.
The photographing method of the terminal provided by the embodiment of the invention is applied to the portable terminal, wherein the portable terminal comprises but is not limited to electronic equipment such as a mobile phone, a tablet computer, a notebook computer, a portable electronic device (PDA) and the like. The portable terminal comprises a camera capable of shooting and storing images and/or videos. The portable terminal comprises a communication component, and the specific communication component comprises a wired communication component and/or a wireless communication component. The wired communication component includes, but is not limited to, a component using a tangible medium such as a metal wire, an optical fiber, a coaxial cable, a network cable, a telephone line, etc. to transmit information; the wireless communication is a communication method for performing spatial transmission using a wireless signal, and includes, but is not limited to, communication methods such as 3G (third generation communication), 4G (fourth generation communication), 5G (fifth generation communication), WiFi (wireless local area network based on ieee802.11b standard), and Bluetooth.
As shown in fig. 1, fig. 1 is a schematic flowchart of a photographing method of a terminal according to an embodiment of the present invention.
In an exemplary scheme, a method for photographing a terminal provided in an embodiment of the present invention includes:
s101, starting a camera of a shooting terminal, and acquiring a shooting picture containing a terminal image to be detected;
the shooting terminal is a portable terminal, and the portable terminal is used for shooting the terminal to be detected by a user.
An exemplary embodiment is that the terminal to be detected according to the embodiment of the present invention is an electronic product, and the electronic product includes, but is not limited to, a mobile phone, a smart phone, a portable electronic device, a tablet computer, MP4, a notebook, an ultra-polar notebook, a Personal Digital Assistant (PDA), and other electronic devices.
It should be noted that the shot picture including the terminal image to be shot refers to an image picture captured after the shooting terminal camera is started, and is not a picture that has been shot, and the shot picture is changed along with the movement of the shooting terminal camera.
S102, identifying the terminal to be detected in the shooting picture;
an exemplary scheme is to identify the terminal to be photographed in the photographing picture by means of image recognition or image matching (for example, image recognition using a neural network). Specifically, a neural network model for image recognition may be established in advance, then a large number of terminal images are input to train the neural network model, and finally the photographed picture is input to the trained neural network, so that the neural network recognizes the terminal to be detected.
S103, judging whether the terminal to be detected has an abnormal area, and if the terminal to be detected does not have the abnormal area, controlling the camera to shoot so as to obtain an image and/or a video.
It can be understood that, since the image and/or video obtained by the user through photographing is provided for the detection mechanism, the detection mechanism detects the terminal to be detected in the image and/or video through image recognition, manual recognition or other modes to identify whether the terminal to be detected has defects such as screen breakage, scratches, collision, depression and the like, and finally obtains the state information for evaluating the value of the terminal to be detected. Therefore, in order to accurately identify whether the terminal to be detected has a defect that affects the value of the terminal to be detected, it is necessary to ensure that the image and/or video including the terminal to be detected meet certain requirements.
For example, when the detection mechanism detects the terminal to be detected in an image recognition manner through artificial intelligence (for example, the detection mechanism detects the terminal by running a detection algorithm), it is generally required that the terminal to be detected in the image and/or the video is flatly placed in the image and/or the video, and each part on the terminal to be detected is clearly recognizable, so that the detection mechanism can detect defects on the terminal to be detected. Obviously, when some abnormal regions which can mask the appearance of the image and/or video of the terminal to be detected or influence the normal display of the appearance of the image and/or video exist, the detection terminal is difficult to effectively detect the terminal to be detected in the image and/or video actually. Therefore, in order to avoid that the detection terminal cannot accurately obtain the detection result of the terminal to be detected and the evaluation of the terminal to be detected is influenced, whether an abnormal area which influences the normal detection of the terminal to be detected exists on the terminal to be detected or not can be judged before the image and/or the video of the terminal to be detected is shot, and when the abnormal area does not exist on the terminal to be detected, the camera is controlled to shoot. The abnormal area may be a light reflection area, a shadow area, and the like, and when the abnormal area appears on the terminal to be detected, the normal detection of the terminal to be detected by the detection terminal may be affected.
It is worth noting that in the embodiment of the present invention, in the process that the user starts the shooting terminal camera to shoot, the shooting terminal automatically detects the shot picture shot by the camera, when the shot picture meets the preset requirement, the terminal can send an instruction to control the camera to shoot automatically, so as to replace the user to click the button manually to shoot, and complete the shooting of the current shot picture. The shooting terminal automatically detects the shooting surface and automatically shoots after the shooting picture is detected to be qualified, so that the image and/or video obtained by shooting can be ensured to be the shooting picture qualified for current detection, and the phenomenon that when a user manually clicks a key to shoot, the current shot picture and the shooting picture qualified for detection are in and out caused by shaking of a hand holding the shooting terminal or a finger touching and clicking a screen key of the shooting terminal is avoided. Therefore, automatic photographing is realized by the photographing terminal, on one hand, the photographed picture obtained by photographing is guaranteed to meet the requirements, on the other hand, extra photographing operation of a user is not needed, and the user experience is optimized.
It should be noted that, in an exemplary scheme, the detection terminal may be a terminal for performing terminal detection, which is different from the shooting terminal, for example, a computer terminal running a detection algorithm, and the shooting terminal obtains an image and/or a video of the terminal to be detected during shooting, and the image and/or the video of the terminal to be detected may be provided to the detection terminal in a sending or uploading manner, so as to perform the detailed detection in the next step.
In another exemplary scheme, the detection terminal and the shooting terminal may be the same terminal, that is, after the shooting terminal obtains an image and/or a video of the terminal to be detected, the shooting terminal continues to perform the next detailed detection.
In an exemplary scheme, if an abnormal area exists on the mobile terminal, the camera is refused to be controlled to shoot so as to acquire images and/or videos.
Specifically, the refusing to control the camera to shoot so as to acquire the image and/or the video may include: refusing to receive the photographing instruction or refusing to automatically photograph. Namely, the user cannot control the shooting terminal to shoot by clicking a shooting button on the shooting terminal, and the shooting terminal can refuse the shooting instruction sent by the user by clicking the shooting button; and under the condition that the shooting terminal can automatically shoot, when the shooting terminal detects that an abnormal area exists on the terminal to be detected, the shooting terminal does not execute automatic shooting. By refusing to control the setting shot by the camera, the images and/or videos shot by the user can be ensured to meet the detection requirements when the user shoots the terminal to be detected, and the situation that the detected terminal returns due to the fact that the images and/or videos which do not meet the detection requirements are sent to the detection terminal by the user is avoided.
In an exemplary scheme, the terminal photographing method provided by the embodiment of the invention further includes generating a prompt icon and/or text information and/or prompt voice to instruct a user to adjust the camera so that no abnormal area exists on the terminal to be detected.
For example, when it is detected that an abnormal area exists on the terminal to be detected in the photographing screen, "! The prompt icon prompts the user that the abnormal area exists, so that the user can avoid the abnormal area appearing on the terminal to be detected by adjusting the camera. For another example, when it is detected that an abnormal area exists on the terminal to be detected in the shooting picture, text information such as "please move the camera to ensure that no abnormal area exists on the terminal" may be generated on the shooting terminal of the user and/or a prompt voice such as "please move the camera to ensure that no abnormal area exists on the terminal" may be played through a speaker of the shooting terminal to prompt the user to adjust the camera, thereby avoiding the abnormal area on the terminal to be detected.
In an exemplary scheme, the determining whether the terminal to be detected has an abnormal region specifically includes:
and judging whether a light reflecting region exists on the terminal to be detected, and if so, rejecting to take a picture.
Referring to fig. 2, fig. 2 is a schematic diagram illustrating a light reflecting area on a terminal according to an embodiment of the present invention; obviously, in fig. 2, except for the light reflecting area, whether defects such as screen breakage, dent and the like exist at other parts of the terminal to be detected can be easily detected, and the light reflecting area is blank and a blank area, and whether defects exist at the light reflecting area cannot be obtained through image detection. Therefore, when the light reflecting area on the terminal to be detected is detected in the shot picture, the shooting should be rejected so as to avoid that the light reflecting area cannot be effectively detected in the detection process.
According to an exemplary scheme, the detection and identification of the light reflecting area can be performed by means of image identification or image matching. For example, a neural network is used to identify a light reflection area of the terminal to be detected in the shot picture. Specifically, a large number of photos of different terminals can be collected in advance, the photos can be manually shot in various environments or angles to simulate the real shooting environment of the terminal to be detected in the shot picture, and the terminals in the photos have certain light reflecting areas, and for different photos, the light reflecting areas may exist in different positions of the terminal. After a number of photographs were collected, the retroreflective regions of the terminals in these photographs were manually marked. Then, a neural network model which can be used for image recognition is established, and the pictures of the marked reflective regions are input into the neural network model for training, so that the trained neural network model is obtained. And finally, inputting the shot picture into a trained neural network model, and identifying the light reflection area of the terminal in the shot picture by the neural network model.
In an exemplary scheme, the determining whether the terminal to be detected has an abnormal region specifically further includes:
and judging whether a reflection region exists on the terminal to be detected, and if so, rejecting to take pictures.
Referring to fig. 3, fig. 3 is a schematic diagram illustrating a reflection region on a front surface of a terminal according to an embodiment of the present invention; it will be appreciated that the display screen occupies a significant portion of the front face of the terminal, and that most display screens have a "mirror" effect in the sense that they are normally off, i.e. they are able to reflect light to show the reflection of a human or object scene. When the user shoots, the user often shoots the terminal to be detected by the handheld shooting terminal, the display screen of the terminal to be detected easily displays the reflection of the hand of the user or the shooting terminal, even the reflection of other objects and the like, and the reflection can also have great influence on the detection effect of the detection terminal. Therefore, when a reversed image area on the terminal to be detected is detected in the shooting picture, the shooting should be rejected so as to avoid that the terminal to be detected cannot be effectively detected in the detection process.
In an exemplary scheme, the identifying and determining whether there is a reflection in the first image specifically includes: acquiring a plurality of first images continuously captured within a preset time period, and detecting abnormal areas of the plurality of first images; and judging whether the shapes of the abnormal regions in the plurality of first images and the positions of the abnormal regions relative to the terminal to be detected are different, if so, judging that the first images have reflection.
It is understood that the formation principle of the reflection region is similar to the formation principle of the scene in the mirror, and obviously, the position of the reflection region on the terminal to be detected and the scene of the reflection (such as the shape, size and the like of the reflection) are changed along with the movement of the terminal to be detected or the scene movement opposite to the terminal to be detected, so that the reflection region can be changed based on the reflection region, and the reflection region can be identified. For example, referring to fig. 4 and 5, fig. 4 is a schematic diagram illustrating a reflection region on a back surface of a terminal according to an embodiment of the present invention; fig. 5 is another schematic diagram of a reflection area on the back surface of a terminal according to an embodiment of the present invention; in fig. 4 and 5, the terminals of the shooting terminal are arranged on the terminals to be detected, the reflection areas in fig. 4 and 5 are different, the reflection area in fig. 4 is located at the position to the left of the terminal to be detected, the area of the reflection area is smaller, and the reflection area in fig. 5 is located at the middle position of the terminal to be detected, and the area of the reflection area is larger; furthermore, the inverted views in fig. 4 and 5 are also inconsistent.
It is worth noting that for most terminals to be detected, because the front of the terminal to be detected has the display screen, the front of the terminal to be detected is easy to have a reflection area; for a part of terminals to be detected, the back surfaces of the part of terminals to be detected may be made of a special material, such as ceramic, glass, metal, etc., so that the back surfaces of the part of terminals to be detected are also easy to have a reflection region; therefore, in the actual detection process, in addition to the detection of the reflection region for the front image of the terminal to be detected, the detection of the reflection region for the back image of the terminal to be detected is also required.
In an exemplary scheme, the determining whether the terminal to be detected has an abnormal region specifically further includes: and judging whether a shadow area exists on the terminal to be detected, and if so, rejecting to take a picture.
It can be understood that, when the handheld shooting terminal of user shoots the terminal of waiting to detect, probably because light is relatively poor in the shooting environment, perhaps the user has sheltered from reasons such as the light of projecting on waiting to detect the terminal, can be waiting to detect the terminal and form certain shadow region, shadow region in the shooting picture, contrast and luminance are all relatively poor, detecting terminal is difficult to carry out effectual detection to it, consequently, also need when detecting the shadow region, refuse to shoot, can't treat detecting terminal and carry out effectual detection in order to avoid the testing process.
An exemplary scheme is that the shadow area can be detected and identified by adopting an image identification or image matching mode. For example, a neural network is used to identify the shadow area of the terminal to be detected in the shot picture. Specifically, a large number of photos of different terminals can be collected in advance, the photos can be manually shot in various environments or angles to simulate the real shooting environment of the terminal to be detected in the shot picture, and certain shadow areas exist on the terminals in the photos, and for different photos, the shadow areas may exist in different positions of the terminal. After a number of photographs have been collected, the shaded areas of the terminals in these photographs are marked manually. Then, a neural network model which can be used for image recognition is established, and the pictures of the marked shadow areas are input into the neural network model for training, so that the trained neural network model is obtained. And finally, inputting the shot picture into a trained neural network model, and identifying the shadow area of the terminal in the shot picture by the neural network model.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a photographing device of a terminal according to an embodiment of the present invention.
The photographing device for the terminal provided by the embodiment of the invention comprises:
the starting module 601 is used for starting a camera of the shooting terminal and acquiring a shooting picture containing a terminal image to be detected;
an identifying module 602, configured to identify the terminal to be detected in the captured image;
the determining module 603 is configured to determine whether an abnormal region exists on the terminal to be detected, and if the abnormal region does not exist on the terminal to be detected, control the camera to shoot so as to obtain an image and/or a video.
Optionally, the determining module is further configured to: and if the mobile terminal has an abnormal area, refusing to control the camera to shoot so as to obtain images and/or videos.
Optionally, the apparatus further comprises:
and the prompting module generates a prompting icon and/or text information and/or prompting voice by shading so as to instruct a user to adjust the camera to enable the terminal to be detected to have no abnormal area.
Optionally, the determining module is specifically configured to:
and judging whether a light reflecting region exists on the terminal to be detected, and if so, rejecting to take a picture.
Optionally, the determining module is further specifically configured to:
and judging whether a reflection region exists on the terminal to be detected, and if so, rejecting to take pictures.
Optionally, the identifying and determining whether there is a reflection in the first image specifically includes:
acquiring a plurality of first images continuously captured within a preset time period, and detecting abnormal areas of the plurality of first images;
and judging whether the shapes of the abnormal regions in the plurality of first images and the positions of the abnormal regions relative to the terminal to be detected are different, if so, judging that the first images have reflection.
Optionally, the determining module is further specifically configured to:
and judging whether a shadow area exists on the terminal to be detected, and if so, rejecting to take a picture.
The embodiment of the invention also provides a portable terminal, which comprises a processor and a memory for storing the executable instruction of the processor; wherein the processor is configured to call the instructions stored in the memory to cause the portable terminal to execute any one of the methods described above.
The embodiment of the invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, and the instructions are executed by the portable terminal to realize any method.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art would appreciate that the various illustrative elements, modules, and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are illustrative, and for example, the division of the modules or units is a logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. . Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer memory, Read-only memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, etc. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (7)

1. A method of taking a picture, comprising:
starting a camera of a shooting terminal, and acquiring a shooting picture containing a terminal image to be detected, wherein the terminal to be detected is a mobile terminal;
identifying the terminal to be detected in the shooting picture;
judging whether an abnormal area exists on the terminal to be detected, and controlling the camera to shoot to acquire an image and/or a video if the abnormal area does not exist on the terminal to be detected; if the terminal to be detected has an abnormal area, refusing to control the camera to shoot;
the step of judging whether the terminal to be detected has an abnormal area specifically comprises the following steps: judging whether a reflection region exists on the terminal to be detected, and if the reflection region exists, rejecting to take a picture; the judging whether the reflection region exists on the terminal to be detected specifically comprises: acquiring a plurality of first images continuously captured within a preset time period, and detecting abnormal areas of the plurality of first images; and judging whether the shapes of the abnormal regions in the plurality of first images and the positions of the abnormal regions relative to the terminal to be detected are different, if so, judging that the reflection regions exist in the first images.
2. The photographing method according to claim 1, further comprising generating a prompt icon and/or text message and/or prompt voice to instruct a user to adjust the camera so that no abnormal area exists on the terminal to be detected.
3. The photographing method according to claim 1, wherein the determining whether the terminal to be detected has an abnormal area specifically comprises:
and judging whether a light reflecting region exists on the terminal to be detected, and if so, rejecting to take a picture.
4. The photographing method according to claim 1, wherein the determining whether the terminal to be detected has an abnormal area specifically comprises:
and judging whether a shadow area exists on the terminal to be detected, and if so, rejecting to take a picture.
5. A photographing apparatus, comprising:
the starting module is used for starting a camera of the shooting terminal and acquiring a shooting picture containing a terminal image to be detected;
the identification module is used for identifying the terminal to be detected in the shooting picture;
the judging module is used for judging whether an abnormal area exists on the terminal to be detected or not, and controlling the camera to shoot to acquire an image and/or a video if the abnormal area does not exist on the terminal to be detected; if the terminal to be detected has an abnormal area, refusing to control the camera to shoot, wherein the judging module is specifically configured to judge whether the terminal to be detected has a reflection area, and if the terminal to be detected has the reflection area, refusing to shoot, wherein judging whether the terminal to be detected has the reflection area specifically includes: acquiring a plurality of first images continuously captured within a preset time period, and detecting abnormal areas of the plurality of first images; and judging whether the shapes of the abnormal regions in the plurality of first images and the positions of the abnormal regions relative to the terminal to be detected are different, if so, judging that the reflection regions exist in the first images.
6. A portable terminal comprising a processor and a memory for storing instructions executable by the processor; wherein the processor is configured to invoke instructions stored in the memory to cause the portable terminal to perform any of the methods of claims 1-4.
7. A computer-readable storage medium having stored therein instructions for execution by a processor of a portable terminal to implement any of the methods of claims 1-4.
CN201910350869.1A 2019-04-28 2019-04-28 Terminal photographing method and device, portable terminal and storage medium Active CN110086990B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910350869.1A CN110086990B (en) 2019-04-28 2019-04-28 Terminal photographing method and device, portable terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910350869.1A CN110086990B (en) 2019-04-28 2019-04-28 Terminal photographing method and device, portable terminal and storage medium

Publications (2)

Publication Number Publication Date
CN110086990A CN110086990A (en) 2019-08-02
CN110086990B true CN110086990B (en) 2021-01-12

Family

ID=67417399

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910350869.1A Active CN110086990B (en) 2019-04-28 2019-04-28 Terminal photographing method and device, portable terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110086990B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113364911B (en) * 2021-06-11 2023-03-07 上海兴容信息技术有限公司 Detection method and system for preset terminal
CN114286009A (en) * 2021-12-29 2022-04-05 维沃移动通信有限公司 Inverted image shooting method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106412321A (en) * 2016-10-31 2017-02-15 维沃移动通信有限公司 Image processing method and mobile terminal
CN208488395U (en) * 2018-06-15 2019-02-12 信义节能玻璃(四川)有限公司 Glass appearance detection device

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103369248A (en) * 2013-07-20 2013-10-23 厦门美图移动科技有限公司 Method for photographing allowing closed eyes to be opened
CN103501410B (en) * 2013-10-08 2017-04-05 百度在线网络技术(北京)有限公司 The based reminding method of shooting, the generation method of device and detection pattern, device
CN106303397B (en) * 2015-05-12 2019-03-22 杭州海康威视数字技术股份有限公司 Image-pickup method and system, video monitoring method and system
CN105959543B (en) * 2016-05-19 2019-04-30 努比亚技术有限公司 It is a kind of to remove reflective filming apparatus and method
CN105933607B (en) * 2016-05-26 2019-01-22 维沃移动通信有限公司 A kind of take pictures effect method of adjustment and the mobile terminal of mobile terminal
CN106657759A (en) * 2016-09-27 2017-05-10 奇酷互联网络科技(深圳)有限公司 Anti-eye closing photographing method and anti-eye closing photographing device
CN107743195A (en) * 2017-10-09 2018-02-27 惠州Tcl移动通信有限公司 A kind of photographic method, mobile terminal and storage medium
CN109345691A (en) * 2018-07-23 2019-02-15 深圳回收宝科技有限公司 A kind of method, portable terminal and the storage medium of electronic product recycling
CN109512402B (en) * 2018-11-09 2021-04-02 吉林大学 Near-distance multidimensional accurate medical human body infrared thermal imaging method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106412321A (en) * 2016-10-31 2017-02-15 维沃移动通信有限公司 Image processing method and mobile terminal
CN208488395U (en) * 2018-06-15 2019-02-12 信义节能玻璃(四川)有限公司 Glass appearance detection device

Also Published As

Publication number Publication date
CN110086990A (en) 2019-08-02

Similar Documents

Publication Publication Date Title
CN110674719B (en) Target object matching method and device, electronic equipment and storage medium
CN111553864B (en) Image restoration method and device, electronic equipment and storage medium
CN106331504B (en) Shooting method and device
WO2020259073A1 (en) Image processing method and apparatus, electronic device, and storage medium
CN109120863B (en) Shooting method, shooting device, storage medium and mobile terminal
CN110992327A (en) Lens contamination state detection method and device, terminal and storage medium
CN105205479A (en) Human face value evaluation method, device and terminal device
KR20210065180A (en) Image processing method and apparatus, electronic device and storage medium
CN109472738B (en) Image illumination correction method and device, electronic equipment and storage medium
CN109218621B (en) Image processing method, device, storage medium and mobile terminal
CN110086990B (en) Terminal photographing method and device, portable terminal and storage medium
CN111182212A (en) Image processing method, image processing apparatus, storage medium, and electronic device
CN110807769B (en) Image display control method and device
CN113038165A (en) Method, apparatus and storage medium for determining a set of coding parameters
CN110677580B (en) Shooting method, shooting device, storage medium and terminal
CN110086921B (en) Method and device for detecting performance state of terminal, portable terminal and storage medium
CN109639981B (en) Image shooting method and mobile terminal
CN111582381B (en) Method and device for determining performance parameters, electronic equipment and storage medium
JP6283329B2 (en) Augmented Reality Object Recognition Device
CN110855897B (en) Image shooting method and device, electronic equipment and storage medium
CN109561255B (en) Terminal photographing method and device and storage medium
CN111416936A (en) Image processing method, image processing device, electronic equipment and storage medium
CN105635573A (en) Pick-up head visual angle adjusting method and apparatus
CN110084957A (en) A kind of method, apparatus, portable terminal and the storage medium of terminal detection
CN110049316B (en) Method and device for detecting set number of terminals, portable terminal and storage medium

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
GR01 Patent grant
GR01 Patent grant