CN103914803B - Image processing method and device - Google Patents
Image processing method and device Download PDFInfo
- Publication number
- CN103914803B CN103914803B CN201410171728.0A CN201410171728A CN103914803B CN 103914803 B CN103914803 B CN 103914803B CN 201410171728 A CN201410171728 A CN 201410171728A CN 103914803 B CN103914803 B CN 103914803B
- Authority
- CN
- China
- Prior art keywords
- sound data
- instruction
- new object
- image
- unit
- 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
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 15
- 238000000034 method Methods 0.000 claims abstract description 16
- 230000003068 static effect Effects 0.000 abstract description 8
- 238000005516 engineering process Methods 0.000 description 5
- 238000009877 rendering Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 2
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 239000012634 fragment Substances 0.000 description 1
- 238000010191 image analysis Methods 0.000 description 1
- 238000003709 image segmentation Methods 0.000 description 1
- 230000001151 other effect Effects 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Landscapes
- Processing Or Creating Images (AREA)
Abstract
The invention provides an image processing method and device, the method captures an original object according to an image capture instruction, binds the captured original object with corresponding sound data to obtain a new object, pastes the new object into a background image, receives a first operation instruction for the new object in the background image, reads the sound data bound with the new object according to the received first operation instruction, and plays the sound data. The invention provides an image processing method and an image processing device, which are used for processing a static image and providing various characteristics related to the image.
Description
Technical Field
The present invention relates to image processing technologies, and in particular, to an image processing method and apparatus.
Background
Image processing (image processing) techniques refer to techniques for analyzing an image with a computer to achieve a desired result. Image processing generally refers to the processing of digital images. The image processing technique mainly comprises image compression, enhancement and restoration, matching, description and identification of 3 parts. Common processes are image digitization, image coding, image enhancement, image restoration, image segmentation, image analysis, image beautification, and the like.
The existing image processing methods are used for reducing the data volume of an image, improving the definition of the image or making a picture displayed by the image more beautiful, and are only used for processing a static image, and the static image is still a static image, so that more characteristics related to the image cannot be provided.
Disclosure of Invention
The invention provides an image processing method and device, which are used for processing a static image and providing various characteristics related to the image.
The invention provides an image processing method, which comprises the following steps:
capturing an original object according to an image capturing instruction;
binding the captured original object with corresponding sound data to obtain a new object;
pasting the new object into a background image;
receiving a first operation instruction on the new object in the background image;
and reading the sound data bound by the new object according to the received first operation instruction, and playing the sound data.
The present invention provides an image processing apparatus including:
the grabbing unit is used for grabbing an original object according to the image grabbing instruction;
the sound binding unit is used for binding the original object captured by the capturing unit with corresponding sound data to obtain a new object;
a pasting unit for pasting the new object into a background image;
a first instruction receiving unit, configured to receive a first operation instruction on the new object in the background image;
and the sound output unit is used for reading the sound data bound by the new object and playing the sound data according to the first operation instruction received by the first instruction receiving unit.
The image processing device and the image processing method provided by the invention process the static image by binding the corresponding sound data to the captured object and by receiving the operation instruction to read the sound data, and provide sound characteristic information for the static image.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
FIG. 1 is a flow chart of an image processing method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings.
Fig. 1 is a flowchart of an image processing method according to an embodiment of the present invention.
The image processing method provided by the embodiment of the invention can be realized on a terminal with a display and an input device, such as a computer, a tablet computer, a mobile terminal and the like. As shown in fig. 1, an image processing method provided in an embodiment of the present invention includes:
and step 11, capturing an original object according to the image capturing instruction.
The image capture command may be a cut or select operation on a picture, for example, a user cuts an object along an outline of the object in the picture, or the user selects a picture with a real object outline provided by the system, and the cut or selected object is the original object.
And step 12, binding the captured original object with the corresponding sound data to obtain a new object.
For example, a user cuts out an automobile from a picture, that is, the original object is an automobile, the automobile can have sound characteristics such as engine sound, whistling and the like, the sound characteristic data are recorded in a database in advance, when the captured original object is determined to be the automobile, the sound characteristic data of the automobile are selected from the database and are bound with the object, and the original object bound with the sound characteristic data is a new object.
And step 13, pasting the new object into the background image.
Also taking a car as an example, the original object is cut or selected to be copied from the picture, and is a cut image with a car outline, the cut image has been bound with sound data to form a new object, at this time, the cut image is pasted into a background image, the background image can be a blank page or a page with background content, and the pasting position of the picture can be specified by a user, for example, the user drags the cut image to place the cut image in a certain area of the background image.
And step 14, receiving a first operation instruction for the new object in the background image.
The first operation instruction may be an operation of clicking a position of the object displayed on a screen of the tablet computer by a user, and since the position of the new object is already determined, whether the position clicked by the user is the position of the new object can be judged according to the coordinate range of the new object in the background image, and when the user clicks the area of the new object, the first operation instruction represents that the first operation instruction is input.
And step 15, reading the sound data bound to the new object according to the received first operation instruction, and playing the sound data.
And when the first operation instruction is received, calling the sound data which is in binding relation with the object from the database, and playing the sound through equipment such as a loudspeaker.
Illustratively, the grabbing an original object according to the image grabbing instruction in the embodiment of the present invention includes:
and grabbing the original object from the photo according to the image grabbing instruction. For example, a real scene is shot by the camera unit, such as an apple, which is drawn once or cut out from the electronic photograph by the user according to the outline of the apple, and the original object is the apple. Alternatively, the paper photo may be scanned and stored as an electronic part for grasping.
For example, the binding the captured original object with the corresponding sound data according to the embodiment of the present invention may include:
identifying the original object;
and searching corresponding sound data according to the recognition result.
In order to enhance the flexibility of selecting the original object, the object can be identified by using an image identification technology without limiting how a user selects an image as the original object, and the content of the image is identified through the characteristics of the image, namely the content of the grabbed object is determined. For example, if a user selects a person from a picture according to the outline of the person in the picture, that is, the person is a captured object, the person has human physical features such as the outlines of limbs and the head, and the content of the object is human by recognizing the image.
When the original object is recognized as a human, the database can be searched for human voice data. The voice characteristics of the human being, such as speaking voice, may specifically be a greeting or the like.
And binding the searched sound data with the original object. And then binding a greeting sound fragment with the character object.
Or, binding the captured original object with the corresponding sound data, including:
according to a naming instruction of the original object, binding the original object with a name in the naming instruction;
searching corresponding sound data according to the name;
and binding the searched sound data with the original object.
For example, when a user cuts a person from a picture as an original image, the image recognition technology can recognize that the content of the image is a human being through the outline of the person, but cannot further recognize the specific identity of the person, and if there are a plurality of sound segments of the person in the database, the relationship between the sound data and the object cannot be confirmed, so that a naming instruction is received to designate the content of the original object by name.
And searching the sound data corresponding to the original object according to the specific name, and then binding.
Illustratively, the searching for the corresponding sound data according to the recognition result in the embodiment of the present invention includes:
searching corresponding sound data from a sound database according to the identification result, wherein the sound data in the sound database is obtained by recording;
or, searching the corresponding sound data according to the name includes:
and searching corresponding sound data from the sound database according to the name.
The embodiment of the invention can collect the sound data through the recording function, name or classify the sound data and the like, so that the recorded sound is used as the sound data corresponding to a certain original object. For example, when the original object is a person with a specific identity and the database originally does not contain the sound data corresponding to the person, the sound information of the person can be collected in a recording manner and stored in the database as the sound data corresponding to the person.
Illustratively, after pasting the new object into the background image, the method further includes:
determining the motion track and the speed of the new object according to the position of the new object in the background image;
receiving a second operation instruction on the new object;
and moving the new object according to the determined motion track and speed according to the second operation instruction.
The embodiment of the present invention may further assign a motion element to the new object, and after the new object is pasted in the background image, the position of the new object is fixed, so position information, such as coordinate information, of each pixel point of the object in the background image can be calculated, an animation effect can be set for the object according to the position information, and the animation effect can be achieved by using an image rendering technology to render the entire background image for a plurality of times, and the position of the new object in the image rendered each time is different, and the continuous rendering enables the static image to present a dynamic effect, for example, the object is moved in the background image along a certain direction, and the object returns to the origin after moving for a certain distance, and the moving process of the new object is an animation effect, and for the moving speed, the moving speed depends on parameters of image rendering.
The second instruction may be an operation of a user clicking a position where a new object is displayed on a screen, may be an action different from the first operation instruction, or may be an action identical to the first operation instruction, and when the second operation instruction is received, the moving process of the object is displayed.
Illustratively, after pasting the new object into the background image, the method further includes:
receiving an editing instruction;
and editing the background image pasted with the new object according to the editing instruction. After the new object is pasted to the background image, the user can input an editing instruction to perform drawing input on the image, for example, using an image rendering technology, identify a position where the user clicks or slides a screen, render the position to form a drawing image, and input rendering parameters to determine the color, line type and other effects of the drawing.
Fig. 2 is a schematic structural diagram of an image processing apparatus according to this embodiment.
The image processing apparatus provided by the embodiment is used for realizing the image processing method. As shown in fig. 2, the image processing apparatus includes: a grasping unit 21, a sound binding unit 22, a pasting unit 23, a first instruction receiving unit 24, and a sound output unit 25.
The grabbing unit 21 is configured to grab an original object according to an image grabbing instruction.
The sound binding unit 22 is configured to bind the original object captured by the capturing unit 21 with corresponding sound data to obtain a new object.
The pasting unit 23 is used to paste the new object into the background image.
The first instruction receiving unit 24 is configured to receive a first operation instruction on the new object in the background image.
The sound output unit 25 is configured to read the sound data bound to the new object according to the first operation instruction received by the first instruction receiving unit 24, and play the sound data.
Illustratively, the grasping unit 21 of the present embodiment is specifically configured to:
and grabbing the original object from the photo according to the image grabbing instruction.
For example, the voice binding unit 22 of the present embodiment includes: an image identification subunit, a first data search subunit, and a first sound binding subunit.
The image identification subunit is used for identifying the original object.
The first data searching subunit is used for searching the corresponding sound data according to the identification result.
The first sound binding subunit is used for binding the searched sound data with the original object.
Alternatively, the voice binding unit 22 in this embodiment includes: an object specifying subunit, a second data search subunit, and a second sound binding subunit.
The object designating subunit is used for binding the original object with a name in the naming instruction according to the naming instruction of the original object.
And the second data searching module is used for searching the corresponding sound data according to the name.
And the second sound binding module is used for binding the searched sound data with the original object.
For example, the first data search subunit of this embodiment is specifically configured to search, according to the identification result, corresponding sound data from a sound database, where the sound data in the sound database is obtained by recording;
or, the second data search subunit is specifically configured to search, according to the name, the corresponding sound data from the sound database.
Illustratively, the apparatus of this embodiment further includes: the device comprises a second instruction receiving unit, a motion characteristic determining unit and a motion display unit.
The second instruction receiving unit is used for receiving a second operation instruction for the new object.
The motion characteristic determination unit is used for determining the motion track and the speed of the new object according to the position of the new object in the background image after the pasting unit pastes the new object into the background image.
And the motion display unit is used for moving the new object according to the motion track and the speed determined by the motion characteristic determination unit according to the second operation instruction received by the second instruction receiving unit.
Illustratively, the apparatus of this embodiment further includes: a third instruction receiving unit and a graphic editing unit.
Wherein the third instruction receiving unit is configured to receive an editing instruction after the pasting unit pastes the new object into the background image.
The graphic editing unit is used for editing the background image pasted with the new object according to the editing instruction received by the third instruction receiving unit.
The foregoing is considered as illustrative of the preferred embodiments of the invention and the technical principles employed. The present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (10)
1. An image processing method, comprising:
capturing an original object according to an image capturing instruction;
binding the captured original object with corresponding sound data to obtain a new object;
pasting the new object into a background image;
receiving a first operation instruction on the new object in the background image;
reading and playing the sound data bound to the new object according to the received first operation instruction;
binding the captured original object with corresponding sound data, including:
identifying the original object;
searching corresponding sound data according to the recognition result;
binding the searched sound data with the original object;
or,
according to a naming instruction of the original object, binding the original object with a name in the naming instruction;
searching corresponding sound data according to the name;
and binding the searched sound data with the original object.
2. The method of claim 1, wherein grabbing an original object according to image grabbing instructions comprises:
and grabbing the original object from the photo according to the image grabbing instruction.
3. The method of claim 1, wherein searching for corresponding sound data according to the recognition result comprises:
searching corresponding sound data from a sound database according to the identification result, wherein the sound data in the sound database is obtained by recording;
or, searching the corresponding sound data according to the name includes:
and searching corresponding sound data from the sound database according to the name.
4. A method according to any of claims 1-3, wherein after pasting the new object into a background image, the method further comprises:
determining the motion track and the speed of the new object according to the position of the new object in the background image;
receiving a second operation instruction on the new object;
and moving the new object according to the determined motion track and speed according to the second operation instruction.
5. A method according to any of claims 1-3, wherein after pasting the new object into a background image, the method further comprises:
receiving an editing instruction;
and editing the background image pasted with the new object according to the editing instruction.
6. An image processing apparatus characterized by comprising:
the grabbing unit is used for grabbing an original object according to the image grabbing instruction;
the sound binding unit is used for binding the original object captured by the capturing unit with corresponding sound data to obtain a new object;
a pasting unit for pasting the new object into a background image;
a first instruction receiving unit, configured to receive a first operation instruction on the new object in the background image;
the sound output unit is used for reading the sound data bound by the new object according to the first operation instruction received by the first instruction receiving unit and playing the sound data;
the sound binding unit includes:
the image identification subunit is used for identifying the original object;
the first data searching subunit is used for searching the corresponding sound data according to the identification result;
a first voice binding subunit, configured to bind the searched voice data with the original object;
or, the voice binding unit includes:
the object specifying subunit is used for binding the original object with the name in the naming instruction according to the naming instruction of the original object;
the second data search subunit is used for searching the corresponding sound data according to the name;
and the second sound binding subunit is used for binding the searched sound data with the original object.
7. The device according to claim 6, wherein the grasping unit is specifically configured to:
and grabbing the original object from the photo according to the image grabbing instruction.
8. The apparatus according to claim 7, wherein the first data searching subunit is specifically configured to search, according to the recognition result, corresponding sound data from a sound database, where the sound data in the sound database is obtained by recording;
or, the second data search subunit is specifically configured to search, according to the name, the corresponding sound data from the sound database.
9. The apparatus according to any one of claims 6-8, characterized in that the apparatus further comprises:
the motion characteristic determining unit is used for determining the motion track and the speed of the new object according to the position of the new object in the background image after the pasting unit pastes the new object into the background image;
the second instruction receiving unit is used for receiving a second operation instruction for the new object;
and the motion display unit is used for moving the new object according to the motion track and the speed determined by the motion characteristic determination unit according to the second operation instruction received by the second instruction receiving unit.
10. The apparatus according to any one of claims 6-8, further comprising:
a third instruction receiving unit configured to receive an editing instruction after the pasting unit pastes the new object into the background image;
and the graphic editing unit is used for editing the background image attached with the new object according to the editing instruction received by the third instruction receiving unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410171728.0A CN103914803B (en) | 2014-04-25 | 2014-04-25 | Image processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410171728.0A CN103914803B (en) | 2014-04-25 | 2014-04-25 | Image processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103914803A CN103914803A (en) | 2014-07-09 |
CN103914803B true CN103914803B (en) | 2017-03-15 |
Family
ID=51040464
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410171728.0A Active CN103914803B (en) | 2014-04-25 | 2014-04-25 | Image processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103914803B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105704396A (en) * | 2014-11-24 | 2016-06-22 | 中兴通讯股份有限公司 | Picture processing method and device |
CN105045840A (en) * | 2015-06-30 | 2015-11-11 | 广东欧珀移动通信有限公司 | Picture display method and mobile terminal |
CN105975054A (en) * | 2015-11-23 | 2016-09-28 | 乐视网信息技术(北京)股份有限公司 | Method and device for information processing |
CN106789576A (en) * | 2016-12-23 | 2017-05-31 | 上海青声网络科技有限公司 | A kind of image generating method and device |
CN209881936U (en) * | 2018-01-12 | 2019-12-31 | 新加坡能源创新发展有限公司 | Data transmission system |
CN110097619B (en) * | 2019-04-30 | 2022-12-13 | 腾讯科技(深圳)有限公司 | Animation effect implementation method, device and equipment in application program |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1704926A (en) * | 2004-06-01 | 2005-12-07 | 佳能株式会社 | Information processing device and method |
CN103346955A (en) * | 2013-06-18 | 2013-10-09 | 腾讯科技(深圳)有限公司 | Method, device and terminal for processing picture |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5842545B2 (en) * | 2011-03-02 | 2016-01-13 | ヤマハ株式会社 | SOUND CONTROL DEVICE, SOUND CONTROL SYSTEM, PROGRAM, AND SOUND CONTROL METHOD |
-
2014
- 2014-04-25 CN CN201410171728.0A patent/CN103914803B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1704926A (en) * | 2004-06-01 | 2005-12-07 | 佳能株式会社 | Information processing device and method |
CN103346955A (en) * | 2013-06-18 | 2013-10-09 | 腾讯科技(深圳)有限公司 | Method, device and terminal for processing picture |
Also Published As
Publication number | Publication date |
---|---|
CN103914803A (en) | 2014-07-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103914803B (en) | Image processing method and device | |
CN108140263B (en) | AR display system and method applied to image or video | |
WO2020237855A1 (en) | Sound separation method and apparatus, and computer readable storage medium | |
CN106664376B (en) | Augmented reality device and method | |
CN107977390B (en) | Method, device and system for identifying picture book and electronic equipment | |
WO2016065999A1 (en) | Photo album management method and device | |
US20140164927A1 (en) | Talk Tags | |
EP2782098A2 (en) | Method for displaying image combined with playing audio in an electronic device | |
US20110243453A1 (en) | Information processing apparatus, information processing method, and program | |
CN111415399A (en) | Image processing method, image processing device, electronic equipment and computer readable storage medium | |
CN109905782A (en) | A kind of control method and device | |
JP2013527947A5 (en) | ||
CN111813998B (en) | Video data processing method, device, equipment and storage medium | |
CN107977394B (en) | Drawing book identification method and electronic equipment | |
WO2010149842A1 (en) | Methods and apparatuses for facilitating generation and editing of multiframe images | |
CN111798543B (en) | Model training method, data processing method, device, equipment and storage medium | |
CN105809174A (en) | Method and device for identifying image | |
WO2020125481A1 (en) | Method for generating identification pattern, and terminal device | |
CN109948525A (en) | It takes pictures processing method, device, mobile terminal and storage medium | |
US9449646B2 (en) | Methods and systems for media file management | |
CN114372172A (en) | Method and device for generating video cover image, computer equipment and storage medium | |
CN106407358A (en) | Image searching method and device and mobile terminal | |
CN111077992B (en) | Click-to-read method, electronic equipment and storage medium | |
CN107977392A (en) | Paint this recognition methods, device, system and electronic equipment | |
US20140286624A1 (en) | Method and apparatus for personalized media editing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |