CN107682623B - Photographing method and device - Google Patents

Photographing method and device Download PDF

Info

Publication number
CN107682623B
CN107682623B CN201710814203.8A CN201710814203A CN107682623B CN 107682623 B CN107682623 B CN 107682623B CN 201710814203 A CN201710814203 A CN 201710814203A CN 107682623 B CN107682623 B CN 107682623B
Authority
CN
China
Prior art keywords
clear
characters
scene
shooting
character
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
CN201710814203.8A
Other languages
Chinese (zh)
Other versions
CN107682623A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710814203.8A priority Critical patent/CN107682623B/en
Publication of CN107682623A publication Critical patent/CN107682623A/en
Application granted granted Critical
Publication of CN107682623B publication Critical patent/CN107682623B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • H04N23/67Focus control based on electronic image sensor signals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/73Deblurring; Sharpening
    • 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
    • H04N23/62Control of parameters via user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)

Abstract

The disclosure relates to a photographing method and device. The method comprises the following steps: identifying the scene to be photographed displayed in the preview interface in real time; when the scene to be photographed is recognized to comprise the specified object, the contrast of the specified object is improved on the preview interface; and/or, increasing the focus for focusing the specified object; and shooting the scene to be photographed according to the contrast and the focus. In the technical scheme, the contrast and the increased focus can enable the designated object to be displayed more clearly in the preview interface, so that the designated object can be shot clearly, and a better shooting effect is obtained.

Description

