CN109509162B - Image acquisition method, terminal, storage medium and processor - Google Patents

Image acquisition method, terminal, storage medium and processor Download PDF

Info

Publication number
CN109509162B
CN109509162B CN201710828360.4A CN201710828360A CN109509162B CN 109509162 B CN109509162 B CN 109509162B CN 201710828360 A CN201710828360 A CN 201710828360A CN 109509162 B CN109509162 B CN 109509162B
Authority
CN
China
Prior art keywords
image
terminal
specified object
current
dynamic
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
CN201710828360.4A
Other languages
Chinese (zh)
Other versions
CN109509162A (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201710828360.4A priority Critical patent/CN109509162B/en
Publication of CN109509162A publication Critical patent/CN109509162A/en
Application granted granted Critical
Publication of CN109509162B publication Critical patent/CN109509162B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration by the use of more than one image, e.g. averaging, subtraction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20212Image combination
    • G06T2207/20221Image fusion; Image merging

Abstract

The application discloses an image acquisition method, a terminal, a storage medium and a processor. Wherein the method comprises the following steps: the terminal acquires a current image; the terminal acquires a dynamic image corresponding to the current image; and the terminal synthesizes the dynamic image and the current image to obtain a synthesized image. The terminal in the prior art can only acquire the static image, and the technical problem of poor user experience is solved.

Description

Image acquisition method, terminal, storage medium and processor
Technical Field
The present invention relates to the field of image processing, and in particular, to an image acquisition method, a terminal, a storage medium, and a processor.
Background
With the development of internet technology, more and more users like to share images shot by themselves to other users through the internet, and users can shoot still images or record videos through terminals such as cameras, video cameras, mobile phones and the like.
In order to show dynamic scenes to other users, the users need to shoot a plurality of static images or record videos, the dynamic scenes cannot be clearly shown by the plurality of static images, and the recorded videos are limited when being shown to the users due to large occupied memory, so that the user experience is poor.
Aiming at the problems that a terminal in the prior art can only acquire static images and the user experience is poor, no effective solution is proposed at present.
Disclosure of Invention
The embodiment of the application provides an image acquisition method, a terminal, a storage medium and a processor, which are used for at least solving the technical problems that a terminal in the prior art can only acquire static images and the user experience is poor.
According to an aspect of an embodiment of the present application, there is provided an image acquisition method including: the terminal acquires a current image; the terminal acquires a dynamic image corresponding to the current image; and the terminal synthesizes the dynamic image and the current image to obtain a synthesized image.
According to another aspect of the embodiments of the present application, there is further provided an image acquisition method, including: receiving a selection instruction of a user; selecting a designated image from a preset image database according to the selection instruction, and taking the designated image as a current image; acquiring a dynamic image corresponding to the current image; and synthesizing the dynamic image and the current image to obtain a synthesized image.
According to another aspect of the embodiments of the present application, there is also provided a terminal, including: the image acquisition device is used for acquiring a current image; and the processor is used for acquiring the dynamic image corresponding to the current image, synthesizing the dynamic image and the current image, and obtaining a synthesized image.
According to another aspect of the embodiments of the present application, there is also provided a storage medium, including a stored program, where the program controls a device in which the storage medium is located to perform the following steps when running: acquiring a dynamic image corresponding to a current image acquired by a terminal; and synthesizing the dynamic image and the current image to obtain a synthesized image.
According to another aspect of the embodiments of the present application, there is also provided a processor for running a program, wherein the program executes the following steps: acquiring a dynamic image corresponding to a current image acquired by a terminal; and synthesizing the dynamic image and the current image to obtain a synthesized image.
According to another aspect of the embodiments of the present application, there is also provided a terminal, including: the image acquisition device is used for acquiring a current image; a storage medium storing a program, wherein the program, at run-time, performs the following processing steps on data output from an image capturing device: and acquiring a dynamic image corresponding to the current image acquired by the terminal, and synthesizing the dynamic image and the current image to obtain a synthesized image.
In the embodiment of the application, the current image is acquired, the dynamic image corresponding to the current image is acquired, the dynamic image is synthesized with the current image, and the synthesized image is obtained.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
FIG. 1 is a flow chart of an alternative image acquisition method according to an embodiment of the present application;
FIG. 2 is a schematic illustration of an alternative current image according to an embodiment of the present application;
FIG. 3 is a schematic illustration of another alternative current image according to an embodiment of the present application;
FIG. 4 is a schematic illustration of yet another alternative current image according to an embodiment of the present application;
fig. 5 is a hardware configuration block diagram of a computer terminal for implementing an image acquisition method according to an embodiment of the present application;
FIG. 6 is a flow chart of an image acquisition method according to an embodiment of the present application;
FIG. 7 is a schematic diagram of an image acquisition device according to an embodiment of the present application;
FIG. 8 is a flow chart of another image acquisition method according to an embodiment of the present application;
FIG. 9 is a schematic diagram of another image acquisition device according to an embodiment of the present application; and
fig. 10 is a schematic diagram of a terminal according to an embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
First, partial terms or terminology appearing in describing embodiments of the present application are applicable to the following explanation:
dynamic image: when a particular set of still images, such as geometric figures, is switched at a specified frequency, a certain dynamic picture effect is produced.
Virtual image: visual, audible, and tactile things that are transmitted to the sensory organ tips of the user, which appear to originate from a three-dimensional space surrounding the user, are produced on a computer using imaging geometry principles in a mathematical modeling manner.
pinch gesture: i.e. pinch gestures, by which the scale of view elements can be easily changed.
Example 1
In the related art, a terminal can only collect a static image and cannot clearly show a dynamic scene, and the collected video needs to occupy a large memory and is easy to be limited, so that the user experience is poor.
Aiming at the problems, the embodiment of the application provides a novel image acquisition method, wherein a dynamic image is obtained by identifying a designated object in a current image and changing the form of the designated object in a physical simulation mode, and then the dynamic image is synthesized with the current image to obtain a final synthesized image, so that the scene in the current image is changed or the static scene in the current image is dynamically changed, and the experience and the sensitivity of a user are improved.
In order to achieve the above object, a technical scheme adopted in this embodiment will be described in detail by taking an example that a terminal performs acquisition processing on an image. As shown in fig. 1, the image acquisition method provided in this embodiment may include the following processing steps:
step S102, identifying the scene in the current image, and extracting the specified object and the characteristic parameters of the specified object.
Optionally, after the terminal acquires the current image, the terminal can identify the scene in the current image, and identify the elements which can be accurately physically simulated, namely, extract the specified object and the parameters corresponding to the specified object, such as water, fire, snow, tree and other specified objects; in addition to visual recognition, elements in the scene, that is, feature parameters such as GPS information, brightness, orientation, etc., can be deduced through the GPS information stored in the current image and the orientation of the terminal.
For example, taking an image as shown in fig. 2 as an example, the current image collected by the terminal is a piece of sand, the terminal identifies a scene in the current image, the extracted specified object is the sand, and the characteristic parameters of the specified object can be extracted, that is, the GPS information of the current image, for example, a certain beach, and also a certain cell, are collected.
Step S104, obtaining the dynamic image according to the specified object and the characteristic parameters of the specified object.
In an alternative scheme, after extracting the specified object and the characteristic parameters of the specified object, the terminal may generate a dynamic image according to the specified object and the characteristic parameters of the specified object, that is, the specified object and the characteristic parameters of the specified object are used as input of an image generation rule, so as to obtain the dynamic image associated with the current image.
In another alternative scheme, after the terminal extracts the specified object and the characteristic parameters of the specified object, the specified object and the characteristic parameters of the specified object may be transmitted to the network server, the network server queries the image generation rule corresponding to the specified object from the database, adjusts the image generation rule with the characteristic parameters, and generates the dynamic image according to the adjusted image generation rule, that is, the network server may query the physical simulation model corresponding to the specified object from the database, input the specified object and the characteristic parameters into the physical simulation model, obtain the dynamic image, and return the dynamic image to the terminal.
For example, taking a moving image as shown in fig. 3 as an example, after the extracted specified object is sand and the characteristic parameter is a certain cell, it may be determined that the current image is sand shot into a sand pool according to the sand and the cell, and further the moving image may be obtained as playing the sand in the sand pool of the cell, and pouring the sand into the sand pool with a bucket.
For another example, taking a moving image as shown in fig. 4 as an example, after the extracted specified object is sand and the characteristic parameter is a certain beach, the current image may be determined as the sand in the photographed beach according to the sand and the beach, and further the moving image may be obtained as the sand played in the beach, the sand is pressed by hand and moved left and right.
And S106, attaching the dynamic image to the current image to obtain a composite image.
Optionally, the terminal may attach the dynamic image of the specified object to a corresponding position in the current image, to obtain a composite image of the current image.
Step S108, outputting the synthesized image.
Alternatively, the terminal may display the final composite image on a display, which the user may view.
Step S110, the physical form of the specified object is adjusted according to the user trigger instruction.
In an alternative scheme, after the dynamic image is obtained, the terminal can be displayed to the user, and the user can adjust the proportion of the designated object through the pinch gesture, so that the final dynamic image is obtained. For example, if the specified object is a flame, the user may adjust the size of the flame through a pinch gesture.
In another alternative scheme, the terminal may display to the user after obtaining the dynamic image, and the user may change the simulation scene through a click operation or a slide operation, thereby adjusting the dynamic effect of the specified object. For example, if the scene in the current image is beach, the designated object is sand, and the user can form a corresponding dynamic effect on the beach through a sliding operation. For another example, if the scene in the current image is a water surface, the designated object is water, and the user may form a dynamic effect of water ripple diffusion on the water surface through a single finger clicking operation, or the user may form a dynamic effect of simultaneous diffusion of a plurality of water ripples through a plurality of finger clicking operations.
Alternatively, after the physical form of the specified object is adjusted, the user may store the composite image locally on the terminal, and may share the composite image to other users through the internet, and the other users may view the composite image instead of just the still image.
Through the scheme, the scene in the image can be automatically identified, then the dynamic image is generated in a physical simulation mode, the composite image is further obtained, the interaction of the user is allowed, and the experience and the sensitivity of the user are improved.
Example 2
In accordance with embodiments of the present application, there is also provided an embodiment of an image acquisition method, it being noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system, such as a set of computer executable instructions, and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order other than that illustrated herein.
The method embodiment provided in the first embodiment of the present application may be executed in a mobile terminal, a computer terminal or a similar computing device. Fig. 5 is a hardware configuration block diagram of a computer terminal for implementing an image capturing method according to an embodiment of the present application. As shown in fig. 5, the computer terminal 50 may include one or more processors 502 (shown as 502a, 502b, … …,502n in the figures) (the processor 502 may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA or the like processing means), a memory 504 for storing data, and a transmission means 506 for communication functions. In addition, the method may further include: a display, an input/output interface (I/O interface), a Universal Serial Bus (USB) port (which may be included as one of the ports of the I/O interface), a power supply, and/or a camera. It will be appreciated by those of ordinary skill in the art that the configuration shown in fig. 5 is merely illustrative and is not intended to limit the configuration of the electronic device described above. For example, the computer terminal 50 may also include more or fewer components than shown in FIG. 5, or have a different configuration than shown in FIG. 5.
It should be noted that the one or more processors 502 and/or other data processing circuits described above may be referred to herein generally as "data processing circuits. The data processing circuit may be embodied in whole or in part in software, hardware, firmware, or any other combination. Furthermore, the data processing circuitry may be a single stand-alone processing module or incorporated, in whole or in part, into any of the other elements in the computer terminal 50. As with the processors referred to in the embodiments of the present application, the data processing circuitry acts as a processor control (e.g., selection of the path of the variable resistor termination connected to the interface).
The memory 504 may be used to store software programs and modules of application software, such as program instructions/data storage devices corresponding to the image capturing method in the embodiment of the present application, and the processor 502 executes the software programs and modules stored in the memory 504, thereby performing various functional applications and data processing, that is, implementing the image capturing method described above. Memory 504 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 504 may further comprise memory located remotely from the processor 502, which may be connected to the computer terminal 50 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 506 is used to receive or transmit data via a network. The specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal 50. In one example, the transmission device 506 includes a network adapter (Network Interface Controller, NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 506 may be a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of the computer terminal 50.
It should be noted here that in some alternative embodiments, the computer device (or mobile device) shown in fig. 5 described above may include hardware elements (including circuitry), software elements (including computer code stored on a computer-readable medium), or a combination of both hardware and software elements. It should be noted that fig. 5 is only one example of a specific example, and is intended to illustrate the types of components that may be present in the computer device (or mobile device) described above.
In the above-described operating environment, the present application provides an image acquisition method as shown in fig. 6. Fig. 6 is a flowchart of an image acquisition method according to an embodiment of the present application. As shown in fig. 6, the method comprises the following processing steps:
step S602, the terminal collects the current image.
Specifically, the terminal may be a mobile device such as a smart phone (including an Android mobile phone and an IOS mobile phone), a tablet personal computer, an IPAD, a palm computer, etc., a computer terminal such as a PC, a notebook computer, etc., or an application APP (for example, a beauty drawing show) installed on the mobile device or the computer terminal, which is not particularly limited in the present invention.
In step S604, the terminal acquires a moving image corresponding to the current image.
Alternatively, this step may be implemented by, but not limited to, the following: the terminal extracts the appointed object in the current image and the characteristic parameters of the appointed object; the terminal acquires a virtual image corresponding to the specified object according to the characteristic parameters, and takes the virtual image as a dynamic image. In an alternative scheme, the virtual image corresponding to the specified object may be acquired by: and the terminal generates a virtual image according to the specified object and the characteristic parameters. In another alternative, the virtual image corresponding to the specified object may be acquired by: the terminal sends a designated object and characteristic parameters to the network side equipment; the terminal receives a virtual image generated by the network side equipment according to the specified object and the characteristic parameters. Further, the terminal may receive a virtual image generated by the network side device according to the specified object and the feature parameter by: the terminal determines a database corresponding to the appointed object, wherein the database stores image generation rules of virtual images; the terminal adjusts the image generation rule according to the parameter value of the characteristic parameter, and generates a virtual image according to the adjusted image generation rule.
Alternatively, this step may be implemented by, but not limited to, the following means: the terminal acquires a plurality of images sequentially acquired within a preset time period, wherein the images comprise a current image; the terminal generates a moving image from a plurality of images.
In step S606, the terminal synthesizes the dynamic image and the current image to obtain a synthesized image.
Optionally, after synthesizing the dynamic image and the current image to obtain the synthesized image, the method may further include the following processing steps: the terminal outputs a composite image; the terminal receives a triggering instruction of a user; under the triggering of the triggering instruction, the terminal adjusts the physical form of the appointed object in the synthesized image and displays the change process of the physical form.
It should be noted that, for simplicity of description, the foregoing method embodiments are all expressed as a series of action combinations, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required in the present application.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method described in the embodiments of the present application.
Example 3
There is further provided, according to an embodiment of the present application, an image capturing device for implementing the above image capturing method, as shown in fig. 7, the device 700 includes: an acquisition unit 702, an acquisition unit 704 and a synthesis unit 706.
Wherein, the acquisition unit 701 is used for acquiring a current image.
The acquisition unit 704 is configured to acquire a moving image corresponding to a current image.
Alternatively, the unit may include, but is not limited to, the following modules: the extraction module is used for extracting the specified object and the characteristic parameters of the specified object in the current image; the first acquisition module is used for acquiring a virtual image corresponding to the specified object according to the characteristic parameters, and taking the virtual image as a dynamic image. In an alternative, the first acquisition module may include the following submodules: and the generation sub-module is used for generating a virtual image according to the specified object and the characteristic parameters. In another alternative, the first acquisition module may include the following sub-modules: a sending submodule, configured to send a specified object and a feature parameter to a network side device; and the receiving sub-module is used for receiving the virtual image generated by the network side equipment according to the specified object and the characteristic parameters. Further, the receiving sub-module may further include the following heavy sub-modules: the determining submodule is used for determining a database corresponding to the appointed object, wherein the database stores image generation rules of the virtual images; and the generation and reconstruction sub-module is used for adjusting the image generation rule according to the parameter value of the characteristic parameter and generating a virtual image according to the adjusted image generation rule.
Alternatively, the unit may also pass through the following modules, but is not limited thereto: the second acquisition module is used for acquiring a plurality of images which are sequentially acquired within a preset time period, wherein the images comprise the current image; and the generation module is used for generating dynamic images according to the plurality of images.
The synthesizing unit 706 is configured to synthesize the moving image and the current image to obtain a synthesized image.
Optionally, the apparatus may further comprise a unit: the receiving unit is used for receiving a triggering instruction of a user; the terminal is used for displaying the physical form of the appointed object in the synthesized image according to the physical form change process.
It should be noted that, the preferred implementation manner in this embodiment may be referred to the related descriptions in embodiments 1 and 2, and will not be described herein.
Example 4
In accordance with embodiments of the present application, there is also provided an embodiment of an image acquisition method, it being noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system, such as a set of computer executable instructions, and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order other than that illustrated herein.
Fig. 8 is a flowchart of another image acquisition method according to an embodiment of the present application. As shown in fig. 8, the method comprises the following processing steps:
step S802, receiving a selection instruction of a user;
step S804, selecting a designated image from a preset image database according to the selection instruction, and taking the designated image as a current image;
step S806, obtaining a dynamic image corresponding to the current image;
step S808, synthesizing the dynamic image and the current image to obtain a synthesized image.
Specifically, the uploading instruction may be an instruction for selecting an image to be dynamically processed by a user; the above-described specified image may be an image selected by the user to be subjected to the dynamic processing.
In an alternative scheme, when a user needs to perform dynamic processing on a shot image, an application program installed on a terminal can be started, a corresponding function is selected in an application program interface, a selection instruction is generated by clicking the image needing to perform dynamic processing, the application program can select a corresponding appointed image from a gallery according to the selection instruction to obtain a current image, the current image is identified, an appointed object and characteristic parameters of the appointed object in the current image are extracted, a virtual image is generated according to the appointed object and the characteristic parameters of the appointed object, the dynamic image is obtained, the dynamic image is attached to the current image, a composite image is generated, and after the user determines that the composite image is correct, the composite image can be stored in the terminal locally and shared with other users through the Internet.
For example, the embodiments described above will be described in detail with reference to the figure-drawing illustration. The user can start the image-beautifying and image-displaying software, and select an image from the local image library as the current image, the image-beautifying and image-displaying software can send the current image to the server after receiving the current image, the server identifies the current image, extracts specific objects in the current image and characteristic parameters of the specific objects, the server queries the database to obtain image generation rules corresponding to the specific objects, adjusts the image generation rules according to the characteristic parameters, generates dynamic images according to the adjusted image generation rules, attaches the dynamic images to the current image to generate a composite image, returns the composite image to the image-beautifying and image-displaying software, and the user can store the composite image to the local.
It should be noted that, the preferred implementation manner in this embodiment may be referred to the related descriptions in embodiments 1 and 2, and will not be described herein.
Example 5
According to an embodiment of the present application, there is further provided an image capturing apparatus for implementing the above image capturing method, as shown in fig. 9, the apparatus 900 includes: a receiving unit 902, a selecting unit 904, an obtaining unit 906 and a synthesizing unit 908.
The receiving unit 902 is configured to receive a selection instruction of a user; the selection unit 904 is configured to select a specified image from a preset image database according to a selection instruction, and take the specified image as a current image; the acquiring unit 906 is configured to acquire a dynamic image corresponding to a current image; the synthesizing unit 908 is used for synthesizing the moving image and the current image to obtain a synthesized image.
It should be noted that, the preferred implementation manner in this embodiment may be referred to the related descriptions in embodiments 1 and 4, and will not be described herein.
Example 6
According to an embodiment of the present application, there is further provided a terminal for implementing the above image acquisition method, as shown in fig. 10, where the terminal includes:
an image acquisition device 1002, configured to acquire a current image.
And a processor 1004, configured to acquire a dynamic image corresponding to the current image, and synthesize the dynamic image and the current image to obtain a synthesized image.
Optionally, the terminal may further include: and the triggering component is used for receiving a triggering instruction of a user and triggering the image acquisition device to acquire the current image.
It should be noted that, the preferred implementation manner in this embodiment may be referred to the related descriptions in embodiments 1 and 2, and will not be described herein.
Example 7
Embodiments of the present application may provide a computer terminal, which may be any one of a group of computer terminals. Alternatively, in the present embodiment, the above-described computer terminal may be replaced with a terminal device such as a mobile terminal.
Alternatively, in this embodiment, the above-mentioned computer terminal may be located in at least one network device among a plurality of network devices of the computer network.
In this embodiment, the above-mentioned computer terminal may execute the program code for the following steps in the image capturing method: acquiring a dynamic image corresponding to a current image acquired by a terminal; and synthesizing the dynamic image and the current image to obtain a synthesized image.
Alternatively, the specific structure of the computer terminal provided in this embodiment may refer to, but is not limited to, the structure of the computer terminal shown in fig. 5, and the computer terminal may include more or less structural features than the structure of the computer terminal shown in fig. 5.
The memory may be used to store software programs and modules, such as program instructions/modules corresponding to the security hole detection method and apparatus in the embodiments of the present application, and the processor executes the software programs and modules stored in the memory, thereby executing various functional applications and data processing, that is, implementing the above-mentioned image acquisition method. The memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory may further include memory remotely located with respect to the processor, the remote memory being connectable to the terminal through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The processor may call the information and the application program stored in the memory through the transmission device to perform the following steps: acquiring a dynamic image corresponding to a current image acquired by a terminal; and synthesizing the dynamic image and the current image to obtain a synthesized image.
Optionally, the above processor may further execute program code for: extracting a specified object in the current image and characteristic parameters of the specified object; and acquiring a virtual image corresponding to the specified object according to the characteristic parameters, and taking the virtual image as a dynamic image.
Optionally, the above processor may further execute program code for: and generating a virtual image according to the specified object and the characteristic parameters.
Optionally, the above processor may further execute program code for: sending the appointed object and the characteristic parameters to the network side equipment; and receiving the virtual image generated by the network side equipment according to the specified object and the characteristic parameters.
Optionally, the above processor may further execute program code for: determining a database corresponding to the specified object, wherein the database stores image generation rules of the virtual images; and adjusting an image generation rule according to the parameter value of the characteristic parameter, and generating a virtual image according to the adjusted image generation rule.
Optionally, the above processor may further execute program code for: acquiring a plurality of images sequentially acquired within a preset time period, wherein the plurality of images comprise a current image; a moving image is generated from the plurality of images.
Optionally, the above processor may further execute program code for: synthesizing the dynamic image and the current image, and outputting a synthesized image after obtaining the synthesized image; receiving a triggering instruction of a user; and under the triggering of the triggering instruction, the physical form of the specified object in the synthesized image is adjusted, and the change process of the physical form is displayed.
By adopting the embodiment of the application, an image acquisition scheme is provided. The terminal in the prior art can only acquire static images, and the technical problem of poor user experience is solved.
It will be appreciated by those skilled in the art that the computer terminal provided in this embodiment may also be a terminal device such as a smart phone (e.g. an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a mobile internet device (Mobile Internet Devices, MID), a PAD, etc. The structure of the computer terminal provided in the present embodiment may be referred to as a computer terminal shown in fig. 5, but is not limited thereto. For example, the computer terminal provided in this embodiment may further include more or fewer components (such as a network interface, a display device, etc.) than those shown in fig. 5, or have a different configuration from that shown in fig. 5.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program for instructing a terminal device to execute in association with hardware, the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
Example 8
Embodiments of the present application also provide a storage medium. Alternatively, in this embodiment, the storage medium may be used to store the program code executed by the image capturing method provided in the first embodiment.
Alternatively, in this embodiment, the storage medium may be located in any one of the computer terminals in the computer terminal group in the computer network, or in any one of the mobile terminals in the mobile terminal group.
Alternatively, in the present embodiment, the storage medium is configured to store program code for performing the steps of: acquiring a dynamic image corresponding to a current image acquired by a terminal; and synthesizing the dynamic image and the current image to obtain a synthesized image.
Example 9
According to an embodiment of the present application, there is also provided a terminal for implementing the above image acquisition method, including:
the image acquisition device is used for acquiring a current image;
a storage medium storing a program, wherein the program, at run-time, performs the following processing steps on data output from an image capturing device: and obtaining a dynamic image corresponding to the current image, and synthesizing the dynamic image and the current image to obtain a synthesized image.
It should be noted that, the preferred implementation manner in this embodiment may be referred to the related descriptions in embodiments 1 and 2, and will not be described herein.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology content may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, such as the division of the units, is merely a logical function division, and may be implemented in another manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application and are intended to be comprehended within the scope of the present application.

Claims (11)

1. An image acquisition method, comprising:
the terminal acquires a current image;
the terminal acquires a dynamic image corresponding to the current image;
the terminal obtains a dynamic image corresponding to the current image, which comprises the following steps: the terminal extracts a specified object in the current image and characteristic parameters of the specified object, wherein the characteristic parameters comprise: positioning information, brightness information and orientation information; the terminal generates a virtual image according to the specified object and the characteristic parameter, and takes the virtual image as the dynamic image;
and the terminal synthesizes the dynamic image and the current image to obtain a synthesized image.
2. The method of claim 1, wherein acquiring a virtual image corresponding to the specified object in accordance with the characteristic parameter comprises:
the terminal sends the appointed object and the characteristic parameters to network side equipment;
and the terminal receives the virtual image generated by the network side equipment according to the specified object and the characteristic parameters.
3. The method according to claim 2, wherein the terminal receiving the virtual image generated by the network side device according to the specified object and the feature parameter includes:
the terminal determines a database corresponding to the specified object, wherein the database stores the image generation rule of the virtual image;
the terminal adjusts the image generation rule according to the parameter value of the characteristic parameter, and generates the virtual image according to the adjusted image generation rule.
4. The method according to claim 1, wherein the terminal acquires a moving image corresponding to the current image, comprising:
the terminal acquires a plurality of images sequentially acquired within a preset time period, wherein the images comprise the current image;
the terminal generates the dynamic image according to the plurality of images.
5. The method according to any one of claims 1 to 4, wherein the terminal synthesizes the moving image with the current image to obtain a synthesized image, and further comprising:
the terminal outputs the synthesized image;
the terminal receives a triggering instruction of a user;
and under the triggering of the triggering instruction, the terminal adjusts the physical form of the appointed object in the synthetic image and displays the change process of the physical form.
6. An image acquisition method, comprising:
receiving a selection instruction of a user;
selecting a designated image from a preset image database according to the selection instruction, and taking the designated image as a current image;
acquiring a dynamic image corresponding to the current image;
wherein, obtain the dynamic image corresponding to said current picture, comprising: extracting a specified object in the current image and characteristic parameters of the specified object, wherein the characteristic parameters comprise: positioning information, brightness information and orientation information; generating a virtual image according to the specified object and the characteristic parameter, and taking the virtual image as the dynamic image;
and synthesizing the dynamic image and the current image to obtain a synthesized image.
7. A terminal, comprising:
the image acquisition device is used for acquiring a current image;
the processor is used for acquiring a dynamic image corresponding to the current image, synthesizing the dynamic image and the current image, and obtaining a synthesized image;
wherein, obtain the dynamic image corresponding to said current picture, comprising: extracting a specified object in the current image and characteristic parameters of the specified object, wherein the characteristic parameters comprise: positioning information, brightness information and orientation information; generating a virtual image according to the specified object and the characteristic parameter, and taking the virtual image as the dynamic image.
8. The terminal of claim 7, further comprising: and the triggering component is used for receiving a triggering instruction of a user and triggering the image acquisition device to acquire the current image.
9. A storage medium comprising a stored program, wherein the program, when run, controls a device on which the storage medium resides to perform the steps of: acquiring a dynamic image corresponding to a current image acquired by a terminal; synthesizing the dynamic image and the current image to obtain a synthesized image;
the method for acquiring the dynamic image corresponding to the current image acquired by the terminal comprises the following steps: extracting a specified object in the current image and characteristic parameters of the specified object, wherein the characteristic parameters comprise: positioning information, brightness information and orientation information; and the terminal generates a virtual image according to the specified object and the characteristic parameter, and takes the virtual image as the dynamic image.
10. A processor for running a program, wherein the program when run performs the steps of: acquiring a dynamic image corresponding to a current image acquired by a terminal; synthesizing the dynamic image and the current image to obtain a synthesized image;
the method for acquiring the dynamic image corresponding to the current image acquired by the terminal comprises the following steps: extracting a specified object in the current image and characteristic parameters of the specified object, wherein the characteristic parameters comprise: positioning information, brightness information and orientation information; generating a virtual image according to the specified object and the characteristic parameter, and taking the virtual image as the dynamic image.
11. A terminal, comprising:
the image acquisition device is used for acquiring a current image;
a storage medium storing a program, wherein the program, when executed, performs the following processing steps on data output from the image capturing apparatus: acquiring a dynamic image corresponding to the current image, and synthesizing the dynamic image and the current image to obtain a synthesized image;
wherein, obtain the dynamic image corresponding to said current picture, comprising: extracting a specified object in the current image and characteristic parameters of the specified object, wherein the characteristic parameters comprise: positioning information, brightness information and orientation information; generating a virtual image according to the specified object and the characteristic parameter, and taking the virtual image as the dynamic image.
CN201710828360.4A 2017-09-14 2017-09-14 Image acquisition method, terminal, storage medium and processor Active CN109509162B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710828360.4A CN109509162B (en) 2017-09-14 2017-09-14 Image acquisition method, terminal, storage medium and processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710828360.4A CN109509162B (en) 2017-09-14 2017-09-14 Image acquisition method, terminal, storage medium and processor

Publications (2)

Publication Number Publication Date
CN109509162A CN109509162A (en) 2019-03-22
CN109509162B true CN109509162B (en) 2023-05-30

Family

ID=65744498

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710828360.4A Active CN109509162B (en) 2017-09-14 2017-09-14 Image acquisition method, terminal, storage medium and processor

Country Status (1)

Country Link
CN (1) CN109509162B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110430364A (en) * 2019-08-26 2019-11-08 武汉众果科技有限公司 A kind of stingy figure local dynamic station figure synthetic method of taking pictures of photographing

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106937039A (en) * 2017-04-26 2017-07-07 努比亚技术有限公司 A kind of imaging method based on dual camera, mobile terminal and storage medium

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005228022A (en) * 2004-02-13 2005-08-25 Gaiax Co Ltd Image editing system
CN101098241A (en) * 2006-06-26 2008-01-02 腾讯科技(深圳)有限公司 Method and system for implementing virtual image
CN101814006A (en) * 2010-04-28 2010-08-25 中兴通讯股份有限公司 Method and device for realizing water ripple special effect
CN101893725B (en) * 2010-06-30 2013-09-11 宇龙计算机通信科技(深圳)有限公司 Mobile terminal-based weather information processing method and mobile terminal
JP2012048597A (en) * 2010-08-30 2012-03-08 Univ Of Tokyo Mixed reality display system, image providing server, display device and display program
JP5186021B2 (en) * 2011-05-25 2013-04-17 オリンパスイメージング株式会社 Imaging apparatus, image processing apparatus, and imaging method
CN102855648B (en) * 2012-08-09 2016-06-08 小米科技有限责任公司 A kind of image processing method and device
CN104951051B (en) * 2014-03-24 2018-07-06 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN106961511B (en) * 2016-01-11 2019-10-01 阿里巴巴集团控股有限公司 A kind of image processing method and device
CN106572308A (en) * 2016-11-04 2017-04-19 宇龙计算机通信科技(深圳)有限公司 Method and system for synthesizing local dynamic graph
CN106791398A (en) * 2016-12-22 2017-05-31 深圳市金立通信设备有限公司 A kind of image processing method and terminal

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106937039A (en) * 2017-04-26 2017-07-07 努比亚技术有限公司 A kind of imaging method based on dual camera, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN109509162A (en) 2019-03-22

Similar Documents

Publication Publication Date Title
CN107886032B (en) Terminal device, smart phone, authentication method and system based on face recognition
CN106161939B (en) Photo shooting method and terminal
CN112135046B (en) Video shooting method, video shooting device and electronic equipment
US9607394B2 (en) Information processing method and electronic device
CN106096540B (en) Information processing method and electronic equipment
CN109840946B (en) Virtual object display method and device
CN109117779A (en) One kind, which is worn, takes recommended method, device and electronic equipment
CN111643900A (en) Display picture control method and device, electronic equipment and storage medium
CN113194254A (en) Image shooting method and device, electronic equipment and storage medium
CN112464013A (en) Information pushing method and device, electronic equipment and storage medium
CN111652983A (en) Augmented reality AR special effect generation method, device and equipment
CN109360277B (en) Virtual simulation display control method and device, storage medium and electronic device
CN111367402B (en) Task triggering method, interaction equipment and computer equipment
CN108961424B (en) Virtual information processing method, device and storage medium
CN112288881B (en) Image display method and device, computer equipment and storage medium
CN109509162B (en) Image acquisition method, terminal, storage medium and processor
CN112511743B (en) Video shooting method and device
CN114170472A (en) Image processing method, readable storage medium and computer terminal
CN112218111A (en) Image display method and device, storage medium and electronic equipment
CN115379195B (en) Video generation method, device, electronic equipment and readable storage medium
CN112106347A (en) Image generation method, image generation equipment, movable platform and storage medium
CN109427102B (en) Tutorial demonstration method and device based on augmented reality
CN112532904B (en) Video processing method and device and electronic equipment
CN112887603B (en) Shooting preview method and device and electronic equipment
CN114266305A (en) Object identification method and device, electronic equipment 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