CN1878247A - Image frame handling method for digital pick-up device and its system - Google Patents

Image frame handling method for digital pick-up device and its system Download PDF

Info

Publication number
CN1878247A
CN1878247A CN 200610089608 CN200610089608A CN1878247A CN 1878247 A CN1878247 A CN 1878247A CN 200610089608 CN200610089608 CN 200610089608 CN 200610089608 A CN200610089608 A CN 200610089608A CN 1878247 A CN1878247 A CN 1878247A
Authority
CN
China
Prior art keywords
image
frame processing
foreground
photo frame
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN 200610089608
Other languages
Chinese (zh)
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.)
Vimicro Corp
Original Assignee
Vimicro Corp
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 Vimicro Corp filed Critical Vimicro Corp
Priority to CN 200610089608 priority Critical patent/CN1878247A/en
Publication of CN1878247A publication Critical patent/CN1878247A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Studio Devices (AREA)

Abstract

The invention discloses a digital image disposing technology in the photo holder frame disposing technological domain, which comprises the following steps: selecting background picture of photo holder frame for user; adjusting the picture effect and previewing; transmitting the confirmed background picture and parameter into user end PC set driving program of digital shooting device; obtaining specific relative parameter and background picture of photo holder frame; proceeding specific disposal through software or hardware in the digital shooting device; outputting user preview to user end; confirming the specific picture of photo holder frame after composite disposal.

Description