Photographing method and device
Technical Field
The present disclosure relates to the field of electronics, and in particular, to a photographing method and apparatus.
Background
At present, terminals with a photographing function are increasingly popularized, and people like to record the drip of life, particularly to record sceneries and scenic spots and historical sites all the way when traveling by using the camera function.
Disclosure of Invention
The embodiment of the disclosure provides a photographing method and device. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a photographing method including:
identifying the scene to be photographed displayed in the preview interface in real time;
when the scene to be photographed is recognized to comprise the specified object, the contrast of the specified object is improved on the preview interface; and/or, increasing the focus for focusing the specified object;
and shooting the scene to be photographed according to the contrast and the focus.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the contrast and the increased focus can enable the designated object to be displayed more clearly in the preview interface, so that the designated object can be shot clearly, and a better shooting effect is achieved.
In one embodiment, when the specified object is a textual object, the method further comprises:
when the designated object does not meet the requirement of a clear object, matching clear characters corresponding to specific characters in the character object through a preset character library; the character characteristics of the specific characters are the same as those of the clear characters;
in the preview interface, replacing the clear characters with corresponding specific characters;
and shooting the scene to be shot in the preset interface with the clear characters.
In one embodiment, the requirements of the clear object include any of:
the focus is focusable with the specified object;
the definition of the designated object is greater than a predetermined value.
In an embodiment, after the obtaining, according to the feature information, the clear text corresponding to the specific text from a preset text library, the method further includes:
shooting the scene to be shot to obtain a picture;
in the photograph, the specific text is replaced with the clear text.
In one embodiment, the capturing the scene to be photographed to obtain a photograph includes:
and when the terminal is in the power-saving state, shooting the scene to be shot to obtain a picture.
In one embodiment, the matching of the clear text corresponding to the specific text in the text object through the preset text library includes:
sending an identification request carrying the character object to a server; so that the server matches the clear characters corresponding to the specific characters of the character object through a preset character library;
and receiving the identification response carrying the clear characters sent by the server.
According to a second aspect of the embodiments of the present disclosure, there is provided a photographing apparatus including:
the recognition module is used for recognizing the scene to be photographed displayed in the preview interface in real time;
the improvement module is used for improving the contrast of the specified object in the preview interface when the scene to be photographed is identified to comprise the specified object;
the adding module is used for adding a focus for focusing the specified object;
and the first shooting module is used for shooting the scene to be shot according to the contrast and the focus.
In one embodiment, when the designated object is a text object, the apparatus further comprises:
the matching module is used for matching out clear characters corresponding to specific characters in the character objects through a preset character library when the specified object does not meet the requirement of the clear objects; the character characteristics of the specific characters are the same as those of the clear characters;
the first replacing module is used for replacing the corresponding specific characters with the clear characters in the preview interface;
and the second shooting module is used for shooting the scene to be shot in the preset interface with the clear characters.
In one embodiment, the requirements of the clear object include any of:
the focus is focusable with the specified object;
the definition of the designated object is greater than a predetermined value.
In one embodiment, the apparatus further comprises:
the third shooting module is used for shooting the scene to be shot to obtain a photo;
and the second replacing module is used for replacing the specific characters with the clear characters in the photos.
In one embodiment, the third photographing module includes:
and the shooting submodule is used for shooting the scene to be shot to obtain a picture when the terminal is in the power-saving state.
In one embodiment, the matching module comprises:
the sending submodule is used for sending an identification request carrying the character object to a server; so that the server matches the clear characters corresponding to the specific characters of the character object through a preset character library;
and the receiving submodule is used for receiving the identification response which is sent by the server and carries the clear characters.
According to a third aspect of the embodiments of the present disclosure, there is provided a photographing apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
identifying the scene to be photographed displayed in the preview interface in real time;
when the scene to be photographed is recognized to comprise the specified object, the contrast of the specified object is improved on the preview interface; and/or, increasing the focus for focusing the specified object;
and shooting the scene to be photographed according to the contrast and the focus.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating a photographing method according to an exemplary embodiment.
FIG. 2 is a schematic diagram illustrating a preview interface in accordance with an exemplary embodiment.
FIG. 3 is a flow chart illustrating a method of photographic processing according to an exemplary embodiment.
Fig. 4 is a flowchart illustrating a photographing method according to an exemplary embodiment.
Fig. 5 is a block diagram illustrating an electric photographing apparatus according to an exemplary embodiment.
Fig. 6 is a block diagram illustrating an electric photographing apparatus according to an exemplary embodiment.
Fig. 7 is a block diagram illustrating an electric photographing apparatus according to an exemplary embodiment.
Fig. 8 is a block diagram illustrating an electric photographing apparatus according to an exemplary embodiment.
Fig. 9 is a block diagram illustrating an electric photographing apparatus according to an exemplary embodiment.
Fig. 10 is a block diagram illustrating an electric photographing apparatus according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
In the related art, when a terminal device with a camera function photographs an object with characters, it is often desirable that the characters in the photograph be clear, such as in a scenic spot, and in a memorial character. However, many times, the characters only have a fuzzy appearance, and the user watches the photos again, so that the user is troublesome to distinguish the characters, and the pleasure of the user in watching the pictures and going to the scenic spots is reduced.
Example one
Fig. 1 is a flowchart illustrating a photographing method according to an exemplary embodiment, where the photographing method is used in a photographing apparatus applied to a terminal having a photographing function, as shown in fig. 1, and the method includes the following steps 101 and 103:
in step 101, a scene to be photographed displayed in a preview interface is identified in real time.
The preview interface is the picture-taking scene displayed in the display range of the camera application after the camera application is opened before the shooting instruction is executed.
In step 102, when the scene to be photographed comprises the specified object is identified, the contrast of the specified object is improved on the preview interface; and/or, increasing the focus for focusing the specified object.
Here, the designated object may be an object set in advance by the user, or may be an object automatically set by the camera, such as a character object, a background building object, or the like. Here, raising the contrast of the designated object is to highlight the designated object at the position of the designated object so as to see the designated object more clearly, and similarly, raising the focus is the same principle, where the contrast is increased to such an extent that the sharpness reaches a preset value.
In step 103, the scene to be photographed is photographed according to the contrast and the focus.
As shown in fig. 2, in general, during shooting, only a face is recognized, and focusing is performed on the face (there is an original focus on the face in fig. 2).
In this embodiment, the contrast and the increased focus may make the designated object displayed more clearly in the preview interface, so that the designated object may be clearly photographed to obtain a better photographing effect.
In one embodiment, when the specified object is a textual object, the method further comprises:
when the designated object does not meet the requirement of the clear object, matching clear characters corresponding to specific characters in the character object through a preset character library; the character characteristics of the specific characters are the same as those of the clear characters; in the preview interface, replacing the clear characters with the corresponding specific characters; and shooting the scene to be shot in a preset interface with clear characters.
In this embodiment, the preset word library may be stored in the terminal or the remote server, and the preset word library may be classified in advance, and the common words and the non-common words are used as two sub-libraries, and in the process of matching the words, the sub-libraries of the common words may be searched first, and the non-common words may be searched and then the sub-libraries of the non-common words may be searched. Meanwhile, the preset character library can be updated on line.
The text matching of the present embodiment may be performed directly after step 101 and when it is recognized that the scene to be photographed includes the specified object, or may be performed after step 102. That is, the terminal can directly match the characters to realize the clearness of the characters on the photo.
Here, the specific character and the clear character not only require the same character, but also require the same characters, the same size, the same color, the same thickness, and other features, and therefore, the same character needs to be stored in a plurality of versions in a preset character library.
According to the embodiment, fuzzy characters can be replaced through character matching, and from the preview interface, the user can see clear characters, so that the photographing experience of the user is improved.
In one embodiment, the requirement for a clear object includes any of:
the focus can be focused on a specified object;
the definition of the designated object is greater than a predetermined value.
In this embodiment, the definition is a feature value for determining whether the designated object is clear, and the feature value may be resolution, pixel, or the like.
If the common shooting mode can not solve the problem of character shooting, character matching is used, and the defects of the common shooting mode are overcome.
In one embodiment, since clear text does not need to be displayed on the preview interface, after the clear text corresponding to the specific text is acquired from the preset text library according to the feature information, the method further includes:
shooting a scene to be shot to obtain a picture; in the photograph, the specific text is replaced with clear text.
The embodiment can replace the fuzzy characters of the photo by character matching, so that the user can see the clear characters, and the experience of watching the photo by the user is improved.
In one embodiment, in order to save power, the scene to be photographed is photographed, and obtaining the picture comprises:
and when the terminal is in the power-saving state, shooting the scene to be shot to obtain the picture.
The power saving state may include a state in which the power is lower than a preset power, for example, 10%, or a state in which a high temperature requires a low power consumption state of the device to operate, or may be a state in which some special conditions are set by a user.
In one embodiment, in order to save the space of the terminal, matching out the clear text corresponding to the specific text in the text object by using the preset text library includes:
sending an identification request carrying a character object to a server; so that the server matches clear characters corresponding to the specific characters of the character object through a preset character library; and receiving the identification response carrying the clear characters sent by the server.
In this embodiment, when the preset text library is stored on the server side, the interaction with the server is required, and the server realizes text matching.
Example two
Fig. 3 shows a flowchart of a photographing method according to an exemplary embodiment, as shown in fig. 3, the photographing method is used in a mobile terminal, and includes the following steps 201 and 205,
in step 201, a scene to be photographed displayed in a preview interface is identified in real time.
In step 202, when the designated object is identified to be included in the scene to be photographed, the contrast of the designated object is improved on the preview interface, and the focus for focusing the designated object is increased.
It should be noted that if the definition of the text of the designated object is greater than the preset value, the process may be ended.
In step 203, when the focus cannot be focused on the designated object, clear characters corresponding to specific characters in the character object are matched through the preset character library.
Here, the specific characters are the same as the characters of the clear characters.
In step 204, the clear text is substituted for the corresponding specific text in the preview interface.
In step 205, a scene to be photographed is photographed within a preset interface with clear text.
In the embodiment, not only can the clarity of the character object be ensured through focusing and improving the contrast, but also the unclear characters can be replaced through character matching, so that the effect of clear display and shooting is achieved.
EXAMPLE III
Fig. 4 shows a flowchart of a photographing method according to an exemplary embodiment, as shown in fig. 4, the photographing method is used in a server, and includes the following steps 301 and 305,
in step 301, a scene to be photographed displayed in the preview interface is identified in real time.
In step 302, when it is identified that the scene to be photographed includes the designated object, it is determined whether the definition of the designated object is greater than a preset value. If yes, go to step 303; if not, the process is ended.
In step 303, a clear text corresponding to the specific text in the text object is matched through a preset text library.
Here, the specific characters are the same as the characters of the clear characters.
In step 304, when the terminal is in the power saving state, the scene to be photographed is photographed to obtain a photo.
In step 305, the specific text is replaced with clear text in the photograph.
In the embodiment, the unclear characters are replaced by the characters in the matching manner, so that the effect of clear shooting effect is achieved, the display effect of pictures is improved, and the definition of the characters is increased.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods.
Example four
Fig. 5 is a block diagram illustrating an apparatus for taking a picture according to an exemplary embodiment, which may be implemented as part or all of an electronic device through software, hardware or a combination of both. As shown in fig. 5, the photographing apparatus includes:
the identification module 401 is configured to identify a scene to be photographed displayed in a preview interface in real time;
an increasing module 402, configured to increase a contrast of the specified object in the preview interface when the scene to be photographed is identified to include the specified object;
an adding module 403, configured to add a focus for focusing the specified object;
and a first shooting module 404, configured to shoot the scene to be photographed according to the contrast and the focus.
In one embodiment, as shown in fig. 6, when the designated object is a text object, the apparatus further includes:
a matching module 405, configured to match a clear text corresponding to a specific text in the text object through a preset text library when the specified object does not meet the requirement of the clear object; the character characteristics of the specific characters are the same as those of the clear characters;
a first replacing module 406, configured to replace, in the preview interface, the corresponding specific text with the clear text;
and a second shooting module 407, configured to shoot the scene to be photographed in the preset interface with the clear text.
In one embodiment, the requirements of the clear object include any of:
the focus is focusable with the specified object;
the definition of the designated object is greater than a predetermined value.
In one embodiment, as shown in fig. 7, the apparatus further comprises:
the third photographing module 408 is configured to photograph the scene to be photographed to obtain a photo;
a second replacing module 409 for replacing the specific text with the clear text in the photo.
In one embodiment, as shown in FIG. 8, the third photographing module 408 comprises:
and the shooting submodule 4081 is used for shooting the scene to be shot when the terminal is in the power-saving state to obtain a picture.
In one embodiment, as shown in fig. 9, the matching module 405 includes:
the sending submodule 4051 is configured to send an identification request carrying the literal object to a server; so that the server matches the clear characters corresponding to the specific characters of the character object through a preset character library;
the receiving submodule 4052 is configured to receive the identification response carrying the clear text sent by the server.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a photographing apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
identifying the scene to be photographed displayed in the preview interface in real time;
when the scene to be photographed is recognized to comprise the specified object, the contrast of the specified object is improved on the preview interface; and/or, increasing the focus for focusing the specified object;
and shooting the scene to be photographed according to the contrast and the focus.
The processor may be further configured to:
when the designated object is a textual object, the method further comprises:
when the designated object does not meet the requirement of a clear object, matching clear characters corresponding to specific characters in the character object through a preset character library; the character characteristics of the specific characters are the same as those of the clear characters;
in the preview interface, replacing the clear characters with corresponding specific characters;
and shooting the scene to be shot in the preset interface with the clear characters.
The requirement for a clear object includes any of:
the focus is focusable with the specified object;
the definition of the designated object is greater than a predetermined value.
After the clear text corresponding to the specific text is acquired from a preset text library according to the feature information, the method further comprises the following steps:
shooting the scene to be shot to obtain a picture;
in the photograph, the specific text is replaced with the clear text.
The step of shooting the scene to be photographed to obtain a picture comprises the following steps:
and when the terminal is in the power-saving state, shooting the scene to be shot to obtain a picture.
The step of matching out the clear characters corresponding to the specific characters in the character object through a preset character library comprises the following steps:
sending an identification request carrying the character object to a server; so that the server matches the clear characters corresponding to the specific characters of the character object through a preset character library;
and receiving the identification response carrying the clear characters sent by the server.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 10 is a block diagram illustrating an apparatus for photographing, which is adapted to a terminal device, according to an exemplary embodiment. For example, the apparatus 1700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Apparatus 1700 may include one or more of the following components: processing component 1702, memory 1704, power component 1706, multimedia component 1708, audio component 1710, input/output (I/O) interface 1712, sensor component 1714, and communications component 1716.
The processing component 1702 generally controls the overall operation of the apparatus 1700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing component 1702 may include one or more processors 1720 to execute instructions to perform all or a portion of the steps of the above-described method. Further, processing component 1702 may include one or more modules that facilitate interaction between processing component 1702 and other components. For example, processing component 1702 may include a multimedia module to facilitate interaction between multimedia component 1708 and processing component 1702.
The memory 1704 is configured to store various types of data to support operations at the apparatus 1700. Examples of such data include instructions for any application or method operating on the apparatus 1700, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1704 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 1706 provides power to the various components of the device 1700. The power components 1706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 1700.
The multimedia component 1708 includes a screen providing an output interface between the device 1700 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1708 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 1700 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
Audio component 1710 is configured to output and/or input audio signals. For example, audio component 1710 includes a Microphone (MIC) configured to receive external audio signals when apparatus 1700 is in an operating mode, such as a call mode, a record mode, and a voice recognition mode. The received audio signal may further be stored in the memory 1704 or transmitted via the communication component 1716. In some embodiments, audio component 1710 also includes a speaker for outputting audio signals.
The I/O interface 1712 provides an interface between the processing component 1702 and peripheral interface modules, such as a keyboard, click wheel, buttons, and the like. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 1714 includes one or more sensors for providing various aspects of state assessment for the apparatus 1700. For example, sensor assembly 1714 may detect an open/closed state of apparatus 1700, the relative positioning of components, such as a display and keypad of apparatus 1700, the change in position of apparatus 1700 or a component of apparatus 1700, the presence or absence of user contact with apparatus 1700, the orientation or acceleration/deceleration of apparatus 1700, and the change in temperature of apparatus 1700. The sensor assembly 1714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 1714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1716 is configured to facilitate communications between the apparatus 1700 and other devices in a wired or wireless manner. The apparatus 1700 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1716 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1716 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 1700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 1704 comprising instructions, executable by the processor 1720 of the apparatus 1700 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions, when executed by a processor of an apparatus 1700, enable the apparatus 1700 to perform the above-described photographing method, the method comprising:
identifying the scene to be photographed displayed in the preview interface in real time;
when the scene to be photographed is recognized to comprise the specified object, the contrast of the specified object is improved on the preview interface; and/or, increasing the focus for focusing the specified object;
and shooting the scene to be photographed according to the contrast and the focus.
When the designated object is a textual object, the method further comprises:
when the designated object does not meet the requirement of a clear object, matching clear characters corresponding to specific characters in the character object through a preset character library; the character characteristics of the specific characters are the same as those of the clear characters;
in the preview interface, replacing the clear characters with corresponding specific characters;
and shooting the scene to be shot in the preset interface with the clear characters.
The requirement for a clear object includes any of:
the focus is focusable with the specified object;
the definition of the designated object is greater than a predetermined value.
After the clear text corresponding to the specific text is acquired from a preset text library according to the feature information, the method further comprises the following steps:
shooting the scene to be shot to obtain a picture;
in the photograph, the specific text is replaced with the clear text.
The step of shooting the scene to be photographed to obtain a picture comprises the following steps:
and when the terminal is in the power-saving state, shooting the scene to be shot to obtain a picture.
The step of matching out the clear characters corresponding to the specific characters in the character object through a preset character library comprises the following steps:
sending an identification request carrying the character object to a server; so that the server matches the clear characters corresponding to the specific characters of the character object through a preset character library;
and receiving the identification response carrying the clear characters sent by the server.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (12)

