CN103366346A - Photograph processing method and system - Google Patents
Photograph processing method and system Download PDFInfo
- Publication number
- CN103366346A CN103366346A CN2012100988835A CN201210098883A CN103366346A CN 103366346 A CN103366346 A CN 103366346A CN 2012100988835 A CN2012100988835 A CN 2012100988835A CN 201210098883 A CN201210098883 A CN 201210098883A CN 103366346 A CN103366346 A CN 103366346A
- Authority
- CN
- China
- Prior art keywords
- head
- data file
- photo
- image
- file
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/00127—Connection or combination of a still picture apparatus with another apparatus, e.g. for storage, processing or transmission of still picture signals or of information associated with a still picture
- H04N1/00204—Connection or combination of a still picture apparatus with another apparatus, e.g. for storage, processing or transmission of still picture signals or of information associated with a still picture with a digital computer or a digital computer system, e.g. an internet server
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/00127—Connection or combination of a still picture apparatus with another apparatus, e.g. for storage, processing or transmission of still picture signals or of information associated with a still picture
- H04N1/00204—Connection or combination of a still picture apparatus with another apparatus, e.g. for storage, processing or transmission of still picture signals or of information associated with a still picture with a digital computer or a digital computer system, e.g. an internet server
- H04N1/00236—Connection or combination of a still picture apparatus with another apparatus, e.g. for storage, processing or transmission of still picture signals or of information associated with a still picture with a digital computer or a digital computer system, e.g. an internet server using an image reading or reproducing device, e.g. a facsimile reader or printer, as a local input to or local output from a computer
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N2201/00—Indexing scheme relating to scanning, transmission or reproduction of documents or the like, and to details thereof
- H04N2201/0008—Connection or combination of a still picture apparatus with another apparatus
- H04N2201/0065—Converting image data to a format usable by the connected apparatus or vice versa
- H04N2201/0068—Converting from still picture data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N2201/00—Indexing scheme relating to scanning, transmission or reproduction of documents or the like, and to details thereof
- H04N2201/0077—Types of the still picture apparatus
- H04N2201/0084—Digital still camera
Landscapes
- Engineering & Computer Science (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
- Image Processing (AREA)
- Television Signal Processing For Recording (AREA)
- Facsimiles In General (AREA)
Abstract
The invention provides a photograph processing method, which comprises the steps of reading an original photograph data file in a Bayer format sent by a camera device, adding a bitmap file header and a bitmap information header in BMP formats to the original photograph data file in the Bayer format, setting image storage bit for the photograph data file added with the bitmap file header and the bitmap information header, and according to the set image storage bit, creating an BMP image for the photograph data file added with the bitmap file header and the bitmap information header. The invention also provides a photograph processing system. The photograph processing method and system can obviously improve display effect of photographs shot by a mobile phone.
Description
Technical field
The present invention relates to a kind of photo processing method and system, especially relate to photo processing method and system that a kind of mobile phone is taken.
Background technology
Popularize with the mobile phone of camera function at present, but most of photo noise of taking with mobile phone is many, unintelligible, its effect and digital camera are taken a picture and are had very large gap.The take pictures main cause of poor effect of current phone is: in order to be assembled in the fuselage CCD(Charge-coupled Device on the mobile phone, charge coupled cell with other parts) and camera lens all do very littlely, hardware own is not as digital camera; The data that the sensor of the image unit from the mobile phone obtains are directly processed at mobile phone, comprise exposure, denoising, color and sharpening processing, then the photo that obtains the jpeg form exists in the mobile phone, because obtaining the process of the photo of jpeg form carries out at mobile phone, and the computing power of the CPU of mobile phone and processor is all powerful not as good as the CPU of computing machine, can not carry out complicated processing, so treatment effect is undesirable; Even the photo of the jpeg form that obtains on the mobile phone is sent on the computing machine processes, because the photo of jpeg form is lossy compression method, the leeway of subsequent treatment seldom on computers.
Summary of the invention
In view of above content, be necessary to provide a kind of photo processing method, can show and improve the display effect that mobile phone is taken pictures.
In view of above content, also be necessary to provide a kind of photo processing system, can show and improve the display effect that mobile phone is taken pictures.
Described photo processing method comprises: read step: the original photo data file that reads the Bayer form of camera head transmission; Add step: the bitmap file head and the message bit pattern head that add the BMP form for the original photo data file of this Bayer form; Setting steps: the storage bit number that image is set for the picture data file that is added with bitmap file head and message bit pattern head; And foundation step: according to the image storage bit number that has set, for this is added with the picture data document creation BMP image of bitmap file head and message bit pattern head.
Described photo processing system comprises: read module, for the original photo data file of the Bayer form that reads described camera head transmission; Add module, be used to bitmap file head and the message bit pattern head of the original photo data file interpolation BMP form of this Bayer form; Module is set, is used to the picture data file that is added with bitmap file head and message bit pattern head that the storage bit number of image is set; And creation module, be used for according to the image storage bit number that has set, for this is added with the picture data document creation BMP image of bitmap file head and message bit pattern head.
Compared to prior art, described photo processing method and system, mobile phone can be taken pictures and preserve with the Bayer form, then the original photo data file with the Bayer form is sent to computing machine by external memory card or network, add on computers bitmap file head and the message bit pattern head of BMP form for the original photo data file of Bayer form, create the BMP image, make this BMP image carry out subsequent treatment by special software, obtain high-quality image.
Description of drawings
Fig. 1 is the running environment schematic diagram of photo processing system preferred embodiment of the present invention.
Fig. 2 is the functional block diagram of photo processing system preferred embodiment of the present invention.
Fig. 3 is the process flow diagram of photo processing method preferred embodiment of the present invention.
Fig. 4 is processing and the storing process process flow diagram of the used picture data file of the present invention in mobile phone.
The main element symbol description
Computing machine | 1 |
Mobile phone | 2 |
|
10 |
|
20 |
|
30 |
|
40 |
|
50 |
Read |
100 |
|
200 |
Module is set | 300 |
|
400 |
|
500 |
Following embodiment further specifies the present invention in connection with above-mentioned accompanying drawing.
Embodiment
As shown in Figure 1, be the Organization Chart of photo processing system preferred embodiment of the present invention.Described photo processing system 10 runs in computing machine 1 or other calculation elements.Also comprise processor 20 and storer 30 in the described computing machine 1.Described computing machine 1 is for the treatment of the picture data that uses mobile phone 2 to take, and described mobile phone 2 can send captured picture data to computing machine 1 by external memory card (such as SD card, TF card) or network.Comprise processing module 40 and memory module 50 in the described mobile phone 2.In other embodiments, described picture data also can be obtained by other camera heads, such as panel computer, PDA(Personal Digital Assistant, personal digital assistant) etc.
The sensor of the image unit of mobile phone (such as the CCD camera lens) has the data output of Bayer and two kinds of forms of YUV, in the present embodiment, gets the original photo data file of its Bayer form and stores.The Bayer formatted data is original sensitization data and the relevant parameter of taking pictures of image unit in the mobile phone 2, and each pixel can be recorded as 12Bit or 14Bit data, in order to improve processing speed, adopts in the present embodiment the 12Bit mode.Described processor 20 is used for opening external memory card or the original photo data file of the Bayer form that transmits by network and it is read in the storer 30.
As shown in Figure 2, be the functional block diagram of photo processing system preferred embodiment of the present invention.
Described photo processing system 10 comprises read module 100, adds module 200, module 300, creation module 400 and display module 500 is set.
Described read module 100 is used for the original photo data file of the Bayer form of read memory 30.
Described interpolation module 200 is used to the original photo data file of this Bayer form to add BMP(Bitmap-File, bitmap) the bitmap file head (bitmap-file header) of form.Described bitmap file head comprises file type, file size etc.
Described interpolation module 200 also is used to the picture data file that is added with the bitmap file head to add the message bit pattern head (bitmap-information header) of BMP form.Described message bit pattern head comprises width, height of bitmap etc.The process of described interpolation bitmap file head and message bit pattern head can be finished by programming, for example uses VC(Microsoft Visual C++ in the Windows system) developing instrument adds.
The described module 300 that arranges is used to the picture data file that is added with bitmap file head and message bit pattern head that the storage bit number of image is set.In the present embodiment, described storage bit number being set is 24Bit.
Described creation module 400 is used for according to the image storage bit number that has set, call the standard A PI(Application Programming Interface of Windows, application programming interface), be added with the picture data document creation BMP image of bitmap file head and message bit pattern head for this.
Described display module 500 is used for showing described BMP image to user's preview in the display (not shown in figure 1) of described computing machine 1, and prompting user successfully obtains the BMP image.Thereby the user can continue this BMP image is carried out the complicated subsequent treatment such as tint correction, sharpening processing, color mode, white balance, saturation degree, tone distribution by powerful image processing softwares such as Photoshop, obtains high-quality image.
As shown in Figure 3, be the process flow diagram of photo processing method preferred embodiment of the present invention.
Step S12, the original photo data file of the Bayer form in described read module 100 read memories 30.
Step S14, the original photo data file that described interpolation module 200 is this Bayer form is added the bitmap file head of BMP form.
Step S16, described interpolation module 200 is added the message bit pattern head of BMP form for the picture data file that is added with the bitmap file head.
Step S18 describedly arranges module 300 arranges image for the picture data file that is added with bitmap file head and message bit pattern head storage bit number.In the present embodiment, described storage bit number being set is 24Bit.
Step S20, described creation module 400 is called the standard A PI of Windows, for this is added with the picture data document creation BMP image of bitmap file head and message bit pattern head according to the image storage bit number that has set.
Step S22, described display module 500 shows described BMP image to user's preview at the display of described computing machine 1, and prompting user successfully obtains the BMP image.
As shown in Figure 4, be processing and the storing process process flow diagram of the used picture data file of the present invention in mobile phone.
Step S100, in user's preview process, described processing module 40 rough handlings use the image unit (such as the CCD camera lens) of mobile phone 2 to take the photo that obtains.Described rough handling can comprise adjusting focal length, brightness, contrast, white balance etc.
Step S102, whether described processing module 40 prompting users selection is with the picture data after the Bayer form storage rough handling.If the user does not select with the picture data after the Bayer form storage rough handling, then execution in step S104; If the picture data of user selection after with Bayer form storage rough handling, then execution in step S106.
Step S104, the picture data of described processing module 40 after with described rough handling transferred to the inside DSP(digital signal processor of mobile phone 2, digital signal processor) process.
Step S106, described memory module 50 reads picture data after the described rough handling to the internal memory of mobile phone 2.
Step S108, described memory module 50 reads the capacity information of the external memory card that inserts in the mobile phone 2.The described process that reads capacity information can be finished by calling related function.Described related function is for example:
String?sdcard?=?Environment.getExternalStorageDirectory().getPath();
File?file?=?new?File(sdcard);
StatFs?statFs?=?new?StatFs(file.getPath());
int?availableSpare?=?(int)?(statFs.getBlockSize()*((long)statFs.getAvailableBlocks()-4));
Wherein availableSpare is active volume.
Step S110, described memory module 50 is judged the original photo data file that whether has enough capacity can supply storage Bayer form in the external memory card according to the capacity information that reads.The capacity criterion is the sensor resolution * 12Bit of image unit, if the capacity of external memory card is less than this numerical value then represent that capacity is inadequate.If there is not enough capacity in the external memory card, execution in step S112 then; If enough capacity is arranged in the external memory card, execution in step S114 then.
Step S112, described memory module 50 prompting user external memory card capacity are inadequate, and the inside DSP that automatically picture data after the described rough handling is transferred to mobile phone 2 processes.
Step S114, described memory module 50 is stored picture data (hereinafter referred to as " the original photo data file of Bayer form ") after the described rough handling to described external memory card with the Bayer form, and prompting user is stored successfully.In the present embodiment, the original photo data file of described Bayer form can be named according to photo opporunity.
It should be noted that, this flow process is to store the original photo data file of Bayer form as example by external memory card, in other embodiments, can also be after the rough handling picture data, in the internal memory of mobile phone 2, store the original photo data file with the Bayer form, then directly by network the original photo data file of described Bayer form is sent in the computing machine 1 and processes, and high quality image is directly turned back in the mobile phone 2.
In sum, use photo processing method of the present invention and system, the mobile phone photograph application program only need increase an option, be whether prompting user need to be with Bayer form storage original photo data file, then the original photo data file with the Bayer form is sent to computing machine by external memory card or network, add on computers bitmap file head and the message bit pattern head of BMP form for this document, create the BMP image, make this BMP image carry out subsequent treatment by special software, obtain high-quality image.This case solves the take pictures problem of poor effect of regular handset by software approach, needn't change mobile phone hardware, does not increase extra cost.
Above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although with reference to preferred embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that, can make amendment or be equal to replacement technical scheme of the present invention, and not break away from the spirit and scope of technical solution of the present invention.
Claims (8)
1. a photo processing method is applied to it is characterized in that in the calculation element, and the method comprises:
Read step: the original photo data file that reads the Bayer form of camera head transmission;
Add step: the bitmap file head and the message bit pattern head that add the BMP form for the original photo data file of this Bayer form;
Setting steps: the storage bit number that image is set for the picture data file that is added with bitmap file head and message bit pattern head; And
Foundation step: according to the image storage bit number that has set, for this is added with the picture data document creation BMP image of bitmap file head and message bit pattern head.
2. photo processing method as claimed in claim 1, it is characterized in that, the photo that described camera head is taken is through after the rough handling, with the picture data after the Bayer form storage rough handling, obtain the original photo data file of Bayer form, then by external memory card or network the original photo data file of this Bayer form is sent to this calculation element.
3. photo processing method as claimed in claim 1 is characterized in that, the storage bit number of described setting is 24Bit.
4. photo processing method as claimed in claim 1 is characterized in that, the method also comprises after described foundation step:
Step display: the display at calculation element shows described BMP image to user's preview, and prompting user successfully obtains the BMP image.
5. a photo processing system runs in the calculation element, it is characterized in that, this system comprises:
Read module is for the original photo data file of the Bayer form that reads described camera head transmission;
Add module, be used to bitmap file head and the message bit pattern head of the original photo data file interpolation BMP form of this Bayer form;
Module is set, is used to the picture data file that is added with bitmap file head and message bit pattern head that the storage bit number of image is set; And
Creation module is used for according to the image storage bit number that has set, for this is added with the picture data document creation BMP image of bitmap file head and message bit pattern head.
6. photo processing system as claimed in claim 5, it is characterized in that, the photo that described camera head is taken is through after the rough handling, with the picture data after the Bayer form storage rough handling, obtain the original photo data file of Bayer form, then by external memory card or network the original photo data file of this Bayer form is sent to this calculation element.
7. photo processing system as claimed in claim 5 is characterized in that, the described storage bit number that the module setting is set is 24Bit.
8. photo processing system as claimed in claim 5 is characterized in that, this system also comprises:
Display module be used for showing described BMP image to user's preview at the display of calculation element, and prompting user successfully obtains the BMP image.
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100988835A CN103366346A (en) | 2012-04-06 | 2012-04-06 | Photograph processing method and system |
TW101113184A TW201342307A (en) | 2012-04-06 | 2012-04-13 | Photo processing method and system |
US13/849,479 US20130265447A1 (en) | 2012-04-06 | 2013-03-23 | Computing device and method for processing pictures |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100988835A CN103366346A (en) | 2012-04-06 | 2012-04-06 | Photograph processing method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103366346A true CN103366346A (en) | 2013-10-23 |
Family
ID=49291999
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012100988835A Pending CN103366346A (en) | 2012-04-06 | 2012-04-06 | Photograph processing method and system |
Country Status (3)
Country | Link |
---|---|
US (1) | US20130265447A1 (en) |
CN (1) | CN103366346A (en) |
TW (1) | TW201342307A (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104732486B (en) * | 2015-03-23 | 2017-10-03 | 海信集团有限公司 | The display methods and device of a kind of picture |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3657396B2 (en) * | 1997-07-07 | 2005-06-08 | 株式会社日立製作所 | Key management system, key management apparatus, information encryption apparatus, information decryption apparatus, and storage medium storing program |
JP4357151B2 (en) * | 2002-03-28 | 2009-11-04 | 富士フイルム株式会社 | Digital camera and image data processing system |
JP4338551B2 (en) * | 2004-03-04 | 2009-10-07 | 富士フイルム株式会社 | Image reproduction method, image reproduction apparatus, and image reproduction program |
US20060125922A1 (en) * | 2004-12-10 | 2006-06-15 | Microsoft Corporation | System and method for processing raw image files |
-
2012
- 2012-04-06 CN CN2012100988835A patent/CN103366346A/en active Pending
- 2012-04-13 TW TW101113184A patent/TW201342307A/en unknown
-
2013
- 2013-03-23 US US13/849,479 patent/US20130265447A1/en not_active Abandoned
Also Published As
Publication number | Publication date |
---|---|
US20130265447A1 (en) | 2013-10-10 |
TW201342307A (en) | 2013-10-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11044410B2 (en) | Imaging control method and apparatus, electronic device, and computer readable storage medium | |
CN102160369B (en) | Minimally processing displayed images captured from a burst | |
US7181091B2 (en) | Method, apparatus, and recording medium for correcting appreciation data | |
US8107113B2 (en) | Printer and image processing apparatus | |
US20120249808A1 (en) | Image sending apparatus, image recording apparatus and image recording method | |
CN112202986A (en) | Image processing method, image processing apparatus, readable medium and electronic device thereof | |
CN111447370B (en) | Camera access method, camera access device, terminal equipment and readable storage medium | |
WO2017076000A1 (en) | Method and device for night photography and mobile terminal | |
CN113727035A (en) | Image processing method, system, electronic device and storage medium | |
JPWO2004004361A1 (en) | Information terminal | |
CN102546899A (en) | Cell phone and picture processing method of cell phone | |
US20090102947A1 (en) | System and method for automatically adding user information to digital images | |
CN103366346A (en) | Photograph processing method and system | |
US8548275B2 (en) | Image processing device and image processing method | |
JP2003319311A (en) | Image processing apparatus and system | |
CN105100587B (en) | Photographic device and its control method | |
CN116668862B (en) | Image processing method and electronic equipment | |
CN108322755B (en) | Picture compression processing method and system | |
US20240107182A1 (en) | Image processing method and electronic device | |
WO2019179230A1 (en) | Raw image-based panorama stitching method and electronic device | |
US20050076062A1 (en) | Image server and method of controlling same | |
US20090132489A1 (en) | Method for managing digital photograph, apparatus for displaying digital photograph, and method for playing the same | |
KR101646673B1 (en) | An apparatus and a method for processing image, and a computer-readable medium storing a computer program for performing the method | |
CN115802144B (en) | Video shooting method and related equipment | |
CN117336597B (en) | Video shooting method and related equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20131023 |