Image photo frame processing method and system for digital camera device
Technical Field
The invention belongs to the technical field of image processing, and particularly relates to an image frame processing method and system of a digital camera device.
Background
In the process of outputting images by a digital camera device, the images can be processed to generate various special photo frame effects, and the traditional photo frame processing method is as follows: the application software provides several fixed photo frame images, and prestores parameters of the fixed photo frame images, such as RGB values and alpha blending values, wherein the alpha blending is a method for enabling a three-dimensional object to generate transparency, the alpha values record the transparency of pixels of the three-dimensional object, and the alpha value blending function is to introduce the alpha values to enable the two objects to present an effect close to a real object when the two objects are overlapped on a screen picture. After the user selects the parameters, the application software transmits the parameters of the selected photo frame to the driving program for the special effect processing of the photo frame. This method has the following disadvantages: 1. the special effect of the photo frame is single, and the algorithm is limited, so that the photo frame is not diverse; 2. the user cannot design the photo frame effect by himself; 3. the special effect of the photo frame cannot be previewed in advance.
Disclosure of Invention
The invention aims to provide a processing method of an image frame of a digital camera device, which can solve the defects in the prior art.
It is a further object of the present invention to provide an image frame processing system that can solve the drawbacks of the prior art.
According to the first object of the present invention, the present invention provides an image frame processing method of a digital camera device, comprising the steps of:
the method comprises the following steps that (1) a foreground image is obtained, and corresponding photo frame processing parameters are obtained according to image photo frame parameter setting conducted by a user;
step (2), acquiring video data as a background image;
and (3) carrying out photo frame processing on the background image and outputting and displaying the processed background image by using the foreground image and the corresponding photo frame processing parameters.
Preferably, the processing of the foreground image in the step (1) may specifically be selecting a plurality of foreground colors, and setting a transparency value alpha of each foreground color, where the picture frame processing parameters include the number of foreground colors, and RGB values and transparency values alpha of each foreground color; correspondingly, in the step (3), the picture frame processing process is a process of mixing the two images by using an alpha mixing algorithm.
Preferably, when the background image is subjected to photo frame processing in the step (3), an alpha mixing algorithm is adopted to mix the pixel value of the color selected as the foreground color in the foreground image with the pixel value of the corresponding position in the background image; and directly covering the pixels corresponding to the colors which are not selected as the foreground colors in the foreground image on the pixels at the corresponding positions in the background image to be used as a photo frame.
Preferably, the alpha blending algorithm specifically includes: the elements of the foreground color pixel R, G and B are multiplied by the alpha value of the pixel, and the elements R, G and B of the corresponding position pixel in the background image are multiplied by the inverse value of the alpha value, and then added to obtain the R, G, B values of the final blended pixel.
Further, the step (1) further comprises the step of previewing the picture frame effect.
According to a second object of the present invention, there is provided an image frame processing system, comprising a digital camera and a user operation terminal, wherein the user operation terminal receives video data captured by the digital camera, the system further comprises an image frame processing unit, and a frame guide module is further disposed in the user operation terminal, wherein,
the picture frame guide module is used for acquiring a foreground image and picture frame processing parameters input by a user;
and the image photo frame processing unit is used for carrying out photo frame processing on the video data acquired by the digital camera device, namely the background image according to the foreground image and the photo frame processing parameters, and outputting the video data with the photo frame.
Further, the digital camera device may further include a driving module for receiving the foreground image and the picture frame processing parameter, and for receiving the video data output by the digital camera device.
Preferably, the image frame processing unit may be provided within the driving module.
Preferably, the image frame processing unit may be disposed in the digital camera device.
Further, the photo frame wizard module may include a photo frame parameter setting unit for a user to set parameters required for photo frame processing.
Further, the user operation terminal may further include a display unit configured to display the video data with the picture frame output by the image frame processing module.
Furthermore, the photo frame guide module may further include a preview module, configured to make a photo frame preview effect image according to the foreground image and the photo frame processing parameter input by the user, and display the photo frame preview effect image through the display unit.
Preferably, the user operation terminal is a PC, and the digital camera device is a computer camera.
The invention provides a platform for freely setting the photo frame for the user because the photo frame guide module is arranged at the user operation terminal. In addition, before the photo frame is determined, the user can preview the photo frame, and then the video data shot by the digital camera device is subjected to photo frame processing so as to output the video data with the photo frame.
Drawings
FIG. 1 is a block flow diagram of one of the methods of the present invention;
FIG. 2 is a block diagram of the architecture of one of the systems of the present invention;
FIG. 3 is a block diagram of a second embodiment of the system of the present invention;
FIG. 4 is an example of a photo frame foreground image according to the present invention;
fig. 5 is an exemplary image of video data with a picture frame according to the present invention.
Detailed Description
The core of the invention is that a picture frame guide module is provided at a user operation terminal, so that a user can select a foreground image which can be processed into a picture frame by himself and process the foreground image into the picture frame, then relevant processing parameters of the picture frame and the foreground image are transmitted to an image picture frame processing module, the image picture frame processing module utilizes the foreground image and the relevant processing parameters of the picture frame to process video data acquired by a digital camera device by adding the picture frame, and the video data with the picture frame is output.
The method and system of the present invention are described in detail below with reference to the accompanying drawings.
As shown in fig. 1, is a flow chart of the method of the present invention:
step 1, acquiring a foreground image, and acquiring corresponding photo frame processing parameters according to image photo frame parameter setting performed by a user;
step 2, acquiring video data as a background image;
and step 3, carrying out photo frame processing on the background image and outputting and displaying the processed background image by utilizing the foreground image and the corresponding photo frame processing parameters.
The photo frame processing parameters in step 1 may include the number of foreground colors, RGB values of each foreground color, and transparency value alpha. The foreground color refers to some colors that the user can select in the loaded foreground image, and the user can set the transparency value alpha. Selecting black in the center of the image as a foreground color as shown in FIG. 4; correspondingly, in the process of performing photo frame processing on the background image in the step 3, all the pixels in the foreground image, which have the same color as the foreground color, need to perform alpha mixing operation with the pixels in the background image at the corresponding position to obtain a mixed image; as shown in fig. 5, the background image can be displayed in the area where the foreground color is located, and other pixels corresponding to the color that is not selected as the foreground color in the foreground image can be directly overlaid on the pixels at the corresponding position in the background image to form a photo frame. The selected foreground color can be directly selected from the foreground image, for example, a pixel is clicked by a mouse, the color of the pixel is the foreground color, and all pixels with the same color as the pixel belong to the area where the foreground color is located; alternatively, a region, such as an elliptical region, may be painted all in one color in the foreground image, and then the elliptical region may be selected as the foreground color region. The foreground color may be a selection of plural.
The alpha blending operation method may be that R, G and B elements of a certain pixel in an area where a foreground color is located are multiplied by an alpha value of the pixel, R, G and B elements of a pixel at a corresponding position of a background image are multiplied by an inverse value of the alpha value (the inverse value may be 255 minus the alpha value), and then the obtained values are added to obtain R, G, B values of a final blended pixel, and the specific calculation formula may be:
Blend_Red=OriRed*(255-BackColor[dwBackColorIndex].AlphaBlending)+BmpRed*BackColor[dwBackColorIndex].AlphaBlending;
Blend_Green=OriGreen*(255-BackColor[dwBackColorIndex].AlphaBlending)+BmpGreen*BackColor[dwBackColorIndex ].AlphaBlending;
Blend_Blue=OriBlue*(255-BackColor[dwBackColorIndex].AlphaBlending)+BmpBlue*BackColor[dwBackColorIndex].AlphaBlending;
wherein,
blend _ Red: obtaining the R value of the pixel after mixing;
blend _ Green: the G value of the pixel obtained after mixing;
blend _ Blue: b value of the pixel obtained after mixing;
OriRed: an R value of a source pixel obtained from a digital camera;
OriGreen: a G value of a source pixel obtained from a digital camera;
OriBlue: a B value of a source pixel obtained from a digital camera;
BmpRed: the R value of the pixel of the foreground color is transmitted from the picture frame guide module;
BmpGreen: the G value of the pixel of the foreground color is transmitted from the picture frame guide module;
BmpBlue: b value of the pixel of the foreground color transmitted from the picture frame guide module;
BackColor [ dwBackColorIndex ]. Alphablending: the value of the Alpha blending vector corresponding to the dwBackColorIndex background color.
The transparency value alpha can be set to be completely transparent, so that the foreground color is completely transparent, the background image can be completely displayed in the area where the foreground color is located, and other parts are covered by the foreground image, so that the photo frame is formed. Or setting the transparency value alpha as not completely transparent, so that the area of the foreground color does not completely disappear, but is covered on the background image with a certain transparency, and the area except the area of the foreground color is covered by the foreground image.
In addition, the step (1) may further include a step of previewing the picture frame effect, wherein the actual effect of the picture frame can be seen by previewing before the picture frame is confirmed, and if the picture frame is not satisfactory, the modification can be returned until the satisfactory picture frame is obtained.
The invention also provides an image frame processing system, as shown in fig. 2 and 3, which are two embodiments of the system of the invention. Both embodiments comprise a user operation terminal and a digital camera device, as well as a picture frame guide module, a driving module and an image picture frame processing unit. The photo frame guide module provides a platform for a user, a foreground image can be loaded and processed to generate a photo frame, and meanwhile, related processing parameters of the photo frame are obtained; the driving module is used for realizing the communication between the user operating system and the digital camera device, and as shown in the figure, other control signals and data besides video data are transmitted between the driving module and the digital camera device; the image frame processing unit is used for carrying out frame processing on the video data acquired by the digital camera device according to the foreground image and the frame processing parameters so as to obtain the video data added with the frame.
The difference is that the image frame processing module in the system shown in fig. 2 is arranged in a driving module of the user operation terminal, the driving module receives video data from the digital camera device, and foreground images and frame processing parameters from the frame guide module, and the image frame processing unit therein performs frame processing; the image frame processing module in the system shown in fig. 3 is disposed in the digital camera device, the driving module receives the foreground image and the frame processing parameters from the frame guide module, and transmits the foreground image and the frame processing parameters to the image frame processing unit in the digital camera device, the image frame processing unit receives video data acquired by the video acquisition module in the digital camera device, and then performs frame processing on the video data, so as to obtain video data with a frame. The image frame processing unit can be an independent module, and can also be a working unit in an image processing module in the digital camera device.
The photo frame guide module may include a photo frame parameter setting unit for allowing a user to set parameters required for photo frame processing.
The photo frame processing parameters may include the number of foreground colors, RGB values of the foreground colors, and transparency values alpha thereof, and the image photo frame processing module performs alpha mixing processing on the foreground images and video data acquired by the digital camera device by using an alpha mixing algorithm. The user can set the transparency value alpha.
The user operation terminal may further include a display unit configured to display the video data with the picture frame output by the image frame processing module.
The photo frame guide module can also comprise a preview module which is used for making a photo frame preview effect image according to the foreground image and the photo frame processing parameters input by the user and displaying the photo frame preview effect image through the display unit.
The user operation terminal can be a PC, in addition, the user operation terminal can also be a digital camera, a mobile communication terminal and the like, and the digital camera device can be a common computer camera, a network camera and the like.
In the above embodiments, the effect of selecting the foreground color and setting its alpha value is to substantially cause one or more regions to exhibit some degree of transparency. In actual practice, this function may be implemented in other ways as well. For example, a user may select a certain region in the foreground image, such as a large rectangular region and a plurality of small star-shaped regions, and set transparency values of the regions, so that the regions can be changed into regions exhibiting a certain transparency, such as full transparency, after the regions are subjected to picture frame processing in subsequent steps. The system records the transparency values of the areas and the range of each area, and the foreground image and the background image are mixed by using the parameters to obtain video data with the photo frame effect, wherein the background image can be completely displayed in the completely transparent area after the hollowing processing, and other parts can be covered by the foreground image.
In addition, in the above-described embodiment, the system is provided only in the form in which the digital image pickup device is directly connected to the user operation terminal. In fact, the user operation terminal can also indirectly communicate with the digital camera device, such as: the system of the present invention may also include a network server, and the image frame processing unit may be disposed in the network server, so that the network server performs frame processing on the video data from the digital camera device according to a user instruction from the client, and then sends the video data to the client for display.
Therefore, the above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, it is possible to make several improvements and modifications without departing from the principle of the present invention, and these improvements and modifications should also be construed as the protection scope of the present invention.