1. A method of taking a picture, comprising:
identifying the scene to be photographed displayed in the preview interface in real time;
when the scene to be photographed is recognized to comprise the specified object, the contrast of the specified object is improved on the preview interface; and/or, increasing the focus for focusing the specified object;
shooting the scene to be shot according to the contrast and the focus;
when the designated object is a textual object, the method further comprises:
when the designated object does not meet the requirement of a clear object, matching clear characters corresponding to specific characters in the character object through a preset character library; the character characteristics of the specific characters are the same as those of the clear characters;
in the preview interface, replacing the clear characters with corresponding specific characters;
and shooting the scene to be shot in the preset interface with the clear characters.
2. The method of claim 1, wherein the requirement for a clear object comprises any of:
the focus is focusable with the specified object;
the definition of the designated object is greater than a predetermined value.
3. The method according to claim 1, wherein after the obtaining of the clear text corresponding to the specific text from a preset text library according to the feature information, the method further comprises:
shooting the scene to be shot to obtain a picture;
in the photograph, the specific text is replaced with the clear text.
4. The method of claim 3, wherein the capturing the scene to be photographed to obtain a picture comprises:
and when the terminal is in the power-saving state, shooting the scene to be shot to obtain a picture.
5. The method of claim 1, wherein matching out the clear text corresponding to the specific text in the text object through a preset text library comprises:
sending an identification request carrying the character object to a server; so that the server matches the clear characters corresponding to the specific characters of the character object through a preset character library;
and receiving the identification response carrying the clear characters sent by the server.
6. A photographing apparatus, comprising:
the recognition module is used for recognizing the scene to be photographed displayed in the preview interface in real time;
the improvement module is used for improving the contrast of the specified object in the preview interface when the scene to be photographed is identified to comprise the specified object;
the adding module is used for adding a focus for focusing the specified object;
the first shooting module is used for shooting the scene to be shot according to the contrast and the focus;
when the designated object is a text object, the apparatus further comprises:
the matching module is used for matching out clear characters corresponding to specific characters in the character objects through a preset character library when the specified object does not meet the requirement of the clear objects; the character characteristics of the specific characters are the same as those of the clear characters;
the first replacing module is used for replacing the corresponding specific characters with the clear characters in the preview interface;
and the second shooting module is used for shooting the scene to be shot in the preset interface with the clear characters.
7. The apparatus of claim 6, wherein the requirement for a clear object comprises any of:
the focus is focusable with the specified object;
the definition of the designated object is greater than a predetermined value.
8. The apparatus of claim 6, further comprising:
the third shooting module is used for shooting the scene to be shot to obtain a photo;
and the second replacing module is used for replacing the specific characters with the clear characters in the photos.
9. The apparatus of claim 8, wherein the third photographing module comprises:
and the shooting submodule is used for shooting the scene to be shot to obtain a picture when the terminal is in the power-saving state.
10. The apparatus of claim 6, wherein the matching module comprises:
the sending submodule is used for sending an identification request carrying the character object to a server; so that the server matches the clear characters corresponding to the specific characters of the character object through a preset character library;
and the receiving submodule is used for receiving the identification response which is sent by the server and carries the clear characters.
11. A photographing apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
identifying the scene to be photographed displayed in the preview interface in real time;
when the scene to be photographed is recognized to comprise the specified object, the contrast of the specified object is improved on the preview interface; and/or, increasing the focus for focusing the specified object;
shooting the scene to be shot according to the contrast and the focus;
when the specified object is a textual object, the processor is further configured to:
when the designated object does not meet the requirement of a clear object, matching clear characters corresponding to specific characters in the character object through a preset character library; the character characteristics of the specific characters are the same as those of the clear characters;
in the preview interface, replacing the clear characters with corresponding specific characters;
and shooting the scene to be shot in the preset interface with the clear characters.
12. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
CN201710814203.8A 2017-09-11 2017-09-11 Photographing method and device Active CN107682623B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710814203.8A CN107682623B (en) 2017-09-11 2017-09-11 Photographing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710814203.8A CN107682623B (en) 2017-09-11 2017-09-11 Photographing method and device