Claims (13)

1. An image frame processing method is characterized by comprising the following steps:
step (1): acquiring a foreground image input by a user, and acquiring corresponding photo frame processing parameters according to image photo frame parameter setting performed by the user;
step (2): acquiring video data as a background image;
and (3): and carrying out photo frame processing on the background image and outputting and displaying the background image by utilizing the foreground image and the corresponding photo frame processing parameters.
2. The method according to claim 1, wherein the image frame parameter setting performed by the user in step (1) specifically selects a plurality of foreground colors for the user, and sets a transparency value alpha of each foreground color, and the frame processing parameters include the number of foreground colors, and the RGB value and the transparency value alpha of each foreground color; correspondingly, in the step (3), the picture frame processing process is a process of mixing the two images by using an alpha mixing algorithm.
3. The method according to claim 2, wherein in the step (3), when the background image is subjected to the picture frame processing, an alpha blending algorithm is adopted to blend the pixel values of the color selected as the foreground color in the foreground image with the pixel values of the corresponding position in the background image; and directly covering the pixels corresponding to the colors which are not selected as the foreground colors in the foreground image on the pixels at the corresponding positions in the background image to be used as a photo frame.
4. The method of claim 3 in which said alpha blending algorithm is specifically: the elements of the foreground color pixel R, G and B are multiplied by the alpha value of the pixel, and the elements R, G and B of the corresponding position pixel in the background image are multiplied by the inverse value of the alpha value, and then added to obtain the R, G, B values of the final blended pixel.
5. The method of claim 1, wherein step (1) further comprises the step of previewing the picture frame effect.
6. An image photo frame processing system comprises a digital camera device and a user operation terminal, wherein the user operation terminal receives video data shot by the digital camera device, the system is characterized by further comprising an image photo frame processing unit, and a photo frame guide module is arranged in the user operation terminal, wherein,
the picture frame guide module is used for acquiring a foreground image and picture frame processing parameters input by a user;
and the image photo frame processing unit is used for carrying out photo frame processing on the video data acquired by the digital camera device, namely the background image according to the foreground image and the photo frame processing parameters, and outputting the video data with the photo frame.
7. The system of claim 6, further comprising a driver module for driving the digital camera, for receiving the foreground image and the frame processing parameters, and for receiving the video data output by the digital camera.
8. The system of claim 7, wherein an image frame processing unit is disposed within the drive module.
9. The system of claim 6, wherein the image frame processing unit is disposed within the digital camera device.
10. The system of claim 6, wherein: the photo frame guide module comprises a photo frame parameter setting unit for setting parameters required for photo frame processing by a user.
11. The system of claim 6, wherein: the user operation terminal also comprises a display unit used for displaying the video data with the photo frame output by the image photo frame processing module.
12. The system of claim 6, wherein the frame guide module further comprises a preview module for making a frame preview effect image according to the foreground image and the frame processing parameters inputted by the user and displaying the frame preview effect image through the display unit.
13. System according to one of claims 6 to 12, characterized in that: the user operation terminal is a PC, and the digital camera device is a computer camera.
CN 200610089608 2006-07-06 2006-07-06 Image frame handling method for digital pick-up device and its system Pending CN1878247A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200610089608 CN1878247A (en) 2006-07-06 2006-07-06 Image frame handling method for digital pick-up device and its system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200610089608 CN1878247A (en) 2006-07-06 2006-07-06 Image frame handling method for digital pick-up device and its system