Publications (2)

Publication Number Publication Date
CN107682623A CN107682623A (en) 2018-02-09
CN107682623B true CN107682623B (en) 2020-06-02

Family

ID=61135853

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710814203.8A Active CN107682623B (en) 2017-09-11 2017-09-11 Photographing method and device

Country Status (1)

Country Link
CN (1) CN107682623B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110881105B (en) * 2019-11-12 2021-08-24 维沃移动通信有限公司 Shooting method and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101609505A (en) * 2008-06-19 2009-12-23 三星电子株式会社 The method and apparatus of identification character
EP2187623A1 (en) * 2008-11-14 2010-05-19 Fujinon Corporation Autofocus system
CN102013094A (en) * 2010-11-25 2011-04-13 上海合合信息科技发展有限公司 Method and system for improving definition of text images
CN103685905A (en) * 2012-09-17 2014-03-26 联想(北京)有限公司 Photographing method and electronic equipment
CN103702024A (en) * 2013-12-02 2014-04-02 宇龙计算机通信科技(深圳)有限公司 Image processing device and image processing method
CN104079812A (en) * 2013-03-25 2014-10-01 联想(北京)有限公司 Method and device of acquiring image information
CN105678242A (en) * 2015-12-30 2016-06-15 小米科技有限责任公司 Focusing method and apparatus in the mode of holding certificate in hands

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101609505A (en) * 2008-06-19 2009-12-23 三星电子株式会社 The method and apparatus of identification character
EP2187623A1 (en) * 2008-11-14 2010-05-19 Fujinon Corporation Autofocus system
CN102013094A (en) * 2010-11-25 2011-04-13 上海合合信息科技发展有限公司 Method and system for improving definition of text images
CN103685905A (en) * 2012-09-17 2014-03-26 联想(北京)有限公司 Photographing method and electronic equipment
CN104079812A (en) * 2013-03-25 2014-10-01 联想(北京)有限公司 Method and device of acquiring image information
CN103702024A (en) * 2013-12-02 2014-04-02 宇龙计算机通信科技(深圳)有限公司 Image processing device and image processing method
CN105678242A (en) * 2015-12-30 2016-06-15 小米科技有限责任公司 Focusing method and apparatus in the mode of holding certificate in hands

Also Published As

Publication number Publication date
CN107682623A (en) 2018-02-09

Similar Documents

Publication Publication Date Title
CN108419016B (en) Shooting method and device and terminal
CN110557547B (en) Lens position adjusting method and device
EP3147802B1 (en) Method and apparatus for processing information
US20170054906A1 (en) Method and device for generating a panorama
CN104869314A (en) Photographing method and device
CN105549300A (en) Automatic focusing method and device
CN104850643B (en) Picture comparison method and device
CN105357449A (en) Shooting method and device, and image processing method and apparatus
CN107222576B (en) Photo album synchronization method and device
CN111461950B (en) Image processing method and device
CN107682623B (en) Photographing method and device
CN114339019B (en) Focusing method, focusing device and storage medium
CN114666490B (en) Focusing method, focusing device, electronic equipment and storage medium
CN107122356B (en) Method and device for displaying face value and electronic equipment
CN110874829B (en) Image processing method and device, electronic device and storage medium
CN108769513B (en) Camera photographing method and device
CN108108668B (en) Age prediction method and device based on image
CN108366237B (en) Projection image adjusting method and device and computer readable storage medium
CN107679123B (en) Picture naming method and device
CN107707819B (en) Image shooting method, device and storage medium
CN110933300B (en) Image processing method and electronic terminal equipment
US11363190B2 (en) Image capturing method and device
CN114339017B (en) Distant view focusing method, device and storage medium
CN109710146B (en) Document display method and device
CN106713748B (en) Method and device for sending pictures

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