Publications (1)

Publication Number Publication Date
CN1878247A true CN1878247A (en) 2006-12-13

Family

ID=37510526

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200610089608 Pending CN1878247A (en) 2006-07-06 2006-07-06 Image frame handling method for digital pick-up device and its system

Country Status (1)

Country Link
CN (1) CN1878247A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594504B (en) * 2008-05-30 2011-01-19 三星电子(中国)研发中心 Method for appending sub-picture before end of DVD disc
CN101957981A (en) * 2009-07-13 2011-01-26 三星电子株式会社 Image process method and equipment based on virtual objects
CN102082864A (en) * 2010-11-22 2011-06-01 徐灏 Camare360 mobile phone photographic platform and instant processing method
CN102156606A (en) * 2010-11-17 2011-08-17 华为终端有限公司 Finder frame processing method, picture processing method and user equipment
CN102271224A (en) * 2011-07-19 2011-12-07 中兴通讯股份有限公司 Method for realizing dynamic photo frame of video telephone and terminal
CN102377933A (en) * 2010-08-17 2012-03-14 天津三星光电子有限公司 Digital camera with photo frame editing function
CN102542199A (en) * 2011-12-20 2012-07-04 福建联迪商用设备有限公司 Method and device for prompting non-use state of payment terminal
CN107682644A (en) * 2017-09-04 2018-02-09 广州美人信息技术有限公司 A kind of personalized image synthetic method, system and device
CN108805849A (en) * 2018-05-22 2018-11-13 北京京东金融科技控股有限公司 Image interfusion method, device, medium and electronic equipment
CN108965692A (en) * 2018-06-15 2018-12-07 Oppo广东移动通信有限公司 Paster setting method and device

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594504B (en) * 2008-05-30 2011-01-19 三星电子(中国)研发中心 Method for appending sub-picture before end of DVD disc
CN101957981A (en) * 2009-07-13 2011-01-26 三星电子株式会社 Image process method and equipment based on virtual objects
CN102377933A (en) * 2010-08-17 2012-03-14 天津三星光电子有限公司 Digital camera with photo frame editing function
CN102156606A (en) * 2010-11-17 2011-08-17 华为终端有限公司 Finder frame processing method, picture processing method and user equipment
CN102082864B (en) * 2010-11-22 2013-10-02 成都品果科技有限公司 Camare360 mobile phone photographic platform and instant processing method
CN102082864A (en) * 2010-11-22 2011-06-01 徐灏 Camare360 mobile phone photographic platform and instant processing method
CN102271224A (en) * 2011-07-19 2011-12-07 中兴通讯股份有限公司 Method for realizing dynamic photo frame of video telephone and terminal
CN102542199A (en) * 2011-12-20 2012-07-04 福建联迪商用设备有限公司 Method and device for prompting non-use state of payment terminal
CN107682644A (en) * 2017-09-04 2018-02-09 广州美人信息技术有限公司 A kind of personalized image synthetic method, system and device
CN108805849A (en) * 2018-05-22 2018-11-13 北京京东金融科技控股有限公司 Image interfusion method, device, medium and electronic equipment
CN108805849B (en) * 2018-05-22 2020-07-31 京东数字科技控股有限公司 Image fusion method, device, medium and electronic equipment
CN108965692A (en) * 2018-06-15 2018-12-07 Oppo广东移动通信有限公司 Paster setting method and device
CN108965692B (en) * 2018-06-15 2021-03-09 Oppo广东移动通信有限公司 Sticker setting method and device

Similar Documents

Publication Publication Date Title
CN1878247A (en) Image frame handling method for digital pick-up device and its system
CN1086534C (en) Image pickup device
US8068693B2 (en) Method for constructing a composite image
CN1291599C (en) Image processing method and image processing equipment
US20140015933A1 (en) Image processing apparatus, imaging system, and image processing system
CN1812595A (en) Color interpolation algorithm
CN107534735A (en) Image processing method, device and the terminal of terminal
JP2006087063A (en) Multiple exposure image composite system and multiple exposure image composite method
CN1835599A (en) Method and apparatus for processing a bayer-pattern color digital image signal
CN101035300A (en) Image enhancing method and device
CN1809153A (en) Video composition apparatus, video composition method and video composition program
EP1874034A3 (en) Apparatus and method of recovering high pixel image
CN101043634A (en) Video signal processing
CN101047773A (en) Imaging apparatus, video signal processing circuit, video signal processing method and computer program product
CN101079989A (en) Video processing apparatus, and method of adding time code and preparing edit list
CN1754391A (en) Image reproduction using specific color space
CN1717003A (en) Has the more sub sampling of high display quality in the image sensing device
JP2010268520A (en) Vehicle mounted camera apparatus and vehicle
CN1786891A (en) Method of automatically processing an image and an apparatus using the method
CN1655626A (en) System and method for clipping values of pixels
CN1298173C (en) Image processing system, image pick-up equipment and image processing equipment
JP2007067714A (en) Image processing circuit, and camera device and vehicle-mounted camera device using same
CN1213600C (en) N-dimensional filter and method for N-dimensionally filtering an original image
CN1893548A (en) Image processing apparatus, image processing method and program
CN1489760A (en) Method and system for improving display resolution in images using sub-pixel sampling and visual error filtering

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication